FHIR CI-Build

This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions

Nutritionintake.shex

Orders and Observations Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Encounter, 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>
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 <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 intake by a patient
<NutritionIntake> EXTENDS @<DomainResource> CLOSED {   
    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: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 
    			@<Group> OR 
    			@<Patient> ? };  # Who is/was consuming the food 
                                            # (i.e. solid and/or liquid) 
    fhir:encounter @<Reference> AND {fhir:link 
    			@<Encounter> ? }?;  # Encounter associated with 
                                            # NutritionIntake 
    fhir:occurrence @<dateTime>  OR 
    			@<Period>  ?;  # The date/time or interval when the 
                                            # 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:link @<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 performed the intake and how 
                                            # they were involved 
    fhir:location @<Reference> AND {fhir:link 
    			@<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 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 
}  

# Who 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 
    			@<CareTeam> OR 
    			@<Device> OR 
    			@<Group> OR 
    			@<Organization> OR 
    			@<Patient> OR 
    			@<Practitioner> OR 
    			@<PractitionerRole> OR 
    			@<RelatedPerson> ? };  # Who 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:notConsumed @<boolean>?;           # Flag to indicate if the food (i.e. 
                                            # solid and/or liquid) was refused 
                                            # or otherwise not consumed 
    fhir:notConsumedReason @<CodeableConcept>?;  # Reason the 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 
			@<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 
			@<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:link 
			@<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> 
}

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