New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser issue with encoding/parsing contained resources #84

mojitoholic opened this Issue Jan 14, 2015 · 0 comments


None yet
1 participant

mojitoholic commented Jan 14, 2015

fhir-single.xds reads in part:
(near line 527)
<xs:complexType name="Resource.Inline">
<xs:choice minOccurs="1" maxOccurs="1">

and (near line 597)
<xs:element name="contained" type="Resource.Inline" minOccurs="0" maxOccurs="unbounded">

Altogether it seems that the intention is to encode each contained resource in a separate element while each element must include only one resource. The HAPI xml parser, however, creates one single element and populates all the resources in it. Likewise, it accepts resources in this format --in fact a lot of the sample resources in the test server (e.g. Condition resources) are in this format.
This seems to violate the schema and HL7 reference implementation parsers do not accept the resources created in this format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment