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

Important

  • This is a preview feature.
  • Preview features aren't meant for production use and may have restricted functionality. These features are available before an official release so that customers can get early access and provide feedback.

This article illustrates how you can generate and push sample data to the device data support (preview) Azure Event Hubs service. It's intended for users who 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 for which the sample data is being prepared.

  • 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.

See also

What is Microsoft Cloud for Healthcare?
Configure device data support (preview)
Partner integration for device data support (preview)
Troubleshoot device data support (preview)
Use device data support (preview)