Release 5 Preview #3

This page is part of the FHIR Specification (v4.5.0: R5 Preview #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: R5 R4B

Subscriptiontopic-example-admission.ttl

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

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

Beginning of clinical encounter

@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/SubscriptionTopic/admission> a fhir:SubscriptionTopic;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "admission"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>id</b>: admission</p><p><b>url</b>: <a>http://argonautproject.org/subscription-ig/SubscriptionTopic/admission</a></p><p><b>title</b>: admission</p><p><b>status</b>: active</p><blockquote><p><b>resourceTrigger</b></p><p><b>description</b>: Beginning of a clinical encounter</p><p><b>resourceType</b>: Encounter</p><h3>QueryCriteria</h3><table><tr><td>-</td><td><b>Previous</b></td><td><b>Current</b></td><td><b>RequireBoth</b></td></tr><tr><td>*</td><td>status:not=in-progress</td><td>status=in-progress</td><td>true</td></tr></table><p><b>fhirPathCriteria</b>: %previous.status!='in-progress' and %current.status='in-progress'</p></blockquote><h3>CanFilterBies</h3><table><tr><td>-</td><td><b>SearchParamName</b></td><td><b>SearchModifier</b></td><td><b>Documentation</b></td></tr><tr><td>*</td><td>patient</td><td>=</td><td>Matching based on the Patient (subject) of an Encounter or based on the Patient's group membership (in/not-in).</td></tr></table></div>"
  ];
  fhir:SubscriptionTopic.url [ fhir:value "http://argonautproject.org/subscription-ig/SubscriptionTopic/admission"];
  fhir:SubscriptionTopic.title [ fhir:value "admission"];
  fhir:SubscriptionTopic.status [ fhir:value "active"];
  fhir:SubscriptionTopic.resourceTrigger [
     fhir:SubscriptionTopic.resourceTrigger.description [ fhir:value "Beginning of a clinical encounter" ];
     fhir:SubscriptionTopic.resourceTrigger.resourceType [
       fhir:value "Encounter";
       fhir:index 0
     ];
     fhir:SubscriptionTopic.resourceTrigger.queryCriteria [
       fhir:SubscriptionTopic.resourceTrigger.queryCriteria.previous [ fhir:value "status:not=in-progress" ];
       fhir:SubscriptionTopic.resourceTrigger.queryCriteria.current [ fhir:value "status=in-progress" ];
       fhir:SubscriptionTopic.resourceTrigger.queryCriteria.requireBoth [ fhir:value "true"^^xsd:boolean ]
     ];
     fhir:SubscriptionTopic.resourceTrigger.fhirPathCriteria [
       fhir:value "%previous.status!='in-progress' and %current.status='in-progress'";
       fhir:index 0
     ]
  ];
  fhir:SubscriptionTopic.canFilterBy [
     fhir:index 0;
     fhir:SubscriptionTopic.canFilterBy.searchParamName [ fhir:value "patient" ];
     fhir:SubscriptionTopic.canFilterBy.searchModifier [
       fhir:value "=";
       fhir:index 0
     ], [
       fhir:value "in";
       fhir:index 1
     ], [
       fhir:value "not-in";
       fhir:index 2
     ];
     fhir:SubscriptionTopic.canFilterBy.documentation [ fhir:value "Matching based on the Patient (subject) of an Encounter or based on the Patient's group membership (in/not-in)." ]
  ] .

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

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