Making Electronic Data More available for Research and Public Health (MedMorph)
1.0.0 - STU 1 United States of America flag

Making Electronic Data More available for Research and Public Health (MedMorph), published by HL7 International - Public Health Work Group. This is not an authorized publication; it is the continuous build for version 1.0.0). This version is based on the current content of https://github.com/HL7/fhir-medmorph/ and changes regularly. See the Directory of published versions

: Encounter End Subscription Topic Example - XML Representation

Raw xml | Download



<Subscription xmlns="http://hl7.org/fhir">
  <id value="encounter-end-subscription-example"/>
  <meta>
    <profile
             value="http://hl7.org/fhir/us/medmorph/StructureDefinition/medmorph-encounter-end-subscription"/>
  </meta>
  <text>
    <status value="extensions"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p><b>Encounter Start Subscription Example</b></p></div>
  </text>
  <status value="active"/>
  <reason
          value="Creation of subscription based on encounter-end trigger event from PlanDefintiion."/>
  <criteria
            value="http://hl7.org/fhir/us/medmorph/SubscriptionTopic/encounter-end">
    <extension
               url="http://hl7.org/fhir/uv/subscriptions-backport/StructureDefinition/backport-filter-criteria">
      <valueString value="Encounter?status=finished"/>
    </extension>
  </criteria>
  <channel>
    <extension
               url="http://hl7.org/fhir/uv/subscriptions-backport/StructureDefinition/backport-heartbeat-period">
      <valueUnsignedInt value="86400"/>
    </extension>
    <extension
               url="http://hl7.org/fhir/uv/subscriptions-backport/StructureDefinition/backport-timeout">
      <valueUnsignedInt value="60"/>
    </extension>
    <extension
               url="http://hl7.org/fhir/uv/subscriptions-backport/StructureDefinition/backport-max-count">
      <valuePositiveInt value="20"/>
    </extension>
    <type value="rest-hook"/>
    <endpoint
              value="https://example.org/Endpoints/d7dcc004-808d-452b-8030-3a3a13cd871d"/>
    <payload value="application/fhir+json">
      <extension
                 url="http://hl7.org/fhir/uv/subscriptions-backport/StructureDefinition/backport-payload-content">
        <valueCode value="id-only"/>
      </extension>
    </payload>
  </channel>
</Subscription>