Deploy the MedTech service using the Azure portal
In this quickstart, you'll learn how to deploy the MedTech service in the Azure portal using two different methods: with a quickstart template or manually. The MedTech service will enable you to ingest data from Internet of Things (IoT) into your Fast Healthcare Interoperability Resources (FHIR®) service.
Important
You'll want to confirm that the Microsoft.HealthcareApis and Microsoft.EventHub resource providers have been registered with your Azure subscription for a successful deployment. To learn more about registering resource providers, see Azure resource providers and types
Deploy the MedTech service with a quickstart template
If you already have an active Azure account, you can use this button to deploy a MedTech service that will include the following resources and roles:
- An Azure Event Hubs Namespace and device message Azure event hub (the event hub is named: devicedata).
- An Azure event hub consumer group (the consumer group is named: $Default).
- An Azure event hub sender role (the sender role is named: devicedatasender).
- An Azure Health Data Services workspace.
- An Azure Health Data Services FHIR service.
- An Azure Health Data Services MedTech service including the necessary system-assigned managed identity roles to the device message event hub (Azure Events Hubs Receiver) and FHIR service (FHIR Data Writer).
Tip
By using the drop down menus, you can find all the values that can be selected. You can also begin to type the value to begin the search for the resource, however, selecting the resource from the drop down menu will ensure that there are no typos.
When the Azure portal launches, the following fields must be filled out:
- Subscription - Choose the Azure subscription you would like to use for the deployment.
- Resource Group - Choose an existing Resource Group or create a new Resource Group.
- Region - The Azure region of the Resource Group used for the deployment. This field will auto-fill based on the Resource Group region.
- Basename - Will be used to append the name the Azure resources and services to be deployed.
- Location - Use the drop-down list to select a supported Azure region for the Azure Health Data Services (could be the same or different region than your Resource Group).
Leave the Device Mapping and Destination Mapping fields with their default values.
Select the Review + create button once the fields are filled out.
After the validation has passed, select the Create button to begin the deployment.
After a successful deployment, there will be remaining configurations that will need to be completed by you for a fully functional MedTech service:
- Provide a working device mapping. For more information, see How to use device mappings.
- Provide a working FHIR destination mapping. For more information, see How to use FHIR destination mappings.
- Use the Shared access policies (SAS) key (devicedatasender) for connecting your device or application to the MedTech service device message event hub (devicedata). For more information, see Connection string for a specific event hub in a namespace.
Important
If you're going to allow access from multiple services to the device message event hub, it is highly recommended that each service has its own event hub consumer group.
Consumer groups enable multiple consuming applications to each have a separate view of the event stream, and to read the stream independently at their own pace and with their own offsets. For more information, see Consumer groups.
Examples:
- Two MedTech services accessing the same device message event hub.
- A MedTech service and a storage writer application accessing the same device message event hub.
Deploy the MedTech service manually
Prerequisites
It's important that you have the following prerequisites completed before you begin the steps of creating a MedTech service instance in Azure Health Data Services:
- Azure account
- Resource group deployed in the Azure portal
- Azure Event Hubs namespace and event hub deployed in the Azure portal
- Workspace deployed in Azure Health Data Services
- FHIR service deployed in Azure Health Data Services
Tip
By using the drop down menus, you can find all the values that can be selected. You can also begin to type the value to begin the search for the resource, however, selecting the resource from the drop down menu will ensure that there are no typos.
Sign into the Azure portal, and then enter your Health Data Services workspace resource name in the Search bar field located at the middle top of your screen. The name of the workspace you'll be deploying into will be of your own choosing. For this example deployment of the MedTech service, we'll be using a workspace named
azuredocsdemo.Select the Deploy MedTech service button.
Select the Add MedTech service button.
Configure the MedTech service to ingest data
Under the Basics tab, complete the required fields under MedTech service details page section.
Enter the MedTech service name.
The MedTech service name is a friendly, unique name for your MedTech service. For this example, we'll name the MedTech service
mt-azuredocsdemo.Enter the Event Hubs Namespace.
The Event Hubs Namespace is the name of the Event Hubs Namespace that you've previously deployed. For this example, we'll use
eh-azuredocsdemofor use with our MedTech service device messages.Tip
For information about deploying an Azure Event Hubs Namespace, see Create an Event Hubs Namespace.
For more information about Azure Event Hubs Namespaces, see Namespace in the Features and terminology in Azure Event Hubs document.
Enter the Events Hubs name.
The Event Hubs name is the event hub that you previously deployed within the Event Hubs Namespace. For this example, we'll use
devicedatafor use with our MedTech service device messages.Tip
For information about deploying an Azure event hub, see Create an event hub.
Enter the Consumer group.
The Consumer group name is located by going to the Overview page of the Event Hubs Namespace and selecting the event hub to be used for the MedTech service device messages. In this example, the event hub is named
devicedata.Once inside of the event hub, select the Consumer groups button under Entities to display the name of the consumer group to be used by your MedTech service.
By default, a consumer group named $Default is created during the deployment of an event hub. Use this consumer group for your MedTech service deployment.
Important
If you're going to allow access from multiple services to the device message event hub, it is highly recommended that each service has its own event hub consumer group.
Consumer groups enable multiple consuming applications to each have a separate view of the event stream, and to read the stream independently at their own pace and with their own offsets. For more information, see Consumer groups.
Examples:
- Two MedTech services accessing the same device message event hub.
- A MedTech service and a storage writer application accessing the same device message event hub.
Select Next: Device mapping button.
Configure the Device mapping properties
Tip
The IoMT Connector Data Mapper is an open source tool to visualize the mapping configuration for normalizing a device's input data, and then transforming it into FHIR resources. You can use this tool to edit and test Device and FHIR destination mappings, and to export the mappings to be uploaded to a MedTech service in the Azure portal. This tool also helps you understand your device's Device and FHIR destination mapping configurations.
For more information regarding Device mappings, see our GitHub open source and Azure Docs documentation:
Under the Device mapping tab, enter the Device mapping JSON code for use with your MedTech service.
Once Device mapping is configured, select the Next: Destination > button to configure the destination properties associated with your MedTech service.
Configure Destination properties
Under the Destination tab, enter the destination properties associated with your MedTech service.
Name of your FHIR server.
The FHIR Server name (also known as the FHIR service) is located by using the Search bar at the top of the screen to go to the FHIR service that you've deployed and by selecting the Properties button. Copy and paste the Name string into the FHIR Server text field. In this example, the FHIR Server name is
fs-azuredocsdemo.Enter the Destination Name.
The Destination Name is a friendly name for the destination. Enter a unique name for your destination. In this example, the Destination Name is
fs-azuredocsdemo.Select Create or Lookup for the Resolution Type.
Note
For the MedTech service destination to create a valid observation resource in the FHIR service, a device resource and patient resource must exist in the FHIR service, so the observation can properly reference the device that created the data, and the patient the data was measured from. There are two modes the MedTech service can use to resolve the device and patient resources.
Create
The MedTech service destination attempts to retrieve a device resource from the FHIR service using the device identifier included in the normalized message. It also attempts to retrieve a patient resource from the FHIR service using the patient identifier included in the normalized message. If either resource isn't found, new resources will be created (device, patient, or both) containing just the identifier contained in the normalized message. When you use the Create option, both a device identifier and a patient identifier can be configured in the device mapping. In other words, when the MedTech service destination is in Create mode, it can function normally without adding device and patient resources to the FHIR service.
Lookup
The MedTech service destination attempts to retrieve a device resource from the FHIR service using the device identifier included in the normalized message. If the device resource isn't found, an error will occur, and the data won't be processed. For Lookup to function properly, a device resource with an identifier matching the device identifier included in the normalized message must exist and the device resource must have a reference to a patient resource that also exists. In other words, when the MedTech service destination is in the Lookup mode, device and patient resources must be added to the FHIR service before data can be processed. If the MedTech service attempts to look up resources that don't exist on the FHIR service, a DeviceNotFoundException and/or a PatientNotFoundException error(s) will be generated based on which resources aren't present.
Tip
For more information regarding Destination mappings, see our GitHub and Azure Docs documentation:
Under Destination Mapping, enter the JSON code inside the code editor.
Tip
For information about the Mapper Tool, see IoMT Connector Data Mapper Tool.
You may select the Review + create button, or you can optionally select the Next: Tags > button if you want to configure tags.
(Optional) Configure Tags
Tags are name and value pairs used for categorizing resources. For more information about tags, see Use tags to organize your Azure resources and management hierarchy.
Under the Tags tab, enter the tag properties associated with the MedTech service.
- Enter a Name.
- Enter a Value.
Once you've entered your tag(s), select the Review + create button.
You should notice a Validation success message like what's shown in the image below.
Note
If your MedTech service didn't validate, review the validation failure message, and troubleshoot the issue. It's recommended that you review the properties under each MedTech service tab that you've configured.
Create your MedTech service
Select the Create button to begin the deployment of your MedTech service.
The deployment status of your MedTech service will be displayed.
Once your MedTech service is successfully deployed, select the Go to resource button to be taken to your MedTech service.
Now that your MedTech service has been deployed, we're going to walk through the steps of assigning access roles. Your MedTech service's system-assigned managed identity will require access to your device message event hub and your FHIR service.
Granting the MedTech service access to the device message event hub and FHIR service
To ensure that your MedTech service works properly, it's system-assigned managed identity must be granted access via role assignments to your device message event hub and FHIR service.
Granting access to the device message event hub
In the Search bar at the top center of the Azure portal, enter and select the name of your Event Hubs Namespace that was previously created for your MedTech service device messages.
Select the Event Hubs button under Entities.
Select the event hub that will be used for your MedTech service device messages. For this example, the device message event hub is named `devicedata'.
Select the Access control (IAM) button.
Select the Add role assignment button.
On the Add role assignment page, select the View button directly across from the Azure Event Hubs Data Receiver role.
The Azure Event Hubs Data Receiver role allows the MedTech service that's being assigned this role to receive device message data from this event hub.
Tip
For more information about application roles, see Authentication & Authorization for Azure Health Data Services.
Select the Select role button.
Select the Next button.
In the Add role assignment page, select Managed identity next to Assign access to and + Select members next to Members.
When the Select managed identities box opens, under the Managed identity box, select MedTech service, and find your MedTech service system-assigned managed identity under the Select box. Once the system-assigned managed identity for your MedTech service is found, select it, and then select the Select button.
Tip
The system-assigned managed identify name for your MedTech service is a concatenation of the workspace name and the name of your MedTech service.
"your workspace name"/"your MedTech service name" or "your workspace name"/iotconnectors/"your MedTech service name"
For example:
azuredocsdemo/mt-azuredocsdemo or azuredocsdemo/iotconnectors/mt-azuredocsdemo
On the Add role assignment page, select the Review + assign button.
On the Add role assignment confirmation page, select the Review + assign button.
After the role assignment has been successfully added to the event hub, a notification will display on your screen with a green check mark. This notification indicates that your MedTech service can now read from your device message event hub.
Tip
For more information about authorizing access to Event Hubs resources, see Authorize access with Azure Active Directory.
Granting access to the FHIR service
The steps for granting your MedTech service system-assigned managed identity access to your FHIR service are the same steps that you took to grant access to your device message event hub. The only exception will be that your MedTech service system-assigned managed identity will require FHIR Data Writer access versus Azure Event Hubs Data Receiver.
The FHIR Data Writer role provides read and write access to your FHIR service, which your MedTech service uses to access or persist data. Because the MedTech service is deployed as a separate resource, the FHIR service will receive requests from the MedTech service. If the FHIR service doesn’t know who's making the request, it will deny the request as unauthorized.
Tip
For more information about assigning roles to the FHIR service, see Configure Azure Role-based Access Control (RBAC)
For more information about application roles, see Authentication & Authorization for Azure Health Data Services.
Next steps
In this article, you've learned how to deploy a MedTech service using the Azure portal. To learn more about how to troubleshoot your MedTech service or Frequently Asked Questions (FAQs) about the MedTech service, see
FHIR® is a registered trademark of Health Level Seven International, registered in the U.S. Trademark Office and is used with their permission.
Povratne informacije
Pošalјite i prikažite povratne informacije za