Hi,
We are running hapi-fhir version 5.2.0 and we are experimenting with versioned provenance.
Business problem: we want to look up which agent updated a specific version of a patient. We have the patient and version e.g. "Patient/102/_history/20" - and we want to retrieve the specific provenance record for that change.
We call setDontStripVersionsFromReferencesAtPaths("Provenance.target"); to make sure the provenance targets include the version of (in this case) Patient.
example:
"target": [
{
"reference": "Patient/102/_history/20"
},
],
We then try to retrieve just that provenance record by the following url:
GET "{{fhir_url}}/Provenance?target=Patient/102/_history/20"
however, what gets returned is all of the provenance records for Patient/102.
Is this the expected behavior? Is there a different way to get the result we are hoping for?