<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="aorta-provenance" />
  <language value="nl-NL" />
  <url value="http://vzvz.nl/fhir/StructureDefinition/aorta-provenance" />
  <version value="2.0.0-beta.2" />
  <name value="AortaProvenance" />
  <status value="active" />
  <publisher value="VZVZ" />
  <contact>
    <name value="VZVZ" />
    <telecom>
      <system value="email" />
      <value value="standaardisatie@vzvz.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="Definition of the origin of the resources when resources of multiple origins are present in a bundle.&#xA;This provenance definition is used to define the Healthcare provider that provides the resources listed in the target element." />
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166" />
      <code value="NL" />
      <display value="Netherlands" />
    </coding>
  </jurisdiction>
  <purpose value="Definition of the origin of the resources when resources of multiple origins are present in a bundle." />
  <copyright value="VZVZ" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Provenance" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Provenance" />
  <derivation value="constraint" />
  <differential>
    <element id="Provenance">
      <path value="Provenance" />
      <definition value="This provenance definition is used to define the Healthcare provider that provides the resources listed in the target element." />
      <constraint>
        <key value="provenance-2" />
        <severity value="error" />
        <human value="A contained Organization in a Provenance resource must have an URA." />
        <expression value="contained.ofType(Device).owner.identifier.exists() and &#xA;(contained.ofType(Device).owner.identifier.system = 'http://fhir.nl/fhir/NamingSystem/ura' or &#xA;contained.ofType(Device).owner.identifier.system = 'urn:oid:2.16.528.1.1007.3.3')" />
        <source value="http://vzvz.nl/fhir/StructureDefinition/aorta-provenance" />
      </constraint>
    </element>
    <element id="Provenance.target">
      <path value="Provenance.target" />
      <short value="Target Reference(s)" />
      <definition value="The Reference(s) that were generated or updated by the activity described in this resource. A provenance can point to more than one target if multiple resources were created/updated by the same activity." />
      <comment value="Target references are the resources typically provided in a searchset result. Each resource present in the bundle should be listed in this element." />
    </element>
    <element id="Provenance.recorded">
      <path value="Provenance.recorded" />
      <comment value="This element is equivalent to creationTime in V3." />
    </element>
    <element id="Provenance.agent">
      <path value="Provenance.agent" />
      <definition value="The device belonging to the organization that provides the information or the organization itself." />
      <comment value="This information is equivalent to the sender in V3." />
    </element>
    <element id="Provenance.agent.type">
      <path value="Provenance.agent.type" />
      <comment value="This value is fixed to 'author' to indicate that this provenance resource describes the provider where the resource originates." />
      <patternCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/provenance-participant-type" />
          <code value="author" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Provenance.agent.who">
      <path value="Provenance.agent.who" />
      <comment value="Refers to a Device with an applicationID that refers to the Organization identified with an URA.&#xA;  These resources (Device and Organization) are contained within this resource.&#xA;  Note: To allow the receiver to improve the information displayed for the user." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
        <targetProfile value="http://vzvz.nl/fhir/StructureDefinition/nl-vzvz-Device" />
      </type>
    </element>
  </differential>
</StructureDefinition>