Implementation Guide
23.1.0 - R4 APIs

Publish Box goes here

: General Subscription Example - XML Representation

Raw xml | Download



<Subscription xmlns="http://hl7.org/fhir">
  <id value="Example1"/>
  <meta>
    <lastUpdated value="2021-01-13T23:32:50.053+00:00"/>
  </meta>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
			<table width="100%">
				<tbody>
					<tr>
						<td width="25%">
							<span class="text-muted">Notification_Message</span>
						</td>
						<td width="8%">
							<span class="text-muted">2040/01/25</span>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
  </text>
  <extension
             url="https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-subscription-extension-owner">
    <valueReference>🔗 
      <reference value="Practitioner/Example1"/>
    </valueReference>
  </extension>
  <extension
             url="https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-subscription-extension-source-id">
    <valueString value="sourceid"/>
  </extension>
  <extension
             url="https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-subscription-extension-source-name">
    <valueString value="sourcename"/>
  </extension>
  <status value="active">
    <extension
               url="https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-originalCode">
      <valueCoding>
        <system
                value="https://docs.mydata.athenahealth.com/fhir-r4/athenaFlex/codesystem/subscription_status"/>
        <code value="ACTIVE"/>
        <display value="Active"/>
      </valueCoding>
    </extension>
  </status>
  <contact>
    <system value="phone"/>
    <value value="123456789"/>
  </contact>
  <contact>
    <system value="email"/>
    <value value="test@test.com"/>
  </contact>
  <end value="2040-01-25T10:10:10.000+00:00"/>
  <reason value="Test From FHIR server"/>
  <criteria value="Patient?_id=123456"/>
  <channel>
    <type value="rest-hook">
      <extension
                 url="https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-originalCode">
        <valueCoding>
          <system
                  value="https://docs.mydata.athenahealth.com/fhir-r4/athenaFlex/codesystem/subscription_channel_type"/>
          <code value="rest-hook"/>
          <display value="Rest Hook"/>
        </valueCoding>
      </extension>
    </type>
    <endpoint value="http://10.218.11.115:8080"/>
    <header value="Notification_Message"/>
  </channel>
</Subscription>