Stream: implementers
Topic: Provenance for resource vs. content of resource
Morten Ernebjerg (Aug 10 2021 at 06:12):
We are looking at creating Provenance instances for DocumentReference resources. Suppose I have a PDF of a doctor's letter written by Dr. Doe in 2019. In 2021, the user Alex Doenot now uploads this PDF to a FHIR system, wrapped in a DocumentReference. We now have two levels of provenance information: (1) that for the PDF i.e. the actual core data ("authored by Dr. Doe in 2019"), and (2) that for the FHIR resource ("created by Alex Doenot in 2021").
My question is: Given that one can only point to the DocumentReference resource, how can one use Provenance to transmit provenance information about the contained PDF ("provenance (1)")? I suppose one could split the contained PDF off into a Binary resource, provide that with a separate Provenance, and then point to it from a DocumentReference (if one can actually get the PDF, that is). But I am wondering if there is a solution that avoids this overhead and allows associating provenance of both type (1) & (2) directly with the DocRef resource.
Lloyd McKenzie (Aug 10 2021 at 13:12):
@John Moehrke
John Moehrke (Aug 10 2021 at 13:20):
As you indicate, the easiest and most straight forward is to have to document in a Binary. In this way the DocumentReference can point at the Binary as can your Provenance.
John Moehrke (Aug 10 2021 at 13:23):
The other configuration, where document is encoded into the DocumentReference.content.attachment.data, is not yet supported in FHIR. There is an approved CR by FHIR-I that promises to give us a way to point at an element within a target resource. There is not enough details in the approved CR for me to predict how this will work. Provided this happens sometime in R5, you would be able to have a Provenance that points specifically at the .data element.
Morten Ernebjerg (Aug 10 2021 at 14:50):
Thanks, @John Moehrke! - being able to point to an element seems like a useful development.
Rik Smithies (Aug 10 2021 at 17:48):
@Morten Ernebjerg I believe it is this https://jira.hl7.org/browse/FHIR-23076 and this https://jira.hl7.org/browse/FHIR-21284. I am also waiting on these for a project
Morten Ernebjerg (Aug 12 2021 at 10:40):
A follow-up on this: Parallel to the question of resource vs. content, there is also the question of what it means to be the author or such a resource. Specifically, in the scenario above Alex Doenot creates a resource. What, in that case, is then the appropriate agent.type
? It looks like it could be "author" from http://terminology.hl7.org/CodeSystem/provenance-participant-type . The definition is:
A party that originates the resource and therefore has responsibility for the information given in the resource and ownership of this resource
That sort of half-way matches: Alex originated the resource and has the ownership (e.g. can completely delete it from our system). But can Alex be said to be "responsible for the information given in the resource"? That, again, seems to sound like it's about the content, i.e. the doctor's letter. In other word, using this code might cause people to think Alex wrote the doctor's letter.
What do you think? Are there any alternatives? (I didn't see anything obvious in the value set).
Tú Nguyễn M. (Aug 12 2021 at 11:47):
How to send request questionnaire response json with retrofit
image.png image.png
Morten Ernebjerg (Aug 12 2021 at 12:02):
Hi @Tú Nguyễn M., to post a new unrelated question, please open a separate discussion thread (use the button "New topic" at the bottom of the screen. This discussion thread is about topic in the headline ("Provenance for resource vs. content of resource").
John Moehrke (Aug 12 2021 at 12:08):
I think that the DocumentReference resource is metadata about the document. Thus applying the author agent of the document to the DocumentReference does not seem wrong to me. Especially since most of the elements in the DocumentReference are direct copies of elements from the document content, especially if the document content is a FHIR-Document or a CDA document.
Tú Nguyễn M. (Aug 12 2021 at 12:09):
Morten Ernebjerg said:
Hi Tú Nguyễn M., to post a new unrelated question, please open a separate discussion thread (use the button "New topic" at the bottom of the screen. This discussion thread is about topic in the headline ("Provenance for resource vs. content of resource").
sr. I will fix the topic
John Moehrke (Aug 12 2021 at 12:13):
I would NOT expect a Provenance on a DocumentReference to be about the author of the content. I would expect it to be about the event and agents that caused the DocumentReference to exist. The most interesting part might be WHO pushed the button to create the DocumentReferenence. It is not uncommon for a document to be authored for some purpose, and later a DocumentReference is created to publish that content for external partners to see.
John Moehrke (Aug 12 2021 at 12:14):
When the author is both causing the document to exist, and publishing it using a DocumentReference, then it would be true that there would be a Provenance on the DocumentReference that indicated authorship of the DocumentReference.
John Moehrke (Aug 12 2021 at 12:16):
In IHE terms, this is likely more closely what the SubmissionSet, which is a manifest of Document Entries, documents, and folders; in the activity of publishing them to the Registry. Sometimes one-for-one, but possibly one SubmissionSet holds many documents by many authors.
Morten Ernebjerg (Aug 12 2021 at 12:28):
John Moehrke said:
I think that the DocumentReference resource is metadata about the document. Thus applying the author agent of the document to the DocumentReference does not seem wrong to me.
Just to make sure I'm understanding you right: When you say "the author of the document" in the above, who do you mean? Is it Dr. Doe who originally created the PDF file (and wrote the letter in it), or is it Alex Doenot who wrapped this PDF in a DocumentResource and stored it? I am contemplating capturing Alex as as an agent of type "author" for the DocRef, not Dr. Doe. (If I understand you last comment right, Alex is indeed the appropriate agent, just wanted to make sure)
John Moehrke (Aug 12 2021 at 12:35):
right. sorry that I lost track of the details of your scenario.
Morten Ernebjerg (Aug 12 2021 at 12:42):
So do I sometimes :smile:. So it is indeed appropriate to mark Alex as an author in Provenance.agent.type
?
John Moehrke (Aug 12 2021 at 12:59):
yes, alex would seem to me to clearly be the author of the DocumentReference.
Morten Ernebjerg (Aug 12 2021 at 13:01):
Great, thanks again @John Moehrke !
Last updated: Apr 12 2022 at 19:14 UTC