Skip to content

Commit 8f76b0a

Browse files
Merge pull request #229201 from msjasteppe/mapping-debugger
Addition of Mapping debugger documentation
2 parents 335bf65 + 4c4063d commit 8f76b0a

17 files changed

+122
-72
lines changed

.openpublishing.redirection.healthcare-apis.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,10 @@
661661
"redirect_url": "/azure/healthcare-apis/iot/device-messages-through-iot-hub",
662662
"redirect_document_id": false
663663
},
664+
{ "source_path_from_root": "/articles/healthcare-apis/iot/how-to-create-mappings-copies.md",
665+
"redirect_url": "/azure/healthcare-apis/iot/how-to-use-mapping-debugger",
666+
"redirect_document_id": false
667+
},
664668
{ "source_path_from_root": "/articles/healthcare-apis/events/events-display-metrics.md",
665669
"redirect_url": "/azure/healthcare-apis/events/events-use-metrics",
666670
"redirect_document_id": false

articles/healthcare-apis/iot/how-to-create-mappings-copies.md

Lines changed: 0 additions & 62 deletions
This file was deleted.
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
---
2+
title: How to use the MedTech service Mapping debugger - Azure Health Data Services
3+
description: This article describes how to use the MedTech service Mapping debugger.
4+
services: healthcare-apis
5+
author: msjasteppe
6+
ms.service: healthcare-apis
7+
ms.subservice: iomt
8+
ms.topic: how-to
9+
ms.date: 03/03/2023
10+
ms.author: jasteppe
11+
---
12+
13+
# How to use the Mapping debugger
14+
15+
> [!NOTE]
16+
> [Fast Healthcare Interoperability Resources (FHIR®)](https://www.hl7.org/fhir/) is an open healthcare specification.
17+
18+
In this article, you'll learn how to use the MedTech service Mapping debugger in the Azure portal. The Mapping debugger is a tool used for creating, updating, and troubleshooting the MedTech service device and FHIR destination mappings. The Mapping debugger can also be used for uploading test device messages to see how they'll look after being processed into normalized messages and transformed into FHIR Observations for persistence in the FHIR service. This new self-service tool allows you to easily view and make inline adjustments in real-time, without ever having to leave the Azure portal.
19+
20+
> [!TIP]
21+
> To learn about how the MedTech service transforms and persists device message data into the FHIR service see, [Understand the device message data transformation](understand-service.md).
22+
23+
## Overview of the Mapping debugger
24+
25+
1. To access the MedTech service's Mapping debugger, select **Mapping debugger** within your MedTech service on the Azure portal. For this article, we'll be using a MedTech service named **mt-azuredocsdemo**. You'll select your own MedTech service. From this screen, we can see the Mapping debugger is presenting the device and FHIR destination mappings associated with this MedTech service and has provided a **Validation** of those mappings.
26+
27+
:::image type="content" source="media\how-to-use-mapping-debugger\mapping-debugger-main-screen.png" alt-text="Screenshot of the Mapping debugger main screen." lightbox="media\how-to-use-mapping-debugger\mapping-debugger-main-screen.png":::
28+
29+
2. The Mapping debugger provides convenient features to help make the management, editing, and troubleshooting of device and FHIR destination mappings easier.
30+
31+
:::image type="content" source="media\how-to-use-mapping-debugger\mapping-debugger-upload-and-download.png" alt-text="Screenshot of the Mapping debugger main screen with Upload and Download buttons highlighted." lightbox="media\how-to-use-mapping-debugger\mapping-debugger-upload-and-download.png":::
32+
33+
**Upload** - With this selection, you can upload:
34+
- **Device mapping**: Can be edited and saved (optional) to the MedTech service.
35+
- **FHIR destination mapping**: Can be edited and saved (optional) to the MedTech service.
36+
- **Test device message**: Used by the validation service to produce a sample normalized measurement and FHIR Observation based on the supplied mappings.
37+
38+
**Download** - With this selection you can download copies of:
39+
- **Device mapping**: The device mapping currently used by your MedTech service.
40+
- **FHIR destination mapping**: The FHIR destination mapping currently used by your MedTech service.
41+
- **Mappings**: Both mappings currently used by your MedTech service
42+
43+
## How to troubleshoot the device and FHIR destination mappings using the Mapping debugger
44+
45+
1. If there are errors with the device or FHIR destination mappings, the Mapping debugger will display the issues. In this example, we can see that there are error *warnings* at **Line 12** in the **Device mapping** and at **Line 20** in the **FHIR destination mapping**.
46+
47+
:::image type="content" source="media\how-to-use-mapping-debugger\mapping-debugger-with-errors.png" alt-text="Screenshot of the Mapping debugger with device and FHIR destination mappings warnings." lightbox="media\how-to-use-mapping-debugger\mapping-debugger-with-errors.png":::
48+
49+
2. If you place your mouse cursor over an error warning, the Mapping debugger will provide you with more error information.
50+
51+
:::image type="content" source="media\how-to-use-mapping-debugger\mapping-debugger-with-error-details.png" alt-text="Screenshot of the Mapping debugger with error details for the device mappings warning." lightbox="media\how-to-use-mapping-debugger\mapping-debugger-with-error-details.png":::
52+
53+
3. Using the suggestions provided by the Mapping debugger, we've now fixed the error warnings and are ready to select **Save** to commit our updated device and FHIR destination mappings to the MedTech service.
54+
55+
:::image type="content" source="media\how-to-use-mapping-debugger\mapping-debugger-save-mappings.png" alt-text="Screenshot of the Mapping debugger and the Save button." lightbox="media\how-to-use-mapping-debugger\mapping-debugger-save-mappings.png":::
56+
57+
> [!NOTE]
58+
> The MedTech service only saves the mappings that have been changed/updated. For example: If you only made a change to the **device mapping**, only those changes are saved to your MedTech service and no changes would be saved to the FHIR destination mapping. This is by design and to help with performance of the MedTech service.
59+
60+
4. Once the device and FHIR destination mappings are successfully saved, you'll receive confirmation from **Notifications** within the Azure portal.
61+
62+
:::image type="content" source="media\how-to-use-mapping-debugger\mapping-debugger-successful-save.png" alt-text="Screenshot of the Mapping debugger and a successful the save of the device and FHIR destination mappings." lightbox="media\how-to-use-mapping-debugger\mapping-debugger-successful-save.png":::
63+
64+
## View a normalized message and FHIR Observation
65+
66+
1. The Mapping debugger gives you the ability to view sample outputs of the normalization and FHIR transformation processes by supplying a test device message. Select **Upload** and **Test device message**.
67+
68+
:::image type="content" source="media\how-to-use-mapping-debugger\mapping-debugger-select-upload-and-test-device-message.png" alt-text="Screenshot of the Mapping debugger and test device message box." lightbox="media\how-to-use-mapping-debugger\mapping-debugger-select-upload-and-test-device-message.png":::
69+
70+
2. The **Select a file** box will open. For this example, we'll select **Enter manually**.
71+
72+
:::image type="content" source="media\how-to-use-mapping-debugger\mapping-debugger-select-test-device-message-manual.png" alt-text="Screenshot of the Mapping debugger and Select a file box." lightbox="media\how-to-use-mapping-debugger\mapping-debugger-select-test-device-message-manual.png":::
73+
74+
3. Copy/paste or type the test device message into the **Upload test device message** box. The **Validation** box may still be *red* if the either of the mappings has an error/warning. As long as **No errors** is green, the test device message is valid. Select the **X** in the right corner to close the **Upload test device message** box.
75+
76+
:::image type="content" source="media\how-to-use-mapping-debugger\mapping-debugger-input-test-device-message.png" alt-text="Screenshot of the Enter manually box with a validated test device message in the box." lightbox="media\how-to-use-mapping-debugger\mapping-debugger-input-test-device-message.png":::
77+
78+
4. Once a conforming test device message is uploaded, the **View normalized message** and **View FHIR observation** buttons will become available so that you may view the sample outputs of the normalization and FHIR transformation processes. These sample outputs can be used to validate your device and FHIR destination mappings are properly configured for processing events according to your requirement.
79+
80+
:::image type="content" source="media\how-to-use-mapping-debugger\mapping-debugger-normalized-and-FHIR-selections-available.png" alt-text="Screenshot View normalized message and View FHIR observation available." lightbox="media\how-to-use-mapping-debugger\mapping-debugger-normalized-and-FHIR-selections-available.png":::
81+
82+
5. Use the **X** in the corner to close the **Normalized message** and **FHIR observation** boxes.
83+
84+
:::image type="content" source="media\how-to-use-mapping-debugger\mapping-debugger-normalized-message.png" alt-text="Screenshot of the normalized message." lightbox="media\how-to-use-mapping-debugger\mapping-debugger-normalized-and-FHIR-selections-available.png":::
85+
86+
:::image type="content" source="media\how-to-use-mapping-debugger\mapping-debugger-fhir-observation.png" alt-text="Screenshot of the FHIR observation available." lightbox="media\how-to-use-mapping-debugger\mapping-debugger-fhir-observation.png":::
87+
88+
## Next steps
89+
90+
In this article, you learned about how to use the Mapping debugger to edit/troubleshoot the MedTech service device and FHIR destination mappings and view normalized message and FHIR Observation from a test device message.
91+
92+
To learn how to troubleshoot MedTech service deployment errors, see
93+
94+
> [!div class="nextstepaction"]
95+
> [Troubleshoot MedTech service deployment errors](troubleshoot-errors-deployment.md)
96+
97+
To learn how to troubleshoot errors using the MedTech service logs, see
98+
99+
> [!div class="nextstepaction"]
100+
> [Troubleshoot errors using the MedTech service logs](troubleshoot-errors-logs.md)
101+
102+
FHIR® is a registered trademark of Health Level Seven International, registered in the U.S. Trademark Office and is used with their permission.
103+

articles/healthcare-apis/iot/index.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ landingContent:
5353
linkLists:
5454
- linkListType: how-to-guide
5555
links:
56-
- text: Device mappings
56+
- text: Mapping debugger
57+
url: how-to-use-mapping-debugger.md
58+
- text: Device mapping
5759
url: how-to-configure-device-mappings.md
58-
- text: FHIR destination mappings
60+
- text: FHIR destination mapping
5961
url: how-to-configure-fhir-mappings.md
6062

6163
- title: Monitor the MedTech service
48.6 KB
Loading
34.2 KB
Loading
125 KB
Loading
Loading
47.5 KB
Loading
75.8 KB
Loading

0 commit comments

Comments
 (0)