Foundation
This
page
is
part
of
the
FHIR
Specification
(v5.0.0:
R5
-
STU
v6.0.0-ballot1:
Release
6
Ballot
(1st
Draft)
(see
Ballot
Notes
).
This
is
the
The
current
published
version
in
it's
permanent
home
(it
will
always
be
available
at
this
URL).
is
5.0.0
.
For
a
full
list
of
available
versions,
see
the
Directory
of
published
versions
.
Page
versions:
R5
R4B
R4
R3
| Biomedical Research and Regulation Work Group | Maturity Level : N/A | Standards Status : Informative | Compartments : No defined compartments |
ShEx statement for substance
PREFIX fhir: <http://hl7.org/fhir/> PREFIX fhirvs: <http://hl7.org/fhir/ValueSet/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> IMPORT <code.shex> IMPORT <Ratio.shex> IMPORT <boolean.shex> IMPORT <markdown.shex> IMPORT <dateTime.shex> IMPORT <Quantity.shex> IMPORT <Reference.shex> IMPORT <Identifier.shex> IMPORT <DomainResource.shex> IMPORT <CodeableConcept.shex> IMPORT <BackboneElement.shex> IMPORT <CodeableReference.shex> start=@<Substance> AND {fhir:nodeRole [fhir:treeRoot]} # A homogeneous material with a definite composition <Substance> EXTENDS @<DomainResource> CLOSED { a [fhir:Substance]?; fhir:nodeRole [fhir:treeRoot]?; fhir:identifier @<OneOrMore_Identifier>?; # Unique identifier fhir:instance @<boolean>; # Is this an instance of a substance # or a kind of one fhir:status @<code> AND {fhir:v @fhirvs:substance-status}?; # active | inactive | # entered-in-error fhir:category @<OneOrMore_CodeableConcept>?; # What class/type of substance this # is fhir:code @<CodeableReference>; # What substance this is fhir:description @<markdown>?; # Textual description of the # substance, comments fhir:expiry @<dateTime>?; # When no longer valid to use fhir:quantity @<Quantity>?; # Amount of substance in the package fhir:ingredient @<OneOrMore_Substance.ingredient>?; # Composition information about the # substance } # Composition information about the substance <Substance.ingredient> EXTENDS @<BackboneElement> CLOSED { fhir:quantity @<Ratio>?; # Optional amount (concentration) fhir:substance @<CodeableConcept> OR (@<Reference> AND {fhir:link @<Substance> }) ; # A component of the substance } #---------------------- Cardinality Types (OneOrMore) ------------------- <OneOrMore_Identifier> CLOSED { rdf:first @<Identifier> ; rdf:rest [rdf:nil] OR @<OneOrMore_Identifier> } <OneOrMore_CodeableConcept> CLOSED { rdf:first @<CodeableConcept> ; rdf:rest [rdf:nil] OR @<OneOrMore_CodeableConcept> } <OneOrMore_Substance.ingredient> CLOSED { rdf:first @<Substance.ingredient> ; rdf:rest [rdf:nil] OR @<OneOrMore_Substance.ingredient> } #---------------------- Value Sets ------------------------ # A code to indicate if the substance is actively used. fhirvs:substance-status ["active" "inactive" "entered-in-error"]PREFIX fhir: <http://hl7.org/fhir/> PREFIX fhirvs: <http://hl7.org/fhir/ValueSet/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> IMPORT <code.shex> IMPORT <Ratio.shex> IMPORT <boolean.shex> IMPORT <markdown.shex> IMPORT <dateTime.shex> IMPORT <Quantity.shex> IMPORT <Reference.shex> IMPORT <Identifier.shex> IMPORT <DomainResource.shex> IMPORT <CodeableConcept.shex> IMPORT <BackboneElement.shex> IMPORT <CodeableReference.shex> start=@<Substance> AND {fhir:nodeRole [fhir:treeRoot]} # A homogeneous material with a definite composition <Substance> EXTENDS @<DomainResource> CLOSED { a [fhir:Substance]?; fhir:nodeRole [fhir:treeRoot]?; fhir:identifier @<OneOrMore_Identifier>?; # Unique identifier fhir:instance @<boolean>; # Is this an instance of a substance # or a kind of one fhir:status @<code> AND {fhir:v @fhirvs:substance-status}?; # active | inactive | # entered-in-error fhir:category @<OneOrMore_CodeableConcept>?; # What class/type of substance this # is fhir:code @<CodeableReference>; # What substance this is fhir:description @<markdown>?; # Textual description of the # substance, comments fhir:expiry @<dateTime>?; # When no longer valid to use fhir:quantity @<Quantity>?; # Amount of substance in the package fhir:ingredient @<OneOrMore_Substance.ingredient>?; # Composition information about the # substance } # Composition information about the substance <Substance.ingredient> EXTENDS @<BackboneElement> CLOSED { fhir:quantity @<Ratio>?; # Optional amount (concentration) fhir:substance @<CodeableConcept> OR (@<Reference> AND {fhir:link @<Substance> }) ; # A component of the substance } #---------------------- Cardinality Types (OneOrMore) ------------------- <OneOrMore_Identifier> CLOSED { rdf:first @<Identifier> ; rdf:rest [rdf:nil] OR @<OneOrMore_Identifier> } <OneOrMore_CodeableConcept> CLOSED { rdf:first @<CodeableConcept> ; rdf:rest [rdf:nil] OR @<OneOrMore_CodeableConcept> } <OneOrMore_Substance.ingredient> CLOSED { rdf:first @<Substance.ingredient> ; rdf:rest [rdf:nil] OR @<OneOrMore_Substance.ingredient> } #---------------------- Value Sets ------------------------ # A code to indicate if the substance is actively used. fhirvs:substance-status ["active" "inactive" "entered-in-error"]
Usage note: every effort has been made to ensure that the ShEx files are correct and useful, but they are not a normative part of the specification.
FHIR
®©
HL7.org
2011+.
FHIR
R5
hl7.fhir.core#5.0.0
R6
hl7.fhir.core#6.0.0-ballot1
generated
on
Sun,
Mar
26,
Mon,
Dec
18,
2023
15:26+1100.
15:18+1100.
Links:
Search
|
Version
History
|
Contents
|
Glossary
|
QA
|
Compare
to
R4
|
Compare
to
R4B
R5
|
|
Propose
a
change