PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
PREFIX rdf:
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# A homogeneous material with a definite composition
EXTENDS @ CLOSED {
a [fhir:Substance]?;
fhir:nodeRole [fhir:treeRoot]?;
fhir:identifier @?; # Unique identifier
fhir:instance @; # Is this an instance of a substance
# or a kind of one
fhir:status @ AND
{fhir:v @fhirvs:substance-status}?; # active | inactive |
# entered-in-error
fhir:category @?; # What class/type of substance this
# is
fhir:code @; # What substance this is
fhir:description @?; # Textual description of the
# substance, comments
fhir:expiry @?; # When no longer valid to use
fhir:quantity @?; # Amount of substance in the package
fhir:ingredient @?; # Composition information about the
# substance
}
# Composition information about the substance
EXTENDS @ CLOSED {
fhir:quantity @?; # Optional amount (concentration)
fhir:substance @ OR
(@ AND {fhir:link @ }) ; # A component of the substance
}
#---------------------- Cardinality Types (OneOrMore) -------------------
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
#---------------------- Value Sets ------------------------
# A code to indicate if the substance is actively used.
fhirvs:substance-status ["active" "inactive" "entered-in-error"]