Skip to content

Commit 7de008c

Browse files
Merge pull request #281979 from msjasteppe/converter-updates
Adding additional section to FAQ, TSG, and Release Notes
2 parents c19ff29 + 98242fe commit 7de008c

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

articles/healthcare-apis/fhir/convert-data-faq.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ Yes. You can use the [FHIR Converter Visual Studio Code extension](https://mar
7070

7171
Yes. It’s possible to store and reference custom templates. For more information, see [Configure settings for $convert-data by using the Azure portal](convert-data-configuration.md).
7272

73+
## Why are my dates being converted when transforming JSON data?
74+
75+
It's possible for dates supplied within JSON data to be returned in a different format than what was supplied. During deserialization of the JSON payload strings that are identified as dates get converted into .NET DateTime objects. These objects then get converted back to strings before going through the Liquid template engine. This conversion can cause the date value to be reformatted and represented in the local timezone of the FHIR service.
76+
77+
The coercion of strings to .NET DateTime objects can be disabled using the boolean parameter `jsonDeserializationTreatDatesAsStrings`. When set to `true`, the supplied data is treated as a string and won't be modified before being supplied to the Liquid engine.
78+
7379
## If I need support with troubleshooting, where can I go?
7480

7581
Depending on the version of `$convert-data` you’re using, you can:

articles/healthcare-apis/fhir/convert-data-troubleshoot.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ Any loops or iterations in the templates can have large impacts on performance.
2727
The `$convert-data` operation applies post processing logic after the template is applied to the input. This post processing logic can result in the output looking different or unexpected errors compared to if you ran the default Liquid template directly. Post processing ensures the output is valid JSON and removes any duplicates based on the ID properties generated for resources in the template. To see the post processing logic in more detail, see the [FHIR-Converter GitHub repository](https://github.com/microsoft/FHIR-Converter/blob/main/src/Microsoft.Health.Fhir.Liquid.Converter/OutputProcessors/PostProcessor.cs).
2828

2929
## Message size
30-
There isn’t a hard limit on the size of the messages allowed for the `$convert-data` operation, however, for content with a request size greater than 10 MB, server 500 errors are possible. If you're receiving 500 server errors, ensure your requests are under 10 MB.
30+
There isn’t a hard limit on the size of the messages allowed for the `$convert-data` operation, however, for content with a request size greater than 10 MB, server 500 errors are possible. If you're receiving 500 server errors, ensure your requests are under 10 MB.
31+
32+
## Why are my dates being converted when transforming JSON data?
33+
34+
It's possible for dates supplied within JSON data to be returned in a different format than what was supplied. During deserialization of the JSON payload strings that are identified as dates get converted into .NET DateTime objects. These objects then get converted back to strings before going through the Liquid template engine. This conversion can cause the date value to be reformatted and represented in the local timezone of the FHIR service.
35+
36+
The coercion of strings to .NET DateTime objects can be disabled using the boolean parameter `jsonDeserializationTreatDatesAsStrings`. When set to `true`, the supplied data is treated as a string and won't be modified before being supplied to the Liquid engine.
3137

3238
## Default templates and customizations
3339
Default template implementations for many common scenarios can be found on the [FHIR-Converter GitHub repository](https://github.com/microsoft/FHIR-Converter/tree/main/data/Templates). The default templates can be used as a guide and reference for customizing and creating your own templates. In addition to the default templates, the `$convert-data` operation supports several customer Liquid [filters and tags](https://github.com/microsoft/FHIR-Converter/blob/main/docs/Filters-and-Tags.md) that help simplify common scenarios.
@@ -42,4 +48,4 @@ In addition to testing templates on an instance of the service, a [Visual Studio
4248

4349
[$convert-data-faq](convert-data-faq.md).
4450

45-
[!INCLUDE [FHIR trademark statement](../includes/healthcare-apis-fhir-trademark.md)]
51+
[!INCLUDE [FHIR trademark statement](../includes/healthcare-apis-fhir-trademark.md)]

articles/healthcare-apis/release-notes-2024.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: shellyhaverkamp
66
ms.service: healthcare-apis
77
ms.subservice: workspace
88
ms.topic: reference
9-
ms.date: 05/13/2024
9+
ms.date: 07/29/2024
1010
ms.author: jasteppe
1111
ms.custom: references_regions
1212
---
@@ -15,6 +15,18 @@ ms.custom: references_regions
1515

1616
This article describes features, enhancements, and bug fixes released in 2024 for the FHIR® service, DICOM® service, and MedTech service in Azure Health Data Services.
1717

18+
## July 2024
19+
20+
### Azure Health Data Services
21+
22+
### FHIR service
23+
24+
#### Allow dates in JSON data to be treated as strings in the Convert-Data operation
25+
26+
It's possible for dates supplied within JSON data to be returned in a different format than what was supplied. During deserialization of the JSON payload strings that are identified as dates get converted into .NET DateTime objects. These objects then get converted back to strings before going through the Liquid template engine. This conversion can cause the date value to be reformatted and represented in the local timezone of the FHIR service.
27+
28+
The coercion of strings to .NET DateTime objects can be disabled using the boolean parameter `jsonDeserializationTreatDatesAsStrings`. When set to `true`, the supplied data is treated as a string and won't be modified before being supplied to the Liquid engine.
29+
1830
## May 2024
1931

2032
### Azure Health Data Services

0 commit comments

Comments
 (0)