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