PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
BASE
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# An ingredient of a manufactured item or pharmaceutical product
CLOSED {
a [fhir:Ingredient];
fhir:nodeRole [fhir:treeRoot]?;
fhir:Resource.id id?; # Logical id of this artifact
fhir:Resource.meta @?; # Metadata about the resource
fhir:Resource.implicitRules @?; # A set of rules under which this
# content was created
fhir:Resource.language @?; # Language of the resource content
fhir:DomainResource.text @?; # Text summary of the resource, for
# human interpretation
fhir:DomainResource.contained @*; # Contained, inline Resources
fhir:DomainResource.extension @*; # Additional content defined by
# implementations
fhir:DomainResource.modifierExtension @*; # Extensions that cannot be ignored
fhir:Ingredient.identifier @?; # An identifier or code by which the
# ingredient can be referenced
fhir:Ingredient.status @ AND
{fhir:value @fhirvs:publication-status}; # draft | active | retired | unknown
fhir:Ingredient.for @*; # The product which this ingredient
# is a constituent part of
fhir:Ingredient.role @; # Purpose of the ingredient within
# the product, e.g. active, inactive
fhir:Ingredient.function @*; # Precise action within the drug
# product, e.g. antioxidant,
# alkalizing agent
fhir:Ingredient.allergenicIndicator @?; # If the ingredient is a known or
# suspected allergen
fhir:Ingredient.manufacturer @*; # An organization that manufactures
# this ingredient
fhir:Ingredient.substance @; # The substance that comprises this
# ingredient
fhir:index xsd:integer? # Relative position in a list
}
# The substance that comprises this ingredient
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:Ingredient.substance.code @; # A code or full resource that
# represents the ingredient
# substance
fhir:Ingredient.substance.strength @*; # The quantity of substance, per
# presentation, or per volume or
# mass, and type of quantity
fhir:index xsd:integer? # Relative position in a list
}
# An organization that manufactures this ingredient
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:Ingredient.manufacturer.role @ AND
{fhir:value @fhirvs:ingredient-manufacturer-role}?; # allowed | possible | actual
fhir:Ingredient.manufacturer.manufacturer @; # An organization that manufactures
# this ingredient
fhir:index xsd:integer? # Relative position in a list
}
# The quantity of substance, per presentation, or per volume or mass, and type of quantity
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
( # The quantity of substance in the
# unit of presentation
fhir:Ingredient.substance.strength.presentationRatio @ |
fhir:Ingredient.substance.strength.presentationRatioRange @
)?;
fhir:Ingredient.substance.strength.textPresentation @?; # Text of either the whole
# presentation strength or a part of
# it (rest being in
# Strength.presentation as a ratio)
( # The strength per unitary volume
# (or mass)
fhir:Ingredient.substance.strength.concentrationRatio @ |
fhir:Ingredient.substance.strength.concentrationRatioRange @
)?;
fhir:Ingredient.substance.strength.textConcentration @?; # Text of either the whole
# concentration strength or a part
# of it (rest being in
# Strength.concentration as a ratio)
fhir:Ingredient.substance.strength.measurementPoint @?; # When strength is measured at a
# particular point or distance
fhir:Ingredient.substance.strength.country @*; # Where the strength range applies
fhir:Ingredient.substance.strength.referenceStrength @*; # Strength expressed in terms of a
# reference substance
fhir:index xsd:integer? # Relative position in a list
}
# Strength expressed in terms of a reference substance
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:Ingredient.substance.strength.referenceStrength.substance @?; # Relevant reference substance
( # Strength expressed in terms of a
# reference substance
fhir:Ingredient.substance.strength.referenceStrength.strengthRatio @ |
fhir:Ingredient.substance.strength.referenceStrength.strengthRatioRange @
);
fhir:Ingredient.substance.strength.referenceStrength.measurementPoint @?; # When strength is measured at a
# particular point or distance
fhir:Ingredient.substance.strength.referenceStrength.country @*; # Where the strength range applies
fhir:index xsd:integer? # Relative position in a list
}
#---------------------- Data Types -------------------
# Metadata about a resource
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Meta.versionId @?; # Version specific identifier
fhir:Meta.lastUpdated @?; # When the resource version last
# changed
fhir:Meta.source @?; # Identifies where the resource
# comes from
fhir:Meta.profile @*; # Profiles this resource claims to
# conform to
fhir:Meta.security @*; # Security Labels applied to this
# resource
fhir:Meta.tag @*; # Tags applied to this resource
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type code
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value code?; # Primitive value for code
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type string
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value string MAXLENGTH 1048576?; # Primitive value for string
fhir:index xsd:integer? # Relative position in a list
}
# A reference from one resource to another
CLOSED {
fhir:link IRI?;
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Reference.reference @?; # Literal reference, Relative,
# internal or absolute URL
fhir:Reference.type @?; # Type the reference refers to (e.g.
# "Patient")
fhir:Reference.identifier @?; # Logical reference, when literal
# reference is not known
fhir:Reference.display @?; # Text alternative for the resource
fhir:index xsd:integer? # Relative position in a list
}
# Base Resource
{a .+;
fhir:Resource.id id?; # Logical id of this artifact
fhir:Resource.meta @?; # Metadata about the resource
fhir:Resource.implicitRules @?; # A set of rules under which this
# content was created
fhir:Resource.language @?; # Language of the resource content
fhir:index xsd:integer?
}
# Primitive Type uri
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value uri?; # Primitive value for uri
fhir:index xsd:integer? # Relative position in a list
}
# Optional Extensions Element
CLOSED {
fhir:Element.id id?;
fhir:Element.extension @*;
fhir:Extension.url uri;
(
fhir:Extension.valueBase64Binary @ |
fhir:Extension.valueBoolean @ |
fhir:Extension.valueCanonical @ |
fhir:Extension.valueCode @ |
fhir:Extension.valueDate @ |
fhir:Extension.valueDateTime @ |
fhir:Extension.valueDecimal @ |
fhir:Extension.valueId @ |
fhir:Extension.valueInstant @ |
fhir:Extension.valueInteger @ |
fhir:Extension.valueMarkdown @ |
fhir:Extension.valueOid @ |
fhir:Extension.valuePositiveInt @ |
fhir:Extension.valueString @ |
fhir:Extension.valueTime @