FHIR Chat · deep links for Provenance · implementers

Stream: implementers

Topic: deep links for Provenance


view this post on Zulip Jay Lyle (Feb 22 2019 at 14:19):

In Provenance, target has type Reference(Any). "Any" is not defined; where it links, it links to a resource list.

Could a target be a property within a resource?

We have a "reaction date entered." Constraining the Provenance activity to "reaction date entry" is not sufficient, as the Allergy may have more than one reaction. I think we need to be able to refer inside the resource. Otherwise, we'll need to create an extension.

view this post on Zulip Lloyd McKenzie (Feb 22 2019 at 15:33):

Any must be a resource - or more specifically, a specific version snapshot of a resource. Given that all changes that are part of a single transformation must share the same metadata in terms of who made the change, when it was made, etc. this is usually sufficient. If you need to differentiate reason or reviewer or something for changes to different elements made as part of a single update, you'll need to use extensions.

view this post on Zulip John Moehrke (Feb 22 2019 at 16:12):

as lloyd indicates, the modeling for Provenance have been remedial so far, so all we can point at today is full Resource. The expectation so far is that the FHIR model is defining Resources at a level of detail that is appropriate for referencing. There have been some discussions about being able to point at a character location within a document. I have recommended this be discussed and an extension defined for testing at FHIR Connectathons. It is logical for a data blob like an unstructured document that portions based entity pointers are useful.
I recommend similar in your case for pointing at specific portions of a Resource. The use-case must be made very clear as to the need and justification for that need. Then a reasonable mechanism can be attempted using extensions. If we find enough interest we can elevate that extension into the core specification as a core extension, or even to defined elements in Provenance.
Concerning that there seems to be a need to have Provenance linkages to sub-Resource elements, would seem to indicate that the Resource being referenced might not be defined properly, it might need to be broken down further. Hence the need to outline the use-case. The resolution of the use-case might be a change to Provenance, or might be uncovering a weakness in the referenced Resource.

view this post on Zulip Grahame Grieve (Feb 22 2019 at 21:37):

we talked about making an extension to point inside the resource that target points to, but apparently we didn't execute on that

view this post on Zulip Jay Lyle (Feb 22 2019 at 23:10):

Thanks. I'm not a developer, and won't be at a connectathon; is there a way to put such a request on the docket, or do I need to get my client to send someone to try it out?

view this post on Zulip Jay Lyle (Feb 22 2019 at 23:16):

Also, the type is "reference"; it's not clear one couldn't put a url in there with a path in it. Two questions, really: what will validate, and what's the intent.

view this post on Zulip Lloyd McKenzie (Feb 22 2019 at 23:39):

Reference has to resolve to a resource (as per http://hl7.org/fhir/references.html. You'll get an error from the validator if you do anything else.

view this post on Zulip Lloyd McKenzie (Feb 22 2019 at 23:39):

You could submit a change request for a standard extension

view this post on Zulip Grahame Grieve (Feb 22 2019 at 23:52):

the type is "reference"; it's not clear one couldn't put a url in there with a path in it

you can put a path in but it has to reference a resource, so you can only reference a contained resource. You need the extension if you want to indicate a part of a resource

view this post on Zulip Jay Lyle (Feb 25 2019 at 14:05):

Thanks. I'll see if there's an appetite for that.

view this post on Zulip Brian Postlethwaite (Apr 30 2019 at 22:36):

In the VerificationResult resource we've added a fhirpath expression to point to the element(s) similar to the way that OperationOutcome does it.


Last updated: Apr 12 2022 at 19:14 UTC