Subscriptions R5 Backport
1.2.0-ballot - ballot

Subscriptions R5 Backport, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 1.2.0-ballot built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-subscription-backport-ig/ and changes regularly. See the Directory of published versions

## : Backported SubscriptionTopic: R4B Encounter Complete - JSON Representation

Page standards status: Informative

Raw json | Download

    {
      "resourceType" : "SubscriptionTopic",
      "id" : "r4b-encounter-complete",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"grid\"><tr><td colspan=\"5\"><b>Resource Triggers</b></td></tr><tr><th><b>Resource</b></th><th><b>Interactions</b></th><th><b>Criteria</b></th><th><b>FHIR Path</b></th><th><b>Description</b></th></tr><tr><td><a href=\"http://hl7.org/fhir/R4B/encounter.html\">Encounter</a></td><td>create, update</td><td><div><ul>\n<li>previous = status:not=finished</li>\n<li>create result = TESTPASSES</li>\n<li>create result = status=finished</li>\n<li>delete result = TESTFAILS</li>\n<li>require both = true</li>\n</ul>\n</div></td><td>(%previous.id.empty() or (%previous.status != 'finished')) and (%current.status = 'finished')</td><td><div><p>Triggered when an encounter is completed.</p>\n</div></td></tr></table><table class=\"grid\"><tr><td colspan=\"3\"><b>Can Filter By</b></td></tr><tr><th><b>Resource</b></th><th><b>Filter Parameter</b></th><th><b>Comparators</b></th></tr><tr><td><a href=\"http://hl7.org/fhir/R4B/encounter.html\">Encounter</a></td><td>subject</td><td/></tr><tr><td><a href=\"http://hl7.org/fhir/R4B/encounter.html\">Encounter</a></td><td>_in</td><td/></tr><tr><td><a href=\"http://hl7.org/fhir/R4B/encounter.html\">Encounter</a></td><td>length</td><td>gt, lt, ge, le</td></tr></table><table class=\"grid\"><tr><td colspan=\"2\"><b>Notification Shapes</b></td></tr><tr><th><b>Resource</b></th><th><b>Includes</b></th></tr><tr><td><a href=\"http://hl7.org/fhir/R4B/encounter.html\">Encounter</a></td><td>Encounter:patient&amp;iterate=Patient.link, Encounter:practitioner, Encounter:service-provider, Encounter:account, Encounter:diagnosis, Encounter:observation, Encounter:location</td></tr></table></div>"
      },
      "url" : "http://hl7.org/fhir/uv/subscriptions-backport/SubscriptionTopic/r4b-encounter-complete",
      "version" : "1.2.0-ballot",
      "status" : "draft",
      "date" : "2024-06-17T16:09:47+00:00",
      "publisher" : "HL7 International / FHIR Infrastructure",
      "contact" : [
        {
          "name" : "HL7 International / FHIR Infrastructure",
          "telecom" : [
            {
              "system" : "url",
              "value" : "http://www.hl7.org/Special/committees/fiwg"
            }
          ]
        },
        {
          "name" : "Gino Canessa",
          "telecom" : [
            {
              "system" : "email",
              "value" : "mailto:gino.canessa@microsoft.com"
            }
          ]
        }
      ],
      "jurisdiction" : [
        {
          "coding" : [
            {
              "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
              "code" : "001",
              "display" : "World"
            }
          ]
        }
      ],
      "resourceTrigger" : [
        {
          "description" : "Triggered when an encounter is completed.",
          "resource" : "Encounter",
          "supportedInteraction" : [
            "create",
            "update"
          ],
          "queryCriteria" : {
            "previous" : "status:not=finished",
            "resultForCreate" : "test-passes",
            "current" : "status=finished",
            "resultForDelete" : "test-fails",
            "requireBoth" : true
          },
          "fhirPathCriteria" : "(%previous.id.empty() or (%previous.status != 'finished')) and (%current.status = 'finished')"
        }
      ],
      "canFilterBy" : [
        {
          "description" : "Filter based on the subject of an encounter.",
          "resource" : "Encounter",
          "filterParameter" : "subject"
        },
        {
          "description" : "Filter based on the group membership of the subject of an encounter.",
          "resource" : "Encounter",
          "filterParameter" : "_in"
        },
        {
          "description" : "Filter based on the length of an encounter.",
          "resource" : "Encounter",
          "filterParameter" : "length",
          "modifier" : [
            "gt",
            "lt",
            "ge",
            "le"
          ]
        }
      ],
      "notificationShape" : [
        {
          "resource" : "Encounter",
          "include" : [
            "Encounter:patient&iterate=Patient.link",
            "Encounter:practitioner",
            "Encounter:service-provider",
            "Encounter:account",
            "Encounter:diagnosis",
            "Encounter:observation",
            "Encounter:location"
          ]
        }
      ]
    }