<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="SubscriptionTopic" />
  <meta>
    <lastUpdated value="2021-01-02T08:58:31.578+11:00" />
  </meta>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-category">
    <valueString value="Foundation.Other" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="0" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category">
    <valueCode value="business" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="fhir" />
  </extension>
  <extension url="http://hl7.org/fhir/build/StructureDefinition/entered-in-error-status">
    <valueCode value=".status = off (just turn it off, maybe update the error message)" />
  </extension>
  <extension url="http://hl7.org/fhir/build/StructureDefinition/template">
    <valueString value="CanonicalResource" />
  </extension>
  <url value="http://hl7.org/fhir/StructureDefinition/SubscriptionTopic" />
  <version value="4.6.0" />
  <name value="SubscriptionTopic" />
  <status value="draft" />
  <date value="2021-01-02T08:58:31+11:00" />
  <publisher value="Health Level Seven International (FHIR Infrastructure)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org/fhir" />
    </telecom>
  </contact>
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://www.hl7.org/Special/committees/fiwg/index.cfm" />
    </telecom>
  </contact>
  <description value="Describes a stream of resource state changes identified by trigger criteria and annotated with labels useful to filter projections from this topic." />
  <fhirVersion value="4.6.0" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="SubscriptionTopic" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/CanonicalResource">
    <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super">
      <valueString value="CanonicalResource" />
    </extension>
  </baseDefinition>
  <derivation value="specialization" />
  <differential>
    <element id="SubscriptionTopic">
      <path value="SubscriptionTopic" />
      <short value="The definition of a specific topic for triggering events within the Subscriptions framework" />
      <definition value="Describes a stream of resource state changes or events and annotated with labels useful to filter projections from this topic." />
      <min value="0" />
      <max value="*" />
      <mapping>
        <identity value="workflow" />
        <map value="Definition" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Act[moodCode&lt;=DEFN]" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="infrastructure.exchange" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.url">
      <path value="SubscriptionTopic.url" />
      <short value="Canonical identifier for this subscription topic definition, represented as a URI (globally unique)" />
      <definition value="An absolute URI that is used to identify this subscription topic when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this subscription topic is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the subscription topic is stored on different servers." />
      <comment value="Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.&#xA;&#xA;The determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). &#xA;&#xA;In some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found." />
      <requirements value="Allows the subscription topic to be referenced by a single globally unique identifier." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="uri" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Definition.url" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.identifier" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".identifier" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.identifier">
      <path value="SubscriptionTopic.identifier" />
      <short value="Business Identifier for this subscription topic" />
      <definition value="Business identifiers assigned to this subscription topic by the performer and/or other systems.  These identifiers remain constant as the resource is updated and propagates from server to server." />
      <comment value="Note: This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number." />
      <requirements value="Allows identification of the subscription topic as it is known by various participating systems and in a way that remains consistent across servers." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Identifier" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Definition.identifier" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.identifier" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".identifier" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.version">
      <path value="SubscriptionTopic.version" />
      <short value="Business version of the subscription topic" />
      <definition value="The identifier that is used to identify this version of the subscription topic when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the Topic author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions are orderable." />
      <comment value="There may be multiple different instances of a subscription topic that have the same identifier but different versions." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Definition.version" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.version" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A (to add?)" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.title">
      <path value="SubscriptionTopic.title" />
      <short value="Name for this subscription topic (Human friendly)" />
      <definition value="A short, descriptive, user-friendly title for the SubscriptionTopic, for example, &quot;admission&quot;." />
      <alias value="Name" />
      <alias value="SubscriptionTopic Name" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Definition.title" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".title" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.derivedFrom">
      <path value="SubscriptionTopic.derivedFrom" />
      <short value="Based on FHIR protocol or definition" />
      <definition value="The canonical URL pointing to another FHIR-defined SubscriptionTopic that is adhered to in whole or in part by this SubscriptionTopic." />
      <requirements value="SubscriptionTopics may be refinements of more generic topics." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="canonical" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/SubscriptionTopic" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Definition.derivedFromCanonical" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="Varies by domain" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".outboundRelationship[typeCode=DEFN].target" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.status">
      <path value="SubscriptionTopic.status" />
      <short value="draft | active | retired | unknown" />
      <definition value="The current state of the SubscriptionTopic." />
      <comment value="A nominal state-transition diagram can be found in the [[definition.html#statemachine | Definition pattern]] documentation&#xA;&#xA;Unknown does not represent &quot;other&quot; - one of the defined statuses must apply.  Unknown is used when the authoring system is not sure what the current status is." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <isModifier value="true" />
      <isModifierReason value="This is labeled as &quot;Is Modifier&quot; because applications should not use a retired SubscriptionTopic without due consideration" />
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PublicationStatus" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="required" />
        <description value="The lifecycle status of an artifact." />
        <valueSet value="http://hl7.org/fhir/ValueSet/publication-status" />
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Definition.status" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.status" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".status" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.experimental">
      <path value="SubscriptionTopic.experimental" />
      <short value="If for testing purposes, not real usage" />
      <definition value="A flag to indicate that this TopSubscriptionTopicic is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." />
      <comment value="Allows filtering of SubscriptionTopic that are appropriate for use vs. not." />
      <requirements value="Enables experimental content to be developed following the same life-cycle as a production-level SubscriptionTopic would." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="boolean" />
      </type>
      <isModifier value="true" />
      <isModifierReason value="This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental SubscriptionTopic in production." />
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Definition.experimental" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.class" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A (to add?)" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.date">
      <path value="SubscriptionTopic.date" />
      <short value="Date status first applied" />
      <definition value="For draft definitions, indicates the date of initial creation.  For active definitions, represents the date of activation.  For withdrawn definitions, indicates the date of withdrawal." />
      <alias value="created" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Definition.date" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.recorded" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=AUT].time" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.publisher">
      <path value="SubscriptionTopic.publisher" />
      <short value="The name of the individual or organization that published the SubscriptionTopic" />
      <definition value="Helps establish the &quot;authority/credibility&quot; of the SubscriptionTopic.  May also allow for contact." />
      <requirements value="Usually an organization, but may be an individual. The publisher (or steward) of the SubscriptionTopic is the organization or individual primarily responsible for the maintenance and upkeep of the Topic. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the Topic. This item SHOULD be populated unless the information is available from context." />
      <alias value="author" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Definition.publisher {as string instead of CodeableConcept}" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.author" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=AUT].role" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.contact">
      <path value="SubscriptionTopic.contact" />
      <short value="Contact details for the publisher" />
      <definition value="Contact details to assist a user in finding and communicating with the publisher." />
      <comment value="May be a web site, an email address, a telephone number, etc." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="ContactDetail" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Definition.contact" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=CALLBCK].role" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.description">
      <path value="SubscriptionTopic.description" />
      <short value="Natural language description of the SubscriptionTopic" />
      <definition value="A free text natural language description of the Topic from the consumer's perspective." />
      <comment value="This description can be used to capture details such as why the Topic was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the module as conveyed in the text field of the resource itself. This item SHOULD be populated unless the information is available from context." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="markdown" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Definition.description" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".text" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.useContext">
      <path value="SubscriptionTopic.useContext" />
      <short value="Content intends to support these contexts" />
      <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of code system definitions." />
      <comment value="When multiple usageContexts are specified, there is no expectation for whether all or any of the contexts apply." />
      <requirements value="Assist in searching for appropriate content." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="UsageContext" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Definition.useContext" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A (to add?)" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.jurisdiction">
      <path value="SubscriptionTopic.jurisdiction" />
      <short value="Intended jurisdiction of the SubscriptionTopic (if applicable)" />
      <definition value="A jurisdiction in which the Topic is intended to be used." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Jurisdiction" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="extensible" />
        <description value="Countries and regions within which this artifact is targeted for use." />
        <valueSet value="http://hl7.org/fhir/ValueSet/jurisdiction" />
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Definition.jurisdiction" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A (to add?)" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.purpose">
      <path value="SubscriptionTopic.purpose" />
      <short value="Why this SubscriptionTopic is defined" />
      <definition value="Explains why this Topic is needed and why it has been designed as it has." />
      <comment value="This element does not describe the usage of the Topic.  Rather it is for traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this Topic." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="markdown" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Definition.purpose" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.why[x]" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".reasonCode.text" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.copyright">
      <path value="SubscriptionTopic.copyright" />
      <short value="Use and/or publishing restrictions" />
      <definition value="A copyright statement relating to the SubscriptionTopic and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the SubscriptionTopic." />
      <requirements value="Consumers of the TSubscriptionTopicopic must be able to determine any legal restrictions on the use of the artifact and/or its content." />
      <alias value="License" />
      <alias value="Restrictions" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="markdown" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Definition.copyright" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A (to add?)" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.approvalDate">
      <path value="SubscriptionTopic.approvalDate" />
      <short value="When SubscriptionTopic is/was approved by publisher" />
      <definition value="The date on which the asset content was approved by the publisher. Approval happens once when the content is officially approved for usage." />
      <comment value="The date may be more recent than the approval date because of minor changes / editorial corrections." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="date" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Definition.approvalDate" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".outboundRelationship[typeCode=&quot;SUBJ&quot;].act[classCode=CACT;moodCode=EVN;code=&quot;approval&quot;].effectiveTime" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.lastReviewDate">
      <path value="SubscriptionTopic.lastReviewDate" />
      <short value="Date the Subscription Topic was last reviewed by the publisher" />
      <definition value="The date on which the asset content was last reviewed. Review happens periodically after that, but doesn't change the original approval date." />
      <comment value="If specified, this is usually after the approval date." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="date" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Definition.lastReviewDate" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".outboundRelationship[typeCode=&quot;SUBJ&quot;; subsetCode=&quot;RECENT&quot;].act[classCode=CACT;moodCode=EVN;code=&quot;review&quot;].effectiveTime" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.effectivePeriod">
      <path value="SubscriptionTopic.effectivePeriod" />
      <short value="The effective date range for the SubscriptionTopic" />
      <definition value="The period during which the SubscriptionTopic content was or is planned to be effective." />
      <comment value="The effective period for a SubscriptionTopic  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 would be published in 2015." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Period" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Definition.effectivePeriod" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A (to add?)" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.resourceTrigger">
      <path value="SubscriptionTopic.resourceTrigger" />
      <short value="Definition of a resource-based trigger for the subscription topic" />
      <definition value="A definition of a resource-based event that triggers a notification based on the SubscriptionTopic. The criteria may be just a human readable description and/or a full FHIR search string or FHIRPath expression. Multiple triggers are considered OR joined (e.g., a resource update matching ANY of the definitions will trigger a notification)." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="N/A (to add?)" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.resourceTrigger.description">
      <path value="SubscriptionTopic.resourceTrigger.description" />
      <short value="Text representation of the resource trigger" />
      <definition value="The human readable description of this resource trigger for the SubscriptionTopic -  for example, &quot;An Encounter enters the 'in-progress' state&quot;." />
      <comment value="Implementation of particular subscription topics might not use a computable definition and instead base their design on the definition." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="markdown" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="SubscriptionTopic.resourceTrigger.resource">
      <path value="SubscriptionTopic.resourceTrigger.resource" />
      <short value="Data Type or Resource (reference to definition) for this trigger definition" />
      <definition value="URL of the Resource that is the type used in this resource trigger.  Relative URLs are relative to the StructureDefinition root of the implemented FHIR version (e.g., http://hl7.org/fhir/StructureDefinition). For example, &quot;Patient&quot; maps to http://hl7.org/fhir/StructureDefinition/Patient.  For more information, see &lt;a href=&quot;elementdefinition-definitions.html#ElementDefinition.type.code&quot;&gt;ElementDefinition.type.code&lt;/a&gt;." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="uri" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="FHIRDefinedTypeExt" />
        </extension>
        <strength value="extensible" />
        <description value="Either a resource or a data type, including logical model types." />
        <valueSet value="http://hl7.org/fhir/ValueSet/defined-types" />
      </binding>
    </element>
    <element id="SubscriptionTopic.resourceTrigger.supportedInteraction">
      <path value="SubscriptionTopic.resourceTrigger.supportedInteraction" />
      <short value="create | update | delete" />
      <definition value="The FHIR RESTful interaction which can be used to trigger a notification for the SubscriptionTopic. Multiple values are considered OR joined (e.g., CREATE or UPDATE)." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="code" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MethodCode" />
        </extension>
        <strength value="required" />
        <description value="FHIR RESTful interaction used to filter a resource-based SubscriptionTopic trigger." />
        <valueSet value="http://hl7.org/fhir/ValueSet/interaction-trigger" />
      </binding>
    </element>
    <element id="SubscriptionTopic.resourceTrigger.queryCriteria">
      <path value="SubscriptionTopic.resourceTrigger.queryCriteria" />
      <short value="Query based trigger rule" />
      <definition value="The FHIR query based rules that the server should use to determine when to trigger a notification for this subscription topic." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="SubscriptionTopic.resourceTrigger.queryCriteria.previous">
      <path value="SubscriptionTopic.resourceTrigger.queryCriteria.previous" />
      <short value="Rule applied to previous resource state" />
      <definition value="The FHIR query based rules are applied to the previous resource state (e.g., state before an update)." />
      <comment value="The rules are search criteria (without the [base] part). Like Bundle.entry.request.url, it has no leading &quot;/&quot;." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="SubscriptionTopic.resourceTrigger.queryCriteria.resultForCreate">
      <path value="SubscriptionTopic.resourceTrigger.queryCriteria.resultForCreate" />
      <short value="test-passes | test-fails" />
      <definition value="For &quot;create&quot; interactions, should the &quot;previous&quot; criteria count as an automatic pass or an automatic fail." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="CriteriaNotExistsBehavior" />
        </extension>
        <strength value="required" />
        <description value="Behavior a server can exhibit when a criteria state does not exist (e.g., state prior to a create or after a delete)." />
        <valueSet value="http://hl7.org/fhir/ValueSet/subscriptiontopic-cr-behavior" />
      </binding>
    </element>
    <element id="SubscriptionTopic.resourceTrigger.queryCriteria.current">
      <path value="SubscriptionTopic.resourceTrigger.queryCriteria.current" />
      <short value="Rule applied to current resource state" />
      <definition value="The FHIR query based rules are applied to the current resource state (e.g., state after an update)." />
      <comment value="The rules are search criteria (without the [base] part). Like Bundle.entry.request.url, it has no leading &quot;/&quot;." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="SubscriptionTopic.resourceTrigger.queryCriteria.resultForDelete">
      <path value="SubscriptionTopic.resourceTrigger.queryCriteria.resultForDelete" />
      <short value="test-passes | test-fails" />
      <definition value="For &quot;delete&quot; interactions, should the &quot;current&quot; criteria count as an automatic pass or an automatic fail." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="CriteriaNotExistsBehavior" />
        </extension>
        <strength value="required" />
        <description value="Behavior a server can exhibit when a criteria state does not exist (e.g., state prior to a create or after a delete)." />
        <valueSet value="http://hl7.org/fhir/ValueSet/subscriptiontopic-cr-behavior" />
      </binding>
    </element>
    <element id="SubscriptionTopic.resourceTrigger.queryCriteria.requireBoth">
      <path value="SubscriptionTopic.resourceTrigger.queryCriteria.requireBoth" />
      <short value="Both must be true flag" />
      <definition value="If set to true, both current and previous criteria must evaluate true to  trigger a notification for this topic.  Otherwise a notification for this topic will be triggered if either one evaluates to true." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="boolean" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="SubscriptionTopic.resourceTrigger.fhirPathCriteria">
      <path value="SubscriptionTopic.resourceTrigger.fhirPathCriteria" />
      <short value="FHIRPath based trigger rule" />
      <definition value="The FHIRPath based rules that the server should use to determine when to trigger a notification for this topic." />
      <comment value="FHIRPath expression with %previous and %current vars." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="SubscriptionTopic.eventTrigger">
      <path value="SubscriptionTopic.eventTrigger" />
      <short value="Event definitions the SubscriptionTopic" />
      <definition value="Event definition which can be used to trigger the SubscriptionTopic." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="N/A (to add?)" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.eventTrigger.description">
      <path value="SubscriptionTopic.eventTrigger.description" />
      <short value="Text representation of the event trigger" />
      <definition value="The human readable description of an event to trigger a notification for the SubscriptionTopic - for example, &quot;Patient Admission, as defined in HL7v2 via message ADT^A01&quot;. Multiple values are considered OR joined (e.g., matching any single event listed)." />
      <comment value="Implementation of particular subscription topics might not use a computable definition and instead base their design on the definition." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="markdown" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="SubscriptionTopic.eventTrigger.event">
      <path value="SubscriptionTopic.eventTrigger.event" />
      <short value="Event which can trigger a notification from the SubscriptionTopic" />
      <definition value="A well-defined event which can be used to trigger notifications from the SubscriptionTopic." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SubscriptionTopicEventTrigger" />
        </extension>
        <strength value="example" />
        <description value="FHIR Value set/code system definition for HL7 v2 table 0003 (EVENT TYPE CODE)." />
        <valueSet value="http://terminology.hl7.org/ValueSet/v2-0003" />
      </binding>
    </element>
    <element id="SubscriptionTopic.eventTrigger.resource">
      <path value="SubscriptionTopic.eventTrigger.resource" />
      <short value="Data Type or Resource (reference to definition) for this trigger definition" />
      <definition value="URL of the Resource that is the focus type used in this event trigger.  Relative URLs are relative to the StructureDefinition root of the implemented FHIR version (e.g., http://hl7.org/fhir/StructureDefinition). For example, &quot;Patient&quot; maps to http://hl7.org/fhir/StructureDefinition/Patient.  For more information, see &lt;a href=&quot;elementdefinition-definitions.html#ElementDefinition.type.code&quot;&gt;ElementDefinition.type.code&lt;/a&gt;." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="uri" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="FHIRDefinedTypeExt" />
        </extension>
        <strength value="extensible" />
        <description value="Either a resource or a data type, including logical model types." />
        <valueSet value="http://hl7.org/fhir/ValueSet/defined-types" />
      </binding>
    </element>
    <element id="SubscriptionTopic.canFilterBy">
      <path value="SubscriptionTopic.canFilterBy" />
      <short value="Properties by which a Subscription can filter notifications from the SubscriptionTopic" />
      <definition value="List of properties by which Subscriptions on the SubscriptionTopic can be filtered. May be defined Search Parameters (e.g., Encounter.patient) or parameters defined within this SubscriptionTopic context (e.g., hub.event)." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="SubscriptionTopic.canFilterBy.description">
      <path value="SubscriptionTopic.canFilterBy.description" />
      <short value="Description of this filter parameter" />
      <definition value="Description of how this filtering parameter is intended to be used." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="markdown" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="SubscriptionTopic.canFilterBy.resource">
      <path value="SubscriptionTopic.canFilterBy.resource" />
      <short value="URL of the triggering Resource that this filter applies to" />
      <definition value="URL of the Resource that is the type used in this filter. This is the &quot;focus&quot; of the topic (or one of them if there are more than one). It will be the same, a generality, or a specificity of SubscriptionTopic.resourceTrigger.resource or SubscriptionTopic.eventTrigger.resource when they are present." />
      <comment value="URL of the Resource that is the type used in this filter. Relative URLs are relative to the StructureDefinition root of the implemented FHIR version (e.g., http://hl7.org/fhir/StructureDefinition). For example, &quot;Patient&quot; maps to http://hl7.org/fhir/StructureDefinition/Patient. For more information, see &lt;a href=&quot;elementdefinition-definitions.html#ElementDefinition.type.code&quot;&gt;ElementDefinition.type.code&lt;/a&gt;." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="uri" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="FHIRDefinedTypeExt" />
        </extension>
        <strength value="extensible" />
        <description value="Either a resource or a data type, including logical model types." />
        <valueSet value="http://hl7.org/fhir/ValueSet/defined-types" />
      </binding>
    </element>
    <element id="SubscriptionTopic.canFilterBy.filterParameter">
      <path value="SubscriptionTopic.canFilterBy.filterParameter" />
      <short value="Human-readable and computation-friendly name for a filter parameter usable by subscriptions on this topic, via Subscription.filterBy.filterParameter" />
      <definition value="Either the canonical URL to a search parameter (like &quot;http://hl7.org/fhir/SearchParameter/encounter-patient&quot;) or topic-defined parameter (like &quot;hub.event&quot;) which is a label for the filter." />
      <comment value="Chained parameters are allowed (like &quot;patient.gender&quot;) - but can not use colons or modifiers." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="SubscriptionTopic.canFilterBy.filterDefinition">
      <path value="SubscriptionTopic.canFilterBy.filterDefinition" />
      <short value="Canonical URL for a filterParameter definition" />
      <definition value="Either the canonical URL to a search parameter (like &quot;http://hl7.org/fhir/SearchParameter/encounter-patient&quot;) or the officially-defined URI for a shared filter concept (like &quot;http://example.org/concepts/shared-common-event&quot;)." />
      <comment value="Chained parameters are allowed (like &quot;patient.gender&quot;) - but can not use colons or modifiers." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="uri" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="SubscriptionTopic.canFilterBy.modifier">
      <path value="SubscriptionTopic.canFilterBy.modifier" />
      <short value="= | eq | ne | gt | lt | ge | le | sa | eb | ap | above | below | in | not-in | of-type" />
      <definition value="Allowable operators to apply when determining matches (Search Modifiers).  If the filterParameter is a SearchParameter, this list of modifiers SHALL be a strict subset of the modifiers defined on that SearchParameter." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="code" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SubscriptionTopicFilterBySearchModifier" />
        </extension>
        <strength value="required" />
        <description value="Operator to apply to filter label." />
        <valueSet value="http://hl7.org/fhir/ValueSet/subscription-search-modifier" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="N/A (to add?)" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.notificationShape">
      <path value="SubscriptionTopic.notificationShape" />
      <short value="Properties for describing the shape of notifications generated by this topic" />
      <definition value="List of properties to describe the shape (e.g., resources) included in notifications from this Subscription Topic." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="N/A (to add?)" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.notificationShape.resource">
      <path value="SubscriptionTopic.notificationShape.resource" />
      <short value="URL of the Resource that is the focus (main) resource in a notification shape" />
      <definition value="URL of the Resource that is the type used in this shape. This is the &quot;focus&quot; of the topic (or one of them if there are more than one) and the root resource for this shape definition. It will be the same, a generality, or a specificity of SubscriptionTopic.resourceTrigger.resource or SubscriptionTopic.eventTrigger.resource when they are present." />
      <comment value="URL of the Resource that is the type used in this shape. Relative URLs are relative to the StructureDefinition root of the implemented FHIR version (e.g., http://hl7.org/fhir/StructureDefinition). For example, &quot;Patient&quot; maps to http://hl7.org/fhir/StructureDefinition/Patient. For more information, see &lt;a href=&quot;elementdefinition-definitions.html#ElementDefinition.type.code&quot;&gt;ElementDefinition.type.code&lt;/a&gt;." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="uri" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="FHIRDefinedTypeExt" />
        </extension>
        <strength value="extensible" />
        <description value="Either a resource or a data type, including logical model types." />
        <valueSet value="http://hl7.org/fhir/ValueSet/defined-types" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="N/A (to add?)" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.notificationShape.include">
      <path value="SubscriptionTopic.notificationShape.include" />
      <short value="Include directives, rooted in the resource for this shape" />
      <definition value="Search-style _include directives, rooted in the resource for this shape. Servers SHOULD include resources listed here, if they exist and the user is authorized to receive them.  Clients SHOULD be prepared to receive these additional resources, but SHALL function properly without them." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="N/A (to add?)" />
      </mapping>
    </element>
    <element id="SubscriptionTopic.notificationShape.revInclude">
      <path value="SubscriptionTopic.notificationShape.revInclude" />
      <short value="Reverse include directives, rooted in the resource for this shape" />
      <definition value="Search-style _revinclude directives, rooted in the resource for this shape. Servers SHOULD include resources listed here, if they exist and the user is authorized to receive them.  Clients SHOULD be prepared to receive these additional resources, but SHALL function properly without them." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="N/A (to add?)" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>