DSTU2

This page is part of the FHIR Specification (v1.0.2: DSTU 2). 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.json

Raw JSON (canonical form)

Example of subscription in error status

{
  "resourceType": "Subscription",
  "id": "example-error",
  "text": {
    "status": "generated",
    "div": "<div>[Put rendering here]</div>"
  },
  "criteria": "Observation?code=http://loinc.org|1975-2",
  "contact": [
    {
      "system": "phone",
      "value": "ext 4123"
    }
  ],
  "reason": "Monitor new neonatal function",
  "status": "error",
  "_status": {
    "fhir_comments": [
      "  server has moved the subscription to status error. \n    the server can bring it back to like if it tries later  "
    ]
  },
  "error": "Socket Error 10060 - can't connect to host",
  "channel": {
    "type": "rest-hook",
    "endpoint": "https://biliwatch.com/customers/mount-auburn-miu/on-result",
    "payload": "application/json",
    "header": "Authorization: Bearer secret-token-abc-123"
  },
  "end": "2021-01-01T00:00:00Z",
  "tag": [
    {
      "system": "http://example.org/fhir/cs/internal",
      "code": "bili-done"
    }
  ]
}

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.