Stream: IG creation
Topic: Example Validation
Brian Postlethwaite (Oct 07 2019 at 03:35):
I assume that the IG Publisher uses the java validator internally right?
The below resource is in my IG and it fails the validation:
https://sqlonfhir-r4.azurewebsites.net/fhir/Questionnaire/gp-assessment-report
(however it does pass the .net validator - which I believe to be correct in this instance)
The errors (2) reported are:
entry.request mandatory for batch/transaction/history, otherwise prohibited [entry.all(request.exists() = ((%resource.type = 'batch') or (%resource.type = 'transaction') or (%resource.type = 'history')))] entry.response mandatory for batch-response/transaction-response/history, otherwise prohibited [entry.all(response.exists() = ((%resource.type = 'batch-response') or (%resource.type = 'transaction-response') or (%resource.type = 'history')))]
Its complaining about my contained bundle which is a batch request
<contained>
<Bundle>
<id value="PrePopQuery"/>
<type value="batch"/>
<entry>
<fullUrl value="urn:uuid:88f151c0-a954-468a-88bd-5ae15c08e059"/>
<request>
<method value="GET"/>
<url value="RelatedPerson?patient={{%LaunchPatient.id}}&active=true"/>
</request>
</entry>
</Bundle>
</contained>
Lloyd McKenzie (Oct 07 2019 at 04:27):
Why on earth would you use 'contained' for a Batch? The Batch can clearly stand alone - seems to be a mis-use of 'contained'.
Grahame Grieve (Oct 07 2019 at 10:45):
ok. fixed next release. It was to do with resource/rootResource
Last updated: Apr 12 2022 at 19:14 UTC