Stream: implementers
Topic: Composition.relatesTo - how to use for Documents?
Morten Ernebjerg (Nov 29 2018 at 09:34):
There are two aspects of Composition.relatesTo
that are not quite clear to me:
1. What is the proper way to refer to another FHIR Document Bundle
that is only stored in toto as a Bundle
, so that the corresponding Composition
does not have its own server URL?
2. In the documentation (STU3 and R4), it says the following about FHIR Documents:
Any resource referenced directly in the Composition SHALL be included in the bundle when the document is assembled.
That would seem to imply that a Composition
referred to in relatesTo
(or at least relatesTo.targetReference
) must actually be included in the Document (which, as @Simone Heckmann pointed out, could lead to a recursion of includes), yet it is not on the list of applicable fields that followed in the documentation. Seems like a tracker candidate, or am I missing smt?
Grahame Grieve (Nov 29 2018 at 10:09):
both are good points for trackers please.
Grahame Grieve (Nov 29 2018 at 10:09):
#2 relatesTo is not on the list of includes, for obvious reasons, but it would be good to actually say so
Morten Ernebjerg (Nov 29 2018 at 10:11):
@Grahame Grieve OK, I will add the tracker items. Do you have a feeling for the right answer to #1?
Grahame Grieve (Nov 29 2018 at 10:13):
[bundle]#[id] where bundle is the url of the bundle, and id is the id of the composition resource
Morten Ernebjerg (Nov 29 2018 at 11:55):
Tracker items:
- How to use
Composition.relatesTo
: #19710 - Explanation of what resources must be included in document: #19711
Patrick Werner (Nov 29 2018 at 13:26):
[bundle]#[id] where bundle is the url of the bundle, and id is the id of the composition resource
by Id you mean the actual id of the entry and not the fullUrl, right? So these IDs have to be unique then. I couldn't find an explicit statement about ID uniqueness inside a Bundle, only could find bdl-7 which states uniqueness about fullUrls
John Moehrke (Nov 29 2018 at 15:09):
an alternative is the use of DocumentReference that points at the bundled composition. This would work well if, as you mentioned, the composition is not decomposed into that FHIR server. If it is 'only' maintained as a bundled composition, then it might be best referenced as a document using DocumentReference.
Last updated: Apr 12 2022 at 19:14 UTC