R4 Draft for Comment

This page is part of the FHIR Specification (v3.2.0: R4 Ballot 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

Subscription-example.ttl

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

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.status [ fhir:value "requested"];
  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.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.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://build.fhir.org/Subscription/example.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.