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
}
}