FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagehl7.fhir.uv.subscriptions-backport.r4
Resource TypeSubscriptionTopic
IdSubscriptionTopic-r4b-encounter-complete.json
FHIR VersionR4

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Resource Triggers
ResourceInteractionsCriteriaFHIR PathDescription
Encountercreate, update
  • previous = status:not=finished
  • create result = TESTPASSES
  • create result = status=finished
  • delete result = TESTFAILS
  • require both = true
(%previous.id.empty() or (%previous.status != 'finished')) and (%current.status = 'finished')

Triggered when an encounter is completed.

Can Filter By
ResourceFilter ParameterComparators
Encountersubject
Encounter_in
Encounterlengthgt, lt, ge, le
Notification Shapes
ResourceIncludes
EncounterEncounter:patient&iterate=Patient.link, Encounter:practitioner, Encounter:service-provider, Encounter:account, Encounter:diagnosis, Encounter:observation, Encounter:location

Source1

{
  "resourceType": "SubscriptionTopic",
  "id": "r4b-encounter-complete",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "fhir"
    }
  ],
  "url": "http://hl7.org/fhir/uv/subscriptions-backport/SubscriptionTopic/r4b-encounter-complete",
  "version": "1.2.0-ballot",
  "status": "draft",
  "date": "2023-12-18T22:17:27+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"
      ]
    }
  ]
}