PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
BASE
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# Diet, formula or nutritional supplement request
CLOSED {
a [fhir:NutritionOrder];
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:NutritionOrder.identifier @*; # Identifiers assigned to this order
fhir:NutritionOrder.instantiatesCanonical @*; # Instantiates FHIR protocol or
# definition
fhir:NutritionOrder.instantiatesUri @*; # Instantiates external protocol or
# definition
fhir:NutritionOrder.instantiates @*; # Instantiates protocol or definition
fhir:NutritionOrder.status @ AND
{fhir:value @fhirvs:request-status}; # draft | active | on-hold | revoked
# | completed | entered-in-error |
# unknown
fhir:NutritionOrder.intent @ AND
{fhir:value @fhirvs:request-intent}; # proposal | plan | directive |
# order | original-order |
# reflex-order | filler-order |
# instance-order | option
fhir:NutritionOrder.patient @; # The person who requires the diet,
# formula or nutritional supplement
fhir:NutritionOrder.encounter @?; # The encounter associated with this
# nutrition order
fhir:NutritionOrder.dateTime @; # Date and time the nutrition order
# was requested
fhir:NutritionOrder.orderer @?; # Who ordered the diet, formula or
# nutritional supplement
fhir:NutritionOrder.allergyIntolerance @*; # List of the patient's food and
# nutrition-related allergies and
# intolerances
fhir:NutritionOrder.foodPreferenceModifier @*; # Order-specific modifier about the
# type of food that should be given
fhir:NutritionOrder.excludeFoodModifier @*; # Order-specific modifier about the
# type of food that should not be
# given
fhir:NutritionOrder.oralDiet @?; # Oral diet components
fhir:NutritionOrder.supplement @*; # Supplement components
fhir:NutritionOrder.enteralFormula @?; # Enteral formula components
fhir:NutritionOrder.note @*; # Comments
fhir:index xsd:integer? # Relative position in a list
}
# Oral diet components
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:NutritionOrder.oralDiet.type @*; # Type of oral diet or diet
# restrictions that describe what
# can be consumed orally
fhir:NutritionOrder.oralDiet.schedule @*; # Scheduled frequency of diet
fhir:NutritionOrder.oralDiet.nutrient @*; # Required nutrient modifications
fhir:NutritionOrder.oralDiet.texture @*; # Required texture modifications
fhir:NutritionOrder.oralDiet.fluidConsistencyType @*; # The required consistency of fluids
# and liquids provided to the
# patient
fhir:NutritionOrder.oralDiet.instruction @?; # Instructions or additional
# information about the oral diet
fhir:index xsd:integer? # Relative position in a list
}
# Enteral formula components
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:NutritionOrder.enteralFormula.baseFormulaType @?; # Type of enteral or infant formula
fhir:NutritionOrder.enteralFormula.baseFormulaProductName @?; # Product or brand name of the
# enteral or infant formula
fhir:NutritionOrder.enteralFormula.additiveType @?; # Type of modular component to add
# to the feeding
fhir:NutritionOrder.enteralFormula.additiveProductName @?; # Product or brand name of the
# modular additive
fhir:NutritionOrder.enteralFormula.caloricDensity @?; # Amount of energy per specified
# volume that is required
fhir:NutritionOrder.enteralFormula.routeofAdministration @?; # How the formula should enter the
# patient's gastrointestinal tract
fhir:NutritionOrder.enteralFormula.administration @*; # Formula feeding instruction as
# structured data
fhir:NutritionOrder.enteralFormula.maxVolumeToDeliver @?; # Upper limit on formula volume per
# unit of time
fhir:NutritionOrder.enteralFormula.administrationInstruction @?; # Formula feeding instructions
# expressed as text
fhir:index xsd:integer? # Relative position in a list
}
# Supplement components
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:NutritionOrder.supplement.type @?; # Type of supplement product
# requested
fhir:NutritionOrder.supplement.productName @?; # Product or brand name of the
# nutritional supplement
fhir:NutritionOrder.supplement.schedule @*; # Scheduled frequency of supplement
fhir:NutritionOrder.supplement.quantity @?; # Amount of the nutritional
# supplement
fhir:NutritionOrder.supplement.instruction @?; # Instructions or additional
# information about the oral
# supplement
fhir:index xsd:integer? # Relative position in a list
}
# Required nutrient modifications
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:NutritionOrder.oralDiet.nutrient.modifier @?; # Type of nutrient that is being
# modified
fhir:NutritionOrder.oralDiet.nutrient.amount @?; # Quantity of the specified nutrient
fhir:index xsd:integer? # Relative position in a list
}
# Formula feeding instruction as structured data
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:NutritionOrder.enteralFormula.administration.schedule @?; # Scheduled frequency of enteral
# feeding
fhir:NutritionOrder.enteralFormula.administration.quantity @?; # The volume of formula to provide
( # Speed with which the formula is
# provided per period of time
fhir:NutritionOrder.enteralFormula.administration.rateQuantity @ |
fhir:NutritionOrder.enteralFormula.administration.rateRatio @
)?;
fhir:index xsd:integer? # Relative position in a list
}
# Required texture modifications
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:NutritionOrder.oralDiet.texture.modifier @?; # Code to indicate how to alter the
# texture of the foods, e.g. pureed
fhir:NutritionOrder.oralDiet.texture.foodType @?; # Concepts that are used to identify
# an entity that is ingested for
# nutritional purposes
fhir:index xsd:integer? # Relative position in a list
}
#---------------------- Data Types -------------------
# Primitive Type dateTime
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value dateTime?; # Primitive value for dateTime
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 fixed quantity (no comparator)
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.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 canonical
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value canonical?; # Primitive value for canonical
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
}
# Text node with attribution
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
( # Individual responsible for the
# annotation
fhir:Annotation.authorReference @ |
fhir:Annotation.authorString @
)?;
fhir:Annotation.time @?; # When the annotation was made
fhir:Annotation.text @; # The annotation - text content (as
# markdown)
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 @