PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
PREFIX rdf:
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# Definition of a Medication
EXTENDS @ CLOSED {
a [fhir:Medication]?;
fhir:nodeRole [fhir:treeRoot]?;
fhir:identifier @?; # Business identifier for this
# medication
fhir:code @?; # Codes that identify this medication
fhir:status @ AND
{fhir:v @fhirvs:medication-status}?; # active | inactive |
# entered-in-error
fhir:marketingAuthorizationHolder @ AND {fhir:link
@ ? }?; # Organization that has
# authorization to market medication
fhir:doseForm @?; # powder | tablets | capsule +
fhir:totalVolume @?; # When the specified product code
# does not infer a package size,
# this is the specific amount of
# drug in the product
fhir:ingredient @?; # Active or inactive ingredient
fhir:batch @?; # Details about packaged medications
fhir:definition @ AND {fhir:link
@ ? }?; # Knowledge about this medication
}
# Active or inactive ingredient
EXTENDS @ CLOSED {
fhir:item @; # The ingredient (substance or
# medication) that the
# ingredient.strength relates to
fhir:isActive @?; # Active ingredient indicator
fhir:strength @ OR
@ OR
@ ?; # Quantity of ingredient present
}
# Details about packaged medications
EXTENDS @ CLOSED {
fhir:lotNumber @?; # Identifier assigned to batch
fhir:expirationDate @?; # When batch will expire
}
#---------------------- Cardinality Types (OneOrMore) -------------------
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
#---------------------- Value Sets ------------------------
# Medication Status Codes
fhirvs:medication-status ["active" "inactive" "entered-in-error"]