{
  "resourceType": "SubscriptionTopic",
  "id": "admission",
  "text": {
    "status": "generated",
    "div": "\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003e\u003cp\u003e\u003cb\u003eGenerated Narrative: SubscriptionTopic\u003c/b\u003e\u003ca name\u003d\"admission\"\u003e \u003c/a\u003e\u003c/p\u003e\u003cdiv style\u003d\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"\u003e\u003cp style\u003d\"margin-bottom: 0px\"\u003eResource SubscriptionTopic \u0026quot;admission\u0026quot; \u003c/p\u003e\u003c/div\u003e\u003cp\u003e\u003cb\u003eurl\u003c/b\u003e: \u003ccode\u003ehttp://example.org/FHIR/R5/SubscriptionTopic/admission\u003c/code\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eidentifier\u003c/b\u003e: id: urn:uuid:915c2040-b0a8-4935-adf8-94d6e1a74052\u003c/p\u003e\u003cp\u003e\u003cb\u003etitle\u003c/b\u003e: admission\u003c/p\u003e\u003cp\u003e\u003cb\u003estatus\u003c/b\u003e: active\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: Example admission topic\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eresourceTrigger\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: Encounter resource moving to state \u0027in-progress\u0027\u003c/p\u003e\u003cp\u003e\u003cb\u003eresource\u003c/b\u003e: \u003ca href\u003d\"encounter.html\"\u003eEncounter\u003c/a\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003esupportedInteraction\u003c/b\u003e: create, update\u003c/p\u003e\u003ch3\u003eQueryCriteria\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003ePrevious\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResultForCreate\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eCurrent\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResultForDelete\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eRequireBoth\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003estatus:not\u003din-progress\u003c/td\u003e\u003ctd\u003etest-passes\u003c/td\u003e\u003ctd\u003estatus\u003din-progress\u003c/td\u003e\u003ctd\u003etest-fails\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003cp\u003e\u003cb\u003efhirPathCriteria\u003c/b\u003e: %previous.status!\u003d\u0027in-progress\u0027 and %current.status\u003d\u0027in-progress\u0027\u003c/p\u003e\u003c/blockquote\u003e\u003ch3\u003eEventTriggers\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEvent\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003ePatient admission is covered by HL7v2 ADT^A01\u003c/td\u003e\u003ctd\u003eADT/ACK - Admit/visit notification \u003cspan style\u003d\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"\u003e (\u003ca href\u003d\"http://terminology.hl7.org/5.1.0/CodeSystem-v2-0003.html\"\u003eeventType\u003c/a\u003e#A01)\u003c/span\u003e\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"encounter.html\"\u003eEncounter\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003ch3\u003eCanFilterBies\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eFilterParameter\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eModifier\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eMatching based on the Patient (subject) of an Encounter or based on the Patient\u0027s group membership (in/not-in).\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"encounter.html\"\u003eEncounter\u003c/a\u003e\u003c/td\u003e\u003ctd\u003epatient\u003c/td\u003e\u003ctd\u003ein, not-in\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003ch3\u003eNotificationShapes\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eInclude\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"encounter.html\"\u003eEncounter\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eEncounter:patient, Encounter:practitioner, Encounter:service-provider, Encounter:account, Encounter:diagnosis, Encounter:observation, Encounter:location\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/div\u003e"
  },
  "url": "http://example.org/FHIR/R5/SubscriptionTopic/admission",
  "identifier": [
    {
      "system": "urn:ietf:rfc:3986",
      "value": "urn:uuid:915c2040-b0a8-4935-adf8-94d6e1a74052"
    }
  ],
  "title": "admission",
  "status": "active",
  "description": "Example admission topic",
  "resourceTrigger": [
    {
      "description": "Encounter resource moving to state \u0027in-progress\u0027",
      "resource": "http://hl7.org/fhir/StructureDefinition/Encounter",
      "supportedInteraction": [
        "create",
        "update"
      ],
      "queryCriteria": {
        "previous": "status:not\u003din-progress",
        "resultForCreate": "test-passes",
        "current": "status\u003din-progress",
        "resultForDelete": "test-fails",
        "requireBoth": true
      },
      "fhirPathCriteria": "%previous.status!\u003d\u0027in-progress\u0027 and %current.status\u003d\u0027in-progress\u0027"
    }
  ],
  "eventTrigger": [
    {
      "description": "Patient admission is covered by HL7v2 ADT^A01",
      "event": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/v2-0003",
            "code": "A01",
            "display": "ADT/ACK - Admit/visit notification"
          }
        ]
      },
      "resource": "http://hl7.org/fhir/StructureDefinition/Encounter"
    }
  ],
  "canFilterBy": [
    {
      "description": "Matching based on the Patient (subject) of an Encounter or based on the Patient\u0027s group membership (in/not-in).",
      "resource": "Encounter",
      "filterParameter": "patient",
      "modifier": [
        "in",
        "not-in"
      ]
    }
  ],
  "notificationShape": [
    {
      "resource": "Encounter",
      "include": [
        "Encounter:patient",
        "Encounter:practitioner",
        "Encounter:service-provider",
        "Encounter:account",
        "Encounter:diagnosis",
        "Encounter:observation",
        "Encounter:location"
      ]
    }
  ]
}