Sample scenario:

  1. Systolic blood pressure - 140 mm[Hg] and Diastolic blood pressure - 84 mm[Hg] is recorded by manual entry on the smart phone.
  2. Ketone - 5.0 mmol/L is recorded by manual entry on the smart phone.
  3. hba1c - 41 mmol/mol is recorded by manual entry on the smart phone.
  4. Body weight - 65 Kg is recorded by manual entry on the smart phone.
  5. Body mass index (BMI) [Ratio] -20.1 kg/m2  is recorded by manual entry on the smart phone.
  6. Note - Freetext is recorded by manual entry on the smart phone (applicable to all logentry datapoints)

FHIR bundle:

{
"resourceType": "Bundle",
"id": "1318898c-3553-4643-95cd-4f9884ce0b52",
"type": "message",
"entry": [
{
"resourceType": "MessageHeader",
"id": "id-messageHeader",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/message-header"
]
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/gdpr-controller",
"valueString": "<GDPR controller>"
}
],
"event": {
"system": "http://roche.com/fhir/rdc/message-type",
"code": "new-bundle",
"display": "New bundle generated"
},
"timestamp": "2020-06-24T13:00:16+00:00",
"source": {
"name": "mySugrApp",
"software": "mySugrBackend",
"version": "x.x",
"endpoint": "https://uudev-internal.rochedc.accentureanalytics.com/fhirmsg/rdc/v1.0.0/$process-message"
}
}
},
{
"resourceType": "Device",
"id": "id-device",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/phg-device"
]
},
"status": "active",
"type": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cdf",
"code": "cdf.dev.im",
"display": "Manual interface"
}
]
},
"manufacturer": "mySugr",
"model": "mySugrApp",
"version": "x.x"
}
},
{
"resourceType": "DeviceComponent",
"id": "id-deviceComponent-smartPhone",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/phd-devicecomponent"
]
},
"system": "http://roche.com/fhir/rdc/sid/device-identifier",
"value": "mySugrApp/712/450274815"
},
"type": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "smartPhone",
"display": "Smart Phone"
}
]
},
"lastSystemChange": "2020-06-24T13:05:16+00:00",
"source": {
"reference": "Device/id-device"
},
{
"coding": [
{
"system": "http://hl7.org/fhir/specification-type",
"code": "serial-number",
"display": "Serial Number"
}
]
},
"productionSpec": "450274815"
},
{
"coding": [
{
"system": "http://hl7.org/fhir/specification-type",
"code": "unspecified",
"display": "Unspecified Production Specification"
}
]
},
"productionSpec": "mySugrApp"
},
{
"coding": [
{
"system": "http://hl7.org/fhir/specification-type",
"code": "part-number",
"display": "Part Number"
}
]
},
}
]
}
},
{
"resourceType": "DeviceMetric",
"id": "id-deviceMetric-blood-pressure",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/dm-device-metric"
]
},
"system": "http://roche.com/fhir/rdc/sid/devicemetric-identifier",
"value": "75367002"
},
"type": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "75367002",
"display": "Blood pressure (observable entity)"
}
]
},
"unit": {
"coding": [
{
"system": "http://unitsofmeasure.org",
"code": "mm[Hg]",
"display": "millimeter of mercury"
}
]
},
"source": {
"reference": "Device/id-device"
},
"parent": {
"reference": "DeviceComponent/id-deviceComponent-smartPhone"
},
"category": "measurement"
}
},
{
"resourceType": "DeviceMetric",
"id": "id-deviceMetric-Ketone",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/dm-device-metric"
]
},
"system": "http://roche.com/fhir/rdc/sid/devicemetric-identifier",
"value": "59431004"
},
"type": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "59431004",
"display": "Ketone (substance)"
}
]
},
"unit": {
"coding": [
{
"system": "http://unitsofmeasure.org",
"code": "mmol/L",
"display": "millimole per liter"
}
]
},
"source": {
"reference": "Device/id-device"
},
"parent": {
"reference": "DeviceComponent/id-deviceComponent-smartPhone"
},
"category": "measurement"
}
},
{
"resourceType": "DeviceMetric",
"id": "id-deviceMetric-hba1c",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/dm-device-metric"
]
},
"system": "http://roche.com/fhir/rdc/sid/devicemetric-identifier",
"value": "59261-8"
},
"type": {
"coding": [
{
"system": "http://loinc.org",
"code": "59261-8",
"display": "Hemoglobin A1c/Hemoglobin.total in Blood by IFCC protocol"
}
]
},
"unit": {
"coding": [
{
"system": "http://unitsofmeasure.org",
"code": "mmol/mol",
"display": "millimole per mole"
}
]
},
"source": {
"reference": "Device/id-device"
},
"parent": {
"reference": "DeviceComponent/id-deviceComponent-smartPhone"
},
"category": "measurement"
}
},
{
"resourceType": "DeviceMetric",
"id": "id-deviceMetric-Body-weight",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/dm-device-metric"
]
},
"system": "http://roche.com/fhir/rdc/sid/devicemetric-identifier",
"value": "726527001"
},
"type": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "726527001",
"display": "Weight (property) (qualifier value)"
}
]
},
"unit": {
"coding": [
{
"system": "http://unitsofmeasure.org",
"code": "kg",
"display": "kilogram"
}
]
},
"source": {
"reference": "Device/id-device"
},
"parent": {
"reference": "DeviceComponent/id-deviceComponent-smartPhone"
},
"category": "measurement"
}
},
{
"resourceType": "DeviceMetric",
"id": "id-deviceMetric-BMI",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/dm-device-metric"
]
},
"system": "http://roche.com/fhir/rdc/sid/devicemetric-identifier",
"value": "39156-5"
},
"type": {
"coding": [
{
"system": "http://loinc.org",
"code": "39156-5",
"display": "Body mass index (BMI) [Ratio]"
}
]
},
"unit": {
"coding": [
{
"system": "http://unitsofmeasure.org",
"code": "kg/m2",
"display": "kilogram / (meter ^ 2)"
}
]
},
"source": {
"reference": "Device/id-device"
},
"parent": {
"reference": "DeviceComponent/id-deviceComponent-smartPhone"
},
"category": "calculation"
}
},
{
"resourceType": "Observation",
"id": "id-observation-blood-pressure",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/registered-timestamp",
"valueDateTime": "2020-06-24T13:00:00Z"
}
],
{
"system": "http://roche.com/fhir/rdc/sid/observation/mySugr",
"value": "<unique-obs-id>"
}
],
"status": "final",
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "75367002",
"display": "Blood pressure (observable entity)"
}
]
},
"subject": {
"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
},
"effectiveDateTime": "2020-06-24T13:00:16Z",
{
"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
}
],
"comment": "this is test note",
"device": {
"reference": "DeviceMetric/id-deviceMetric-blood-pressure"
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "271649006",
"display": "Systolic blood pressure (observable entity)"
}
]
},
"value": 140,
"unit": "mm[Hg]",
"system": "http://unitsofmeasure.org",
"code": "mm[Hg]"
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "271650006",
"display": "Diastolic blood pressure (observable entity)"
}
]
},
"value": 84,
"unit": "mm[Hg]",
"system": "http://unitsofmeasure.org",
"code": "mm[Hg]"
}
}
]
}
},
{
"resourceType": "Observation",
"id": "id-observation-Ketone",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/laboratory-observation"
]
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/registered-timestamp",
"valueDateTime": "2020-06-24T13:00:00Z"
}
],
{
"system": "http://roche.com/fhir/rdc/sid/observation/mySugr",
"value": "<unique-obs-id>"
}
],
"status": "final",
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "laboratory",
"display": "Laboratory"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "59431004",
"display": "Ketone (substance)"
}
]
},
"subject": {
"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
},
"effectiveDateTime": "2020-06-24T13:00:16Z",
"value": 5,
"unit": "mmol/L",
"system": "http://unitsofmeasure.org",
"code": "mmol/L"
},
"device": {
"reference": "DeviceMetric/id-deviceMetric-Ketone"
}
}
},
{
"resourceType": "Observation",
"id": "id-observation-hba1c",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/laboratory-observation"
]
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/registered-timestamp",
"valueDateTime": "2020-06-24T13:00:00Z"
}
],
{
"system": "http://roche.com/fhir/rdc/sid/observation/mySugr",
"value": "<unique-obs-id>"
}
],
"status": "final",
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "laboratory",
"display": "Laboratory"
}
]
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "59261-8",
"display": "Hemoglobin A1c/Hemoglobin.total in Blood by IFCC protocol"
}
]
},
"subject": {
"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
},
"effectiveDateTime": "2020-06-24T13:00:16Z",
"value": 41,
"unit": "mmol/mol",
"system": "http://unitsofmeasure.org",
"code": "mmol/mol"
},
"device": {
"reference": "DeviceMetric/id-deviceMetric-hba1c"
}
}
},
{
"resourceType": "Observation",
"id": "id-observation-body-weight",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/registered-timestamp",
"valueDateTime": "2020-06-24T13:00:00Z"
}
],
{
"system": "http://roche.com/fhir/rdc/sid/observation/mySugr",
"value": "<unique-obs-id>"
}
],
"status": "final",
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "29463-7",
"display": "Body weight"
}
]
},
"subject": {
"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
},
"effectiveDateTime": "2020-06-24T13:00:16Z",
{
"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
}
],
"value": 65,
"unit": "kg",
"system": "http://unitsofmeasure.org",
"code": "kg"
},
"comment": "this is test note",
"device": {
"reference": "DeviceMetric/id-deviceMetric-Body-weight"
}
}
},
{
"resourceType": "Observation",
"id": "id-observation-BMI",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/vitalsigns-observation"
]
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/registered-timestamp",
"valueDateTime": "2020-06-24T13:00:16Z"
}
],
{
"system": "http://roche.com/fhir/rdc/sid/observation/mySugr",
"value": "<unique-obs-id>"
}
],
"status": "final",
{
"coding": [
{
"system": "http://hl7.org/fhir/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "39156-5",
"display": "Body mass index (BMI) [Ratio]"
}
]
},
"subject": {
"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
},
"effectiveDateTime": "2020-06-24T13:00:16Z",
{
"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
}
],
"value": 20.1,
"unit": "kg/m2",
"system": "http://unitsofmeasure.org",
"code": "kg/m2"
},
"comment": "this is test note",
"device": {
"reference": "DeviceMetric/id-deviceMetric-BMI"
}
}
}
]
}

Tags [Deprecated]

Sample scenario:

The following scenario is when the tags are entered standalone (not associated with any other measurement). For the sake of simplicity we have considered a scenario where all the tags are selected.

NOTE: Subject to change depending on the spike for analysing tags - FHIRSTACK-1630

Tag code - display detail
ALLERGIES 419199007 - Allergy to substance (finding) Health-event-observation
BINGING 248122005 - Binging (finding) Health-event-observation
CARB_GUESS 225387002 - Nutrient intake assessment (procedure) Health-event-observation
CATHETER_CHANGE Replacement of catheter (procedure) observation-EWM
CHILLING 128975004 - Resting state (finding) Health-event-observation
DRIVING 129060000 - Driving (observable entity) extension event-timing
DRUNK 102897001 - Feeling drunk Health-event-observation
EATING_OUT 162544008 - Eats in restaurants (finding) extension event-timing
EXCITED 224969003 - Feeling excited (finding) health-event-observation
FOOT_ON_THE_FLOOR 398140007 - Somogyi phenomenon Health-event-observation
HAPPY 112080002 - Cheerful mood (finding) health-event-observation
HEADACHE 25064002 - Headache (finding) Health-event-observation
HOUSEWORK 129014002 - Doing housework (observable entity) extension event-timing
HUNG_OVER 32553006 - Hangover (finding) Health-event-observation
MENSTRUATION 307428004 - During menstruation (qualifier value) Health-event-observation
NEEDLE_CHANGE 384728007 - Replacement of device (procedure) observation-EWM
NERVOUS 424196004 - Feeling nervous (finding) Health-event-observation
OFFICE_WORK 160923008 - Sedentary job (finding) extension event-timing
ON_THE_ROAD 129018004 - Traveling (observable entity) extension event-timing
PAIN 22253000 - Pain (finding) Health-event-observation
PARTY 405075006 - Social involvement behavior (observable entity) extension event-timing
PISSED_OFF 75408008 - Feeling angry (finding) Health-event-observation
REAL_WORK 261041009 - Working, function (observable entity) extension event-timing
SAD 420038007 - Feeling unhappy (finding) Health-event-observation
SHIFT_WORK 266961004 - Shift worker (finding) extension event-timing
SHOPPING 129011005 - Shopping (observable entity) extension event-timing
SLEEPING 258158006 - Sleep, function (observable entity) extension event-timing
SPECIAL_SITUATION 74964007 - Other (qualifier value) extension event-timing
SPORTS 14468000 - Sports activity (observable entity) extension event-timing
TIRED 224960004 - Tired (finding) Health-event-observation
TRAVELLING 129018004 - Traveling (observable entity) extension event-timing
VACATION 160928004 - Amount of time off work (observable entity) extension event-timing
WORK 224409005 - Time spent working away from home (observable entity) extension event-timing

FHIR bundle:

Command 'json' could not render: File not found for 'subject=example-mySugr-DG3-tags-deprecated'

Tags [Revised approach]

This approach to handle TAGS is focused on capturing the concept in a generic and de-coupled way. Also, not changing the approach entirely for BG tags since that will impact the current integration with RDCP.

The mySugr TAGs are basically catogorized as follows.

  • event-timing (like after-meal, bedtime etc). They basically define the timing of the measurement wrt meals, sports etc.
  • diet-intake (like breakfast, lunch etc). These are tags that indicate a meal intake
  • health-event (stress, nervous etc..). These are tags that indicate a feeling/health status of the user
  • activity (like sports, driving etc.). These are tags that indicate an activity a user performed
  • event related to device (like catheter change, needle change). These are events related to a device.

Each TAG can fall under one or more than one category depending on the scenario. For instance, the tag "driving" could be an activity observation when standalone and when accompanied with any measurement it also means an event-timing.

TAGs Data Group 3:

mySugr Tag Category FHIR Modelling when STANDALONE FHIR Modelling when associated with BG FHIR Modelling when associated with any other measurement
ALLERGIES health-event health-event (standalone) health-event-observation (referenced in the BG Observation) health-event-observation (standalone)
CARB_GUESS** health-event health-event (standalone) health-event-observation (referenced in the BG Observation) health-event-observation (standalone)
CHILLING health-event health-event (standalone) health-event-observation (referenced in the BG Observation) health-event-observation (standalone)
DRUNK health-event health-event (standalone) health-event-observation (referenced in the BG Observation) health-event-observation (standalone)
EXCITED health-event health-event (standalone) health-event-observation (referenced in the BG Observation) health-event-observation (standalone)
FOOT_ON_THE_FLOOR health-event health-event (standalone) health-event-observation (referenced in the BG Observation) health-event-observation (standalone)
HAPPY health-event health-event (standalone) health-event-observation (referenced in the BG Observation) health-event-observation (standalone)
HEADACHE health-event health-event (standalone) health-event-observation (referenced in the BG Observation) health-event-observation (standalone)
HUNG_OVER health-event health-event (standalone) health-event-observation (referenced in the BG Observation) health-event-observation (standalone)
MENSTRUATION health-event health-event (standalone) health-event-observation (referenced in the BG Observation) health-event-observation (standalone)
NERVOUS health-event health-event (standalone) health-event-observation (referenced in the BG Observation) health-event-observation (standalone)
PAIN health-event health-event (standalone) health-event-observation (referenced in the BG Observation) health-event-observation (standalone)
PISSED_OFF health-event health-event (standalone) health-event-observation (referenced in the BG Observation) health-event-observation (standalone)
SAD health-event health-event (standalone) health-event-observation (referenced in the BG Observation) health-event-observation (standalone)
TIRED health-event health-event (standalone) health-event-observation (referenced in the BG Observation) health-event-observation (standalone)
DRIVING activity + event-timing (when accompanied with a measurement) activity-observation (standalone) extension event-timing on bg-observation + activity-observation (referenced in the BG Observation) extension event-timing on the relevant resource* + activity-observation (standalone)
BINGING activity + event-timing (when accompanied with a measurement) activity-observation (standalone) extension event-timing on bg-observation + activity-observation (referenced in the BG Observation) extension event-timing on the relevant resource* + activity-observation (standalone)
EATING_OUT activity + event-timing (when accompanied with a measurement) activity-observation (standalone) extension event-timing on bg-observation + activity-observation (referenced in the BG Observation) extension event-timing on the relevant resource* + activity-observation (standalone)
HOUSEWORK activity + event-timing (when accompanied with a measurement) activity-observation (standalone) extension event-timing on bg-observation + activity-observation (referenced in the BG Observation) extension event-timing on the relevant resource* + activity-observation (standalone)
OFFICE_WORK activity + event-timing (when accompanied with a measurement) activity-observation (standalone) extension event-timing on bg-observation + activity-observation (referenced in the BG Observation) extension event-timing on the relevant resource* + activity-observation (standalone)
ON_THE_ROAD activity + event-timing (when accompanied with a measurement) activity-observation (standalone) extension event-timing on bg-observation + activity-observation (referenced in the BG Observation) extension event-timing on the relevant resource* + activity-observation (standalone)
PARTY activity + event-timing (when accompanied with a measurement) activity-observation (standalone) extension event-timing on bg-observation + activity-observation (referenced in the BG Observation) extension event-timing on the relevant resource* + activity-observation (standalone)
REAL_WORK activity + event-timing (when accompanied with a measurement) activity-observation (standalone) extension event-timing on bg-observation + activity-observation (referenced in the BG Observation) extension event-timing on the relevant resource* + activity-observation (standalone)
SHIFT_WORK activity + event-timing (when accompanied with a measurement) activity-observation (standalone) extension event-timing on bg-observation + activity-observation (referenced in the BG Observation) extension event-timing on the relevant resource* + activity-observation (standalone)
SHOPPING activity + event-timing (when accompanied with a measurement) activity-observation (standalone) extension event-timing on bg-observation + activity-observation (referenced in the BG Observation) extension event-timing on the relevant resource* + activity-observation (standalone)
SLEEPING activity + event-timing (when accompanied with a measurement) activity-observation (standalone) extension event-timing on bg-observation + activity-observation (referenced in the BG Observation) extension event-timing on the relevant resource* + activity-observation (standalone)
SPECIAL_SITUATION activity + event-timing (when accompanied with a measurement) activity-observation (standalone) extension event-timing on bg-observation + activity-observation (referenced in the BG Observation) extension event-timing on the relevant resource* + activity-observation (standalone)
SPORTS activity + event-timing (when accompanied with a measurement) activity-observation (standalone) extension event-timing on bg-observation + activity-observation (referenced in the BG Observation) extension event-timing on the relevant resource* + activity-observation (standalone)
TRAVELLING activity + event-timing (when accompanied with a measurement) activity-observation (standalone) extension event-timing on bg-observation + activity-observation (referenced in the BG Observation) extension event-timing on the relevant resource* + activity-observation (standalone)
VACATION activity + event-timing (when accompanied with a measurement) activity-observation (standalone) extension event-timing on bg-observation + activity-observation (referenced in the BG Observation) extension event-timing on the relevant resource* + activity-observation (standalone)
WORK activity + event-timing (when accompanied with a measurement) activity-observation (standalone) extension event-timing on bg-observation + activity-observation (referenced in the BG Observation) extension event-timing on the relevant resource* + activity-observation (standalone)
NEEDLE_CHANGE event related to device EWM-observation (standalone) EWM-observation (referenced in the BG Observation) EWM-observation (standalone)
CATHETER_CHANGE event related to device EWM-observation (standalone) EWM-observation (referenced in the BG Observation) EWM-observation (standalone)

**CARB_GUESS does not fall in any of the above categories. The original proposed modelling was that of a health-event. So we continue with the same.

*Relevant resources with which TAGs can be associated in data group 0/1/2/3 are documented in the table below.

mySugr data point FHIR resource type Detail
blood_glucose Observation bg-observation
meal-carbohydrates Observation carbs-observation
exercise_description_text Observation activity-observation
exercise_duration Observation activity-metric-observation
exercise_intensitiy Observation activity-metric-observation
steps_count Observation activity-metric-observation
meal_description_text; meal_image(s); logentry_nutritional_constituents Observation diet-intake-observation
blood_pressure_diastolic ; blood_pressure_systolic Observation vital-signs-observation
body_weight Observation vital-signs-observation
body_mass_index Observation vital-signs-observation
ketones Observation laboratory-observation
hba1c Observation laboratory-observation
pen_bolus_injection_units; bolus_correction_insulin_units; bolus_food_insulin_units MedicationAdministration
pen_basal_injection_units MedicationAdministration
logentry_medication_name; logentry_medication_amount MedicationAdministration

Editing and Deleting of tags

  1. If a tag is unmarked/unselected for a log entry then:
    • tags with event-timing category - then the parent resource that holds the extension will be updated. The updated resource will no more have the event-timing extension for that tag. (see the chapter Edited values - Final approach)
    • tags with health-event/diet-intake/activity category - since these are modelled as separate resources, in this case the tag resource needs to be cancelled. (see the chapter Deleted values - Final approach)
  2. If a measurement is added to the log entry which already has tags
    • If BG measurement is added:
      • tags with event-timing category - Send the BG Observation with the respective event-timing extension
      • tags with health-event/diet-intake/activity category - Send the BG observation with references to the respective tag resources
    • If any other measurement is added:
      • tags with event-timing category - Send the relevant measurement resource with the respective event-timing extension
      • tags with health-event/diet-intake/activity category - Send the relevant resource. (No need to reference the related tag observations. The effectiveDateTime will be the same across all the resources in the log entry)
  3. If a measurement is removed from a log entry which already has tags

NOTE: More details are available in the spike documentation on Confluence- https://confluence.rochedc.accentureanalytics.com/x/X4B-B

 

Sample Bundles:

Sample scenario:

  1. Exercise description text - Run is recorded by manual entry on the smart phone.
  2. Exercise duration - 1800 seconds is recorded by manual entry on the smart phone.
  3. steps count - 200 steps is recorded by manual entry on the smart phone.
  4. Exercise Intensity- 1 (available intensity 1 -3) is recorded by manual entry on the smart phone

FHIR bundle:

{
"resourceType": "Bundle",
"id": "1318898c-3553-4643-95cd-4f9884ce0b52",
"type": "message",
"entry": [
{
"resourceType": "MessageHeader",
"id": "id-messageHeader",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/message-header"
]
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/gdpr-controller",
"valueString": "<GDPR controller>"
}
],
"event": {
"system": "http://roche.com/fhir/rdc/message-type",
"code": "new-bundle",
"display": "New bundle generated"
},
"timestamp": "2020-06-24T13:00:16+00:00",
"source": {
"name": "mySugrApp",
"software": "mySugrBackend",
"version": "x.x",
"endpoint": "https://uudev-internal.rochedc.accentureanalytics.com/fhirmsg/rdc/v1.0.0/$process-message"
}
}
},
{
"resourceType": "Device",
"id": "id-device",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/phg-device"
]
},
"status": "active",
"type": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cdf",
"code": "cdf.dev.im",
"display": "Manual interface"
}
]
},
"manufacturer": "mySugr",
"model": "mySugrApp",
"version": "x.x"
}
},
{
"resourceType": "DeviceComponent",
"id": "id-deviceComponent-smartPhone",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/phd-devicecomponent"
]
},
"system": "http://roche.com/fhir/rdc/sid/device-identifier",
"value": "mySugrApp/712/450274815"
},
"type": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "smartPhone",
"display": "Smart Phone"
}
]
},
"lastSystemChange": "2020-06-24T14:00:00+00:00",
"source": {
"reference": "Device/id-device"
},
{
"coding": [
{
"system": "http://hl7.org/fhir/specification-type",
"code": "serial-number",
"display": "Serial Number"
}
]
},
"productionSpec": "450274815"
},
{
"coding": [
{
"system": "http://hl7.org/fhir/specification-type",
"code": "unspecified",
"display": "Unspecified Production Specification"
}
]
},
"productionSpec": "mySugrApp"
},
{
"coding": [
{
"system": "http://hl7.org/fhir/specification-type",
"code": "part-number",
"display": "Part Number"
}
]
},
}
]
}
},
{
"resourceType": "DeviceMetric",
"id": "id-deviceMetric-time-duration",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/dm-device-metric"
]
},
"system": "http://roche.com/fhir/rdc/sid/devicemetric-identifier",
"value": "410670007"
},
"type": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "410670007",
"display": "Time (attribute)"
}
]
},
"unit": {
"coding": [
{
"system": "http://unitsofmeasure.org",
"code": "s",
"display": "second"
}
]
},
"source": {
"reference": "Device/id-device"
},
"parent": {
"reference": "DeviceComponent/id-deviceComponent-smartPhone"
},
"category": "measurement"
}
},
{
"resourceType": "DeviceMetric",
"id": "id-deviceMetric-steps-count",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/dm-device-metric"
]
},
"system": "http://roche.com/fhir/rdc/sid/devicemetric-identifier",
"value": "C3166374"
},
"type": {
"coding": [
{
"system": "http://ncimeta.nci.nih.gov",
"code": "C3166374",
"display": "Steps taken"
}
]
},
"unit": {
"coding": [
{
"system": "http://unitsofmeasure.org",
"code": "{steps}",
"display": "steps"
}
]
},
"source": {
"reference": "Device/id-device"
},
"parent": {
"reference": "DeviceComponent/id-deviceComponent-smartPhone"
},
"category": "measurement"
}
},
{
"resourceType": "DeviceMetric",
"id": "id-deviceMetric-exercise-intensity",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/dm-device-metric"
]
},
"system": "http://roche.com/fhir/rdc/sid/devicemetric-identifier",
"value": "74008-4"
},
"type": {
"coding": [
{
"system": "http://loinc.org",
"code": "74008-4",
"display": "Exercise intensity"
}
]
},
"unit": {
"coding": [
{
"system": "http://unitsofmeasure.org",
"code": "{Number}",
"display": "Number"
}
]
},
"source": {
"reference": "Device/id-device"
},
"parent": {
"reference": "DeviceComponent/id-deviceComponent-smartPhone"
},
"category": "measurement"
}
},
{
"resourceType": "Observation",
"id": "id-activity-observation",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/activity-observation"
]
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/registered-timestamp",
"valueDateTime": "2020-06-24T13:00:00Z"
}
],
{
"system": "http://roche.com/fhir/rdc/sid/observation/mySugr",
"value": "<unique-obs-id>"
}
],
"status": "final",
{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "257733005",
"display": "Activity (observable entity)"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "280147009",
"display": "Type of activity (attribute)"
}
]
},
"subject": {
"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
},
"effectiveDateTime": "2020-06-24T13:00:16Z",
{
"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
}
],
"valueString": "Run",
"device": {
"reference": "Device/id-device"
},
"related": [
{
"type": "has-member",
"target": {
"reference": "Observation/id-exercise-duration-observation"
}
},
{
"type": "has-member",
"target": {
"reference": "Observation/id-steps-count-observation"
}
},
{
"type": "has-member",
"target": {
"reference": "Observation/id-exercise-intensity-observation"
}
}
]
}
},
{
"resourceType": "Observation",
"id": "id-exercise-duration-observation",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/activity-metric-observation"
]
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/registered-timestamp",
"valueDateTime": "2020-06-24T13:00:00Z"
}
],
{
"system": "http://roche.com/fhir/rdc/sid/observation/mySugr",
"value": "<unique-obs-id>"
}
],
"status": "final",
{
"coding": [
{
"system": "http://ncimeta.nci.nih.gov",
"code": "C4049938",
"display": "Physical Activity Measurement"
}
]
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "55411-3",
"display": "Exercise duration"
}
]
},
"subject": {
"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
},
"effectiveDateTime": "2020-06-24T13:00:16Z",
{
"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
}
],
"value": 1800,
"unit": "s",
"system": "http://unitsofmeasure.org",
"code": "s"
},
"device": {
"reference": "DeviceMetric/id-deviceMetric-time-duration"
}
}
},
{
"resourceType": "Observation",
"id": "id-steps-count-observation",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/activity-metric-observation"
]
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/registered-timestamp",
"valueDateTime": "2020-06-24T13:00:00Z"
}
],
{
"system": "http://roche.com/fhir/rdc/sid/observation/mySugr",
"value": "<unique-obs-id>"
}
],
"status": "final",
{
"coding": [
{
"system": "http://ncimeta.nci.nih.gov",
"code": "C4049938",
"display": "Physical Activity Measurement"
}
]
}
],
"code": {
"coding": [
{
"system": "http://ncimeta.nci.nih.gov",
"code": "C3166374",
"display": "Steps taken"
}
]
},
"subject": {
"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
},
"effectiveDateTime": "2020-06-24T13:00:16Z",
{
"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
}
],
"value": 200,
"unit": "{steps}",
"system": "http://unitsofmeasure.org",
"code": "{steps}"
},
"device": {
"reference": "DeviceMetric/id-deviceMetric-steps-count"
}
}
},
{
"resourceType": "Observation",
"id": "id-exercise-intensity-observation",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/activity-metric-observation"
]
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/registered-timestamp",
"valueDateTime": "2020-06-24T13:00:00Z"
}
],
{
"system": "http://roche.com/fhir/rdc/sid/observation/mySugr",
"value": "<unique-obs-id>"
}
],
"status": "final",
{
"coding": [
{
"system": "http://ncimeta.nci.nih.gov",
"code": "C4049938",
"display": "Physical Activity Measurement"
}
]
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "74008-4",
"display": "Exercise intensity"
}
]
},
"subject": {
"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
},
"effectiveDateTime": "2020-06-24T13:00:16Z",
{
"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
}
],
"value": 1,
"unit": "{Number}",
"system": "http://unitsofmeasure.org",
"code": "{Number}"
},
"device": {
"reference": "DeviceMetric/id-deviceMetric-exercise-intensity"
}
}
}
]
}

Sample scenario:

A user enters on the smartphone application

- meal description
- attaches a photo 
- selects nutritional constituents (in the below sample bundle all the possible nutritional constituents are selected to cover all use-cases)

Nutritional constituents:

mySugr nutritional constituent Observation.component.valueCodeableConcept.system Observation.component.valueCodeableConcept.code Observation.component.valueCodeableConcept.display
BEVERAGES http://snomed.info/sct 226465004 Drinks (substance)
FRUITS http://snomed.info/sct 72511004 Fruit (substance)
VEGETABLE http://snomed.info/sct 22836000 Vegetable (substance)
GRAIN http://snomed.info/sct 264331002 Grain (substance)
DAIRY http://snomed.info/sct 226760005 Dairy food (substance)
MEAT http://snomed.info/sct 28647000 Meat (substance)
EGGS http://snomed.info/sct 102263004 Eggs (edible) (substance)
FISH http://snomed.info/sct 735971005 Fish (substance)
SWEETS_SNACKS http://snomed.info/sct 228072002 Sweet food (substance)
FAST_FOOD http://snomed.info/sct 227998008 Convenience food (substance)
ARTIFICIAL_SUGAR http://snomed.info/sct 116274004 Artificial sweetener (substance)
WHOLE_GRAIN http://ncimeta.nci.nih.gov C4042940 Whole Grains
SHAKES http://snomed.info/sct 226467007 Milk shake drink (substance)
DIET_SODA http://snomed.info/sct 226482002 Sugar-free cola (substance)
SOFT_DRINKS http://snomed.info/sct 288458006 Caffeinated soft drinks (substance)
POTATOES http://snomed.info/sct 735053000 Potato (substance)
LEGUMES http://snomed.info/sct 227313005 Pulse vegetable (substance)
HEALTHY_SNACKS http://snomed.info/sct 228062000 Nutritious food (substance)
NIBBLES http://snomed.info/sct 228070005 Snack food (substance)
ALCOHOL http://snomed.info/sct 53041004 Alcohol (substance)

FHIR bundle:

{
"resourceType": "Bundle",
"id": "1318898c-3553-4643-95cd-4f9884ce0b52",
"type": "message",
"entry": [
{
"resourceType": "MessageHeader",
"id": "id-messageHeader",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/message-header"
]
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/gdpr-controller",
"valueString": "<GDPR controller>"
}
],
"event": {
"system": "http://roche.com/fhir/rdc/message-type",
"code": "new-bundle",
"display": "New bundle generated"
},
"timestamp": "2020-06-24T13:00:16+00:00",
"source": {
"name": "mySugrApp",
"software": "mySugrBackend",
"version": "x.x",
"endpoint": "https://uudev-internal.rochedc.accentureanalytics.com/fhirmsg/rdc/v1.0.0/$process-message"
}
}
},
{
"resourceType": "Device",
"id": "id-device",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/phg-device"
]
},
"status": "active",
"type": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cdf",
"code": "cdf.dev.im",
"display": "Manual interface"
}
]
},
"manufacturer": "mySugr",
"model": "mySugrApp",
"version": "x.x"
}
},
{
"resourceType": "Observation",
"id": "30",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/diet-intake-observation"
]
},
{
{
"url": "image-link",
"valueUri": "<url of the s3 bucket>"
},
{
"url": "image-code",
"coding": [
{
"system": "http://hl7.org/fhir/digital-media-type",
"code": "photo",
"display": "Photo"
}
]
}
}
],
"url": "http://roche.com/fhir/rdc/StructureDefinition/observation-reference"
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/registered-timestamp",
"valueDateTime": "2020-04-26T11:00:00Z"
}
],
{
"use": "official",
"system": "http://roche.com/fhir/rdc/sid/observation/validic",
"value": "321aef5cc0b4481e7ee58375b546b68d"
}
],
"status": "final",
{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "364395008",
"display": "Dietary intake (observable entity)"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "246251008",
"display": "Type of meal (attribute)"
}
]
},
"subject": {
"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
},
"effectiveDateTime": "2020-06-02T09:13:50.613Z",
{
"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
}
],
"valueString": "<<meal test description>>",
"device": {
"reference": "Device/id-device"
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "246250009",
"display": "Type of food (attribute)"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "226465004",
"display": "Drinks (substance)"
}
]
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "246250009",
"display": "Type of food (attribute)"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "72511004",
"display": "Fruit (substance)"
}
]
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "246250009",
"display": "Type of food (attribute)"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "22836000",
"display": "Vegetable (substance)"
}
]
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "246250009",
"display": "Type of food (attribute)"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "264331002",
"display": "Grain (substance)"
}
]
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "246250009",
"display": "Type of food (attribute)"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "226760005",
"display": "Dairy food (substance)"
}
]
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "246250009",
"display": "Type of food (attribute)"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "28647000",
"display": "Meat (substance)"
}
]
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "246250009",
"display": "Type of food (attribute)"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "102263004",
"display": "Eggs (edible) (substance)"
}
]
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "246250009",
"display": "Type of food (attribute)"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "735971005",
"display": "Fish (substance)"
}
]
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "246250009",
"display": "Type of food (attribute)"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "228072002",
"display": "Sweet food (substance)"
}
]
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "246250009",
"display": "Type of food (attribute)"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "227998008",
"display": "Convenience food (substance)"
}
]
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "246250009",
"display": "Type of food (attribute)"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "116274004",
"display": "Artificial sweetener (substance)"
}
]
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "246250009",
"display": "Type of food (attribute)"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "226467007",
"display": "Milk shake drink (substance)"
}
]
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "246250009",
"display": "Type of food (attribute)"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "226482002",
"display": "Sugar-free cola (substance)"
}
]
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "246250009",
"display": "Type of food (attribute)"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "288458006",
"display": "Caffeinated soft drinks (substance)"
}
]
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "246250009",
"display": "Type of food (attribute)"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "735053000",
"display": "Potato (substance)"
}
]
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "246250009",
"display": "Type of food (attribute)"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "227313005",
"display": "Pulse vegetable (substance)"
}
]
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "246250009",
"display": "Type of food (attribute)"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "228062000",
"display": "Nutritious food (substance)"
}
]
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "246250009",
"display": "Type of food (attribute)"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "228070005",
"display": "Snack food (substance)"
}
]
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "246250009",
"display": "Type of food (attribute)"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "53041004",
"display": "Alcohol (substance)"
}
]
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "246250009",
"display": "Type of food (attribute)"
}
]
},
"coding": [
{
"system": "http://ncimeta.nci.nih.gov",
"code": "C4042940",
"display": "Whole Grains"
}
]
}
}
]
}
}
]
}

Sample scenario:

  1. insights_algorithm_name- "ALGORITHM_DAYTIME_DESCRIPTIVE" algorithm was ran for the insights pattern.
  2. insights_algorithm_version - 1.0.0 is kept as the algorithm version.
  3. insights from and to date - start": "2020-05-30T00:00:00Z" and "end": "2020-06-29T00:00:00Z" is recorded as range start/end of data collected for the algorithm calculation
  4. insights_created_at - 2020-06-29T13:18:02Z is recorded as time of creation of the algorithm calculation.
  5. insights_delivered_at - 2020-06-30T10:05:32Z is recorded as Date and time of delivery of data (via mail, most often) of the insight output.
  6. insights_type_id - 'DAYTIME HYPO NIGHT' is recorded as type for the insight finding from the algorithm run.
  7. insights_value - '{‘endHour’: 6, ‘numberOfDays’: 5, ‘startHour’: 0} ' is recorded as Calculated value - result of the risk assessment algorithm.

Insights algorithm can have the below possible Detailed type insight finding from the algorithm run.

Could not find subject. File not found for 'subject=RDC/insightsalgorithmoutcome'

FHIR bundle:

Command 'json' could not render: File not found for 'subject=example-mySugr-DG3-Insights-related-medicaldata-observation'

FHIR sample for other insights algorithm is available HERE for reference.

User therapy settings

Note: If all the columns of the table are not visible, please reduce the zoom % of the browser

The following mySugr therapy settings are modelled on FHIR:

mySugr Data Point mySugr Unit mySugr Description FHIR Resource & Element Integrated with SPOL FHIR Sample
mysugr.therapy.bodyHeight.unit string possible values are cm, ft, m Observation.valueQuantity (category=Vital-signs; code=8302-2) unit - cm, ft, m No Body height
mysugr.therapy.bodyHeight.value string - Observation.valueQuantity (category=Vital-signs; code=8302-2) No Body height
hardware.connected string List of successfully paired meters in mySugrapp DeviceComponent.extension:pairedIp (map in valueString only when type.coding.code=smartPhone) No Hardware connected
mysugr.therapy.bodyweight.target.lower string - Goal.detailRange (category=patientTargetRange; code=29463-7) No Target ranges
mysugr.therapy.bodyweight.target.upper string - Goal.detailRange (category=patientTargetRange; code=29463-7) No Target ranges
mysugr.therapy.bp.diastolic.target.lower string - Goal.detailRange (category=patientTargetRange; code=271650006) No Target ranges
mysugr.therapy.bp.diastolic.target.upper string - Goal.detailRange (category=patientTargetRange; code=271650006) No Target ranges
mysugr.therapy.bp.systolic.target.lower string - Goal.detailRange (category=patientTargetRange; code=271649006) No Target ranges
mysugr.therapy.bp.systolic.target.upper string - Goal.detailRange (category=patientTargetRange; code=271649006) No Target ranges
mysugr.therapy.hba1c.target.lower string - Goal.detailRange (category=patientTargetRange; code=59261-8) No Target ranges
mysugr.therapy.hba1c.target.upper string - Goal.detailRange (category=patientTargetRange; code=59261-8) No Target ranges
mysugr.therapy.bg.hyper string Blood glucose - Hyperglycemia Goal.detailQuantity (category=80394007; code=32016-8) No Target ranges
mysugr.therapy.bg.hypo string Blood glucose - Hypoglycemia Goal.detailQuantity (category=302866003; code=32016-8) No Target ranges
mysugr.therapy.bg.target.lower string Blood glucose - target lower Goal.detailRange (category=patientTargetRange; code=32016-8) No Target ranges
mysugr.therapy.bg.target.upper string Blood glucose - target upper Goal.detailRange (category=patientTargetRange; code=32016-8) No Target ranges
mysugr.therapy.diabetestype string Blood glucose - diabetestype Condition.code(code=46635009) No Diabetes-type
therapy.type string How do patient take insulin? (Pen, Pump, Off) CarePlan.extension:therapyType (Patient Personal advance care plan) No Devices used and Medication related
therapy.bgmeter.type string Blood sugar meter name single selection CarePlan.extension:therapyBGmeterType (Patient Personal advance care plan) No Devices used and Medication related
mysugr.therapy.cgm boolean If the user has a CGM or not overall CarePlan.extension:therapyCgm (Patient Personal advance care plan) No Devices used and Medication related
mysugr.therapy.cgm.type string CGM used by the user CarePlan.extension:therapyCgmType (Patient Personal advance care plan) No Devices used and Medication related
mysugr.therapy.insulin.type string Insulin used by the user CarePlan.extension:careplan-therapy-insulin-type (Patient Personal advance care plan) No Devices used and Medication related
careplan-therapy-medication string Insulin used by the user CarePlan.extension:careplan-therapy-insulin-type (Patient Personal advance care plan) No Devices used and Medication related

The following data points in 3A related to the settings were not modelled in FHIR:

mySugr Data Point Reason
mysugr.care.hba1c.unit This is for Care platform to have an overview of all patients rendered in the same unit, this will not be relevant for modelling as we always receive data in the standardized unit
mysugr.care.weight.unit This is for Care platform to have an overview of all patients rendered in the same unit, this will not be relevant for modelling as we always receive data in the standardized unit.
mysugr.therapy.bodyweight.target Target is not a standalone data point. The .lower and .upper together form the target value
mysugr.therapy.bodyweight.unit This is not relevant for modelling as we always receive data in the standardized unit.
mysugr.therapy.bp.diastolic.target Target is not a standalone data point. The .lower and .upper together form the target value
mysugr.therapy.bp.systolic.target Target is not a standalone data point. The .lower and .upper together form the target value
mysugr.therapy.hba1c.unit This is not relevant for modelling as we always receive data in the standardized unit.
mysugr.therapy.bg.unit This is not relevant for modelling as we always receive data in the standardized unit.
mysugr.therapy.carbs.exchanges This is not relevant for modelling as we always receive data in the standardized unit.
mysugr.therapy.carbs.localunit This is not relevant for modelling as we always receive data in the standardized unit.
mysugr.therapy.health.conditions This is deprecated in the app
mysugr.therapy.health.conditions.custom This is deprecated in the app
mysugr.therapy.health.goals This is deprecated in the app
mysugr.therapy.insulin.pen.basal.shots This is deprecated in the app
mysugr.therapy.user.goals.custom This is deprecated in the app
mysugr.therapy.stepscount.target This is deprecated in the app

Sample scenario:

In this sample scenario there are:

  1. Bolus Insulin units entered on a smartphone. bolus-correction = 3 IU; bolus_food = 2 IU. Total bolus = 5 IU
  2. Bolus Insulin units imported from a pen. bolus-correction = 3 IU; bolus_food = 2 IU. Total bolus = 5 IU

The MedicationAdministration resource with medicationCodeableConcept.code=411531001(Short-acting insulin (substance)) will hold the

  • Total bolus (food + correction) in the element dosage.dose.value. This is integrated with RDCP.
  • The split of the bolus between food and correction is stored in extensions dosage.estension: bolus-correction-insulin-units and dosage.estension: bolus-food-insulin-units. The split is not integrated with RDCP.

FHIR bundle:

Command 'json' could not render: File not found for 'subject=example-mySugr-DG3-medication-related-data-bolus-insulin'

Sample scenario:

In this sample scenario user enters an intake of medicine (pill) in th elogentry as :

  1. logentry_medication_name - "glycomet 500mg"
  2. logentry_medication_amount - 1 pill

FHIR bundle:

Command 'json' could not render: File not found for 'subject=example-mySugr-DG3-medication-related-data-drug-name-and-amount'