FHIR CI-Build

This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions

Example SubscriptionTopic/example (XML)

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: No defined compartments

Raw XML (canonical form + also see XML Format Specification)

Jump past Narrative

Example Topic with Modifiers (id = "example")

<?xml version="1.0" encoding="UTF-8"?>

<SubscriptionTopic xmlns="http://hl7.org/fhir">
  <id value="example"/> 
  <text> <status value="extensions"/> <div xmlns="http://www.w3.org/1999/xhtml"><p> <b> Generated Narrative: SubscriptionTopic</b> <a name="example"> </a> <a name="hcexample"> </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">Resource SubscriptionTopic &quot;example&quot; </p> </div> <p> <b> StructureDefinition Work Group</b> : fhir</p> <p> <b> url</b> : <code> http://example.org/FHIR/R5/SubscriptionTopic/example</code> </p> <p> <b> identifier</b> : <a href="http://terminology.hl7.org/5.5.0/NamingSystem-uri.html" title="As defined by RFC 3986 (http://www.ietf.org/rfc/rfc3986.txt)(with many schemes
         defined in many RFCs). For OIDs and UUIDs, use the URN form (urn:oid:(note: lowercase)
         and urn:uuid:). See http://www.ietf.org/rfc/rfc3001.txt and http://www.ietf.org/rfc/rfc4122.t
        xt 

This oid is used as an identifier II.root to indicate the the extension is an absolute
         URI (technically, an IRI). Typically, this is used for OIDs and GUIDs. Note that
         when this OID is used with OIDs and GUIDs, the II.extension should start with urn:oid
         or urn:uuid: 

Note that this OID is created to aid with interconversion between CDA and FHIR
         - FHIR uses urn:ietf:rfc:3986 as equivalent to this OID. URIs as identifiers appear
         more commonly in FHIR.

This OID may also be used in CD.codeSystem.">URI</a> /urn:uuid:1caa02ba-051b-4602-8856-65921748ae76</p> <p> <b> version</b> : 1.0.0-beta.1</p> <p> <b> title</b> : example</p> <p> <b> status</b> : draft</p> <p> <b> date</b> : 2019-01-01</p> <p> <b> publisher</b> : HL7 International / FHIR Infrastructure</p> <p> <b> contact</b> : </p> <p> <b> description</b> : Example topic for completed encounters</p> <blockquote> <p> <b> resourceTrigger</b> </p> <p> <b> description</b> : An Encounter has been completed</p> <p> <b> resource</b> : <a href="encounter.html">Encounter</a> </p> <p> <b> supportedInteraction</b> : update</p> <h3> QueryCriteria</h3> <table class="grid"><tr> <td style="display: none">-</td> <td> <b> Previous</b> </td> <td> <b> ResultForCreate</b> </td> <td> <b> Current</b> </td> <td> <b> ResultForDelete</b> </td> <td> <b> RequireBoth</b> </td> </tr> <tr> <td style="display: none">*</td> <td> status:not=completed</td> <td> test-passes</td> <td> status=completed</td> <td> test-fails</td> <td> true</td> </tr> </table> <p> <b> fhirPathCriteria</b> : (%previous.empty() | (%previous.status != 'completed')) and (%current.status
           = 'completed')</p> </blockquote> <blockquote> <p> <b> canFilterBy</b> </p> <p> <b> description</b> : Filter based on the subject of an encounter.</p> <p> <b> resource</b> : <a href="encounter.html">Encounter</a> </p> <p> <b> filterParameter</b> : subject</p> </blockquote> <blockquote> <p> <b> canFilterBy</b> </p> <p> <b> description</b> : Filter based on the group membership of the subject of an encounter.</p> <p> <b> resource</b> : <a href="encounter.html">Encounter</a> </p> <p> <b> filterParameter</b> : _in</p> </blockquote> <blockquote> <p> <b> canFilterBy</b> </p> <p> <b> description</b> : Filter based on the length of an encounter.</p> <p> <b> resource</b> : <a href="encounter.html">Encounter</a> </p> <p> <b> filterParameter</b> : length</p> <p> <b> comparator</b> : gt, lt, ge, le</p> </blockquote> <blockquote> <p> <b> canFilterBy</b> </p> <p> <b> description</b> : Filter based on the account for billing an encounter.</p> <p> <b> resource</b> : <a href="encounter.html">Encounter</a> </p> <p> <b> filterParameter</b> : account</p> <p> <b> modifier</b> : missing, not, identifier</p> </blockquote> <h3> NotificationShapes</h3> <table class="grid"><tr> <td style="display: none">-</td> <td> <b> Resource</b> </td> <td> <b> Include</b> </td> </tr> <tr> <td style="display: none">*</td> <td> <a href="encounter.html">Encounter</a> </td> <td> Encounter:patient&amp;iterate=Patient.link, Encounter:practitioner, Encounter:service-provide
            r, Encounter:account, Encounter:diagnosis, Encounter:observation, Encounter:location</td> </tr> </table> </div> </text> <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"><valueCode value="fhir"/> </extension> 
  <url value="http://example.org/FHIR/R5/SubscriptionTopic/example"/> 
  <identifier> 
    <system value="urn:ietf:rfc:3986"/> 
    <value value="urn:uuid:1caa02ba-051b-4602-8856-65921748ae76"/> 
  </identifier> 
  <version value="1.0.0-beta.1"/> 
  <title value="example"/> 
  <status value="draft"/> 
  <date value="2019-01-01"/> 
  <publisher value="HL7 International / FHIR Infrastructure"/> 
  <contact> 
    <telecom> 
      <system value="url"/> 
      </telecom> 
  </contact> 
  <description value="Example topic for completed encounters"/> 
  <resourceTrigger> 
    <description value="An Encounter has been completed"/> 
    <resource value="http://hl7.org/fhir/StructureDefinition/Encounter"/> 
    <supportedInteraction value="update"/> 
    <queryCriteria> 
      <previous value="status:not=completed"/> 
      <resultForCreate value="test-passes"/> 
      <current value="status=completed"/> 
      <resultForDelete value="test-fails"/> 
      <requireBoth value="true"/> 
    </queryCriteria> 
    <fhirPathCriteria value="(%previous.empty() | (%previous.status != 'completed')) and (%current.status =
     'completed')"/> 
  </resourceTrigger> 
  <canFilterBy> 
    <description value="Filter based on the subject of an encounter."/> 
    <resource value="Encounter"/> 
    <filterParameter value="subject"/> 
  </canFilterBy> 
  <canFilterBy> 
    <description value="Filter based on the group membership of the subject of an encounter."/> 
    <resource value="Encounter"/> 
    <filterParameter value="_in"/> 
  </canFilterBy> 
  <canFilterBy> 
    <description value="Filter based on the length of an encounter."/> 
    <resource value="Encounter"/> 
    <filterParameter value="length"/> 
    <comparator value="gt"/> 
    <comparator value="lt"/> 
    <comparator value="ge"/> 
    <comparator value="le"/> 
  </canFilterBy> 
  <canFilterBy> 
    <description value="Filter based on the account for billing an encounter."/> 
    <resource value="Encounter"/> 
    <filterParameter value="account"/> 
    <modifier value="missing"/> 
    <modifier value="not"/> 
    <modifier value="identifier"/> 
  </canFilterBy> 
  <notificationShape> 
    <resource value="Encounter"/> 
    <include value="Encounter:patient&amp;iterate=Patient.link"/> 
    <include value="Encounter:practitioner"/> 
    <include value="Encounter:service-provider"/> 
    <include value="Encounter:account"/> 
    <include value="Encounter:diagnosis"/> 
    <include value="Encounter:observation"/> 
    <include value="Encounter:location"/> 
  </notificationShape> 
</SubscriptionTopic> 

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.