{
  "resourceType": "StructureDefinition",
  "id": "KT2Subscription",
  "language": "nl-NL",
  "url": "http://koppeltaal.nl/fhir/StructureDefinition/KT2Subscription",
  "version": "0.8.0",
  "name": "KT2_Subscription",
  "status": "draft",
  "date": "2023-01-24",
  "publisher": "VZVZ",
  "contact": [
    {
      "name": "VZVZ",
      "telecom": [
        {
          "system": "email",
          "value": "standaardisatie@vzvz.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "The Subscription resource defines push-based notifications between systems in the Koppeltaal ecosystem. It enables applications to receive real-time updates when resources matching specified criteria are created or modified. The subscription mechanism ensures timely data synchronization and event-driven communication between healthcare applications.",
  "jurisdiction": [
    {
      "coding": [
        {
          "code": "NL",
          "system": "urn:iso:std:iso:3166",
          "display": "Netherlands"
        }
      ]
    }
  ],
  "copyright": "VZVZ",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Subscription",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Subscription",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Subscription.extension",
        "path": "Subscription.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Subscription.extension:resource-origin",
        "path": "Subscription.extension",
        "sliceName": "resource-origin",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://koppeltaal.nl/fhir/StructureDefinition/resource-origin"
            ]
          }
        ]
      },
      {
        "id": "Subscription.error",
        "path": "Subscription.error",
        "comment": "Contains the last error message if the subscription fails."
      },
      {
        "id": "Subscription.channel.type",
        "path": "Subscription.channel.type",
        "short": "rest-hook",
        "definition": "Only `rest-hook` is available in Koppeltaal\r\nThe type of channel to send notifications on.",
        "fixedCode": "rest-hook"
      },
      {
        "id": "Subscription.channel.payload",
        "path": "Subscription.channel.payload",
        "max": "0"
      }
    ]
  }
}