Basal related Data

We assume Basal rate data from mySugr will have following data points based on the GDD Demand

Basal Rate Events

  • Amount of units of insulin per {hour]
  • Duration of basal insulin in [minutes]
  • Date and time of insulin intake
  • Active Basal Rate Profile

Temporary Basal Rate (TBR) Start Events

  • Basal insulin increasing/decreasing factor; (TBR) Adjustment Event
  • Date and time of temporary basal start; (StartOfTemporaryBasalRateAdjustment)
  • Active Basal Rate Profile
    {
      "resource": {
        "id": "65ca0d01-470a-4c1f-b2ca-fa753b8734ea",
        "extension": [
          {
            "url": "http://roche.com/fhir/rdc/StructureDefinition/parent-device-metric",
            "valueReference": {
              "reference": "DeviceMetric/976a7ae4-b983-409d-af7a-877954a2e81a"
            }
          },
          {
            "url": "http://roche.com/fhir/rdc/StructureDefinition/slot-id",
            "valueInteger": 2
          }
        ],
        "meta": { // Active Basal Rate Profile
          "profile": [
            "http://roche.com/fhir/rdc/StructureDefinition/medication-administration"
          ]
        },
        "resourceType": "MedicationAdministration",
        "status": "completed",
        "medicationCodeableConcept": {
          "coding": [
            {
              "system": "http://roche.com/fhir/rdc/cs",
              "code": "insulinDose",
              "display": "Insulin Dose"
            }
          ]
        },
        "subject": {
          "reference": "Patient/b6a2560d-b2fb-40e1-a18e-267ce99756c2"
        },
        "supportingInformation": [
          {
            "reference": "Observation/3fec5c18-e6db-48a1-a46a-0ec659444985"
          },
          {
            "reference": "CarePlan/4644282e-51c4-417b-8be5-bdbde90ddf5b"
          }
        ],
        "effectivePeriod": { // Date and time of insulin intake
          "start": "2021-10-11T12:18:00+00:00",
          "end": "2021-10-11T12:33:00+00:00"
        },
        "performer": [
          {
            "actor": {
              "reference": "Patient/b6a2560d-b2fb-40e1-a18e-267ce99756c2"
            }
          }
        ],
        "dosage": {
          "extension": [
            {
              "url": "http://roche.com/fhir/rdc/StructureDefinition/medication-administration-dosage/admin-type",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://roche.com/fhir/rdc/cs",
                    "code": "basal",
                    "display": "Basal"
                  }
                ]
              }
            },
            {
              "extension": [ // Basal insulin increasing/decreasing factor
                {
                  "url": "adjustment",
                  "valueQuantity": {
                    "value": 150,
                    "unit": "%",
                    "system": "http://unitsofmeasure.org",
                    "code": "%"
                  }
                },
                {
                  "url": "duration", //Duration of basal insulin in [minutes]
                  "valueQuantity": {
                    "value": 15,
                    "unit": "min",
                    "system": "http://unitsofmeasure.org",
                    "code": "min"
                  }
                }
              ],
              "url": "http://roche.com/fhir/rdc/StructureDefinition/tbr"
            }
          ],
          "rateQuantity": {
            "value": "0.75", // Amount of units of insulin per {hour}
            "unit": "[IU]/h",
            "system": "http://unitsofmeasure.org",
            "code": "[IU]/h"
          }
        }
      }
    },
	   {
      "resource": {
        "resourceType": "Observation",
        "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": "EVENT",
              "display": "Event"
            }
          ]
        },
        "subject": {
          "reference": "Device/ff003c0e-63f5-4bf0-945a-c34e44b75fba"
        },
        "effectiveDateTime": "2021-10-11T12:18:00+00:00", // Date and time of temporary basal start
        "performer": [
          {
            "reference": "Patient/b6a2560d-b2fb-40e1-a18e-267ce99756c2"
          }
        ],
        "valueCodeableConcept": { // TBR start Event
          "coding": [
            {
              "system": "http://roche.com/fhir/rdc/cs",
              "code": "EVENT_12",
              "display": "TBR start"
            }
          ],
          "text": "dur 00:15 h"
        },
        "device": {
          "reference": "Device/ff003c0e-63f5-4bf0-945a-c34e44b75fba"
        },
        "id": "3fec5c18-e6db-48a1-a46a-0ec659444985",
        "meta": {
          "profile": [
            "http://roche.com/fhir/rdc/StructureDefinition/observation-EWM"
          ]
        }
      }
    }

Temporary Basal Rate (TBR) Stop Event

  • Basal insulin increasing/decreasing factor; (TBR) Adjustment Event
  • Date and time of temporary basal stop; EndOfTemporaryBasalRateAdjustment
  • Active Basal Rate Profile
{
      "resource": {
        "id": "c48b54a4-bbb3-4f40-8443-ebc944c5a080",
        "extension": [
          {
            "url": "http://roche.com/fhir/rdc/StructureDefinition/parent-device-metric",
            "valueReference": {
              "reference": "DeviceMetric/976a7ae4-b983-409d-af7a-877954a2e81a"
            }
          },
          {
            "url": "http://roche.com/fhir/rdc/StructureDefinition/slot-id",
            "valueInteger": 2
          }
        ],
        "meta": { // Active Basal Rate Profile
          "profile": [
            "http://roche.com/fhir/rdc/StructureDefinition/medication-administration"
          ]
        },
        "resourceType": "MedicationAdministration",
        "status": "completed",
        "medicationCodeableConcept": {
          "coding": [
            {
              "system": "http://roche.com/fhir/rdc/cs",
              "code": "insulinDose",
              "display": "Insulin Dose"
            }
          ]
        },
        "subject": {
          "reference": "Patient/b6a2560d-b2fb-40e1-a18e-267ce99756c2"
        },
        "supportingInformation": [
          {
            "reference": "Observation/3f1a04d2-0506-4ec9-9144-11fe4e6189ed"
          },
          {
            "reference": "CarePlan/4644282e-51c4-417b-8be5-bdbde90ddf5b"
          }
        ],
        "effectivePeriod": { // Date and time of insulin intake
          "start": "2021-10-11T12:33:00+00:00",
          "end": "2021-10-11T12:35:00+00:00"
        },
        "performer": [
          {
            "actor": {
              "reference": "Patient/b6a2560d-b2fb-40e1-a18e-267ce99756c2"
            }
          }
        ],
        "dosage": {
          "extension": [
            {
              "url": "http://roche.com/fhir/rdc/StructureDefinition/medication-administration-dosage/admin-type",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://roche.com/fhir/rdc/cs",
                    "code": "basal",
                    "display": "Basal"
                  }
                ]
              }
            }
          ],
          "rateQuantity": {
            "value": "0.50", // Amount of units of insulin per {hour}
            "unit": "[IU]/h",
            "system": "http://unitsofmeasure.org",
            "code": "[IU]/h"
          }
        }
      }
    },
    {
      "resource": {
        "resourceType": "Observation",
        "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": "EVENT",
              "display": "Event"
            }
          ]
        },
        "subject": {
          "reference": "Device/ff003c0e-63f5-4bf0-945a-c34e44b75fba"
        },
        "effectiveDateTime": "2021-10-11T12:50:00+00:00", // Date and time of temporary basal stop
        "performer": [
          {
            "reference": "Patient/b6a2560d-b2fb-40e1-a18e-267ce99756c2"
          }
        ],
        "valueCodeableConcept": { // TBR stop Event
          "coding": [
            {
              "system": "http://roche.com/fhir/rdc/cs",
              "code": "EVENT_6",
              "display": "TBR end"
            }
          ],
          "text": "TBR End"
        },
        "device": {
          "reference": "Device/ff003c0e-63f5-4bf0-945a-c34e44b75fba"
        },
        "id": "3f1a04d2-0506-4ec9-9144-11fe4e6189ed",
        "meta": {
          "profile": [
            "http://roche.com/fhir/rdc/StructureDefinition/observation-EWM"
          ]
        }
      }
    }


Basal Rate Profile: Contain up to 5 Custom Basal Profiles

  • Name of Basal Profile X (X: 1-5)
  • Activation Status of Basal Profile: BasalRateProfilesActivation
  • Basal profile switch event; Run, Pause, Stop, ProfileSwitch
{
      "resource": {
        "id": "4644282e-51c4-417b-8be5-bdbde90ddf5b",
        "extension": [
          {
            "url": "http://roche.com/fhir/rdc/StructureDefinition/insulin-per-day",
            "valueQuantity": {
              "value": "12.00",
              "unit": "[IU]/d",
              "system": "http://unitsofmeasure.org",
              "code": "[IU]/d"
            }
          }
        ],
        "meta": {
          "profile": [
            "http://roche.com/fhir/rdc/StructureDefinition/careplan-basal"
          ]
        },
        "resourceType": "CarePlan",
        "status": "active", // Activation Status of Basal Profile:
        "intent": "plan",
        "category": [
          {
            "coding": [
              {
                "system": "http://roche.com/fhir/rdc/cs",
                "code": "basal-management-careplan",
                "display": "Basal management plan"
              }
            ]
          }
        ],
        "title": "1", // Name of Basal Profile X (X: 1-5)
        "subject": {
          "reference": "Patient/b6a2560d-b2fb-40e1-a18e-267ce99756c2"
        },
        "activity": [
          {
            "detail": {
              "category": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/care-plan-activity-category",
                    "code": "drug",
                    "display": "Drug"
                  }
                ]
              },
              "code": {
                "coding": [
                  {
                    "system": "http://roche.com/fhir/rdc/cs",
                    "code": "timeslot-basal-rate-activity",
                    "display": "Timeslot basal rate activity"
                  }
                ]
              },
              "status": "unknown",
              "scheduledTiming": {
                "repeat": {
                  "duration": 1439,
                  "durationUnit": "min",
                  "frequency": "1",
                  "period": "1",
                  "periodUnit": "d",
                  "timeOfDay": [
                    "00:00:00"
                  ]
                }
              },
              "productCodeableConcept": {
                "coding": [
                  {
                    "system": "http://snomed.info/sct",
                    "code": "67866001",
                    "display": "Insulin (substance)"
                  }
                ]
              },
              "quantity": {
                "value": "0.50",
                "unit": "[IU]/h",
                "system": "http://unitsofmeasure.org",
                "code": "[IU]/h"
              }
            }
          }
        ]
      }
    },
    {
      "resource": {
        "resourceType": "Observation",
        "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": "EVENT",
              "display": "Event"
            }
          ]
        },
        "subject": {
          "reference": "Device/ff003c0e-63f5-4bf0-945a-c34e44b75fba"
        },
        "effectiveDateTime": "2021-10-11T12:50:00+00:00",
        "performer": [
          {
            "reference": "Patient/b6a2560d-b2fb-40e1-a18e-267ce99756c2"
          }
        ],
        "valueCodeableConcept": { // Basal profile switch event: Pause
          "coding": [
            {
              "system": "http://roche.com/fhir/rdc/cs",
              "code": "EVENT_2",
              "display": "Pause"
            }
          ],
          "text": "Pause"
        },
        "device": {
          "reference": "Device/ff003c0e-63f5-4bf0-945a-c34e44b75fba"
        },
        "id": "a85110db-f807-4f8a-867e-cdbb31f854b0",
        "meta": {
          "profile": [
            "http://roche.com/fhir/rdc/StructureDefinition/observation-EWM"
          ]
        }
      }
    },
    {
      "resource": {
        "resourceType": "Observation",
        "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": "EVENT",
              "display": "Event"
            }
          ]
        },
        "subject": {
          "reference": "Device/ff003c0e-63f5-4bf0-945a-c34e44b75fba"
        },
        "effectiveDateTime": "2021-10-11T12:51:00+00:00",
        "performer": [
          {
            "reference": "Patient/b6a2560d-b2fb-40e1-a18e-267ce99756c2"
          }
        ],
        "valueCodeableConcept": {// Basal profile switch event: Run
          "coding": [
            {
              "system": "http://roche.com/fhir/rdc/cs",
              "code": "EVENT_1",
              "display": "Run"
            }
          ],
          "text": "Run"
        },
        "device": {
          "reference": "Device/ff003c0e-63f5-4bf0-945a-c34e44b75fba"
        },
        "id": "2a3e80c4-4af1-4120-8b6b-48c1f6ef5332",
        "meta": {
          "profile": [
            "http://roche.com/fhir/rdc/StructureDefinition/observation-EWM"
          ]
        }
      }
    },
	 {
      "resource": {
        "resourceType": "Observation",
        "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": "EVENT",
              "display": "Event"
            }
          ]
        },
        "subject": {
          "reference": "Device/ff003c0e-63f5-4bf0-945a-c34e44b75fba"
        },
        "effectiveDateTime": "2021-10-11T12:53:00+00:00",
        "performer": [
          {
            "reference": "Patient/b6a2560d-b2fb-40e1-a18e-267ce99756c2"
          }
        ],
        "valueCodeableConcept": {// Basal profile switch event: stop
          "coding": [
            {
              "system": "http://roche.com/fhir/rdc/cs",
              "code": "EVENT_3",
              "display": "Stop"
            }
          ],
          "text": "Stop"
        },
        "device": {
          "reference": "Device/ff003c0e-63f5-4bf0-945a-c34e44b75fba"
        },
        "id": "79f74aae-e6aa-42be-a93d-0685f4c2f043",
        "meta": {
          "profile": [
            "http://roche.com/fhir/rdc/StructureDefinition/observation-EWM"
          ]
        }
      }
    },
	   {
      "resource": {
        "resourceType": "Observation",
        "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": "EVENT",
              "display": "Event"
            }
          ]
        },
        "subject": {
          "reference": "Device/ff003c0e-63f5-4bf0-945a-c34e44b75fba"
        },
        "effectiveDateTime": "2021-10-11T12:17:00+00:00",
        "performer": [
          {
            "reference": "Patient/b6a2560d-b2fb-40e1-a18e-267ce99756c2"
          }
        ],
        "valueCodeableConcept": {// Basal profile switch event: Profile switch
          "coding": [
            {
              "system": "http://roche.com/fhir/rdc/cs",
              "code": "EVENT_16",
              "display": " Profile Switch"
            }
          ],
          "text": "4 - 1"
        },
        "device": {
          "reference": "Device/ff003c0e-63f5-4bf0-945a-c34e44b75fba"
        },
        "id": "ab6ba59a-8cbe-417d-a59d-6eecfad1b95e",
        "meta": {
          "profile": [
            "http://roche.com/fhir/rdc/StructureDefinition/observation-EWM"
          ]
        }
      }
    },
	 {
      "resource": {
        "resourceType": "Observation",
        "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": "EVENT",
              "display": "Event"
            }
          ]
        },
        "subject": {
          "reference": "Device/cb667d45-fcc8-4558-b9eb-98b63870bbac"
        },
        "effectiveDateTime": "2020-02-01T15:00:00+00:00",
        "performer": [
          {
            "reference": "Patient/9933b7dd-c3b6-4d45-9e5a-cea3b3671cc4"
          }
        ],
        "valueCodeableConcept": {// Basal profile switch event: Profile changed
          "coding": [
            {
              "system": "http://roche.com/fhir/rdc/cs",
              "code": "EVENT_17",
              "display": "Profile changed"
            }
          ],
          "text": "changed 3"
        },
        "device": {
          "reference": "Device/cb667d45-fcc8-4558-b9eb-98b63870bbac"
        },
        "id": "bda84acf-5434-4dd8-81dd-da4c4a7b1df0",
        "meta": {
          "profile": [
            "http://roche.com/fhir/rdc/StructureDefinition/observation-EWM"
          ]
        }
      }
    }