You can deploy a sandbox application to see how IoMT FHIR Connector for Azure can be used with Azure API for FHIR and Azure IoT Central. The script deploys all of these components with mock devices sending data through the IoMT FHIR Connector for Azure pipeline.
Once deployment is completed you should see the following Azure components:
- App Service
- App Service plan
- Application Insights
- Event Hubs Namespace
- Stream Analytics job
- Storage account
- Key vault (x2)
- Azure API for FHIR
- IoT Central Application
For the ease of using the sandbox, a few steps will be taken for you:
- Simulated devices are set up in IoT Central to generate data.
- Template files for those devices will be copied to the IoMT FHIR Connector for Azure storage account "Template" blob.
- The IoMT FHIR Connector for Azure will be configured with the "R4DeviceAndPatientCreateIdentityService" so that patients will automatically be created for each device.
Before deploying the samples scenario make sure that you have Az
and AzureAd
powershell modules installed (not required for Azure Cloud Shell):
Install-Module Az
Install-Module AzureAd
To deploy the sample scenario, first clone this git repo and find the deployment scripts folder:
git clone https://github.com/Microsoft/iomt-fhir
cd iomt-fhir/deploy/scripts
Log into your Azure subscription:
Login-AzAccount
Connect to Azure AD with:
Connect-AzureAD -TenantDomain <AAD TenantDomain>
NOTE The connection to Azure AD can be made using a different tenant domain than the one tied to your Azure subscription. If you don't have privileges to create app registrations, users, etc. in your Azure AD tenant, you can create a new one, which will just be used for demo identities, etc.
If you have more than one subscription, you can choose which to deploy to with:
Select-AzSubscription <SubscriptionID>
Then deploy the scenario with the Open Source IoMT FHIR Connector for Azure:
.\Create-IomtFhirSandboxEnvironment.ps1 -EnvironmentName <ENVIRONMENTNAME>
After successful deployment, your IoT Central application must be connected to the IoMT FHIR Connector for Azure. To do so:
- Navigate to your IOT Central app at <ENVIRONMENTNAME>.azureiotcentral.com
- On the left panel, natigate to "Data export"
- Click New > Azure Event Hubs
- Under "Event Hubs namespace" choose your environment name.
- Under "Event hub" choose "devicedata"
- We only need to export "Telemetry", so you can turn off "Devices" and "Device Templates".
- Click Save.
Copy the FHIR server URL, client ID and client secret from the deployment output to query the FHIR server (NOTE: this client ID and secret are used by the IOMT FHIR Connector for Azure and shouldn't be used on any other production services.')
After a few minutes, you should begin to see observations in the FHIR server from the simulated devices using the following GET URL
https://<ENVIRONMENTNAME>.azurehealthcareapis.com/Observation
If no data is flowing, you should debug the environment