blaze icon indicating copy to clipboard operation
blaze copied to clipboard

Accessing the CapabilityStatement in a Batch-Bundle leads to a 400 Error

Open wetret opened this issue 1 year ago • 0 comments

Hi everyone,

I came across a 'problem' when trying to access the CapabilityStatement posting a Batch-Bundle like:

<Bundle xmlns="http://hl7.org/fhir">
	<type value="batch"/>
	<entry>
		<request>
			<method value="GET"/>
			<url value="metadata"/>
		</request>
	</entry>
</Bundle> 

It leads to a 400 error: Unknown type 'metadata' in bundle entry URL. The full response looks like this:

{
    "type": "batch-response",
    "entry": [
        {
            "response": {
                "status": "400",
                "outcome": {
                    "issue": [
                        {
                            "severity": "error",
                            "code": "value",
                            "diagnostics": "Unknown type `metadata` in bundle entry URL `metadata`.",
                            "expression": [
                                "Bundle.entry[0].request.url"
                            ]
                        }
                    ],
                    "resourceType": "OperationOutcome"
                }
            }
        }
    ],
    "resourceType": "Bundle"
}

Is there any chance you could enable accessing the CapabilityStatement using a Batch-Bundle?

Thanks and cheers

wetret avatar Jul 27 '22 14:07 wetret