Release 4

This page is part of the FHIR Specification (v4.0.1: R4 - Mixed Normative and STU) in it's permanent home (it will always be available at this URL). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R4B R4 R3 R2

Subscription-example-error.xml

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Not linked to any defined compartments

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

Jump past Narrative

Example of subscription in error status (id = "example-error")

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

<Subscription xmlns="http://hl7.org/fhir">
 <id value="example-error"/> 
  <text> 
    <status value="generated"/> 
    <div xmlns="http://www.w3.org/1999/xhtml">[Put rendering here]</div> 
  </text> 

  <status value="error"/> 
  <contact> 
    <system value="phone"/> 
    <value value="ext 4123"/> 
  </contact> 
  <end value="2021-01-01T00:00:00Z"/> 
  <reason value="Monitor new neonatal function"/> 
  <criteria value="Observation?code=http://loinc.org|1975-2"/> 
  <!--   server has moved the subscription to status error. 
    the server can bring it back to like if it tries later   -->
  <error value="Socket Error 10060 - can't connect to host"/> 
  <channel> 
    <type value="rest-hook"/> 
    <endpoint value="https://biliwatch.com/customers/mount-auburn-miu/on-result"/> 
    <payload value="application/fhir+json"/> 
    <header value="Authorization: Bearer secret-token-abc-123"/> 
  </channel>   
</Subscription> 

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.