Reduced Examples
- Reduced Examples
- CGM Sensor - reduced FHIR
- CGM Session - reduced FHIR
- CGM measurement data - reduced FHIR
- Case 1 - With valid CGM, trend and quality values
- Case 2 - With NaN for CGM value and NULL for trend and quality
- BG data - reduced FHIR
- Carbs data - reduced FHIR
- Insulin data - reduced FHIR
- Calibration BG - reduced FHIR
- EMWR - reduced FHIR
- Notes - reduced FHIR
- DM Careplan - reduced FHIR
- Target settings - reduced FHIR
- Time block settings - reduced FHIR
- Mobile device - reduced FHIR
CGM Sensor - reduced FHIR
Sample Scenario
| Data Point | Value | unit | Comments |
|---|---|---|---|
| SessionId | AAAA | ||
| Type | CapillaryWholeblood | string | Possible values are CapillaryWholeBlood; CapillaryPlasma; VenousWholeBlood; VenousPlasma; ArterialWholeBlood; ArterialPlasma; UndeterminedWholeBlood; UndeterminedPlasma; InterstitialFluid_ISF; ControlSolution |
| Sample Location | Finger | string | Possible values are Finger; AlternateSiteTest; Earlobe; ControlSolution; SubcutaneousTissue; SampleLocationValueNotAvailable |
| Sample Interval | 5 | min | |
| Lot Number | 12345 | string | |
| SystemID | ABCD-1234 | string | |
| Manufacturer Name | Roche | string | |
| Model Number | 56789 | string | |
| Serial Number | ABCD123467878767 | string | |
| HW Revision | 1.0.0 | string | |
| FW Revision | 2.0.0 | string | |
| SW Revision | 3.0.0 | string | |
| Model Name | Aero | string | |
| Appearance | 0x0D00 (Generic Continuous Glucose Monitor) | string | |
| Mac address (from sessionInfoDBItem) | 00:1B:44:11:3A:B7 | string |
Note: Comments are provided in green in the JSON below
{
"resourceType": "DeviceComponent",
"meta": { //Should be sent by Confidence saying which profile the below resource conforms to. It is always the same for a DeviceComponent resource
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/phd-devicecomponent-reduced"
]
},
"identifier": {
"system": "http://roche.com/fhir/rdc/sid/device-identifier", //always same for resourceType DeviceComponent
"value": "confidence/701750003/<serial-number>" //to be built as "confidence/701750003" (static text describing the source and the type of device) followed by "/<serial-number of that sensor which will be unique>"
},
"type": {
"text": "CGMSensor" //static text describing that this resource is for the details of a CGM Sensor
},
"productionSpecification": [
{
"specType": {
"text": "LotNumber" //static text describing the spec type
},
"productionSpec": "12345"
},
{
"specType": {
"text": "SystemId" //static text describing the spec type
},
"productionSpec": "ABCD-1234"
},
{
"specType": {
"text": "ManufacturerName" //static text describing the spec type
},
"productionSpec": "Roche"
},
{
"specType": {
"text": "ModelNumber" //static text describing the spec type
},
"productionSpec": "56789"
},
{
"specType": {
"text": "SerialNumber" //static text describing the spec type
},
"productionSpec": "ABCD123467878767"
},
{
"specType": {
"text": "HWRevision" //static text describing the spec type
},
"productionSpec": "1.0.0"
},
{
"specType": {
"text": "FWRevision" //static text describing the spec type
},
"productionSpec": "2.0.0"
},
{
"specType": {
"text": "SWRevision" //static text describing the spec type
},
"productionSpec": "3.0.0"
},
{
"specType": {
"text": "ModelName" //static text describing the spec type
},
"productionSpec": "Aero"
},
{
"specType": {
"text": "Appearance" //static text describing the spec type
},
"productionSpec": "0x0D00 (Generic Continuous Glucose Monitor)"
},
{
"specType": {
"text": "MacAddress" //static text describing the spec type
},
"productionSpec": "00:1B:44:11:3A:B7"
}
],
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/cgm-session-id",
"valueString": "AAAA" //session id
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/sample-type",
"valueCodeableConcept": {
"text": "InterstitialFluid_ISF" //static text describing the type (of sample)
}
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/sample-location",
"valueCodeableConcept": {
"text": "SubcutaneousTissue" //static text describing the sample location
}
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/sample-interval",
"valueQuantity": {
"value": 5, //Sample interval in mins
"unit": "min"
}
}
]
}
CGM Session - reduced FHIR
Sample Scenario
| Data Point | Value | unit |
|---|---|---|
| SessionId | AAAA | |
| SessionStatus | Started | possible values: NotConfigured, Started, Stopped, WarmingUp, UnPaired |
| MacAddress | Note: See the section CGM Sensor. As it is relevant to the sensor it is included in the DeviceComponent resource. There is an extension in the DeviceComponent resource that holds the Session ID. |
|
| Calculated Session start time | 2020-08-03T05:05:00Z | UTC |
| SessionStartTime (Pairing Date) | 2020-08-03T05:00:00Z | UTC |
| CGM Session Run Time | 5 | hours |
| CGM session end time | 2020-08-03T10:00:00Z | UTC |
| NotificationAlreadyScheduled | true | bool |
Note: Comments are provided in green in the JSON below
Paring Date will be same as the session start time
When a session just starts the resource is sent to FHIR with only the start timestamp. Once the session has ended the resource with the same identifier has to be sent again with also the end time
{
"resourceType": "Observation", //FHIR resource type
"meta": { //Should be sent by Confidence saying which profile the below resource conforms to. It is always the same for a DeviceComponent resource
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/miscellaneous-observation-reduced"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/confidence", //always same for resourceType Observation
"value": "AAAA" //Session ID which will be unique for that session
}
],
"status": "final", //always final
"code": {
"text": "CGMSession" //text describing that this observation is for a CGM session
},
"effectivePeriod": {
"start": "2020-08-03T05:00:00Z", //SessionStartTime
"end": "2020-08-03T10:00:00Z" //CGM session end time. When the CGM session will be first shared if the end time is now known, only the start can be sent and once the session has ended the resource can be sent again with the end time.
},
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/session-run-time",
"valueQuantity": {
"value": 5, //runtime in hours
"unit": "h"
}
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/calculated-session-start-time",
"valueDateTime": "2020-08-03T05:05:00Z" //Calculated Session start time
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/session-status",
"valueString": "Started" //session status
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/notification-scheduled-status",
"valueBoolean": true //notification already scheduled boolean
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00" //timezone of the patient when the CGM reading was taken. ** Refer timezone extension page for possible combination of timezone displayed.
}
]
}
** Refer timezone extension page HERE for possible combination of timezone formats.
CGM Measurement data - reduced FHIR
BG data - reduced FHIR
Sample Scenario
| Data Point | Value | unit |
|---|---|---|
| Blood Glucose Value | 118 | mg/dL |
| Notes | Blood Glucose Observation | string |
| Time Stamp | 2020-08-04T15:00:16Z | UTC |
Note: Comments are provided in green in the JSON below
Below is an example JSON for the BG resource having Blood glucose information in reduced FHIR format
{
"resourceType": "Observation", //FHIR resource type
"meta": { //Should be sent by Confidence saying which profile the below resource conforms to. It is always the same for a bg resource
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/observation-bg-reduced"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/confidence", //always same for resourceType Observation
"value": "<confidence unique identifier>" // Unique identifier from confidence
}
],
"status": "final", //Status will be 'final' for bg observation
"code": {
"text": "BloodGlucoseValue" //static text describing that the resource is for a bg value
},
"effectiveDateTime": "2020-08-04T15:00:16Z", //Timestamp of the measurement in zulu/UTC
"comment": "Blood Glucose Observation", // Additional notes information from confidence along with the entry for BG
"valueQuantity": {
"value": "102", //bg value quality in mg/dL
"unit": "mg/dL"
},
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00" //timezone of the patient when the Carbs reading was taken. ** Refer timezone extension page for possible combination of timezone displayed.
}
]
}
** Refer timezone extension page for possible combination of timezone displayed HERE
Carbs data - reduced FHIR
Sample Scenario
| Data Point | Value | unit |
|---|---|---|
| Carbs | 10 | grams |
| Time Stamp | 2020-08-04T15:00:16Z | UTC |
Note: Comments are provided in green in the JSON below
Below is an example JSON for the observation resource having Carbs information in reduced FHIR format
{
"resourceType": "Observation", //FHIR resource type
"meta": { //Should be sent by Confidence saying which profile the below resource conforms to. It is always the same for a Carbs resource
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/nutritional-value-observation-reduced"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/confidence", //always same for resourceType Observation
"value": "<confidence unique identifier>" // Unique identifier from confidence
}
],
"status": "final", //Status will be 'final' for Carbs observation
"code": {
"text": "Carbs" //static text describing that the resource is for a Carbs value
},
"effectiveDateTime": "2020-08-04T15:00:16Z", //Timestamp of the measurement in zulu/UTC
"valueQuantity": {
"value": "10", //Carbs value quality in g
"unit": "g"
},
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00" //timezone of the patient when the Carbs reading was taken. **** Refer timezone extension page for possible combination of timezone displayed
}
]
}
** Refer timezone extension page for possible combination of timezone displayed HERE
Insulin data - reduced FHIR
Sample Scenario
| Data Point | Value | unit |
|---|---|---|
| Bolus Insulin | 3 | iU |
| Basal Insulin | 5 | iU |
| Time Stamp | 2020-08-04T15:00:16Z | UTC |
Note: Comments are provided in green in the JSON below
Below are examples of Medication adminstration resource having Insulin information in reduced FHIR format
Sample basal (long-acting)
{
"resourceType": "MedicationAdministration", //FHIR resource type
"meta": { //Should be sent by Confidence saying which profile the below resource conforms to. It is always the same for a Insulin resource
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/medication-administration-reduced"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/medication-administration/confidence",
"value": "<confidence unique identifier>" // Unique identifier from confidence
}
],
"status": "completed", //status will be completed for Insulin dat
"medicationCodeableConcept": {
"text": "BasalInsulin" //static text describing that the resource is for a Basal Insulin value
},
"subject": {
"reference": "Patient/<patient reference>" // This value will be overwritten by the FHIR Server to put the fhir id of the user sending data from auth header
},
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00" //timezone of the patient when the insulin reading was taken
}
],
"effectiveDateTime": "2020-08-04T15:00:16Z", //Timestamp of the measurement in zulu/UTC
"dosage": {
"dose": {
"value": 5, // Insulin value quality in [iU]
"unit": "[iU]"
}
}
}
Sample bolus (short-acting)
{
"resourceType": "MedicationAdministration", //FHIR resource type
"meta": { //Should be sent by Confidence saying which profile the below resource conforms to. It is always the same for a Insulin resource
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/medication-administration-reduced"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/medication-administration/confidence",
"value": "<confidence unique identifier>" // Unique identifier from confidence
}
],
"status": "completed", //always completed for Insulin
"medicationCodeableConcept": {
"text": "BolusInsulin" //static text describing that the resource is for a Basal Insulin value
},
"subject": {
"reference": "Patient/<patient reference>" // This value will be overwritten by the FHIR Server to put the fhir id of the user sending data from auth header
},
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00" //timezone of the patient when the insulin reading was taken. ** Refer timezone extension page for possible combination of timezone displayed
}
],
"effectiveDateTime": "2020-08-04T15:00:16Z", //Timestamp of the measurement in zulu/UTC
"dosage": {
"dose": {
"value": 3, //Insulin value quality in [iU]
"unit": "[iU]"
}
}
}
** Refer timezone extension page for possible combination of timezone displayed HERE
Calibration BG - reduced FHIR
Sample Scenario
| Data Point | Value | unit | comment |
|---|---|---|---|
| SessionId | AAAA | ||
| GlucoseConcentration (BG) | 104 | mg/dL | |
| CalibrationTime | 2020-08-04T15:00:16Z | UTC | |
| CalibrationType | CapillaryWholeBlood | String | Possible values are CapillaryWholeBlood; CapillaryPlasma; VenousWholeBlood; VenousPlasma; ArterialWholeBlood; ArterialPlasma; UndeterminedWholeBlood; UndeterminedPlasma; InterstitialFluid_ISF; ControlSolution |
| CalibrationSampleLocation | Finger | String | Possible values are Finger; AlternateSiteTest; Earlobe; ControlSolution; SubcutaneousTissue; SampleLocationValueNotAvailable |
| NextCalibrationTime | 360 | min | |
| CalibrationDataRecordNumber | 1 | ||
| CalibrationStatus | CalibrationProcessPending | String | Possible values are CalibrationDatarejected; CalibrationDataoutofrange; CalibrationProcessPending |
Note: Comments are provided in green in the JSON below
Below is an example JSON for the Calibration BG resource having Blood glucose information in reduced FHIR format
{
"resourceType": "Observation",
"meta": { //Should be sent by Confidence saying which profile the below resource conforms to. It is always the same for a Calibration BG resource
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/observation-calibration-reduced"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/confidence", //always same for resourceType Observation
"value": "<confidence unique identifier>" // Unique identifier from confidence
}
],
"related": [
{
"type": "derived-from",
"target": {
"display": "AAAA" //SessionID - unique identfier for the session to which this BG reading is calibarate
}
}
],
"status": "final", //status will be final for Calibration observation
"code": {
"text": "GlucoseConcentration(Calibration)" //static text describing that the resource is for a Calibration BG measurement
},
"effectiveDateTime": "2020-08-04T15:00:16Z", //Timestamp of the measurement in zulu/UTC
"valueQuantity": {
"value": "104", // BG Calibration value in mg/dL
"unit": "mg/dL"
},
"bodySite": {
"text": "Finger" //static text describing the Calibration sample location
},
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00" // ** Refer timezone extension page for possible combination of timezone captured
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/sample-type",
"valueCodeableConcept": {
"text": "CapillaryWholeBlood" //static text describing the calibration type (of sample)
}
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/next-calibration-time",
"valueQuantity": {
"value": 360, //next calibration interval in mins
"unit": "min"
}
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/calibration-count",
"valueInteger": 3 // value describing the calibration count
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/calibration-action",
"valueString": "CalibrationProcessPending" // static text describing the calibration status
}
]
}
** Refer timezone extension page for possible combination of timezone captured HERE
EMWR - reduced FHIR
Sample Scenario
| Data Point | Value | unit | Comment |
|---|---|---|---|
| SessionId | AAAA | ||
| InstanceId | EEMMWW | mg/dL | |
| MessageSource | 2 | Possible values are 0 = None, 1 = Application, 2 = CGM | |
| EventName | SENSOR_CALIBRATION_NEEDED | String | Possible values are SENSOR_TEMP_HIGH; SENSOR_TEMP_LOW; SENSOR_CONNECTION_LOST; SENSOR_BATTERY_LOW; SENSOR_CALIBRATION_NEEDED; SENSOR_CALIBRATION_FAILED; SENSOR_CALIBRATION_RECOMMENDED; SENSOR_MALFUNCTION; SENSOR_WARMING_UP; SESSION_ENDED; SIGN_IN_REQUIRED; HYPER_WARNING; HYPO_WARNING; HYPO_WARNING_URGENT; MARKETING_1; MARKETING_2 |
| TimeOffsetOccurance | 200 | min | |
| Acknowledged | True | Boolean | Possible values are True or False |
| SnoozeWakeupTime | 2020-08-05T15:10:16Z | UTC | |
| TimeWhenProcessed | 2020-08-05T15:15:16Z | UTC | |
| Type | Warning | String | Possible values are Error; Maintenance; Warning; Reminder; Message |
| Time Stamp | 2020-08-04T15:00:16Z | UTC |
Note: 'Time Stamp' data point is added to the list of data points as we need to capture the time when the EMWR occured, Comments are provided in green in the JSON below
Below is an example JSON for the EMWR Observation resource in reduced FHIR format
{
"resourceType": "Observation",
"meta": { //Should be sent by Confidence saying which profile the below resource conforms to. It is always the same for a EWM Observation resource
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/observation-EWM-reduced" //always same for resourceType Observation
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/confidence",
"value": "EEMMWW"// Unique identifier from confidence
}
],
"status": "final", //always final for EWM Observation
"code": {
"text": "Warning" //static text describing that the resource is for a Warning type EWM Observation
},
"effectiveDateTime": "2020-08-04T15:00:16Z", //Timestamp of the EWMR in zulu/UTC
"valueCodeableConcept": {
"text": "SENSOR_CALIBRATION_NEEDED" //static text describing the EMWR event
},
"related": [
{
"type": "derived-from",
"target": {
"display": "AAAA" //SessionID - unique identfier for the session to which this EMWR event is recorded
}
}
],
"device": {
"display": "2" //static value describing the origin of source event
},
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/time-offset",
"valueQuantity": {
"value": 200, //time offset the EMWR occurred in relation to the CGM session start time in minutes
"unit": "min"
}
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/ewm-acknowledged",
"valueBoolean": "true" // acknowledgment of the EMWR
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/snooze-wakeup-time",
"valueDateTime": "2020-08-05T15:10:16Z" // time at which the EMWR would fire again if snoozed
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/time-when-processed",
"valueDateTime": "2020-08-05T15:15:16Z" // time at which the EMWR was processed by the user.
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00" //timezone of the patient when the CGM reading was taken. ** Refer timezone extension page for possible combination of timezone captured
}
]
}
** Refer timezone extension page for possible combination of timezone captured HERE
Notes - reduced FHIR
Sample Scenario
| Data Point | Value | unit | Comment |
|---|---|---|---|
| Notes | sample note entered along with log entry | String | The note field is where a patient can store additional information along with the log entry |
Note: Comments are provided in green in the JSON below
Below is an example JSON for the observation resource having Carbs information in reduced FHIR format
{
"resourceType": "Observation", //FHIR resource type
"meta": { //Should be sent by Confidence saying which profile the below resource conforms to. It is always the same for sending notes information.
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/miscellaneous-observation-reduced"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/confidence", //always same for resourceType Observation
"value": "<confidence unique identifier>" // Unique identifier from confidence
}
],
"status": "final", //Status will be 'final' for miscellaneous observation
"code": {
"text": "Notes" //static text describing that the resource is for storing Notes value
},
"valueString": "sample note entered along with log entry", //Notes entered in the application.
"effectiveDateTime": "2020-08-03T05:00:00Z", //Timestamp of the notes captured along with the measurement details in zulu/UTC
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00" //timezone of the patient when the Notes was taken along with other measurement. ** Refer timezone extension page for possible combination of timezone captured
}
]
}
** Refer timezone extension page for possible combination of timezone captured [HERE](https://simplifier.net/guide/RDCDiabetesManagementImplementationGuide/PatientTimeZone?version=current)
DM Careplan - reduced FHIR
This is example of reduced format for Diabetes Management careplan which is a Master careplan associated to a patient, which holds all other careplans as a Master (parent) careplan.
{
"resourceType": "CarePlan", //FHIR resource type
"meta": { //Should be sent by Confidence saying which profile the below resource conforms to.
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/dm-careplan-reduced"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/careplan/confidence",//always same for resourceType careplan
"value": "cf-dmcp-001" // Unique identifier from confidence
}
],
"status": "active", //Status will be 'active' for careplan
"intent": "plan", //intent will be 'plan' for careplan
"title": "Diabetes Management Plan", //title will be 'Diabetes Management Plan' for dm-careplan
"subject": {
"reference": "Patient/<patient reference>" // This value will be overwritten by the FHIR Server to put the fhir id of the user sending data from auth header
}
}
The care plan resource when sent in reduced format, need to have DM-Careplan (Master careplan) and Patient reference resource available first before sending Bolus advice careplan or Patient personal advance careplan or Target ranges careplan to map the reference link to Patient and Master careplan
Target settings - reduced FHIR
sample scenario :
| Data Point | Value | unit |
|---|---|---|
| Lower target | 70 | mg/dL |
| Upper target | 180 | mg/dL |
Note: Comments are provided in green in the JSON below
Below is an example JSON for the Therapy Time block settings (Target ranges) in careplan and goal resource in reduced FHIR format. TherapyTimeBlock currently spans for one whole day and it is captured in Target ranges careplan- scheduledTiming.
Target ranges - Careplan :
{
"resourceType": "CarePlan", //FHIR resource type
"meta": { //Should be sent by Confidence saying which profile the below resource conforms to.
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/careplan-target-ranges-reduced"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/careplan/confidence", //always same for resourceType careplan
"value": "cf-tgcp-001" // Unique identifier from confidence
}
],
"partOf": [
{
"identifier": {
"value": "cf-dmcp-001" // Unique identifier for related dm-careplan
}
}
],
"status": "active", //Status will be 'active' for careplan
"intent": "plan", //intent will be 'plan' for careplan
"title": "Target ranges plan", //title will be 'Target ranges plan' for careplan-target-ranges
"subject": {
"reference": "Patient/<patient reference>" // This value will be overwritten by the FHIR Server to put the fhir id of the user sending data from auth header
},
"activity": [
{
"detail": {
"category": {
"text": "Observation" //static text describing the careplan activity category is observation
},
"code": {
"text": "Identified target range activity" //static text describing the careplan activity code is target range
},
"goal": [
{
"identifier": {
"value": "cf-goal-001" // Unique identifier value of related goal resource
}
},
{
"identifier": {
"value": "cf-goal-002" // Unique identifier value of related goal resource
}
}
],
"status": "unknown", //activity Status will be 'unknown' for careplan
"scheduledTiming": {
"repeat": { //schedule duration value in min
"duration": 1440,
"durationUnit": "min",
"timeOfDay": [
"00:00:00"
]
}
}
}
}
]
}
Goal resources
Lower - Hypoglycemia
{
"resourceType": "Goal", //FHIR resource type
"status": "planned", //Status will be 'planned' for goal resource
"meta": { //Should be sent by Confidence saying which profile the below resource conforms to.
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/goal-reduced"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/goal/confidence", //always same for resourceType goal
"value": "cf-goal-001" // Unique identifier from confidence
}
],
"description": {
"text": "Hypoglycemia" //static text describing the goal resource is for Lower - Hypoglycemia
},
"target": {
"measure": {
"text": "mg/dL" //static text describing target measuring code.
},
"detailQuantity": {
"value": 70, //bg value quality in mg/dL
"unit": "mg/dL"
}
}
}
Higher - Hyperglycemia
{
"resourceType": "Goal", //FHIR resource type
"status": "planned", //Status will be 'planned' for goal resource
"meta": { //Should be sent by Confidence saying which profile the below resource conforms to.
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/goal-reduced"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/goal/confidence",//always same for resourceType goal
"value": "cf-goal-002" // Unique identifier from confidence
}
],
"description": {
"text": "Hyperglycemia" //static text describing the goal resource is for Higher - Hyperglycemia
},
"target": {
"measure": {
"text": "mg/dL" //static text describing target measuring code.
},
"detailQuantity": {
"value": 180, //bg value quality in mg/dL
"unit": "mg/dL"
}
}
}
Time block settings - reduced FHIR
sample scenario :
| Data Point | Value | unit |
|---|---|---|
| Time Block status | True | Boolean |
| Time Block Start Time | 08:00:00 | HH:MM:SS |
| Time Block End Time | 11:59:00 | HH:MM:SS |
| Hypo Limit | 80 | mg/dL |
| Hyper Limit | 130 | mg/dL |
| Hypo Lower Limit | 54 | mg/dL |
| Hypo Alert | True | Boolean |
| Hyper Alert | True | Boolean |
| Urgent Hypo Alert | false | Boolean |
Note: Comments are provided in green in the JSON below
Below is an example JSON for the Careplan resource having Timeblock information in reduced FHIR format
Bolus Advice careplan
{
"resourceType": "CarePlan", //FHIR resource type
"meta": { //Should be sent by Confidence saying which profile the below resource conforms to.
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/careplan-bolus-advice-reduced"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/careplan/confidence", //always same for resourceType careplan
"value": "cf-bol-adv-cp-001" // Unique identifier from confidence
}
],
"basedOn": [
{
"identifier": {
"value": "cf-dmcp-001" // Unique identifier for related dm-careplan
}
}
],
"partOf": [
{
"identifier": {
"value": "cf-dmcp-001" // Unique identifier for related dm-careplan
}
}
],
"status": "active", //Status will be 'active' for careplan
"intent": "plan", //intent will be 'plan' for careplan
"title": "Bolus Advice Careplan", //title will be 'Bolus Advice Careplan' for careplan-target-ranges
"extension": [
{
"extension": [
{
"url": "TimeblockStatus",
"valueBoolean": true
},
{
"url": "startTime",
"valueTime": "08:00:00"
},
{
"url": "endTime",
"valueTime": "11:59:00"
},
{
"url": "LowerLimit",
"valueQuantity": {
"value": 80,
"unit": "mg/dL"
}
},
{
"url": "UpperLimit",
"valueQuantity": {
"value": 130,
"unit": "mg/dL"
}
},
{
"url": "UrgentLowerLimit",
"valueQuantity": {
"value": 54,
"unit": "mg/dL"
}
},
{
"url": "HypoAlert",
"valueBoolean": true
},
{
"url": "HyperAlert",
"valueBoolean": true
},
{
"url": "UrgentHypoAlert",
"valueBoolean": false
}
],
"url": "http://roche.com/fhir/rdc/StructureDefinition/careplan-timeblock-options"
}
],
"subject": {
"reference": "Patient/<patient reference>" // This value will be overwritten by the FHIR Server to put the fhir id of the user sending data from auth header
}
}
Mobile device - reduced FHIR (This modelling will be implemented by confidence in future)
Sample Scenario
| Data Point | Value | unit | Comments |
|---|---|---|---|
| Mobile Model Number | 5.0 | string | This is Mobile model number |
| Mobile OS version | 11.0 | string | This is Mobile OS version |
Note: Comments are provided in green in the JSON below
Example :
{
"resourceType": "DeviceComponent",
"meta": { //Should be sent by Confidence saying which profile the below resource conforms to. It is always the same for a DeviceComponent resource
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/phd-devicecomponent-reduced"
]
},
"identifier": {
"system": "http://roche.com/fhir/rdc/sid/device-identifier", //always same for resourceType DeviceComponent
"value": "<confidence unique identifier>" // Unique identifier from confidence
},
"type": {
"text": "smartPhone" //static text describing that this resource is for the details of a smartPhone
},
"productionSpecification": [
{
"specType": {
"text": "MobileModelNumber" //static text describing the spec type
},
"productionSpec": "5.0"
},
{
"specType": {
"text": "MobileOSVersion" //static text describing the spec type
},
"productionSpec": "11.0"
}
],
"extension": [ // dummy sample interval value to be sent
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/sample-interval",
"valueQuantity": {
"value": 0
}
}
]
}