Closed
Description
Steps to reproduce
- Pull hapi-fhir-jpa-server-starter from github
- Enable validation, change the validation rule from us-core to http://hl7.org/fhir/StructureDefinition/Patient (see change in branch ld-2022-12-15-fhir-comment-bug). master...ld-2022-12-15-fhir-comment-bug
- POST base FHIR Structure Definition for Patient: https://build.fhir.org/patient.profile.json
- POST Patient XML (see below)
Expected Results
- The patient is created or non "fhir-comments" errors are generated
Actual Results
- The response to the POST contains an error referring to "Unrecognised property '@fhir_comments' "
Additional Context
- The underlying issue is in hapi-fhir and how resource pre-comments are translated to JSON. Please see: Under certain configurations of hapi-fhir servers, validation will fail on XML resources with comments because JSON "fhir_comments" were generated hapi-fhir#4375
- The solution is to upgrade hapi-fhir-jpaserver-starter to the latest version of hapi-fhir
Metadata
Metadata
Assignees
Labels
No labels