...
Page Properties | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
|
Logic
Service returns context_episode_id of the device:
Get device.context_episode_id from Device object
Enrich response with context_episode_id and render the response according to JSON Schema
Service returns context (episode), device based on:
Get Device object bydevice_id from devices (MongoDB)Get device.context.identifier from Device objectCallGet Encounter context:Get Encounter objectby device.context.identifier (device.context.identifier = encounter._id)AFTERGetencounter.episodefrom Encounter object
Render a response according to specification
Input parameters
Input parameter | Values | Type | Description | Example |
---|---|---|---|---|
patient_id | String | Patient identifier |
| |
device_id | String | Device identifier |
|
...