Examples
Source and Device details
RocheJSON sample
{
"$schema": "ExchangeJsonSchema.json",
"information": {
"specification": {
"name": "Exchange JSON File Format",
"version": [
0,
9
]
},
"generated by": {
"name": "SINOVO Connection Center",
"version": [
1,
0,
20
]
}
.....
"devices": [{
"description": {
"id": "0",
"type": "smartphone app",
"name": "CGM_Dev",
"serial number": "SCC-TkcxHsM0NTY4SB",
"model type": "123456",
"device name": "Samsung Galaxy",
"manufacturer": "Dev",
"os": "Android",
"version": [
1,
2,
0
]
"company": "SINOVO",
"paired with": [ "1" ],
"connected with": [ "1" ] /* comment */
}
}...
........
{
"description": {
"id": "1",
"type": "cgm transmitter",
"manufacturer": "Dev",
"name": "CGM_Dev",
"serial number": "SCC-TkcxHsM0NTY4SB",
"paired with": [ "0" ],
"connected with": [ "0" ],
"sampling interval": [1 , "min"],
"session count": 3
}
.......
Important Note for Implementers:
Please also refer the Roche JSON schema (https://confluence.rochedc.accentureanalytics.com/x/WglsBQ) to confirm the expected data format, i.e whether an element is an array or the data type etc.
Sample Bundle
Carb Value and effective time
Sample Bundle
Observation Calibration
Sample scenario
| Name of the field | Value | FHIR element | Detail |
|---|---|---|---|
| data → calibration → timestamp | 2019-02-13T10:12:00+02:00 | Observation.effectiveDateTime | observation.code = C69187; observation.category = C105585 (code for Glucose Measurement) |
| data → calibration → bg value | 192 mg/dL | Observation.valueQuantity | observation.code = C69187; observation.category = C105585 (code for Glucose Measurement) |
| data → calibration → source device | 0 - Manual Entry via smartphone app | DeviceComponent resource for the SmartPhone + DeviceMetric resource that references the DeviceComponent |
- DeviceComponent is linked to the observation resource through the DeviceMetric resource - DeviceComponent will hold the input source which is "SinovoApp" in this case. - The part-number and serial-number should be sent if available. These help identifying a device uniquely - DeviceMetricn defines the measurement unit (mg/dL) of the Device and is necesasry for the link between the Observation and DeviceComponent resource |
| data → calibration → runtime | 102 min | Observation.extension:time-offset | observation.code = C0006751; observation.category = C105585 (code for Glucose Measurement) |
| data → calibration → action | accepted | Observation.extension:calibration-action | observation.code = C0006751; observation.category = C105585 (code for Glucose Measurement) |
Important Note for Implementers:
please consider the source for mapping the device component, for more details refer the Roche JSON schema (https://confluence.rochedc.accentureanalytics.com/x/WglsBQ)
Sample Bundle
Insulin value and effective time
Note : It is assumed that the drugType (name of insulin) will fall under any one of the category basal (long-acting) or bolus (short-acting) or Other.
Sample Bundle
BG value with events flag
Sample Bundle 1
The events "bedtime", "before exercise", "after exercise", "snack" are selected along with a BG value (only a hypothetical use-case to cover all similar tags in one sample)
Sample Bundle 2
The events "hypo warning", "hyper warning", "stress", "fasting", "illness", "premenstrual", "exercise1", exercise2" are selecetd along with a BG value (only a hypothetical use-case to cover all similar tags in one sample)
Sample Bundle 3
The BG events ""oral medication", "asterisk", "other", "custom1", "custom2", "custom3", "hypo symptoms" are selecetd along with a BG value (only a hypothetical use-case to cover all similar tags in one sample)
Sample Bundle 4
The BG flag with data absent reason showing BG - Out of range - HI and BG - Out of range - LO (only a hypothetical use-case to cover both high and low in one sample)
CGM data
CGM data from SINOVO is expected as follows:
- We will not receive any sensor details from SINOVO. So the session in the Roche JSON is not linked to a sensor. The session start and end time in this case is just the start and end times of the CGM data shared in that file.
- There may still be sequences if there is any time shift
- CGM data interval may be fixed in some cases and in some devices like Libre there may be no fixed interval. However, since the sampling interval is mandatory in the Roche JSON schema, SINOVO will send it as 1.
- rate of change will always be NaN for SINOVO
The following points have to be considered while mapping to FHIR:
For cases where devices do not have a fixed sample interval - Approach –
We will still store the data as an array and keep the delta time between readings as 1 (unit depends on what is set as runtime unit for the CGM data). The missing data will be denoted as E in the array.
We will consider the sampling interval (deviceMetric.measurementPeriod) as sent by SINOVO. This is because we cannot know what devices do not have a fixed sampling interval and we are basically storing data as sent from source.
If there are 2 values for one single time (i.e. delta time = 0) then
we consider only one. Ideally the value should'nt be different but for technicality we choose the latest one.- the first occurance will be represnted in the array (SampledData of the CGM observation)
- The following occurances will be represented as individual Observations (with valueQuantity and not SampledData) with a 1 second increment from the previous reading. Since we do not receive the actual timestamp of these readings within the same minute, we assume the increment of 1 sec.
For cases when sensor details are provided in RocheJson :
-
RocheJson2FHIR mapper needs to create sensor device component and device metric resources.-
Mapper needs to point Transmitter devicecomponent as parent for sensor device component.-
Sensor Devicemetric will be referenced in CGM observations.
For example:
"sequences": [[[0,"2014-09-11T11:24:00Z"],[1,72,"NaN"],[3,72,"NaN"],[0,71,"NaN"],[0,70,"NaN"],[6,68,"NaN"]
Observation (array) --> 2014-09-11T11:24:00Z To 2014-09-11T11:34:00Z --> (E 72 E E 72 E E E E E 68)
Observation (individual) --> 2014-09-11T11:28:01Z --> 71 mg/dL
Observation (individual) --> 2014-09-11T11:28:02Z --> 70 mg/dL
Since we are not getting any sensor details we will just treat session as data collected over a period in this case. There will be no session details stored as we do not get it from SINOVO.
CGM data can come in one or more sequences. We will split the data in each sequence as one observation per day. If there are 2 sequences in the same day, there will be 2 observations. Basically sequences will be treated as separate observations because there may be a time gap between each sequence. Time will be stored as received from the source with the time zone details.
Example when sampling interval is 1 min –
Sequence 1 has data from Day 1 15:00 to Day 3 17:00
Sequence 2 has data from Day 3 18:00 to Day 3 19:00
We will have –
Observation 1 – Day 1 15:00 to Day 1 23:59
Observation 2 – Day 2 00:00 to Day 2 23:59
Observation 3 – Day 3 00:00 to Day 3 17:00
Observation 4 – Day 3 18:00 to Day 3 19:00
If SINOVO resends sends CGM data for a time that is already ingested, it will be ignored. Basically the mapper shall check if the time of the CGM data received is <= to the time of the last ingested CGM data for that particular patient and CGM transmitter, those data will be ignored and not ingested.
CGM value as per the Roche JSON spec is a number or can be HI, LO or NaN. Please see sample below for the different mappings.
Identifier for the Observation resource is built as:
<DeviceComponent.Identifier.value>/<Obsrevation.code>/<Patient-FHIR-ID>/<Observation.effectivePeriod.start>/<Observation.effectivePeriod.end>
The element data - header - unit (for type = runtime) will hold the unit of time which applies to the runtime and delta in the sequences. The mapper needs to always consider this. The schema says its only "min" but the pdf document says "s" and "min" are possible. So it is better if the mapper takes this into account.
Rate of change elements
header-> rate of change -> Has unit attribute which is always set to (mg/dL)/min. This unit is mapped under Observation.component.valueSampledData.data.unit element.
sequence-> data -> rate of change -> it is calculated for each cgm measurement this element type is number and sample values are 1.2,1.3 etc.. RocheJson schema support three possible values for sequences data rate of change which are "HI","LO","NaN". these values is mapped under Observation.component.valueSampledData.data element.
Sample 1 - CGM data with a fixed interval and multiple sequences
Sample Roche JSON from SINOVO
{
"description": {
"id": "1",
"type": "cgm transmitter",
"manufacturer": "Dev",
"name": "CGM_Dev",
"serial number": "SCC-TkcxHsM0NTY4SB",
......
"sampling interval": [5 , "min"]
},
......
"data": [
{
"type": "cgm session",
"number": 1,
"start time": "2020-08-03T23:30:00+02:00",
"end time": "2020-08-04T01:40:00+02:00",
"header": [
{
"type": "runtime", "unit": "min"
},
{
"type": "timestamp"
},
{
"type": "cgm", "unit": "mg/dL"
},
{
"type": "rate of change", "unit": "(mg/dL)/min"
}],
"sequences": [[[0,"2020-08-03T23:30:00+02:00"],
[0,87,"NaN"],
[5,87,"NaN"],
[5,88,"NaN"],
[5,88,"NaN"],
[5,89,"NaN"],
[5,89,"NaN"],
[5,90,"NaN"],
[5,90,"NaN"],
[5,91,"NaN"],
[5,91,"NaN"],
[5,91,"NaN"],
[5,91,"NaN"],
[5,92,"NaN"]],
[[70,"2020-08-04T00:40:00+02:00"],
[0,92,"NaN"],
[5,92,"NaN"],
[5,92,"NaN"],
[5,93,"NaN"],
[5,93,"NaN"],
[5,93,"NaN"],
[5,93,"NaN"],
[5,95,"NaN"],
[5,95,"NaN"],
[5,95,"NaN"],
[5,"NaN","NaN"],
[5,"HI","NaN"],
[5,"LO","NaN"]]]
Expected FHIR
Sample 2 - CGM data with a single sequence and no fixed interval
Sample Roche JSON from SINOVO
{
"description": {
"id": "1",
"type": "cgm transmitter",
"manufacturer": "Dev",
"name": "CGM_Dev",
"serial number": "SCC-TkcxHsM0NTY4SB",
......
"sampling interval": [1 , "min"]
},
......
"data": [
{
"type": "cgm session",
"number": 1,
"start time": "2020-08-04T10:30:00+02:00",
"end time": "2020-08-04T11:00:00+02:00",
"header": [
{
"type": "runtime", "unit": "min"
},
{
"type": "timestamp"
},
{
"type": "cgm", "unit": "mg/dL"
},
{
"type": "rate of change", "unit": "(mg/dL)/min"
}],
"sequences": [[[0,"2020-08-04T10:30:00+02:00"],
[5,87,"NaN"],
[10,88,"NaN"],
[0,89,"NaN"],
[4,89,"NaN"],
[6,89,"NaN"],
[5,90,"NaN"]
]]
Expected FHIR
CGM data
CGM data from SINOVO is expected as follows:
- We will not receive any sensor details from SINOVO. So the session in the Roche JSON is not linked to a sensor. The session start time in this case is just the start of the first value and end time is last CGM value of the CGM data shared in that file.
- CGM data interval may be fixed in some cases and in some devices like Libre there may be no fixed interval. However, since the sampling interval is mandatory in the Roche JSON schema, SINOVO will send it as 1 and this value is stored in Device metric resource.
- rate of change will always be NaN for SINOVO
The following points have to be considered while mapping to FHIR:
For cases where devices do not have a fixed sample interval - Approach –
We will store the sampling interval (deviceMetric.measurementPeriod) as sent by SINOVO. This is because we cannot know what devices do not have a fixed sampling interval and we are basically storing data as sent from source.
If there are 2 values for one single time (i.e. delta time = 0) then
- the first occurance will be represnted in the resource with the time stamp value as available.
- The following occurances will be represented with a 1 second increment from the previous reading. Since we do not receive the actual timestamp of these readings within the same minute, we assume the increment of 1 sec.
For cases when sensor details are provided in RocheJson :
-
RocheJson2FHIR mapper needs to create sensor device component and device metric resources.-
Mapper needs to point Transmitter devicecomponent as parent for sensor device component.-
Sensor Devicemetric will be referenced in CGM observations.Since we are not getting any sensor details we will just treat session as data collected over a period in this case. There will be no session details stored as we do not get it from SINOVO.
CGM value as per the Roche JSON spec is a number or can be HI, LO or NaN. Please see sample below for the different mappings.
Identifier for the Observation resource is built as:
<DeviceComponent.Identifier.value>/<Obsrevation.code>/<Patient-FHIR-ID>/<Observation.effectiveDateTime>
The element data - header - unit (for type = runtime) will hold the unit of time which applies to the runtime and delta in the sequences. The mapper needs to always consider this. The schema says its only "min" but the pdf document says "s" and "min" are possible. So it is better if the mapper takes this into account.
Rate of change elements
header-> rate of change -> Has unit attribute which is always set to (mg/dL)/min. This unit is mapped under Observation.component.valueQuantity.unit element.
sequence-> data -> rate of change -> it is calculated for each cgm measurement this element type is number and sample values are 1.2,1.3 etc.. RocheJson schema support three possible values for sequences data rate of change which are "HI","LO","NaN". these values is mapped under Observation.dataAbsentReason.coding.code element.
Sample 1 - CGM data with a fixed interval
Sample Roche JSON from SINOVO
{
"description": {
"id": "1",
"type": "cgm transmitter",
"manufacturer": "Dev",
"name": "Abbott LibreView",
"serial number": "SCC-TkcxHsM0NTY4SB",
......
"sampling interval": [5 , "min"]
},
......
"data": [
{
"type": "cgm session",
"number": 1,
"start time": "2020-08-03T23:30:00+02:00",
"end time": "2020-08-04T00:40:00+02:00",
"header": [
{
"type": "runtime", "unit": "min"
},
{
"type": "timestamp"
},
{
"type": "cgm", "unit": "mg/dL"
},
{
"type": "rate of change", "unit": "(mg/dL)/min"
}],
"sequences": [[[0,"2020-08-03T23:30:00+02:00"],
[5,87,"NaN"],
[5,87,"NaN"],
[5,88,"NaN"],
[5,88,"NaN"],
[5,89,"NaN"],
[5,89,"NaN"],
[5,90,"NaN"],
[5,90,"NaN"],
[5,91,"NaN"],
[5,91,"NaN"],
[5,"NaN","NaN"],
[5,"LO","NaN"],
[5,"HI","NaN"]]]
Expected FHIR
{
"id": "1318898c-3553-4643-95cd-4f9884ce0b52",
"resourceType": "Bundle",
"type": "message",
"entry": [
{
"resource": {
"id": "id-messageHeader",
"resourceType": "MessageHeader",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/message-header"
]
},
"event": {
"system": "http://roche.com/fhir/rdc/message-type",
"code": "new-bundle",
"display": "New bundle generated"
},
"timestamp": "2020-08-04T16:00:16Z",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/gdpr-controller",
"valueString": "<GDPR controller>"
}
],
"source": {
"name": "SINOVO",
"software": "UDTC",
"version": "1.0.20",
"endpoint": "https://uudev-internal.rochedc.accentureanalytics.com/fhirmsg/rdc/v1.0.0/$process-message"
}
}
},
{
"resource": {
"id": "id-device",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/phg-device"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/device",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20"
}
],
"resourceType": "Device",
"status": "active",
"type": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cdf",
"code": "cdf.dev.im",
"display": "Manual interface"
}
]
},
"manufacturer": "SINOVO",
"model": "SINOVO Connection Center",
"version": "1.0.20"
}
},
{
"resource": {
"id": "id-deviceComponent-cgm-transmitter",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/phd-devicecomponent"
]
},
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/cgm-session-count",
"valueInteger": 3
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/device-component-paired-ip",
"valueReference": {
"reference": "DeviceComponent/id-deviceComponent-smartphone"
}
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/device-component-connected-ip",
"valueReference": {
"reference": "DeviceComponent/id-deviceComponent-smartphone"
}
}
],
"resourceType": "DeviceComponent",
"identifier": {
"system": "http://roche.com/fhir/rdc/sid/device-identifier",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB"
},
"type": {
"coding": [
{
"system": "http://ncimeta.nci.nih.gov",
"code": "C1971397",
"display": "External transmitter, cgm"
}
]
},
"source": {
"reference": "Device/id-device"
},
"measurementPrinciple": "other",
"productionSpecification": [
{
"specType": {
"coding": [
{
"system": "http://hl7.org/fhir/specification-type",
"code": "unspecified",
"display": "Unspecified Production Specification"
}
]
},
"productionSpec": "Abbott LibreView"
},
{
"specType": {
"coding": [
{
"system": "http://hl7.org/fhir/specification-type",
"code": "serial-number",
"display": "Serial Number"
}
]
},
"productionSpec": "SCC-TkcxHsM0NTY4SB"
},
{
"specType": {
"coding": [
{
"system": "http://ncimeta.nci.nih.gov",
"code": "C0947322",
"display": "Manufacturer"
}
]
},
"productionSpec": "Dev"
}
]
}
},
{
"resource": {
"resourceType": "DeviceMetric",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/dm-device-metric"
]
},
"id": "0053cfd5-a427-4691-8690-b4d956c6e658",
"identifier": {
"system": "http://roche.com/fhir/rdc/sid/devicemetric-identifier",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB/2344-0"
},
"type": {
"coding": [
{
"system": "http://loinc.org",
"code": "2344-0",
"display": "Glucose [Mass/volume] in Body fluid"
}
]
},
"unit": {
"coding": [
{
"system": "http://unitsofmeasure.org",
"code": "mg/dL",
"display": "milligram per deciliter"
}
]
},
"source": {
"reference": "Device/id-device"
},
"parent": {
"reference": "DeviceComponent/id-deviceComponent-cgm-transmitter"
},
"operationalStatus": "on",
"category": "measurement",
"measurementPeriod": {
"repeat": {
"frequency": 1,
"period": 5,
"periodUnit": "min"
}
}
}
},
{
"resource": {
"resourceType": "Observation",
"id": "1e6f0b94-1519-4f95-b50c-758fa3d4ac4b",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/sinovo",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB/434910001/2P0tI8p-SF9-6850/2020-08-03T23:35:00+02:00"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "434910001",
"display": "Interstitial fluid glucose concentration (observable entity)"
}
]
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850"
},
"performer": [
{
"reference": "Patient/2P0tI8p-SF9-6850"
}
],
"effectiveDateTime": "2020-08-03T23:35:00+02:00",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
],
"valueQuantity": {
"value": 87,
"unit": "mg/dL",
"system": "http://unitsofmeasure.org",
"code": "mg/dL"
},
"device": {
"reference": "DeviceMetric/0053cfd5-a427-4691-8690-b4d956c6e658"
},
"component": [
{
"code": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "CGM-rate-of-change",
"display": "CGM rate of change"
}
],
"text": "CGMRateOfChange"
},
"valueQuantity": {
"value": 1.2,
"unit": "mg/dL/min",
"system": "http://roche.com/fhir/rdc/cs",
"code": "mg/dL/min"
}
}
]
}
},
{
"resource": {
"resourceType": "Observation",
"id": "23c11158-e74b-4278-87bb-ff47af2d1965",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/sinovo",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB/434910001/2P0tI8p-SF9-6850/2020-08-03T23:40:00+02:00"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "434910001",
"display": "Interstitial fluid glucose concentration (observable entity)"
}
]
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850"
},
"performer": [
{
"reference": "Patient/2P0tI8p-SF9-6850"
}
],
"effectiveDateTime": "2020-08-03T23:40:00+02:00",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
],
"valueQuantity": {
"value": 87,
"unit": "mg/dL",
"system": "http://unitsofmeasure.org",
"code": "mg/dL"
},
"device": {
"reference": "DeviceMetric/0053cfd5-a427-4691-8690-b4d956c6e658"
},
"component": [
{
"code": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "CGM-rate-of-change",
"display": "CGM rate of change"
}
],
"text": "CGMRateOfChange"
},
"valueQuantity": {
"value": 1.2,
"unit": "mg/dL/min",
"system": "http://roche.com/fhir/rdc/cs",
"code": "mg/dL/min"
}
}
]
}
},
{
"resource": {
"resourceType": "Observation",
"id": "3e99225b-42ee-405c-8ab2-fe9fb9514ca5",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/sinovo",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB/434910001/2P0tI8p-SF9-6850/2020-08-03T23:45:00+02:00"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "434910001",
"display": "Interstitial fluid glucose concentration (observable entity)"
}
]
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850"
},
"performer": [
{
"reference": "Patient/2P0tI8p-SF9-6850"
}
],
"effectiveDateTime": "2020-08-03T23:45:00+02:00",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
],
"valueQuantity": {
"value": 88,
"unit": "mg/dL",
"system": "http://unitsofmeasure.org",
"code": "mg/dL"
},
"device": {
"reference": "DeviceMetric/0053cfd5-a427-4691-8690-b4d956c6e658"
},
"component": [
{
"code": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "CGM-rate-of-change",
"display": "CGM rate of change"
}
],
"text": "CGMRateOfChange"
},
"valueQuantity": {
"value": 1.2,
"unit": "mg/dL/min",
"system": "http://roche.com/fhir/rdc/cs",
"code": "mg/dL/min"
}
}
]
}
},
{
"resource": {
"resourceType": "Observation",
"id": "c28e5c79-813b-41f7-8c9e-dde3f6de4b51",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/sinovo",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB/434910001/2P0tI8p-SF9-6850/2020-08-03T23:50:00+02:00"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "434910001",
"display": "Interstitial fluid glucose concentration (observable entity)"
}
]
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850"
},
"performer": [
{
"reference": "Patient/2P0tI8p-SF9-6850"
}
],
"effectiveDateTime": "2020-08-03T23:50:00+02:00",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
],
"valueQuantity": {
"value": 88,
"unit": "mg/dL",
"system": "http://unitsofmeasure.org",
"code": "mg/dL"
},
"device": {
"reference": "DeviceMetric/0053cfd5-a427-4691-8690-b4d956c6e658"
},
"component": [
{
"code": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "CGM-rate-of-change",
"display": "CGM rate of change"
}
],
"text": "CGMRateOfChange"
},
"valueQuantity": {
"value": 1.2,
"unit": "mg/dL/min",
"system": "http://roche.com/fhir/rdc/cs",
"code": "mg/dL/min"
}
}
]
}
},
{
"resource": {
"resourceType": "Observation",
"id": "b156441b-6986-41eb-aa4e-21281f73cbab",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/sinovo",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB/434910001/2P0tI8p-SF9-6850/2020-08-03T23:55:00+02:00"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "434910001",
"display": "Interstitial fluid glucose concentration (observable entity)"
}
]
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850"
},
"performer": [
{
"reference": "Patient/2P0tI8p-SF9-6850"
}
],
"effectiveDateTime": "2020-08-03T23:55:00+02:00",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
],
"valueQuantity": {
"value": 89,
"unit": "mg/dL",
"system": "http://unitsofmeasure.org",
"code": "mg/dL"
},
"device": {
"reference": "DeviceMetric/0053cfd5-a427-4691-8690-b4d956c6e658"
},
"component": [
{
"code": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "CGM-rate-of-change",
"display": "CGM rate of change"
}
],
"text": "CGMRateOfChange"
},
"valueQuantity": {
"value": 1.2,
"unit": "mg/dL/min",
"system": "http://roche.com/fhir/rdc/cs",
"code": "mg/dL/min"
}
}
]
}
},
{
"resource": {
"resourceType": "Observation",
"id": "b73c724f-36da-497f-901c-485ab959375d",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/sinovo",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB/434910001/2P0tI8p-SF9-6850/2020-08-04T00:00:00+02:00"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "434910001",
"display": "Interstitial fluid glucose concentration (observable entity)"
}
]
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850"
},
"performer": [
{
"reference": "Patient/2P0tI8p-SF9-6850"
}
],
"effectiveDateTime": "2020-08-04T00:00:00+02:00",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
],
"valueQuantity": {
"value": 89,
"unit": "mg/dL",
"system": "http://unitsofmeasure.org",
"code": "mg/dL"
},
"device": {
"reference": "DeviceMetric/0053cfd5-a427-4691-8690-b4d956c6e658"
},
"component": [
{
"code": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "CGM-rate-of-change",
"display": "CGM rate of change"
}
],
"text": "CGMRateOfChange"
},
"valueQuantity": {
"value": 1.2,
"unit": "mg/dL/min",
"system": "http://roche.com/fhir/rdc/cs",
"code": "mg/dL/min"
}
}
]
}
},
{
"resource": {
"resourceType": "Observation",
"id": "8f8856f9-472b-439e-a23c-210ac42eeb9b",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/sinovo",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB/434910001/2P0tI8p-SF9-6850/2020-08-04T00:05:00+02:00"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "434910001",
"display": "Interstitial fluid glucose concentration (observable entity)"
}
]
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850"
},
"performer": [
{
"reference": "Patient/2P0tI8p-SF9-6850"
}
],
"effectiveDateTime": "2020-08-04T00:05:00+02:00",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
],
"valueQuantity": {
"value": 90,
"unit": "mg/dL",
"system": "http://unitsofmeasure.org",
"code": "mg/dL"
},
"device": {
"reference": "DeviceMetric/0053cfd5-a427-4691-8690-b4d956c6e658"
},
"component": [
{
"code": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "CGM-rate-of-change",
"display": "CGM rate of change"
}
],
"text": "CGMRateOfChange"
},
"valueQuantity": {
"value": 1.2,
"unit": "mg/dL/min",
"system": "http://roche.com/fhir/rdc/cs",
"code": "mg/dL/min"
}
}
]
}
},
{
"resource": {
"resourceType": "Observation",
"id": "13af36be-78b7-4e67-9fbd-72ca7f2ae049",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/sinovo",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB/434910001/2P0tI8p-SF9-6850/2020-08-04T00:10:00+02:00"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "434910001",
"display": "Interstitial fluid glucose concentration (observable entity)"
}
]
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850"
},
"performer": [
{
"reference": "Patient/2P0tI8p-SF9-6850"
}
],
"effectiveDateTime": "2020-08-04T00:10:00+02:00",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
],
"valueQuantity": {
"value": 90,
"unit": "mg/dL",
"system": "http://unitsofmeasure.org",
"code": "mg/dL"
},
"device": {
"reference": "DeviceMetric/0053cfd5-a427-4691-8690-b4d956c6e658"
},
"component": [
{
"code": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "CGM-rate-of-change",
"display": "CGM rate of change"
}
],
"text": "CGMRateOfChange"
},
"valueQuantity": {
"value": 1.2,
"unit": "mg/dL/min",
"system": "http://roche.com/fhir/rdc/cs",
"code": "mg/dL/min"
}
}
]
}
},
{
"resource": {
"resourceType": "Observation",
"id": "9d30f528-2f0d-4d5f-9a26-fc0a9b645ec6",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/sinovo",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB/434910001/2P0tI8p-SF9-6850/2020-08-04T00:15:00+02:00"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "434910001",
"display": "Interstitial fluid glucose concentration (observable entity)"
}
]
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850"
},
"performer": [
{
"reference": "Patient/2P0tI8p-SF9-6850"
}
],
"effectiveDateTime": "2020-08-04T00:15:00+02:00",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
],
"valueQuantity": {
"value": 91,
"unit": "mg/dL",
"system": "http://unitsofmeasure.org",
"code": "mg/dL"
},
"device": {
"reference": "DeviceMetric/0053cfd5-a427-4691-8690-b4d956c6e658"
},
"component": [
{
"code": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "CGM-rate-of-change",
"display": "CGM rate of change"
}
],
"text": "CGMRateOfChange"
},
"valueQuantity": {
"value": 1.2,
"unit": "mg/dL/min",
"system": "http://roche.com/fhir/rdc/cs",
"code": "mg/dL/min"
}
}
]
}
},
{
"resource": {
"resourceType": "Observation",
"id": "90875745-f4e9-4031-971c-2e8867c47e41",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/sinovo",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB/434910001/2P0tI8p-SF9-6850/2020-08-04T00:20:00+02:00"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "434910001",
"display": "Interstitial fluid glucose concentration (observable entity)"
}
]
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850"
},
"performer": [
{
"reference": "Patient/2P0tI8p-SF9-6850"
}
],
"effectiveDateTime": "2020-08-04T00:20:00+02:00",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
],
"valueQuantity": {
"value": 91,
"unit": "mg/dL",
"system": "http://unitsofmeasure.org",
"code": "mg/dL"
},
"device": {
"reference": "DeviceMetric/0053cfd5-a427-4691-8690-b4d956c6e658"
},
"component": [
{
"code": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "CGM-rate-of-change",
"display": "CGM rate of change"
}
],
"text": "CGMRateOfChange"
},
"valueQuantity": {
"value": 1.2,
"unit": "mg/dL/min",
"system": "http://roche.com/fhir/rdc/cs",
"code": "mg/dL/min"
}
}
]
}
},
{
"resource": {
"resourceType": "Observation",
"id": "7798bfe2-c2f1-4c3a-9b87-567c8c63d938",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/sinovo",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB/434910001/2P0tI8p-SF9-6850/2020-08-04T00:25:00+02:00"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "434910001",
"display": "Interstitial fluid glucose concentration (observable entity)"
}
]
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850"
},
"performer": [
{
"reference": "Patient/2P0tI8p-SF9-6850"
}
],
"effectiveDateTime": "2020-08-04T00:25:00+02:00",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
],
"dataAbsentReason": {
"coding": [
{
"system": "http://hl7.org/fhir/data-absent-reason",
"code": "NaN",
"display": "Not a Number"
}
]
},
"device": {
"reference": "DeviceMetric/0053cfd5-a427-4691-8690-b4d956c6e658"
}
}
},
{
"resource": {
"resourceType": "Observation",
"id": "18e3e422-eb5d-49ab-be94-bef29b1f8dc9",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/sinovo",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB/434910001/2P0tI8p-SF9-6850/2020-08-04T00:30:00+02:00"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "434910001",
"display": "Interstitial fluid glucose concentration (observable entity)"
}
]
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850"
},
"performer": [
{
"reference": "Patient/2P0tI8p-SF9-6850"
}
],
"effectiveDateTime": "2020-08-04T00:30:00+02:00",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
],
"dataAbsentReason": {
"coding": [
{
"system": "http://hl7.org/fhir/v3/NullFlavor",
"code": "NINF",
"display": "negative infinity"
}
]
},
"device": {
"reference": "DeviceMetric/0053cfd5-a427-4691-8690-b4d956c6e658"
},
"component": [
{
"code": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "CGM-rate-of-change",
"display": "CGM rate of change"
}
],
"text": "CGMRateOfChange"
},
"valueQuantity": {
"value": 1.2,
"unit": "mg/dL/min",
"system": "http://roche.com/fhir/rdc/cs",
"code": "mg/dL/min"
}
}
]
}
},
{
"resource": {
"resourceType": "Observation",
"id": "a43f2680-b31b-4701-a228-8416b75ce787",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/sinovo",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB/434910001/2P0tI8p-SF9-6850/2020-08-04T00:35:00+02:00"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "434910001",
"display": "Interstitial fluid glucose concentration (observable entity)"
}
]
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850"
},
"performer": [
{
"reference": "Patient/2P0tI8p-SF9-6850"
}
],
"effectiveDateTime": "2020-08-04T00:35:00+02:00",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
],
"dataAbsentReason": {
"coding": [
{
"system": "http://hl7.org/fhir/v3/NullFlavor",
"code": "PINF",
"display": "positive infinity"
}
]
},
"device": {
"reference": "DeviceMetric/0053cfd5-a427-4691-8690-b4d956c6e658"
},
"component": [
{
"code": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "CGM-rate-of-change",
"display": "CGM rate of change"
}
],
"text": "CGMRateOfChange"
},
"valueQuantity": {
"value": 1.2,
"unit": "mg/dL/min",
"system": "http://roche.com/fhir/rdc/cs",
"code": "mg/dL/min"
}
}
]
}
}
]
}
Sample 2 - CGM data with no fixed interval
Sample Roche JSON from SINOVO
{
"description": {
"id": "1",
"type": "cgm transmitter",
"manufacturer": "Dev",
"name": "CGM_Dev",
"serial number": "SCC-TkcxHsM0NTY4SB",
......
"sampling interval": [1 , "min"]
},
......
"data": [
{
"type": "cgm session",
"number": 1,
"start time": "2020-08-04T10:30:00+02:00",
"end time": "2020-08-04T11:00:00+02:00",
"header": [
{
"type": "runtime", "unit": "min"
},
{
"type": "timestamp"
},
{
"type": "cgm", "unit": "mg/dL"
},
{
"type": "rate of change", "unit": "(mg/dL)/min"
}],
"sequences": [[[0,"2020-08-04T10:30:00+02:00"],
[5,87,"NaN"],
[10,88,"NaN"],
[0,89,"NaN"],
[4,89,"NaN"],
[6,89,"NaN"],
[5,90,"NaN"]
]]
Expected FHIR
{
"id": "1318898c-3553-4643-95cd-4f9884ce0b52",
"resourceType": "Bundle",
"type": "message",
"entry": [
{
"resource": {
"id": "id-messageHeader",
"resourceType": "MessageHeader",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/message-header"
]
},
"event": {
"system": "http://roche.com/fhir/rdc/message-type",
"code": "new-bundle",
"display": "New bundle generated"
},
"timestamp": "2020-08-04T16:00:16Z",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/gdpr-controller",
"valueString": "<GDPR controller>"
}
],
"source": {
"name": "SINOVO",
"software": "UDTC",
"version": "1.0.20",
"endpoint": "https://uudev-internal.rochedc.accentureanalytics.com/fhirmsg/rdc/v1.0.0/$process-message"
}
}
},
{
"resource": {
"id": "id-device",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/phg-device"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/device",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20"
}
],
"resourceType": "Device",
"status": "active",
"type": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cdf",
"code": "cdf.dev.im",
"display": "Manual interface"
}
]
},
"manufacturer": "SINOVO",
"model": "SINOVO Connection Center",
"version": "1.0.20"
}
},
{
"resource": {
"id": "id-deviceComponent-cgm-transmitter",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/phd-devicecomponent"
]
},
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/cgm-session-count",
"valueInteger": 3
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/device-component-paired-ip",
"valueReference": {
"reference": "DeviceComponent/id-deviceComponent-smartphone"
}
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/device-component-connected-ip",
"valueReference": {
"reference": "DeviceComponent/id-deviceComponent-smartphone"
}
}
],
"resourceType": "DeviceComponent",
"identifier": {
"system": "http://roche.com/fhir/rdc/sid/device-identifier",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB"
},
"type": {
"coding": [
{
"system": "http://ncimeta.nci.nih.gov",
"code": "C1971397",
"display": "External transmitter, cgm"
}
]
},
"source": {
"reference": "Device/id-device"
},
"measurementPrinciple": "other",
"productionSpecification": [
{
"specType": {
"coding": [
{
"system": "http://hl7.org/fhir/specification-type",
"code": "unspecified",
"display": "Unspecified Production Specification"
}
]
},
"productionSpec": "CGM_Dev"
},
{
"specType": {
"coding": [
{
"system": "http://hl7.org/fhir/specification-type",
"code": "serial-number",
"display": "Serial Number"
}
]
},
"productionSpec": "SCC-TkcxHsM0NTY4SB"
},
{
"specType": {
"coding": [
{
"system": "http://ncimeta.nci.nih.gov",
"code": "C0947322",
"display": "Manufacturer"
}
]
},
"productionSpec": "Dev"
}
]
}
},
{
"resource": {
"resourceType": "DeviceMetric",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/dm-device-metric"
]
},
"id": "0053cfd5-a427-4691-8690-b4d956c6e658",
"identifier": {
"system": "http://roche.com/fhir/rdc/sid/devicemetric-identifier",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB/2344-0"
},
"type": {
"coding": [
{
"system": "http://loinc.org",
"code": "2344-0",
"display": "Glucose [Mass/volume] in Body fluid"
}
]
},
"unit": {
"coding": [
{
"system": "http://unitsofmeasure.org",
"code": "mg/dL",
"display": "milligram per deciliter"
}
]
},
"source": {
"reference": "Device/id-device"
},
"parent": {
"reference": "DeviceComponent/id-deviceComponent-cgm-transmitter"
},
"operationalStatus": "on",
"category": "measurement",
"measurementPeriod": {
"repeat": {
"frequency": 1,
"period": 1,
"periodUnit": "min"
}
}
}
},
{
"resource": {
"resourceType": "Observation",
"id": "1e6f0b94-1519-4f95-b50c-758fa3d4ac4b",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/sinovo",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB/434910001/2P0tI8p-SF9-6850/2020-08-04T10:35:00+02:00"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "434910001",
"display": "Interstitial fluid glucose concentration (observable entity)"
}
]
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850"
},
"performer": [
{
"reference": "Patient/2P0tI8p-SF9-6850"
}
],
"effectiveDateTime": "2020-08-04T10:35:00+02:00",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
],
"valueQuantity": {
"value": 87,
"unit": "mg/dL",
"system": "http://unitsofmeasure.org",
"code": "mg/dL"
},
"device": {
"reference": "DeviceMetric/0053cfd5-a427-4691-8690-b4d956c6e658"
},
"component": [
{
"code": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "CGM-rate-of-change",
"display": "CGM rate of change"
}
],
"text": "CGMRateOfChange"
},
"valueQuantity": {
"value": 1.2,
"unit": "mg/dL/min",
"system": "http://roche.com/fhir/rdc/cs",
"code": "mg/dL/min"
}
}
]
}
},
{
"resource": {
"resourceType": "Observation",
"id": "23c11158-e74b-4278-87bb-ff47af2d1965",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/sinovo",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB/434910001/2P0tI8p-SF9-6850/2020-08-04T10:45:00+02:00"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "434910001",
"display": "Interstitial fluid glucose concentration (observable entity)"
}
]
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850"
},
"performer": [
{
"reference": "Patient/2P0tI8p-SF9-6850"
}
],
"effectiveDateTime": "2020-08-04T10:45:00+02:00",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
],
"valueQuantity": {
"value": 88,
"unit": "mg/dL",
"system": "http://unitsofmeasure.org",
"code": "mg/dL"
},
"device": {
"reference": "DeviceMetric/0053cfd5-a427-4691-8690-b4d956c6e658"
},
"component": [
{
"code": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "CGM-rate-of-change",
"display": "CGM rate of change"
}
],
"text": "CGMRateOfChange"
},
"valueQuantity": {
"value": 1.2,
"unit": "mg/dL/min",
"system": "http://roche.com/fhir/rdc/cs",
"code": "mg/dL/min"
}
}
]
}
},
{
"resource": {
"resourceType": "Observation",
"id": "3e99225b-42ee-405c-8ab2-fe9fb9514ca5",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/sinovo",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB/434910001/2P0tI8p-SF9-6850/2020-08-04T10:45:01+02:00"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "434910001",
"display": "Interstitial fluid glucose concentration (observable entity)"
}
]
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850"
},
"performer": [
{
"reference": "Patient/2P0tI8p-SF9-6850"
}
],
"effectiveDateTime": "2020-08-04T10:45:01+02:00",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
],
"valueQuantity": {
"value": 89,
"unit": "mg/dL",
"system": "http://unitsofmeasure.org",
"code": "mg/dL"
},
"device": {
"reference": "DeviceMetric/0053cfd5-a427-4691-8690-b4d956c6e658"
},
"component": [
{
"code": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "CGM-rate-of-change",
"display": "CGM rate of change"
}
],
"text": "CGMRateOfChange"
},
"valueQuantity": {
"value": 1.2,
"unit": "mg/dL/min",
"system": "http://roche.com/fhir/rdc/cs",
"code": "mg/dL/min"
}
}
]
}
},
{
"resource": {
"resourceType": "Observation",
"id": "c28e5c79-813b-41f7-8c9e-dde3f6de4b51",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/sinovo",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB/434910001/2P0tI8p-SF9-6850/2020-08-04T10:49:00+02:00"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "434910001",
"display": "Interstitial fluid glucose concentration (observable entity)"
}
]
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850"
},
"performer": [
{
"reference": "Patient/2P0tI8p-SF9-6850"
}
],
"effectiveDateTime": "2020-08-04T10:49:00+02:00",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
],
"valueQuantity": {
"value": 89,
"unit": "mg/dL",
"system": "http://unitsofmeasure.org",
"code": "mg/dL"
},
"device": {
"reference": "DeviceMetric/0053cfd5-a427-4691-8690-b4d956c6e658"
},
"component": [
{
"code": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "CGM-rate-of-change",
"display": "CGM rate of change"
}
],
"text": "CGMRateOfChange"
},
"valueQuantity": {
"value": 1.2,
"unit": "mg/dL/min",
"system": "http://roche.com/fhir/rdc/cs",
"code": "mg/dL/min"
}
}
]
}
},
{
"resource": {
"resourceType": "Observation",
"id": "b156441b-6986-41eb-aa4e-21281f73cbab",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/sinovo",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB/434910001/2P0tI8p-SF9-6850/2020-08-04T10:55:00+02:00"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "434910001",
"display": "Interstitial fluid glucose concentration (observable entity)"
}
]
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850"
},
"performer": [
{
"reference": "Patient/2P0tI8p-SF9-6850"
}
],
"effectiveDateTime": "2020-08-04T10:55:00+02:00",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
],
"valueQuantity": {
"value": 89,
"unit": "mg/dL",
"system": "http://unitsofmeasure.org",
"code": "mg/dL"
},
"device": {
"reference": "DeviceMetric/0053cfd5-a427-4691-8690-b4d956c6e658"
},
"component": [
{
"code": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "CGM-rate-of-change",
"display": "CGM rate of change"
}
],
"text": "CGMRateOfChange"
},
"valueQuantity": {
"value": 1.2,
"unit": "mg/dL/min",
"system": "http://roche.com/fhir/rdc/cs",
"code": "mg/dL/min"
}
}
]
}
},
{
"resource": {
"resourceType": "Observation",
"id": "b73c724f-36da-497f-901c-485ab959375d",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/sinovo",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/C1971397/SCC-TkcxHsM0NTY4SB/434910001/2P0tI8p-SF9-6850/2020-08-04T11:00:00+02:00"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "434910001",
"display": "Interstitial fluid glucose concentration (observable entity)"
}
]
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850"
},
"performer": [
{
"reference": "Patient/2P0tI8p-SF9-6850"
}
],
"effectiveDateTime": "2020-08-04T11:00:00+02:00",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
],
"valueQuantity": {
"value": 90,
"unit": "mg/dL",
"system": "http://unitsofmeasure.org",
"code": "mg/dL"
},
"device": {
"reference": "DeviceMetric/0053cfd5-a427-4691-8690-b4d956c6e658"
},
"component": [
{
"code": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "CGM-rate-of-change",
"display": "CGM rate of change"
}
],
"text": "CGMRateOfChange"
},
"valueQuantity": {
"value": 1.2,
"unit": "mg/dL/min",
"system": "http://roche.com/fhir/rdc/cs",
"code": "mg/dL/min"
}
}
]
}
}
]
}
CGM Session
Sample Scenario
| Data Point | Value | unit |
|---|---|---|
| data → number | 1 | number for the session |
| data → start time | 2020-08-03T05:00:00Z | UTC |
| data → end time | 2020-08-03T10:00:00Z | UTC |
The following points have to be considered while mapping to FHIR:
- For cases when sensor details are provided in RocheJson:
RocheJson2FHIR mapper needs to create sensor device component and device metric resources.Mapper needs to point Transmitter devicecomponent as parent for sensor device component.Sensor Devicemetric will be referenced in Session Observation.
Identifier for the Observation resource is built as:
<session-number>/<DeviceComponent.Identifier.value>/<Obsrevation.code>/<Patient-FHIR-ID>/<Observation.effectivePeriod.start>/<Observation.effectivePeriod.end>
Observation resource for CGM Session
{
"resourceType": "Observation",
"id": "1e6f0b94-2345-4f95-b50c-758fa3d4ac4b",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/miscellaneous-observation"
]
},
"extension": [{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+09:00"
}],
"identifier": [{
"system": "http://roche.com/fhir/rdc/sid/observation/sinovo",
"value": "unique identifier"
}],
"status": "final",
"code": {
"coding": [{
"system": "http://roche.com/fhir/rdc/cs",
"code": "CGM-session",
"display": "CGM Session"
}],
"text": "CGMSession"
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850"
},
"performer": [{
"reference": "Patient/2P0tI8p-SF9-6850"
}],
"effectivePeriod": {
"start": "2020-08-03T05:00:00Z",
"end": "2020-08-03T10:00:00Z"
},
"dataAbsentReason": {
"coding": [{
"system": "http://hl7.org/fhir/data-absent-reason",
"code": "unknown",
"display": "Unknown"
}]
},
"device": {
"reference": "DeviceMetric/sensor-device-metric-001"
}
}
Settings
Warning timeslots
Data Events - EMWR
Sample Scenario
| Data Point | Value | unit |
|---|---|---|
| data → timestamp | 2020-08-03T05:00:00Z | UTC |
| data → event | W-126 - Cgm session not started | |
| data → reaction | acknowledged | Possible values : "acknowledged", "missed", "snoozed", "suppressed", "other" |
Note : Reference to the observation EWM resource is made from the source resource having the event trigerred.
Observation resource for event - EWM
{
"resourceType": "Observation",
"id": "id-observation-EMWR-W-126",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/observation-EWM"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/sinovo",
"value": "cdf.dev.im/SINOVO/SINOVOConnectionCenter/1.0.20/smartPhone/SCC-TkcxHsM0NTY4SB/SamsungGalaxy/WARNING/W-126/2P0tI8p-SF9-6850/2020-04-26T10:55:00+09:00"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "EWM",
"display": "Error, Warning, Maintenance, Status"
}
]
}
],
"code": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "WARNING",
"display": "Warning"
}
]
},
"subject": {
"reference": "Patient/2P0tI8p-SF9-6850"
},
"effectiveDateTime": "2020-04-26T10:55:00+09:00",
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+09:00"
}
],
"performer": [
{
"reference": "Patient/2P0tI8p-SF9-6850"
}
],
"valueCodeableConcept": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "W-126",
"display": "Cgm session not started"
}
]
},
"device": {
"reference": "Device/id-device"
},
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/event-reaction",
"valueString": "acknowledged"
}
]
}
EMWR Event Type
This section describes handling different EMWR types like Error, Warning, Maintenance, Information. The following coding section needs to be added to the Observation.valueCodeableConcept, based on the type of the Event.
For example:
"code": { "coding": [ { "system": "http://roche.com/fhir/rdc/cs", "code": "WARNING", "display": "Warning" } ] }
FHIR coding for all possible sample types - Event types
| Sample type | System | Code | Display |
|---|---|---|---|
| Error | http://roche.com/fhir/rdc/cs | ERROR | Error |
| Maintenance | http://roche.com/fhir/rdc/cs | MAINTENANCE | Maintenance |
| Warning | http://roche.com/fhir/rdc/cs | WARNING | Warning |
| Reminder | http://roche.com/fhir/rdc/cs | REMINDER | Reminder |
| Message | http://roche.com/fhir/rdc/cs | INFO | Info |
EMWR Event Name
This section describes handling different EMWR names mentioned in the table below. The event name from the table is added to valueCodeableConcept section "Observation.valueCodeableConcept", based on the type of the Event.
For example:
"valueCodeableConcept": { "coding": [ { "system": "http://roche.com/fhir/rdc/cs", "code": "W-126", "display": "Cgm session not started" } ] }
FHIR coding for all possible sample types - Event Names
| Event type | System | Code | Display |
|---|---|---|---|
| Error | http://roche.com/fhir/rdc/cs | E-101 | Transmitter not found |
| Error | http://roche.com/fhir/rdc/cs | E-102 | CGM app was terminated due to an internal error |
| Error | http://roche.com/fhir/rdc/cs | E-104 | Memory full |
| Error | http://roche.com/fhir/rdc/cs | E-105 | Time outside of limits |
| Error | http://roche.com/fhir/rdc/cs | E-106 | Data integrity corrupted |
| Error | http://roche.com/fhir/rdc/cs | E-107 | Error in flow monitor |
| Error | http://roche.com/fhir/rdc/cs | E-108 | Error in flow control |
| Error | http://roche.com/fhir/rdc/cs | E-111 | CGM was terminated due to an EMWR error |
| Error | http://roche.com/fhir/rdc/cs | E-112 | Session ended because wrong dialog was shown |
| Error | http://roche.com/fhir/rdc/cs | E-125 | Incorrect CGM system |
| Information | http://roche.com/fhir/rdc/cs | I-101 | Calibration not possible |
| Information | http://roche.com/fhir/rdc/cs | I-102 | End session rcommended (repeating sensor failures) |
| Information | http://roche.com/fhir/rdc/cs | I-103 | Calibration failed |
| Maintenance | http://roche.com/fhir/rdc/cs | M-102 | Incorrect sensor type |
| Maintenance | http://roche.com/fhir/rdc/cs | M-115 | Sensor must be calibrated |
| Maintenance | http://roche.com/fhir/rdc/cs | M-116 | Transmitter battery empty |
| Maintenance | http://roche.com/fhir/rdc/cs | M-117 | Sensor malfunctioning |
| Maintenance | http://roche.com/fhir/rdc/cs | M-118 | Connection lost to transmitter |
| Maintenance | http://roche.com/fhir/rdc/cs | M-119 | No transmitter in range |
| Maintenance | http://roche.com/fhir/rdc/cs | M-120 | Session ended because sensor operation time expired |
| Maintenance | http://roche.com/fhir/rdc/cs | M-122 | Sensor temperature too low |
| Maintenance | http://roche.com/fhir/rdc/cs | M-123 | Sensor temperature too high |
| Maintenance | http://roche.com/fhir/rdc/cs | M-124 | Smartphone battery almost empty |
| Maintenance | http://roche.com/fhir/rdc/cs | M-125 | Connection failure to transmitter |
| Remainder | http://roche.com/fhir/rdc/cs | R-100 | Calibration required reminder |
| Remainder | http://roche.com/fhir/rdc/cs | R-101 | Calibration recommended |
| Remainder | http://roche.com/fhir/rdc/cs | R-102 | CGM session will end soon |
| Warning | http://roche.com/fhir/rdc/cs | W-101 | Incorrect pin |
| Warning | http://roche.com/fhir/rdc/cs | W-103 | Invalid bg/insulin/carb entry |
| Warning | http://roche.com/fhir/rdc/cs | W-107 | Transmitter malfunctioning |
| Warning | http://roche.com/fhir/rdc/cs | W-108 | Sensor malfunctioning |
| Warning | http://roche.com/fhir/rdc/cs | W-109 | Cannot undo action |
| Warning | http://roche.com/fhir/rdc/cs | W-111 | End cgm session confirmation |
| Warning | http://roche.com/fhir/rdc/cs | W-112 | Smartphone rooted |
| Warning | http://roche.com/fhir/rdc/cs | W-126 | Cgm session not started |
| Warning | http://roche.com/fhir/rdc/cs | W-130 | Smartphone not supported |
| Warning | http://roche.com/fhir/rdc/cs | W-132 | High CGM warning |