<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="HVOAuditEvent" />
  <url value="http://electronichealth.se/fhir/hvo/StructureDefinition/HVOAuditEvent" />
  <version value="0.1.0" />
  <name value="HVOAuditEvent" />
  <status value="draft" />
  <description value="HVO profile for security information about an event" />
  <fhirVersion value="5.0.0" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="AuditEvent" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/AuditEvent" />
  <derivation value="constraint" />
  <differential>
    <element id="AuditEvent.agent">
      <path value="AuditEvent.agent" />
      <mustSupport value="true" />
    </element>
    <element id="AuditEvent.agent.who">
      <path value="AuditEvent.agent.who" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://electronichealth.se/fhir/hvo/StructureDefinition/HVODevice" />
        <targetProfile value="http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganization" />
        <targetProfile value="http://electronichealth.se/fhir/hvo/StructureDefinition/HVOPractitionerRole" />
        <targetProfile value="http://electronichealth.se/fhir/hvo/StructureDefinition/HVOPractitioner" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AuditEvent.source">
      <path value="AuditEvent.source" />
      <mustSupport value="true" />
    </element>
    <element id="AuditEvent.source.observer">
      <path value="AuditEvent.source.observer" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://electronichealth.se/fhir/hvo/StructureDefinition/HVODevice" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AuditEvent.entity">
      <path value="AuditEvent.entity" />
      <mustSupport value="true" />
    </element>
    <element id="AuditEvent.entity.what">
      <path value="AuditEvent.entity.what" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>