FHIR Chat · hapi-fhir: issue 273: FHIR Response with bundle and Aller... · hapi

Stream: hapi

Topic: hapi-fhir: issue 273: FHIR Response with bundle and Aller...


view this post on Zulip Zulip HAPI Bot (Dec 18 2015 at 20:15):

ArtemSopin opened issue 273

Hello,
When I get all AllergyIntollerance resources available on FHIR server
GET http://fhirtest.uhn.ca/baseDstu2/AllergyIntolerance?_format=xml
the result is a bundle.

I take XSD (bundle.xsd) from https://www.hl7.org/fhir/downloads.html (https://www.hl7.org/fhir/fhir-all-xsd.zip direct link) and try to validate the results. I get multiple validation errors but I assume there should be none of them since response should comply with xsd.

Here is the list of errors which XMLSpy shows :
![untitled](https://cloud.githubusercontent.com/assets/16140319/11906326/631dfc7a-a580-11e5-90a0-6a19006db56a.png)

Some major errors are:
1) missing elements in content model '(extension*,status,div)'
2) value 'high' not in enumeration
3) value 'immune' not in enumeration

Moreover, some of AllergyIntollerances, for example the one you can get as http://fhirtest.uhn.ca/baseDstu2/AllergyIntolerance/1528857 , are also seems to be incorrect. I tried to validate the response with allergyintolerance.xsd and it also did not pass validation due to the following reasons:
a) there are '\' characters
b) value 'high' not in enumeration
c) value 'immune' not in enumeration

Thanks.


Last updated: Apr 12 2022 at 19:14 UTC