Foundation
Publish-box
(todo)
This
is
the
Continuous
Integration
Build
of
FHIR
(will
be
incorrect/inconsistent
at
times).
See
the
Directory
of
published
versions
| Responsible Owner: Orders and Observations Work Group | Standards Status : Informative | Compartments : Encounter , Group , Patient , Practitioner , RelatedPerson |
ShEx statement for nutritionintake
PREFIX fhir: <http://hl7.org/fhir/> PREFIX fhirvs: <http://hl7.org/fhir/ValueSet/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>IMPORT <code.shex># ShEx Version 2.2 IMPORT <Code.shex> IMPORT <Group.shex> IMPORT <Ratio.shex> IMPORT <Period.shex>IMPORT <Timing.shex>IMPORT <Device.shex> IMPORT <Timing.shex> IMPORT <Patient.shex>IMPORT <boolean.shex> IMPORT <dateTime.shex>IMPORT <Boolean.shex> IMPORT <DateTime.shex> IMPORT <Location.shex>IMPORT <Quantity.shex>IMPORT <CareTeam.shex> IMPORT <Quantity.shex> IMPORT <CarePlan.shex> IMPORT <Resource.shex> IMPORT <Reference.shex> IMPORT <Encounter.shex> IMPORT <Procedure.shex> IMPORT <Identifier.shex> IMPORT <Annotation.shex> IMPORT <Observation.shex> IMPORT <Practitioner.shex> IMPORT <Organization.shex> IMPORT <RelatedPerson.shex> IMPORT <DomainResource.shex> IMPORT <NutritionOrder.shex> IMPORT <ServiceRequest.shex> IMPORT <CodeableConcept.shex> IMPORT <BackboneElement.shex> IMPORT <PractitionerRole.shex> IMPORT <CodeableReference.shex> start=@<NutritionIntake> AND {fhir:nodeRole [fhir:treeRoot]} # Record of intake by a patient <NutritionIntake> EXTENDS @<DomainResource> CLOSED { a [fhir:NutritionIntake]?;fhir:nodeRole [fhir:treeRoot]?; fhir:identifier @<OneOrMore_Identifier>?; # External identifier fhir:basedOn @<OneOrMore_Reference_CarePlan_OR_NutritionOrder_OR_ServiceRequest>?; # Fulfils plan, proposal or order fhir:partOf @<OneOrMore_Reference_NutritionIntake_OR_Observation_OR_Procedure>?; # Part of referenced eventfhir:status @<code> ANDfhir:status @<Code> AND {fhir:v @fhirvs:event-status}; # preparation | in-progress | # not-done | on-hold | stopped | # completed | entered-in-error | # unknown fhir:statusReason @<OneOrMore_CodeableConcept>?; # Reason for current status fhir:code @<CodeableConcept>?; # Code representing an overall type # of nutrition intakefhir:subject @<Reference> AND {fhir:linkfhir:subject @<Reference> AND {fhir:l @<Group> OR @<Patient> ? }; # Who is/was consuming the food # (i.e. solid and/or liquid)fhir:encounter @<Reference> AND {fhir:linkfhir:encounter @<Reference> AND {fhir:l @<Encounter> ? }?; # Encounter associated with # NutritionIntakefhir:occurrence @<dateTime> ORfhir:occurrence @<DateTime> OR @<Period> ?; # The date/time or interval when the # food (i.e. solid and/or liquid) # is/was consumedfhir:recorded @<dateTime>?; # When the intake was recorded fhir:reported @<boolean> OR (@<Reference> AND {fhir:link @<Patient> ORfhir:recorded @<DateTime>?; # When the intake was recorded fhir:reported @<Boolean> OR (@<Reference> AND {fhir:l @<Patient> OR @<RelatedPerson> OR @<Practitioner> OR @<PractitionerRole> OR @<Organization> OR @<Group> }) ?; # Indicates if this is a reported # rather than a primary record. Can # also indicate the source that # provided the information about the # consumption fhir:nutritionItem @<OneOrMore_NutritionIntake.nutritionItem>?; # The nutrition product intended for # consumption and/or administration fhir:performer @<OneOrMore_NutritionIntake.performer>?; # Who or what performed the intake # and how they were involvedfhir:location @<Reference> AND {fhir:linkfhir:location @<Reference> AND {fhir:l @<Location> ? }?; # Where the intake occurred fhir:derivedFrom @<OneOrMore_Reference_Resource>?; # Additional supporting information fhir:reason @<OneOrMore_CodeableReference>?; # Reason for why the food (i.e. # solid and/or liquid) is /was # consumed fhir:note @<OneOrMore_Annotation>?; # Further information about the # consumption }# What nutrition item was not consumed <NutritionIntake.nutritionItem.notConsumedItem> EXTENDS @<BackboneElement> CLOSED { fhir:reason @<CodeableConcept>?; # Reason the nutrition item was not # consumed fhir:schedule @<Timing>?; # The intended frequency of # consumption that was not followed fhir:amount @<Quantity>?; # Quantity of the specified food # (i.e. solid and/or liquid) that # was not consumed } # Nutrients and/or energy contained in the intake <NutritionIntake.nutritionItem.consumedItem.totalIntake> EXTENDS @<BackboneElement> CLOSED { fhir:nutrient @<CodeableReference>; # Type of nutrient consumed in the # intake fhir:amount @<Quantity>; # Total amount of nutrient consumed fhir:energy @<Quantity>?; # Total energy consumed in # kilocalories or kilojoules }# Who or what performed the intake and how they were involved <NutritionIntake.performer> EXTENDS @<BackboneElement> CLOSED { fhir:function @<CodeableConcept>?; # Type of performerfhir:actor @<Reference> AND {fhir:linkfhir:actor @<Reference> AND {fhir:l @<CareTeam> OR @<Device> OR @<Group> OR @<Organization> OR @<Patient> OR @<Practitioner> OR @<PractitionerRole> OR @<RelatedPerson> ? }; # Who or what performed the intake } # Nutrients and/or energy contained in the intake <NutritionIntake.nutritionItem.consumedItem.totalIntake> EXTENDS @<BackboneElement> CLOSED { fhir:nutrient @<CodeableReference>; # Type of nutrient consumed in the # intake fhir:amount @<Quantity>; # Total amount of nutrient consumed fhir:energy @<Quantity>?; # Total energy consumed in # kilocalories or kilojoules } # The nutrition product intended for consumption and/or administration <NutritionIntake.nutritionItem> EXTENDS @<BackboneElement> CLOSED { fhir:type @<CodeableConcept>?; # The type of food (i.e. solid or # liquid) product fhir:nutritionProduct @<CodeableReference>?; # A product used for nutritional # purposes (e.g. food or supplement) fhir:consumedItem @<OneOrMore_NutritionIntake.nutritionItem.consumedItem>?; # What nutrition item was consumed fhir:notConsumedItem @<OneOrMore_NutritionIntake.nutritionItem.notConsumedItem>?; # What nutrition item was not # consumed } # What nutrition item was not consumed <NutritionIntake.nutritionItem.notConsumedItem> EXTENDS @<BackboneElement> CLOSED { fhir:reason @<CodeableConcept>?; # Reason the nutrition item was not # consumed fhir:schedule @<Timing>?; # The intended frequency of # consumption that was not followed fhir:amount @<Quantity>?; # Quantity of the specified food # (i.e. solid and/or liquid) that # was not consumed } # What nutrition item was consumed <NutritionIntake.nutritionItem.consumedItem> EXTENDS @<BackboneElement> CLOSED { fhir:schedule @<Timing>?; # Scheduled frequency of consumption fhir:amount @<Quantity>?; # Quantity of the specified food # (i.e. solid and/or liquid) fhir:rate @<Quantity> OR @<Ratio> ?; # Rate of enteral feeding # administration fhir:totalIntake @<OneOrMore_NutritionIntake.nutritionItem.consumedItem.totalIntake>?; # Nutrients and/or energy contained # in the intake } #---------------------- Cardinality Types (OneOrMore) ------------------- <OneOrMore_Identifier> CLOSED { rdf:first @<Identifier> ; rdf:rest [rdf:nil] OR @<OneOrMore_Identifier> } <OneOrMore_Reference_CarePlan_OR_NutritionOrder_OR_ServiceRequest> CLOSED {rdf:first @<Reference> AND {fhir:linkrdf:first @<Reference> AND {fhir:l @<CarePlan> OR @<NutritionOrder> OR @<ServiceRequest> } ; rdf:rest [rdf:nil] OR @<OneOrMore_Reference_CarePlan_OR_NutritionOrder_OR_ServiceRequest> } <OneOrMore_Reference_NutritionIntake_OR_Observation_OR_Procedure> CLOSED {rdf:first @<Reference> AND {fhir:linkrdf:first @<Reference> AND {fhir:l @<NutritionIntake> OR @<Observation> OR @<Procedure> } ; rdf:rest [rdf:nil] OR @<OneOrMore_Reference_NutritionIntake_OR_Observation_OR_Procedure> } <OneOrMore_CodeableConcept> CLOSED { rdf:first @<CodeableConcept> ; rdf:rest [rdf:nil] OR @<OneOrMore_CodeableConcept> } <OneOrMore_NutritionIntake.nutritionItem> CLOSED { rdf:first @<NutritionIntake.nutritionItem> ; rdf:rest [rdf:nil] OR @<OneOrMore_NutritionIntake.nutritionItem> } <OneOrMore_NutritionIntake.performer> CLOSED { rdf:first @<NutritionIntake.performer> ; rdf:rest [rdf:nil] OR @<OneOrMore_NutritionIntake.performer> } <OneOrMore_Reference_Resource> CLOSED {rdf:first @<Reference> AND {fhir:linkrdf:first @<Reference> AND {fhir:l @<Resource> } ; rdf:rest [rdf:nil] OR @<OneOrMore_Reference_Resource> } <OneOrMore_CodeableReference> CLOSED { rdf:first @<CodeableReference> ; rdf:rest [rdf:nil] OR @<OneOrMore_CodeableReference> } <OneOrMore_Annotation> CLOSED { rdf:first @<Annotation> ; rdf:rest [rdf:nil] OR @<OneOrMore_Annotation> } <OneOrMore_NutritionIntake.nutritionItem.consumedItem> CLOSED { rdf:first @<NutritionIntake.nutritionItem.consumedItem> ; rdf:rest [rdf:nil] OR @<OneOrMore_NutritionIntake.nutritionItem.consumedItem> } <OneOrMore_NutritionIntake.nutritionItem.notConsumedItem> CLOSED { rdf:first @<NutritionIntake.nutritionItem.notConsumedItem> ; rdf:rest [rdf:nil] OR @<OneOrMore_NutritionIntake.nutritionItem.notConsumedItem> } <OneOrMore_NutritionIntake.nutritionItem.consumedItem.totalIntake> CLOSED { rdf:first @<NutritionIntake.nutritionItem.consumedItem.totalIntake> ; rdf:rest [rdf:nil] OR @<OneOrMore_NutritionIntake.nutritionItem.consumedItem.totalIntake> } #---------------------- Value Sets ------------------------ # Codes identifying the lifecycle stage of an event. fhirvs:event-status ["preparation" "in-progress" "not-done" "on-hold" "stopped" "completed" "entered-in-error" "unknown"]
Usage note: every effort has been made to ensure that the ShEx files are correct and useful, but they are not a normative part of the specification.
FHIR
®©
HL7.org
2011+.
FHIR
R6
hl7.fhir.core#6.0.0-ballot3
generated
on
Tue,
Apr
1,
Fri,
Nov
14,
2025
12:25+1100.
20:59+0000.
Links:
Search
|
Version
History
|
Contents
|
Glossary
|
QA
|
Compare
to
R4
|
Compare
to
R5
|
Compare
to
Last
Ballot
|
|
Propose
a
change