This page is part of the FHIR Specification (v0.0.82: DSTU 1). 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: R5 R4B R4 R3 R2

6.15.9 Resource Subscription - Examples

Example Index:

Example of subscriptionXMLJSON

6.15.9.1 General

XML

Example of subscription (id = "example")

Raw XML

<Subscription xmlns="http://hl7.org/fhir">
  <id value="example"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
  </text>
  <criteria value="/Observation?name=http://loinc.org|1975-2"/>
  <reason value="Monitor new neonatal function"/>
  <status value="requested"/>
  <channel>
    <type value="rest-hook"/>
    <endpoint value="https://biliwatch.com/customers/mount-auburn-miu/on-result"/>
    <payload value="application/json"/>
    <header value="Authorization: Bearer secret-token-abc-123"/>
  </channel>
</Subscription>

JSON

Example of subscription

Raw JSON (Canonical)

{
  "resourceType": "Subscription",
  "id": "example",
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "criteria": "/Observation?name=http://loinc.org|1975-2",
  "reason": "Monitor new neonatal function",
  "status": "requested",
  "channel": {
    "type": "rest-hook",
    "endpoint": "https://biliwatch.com/customers/mount-auburn-miu/on-result",
    "payload": "application/json",
    "header": "Authorization: Bearer secret-token-abc-123"
  }
}

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.