Release 5 FHIR CI-Build

This page is part of the Continuous Integration Build of FHIR Specification (v5.0.0: R5 - STU ). This is the current published version in it's permanent home (it will always (will be available incorrect/inconsistent at this URL). For a full list of available versions, see times).
See the Directory of published versions

Nutritionintake.shex

Maturity Level : N/A
Responsible Owner: Orders and Observations Work Group Standards Status : Informative Compartments : Encounter , Group , Patient , Practitioner , RelatedPerson

Raw ShEx

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 <uri.shex>
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 <Patient.shex>
IMPORT <boolean.shex>
IMPORT <dateTime.shex>

IMPORT <Boolean.shex>
IMPORT <DateTime.shex>

IMPORT <Location.shex>
IMPORT <Quantity.shex>
IMPORT <CareTeam.shex>
IMPORT <CarePlan.shex>
IMPORT <Resource.shex>
IMPORT <canonical.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 food or fluid being taken by a patient

# Record of intake by a patient

<NutritionIntake> EXTENDS @<DomainResource> CLOSED {   
    a [fhir:NutritionIntake]?;
    fhir:nodeRole [fhir:treeRoot]?;

    a [fhir:NutritionIntake]?;fhir:nodeRole [fhir:treeRoot]?;

    fhir:identifier @<OneOrMore_Identifier>?;  # External identifier
    fhir:instantiatesCanonical @<OneOrMore_canonical>?;  # Instantiates FHIR protocol or 
                                            # definition 
    fhir:instantiatesUri @<OneOrMore_uri>?;  # Instantiates external protocol or 
                                            # definition 

    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 event
    fhir:status @<code> AND

    fhir: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 intake 
    fhir:subject @<Reference> AND {fhir:link 

    fhir:subject @<Reference> AND {fhir:l 

    			@<Group> OR 
    			@<Patient> ? };  # Who is/was consuming the food or 
                                            # fluid 
    fhir:encounter @<Reference> AND {fhir:link 

    			@<Patient> ? };  # Who is/was consuming the food 
                                            # (i.e. solid and/or liquid) 
    fhir:encounter @<Reference> AND {fhir:l 

    			@<Encounter> ? }?;  # Encounter associated with 
                                            # NutritionIntake 
    fhir:occurrence @<dateTime>  OR 

    fhir:occurrence @<DateTime>  OR 

    			@<Period>  ?;  # The date/time or interval when the 
                                            # food or fluid is/was consumed 
    fhir:recorded @<dateTime>?;             # When the intake was recorded
    fhir:reported @<boolean>  OR 
    			(@<Reference>  AND {fhir:link @<Patient> OR 

                                            # food (i.e. solid and/or liquid) 
                                            # is/was consumed 
    fhir:recorded @<DateTime>?;             # When the intake was recorded
    fhir:reported @<Boolean>  OR 
    			(@<Reference>  AND {fhir:l @<Patient> OR 

    			 @<RelatedPerson> OR 
    			 @<Practitioner> OR 
    			 @<PractitionerRole> OR 
    			 @<Organization> })  ?;  # Person or organization that 

    			 @<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 of this food or fluid 
    fhir:consumedItem @<OneOrMore_NutritionIntake.consumedItem>;  # What food or fluid product or item 
                                            # was consumed 
    fhir:ingredientLabel @<OneOrMore_NutritionIntake.ingredientLabel>?;  # Total nutrient for the whole meal, 
                                            # product, serving 
    fhir:performer @<OneOrMore_NutritionIntake.performer>?;  # Who was performed in the intake
    fhir:location @<Reference> AND {fhir:link 

                                            # 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 involved 
    fhir: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 or fluid 
                                            # is /was consumed 

    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 food or fluid product or item was consumed
<NutritionIntake.consumedItem> EXTENDS @<BackboneElement> CLOSED {   
    fhir:type @<CodeableConcept>;           # The type of food or fluid product
    fhir:nutritionProduct @<CodeableReference>;  # Code that identifies the food or 
                                            # fluid product that was 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
    fhir:rate @<Quantity>?;                 # Rate at which enteral feeding was 
                                            # administered 
    fhir:notConsumed @<boolean>?;           # Flag to indicate if the food or 
                                            # fluid item was refused or 
                                            # otherwise not consumed 
    fhir:notConsumedReason @<CodeableConcept>?;  # Reason food or fluid was not 
                                            # consumed 
}  
# Total nutrient for the whole meal, product, serving
<NutritionIntake.ingredientLabel> EXTENDS @<BackboneElement> CLOSED {   
    fhir:nutrient @<CodeableReference>;     # Total nutrient consumed
    fhir:amount @<Quantity>;                # Total amount of nutrient consumed

    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 

}  
# Who was performed in the intake

# Who or what performed the intake and how they were involved

<NutritionIntake.performer> EXTENDS @<BackboneElement> CLOSED {   
    fhir:function @<CodeableConcept>?;      # Type of performer
    fhir:actor @<Reference> AND {fhir:link 

    fhir:actor @<Reference> AND {fhir:l 

    			@<CareTeam> OR 
    			@<Device> OR 
    			@<Group> OR 

    			@<Organization> OR 
    			@<Patient> OR 
    			@<Practitioner> OR 
    			@<PractitionerRole> OR 
    			@<RelatedPerson> ? };  # Who performed the intake

    			@<RelatedPerson> ? };  # Who or what performed the intake

}  
#---------------------- Cardinality Types (OneOrMore) -------------------

# 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 
}  
# 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 
}  
# 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 
}  

#---------------------- Cardinality Types (OneOrMore) -------------------

<OneOrMore_Identifier> CLOSED {
    rdf:first @<Identifier>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Identifier> 
}
<OneOrMore_canonical> CLOSED {
    rdf:first @<canonical>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_canonical> 
}
<OneOrMore_uri> CLOSED {
    rdf:first @<uri>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_uri> 
}

<OneOrMore_Reference_CarePlan_OR_NutritionOrder_OR_ServiceRequest> CLOSED {
    rdf:first @<Reference> AND {fhir:link 

    rdf: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:link 

    rdf: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.consumedItem> CLOSED {
    rdf:first @<NutritionIntake.consumedItem>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_NutritionIntake.consumedItem> 
}
<OneOrMore_NutritionIntake.ingredientLabel> CLOSED {
    rdf:first @<NutritionIntake.ingredientLabel>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_NutritionIntake.ingredientLabel> 

<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:link 

    rdf: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.totalIntake> CLOSED {
    rdf:first @<NutritionIntake.nutritionItem.consumedItem.totalIntake>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_NutritionIntake.nutritionItem.consumedItem.totalIntake> 
}
<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> 
}

#---------------------- 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.