carbs data - expanded FHIR
Sample Scenario
| Data Point | Value | unit |
|---|---|---|
| Carbs | 10 | grams |
| Time Stamp | 2020-08-04T15:00:16Z | UTC |
Observation resource for carbs measurement
A reduced format of this resource will be sent from Confidence. See the section Carbs data - reduced FHIR. The facade needs to further expand that resource by adding the other relavent fields as per our implementation guide. Details are provided in the comments below in green.
Below is an example JSON for the observation resource having Nutritional value of Carbohydrate intake information in expanded FHIR format
{
"resourceType": "Observation",
"id": "805f85cd-8c10-47a8-8325-f7a176f444b4", To be managed by FHIRSTACK
"meta": {
"profile": [ //To be updated by facade - FHIR profile for carbs observation for FHIR internal storage
"http://roche.com/fhir/rdc/StructureDefinition/nutritional-value-observation"
]
},
"status": "final", //retain same status received from confidence
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/confidence",
"value": "<confidence unique identifier>" //retain same identifier received from Confidence reduced FHIR
}
],
"category": [ //To be added by facade - category for Carbs will always be Nutritional value, function (observable entity).
{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "84626001",
"display": "Nutritional value, function (observable entity)"
}
]
}
],
"code": {
"coding": [ //To be added by facade - system, code and display when code.text "Carbs" is received in the reduced FHIR
{
"system": "http://loinc.org",
"code": "9060-5",
"display": "Carbohydrate intake Measured"
}
],
"text": "Carbs" //To be retained as is from the reduced format so that on restore it can be sent back
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850" //To be added by facade - patient link
},
"effectiveDateTime": "2020-08-04T15:00:16Z", //Retain same value from Confidence reduced FHIR
"performer": [
{
"reference": "Patient/2P0tI8p-SF9-6850" //To be added by facade - patient link
}
],
"valueQuantity": {
"value": "10", //retain value from reduced FHIR
"unit": "g", //retain value from reduced FHIR
"system": "http://unitsofmeasure.org", //To be added by facade - the system and code details for Carbs
"code": "g"
},
"device": {
"reference": "DeviceMetric/id-deviceMetric-smartPhone-carb" //To be added by facade - link to deviceMetric of smart phone capturing carbs value .
},
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00" //retain same data from Confidence reduced FHIR
},
{
"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
}
]
}