@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@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:id [ fhir:v "example"] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
       fhir:l <urn:ietf:rfc:3986>
     ] ;
     fhir:value [ fhir:v "urn:uuid:97e5aa1e-5916-4512-a36e-24eef784e3cc" ]
  ] ) ; # 
  fhir:name [ fhir:v "Example"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:topic [
     fhir:v "http://example.org/R5/SubscriptionTopic/example"^^xsd:anyURI ;
     fhir:l <http://example.org/R5/SubscriptionTopic/example>
  ] ; # 
  fhir:contact ( [
     fhir:system [ fhir:v "phone" ] ;
     fhir:value [ fhir:v "(555) 555-1212" ] ;
     fhir:use [ fhir:v "work" ]
  ] ) ; # 
  fhir:reason [ fhir:v "Example subscription for example topic"] ; # 
  fhir:filterBy ( [
     fhir:resource [
       fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/Encounter>
     ] ;
     fhir:filterParameter [ fhir:v "patient" ] ;
     fhir:value [ fhir:v "Patient/123" ]
  ] ) ; # 
  fhir:channelType [
     fhir:code [ fhir:v "rest-hook" ]
  ] . # 

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

