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