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: R4 Encounter Complete - XML Representation

Page standards status: Informative

Raw xml | Download

    <Basic xmlns="http://hl7.org/fhir">
      <id value="r4-encounter-complete"/>
      <text>
        <status value="generated"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative: Basic </b><a name="r4-encounter-complete"> </a><a name="hcr4-encounter-complete"> </a></p><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px">ResourceBasic &quot;r4-encounter-complete&quot; </p></div><p><b style="color: maroon">Exception Generating Narrative: unknown extension http://hl7.org/fhir/4.3/StructureDefinition/extension-SubscriptionTopic.resourceTrigger </b></p></div>
      </text>
      <extension
                 url="http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.url">
        <valueUri
                  value="http://hl7.org/fhir/uv/subscriptions-backport/SubscriptionTopic/r4-encounter-complete"/>
      </extension>
      <extension
                 url="http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.version">
        <valueString value="1.2.0"/>
      </extension>
      <extension
                 url="http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.name">
        <valueString
                     value="R4 example of a basic-converted subscription topic for completed encounters."/>
      </extension>
      <extension
                 url="http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.title">
        <valueString value="Backported SubscriptionTopic: R4 Encounter Complete"/>
      </extension>
      <extension
                 url="http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.date">
        <valueDateTime value="2019-01-01"/>
      </extension>
      <extension
                 url="http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.description">
        <valueMarkdown
                       value="R4 example of a subscription topic for completed encounters."/>
      </extension>
      <extension
                 url="http://hl7.org/fhir/4.3/StructureDefinition/extension-SubscriptionTopic.resourceTrigger">
        <extension url="description">
          <valueMarkdown value="Triggered when an encounter is completed."/>
        </extension>
        <extension url="resource">
          <valueUri value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
        </extension>
        <extension url="supportedInteraction">
          <valueCode value="create"/>
        </extension>
        <extension url="supportedInteraction">
          <valueCode value="update"/>
        </extension>
        <extension url="queryCriteria">
          <extension url="previous">
            <valueString value="status:not=finished"/>
          </extension>
          <extension url="resultForCreate">
            <valueCode value="test-passes"/>
          </extension>
          <extension url="current">
            <valueString value="status=finished"/>
          </extension>
          <extension url="resultForDelete">
            <valueCode value="test-fails"/>
          </extension>
          <extension url="requireBoth">
            <valueBoolean value="true"/>
          </extension>
        </extension>
        <extension url="fhirPathCriteria">
          <valueString
                       value="(%previous.id.empty() or (%previous.status != 'finished')) and (%current.status = 'finished')"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/4.3/StructureDefinition/extension-SubscriptionTopic.canFilterBy">
        <extension url="description">
          <valueMarkdown value="Filter based on the subject of an encounter."/>
        </extension>
        <extension url="resource">
          <valueUri value="Encounter"/>
        </extension>
        <extension url="filterParameter">
          <valueString value="subject"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/4.3/StructureDefinition/extension-SubscriptionTopic.canFilterBy">
        <extension url="description">
          <valueMarkdown
                         value="Filter based on the group membership of the subject of an encounter."/>
        </extension>
        <extension url="resource">
          <valueUri value="Encounter"/>
        </extension>
        <extension url="filterParameter">
          <valueString value="_in"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/4.3/StructureDefinition/extension-SubscriptionTopic.notificationShape">
        <extension url="resource">
          <valueUri value="Encounter"/>
        </extension>
        <extension url="include">
          <valueString value="Encounter:patient&amp;iterate=Patient.link"/>
        </extension>
        <extension url="include">
          <valueString value="Encounter:practitioner"/>
        </extension>
        <extension url="include">
          <valueString value="Encounter:service-provider"/>
        </extension>
        <extension url="include">
          <valueString value="Encounter:account"/>
        </extension>
        <extension url="include">
          <valueString value="Encounter:diagnosis"/>
        </extension>
        <extension url="include">
          <valueString value="Encounter:observation"/>
        </extension>
        <extension url="include">
          <valueString value="Encounter:location"/>
        </extension>
        <extension url="revInclude">
          <valueString value="Encounter:subject"/>
        </extension>
        <extension
                   url="http://hl7.org/fhir/uv/subscriptions-backport/StructureDefinition/backport-related-query">
          <extension url="queryType">
            <valueCoding>
              <system value="http://example.org/query-types"/>
              <code value="prescribed"/>
              <display value="Prescribed medications"/>
            </valueCoding>
          </extension>
          <extension url="query">
            <valueString
                         value="http://example.org/fhir/Encounter/[id]/$prescribed-medications"/>
          </extension>
        </extension>
      </extension>
      <modifierExtension
                         url="http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.status">
        <valueCode value="draft"/>
      </modifierExtension>
      <code>
        <coding>
          <system value="http://hl7.org/fhir/fhir-types"/>
          <code value="SubscriptionTopic"/>
        </coding>
      </code>
    </Basic>