Implementation Guide
23.1.0 - R4 APIs

Publish Box goes here

: General Subscription Example - TTL Representation

Raw ttl | Download


@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 -------------------------------------------------------------------

 a fhir:Subscription ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "Example1"] ; # 
  fhir:meta [
fhir:lastUpdated [ fhir:v "2021-01-13T23:32:50.053+00:00"^^xsd:dateTime ]
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n			<table width=\"100%\">\n				<tbody>\n					<tr>\n						<td width=\"25%\">\n							<span class=\"text-muted\">Notification_Message</span>\n						</td>\n						<td width=\"8%\">\n							<span class=\"text-muted\">2040/01/25</span>\n						</td>\n					</tr>\n				</tbody>\n			</table>\n		</div>"
  ] ; # 
  fhir:extension ( [
fhir:url [ fhir:v "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-subscription-extension-owner"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Practitioner/Example1" ]     ]
  ] [
fhir:url [ fhir:v "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-subscription-extension-source-id"^^xsd:anyURI ] ;
fhir:value [ fhir:v "sourceid" ]
  ] [
fhir:url [ fhir:v "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-subscription-extension-source-name"^^xsd:anyURI ] ;
fhir:value [ fhir:v "sourcename" ]
  ] ) ; # 
  fhir:status [
fhir:v "active" ;
    ( fhir:extension [
fhir:url [ fhir:v "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-originalCode"^^xsd:anyURI ] ;
fhir:value [
a fhir:Coding ;
fhir:system [ fhir:v "https://docs.mydata.athenahealth.com/fhir-r4/athenaFlex/codesystem/subscription_status"^^xsd:anyURI ] ;
fhir:code [ fhir:v "ACTIVE" ] ;
fhir:display [ fhir:v "Active" ]       ]     ] )
  ] ; # 
  fhir:contact ( [
fhir:system [ fhir:v "phone" ] ;
fhir:value [ fhir:v "123456789" ]
  ] [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "test@test.com" ]
  ] ) ; # 
  fhir:end [ fhir:v "2040-01-25T10:10:10.000+00:00"^^xsd:dateTime] ; # 
  fhir:reason [ fhir:v "Test From FHIR server"] ; # 
  fhir:criteria [ fhir:v "Patient?_id=123456"] ; # 
  fhir:channel [
fhir:type [
fhir:v "rest-hook" ;
      ( fhir:extension [
fhir:url [ fhir:v "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-originalCode"^^xsd:anyURI ] ;
fhir:value [
a fhir:Coding ;
fhir:system [ fhir:v "https://docs.mydata.athenahealth.com/fhir-r4/athenaFlex/codesystem/subscription_channel_type"^^xsd:anyURI ] ;
fhir:code [ fhir:v "rest-hook" ] ;
fhir:display [ fhir:v "Rest Hook" ]         ]       ] )     ] ;
fhir:endpoint [ fhir:v "http://10.218.11.115:8080"^^xsd:anyURI ] ;
    ( fhir:header [ fhir:v "Notification_Message" ] )
  ] . #