<?xml version=“1.0” encoding=“UTF-8”?> <AuditEvent xmlns=“hl7.org/fhir”>

      <id value="example-media"/>

      <meta>
  <security>
    <system value="http://terminology.hl7.org/CodeSystem/v3-ActReason"/>
    <code value="HTEST"/>
    <display value="test health data"/>
  </security>
</meta>
<type>
              <system value="http://dicom.nema.org/resources/ontology/DCM"/>
              <code value="110106"/>
              <display value="Export"/>
      </type>
      <subtype>
              <system value="urn:oid:1.3.6.1.4.1.19376.1.2"/>
              <code value="ITI-32"/>
              <display value="Distribute Document Set on Media"/>
      </subtype>
      <action value="R"/>
      <recorded value="2015-08-27T23:42:24Z"/>
      <outcome value="0"/>

      <agent>
              <!--   Source active participant, the software making the PIX query
UserId - The identity of the Patient Identifier Cross-reference Consumer Actor facility and sending application from the HL7 message; 
concatenated together, separated by the | character. 
AlternativeUserId - Process ID
  -->
              <type>
                      <coding>
                              <system value="http://dicom.nema.org/resources/ontology/DCM"/>
                              <code value="110153"/>
                              <display value="Source Role ID"/>
                      </coding>
              </type>
              <who>
                      <display value="ExportToMedia.app"/>
              </who>
              <requestor value="false"/>
      </agent>
      <agent>
              <!--    The Human using the software, if known    -->
              <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>
              </who>
              <altId value="601847123"/>
              <name value="Grahame Grieve"/>
              <requestor value="true"/>
      </agent>
      <agent>
              <!--    The media exported onto    -->
              <type>
                      <coding>
                              <system value="http://dicom.nema.org/resources/ontology/DCM"/>
                              <code value="110154"/>
                              <display value="Destination Media"/>
                      </coding>
              </type> 
              <name value="Media title: Hello World"/>
              <requestor value="false"/>
              <media>
                      <system value="http://dicom.nema.org/resources/ontology/DCM"/>
                      <code value="110033"/>
                      <display value="DVD"/>
              </media>
      </agent>
      <source>
              <observer>
                      <display value="hl7connect.healthintersections.com.au"/>
              </observer>
      </source>
      <entity>
              <!--  
The Patient
  -->
              <what>
                      <identifier>
                              <value value="e3cdfc81a0d24bd^^^&amp;2.16.840.1.113883.4.2&amp;ISO"/>
                      </identifier>
              </what>
              <type>
                      <system value="http://terminology.hl7.org/CodeSystem/audit-entity-type"/>
                      <code value="1"/>
                      <display value="Person"/>
              </type>
              <role>
                      <system value="http://terminology.hl7.org/CodeSystem/object-role"/>
                      <code value="1"/>
                      <display value="Patient"/>
              </role>
      </entity>
      <entity>
              <!--   The SubmissionSet identifier   -->
              <what>
                      <identifier>
                              <type>
                                      <coding>
                                              <system value="urn:uuid:a54d6aa5-d40d-43f9-88c5-b4633d873bdd"/>
                                              <code value="IHE XDS Metadata"/>
                                              <display value="submission set classificationNode"/>
                                      </coding>
                              </type>
                              <value value="e3cdfc81a0d24bd^^^&amp;2.16.840.1.113883.4.2&amp;ISO"/>
                      </identifier>
              </what>
              <type>
                      <system value="http://terminology.hl7.org/CodeSystem/audit-entity-type"/>
                      <code value="2"/>
                      <display value="System Object"/>
              </type>
              <role>
                      <system value="http://terminology.hl7.org/CodeSystem/object-role"/>
                      <code value="20"/>
                      <display value="Job"/>
              </role>
      </entity>
      <entity>
              <!--   The Document Manifest exported   -->
              <what>
                      <reference value="DocumentManifest/example"/>
              </what>
              <type>
                      <system value="http://terminology.hl7.org/CodeSystem/audit-entity-type"/>
                      <code value="2"/>
                      <display value="System Object"/>
              </type>
      </entity>

</AuditEvent>