FHIR Chat · document reference queries · implementers

Stream: implementers

Topic: document reference queries


view this post on Zulip Santosh Jami (Oct 01 2017 at 15:15):

I am trying to store the CCD xml data and the 'Summarization of Episode Note' that is pdf.
Here are my 2 options I believe, which is recommended?
1. Create 1 documentReference and add 2 content elements to it, with 1 having attachment of CCD xml, and the other with the pdf?
2. Create 2 document references, one each for separate documents.

In the 1st case, where do I say, I have an CCD xml notes / pdf note, that can enable me to search for specific document. I looked at DocumentReference.type, DocumentReference.class - but neither has a place holder for CCD XML.

The other question is, should I store the data of the attachment as DocumentReference.content.attachment.data or DocumentReference.content.attachment.data as url to a binary resource?

view this post on Zulip John Moehrke (Oct 01 2017 at 15:36):

Hi @Santosh Jami . This is a common situation. The answer is #2. What you need to recognizes is that the two DocumenReference will be related using the relatesTo. I would recommend the DocumentReference that holds the XML will have a relatesTo.code of transforms, with the relatesTo.target of the other DocumentReference that holds the PDF.

view this post on Zulip John Moehrke (Oct 01 2017 at 15:38):

The other question on format is handled by the content.format element. Take a look at the given vocabulary, where you will find CCD. The difference between XML and PDF is handled by the attachment.contentType

view this post on Zulip John Moehrke (Oct 01 2017 at 15:39):

Finally, I would recommend you save these as Binary, not as attachment.data. The reason is that a Binary is retrievable in native form. Thus, although when you Create the Binary you must encode; when every one else reads it, they can pull it in the XML or PDF non encoded form.

view this post on Zulip John Moehrke (Oct 01 2017 at 15:40):

For more on the multiple-formats -- https://healthcaresecprivacy.blogspot.com/2017/03/multiple-formats-of-same-document.html

view this post on Zulip John Moehrke (Oct 01 2017 at 15:41):

For more detail on use of DocumentReference see a Profile of DocumentReference that covers the use-case you have expressed -- IHE-MHD profile -- https://healthcaresecprivacy.blogspot.com/2015/03/what-is-mhd-beyond-xds-on-fhir.html

view this post on Zulip Santosh Jami (Oct 02 2017 at 03:52):

Thanks a lot @John Moehrke for your insightful answers and helpful links related to my use case. Yeah - I went with #2.
If I need to record any information related to the patient encounter (provider notes, system generated notifications) - I will be continuously editing and updating this item as the new data comes, this is all human readable text - all this needs to go into document reference resource, or any other resource is the recommended way?

view this post on Zulip John Moehrke (Oct 02 2017 at 12:49):

I would guess that any 'relevant' change to the encounter would also result in new CDA/PDF documents being created... right? Thus this would also be new DocumentReference resources, with a relaesTo.code of replaces; and the old would then have their .status updated. This may sound like alot of changes, but it is reality. Keeping the old data around is important for medical records keeping and integrity.


Last updated: Apr 12 2022 at 19:14 UTC