FHIR Release 3 (STU)

This page is part of the FHIR Specification (v3.0.2: STU 3). 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

Subscription-example-error.ttl

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

Raw Turtle, JSON-LD

Example of subscription in error status

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/Subscription/example-error> a fhir:Subscription;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "example-error"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">[Put rendering here]</div>"
  ];
  fhir:Subscription.status [ fhir:value "error"];
  fhir:Subscription.contact [
     fhir:index 0;
     fhir:ContactPoint.system [ fhir:value "phone" ];
     fhir:ContactPoint.value [ fhir:value "ext 4123" ]
  ];
  fhir:Subscription.end [ fhir:value "2021-01-01T00:00:00Z"^^xsd:dateTime];
  fhir:Subscription.reason [ fhir:value "Monitor new neonatal function"];
  fhir:Subscription.criteria [ fhir:value "Observation?code=http://loinc.org|1975-2"];
  fhir:Subscription.error [ fhir:value "Socket Error 10060 - can't connect to host"];
  fhir:Subscription.channel [
     fhir:Subscription.channel.type [ fhir:value "rest-hook" ];
     fhir:Subscription.channel.endpoint [ fhir:value "https://biliwatch.com/customers/mount-auburn-miu/on-result" ];
     fhir:Subscription.channel.payload [ fhir:value "application/fhir+json" ];
     fhir:Subscription.channel.header [
       fhir:value "Authorization: Bearer secret-token-abc-123";
       fhir:index 0
     ]
  ];
  fhir:Subscription.tag [
     fhir:index 0;
     fhir:Coding.system [ fhir:value "http://example.org/fhir/cs/internal" ];
     fhir:Coding.code [ fhir:value "bili-done" ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/Subscription/example-error.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://hl7.org/fhir/STU3/Subscription/example-error.ttl> .

# -------------------------------------------------------------------------------------


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.