<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="aorta-DataReference" />
  <language value="nl-NL" />
  <url value="http://vzvz.nl/fhir/StructureDefinition/aorta-DataReference" />
  <version value="2.0.0-beta.2" />
  <name value="AortaDataReference" />
  <title value="Aorta DataReference" />
  <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="The AORTA DataReference profile is used to update the registry with the last modified data of the &#xA;respective data resource (bouwsteentype).&#xA;This profile is modeled after the V3 equivalent of 'heraanmelding verwijsindex'." />
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166" />
      <code value="NL" />
      <display value="Netherlands" />
    </coding>
  </jurisdiction>
  <copyright value="VZVZ" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="List" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/List" />
  <derivation value="constraint" />
  <differential>
    <element id="List.meta.tag">
      <path value="List.meta.tag" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <comment value="use for nosignal flag" />
    </element>
    <element id="List.meta.tag:updateReason">
      <path value="List.meta.tag" />
      <sliceName value="updateReason" />
      <short value="Reason for updating DataReference" />
      <definition value="1 instance of meta.tag MUST be used to indicate special situations which lead to updates of the DataReferences" />
      <comment value="The list of possible values is described in the ValueSet http://vzvz.nl/fhir/ValueSet/aorta-datareference-update-reason." />
      <min value="0" />
      <max value="1" />
      <example>
        <label value="Provider moves to different Vendor (change in appID)" />
        <valueCoding>
          <system value="http://vzvz.nl/fhir/CodeSystem/aorta-datareference-update-reason" />
          <code value="BEHEER" />
        </valueCoding>
      </example>
      <example>
        <label value="Provider is merged with another provider (change in URA)" />
        <valueCoding>
          <system value="http://vzvz.nl/fhir/CodeSystem/aorta-datareference-update-reason" />
          <code value="BEHEER" />
        </valueCoding>
      </example>
      <example>
        <label value="Patient is admitted to hospital" />
        <valueCoding>
          <system value="http://vzvz.nl/fhir/CodeSystem/aorta-datareference-update-reason" />
          <code value="OPNAME" />
        </valueCoding>
      </example>
      <mustSupport value="true" />
      <binding>
        <strength value="preferred" />
        <description value="ValueSet update reason" />
        <valueSet value="http://vzvz.nl/fhir/ValueSet/aorta-datareference-update-reason" />
      </binding>
    </element>
    <element id="List.meta.tag:updateReason.system">
      <path value="List.meta.tag.system" />
      <min value="1" />
      <patternUri value="http://vzvz.nl/fhir/CodeSystem/aorta-datareference-update-reason" />
    </element>
    <element id="List.contained">
      <path value="List.contained" />
      <short value="Contained resources referenced by this List" />
      <definition value="Contains a Device conforming to the FHIR profile [nl-vzvz-device](https://simplifier.net/vzvz/nlvzvzdevice). &#xA;This Device indicates the system of the healthcare provider being the source of the indicated data.&#xA;In turn the Device.owner contains a reference to the organization of the healthcare provider.&#xA;&#xA;Also contains a Patient conforming to the FHIR profile [nl-core-patient](http://fhir.nl/fhir/StructureDefinition/nl-core-Patient).&#xA;This Patient indicates the person that is subject of this data. &#xA;NOTE: the birthDate element should be filled if the birthDate is available. For people without a known birthDate (SBV-Z returns '0000-00-00')&#xA;the birthDate element should be absent. For all other situations the birthDate should be filled with an incomplete (yyyy-mm or yyyy)&#xA;or a complete (yyyy-mm-dd) date." />
    </element>
    <element id="List.status">
      <path value="List.status" />
      <comment value="The status can only be 'current' because the lists indicates the timestamp of the latest update to the indicated dataset (Gegevenssoort or Bouwsteentype) for the patient." />
      <patternCode value="current" />
    </element>
    <element id="List.mode">
      <path value="List.mode" />
      <patternCode value="working" />
    </element>
    <element id="List.code">
      <path value="List.code" />
      <short value="The dataset that contains the update" />
      <definition value="This code defines the purpose of the list, aka the Gegevenssoort or Bouwsteen that is updated." />
      <comment value="There is always exactly one entry per patient per application-id (in Device)" />
      <min value="1" />
      <example>
        <label value="Gegevenssoort" />
        <valueCodeableConcept>
          <coding>
            <system value="urn:oid:2.16.840.1.113883.2.4.15.4" />
            <code value="460320" />
            <display value="Huisarts Care Provision" />
          </coding>
        </valueCodeableConcept>
      </example>
      <example>
        <label value="Bouwsteen" />
        <valueCodeableConcept>
          <coding>
            <system value="urn:oid:2.16.840.1.113883.2.4.3.111.15.3" />
            <code value="CONTACTVERSLAG" />
            <display value="Contactverslag" />
          </coding>
        </valueCodeableConcept>
      </example>
      <binding>
        <strength value="required" />
        <valueSet value="http://vzvz.nl/fhir/ValueSet/DataCategory" />
      </binding>
    </element>
    <element id="List.subject">
      <path value="List.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
      </type>
    </element>
    <element id="List.date">
      <path value="List.date" />
      <definition value="The date that the list was prepared. This is the dateTime of the last modification of the dataset this list refers to." />
      <comment value="The actual important date is the date of currency of the resources that were summarized, but it is usually assumed that these are current when the preparation occurs.&#xA;&#xA;In case the list is not prepared at the same time at the time of modification of the dataset, this element contains the timestamp of the last modification.&#xA;&#xA;__NOTE__: This date MUST conform to the format 'YYYY-MM-DDThh:mm:ss+zz:zz'." />
      <min value="1" />
    </element>
    <element id="List.source">
      <path value="List.source" />
      <definition value="The entity responsible for deciding what the contents of the list were. This is indicated by a reference to a Device that is added to this List as contained resources." />
      <comment value="The source references a Device that contains the applicationID (as OID)" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
        <targetProfile value="http://vzvz.nl/fhir/StructureDefinition/nl-vzvz-Device" />
      </type>
    </element>
    <element id="List.entry">
      <path value="List.entry" />
      <max value="0" />
    </element>
    <element id="List.emptyReason">
      <path value="List.emptyReason" />
      <comment value="The List.entry element is empty because it is not needed." />
      <min value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/list-empty-reason" />
          <code value="withheld" />
        </coding>
      </patternCodeableConcept>
    </element>
  </differential>
</StructureDefinition>