Skip to content
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

Parsing bug in XML formatted responses #47

Open
bunyaminsg opened this issue Jan 24, 2023 · 0 comments
Open

Parsing bug in XML formatted responses #47

bunyaminsg opened this issue Jan 24, 2023 · 0 comments

Comments

@bunyaminsg
Copy link

When a domain resource has text attribute with div and status (Narrative) is requested by a query with Accept: application/fhir+xml header, it gives error response as described below.

If it's a read request as get fhir/ResourceType/id, the response is:

<OperationOutcome xmlns="http://hl7.org/fhir">
    <issue>
        <severity value="error"/>
        <code value="invalid"/>
        <diagnostics value="Problem while converting JSON to XML:Content is not allowed in prolog."/>
    </issue>
</OperationOutcome>

If it's a search requests (fhir/ResourceType?params) that results in a bundle containing that resource, the response is:

<OperationOutcome xmlns="http://hl7.org/fhir">
    <issue>
        <severity value="error"/>
        <code value="invalid"/>
        <diagnostics value="Problem while converting JSON to XML:null"/>
    </issue>
</OperationOutcome>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant