Hello Community,
My company is thinking about how to best connect multiple compositions that are used within the same context (e.g. a single visit or a status report). Using a single large template for all datapoints is not possible for us for this use case.
As mentioned in this thread, we tried out folders, but are not convinced that this is the optimal solution. Specifically, we found no way to get the folders that a composition is part of (and even if we did, it would be a list of IDs that would somehow have to be indexed to find the folder corresponding to the correct context), and we found no way to attach metadata to contained compositions.
Another option may be openEHR tags, although they may suffer from similar problems as folders (as these tags have no direct connection to the referenced compositions). Also, the implementation status is a bit unclear, since they are part of the specs, but not included in a RM release yet (according to the Amendment Record)
Then, we encountered the ācompound documentā that Better is using (and automatically generating) when submitting multiple compositions within the same contribution, e.g. via their Form Builder. This compound document is a nearly empty āwrapperā composition that only contains the EHR_URIs to the compositions that are part of that contribution.
We would adapt this idea and create a ācompound compositionā template, whose compositions can be queried and fetched like any other composition, and linked compositions can be resolved in a second request. In addition, metadata for the linked compositions (name, author, creation dateā¦) can be persisted in the compound composition for a high-level overview.
We would be interested in what the community thinks about this approach, and if people have encountered this use case and solved it in a similar or different fashion. Did we make any mistake in our assessments, or missed something?
Thanks for your input!