Examples
Example 1: POST Provenance to Nullify a QuestionnaireResponse
The following example concerns a Provenance which nullifies a given QuestionnaireResponse resource with id=214492. The reason for nullifying is given as a text. To be able to specify HSA id:s for both unit and practitioner, a PractitionerRole resource is contained within the QuestionnaireResponse.
Request
POST [baseURL]/Provenance
Body
Provenance |
meta |
profile : https://fhir.cambio.se/StructureDefinition/ProvenanceStatusSe/v1 |
contained |
id : 1 |
meta |
profile : http://hl7.org/fhir/StructureDefinition/PractitionerRole |
practitioner |
identifier |
system : urn:oid:1.2.752.129.2.1.4.1 |
value : SE-123-231-123 |
organization |
identifier |
system : urn:oid:1.2.752.129.2.1.4.1 |
value : SE162321000024-6918 |
target |
reference : QuestionnaireResponse/214492 |
type : QuestionnaireResponse |
recorded : 2021-01-29T08:01:04+01:00 |
reason |
text : Felaktig information om patienten. |
activity |
coding |
system : http://terminology.hl7.org/CodeSystem/v3-DataOperation |
code : NULLIFY |
agent |
who |
reference : #1 |
type : PractitionerRole |
Example 2: POST Provenance to Nullify an Observation
The following example concerns a Provenance which nullifies a given Observation resource with id=50130. The reason for nullifying is given as a text. To be able to specify HSA id:s for both unit and practitioner, a PractitionerRole resource is contained within the Observation.
Request
POST [baseURL]/Observation
Body