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