MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.21k stars 21.38k forks source link

Update Sample request for $convert-data in doc #105387

Open snarang-microsoft opened 1 year ago

snarang-microsoft commented 1 year ago

Hi Team,

When users post the sample request shown in the convert data document for HL7 to FHIR conversion and take the FHIR bundle from the response content and post it on FHIR server. It doesn't work at the first place. They encounter below errors:

  1. "Error occurred when parsing model: 'While building a POCO: Literal 'CURRENT' is not a valid value for enumeration 'NameUse' (at Resource.entry[4].resource[0].name[0].use[0])'."

  2. "Error occurred when parsing model: 'While building a POCO: Literal 'HOME' is not a valid value for enumeration 'ContactPointUse' (at Resource.entry[4].resource[0].telecom[0].use[0])'."

  3. "Error occurred when parsing model: 'While building a POCO: Literal 'PRSNL' is not a valid value for enumeration 'NameUse' (at Resource.entry[6].resource[0].name[0].use[0])'."

Users need to fix above errors one by one to make it work. They didn't use any customized templates; everything was default.

Please update Sample request (Sample_Request.txt) in the document, so the user didn't encounter error while posting the converted FHIR bundle to FHIR server. The Input data (HL7) fields are modified, so the converted FHIR bundle didn't give errors on posting.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

shaktisingh-msft commented 1 year ago

Hi @snarang-microsoft ,

Thanks for sharing this feedback. We will look into this and update as appropriate.

Hi @RuiyiC,

Could you please look into this document request. Thanks.

RuiyiC commented 1 year ago

Hi Team,

When users post the sample request shown in the convert data document for HL7 to FHIR conversion and take the FHIR bundle from the response content and post it on FHIR server. It doesn't work at the first place. They encounter below errors:

  1. "Error occurred when parsing model: 'While building a POCO: Literal 'CURRENT' is not a valid value for enumeration 'NameUse' (at Resource.entry[4].resource[0].name[0].use[0])'."
  2. "Error occurred when parsing model: 'While building a POCO: Literal 'HOME' is not a valid value for enumeration 'ContactPointUse' (at Resource.entry[4].resource[0].telecom[0].use[0])'."
  3. "Error occurred when parsing model: 'While building a POCO: Literal 'PRSNL' is not a valid value for enumeration 'NameUse' (at Resource.entry[6].resource[0].name[0].use[0])'."

Users need to fix above errors one by one to make it work. They didn't use any customized templates; everything was default.

Please update Sample request (Sample_Request.txt) in the document, so the user didn't encounter error while posting the converted FHIR bundle to FHIR server. The Input data (HL7) fields are modified, so the converted FHIR bundle didn't give errors on posting.

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Can you provide the converted FHIR bundle which was posted to FHIR server? I just used $convert-data with the sample request and posted the FHIR bundle to FHIR server and it worked

snarang-microsoft commented 1 year ago

Hi Team, When users post the sample request shown in the convert data document for HL7 to FHIR conversion and take the FHIR bundle from the response content and post it on FHIR server. It doesn't work at the first place. They encounter below errors:

  1. "Error occurred when parsing model: 'While building a POCO: Literal 'CURRENT' is not a valid value for enumeration 'NameUse' (at Resource.entry[4].resource[0].name[0].use[0])'."
  2. "Error occurred when parsing model: 'While building a POCO: Literal 'HOME' is not a valid value for enumeration 'ContactPointUse' (at Resource.entry[4].resource[0].telecom[0].use[0])'."
  3. "Error occurred when parsing model: 'While building a POCO: Literal 'PRSNL' is not a valid value for enumeration 'NameUse' (at Resource.entry[6].resource[0].name[0].use[0])'."

Users need to fix above errors one by one to make it work. They didn't use any customized templates; everything was default. Please update Sample request (Sample_Request.txt) in the document, so the user didn't encounter error while posting the converted FHIR bundle to FHIR server. The Input data (HL7) fields are modified, so the converted FHIR bundle didn't give errors on posting.

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Can you provide the converted FHIR bundle which was posted to FHIR server? I just used $convert-data with the sample request and posted the FHIR bundle to FHIR server and it worked

Please find the converted FHIR bundle which was posted to FHIR server. Convert_Response.txt

irenepjoseph commented 1 year ago

@snarang-microsoft I'm taking over the documentation for convert-data. can you share the correct (updated) sample request and sample response that can be added to the convert-data.md

snarang-microsoft commented 1 year ago

@irenepjoseph here is the updated sample request Sample_Request.txt and sample response Convert_Response.txt

irenepjoseph commented 1 year ago

This change should apply to: https://learn.microsoft.com/en-us/azure/healthcare-apis/fhir/convert-data https://learn.microsoft.com/en-us/azure/healthcare-apis/azure-api-for-fhir/convert-data https://github.com/microsoft/fhir-server/blob/main/docs/ConvertDataOperation.md @snarang-microsoft can confirm. No need to add new github issues

snarang-microsoft commented 1 year ago

@irenepjoseph Yes, changes will be applied to all 3 mentioned documents.

mikaelweave commented 12 months ago

reassign: irenepjoseph