Example
AuditEvent/example-error
(XML)
Raw
JSON
XML
(
canonical
form
+
also
see
JSON
XML
Format
Specification
)
Jump
past
Narrative
Definition
for
Value
SetProcedure
Category
Codes
(SNOMED
CT)
Audit
of
a
transaction
that
was
failed
resulting
in
OperationOutcome
(id
=
"example-error")
{
"resourceType" : "ValueSet",
"id" : "procedure-category",
"meta" : {
"lastUpdated" : "2019-11-01T09:29:23.356+11:00",
"profile" : ["http://hl7.org/fhir/StructureDefinition/shareablevalueset"]
},
"text" : {
"status" : "generated",
"div" : "<div>!-- Snipped for Brevity --></div>"
},
"extension" : [{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode" : "pc"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode" : "draft"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
"valueInteger" : 1
}],
"url" : "http://hl7.org/fhir/ValueSet/procedure-category",
"identifier" : [{
"system" : "urn:ietf:rfc:3986",
"value" : "urn:oid:2.16.840.1.113883.4.642.3.430"
}],
"version" : "4.0.1",
"name" : "ProcedureCategoryCodes(SNOMEDCT)",
"title" : "Procedure Category Codes (SNOMED CT)",
"status" : "draft",
"experimental" : false,
"date" : "2019-11-01T09:29:23+11:00",
"publisher" : "FHIR Project team",
"contact" : [{
"telecom" : [{
"system" : "url",
"value" : "http://hl7.org/fhir"
}]
}],
"description" : "Procedure Category code: A selection of relevant SNOMED CT codes.",
"copyright" : "This resource includes content from SNOMED Clinical Terms® (SNOMED CT®) which is copyright of the International Health Terminology Standards Development Organisation (IHTSDO). Implementers of these specifications must have the appropriate SNOMED CT Affiliate license - for more information contact http://www.snomed.org/snomed-ct/get-snomed-ct or info@snomed.org",
"compose" : {
"include" : [{
"system" : "http://snomed.info/sct",
"concept" : [{
"code" : "24642003"
},
{
"code" : "409063005"
},
{
"code" : "409073007"
},
{
"code" : "387713003"
},
{
"code" : "103693007"
},
{
"code" : "46947000"
},
{
"code" : "410606002"
}]
}]
}
}
<?xml version="1.0" encoding="UTF-8"?>
<AuditEvent xmlns="http://hl7.org/fhir">
<id value="example-error"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">Recording that an error has happened due to a client requesting that an Observation
resource be Created on the Patient endpoint. Note that the OperationOutcome from
failed transaction is recorded as an AuditEvent.entity.</div>
</text>
<contained>
<OperationOutcome>
<id value="o1"/>
<issue>
<severity value="error"/>
<code value="invalid"/>
<details>
<text value="Invalid pointer operation"/>
</details>
</issue>
</OperationOutcome>
</contained>
<category>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/audit-event-type"/>
<code value="rest"/>
<display value="Restful Operation"/>
</coding>
</category>
<code>
<coding>
<system value="http://hl7.org/fhir/restful-interaction"/>
<code value="create"/>
<display value="create"/>
</coding>
</code>
<action value="C"/>
<recorded value="2017-09-07T23:42:24Z"/>
<outcome>
<code>
<system value="http://hl7.org/fhir/issue-severity"/>
<code value="error"/>
<display value="Error"/>
</code>
<detail>
<text value="Invalid request to create an Operation resource on the Patient endpoint."/>
</detail>
</outcome>
<agent>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/extra-security-role-type"/>
<code value="humanuser"/>
<display value="human user"/>
</coding>
</type>
<who>
<identifier>
<value value="95"/>
</identifier>
<display value="Grahame Grieve"/>
</who>
<requestor value="true"/>
</agent>
<agent>
<extension url="http://hl7.org/fhir/StructureDefinition/auditevent-AlternativeUserID">
<valueIdentifier>
<type>
<text value="process ID"/>
</type>
<value value="6580"/>
</valueIdentifier>
</extension>
<type>
<coding>
<system value="http://dicom.nema.org/resources/ontology/DCM"/>
<code value="110153"/>
<display value="Source Role ID"/>
</coding>
</type>
<who>
<identifier>
<system value="urn:oid:2.16.840.1.113883.4.2"/>
<value value="2.16.840.1.113883.4.2"/>
</identifier>
</who>
<requestor value="false"/>
<networkString value="Workstation1.ehr.familyclinic.com"/>
</agent>
<source>
<observer>
<identifier>
<value value="hl7connect.healthintersections.com.au"/>
</identifier>
<display value="Cloud"/>
</observer>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/security-source-type"/>
<code value="3"/>
<display value="Web Server"/>
</coding>
</type>
</source>
<entity>
<what>
<reference value="#o1"/>
<display value="transaction failed"/>
</what>
</entity>
</
AuditEvent
>
Usage
note:
every
effort
has
been
made
to
ensure
that
the
examples
are
correct
and
useful,
but
they
are
not
a
normative
part
of
the
specification.