PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
BASE
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# A medicinal product in the final form, suitable for administration - after any mixing of multiple components
CLOSED {
a [fhir:AdministrableProductDefinition];
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:AdministrableProductDefinition.identifier @*; # An identifier for the
# administrable product
fhir:AdministrableProductDefinition.status @ AND
{fhir:value @fhirvs:publication-status}; # draft | active | retired | unknown
fhir:AdministrableProductDefinition.formOf @*; # References a product from which
# one or more of the constituent
# parts of that product can be
# prepared and used as described by
# this administrable product
fhir:AdministrableProductDefinition.administrableDoseForm @?; # The dose form of the final product
# after necessary reconstitution or
# processing
fhir:AdministrableProductDefinition.unitOfPresentation @?; # The presentation type in which
# this item is given to a patient.
# e.g. for a spray - 'puff'
fhir:AdministrableProductDefinition.producedFrom @*; # Indicates the specific
# manufactured items that are part
# of the 'formOf' product that are
# used in the preparation of this
# specific administrable form
fhir:AdministrableProductDefinition.ingredient @*; # The ingredients of this
# administrable medicinal product.
# This is only needed if the
# ingredients are not specified
# either using
# ManufacturedItemDefiniton, or
# using by incoming references from
# the Ingredient resource
fhir:AdministrableProductDefinition.device @?; # A device that is integral to the
# medicinal product, in effect being
# considered as an "ingredient" of
# the medicinal product
fhir:AdministrableProductDefinition.property @*; # Characteristics e.g. a product's
# onset of action
fhir:AdministrableProductDefinition.routeOfAdministration @+; # The path by which the product is
# taken into or makes contact with
# the body
fhir:index xsd:integer? # Relative position in a list
}
# Characteristics e.g. a product's onset of action
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:AdministrableProductDefinition.property.type @; # A code expressing the type of
# characteristic
( # A value for the characteristic
fhir:AdministrableProductDefinition.property.valueCodeableConcept @ |
fhir:AdministrableProductDefinition.property.valueQuantity @ |
fhir:AdministrableProductDefinition.property.valueDate @ |
fhir:AdministrableProductDefinition.property.valueBoolean @ |
fhir:AdministrableProductDefinition.property.valueAttachment @
)?;
fhir:AdministrableProductDefinition.property.status @?; # The status of characteristic e.g.
# assigned or pending
fhir:index xsd:integer? # Relative position in a list
}
# The path by which the product is taken into or makes contact with the body
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:AdministrableProductDefinition.routeOfAdministration.code @; # Coded expression for the route
fhir:AdministrableProductDefinition.routeOfAdministration.firstDose @?; # The first dose (dose quantity)
# administered can be specified for
# the product
fhir:AdministrableProductDefinition.routeOfAdministration.maxSingleDose @?; # The maximum single dose that can
# be administered
fhir:AdministrableProductDefinition.routeOfAdministration.maxDosePerDay @?; # The maximum dose quantity to be
# administered in any one 24-h
# period
fhir:AdministrableProductDefinition.routeOfAdministration.maxDosePerTreatmentPeriod @?; # The maximum dose per treatment
# period that can be administered
fhir:AdministrableProductDefinition.routeOfAdministration.maxTreatmentPeriod @?; # The maximum treatment period
# during which the product can be
# administered
fhir:AdministrableProductDefinition.routeOfAdministration.targetSpecies @*; # A species for which this route
# applies
fhir:index xsd:integer? # Relative position in a list
}
# A species for which this route applies
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:AdministrableProductDefinition.routeOfAdministration.targetSpecies.code @; # Coded expression for the species
fhir:AdministrableProductDefinition.routeOfAdministration.targetSpecies.withdrawalPeriod @*; # A species specific time during
# which consumption of animal
# product is not appropriate
fhir:index xsd:integer? # Relative position in a list
}
# A species specific time during which consumption of animal product is not appropriate
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:AdministrableProductDefinition.routeOfAdministration.targetSpecies.withdrawalPeriod.tissue @; # The type of tissue for which the
# withdrawal period applies, e.g.
# meat, milk
fhir:AdministrableProductDefinition.routeOfAdministration.targetSpecies.withdrawalPeriod.value @; # A value for the time
fhir:AdministrableProductDefinition.routeOfAdministration.targetSpecies.withdrawalPeriod.supportingInformation @?; # Extra information about the
# withdrawal period
fhir:index xsd:integer? # Relative position in a list
}
#---------------------- Data Types -------------------
# Primitive Type date
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value date?; # Primitive value for date
fhir:index xsd:integer? # Relative position in a list
}
# 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?
}
# A measured or measurable amount
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Quantity.value @?; # Numerical value (with implicit
# precision)
fhir:Quantity.comparator @ AND
{fhir:value @fhirvs:quantity-comparator}?; # < | <= | >= | > - how to
# understand the value
fhir:Quantity.unit @?; # Unit representation
fhir:Quantity.system @?; # System that defines coded unit form
fhir:Quantity.code @?; # Coded form of the unit
fhir:index xsd:integer? # Relative position in a list
}
# Content in a format defined elsewhere
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Attachment.contentType @ AND
{fhir:value @fhirvs:mimetypes}?; # Mime type of the content, with
# charset etc.
fhir:Attachment.language @?; # Human language of the content
# (BCP-47)
fhir:Attachment.data @?; # Data inline, base64ed
fhir:Attachment.url @?; # Uri where the data can be found
fhir:Attachment.size @?; # Number of bytes of content (if url
# provided)
fhir:Attachment.hash @?; # Hash of the data (sha-1, base64ed)
fhir:Attachment.title @?; # Label to display in place of the
# data
fhir:Attachment.creation @?; # Date attachment was first created
fhir:index xsd:integer? # Relative position in a list
}
# A length of time
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Quantity.value @?; # Numerical value (with implicit
# precision)
fhir:Quantity.comparator @ AND
{fhir:value @fhirvs:quantity-comparator}?; # < | <= | >= | > - how to
# understand the value
fhir:Quantity.unit @?; # Unit representation
fhir:Quantity.system @?; # System that defines coded unit form
fhir:Quantity.code @?; # Coded form of the unit
fhir:index xsd:integer? # Relative position in a list
}
# 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 @