Stream: IG creation
Topic: US-Core Validation error
Eric Haas (Sep 19 2018 at 22:32):
Fixing the US-Core qa issue and I really think this error is the validator and not the resource instance.
Validation Error message:
Bundle/uscore-mo3: Bundle.entry[1].resource error Profile http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest Element 'Bundle.entry[1].resource.requester': minimum required = 1, but only found 0
Example instance
<?xml version="1.0" encoding="UTF-8"?> <Bundle xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir file:///C:/Users/Eric/Documents/HL7/FHIR/BUILD_EDIT_FILES/fhir-all-xsd%20-STU3/appointment.xsd"> <id value="uscore-mo3"/> <type value="searchset"/> <total value="1"/> <link> <relation value="self"/> <url value="http://fhir3.healthintersections.com.au/open/MedicationRequest?search-id=4085956e-63b8-402d-b181-325040fdb9&&_id=uscore%2Dmo3&_include=MedicationRequest%3Amedication&_sort=_id"/> </link> <entry> <fullUrl value="http://fhir3.healthintersections.com.au/open/MedicationRequest/uscore-mo3"/> <resource> ... <authoredOn value="2008-04-05"/> <requester> <agent> <reference value="Practitioner/practitioner-1"/> <display value="Ronald Bone, MD"/> </agent> </requester> ... </entry> </Bundle>
As you can see, Bundle.entry[1].resource.requester is present
Eric Haas (Sep 20 2018 at 15:28):
Same with this message in US-Meds:
Bundle/get-encounter-meds: Bundle.entry[1].resource error Profile http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationstatement, Element 'Bundle.entry[1].resource.taken': minimum required = 1, but only found 0
Eric Haas (Sep 20 2018 at 15:29):
here is the example:
<?xml version="1.0" encoding="UTF-8"?> <Bundle xmlns="http://hl7.org/fhir"> <id value="get-encounter-meds"/> ... <entry> <fullUrl value="http://wildfhir.aegis.net/fhir3-0-0/MedicationStatement/derivedfrom-mr-enca-1"/> <resource> <MedicationStatement> ... <taken value="y"/> ...
Grahame Grieve (Sep 21 2018 at 01:37):
@Eric Haas when I look at the resource Bundle-uscore-ms3.json.html, I do not see a taken property, so it seems reasonable for the validator to say that there it's an error that it is not there
Grahame Grieve (Sep 21 2018 at 01:39):
same for Bundle-uscore-mo3.json.html - the validator appears correct to say that there's no requester, so far as I can see
Eric Haas (Sep 21 2018 at 01:55):
the source file has it. I'll investigate...
Eric Haas (Sep 21 2018 at 23:44):
@Grahame Grieve The output xml file has scrubbed the requester
element from the source xml file... Screen-Shot-2018-09-21-at-4.36.26-PM.png
Eric Haas (Sep 21 2018 at 23:46):
Do you know why that is happening?
Grahame Grieve (Sep 22 2018 at 00:01):
no. on my list to debug
Eric Haas (Sep 22 2018 at 00:05):
k thanks... It happening with the taken
in MedicationStatement element as well.
Last updated: Apr 12 2022 at 19:14 UTC