|
Reference
|
|
Definition
|
A
reference
from
one
resource
to
another.
A reference from one resource to another.
|
|
Control
|
1..1
|
|
Summary
|
true
|
|
Invariants
|
Defined
on
this
element
Defined on this element
ref-1
:
SHALL
have
a
local
reference
if
the
resource
is
provided
inline
(xpath:
not(starts-with(f:reference/@value,
'#'))
or
exists(ancestor::*[self::f:entry
or
self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value,
'#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value,
'#')]))
: SHALL have a local reference if the resource is provided inline (
expression
: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids')), xpath: not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]))
|
|
Reference.reference
|
|
Definition
|
A
reference
to
a
location
at
which
the
other
resource
is
found.
The
reference
may
be
a
relative
reference,
in
which
case
it
is
relative
to
the
service
base
URL,
or
an
absolute
URL
that
resolves
to
the
location
where
the
resource
is
found.
The
reference
may
be
version
specific
or
not.
If
the
reference
is
not
to
a
FHIR
RESTful
server,
then
it
should
be
assumed
to
be
version
specific.
Internal
fragment
references
(start
with
'#')
refer
to
contained
resources.
A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.
|
|
Control
|
0..1
|
|
Type
|
string
|
|
Summary
|
true
|
|
Comments
|
Using
absolute
URLs
provides
a
stable
scalable
approach
suitable
for
a
cloud/web
context,
while
using
relative/logical
references
provides
a
flexible
approach
suitable
for
use
when
trading
across
closed
eco-system
boundaries.
Absolute
URLs
do
not
need
to
point
to
a
FHIR
RESTful
server,
though
this
is
the
preferred
approach.
If
the
URL
conforms
to
the
structure
"/[type]/[id]"
then
it
should
be
assumed
that
the
reference
is
to
a
FHIR
RESTful
server.
Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.
|
|
Invariants
|
Affect
this
element
Affect this element
ref-1
:
SHALL
have
a
local
reference
if
the
resource
is
provided
inline
(xpath:
not(starts-with(f:reference/@value,
'#'))
or
exists(ancestor::*[self::f:entry
or
self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value,
'#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value,
'#')]))
: SHALL have a local reference if the resource is provided inline (
expression
: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids')), xpath: not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]))
|
|
Reference.display
|
|
Definition
|
Plain
text
narrative
that
identifies
the
resource
in
addition
to
the
resource
reference.
Plain text narrative that identifies the resource in addition to the resource reference.
|
|
Control
|
0..1
|
|
Type
|
string
|
|
Summary
|
true
|
|
Comments
|
This
is
generally
not
the
same
as
the
Resource.text
of
the
referenced
resource.
The
purpose
is
to
identify
what's
being
referenced,
not
to
fully
describe
it.
©
HL7.org
2011+.
FHIR
DSTU2
(v1.0.2-7202)
generated
on
Sat,
Oct
24,
2015
07:44+1100.
Links:
Search
This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.
|
|
Version
History
|
Table
of
Contents
|
Compare
to
DSTU1