Details
-
Question
-
Resolution: Considered - Question answered
-
Medium
-
FHIR Core (FHIR)
-
R4
-
Structured Documents
-
Composition
-
Description
Because a Zulip-chat yielded no anwers, I am wondering if I can get an answer to my question here. The (textual) definition of the $document operations seems ambiguous.
You could read the OperationDefinition as allowing a client to GET [base]/Composition/$document (without [id] and without ?id=), an thus retrieving all available Compositions and referenced resources in 1 Bundle (either document or searchset). Would this be allowed?
The line "Note that since this is a search operation, the document bundle is wrapped inside the search bundle" creates more confusion. Is a search (without id-paramater) allowed, but would this return a searchset Bundle containing document Bundles? This would not be RESTful behaviour on the Composition endpoint. You could even read this line as though the operation would always return a searchset Bundle containing a document Bundle, even if you would provide an id, but the examples (and the nature of the operation) do not back this up.
We have a use case where data is converted to FHIR, where a call of "give me all 'indicatiebesluiten'" to the database is executed, which would be all Compositions and their referenced resources - which are separate requests in FHIR (searching GET [base]/Composition and then $document on each of the search result resources). These separate request would require the FHIR facade to store all results until the $document request has been made, which is impractical. The alternative for us would be defining a custom operation which bundles the separate FHIR requests into one call if this could not be done through $document.
I hope a statement on the exact functioning on the $document operation can lead to a change request to clarify the definition and/or examples. Thank you.
Attachments
Issue Links
- relates to
-
FHIR-19974 $document shouldn't wrap doc-bundle inside searchset
- Published
-
FHIR-32015 Bundles returned from operation are not always collection
- Published
-
FHIR-32016 $document operation should have a output parameter
- Published
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...