Release 4B Snapshot #1

This page is part of the FHIR Specification (v4.3.0-snapshot1: Release 4B Snapshot #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

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><div><p>Resource &quot;admission&quot; </p></div><p><b>url</b>: <code>http://example.org/FHIR/R4/SubscriptionTopic/admission</code></p><p><b>title</b>: admission</p><p><b>status</b>: active</p><p><b>description</b>: Example admission topic</p><blockquote><p><b>resourceTrigger</b></p><p><b>description</b>: Encounter resource moving to state 'in-progress'</p><p><b>resource</b>: <a>http://hl7.org/fhir/StructureDefinition/Encounter</a></p><p><b>supportedInteraction</b>: create, update</p><h3>QueryCriteria</h3><table><tr><td>-</td><td><b>Previous</b></td><td><b>ResultForCreate</b></td><td><b>Current</b></td><td><b>ResultForDelete</b></td><td><b>RequireBoth</b></td></tr><tr><td>*</td><td>status:not=in-progress</td><td>test-passes</td><td>status=in-progress</td><td>test-fails</td><td>true</td></tr></table><p><b>fhirPathCriteria</b>: %previous.status!='in-progress' and %current.status='in-progress'</p></blockquote><h3>EventTriggers</h3><table><tr><td>-</td><td><b>Description</b></td><td><b>Event</b></td><td><b>Resource</b></td></tr><tr><td>*</td><td>Patient admission is covered by HL7v2 ADT^A01</td><td>ADT/ACK - Admit/visit notification <span> (<a>eventType</a>#A01)</span></td><td><a>http://hl7.org/fhir/StructureDefinition/Encounter</a></td></tr></table><h3>CanFilterBies</h3><table><tr><td>-</td><td><b>Description</b></td><td><b>Resource</b></td><td><b>FilterParameter</b></td><td><b>Modifier</b></td></tr><tr><td>*</td><td>Matching based on the Patient (subject) of an Encounter or based on the Patient's group membership (in/not-in).</td><td><code>Encounter</code></td><td>patient</td><td>=, in, not-in</td></tr></table><h3>NotificationShapes</h3><table><tr><td>-</td><td><b>Resource</b></td><td><b>Include</b></td></tr><tr><td>*</td><td><code>Encounter</code></td><td>Encounter:patient, Encounter:practitioner, Encounter:service-provider, Encounter:account, Encounter:diagnosis, Encounter:observation, Encounter:location</td></tr></table></div>"
  ];
  fhir:SubscriptionTopic.url [ fhir:value "http://example.org/FHIR/R4/SubscriptionTopic/admission"];
  fhir:SubscriptionTopic.title [ fhir:value "admission"];
  fhir:SubscriptionTopic.status [ fhir:value "active"];
  fhir:SubscriptionTopic.description [ fhir:value "Example admission topic"];
  fhir:SubscriptionTopic.resourceTrigger [
     fhir:index 0;
     fhir:SubscriptionTopic.resourceTrigger.description [ fhir:value "Encounter resource moving to state 'in-progress'" ];
     fhir:SubscriptionTopic.resourceTrigger.resource [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ];
     fhir:SubscriptionTopic.resourceTrigger.supportedInteraction [
       fhir:value "create";
       fhir:index 0
     ], [
       fhir:value "update";
       fhir:index 1
     ];
     fhir:SubscriptionTopic.resourceTrigger.queryCriteria [
       fhir:SubscriptionTopic.resourceTrigger.queryCriteria.previous [ fhir:value "status:not=in-progress" ];
       fhir:SubscriptionTopic.resourceTrigger.queryCriteria.resultForCreate [ fhir:value "test-passes" ];
       fhir:SubscriptionTopic.resourceTrigger.queryCriteria.current [ fhir:value "status=in-progress" ];
       fhir:SubscriptionTopic.resourceTrigger.queryCriteria.resultForDelete [ fhir:value "test-fails" ];
       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:SubscriptionTopic.eventTrigger [
     fhir:index 0;
     fhir:SubscriptionTopic.eventTrigger.description [ fhir:value "Patient admission is covered by HL7v2 ADT^A01" ];
     fhir:SubscriptionTopic.eventTrigger.event [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0003" ];
         fhir:Coding.code [ fhir:value "A01" ];
         fhir:Coding.display [ fhir:value "ADT/ACK - Admit/visit notification" ]
       ]
     ];
     fhir:SubscriptionTopic.eventTrigger.resource [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ]
  ];
  fhir:SubscriptionTopic.canFilterBy [
     fhir:index 0;
     fhir:SubscriptionTopic.canFilterBy.description [ fhir:value "Matching based on the Patient (subject) of an Encounter or based on the Patient's group membership (in/not-in)." ];
     fhir:SubscriptionTopic.canFilterBy.resource [ fhir:value "Encounter" ];
     fhir:SubscriptionTopic.canFilterBy.filterParameter [ fhir:value "patient" ];
     fhir:SubscriptionTopic.canFilterBy.modifier [
       fhir:value "=";
       fhir:index 0
     ], [
       fhir:value "in";
       fhir:index 1
     ], [
       fhir:value "not-in";
       fhir:index 2
     ]
  ];
  fhir:SubscriptionTopic.notificationShape [
     fhir:index 0;
     fhir:SubscriptionTopic.notificationShape.resource [ fhir:value "Encounter" ];
     fhir:SubscriptionTopic.notificationShape.include [
       fhir:value "Encounter:patient";
       fhir:index 0
     ], [
       fhir:value "Encounter:practitioner";
       fhir:index 1
     ], [
       fhir:value "Encounter:service-provider";
       fhir:index 2
     ], [
       fhir:value "Encounter:account";
       fhir:index 3
     ], [
       fhir:value "Encounter:diagnosis";
       fhir:index 4
     ], [
       fhir:value "Encounter:observation";
       fhir:index 5
     ], [
       fhir:value "Encounter:location";
       fhir:index 6
     ]
  ] .

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