This
page
is
part
of
the
FHIR
Specification
(v4.0.1:
R4
(v5.0.0:
R5
-
Mixed
Normative
and
STU
)
).
This
is
the
current
published
version
in
it's
permanent
home
(it
will
always
be
available
at
this
URL).
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
Example
Subscription/example
(Turtle)
Raw
Turtle
(+
also
see
Turtle/RDF
Format
Specification
)
Example
Subscription
of
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
]
] .
# - 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> .
[a fhir:Subscription ;
fhir:nodeRole fhir:treeRoot ;
fhir:id [ fhir:v "example"] ; #
fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Subscription</b><a name=\"example\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource Subscription "example" </p></div><p><b>identifier</b>: id: urn:uuid:97e5aa1e-5916-4512-a36e-24eef784e3cc</p><p><b>name</b>: Example</p><p><b>status</b>: active</p><p><b>topic</b>: <a href=\"http://example.org/R5/SubscriptionTopic/example\">http://example.org/R5/SubscriptionTopic/example</a></p><p><b>contact</b>: ph: (555) 555-1212(WORK)</p><p><b>reason</b>: Example subscription for example topic</p><h3>FilterBies</h3><table class=\"grid\"><tr><td>-</td><td><b>ResourceType</b></td><td><b>FilterParameter</b></td><td><b>Value</b></td></tr><tr><td>*</td><td><a href=\"encounter.html\">Encounter</a></td><td>patient</td><td>Patient/123</td></tr></table><p><b>channelType</b>: rest-hook (Details: [not stated] code rest-hook = 'rest-hook', stated as 'null')</p></div>"
] ; #
fhir:identifier ( [
fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
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:link <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:resourceType [ fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ] ;
fhir:filterParameter [ fhir:v "patient" ] ;
fhir:value [ fhir:v "Patient/123" ]
] ) ; #
fhir:channelType [
fhir:code [ fhir:v "rest-hook" ]
]] . #
# -------------------------------------------------------------------------------------
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.