{
  "resourceType": "StructureDefinition",
  "url": "https://vnlwn.eu/fhir/StructureDefinition/MedMijSubscription",
  "name": "MedMijSubscription",
  "status": "draft",
  "fhirVersion": "4.3.0",
  "kind": "resource",
  "abstract": false,
  "type": "Subscription",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Subscription",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Subscription.status",
        "path": "Subscription.status",
        "definition": "De status van het abonnementsverzoek.",
        "fixedCode": "requested"
      },
      {
        "id": "Subscription.contact.system",
        "path": "Subscription.contact.system",
        "mustSupport": false
      },
      {
        "id": "Subscription.contact.value",
        "path": "Subscription.contact.value",
        "mustSupport": false
      },
      {
        "id": "Subscription.contact.rank",
        "path": "Subscription.contact.rank",
        "mustSupport": false
      },
      {
        "id": "Subscription.contact.period",
        "path": "Subscription.contact.period",
        "mustSupport": false
      },
      {
        "id": "Subscription.contact.period.start",
        "path": "Subscription.contact.period.start",
        "mustSupport": false
      },
      {
        "id": "Subscription.contact.period.end",
        "path": "Subscription.contact.period.end",
        "mustSupport": false
      },
      {
        "id": "Subscription.reason",
        "path": "Subscription.reason",
        "short": "Doel van het abonnement.",
        "definition": "Toelichting over de reden en het doel van het abonnement."
      },
      {
        "id": "Subscription.criteria",
        "path": "Subscription.criteria",
        "definition": "Hier dient gespecificeerd te worden onder welke criteria een notificatie getriggerd moet worden. De verplichte parameters in de criteria zijn de Resource (bijv. Task) en de patientid. De invulling van de patientid is te bepalen door de deelnemer."
      },
      {
        "id": "Subscription.channel.type",
        "path": "Subscription.channel.type",
        "short": "rest-hook",
        "definition": "Het type kanaal waarin de notificaties verstuurd moeten worden. Rest-hook is verplicht.",
        "fixedCode": "rest-hook"
      },
      {
        "id": "Subscription.channel.endpoint",
        "path": "Subscription.channel.endpoint",
        "short": "Notificatie endpoint",
        "definition": "De URI waar meldingen voor het abonnement naartoe worden gestuurd.",
        "min": 1
      },
      {
        "id": "Subscription.channel.payload",
        "path": "Subscription.channel.payload",
        "definition": "Specificeert het MIME-type van de data die in de meldingen wordt meegestuurd",
        "max": "0"
      }
    ]
  }
}