STU 3 Ballot

This page is part of the FHIR Specification (v1.6.0: STU 3 Ballot 4). 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

Subscription-example.ttl

Raw Turtle, JSON-LD

Example Subscription

@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> a fhir:Subscription;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "example"];
  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.criteria [ fhir:value "Observation?code=http://loinc.org|1975-2"];
  fhir:Subscription.contact [
     fhir:index 0;
     fhir:ContactPoint.system [ fhir:value "phone" ];
     fhir:ContactPoint.value [ fhir:value "ext 4123" ]
  ];
  fhir:Subscription.reason [ fhir:value "Monitor new neonatal function"];
  fhir:Subscription.status [ fhir:value "requested"];
  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:Subscription.end [ fhir:value "2021-01-01T00:00:00Z"^^xsd:dateTime];
  fhir:Subscription.tag [
     fhir:index 0;
     fhir:Coding.system [ fhir:value "http://example.org/fhir/cs/internal" ];
     fhir:Coding.code [ fhir:value "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.