AuditEvent

AuditEvent-TaskUpdate-Example

AuditEvent recording an update to a Task resource (rejecting the task) by a Clinical Scientist.

AuditEvent
{
"resourceType": "AuditEvent",
"id": "AuditEvent-TaskUpdate-Example",
"type": {
"system": "http://terminology.hl7.org/CodeSystem/audit-event-type",
"code": "rest",
"display": "RESTful Operation"
},
"action": "U",
"recorded": "2023-08-08T15:43:00Z",
"outcome": "0",
"agent": [
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
"code": "AUT",
"display": "author (originator)"
}
]
},
"who": {
"reference": "PractitionerRole/PractitionerRole-TestClinicalScientist-Example",
"system": "https://fhir.nhs.uk/Id/sds-user-id",
"value": "9999999997"
}
},
"name": "Test Clinical Scientist",
"requestor": true
}
],
"source": {
"reference": "PractitionerRole/PractitionerRole-TestClinicalScientist-Example"
}
},
"entity": [
{
"what": {
"reference": "Task/Task-NonWGSRareDiseaseTestOrderRejected-Example"
},
"type": {
"system": "http://hl7.org/fhir/resource-types",
"code": "Task",
"display": "Task"
},
"role": {
"system": "http://terminology.hl7.org/CodeSystem/object-role",
"code": "20",
"display": "Job"
}
}
]
}
<AuditEvent xmlns="http://hl7.org/fhir">
<id value="AuditEvent-TaskUpdate-Example" />
<system value="http://terminology.hl7.org/CodeSystem/audit-event-type" />
<code value="rest" />
<display value="RESTful Operation" />
</type>
<action value="U" />
<recorded value="2023-08-08T15:43:00Z" />
<outcome value="0" />
<system value="http://terminology.hl7.org/CodeSystem/v3-ParticipationType" />
<code value="AUT" />
<display value="author (originator)" />
</coding>
</type>
<who>
<reference value="PractitionerRole/PractitionerRole-TestClinicalScientist-Example" />
<system value="https://fhir.nhs.uk/Id/sds-user-id" />
<value value="9999999997" />
</identifier>
</who>
<name value="Test Clinical Scientist" />
<requestor value="true" />
</agent>
<reference value="PractitionerRole/PractitionerRole-TestClinicalScientist-Example" />
</observer>
</source>
<reference value="Task/Task-NonWGSRareDiseaseTestOrderRejected-Example" />
</what>
<system value="http://hl7.org/fhir/resource-types" />
<code value="Task" />
<display value="Task" />
</type>
<system value="http://terminology.hl7.org/CodeSystem/object-role" />
<code value="20" />
<display value="Job" />
</role>
</entity>
</AuditEvent>


AuditEvent-ServiceRequestUpdate-Example

AuditEvent recording an update to a ServiceRequest resource by a Clinical Scientist.

AuditEvent
{
"resourceType": "AuditEvent",
"id": "AuditEvent-ServiceRequestUpdate-Example",
"type": {
"system": "http://terminology.hl7.org/CodeSystem/audit-event-type",
"code": "rest",
"display": "RESTful Operation"
},
"action": "U",
"recorded": "2023-08-10T11:10:00Z",
"outcome": "0",
"agent": [
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
"code": "AUT",
"display": "author (originator)"
}
]
},
"who": {
"reference": "PractitionerRole/PractitionerRole-TestClinicalScientist-Example",
"system": "https://fhir.nhs.uk/Id/sds-user-id",
"value": "9999999997"
}
},
"name": "Test Clinical Scientist",
"requestor": true
}
],
"source": {
"reference": "PractitionerRole/PractitionerRole-TestClinicalScientist-Example"
}
},
"entity": [
{
"what": {
"reference": "ServiceRequest/ServiceRequest-SavedTestOrderUpdated-Example"
},
"type": {
"system": "http://hl7.org/fhir/resource-types",
"code": "ServiceRequest",
"display": "ServiceRequest"
},
"role": {
"system": "http://terminology.hl7.org/CodeSystem/object-role",
"code": "20",
"display": "Job"
}
}
]
}
<AuditEvent xmlns="http://hl7.org/fhir">
<id value="AuditEvent-ServiceRequestUpdate-Example" />
<system value="http://terminology.hl7.org/CodeSystem/audit-event-type" />
<code value="rest" />
<display value="RESTful Operation" />
</type>
<action value="U" />
<recorded value="2023-08-10T11:10:00Z" />
<outcome value="0" />
<system value="http://terminology.hl7.org/CodeSystem/v3-ParticipationType" />
<code value="AUT" />
<display value="author (originator)" />
</coding>
</type>
<who>
<reference value="PractitionerRole/PractitionerRole-TestClinicalScientist-Example" />
<system value="https://fhir.nhs.uk/Id/sds-user-id" />
<value value="9999999997" />
</identifier>
</who>
<name value="Test Clinical Scientist" />
<requestor value="true" />
</agent>
<reference value="PractitionerRole/PractitionerRole-TestClinicalScientist-Example" />
</observer>
</source>
<reference value="ServiceRequest/ServiceRequest-SavedTestOrderUpdated-Example" />
</what>
<system value="http://hl7.org/fhir/resource-types" />
<code value="ServiceRequest" />
<display value="ServiceRequest" />
</type>
<system value="http://terminology.hl7.org/CodeSystem/object-role" />
<code value="20" />
<display value="Job" />
</role>
</entity>
</AuditEvent>