Target settings - expanded 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 expanded FHIR format. TherapyTimeBlock currently spans for one whole day and it is captured in Target ranges careplan- scheduledTiming.
Target ranges - Careplan :
{
"resourceType": "CarePlan",
"id": "941f886d-bfb8-43c6-a979-54d582a4a88f", //To be managed by FHIRSTACK
"meta": { //To be updated by facade - FHIR profile for careplan target ranges for FHIR internal storage
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/careplan-target-ranges"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/careplan/confidence",
"value": "cf-tgcp-001" //retain same identifier received from Confidence reduced FHIR
}
],
"partOf": [
{
"reference": "CarePlan/93034f38-6c66-4297-af64-e0088eaa4ff0" //To be added by facade - based on identifier value of careplan resource
"identifier": {
"value": "cf-dmcp-001" //retain same identifier received from Confidence reduced FHIR
}
}
],
"status": "active", //retain same status received from confidence
"intent": "plan", //retain same intent received from confidence
"category": [ //To be added by facade - category will be Target ranges plan
{
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "target-ranges-careplan",
"display": "Target ranges plan"
}
]
}
],
"title": "Target ranges plan", //retain same title received from confidence
"subject": { //To be added by facade - patient link
"reference": "Patient/14435e70-25d8-4db4-8941-9a191735b31e"
},
"activity": [
{
"detail": {
"category": {
"coding": [ //To be added by facade - system, code and display when category.text "Observation" is received in the reduced FHIR
{
"system": "http://hl7.org/fhir/care-plan-activity-category",
"code": "observation",
"display": "Observation"
}
],
"text": "Observation" //To be retained as is from the reduced format so that on restore it can be sent back
},
"code": {
"coding": [ //To be added by facade - system, code and display when code.text "Identified target range activity" is received in the reduced FHIR
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "identified-target-range-activity",
"display": "Identified target range activity"
}
],
"text": "Identified target range activity" //To be retained as is from the reduced format so that on restore it can be sent back
},
"goal": [
{
"reference": "Goal/c882e4c5-91b9-4b4e-86b2-bc42fa6119ed",//To be added by facade - based on identifier value of goal resource
"identifier": {
"value": "cf-goal-001" //retain value from reduced FHIR
}
},
{
"reference": "Goal/8fc3a008-0dfa-4d41-991c-21dbe3fdac35",//To be added by facade - based on identifier value of goal resource
"identifier": {
"value": "cf-goal-002" //retain value from reduced FHIR
}
}
],
"status": "unknown",
"scheduledTiming": {
"repeat": {
"duration": 1440,
"durationUnit": "min",
"timeOfDay": [
"00:00:00"
]
}
}
}
}
],
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/provenance-channel",
"valueString": "<channel-name>" //To be added by facade - fill channel data
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/provenance-source",
"valueString": "<source-name>" //To be added by facade - fill source data
}
]
}
Goal resources
Lower - Hypoglycemia
{
"id": "c882e4c5-91b9-4b4e-86b2-bc42fa6119ed", //To be managed by FHIRSTACK
"resourceType": "Goal",
"status": "planned", //retain value from reduced FHIR
"meta": { //To be updated by facade - FHIR profile for goal for FHIR internal storage
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/goal"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/goal/confidence",
"value": "cf-goal-001" //retain same identifier received from Confidence reduced FHIR
}
],
"description": {
"coding": [ //To be added by facade - coding will be Hypoglycemia based on description.text = Lower target
{
"system": "http://snomed.info/sct",
"code": "302866003",
"display": "Hypoglycemia (disorder)"
}
],
"text": "Hypoglycemia"//To be retained as is from the reduced format so that on restore it can be sent back
},
"subject": { //To be added by facade - patient link
"reference": "Patient/14435e70-25d8-4db4-8941-9a191735b31e"
},
"target": {
"measure": {
"coding": [ //To be added by facade - system, code and display when measure.text "mg/dL" is received in the reduced FHIR
{
"system": "http://loinc.org",
"code": "32016-8",
"display": "Glucose [Mass/volume] in Capillary blood"
}
],
"text": "mg/dL"//To be retained as is from the reduced format so that on restore it can be sent back
},
"detailQuantity": {
"value": 70, //retain value from reduced FHIR
"comparator": "<=", // To be added by facade - the comparator, system and code details for goal
"unit": "mg/dL", //retain value from reduced FHIR
"system": "http://unitsofmeasure.org",
"code": "mg/dL"
}
},
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/provenance-channel",
"valueString": "<channel-name>" //To be added by facade - fill channel data
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/provenance-source",
"valueString": "<source-name>" //To be added by facade - fill source data
}
]
}
Higher - Hyperglycemia
{
"id": "8fc3a008-0dfa-4d41-991c-21dbe3fdac35", //To be managed by FHIRSTACK
"resourceType": "Goal",
"status": "planned", //retain value from reduced FHIR
"meta": { //To be updated by facade - FHIR profile for goal for FHIR internal storage
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/goal"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/goal/confidence",
"value": "cf-goal-002" //retain same identifier received from Confidence reduced FHIR
}
],
"description": {
"coding": [ //To be added by facade - coding will be Hyperglycemia based on description.text = Higher target
{
"system": "http://snomed.info/sct",
"code": "80394007",
"display": "Hyperglycemia (disorder)"
}
],
"text": "Hyperglycemia"
},
"subject": { //To be added by facade - patient link
"reference": "Patient/14435e70-25d8-4db4-8941-9a191735b31e"
},
"target": {
"measure": {
"coding": [ //To be added by facade - system, code and display when measure.text "mg/dL" is received in the reduced FHIR
{
"system": "http://loinc.org",
"code": "32016-8",
"display": "Glucose [Mass/volume] in Capillary blood"
}
],
"text": "mg/dL"//To be retained as is from the reduced format so that on restore it can be sent back
},
"detailQuantity": {
"value": 180, //retain value from reduced FHIR
"comparator": ">=", // To be added by facade - the comparator, system and code details for goal
"unit": "mg/dL", //retain value from reduced FHIR
"system": "http://unitsofmeasure.org",
"code": "mg/dL"
}
},
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/provenance-channel",
"valueString": "<channel-name>" //To be added by facade - fill channel data
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/provenance-source",
"valueString": "<source-name>" //To be added by facade - fill source data
}
]
}