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:00+00:00",
"outcome": "0",
"agent": [
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
"code": "AUT",
"display": "author (originator)"
}
]
},
"who": {
"reference": "PractitionerRole/PractitionerRole-TestClinicalScientist-Example",
"type": "PractitionerRole",
"system": "https://fhir.nhs.uk/Id/sds-user-id",
"value": "9999999997"
}
},
"name": "Test Clinical Scientist",
"requestor": true
},
{
"who": {
"type": "Organization",
"system": "https://fhir.nhs.uk/Id/ods-organization-code",
"value": "ABC"
}
},
"requestor": true
}
],
"source": {
"system": "https://fhir.nhs.uk/Id/product-id",
"value": "GOMS"
},
"display": "Genomic Order Management Service"
},
"type": [
{
"system": "http://terminology.hl7.org/CodeSystem/security-source-type",
"code": "2"
}
]
},
"entity": [
{
"what": {
"reference": "Task/Task-NonWGSRareDiseaseTestOrderRejected-Example",
"system": "urn:ietf:rfc:3986",
"value": "urn:uuid:3148c7da-59f3-439f-b729-847a607831fc"
}
},
"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"
}
},
{
"what": {
"system": "https://fhir.nhs.uk/Id/nhs-number",
"value": "9449307873"
}
},
"type": {
"system": "http://terminology.hl7.org/CodeSystem/audit-entity-type",
"code": "1",
"display": "Person"
},
"role": {
"system": "http://terminology.hl7.org/CodeSystem/object-role",
"code": "1",
"display": "Patient"
}
},
{
"what": {
"system": "https://fhir.nhs.uk/Id/transaction",
"value": "76d148b6-586d-11ec-bf63-0242ac130082"
}
},
"type": {
"system": "https://profiles.ihe.net/ITI/BALP/CodeSystem/BasicAuditEntityType",
"code": "XrequestId"
}
}
]
}
<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:00+00:00" />
<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" />
<type value="PractitionerRole" />
<system value="https://fhir.nhs.uk/Id/sds-user-id" />
<value value="9999999997" />
</identifier>
</who>
<name value="Test Clinical Scientist" />
<requestor value="true" />
</agent>
<who>
<type value="Organization" />
<system value="https://fhir.nhs.uk/Id/ods-organization-code" />
<value value="ABC" />
</identifier>
</who>
<requestor value="true" />
</agent>
<system value="https://fhir.nhs.uk/Id/product-id" />
<value value="GOMS" />
</identifier>
<display value="Genomic Order Management Service" />
</observer>
<system value="http://terminology.hl7.org/CodeSystem/security-source-type" />
<code value="2" />
</type>
</source>
<reference value="Task/Task-NonWGSRareDiseaseTestOrderRejected-Example" />
<system value="urn:ietf:rfc:3986" />
<value value="urn:uuid:3148c7da-59f3-439f-b729-847a607831fc" />
</identifier>
</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>
<system value="https://fhir.nhs.uk/Id/nhs-number" />
<value value="9449307873" />
</identifier>
</what>
<system value="http://terminology.hl7.org/CodeSystem/audit-entity-type" />
<code value="1" />
<display value="Person" />
</type>
<system value="http://terminology.hl7.org/CodeSystem/object-role" />
<code value="1" />
<display value="Patient" />
</role>
</entity>
<system value="https://fhir.nhs.uk/Id/transaction" />
<value value="76d148b6-586d-11ec-bf63-0242ac130082" />
</identifier>
</what>
<system value="https://profiles.ihe.net/ITI/BALP/CodeSystem/BasicAuditEntityType" />
<code value="XrequestId" />
</type>
</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:00+00:00",
"outcome": "0",
"agent": [
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
"code": "AUT",
"display": "author (originator)"
}
]
},
"who": {
"reference": "PractitionerRole/PractitionerRole-TestClinicalScientist-Example",
"type": "PractitionerRole",
"system": "https://fhir.nhs.uk/Id/sds-user-id",
"value": "9999999997"
}
},
"name": "Test Clinical Scientist",
"requestor": true
},
{
"who": {
"type": "Organization",
"system": "https://fhir.nhs.uk/Id/ods-organization-code",
"value": "ABC"
}
},
"requestor": true
}
],
"source": {
"system": "https://fhir.nhs.uk/Id/product-id",
"value": "GOMS"
},
"display": "Genomic Order Management Service"
},
"type": [
{
"system": "http://terminology.hl7.org/CodeSystem/security-source-type",
"code": "2"
}
]
},
"entity": [
{
"what": {
"reference": "ServiceRequest/ServiceRequest-SavedTestOrderUpdated-Example",
"system": "https://fhir.nhs.uk/Id/GMSOrder",
"value": "ROA43728"
}
},
"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"
}
},
{
"what": {
"system": "https://fhir.nhs.uk/Id/nhs-number",
"value": "9449307873"
}
},
"type": {
"system": "http://terminology.hl7.org/CodeSystem/audit-entity-type",
"code": "1",
"display": "Person"
},
"role": {
"system": "http://terminology.hl7.org/CodeSystem/object-role",
"code": "1",
"display": "Patient"
}
},
{
"what": {
"system": "https://fhir.nhs.uk/Id/transaction",
"value": "76d148b6-586d-11ec-bf63-0242ac130082"
}
},
"type": {
"system": "https://profiles.ihe.net/ITI/BALP/CodeSystem/BasicAuditEntityType",
"code": "XrequestId"
}
}
]
}
<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:00+00:00" />
<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" />
<type value="PractitionerRole" />
<system value="https://fhir.nhs.uk/Id/sds-user-id" />
<value value="9999999997" />
</identifier>
</who>
<name value="Test Clinical Scientist" />
<requestor value="true" />
</agent>
<who>
<type value="Organization" />
<system value="https://fhir.nhs.uk/Id/ods-organization-code" />
<value value="ABC" />
</identifier>
</who>
<requestor value="true" />
</agent>
<system value="https://fhir.nhs.uk/Id/product-id" />
<value value="GOMS" />
</identifier>
<display value="Genomic Order Management Service" />
</observer>
<system value="http://terminology.hl7.org/CodeSystem/security-source-type" />
<code value="2" />
</type>
</source>
<reference value="ServiceRequest/ServiceRequest-SavedTestOrderUpdated-Example" />
<system value="https://fhir.nhs.uk/Id/GMSOrder" />
<value value="ROA43728" />
</identifier>
</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>
<system value="https://fhir.nhs.uk/Id/nhs-number" />
<value value="9449307873" />
</identifier>
</what>
<system value="http://terminology.hl7.org/CodeSystem/audit-entity-type" />
<code value="1" />
<display value="Person" />
</type>
<system value="http://terminology.hl7.org/CodeSystem/object-role" />
<code value="1" />
<display value="Patient" />
</role>
</entity>
<system value="https://fhir.nhs.uk/Id/transaction" />
<value value="76d148b6-586d-11ec-bf63-0242ac130082" />
</identifier>
</what>
<system value="https://profiles.ihe.net/ITI/BALP/CodeSystem/BasicAuditEntityType" />
<code value="XrequestId" />
</type>
</entity>
</AuditEvent>