Generate sample data for device data support in care management (preview)

Important

Device data support in care management was previously available in preview mode to allow users to test its functionality. However, effective January 30, 2025, the solution will be retired and no longer supported.

Have questions? Reach out to us at Microsoft Cloud for Healthcare.

This article illustrates how to generate and push sample data to the device data support (preview) Azure Event Hubs service. Use this guidance if you want to try the solution without connecting to an actual medical device. You can create a sample data sender application using the instructions in this article and run it on the virtual machine deployed in the Create a virtual machine for sample data application step.

Data format

The Azure Health Data Services MedTech service requires the data to be specified in a certain format for processing with the mappings explained in Configure MedTech service. The following sections explain the four data formats for the mappings.

Weight

Format:

{
  "id": "<ID for the data>",
  "measuredAt": "<Measured date and time in ISO 8601 format UTC time>",
  "metrics": {
    "weight": "<Weight (in pounds)>",
    "imei": "<Serial number for the device from the Microsoft Cloud for Healthcare device management application>"
  },
  "externId": "<Patient Azure FHIR ID from the Microsoft Cloud for Healthcare device management application>"
}

Example:

{
  "id": "1931a532-acc0-4184-8127-a3aa0e4fc856",
  "measuredAt": "2023-03-22T07:28:00Z",
  "metrics": {
    "weight": "150.5",
    "imei": "TestDevice1"
  },
  "externId": "33e448c4-39b9-45c1-9f05-ff92e871a22d"
}

Oxygen saturation in blood

Format:

{
  "id": "<ID for the data>",
  "measuredAt": "<Measured date and time in ISO 8601 format UTC time>",
  "metrics": {
    "spo2": "<Oxygen saturation in blood (in %)>",
    "pulse": "<Pulse (in beats/minute)>",
    "imei": "<Serial number for the device from the Microsoft Cloud for Healthcare device management application>"
  },
  "externId": "<Patient Azure FHIR ID from the Microsoft Cloud for Healthcare device management application>"
}

Example:

{
  "id": "3931a532-acc0-4184-8127-a3aa0e4fc856",
  "measuredAt": "2023-03-22T07:28:00Z",
  "metrics": {
    "spo2": "97",
    "pulse": "81",
    "imei": "TestDevice2"
  },
  "externId": "33e448c4-39b9-45c1-9f05-ff92e871a22d"
}

Blood pressure

Format:

{
  "id": "<ID for the data>",
  "measuredAt": "<Measured date and time in ISO 8601 format UTC time>",
  "metrics": {
    "systolic": "<Systolic blood pressure (in mm Hg)>",
    "diastolic": "<Diastolic blood pressure (in mm Hg)>",
    "pulse": "<Pulse (in beats/minute)>",
    "imei": "<Serial number for the device from the Microsoft Cloud for Healthcare device management application>"
  },
  "externId": "<Patient Azure FHIR ID from the Microsoft Cloud for Healthcare device management application>"
}

Example:

{
  "id": "1931a532-acc0-4184-8127-a3aa0e4fc856",
  "measuredAt": "2023-03-22T07:28:00Z",
  "metrics": {
    "systolic": "101",
    "diastolic": "78",
    "pulse": "71",
    "imei": "TestDevice2"
  },
  "externId": "33e448c4-39b9-45c1-9f05-ff92e871a22d"
}

Temperature

Format:

{
  "id": "<ID for the data>",
  "measuredAt": "<Measured date and time in ISO 8601 format UTC time>",
  "metrics": {
    "temp": "<Temperature (in Fahrenheit)>",
    "imei": "<Serial number for the device from the Microsoft Cloud for Healthcare device management application>"
  },
  "externId": "<Patient Azure FHIR ID from the Microsoft Cloud for Healthcare device management application>"
}

Example:

{
  "id": "1931a532-acc0-4184-8127-a3aa0e4fc856",
  "measuredAt": "2023-03-22T07:28:00Z",
  "metrics": {
    "temp": "97.6",
    "imei": "TestDevice1"
  },
  "externId": "33e448c4-39b9-45c1-9f05-ff92e871a22d"
}

Prepare data

The prerequisites for data preparation are as follows:

  • The device should be assigned to the patient in the Device Management application.

  • You must obtain the patient's Azure FHIR ID and the device's serial number from the Device Management application.

  • The sample data must be in the format specified in Data format. Ensure that the measured timestamp for each data unit is different.

Push data to the event hub

To learn how to push the data to the event hub service, follow the steps in Send events to the event hub. You can have multiple events in a single push.