{
  "resourceType": "StructureDefinition",
  "id": "nl-vzvz-notify-document-retrieved",
  "language": "nl-NL",
  "url": "http://vzvz.nl/fhir/StructureDefinition/nl-vzvz-notify-document-retrieved",
  "version": "2.0.0-beta.2",
  "name": "Vzvz_Notify_Document_Retrieved",
  "title": "Notify Document Retrieved",
  "status": "draft",
  "publisher": "VZVZ",
  "contact": [
    {
      "name": "VZVZ",
      "telecom": [
        {
          "system": "email",
          "value": "standaardisatie@vzvz.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Notify the requesting party that the document is retrieved",
  "jurisdiction": [
    {
      "coding": [
        {
          "code": "NL",
          "system": "urn:iso:std:iso:3166",
          "display": "Netherlands"
        }
      ]
    }
  ],
  "copyright": "VZVZ",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Communication",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Communication",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Communication.basedOn",
        "path": "Communication.basedOn",
        "definition": "Reference to the CommunicationRequest this Communication is based on",
        "comment": "Reference to the nl-vzvz-notify-document-ready profile which initiated this workflow.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource",
              "http://hl7.org/fhir/StructureDefinition/CommunicationRequest"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Communication.basedOn.identifier",
        "path": "Communication.basedOn.identifier",
        "example": [
          {
            "label": "OID of NotifyDocumentReady instance",
            "valueIdentifier": {
              "value": "urn:oid:2.16.840.1.113883.2.4.3.111.5.2.1.12345"
            }
          }
        ]
      },
      {
        "id": "Communication.status",
        "path": "Communication.status",
        "definition": "Indication of the result of the retrieval and/or file processing\nUse `completed` to indicate a successful retrieval and file processing\nUse `not-done` to indicate something went wrong. When this value is used `statusReason` MUST be filled"
      },
      {
        "id": "Communication.statusReason",
        "path": "Communication.statusReason",
        "definition": "Define the reason why the retrieval or processing of the document went wrong.\nThis element is only filled when the `status` value is set to `not-done`",
        "binding": {
          "strength": "extensible",
          "valueSet": "http://vzvz.nl/fhir/ValueSet/aorta-document-download-errors"
        }
      },
      {
        "id": "Communication.category",
        "path": "Communication.category",
        "short": "Context of document exchange",
        "definition": "The category is used to indicate in which context this document exchange takes place",
        "min": 1,
        "example": [
          {
            "label": "RegisterSync",
            "valueCodeableConcept": {
              "coding": [
                {
                  "code": "RegisterSync",
                  "system": "http://vzvz.nl/fhir/CodeSystem/doc-exchange-category"
                }
              ]
            }
          }
        ],
        "binding": {
          "strength": "extensible",
          "valueSet": "http://vzvz.nl/fhir/ValueSet/doc-exchange-category"
        }
      },
      {
        "id": "Communication.reasonCode",
        "path": "Communication.reasonCode",
        "example": [
          {
            "label": "VWI-sync",
            "valueCodeableConcept": {
              "coding": [
                {
                  "code": "vwi_sync",
                  "system": "http://vzvz.nl/fhir/CodeSystem/aorta-sync"
                }
              ]
            }
          }
        ],
        "binding": {
          "strength": "extensible",
          "valueSet": "http://vzvz.nl/fhir/ValueSet/aorta-sync",
          "description": "Code for describing reason for this request"
        }
      },
      {
        "id": "Communication.reasonReference",
        "path": "Communication.reasonReference",
        "short": "Reference to the document transferred",
        "definition": "Reference to the identifier of the DocumentReference that defines the document to be transferred",
        "comment": "It is sufficient to refer to the DocumentReference by identifier.",
        "min": 1
      }
    ]
  }
}