You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/healthcare-apis/azure-api-for-fhir/convert-data.md
+38-27Lines changed: 38 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,12 @@
2
2
title: Data conversion for Azure API for FHIR
3
3
description: Use the $convert-data endpoint and customize-converter templates to convert data in Azure API for FHIR.
4
4
services: healthcare-apis
5
-
author: RuiyiC
5
+
author: irenepjoseph
6
6
ms.service: healthcare-apis
7
7
ms.subservice: fhir
8
8
ms.topic: overview
9
-
ms.date: 06/03/2022
10
-
ms.author: ruiyichen
9
+
ms.date: 03/09/2023
10
+
ms.author: irenejoseph
11
11
---
12
12
13
13
# Converting your data to FHIR for Azure API for FHIR
@@ -21,7 +21,7 @@ Currently the `$convert-data` custom endpoint supports `four` types of data conv
21
21
|C-CDA | FHIR |
22
22
|HL7v2 | FHIR|
23
23
|JSON | FHIR|
24
-
|FHIR STU3 | FHIR R4 **(new!)**|
24
+
|FHIR STU3 | FHIR R4 |
25
25
26
26
27
27
> [!NOTE]
@@ -40,8 +40,11 @@ $convert-data takes a [Parameter](http://hl7.org/fhir/parameters.html) resource
40
40
| ----------- | ----------- | ----------- |
41
41
| inputData | Data to be converted. | For `Hl7v2`: string <br> For `Ccda`: XML <br> For `Json`: JSON <br> For `FHIR STU3`: JSON|
42
42
| inputDataType | Data type of input. |```HL7v2```, ``Ccda``, ``Json``, ``Fhir``|
43
-
| templateCollectionReference | Reference to an [OCI image ](https://github.com/opencontainers/image-spec) template collection on [Azure Container Registry (ACR)](https://azure.microsoft.com/services/container-registry/). It's the image containing Liquid templates to use for conversion. It can be a reference either to the default templates or a custom template image that is registered within the FHIR service. See below to learn about customizing the templates, hosting those on ACR, and registering to the FHIR service. | For ***default/sample*** templates: <br> **HL7v2** templates: <br>```microsofthealth/fhirconverter:default``` <br>``microsofthealth/hl7v2templates:default``<br> **C-CDA** templates: <br> ``microsofthealth/ccdatemplates:default`` <br> **JSON** templates: <br> ``microsofthealth/jsontemplates:default`` <br> **FHIR-STU3** templates: <br> ``microsofthealth/stu3tor4templates:default`` <br><br> For ***custom*** templates: <br> \<RegistryServer\>/\<imageName\>@\<imageDigest\>, \<RegistryServer\>/\<imageName\>:\<imageTag\> |
44
-
| rootTemplate | The root template to use while transforming the data. | For **HL7v2**:<br> "ADT_A01", "ADT_A02", "ADT_A03", "ADT_A04", "ADT_A05", "ADT_A08", "ADT_A11", "ADT_A13", "ADT_A14", "ADT_A15", "ADT_A16", "ADT_A25", "ADT_A26", "ADT_A27", "ADT_A28", "ADT_A29", "ADT_A31", "ADT_A47", "ADT_A60", "OML_O21", "ORU_R01", "ORM_O01", "VXU_V04", "SIU_S12", "SIU_S13", "SIU_S14", "SIU_S15", "SIU_S16", "SIU_S17", "SIU_S26", "MDM_T01", "MDM_T02"<br><br> For **C-CDA**:<br> "CCD", "ConsultationNote", "DischargeSummary", "HistoryandPhysical", "OperativeNote", "ProcedureNote", "ProgressNote", "ReferralNote", "TransferSummary" <br><br> For **JSON**: <br> "ExamplePatient", "Stu3ChargeItem" <br><br> **For FHIR STU3 to R4**": <br>Name of the root template that is the same as the STU3 resource name e.g., "Patient", "Observation", "Organization". |
43
+
| templateCollectionReference | Reference to an [OCI image ](https://github.com/opencontainers/image-spec) template collection on [Azure Container Registry (ACR)](https://azure.microsoft.com/services/container-registry/). It's the image containing Liquid templates to use for conversion. It can be a reference either to the default templates or a custom template image that is registered within the FHIR service. See below to learn about customizing the templates, hosting those on ACR, and registering to the FHIR service. | For ***default/sample*** templates: <br> **HL7v2** templates: <br>```microsofthealth/fhirconverter:default``` <br>``microsofthealth/hl7v2templates:default``<br> **C-CDA** templates: <br> ``microsofthealth/ccdatemplates:default`` <br> **JSON** templates: <br> ``microsofthealth/jsontemplates:default`` <br> **FHIR STU3** templates: <br> ``microsofthealth/stu3tor4templates:default`` <br><br> For ***custom*** templates: <br> \<RegistryServer\>/\<imageName\>@\<imageDigest\>, \<RegistryServer\>/\<imageName\>:\<imageTag\> |
44
+
| rootTemplate | The root template to use while transforming the data. | For **HL7v2**:<br> "ADT_A01", "ADT_A02", "ADT_A03", "ADT_A04", "ADT_A05", "ADT_A08", "ADT_A11", "ADT_A13", "ADT_A14", "ADT_A15", "ADT_A16", "ADT_A25", "ADT_A26", "ADT_A27", "ADT_A28", "ADT_A29", "ADT_A31", "ADT_A47", "ADT_A60", "OML_O21", "ORU_R01", "ORM_O01", "VXU_V04", "SIU_S12", "SIU_S13", "SIU_S14", "SIU_S15", "SIU_S16", "SIU_S17", "SIU_S26", "MDM_T01", "MDM_T02"<br><br> For **C-CDA**:<br> "CCD", "ConsultationNote", "DischargeSummary", "HistoryandPhysical", "OperativeNote", "ProcedureNote", "ProgressNote", "ReferralNote", "TransferSummary" <br><br> For **JSON**: <br> "ExamplePatient", "Stu3ChargeItem" <br><br> **FHIR STU3**": <br> STU3 Resource Name e.g., "Patient", "Observation", "Organization". |
45
+
46
+
> [!NOTE]
47
+
> FHIR STU3 to R4 templates are "diff" Liquid templates that provide mappings of field differences only between STU3 resource and its equivalent resource in FHIR R4 standard.Some of the STU3 resources are renamed or removed from R4. Please refer to [Resource differences and constraints for STU3 to R4 conversion](https://github.com/microsoft/FHIR-Converter/blob/main/docs/Stu3R4-resources-differences.md).
45
48
46
49
> [!NOTE]
47
50
> JSON templates are sample templates for use, not "default" templates that adhere to any pre-defined JSON message types. JSON doesn't have any standardized message types, unlike HL7v2 messages or C-CDA documents. Therefore, instead of default templates we provide you with some sample templates that you can use as a starting guide for your own customized templates.
@@ -104,6 +107,9 @@ $convert-data takes a [Parameter](http://hl7.org/fhir/parameters.html) resource
104
107
105
108
You can use the [FHIR Converter extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-health-fhir-converter) for Visual Studio Code to customize the templates as per your needs. The extension provides an interactive editing experience, and makes it easy to download Microsoft-published templates and sample data. Refer to the documentation in the extension for more details.
106
109
110
+
> [!NOTE]
111
+
> FHIR Converter extension for Visual Studio Code is available for HL7v2, C-CDA and JSON Liquid templates. FHIR STU3 to R4 Liquid templates are currently not supported.
112
+
107
113
## Host and use templates
108
114
109
115
It's recommended that you host your own copy of templates on ACR. There are four steps involved in hosting your own copy of templates and using those in the $convert-data operation:
@@ -183,27 +189,32 @@ In the table below, you'll find the IP address for the Azure region where the Az
183
189
184
190
|**Azure Region** |**Public IP Address** |
185
191
|:----------------------|:-------------------|
186
-
| Australia East | 20.53.44.80 |
187
-
| Canada Central | 20.48.192.84 |
188
-
| Central US | 52.182.208.31 |
189
-
| East US | 20.62.128.148 |
190
-
| East US 2 | 20.49.102.228 |
191
-
| East US 2 EUAP | 20.39.26.254 |
192
-
| Germany North | 51.116.51.33 |
193
-
| Germany West Central | 51.116.146.216 |
194
-
| Japan East | 20.191.160.26 |
195
-
| Korea Central | 20.41.69.51 |
196
-
| North Central US | 20.49.114.188 |
197
-
| North Europe | 52.146.131.52 |
198
-
| South Africa North | 102.133.220.197 |
199
-
| South Central US | 13.73.254.220 |
200
-
| Southeast Asia | 23.98.108.42 |
201
-
| Switzerland North | 51.107.60.95 |
202
-
| UK South | 51.104.30.170 |
203
-
| UK West | 51.137.164.94 |
204
-
| West Central US | 52.150.156.44 |
205
-
| West Europe | 20.61.98.66 |
206
-
| West US 2 | 40.64.135.77 |
192
+
| Australia East | 20.53.47.210 |
193
+
| Brazil South | 191.238.72.227 |
194
+
| Canada Central | 20.48.197.161 |
195
+
| Central India | 20.192.47.66 |
196
+
| East US | 20.62.134.242, 20.62.134.244, 20.62.134.245 |
197
+
| East US 2 | 20.62.60.115, 20.62.60.116, 20.62.60.117 |
198
+
| France Central | 51.138.211.19 |
199
+
| Germany North | 51.116.60.240 |
200
+
| Germany West Central | 20.52.88.224 |
201
+
| Japan East | 20.191.167.146 |
202
+
| Japan West | 20.189.228.225 |
203
+
| Korea Central | 20.194.75.193 |
204
+
| North Central US | 52.162.111.130, 20.51.0.209 |
205
+
| North Europe | 52.146.137.179 |
206
+
| Qatar Central | 20.21.36.225 |
207
+
| South Africa North | 102.133.220.199 |
208
+
| South Central US | 20.65.134.83 |
209
+
| Southeast Asia | 20.195.67.208 |
210
+
| Sweden Central | 51.12.28.100 |
211
+
| Switzerland North | 51.107.247.97 |
212
+
| UK South | 51.143.213.211 |
213
+
| UK West | 51.140.210.86 |
214
+
| West Central US | 13.71.199.119 |
215
+
| West Europe | 20.61.103.243, 20.61.103.244 |
216
+
| West US 2 | 20.51.13.80, 20.51.13.84, 20.51.13.85 |
0 commit comments