Release 4B

This page is part of the FHIR Specification (v4.3.0: R4B - STU). 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/AStandards Status: InformativeCompartments: Not linked to any defined compartments

Raw Turtle (+ also see Turtle/RDF Format Specification)

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
     ]
  ] .

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

<http://hl7.org/fhir/Subscription/example-error.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://build.fhir.org/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.