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 : No defined compartments |
ShEx statement for nutritionproduct
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 <Ratio.shex>IMPORT <string.shex> IMPORT <boolean.shex> IMPORT <markdown.shex>IMPORT <String.shex> IMPORT <Boolean.shex> IMPORT <Markdown.shex> IMPORT <Quantity.shex>IMPORT <dateTime.shex>IMPORT <DateTime.shex> IMPORT <Annotation.shex> IMPORT <Identifier.shex> IMPORT <Attachment.shex>IMPORT <base64Binary.shex>IMPORT <Base64Binary.shex> IMPORT <Organization.shex> IMPORT <RelatedPerson.shex> IMPORT <DomainResource.shex> IMPORT <SimpleQuantity.shex> IMPORT <CodeableConcept.shex> IMPORT <BackboneElement.shex> IMPORT <CodeableReference.shex> start=@<NutritionProduct> AND {fhir:nodeRole [fhir:treeRoot]} # A product used for nutritional purposes (i.e. food or supplement) <NutritionProduct> EXTENDS @<DomainResource> CLOSED { a [fhir:NutritionProduct]?;fhir:nodeRole [fhir:treeRoot]?; fhir:code @<CodeableConcept>?; # A code that can identify the # productfhir:status @<code> ANDfhir:status @<Code> AND {fhir:v @fhirvs:nutritionproduct-status}; # active | inactive | # entered-in-error fhir:category @<OneOrMore_CodeableConcept>?; # Broad product groups, like Fruit, # Grain, Beverages, or Vegetables # Products fhir:manufacturer @<OneOrMore_Reference_Organization_OR_RelatedPerson>?; # Manufacturer, representative or # person officially responsible for # the product fhir:nutrient @<OneOrMore_NutritionProduct.nutrient>?; # The product's nutritional # information expressed by the # nutrientsfhir:ingredientSummary @<markdown>?; # Textual description of productfhir:ingredientSummary @<Markdown>?; # Textual description of product # ingredients fhir:ingredient @<OneOrMore_NutritionProduct.ingredient>?; # Ingredients contained in this # product fhir:energy @<Quantity>?; # The amount of energy present in # the product expressed in # kilocalories or kilojoules fhir:characteristic @<OneOrMore_NutritionProduct.characteristic>?; # Specifies descriptive properties # of the nutrition product fhir:instance @<OneOrMore_NutritionProduct.instance>?; # One or several physical instances # or occurrences of the nutrition # product fhir:note @<OneOrMore_Annotation>?; # Comments made about the product } # Ingredients contained in this product <NutritionProduct.ingredient> EXTENDS @<BackboneElement> CLOSED { fhir:item @<CodeableReference>; # The ingredient contained in the # product fhir:amount @<Ratio> OR @<Quantity> ?; # The amount of ingredient that is # in the productfhir:allergen @<boolean>?; # A known or suspected allergenicfhir:allergen @<Boolean>?; # A known or suspected allergenic # and/or substance that is # associated with an intolerance } # One or several physical instances or occurrences of the nutrition product <NutritionProduct.instance> EXTENDS @<BackboneElement> CLOSED { fhir:quantity @<Quantity>?; # The amount of items or instances fhir:identifier @<OneOrMore_Identifier>?; # The identifier for the physical # instance, typically a serial # number or manufacturer numberfhir:name @<string>?; # The name or brand for the specificfhir:name @<String>?; # The name or brand for the specific # productfhir:lotNumber @<string>?; # The identification of the batch orfhir:lotNumber @<String>?; # The identification of the batch or # lot of the productfhir:expiry @<dateTime>?; # The expiry date or date and timefhir:expiry @<DateTime>?; # The expiry date or date and time # for the productfhir:useBy @<dateTime>?; # The date until which the productfhir:useBy @<DateTime>?; # The date until which the product # is expected to be good for # consumption fhir:biologicalSourceEvent @<Identifier>?; # An identifier of the donation, # collection, or pooling event from # which biological material in this # nutrition product was derived } # Specifies descriptive properties of the nutrition product <NutritionProduct.characteristic> EXTENDS @<BackboneElement> CLOSED { fhir:type @<CodeableConcept>; # Code specifying the type of # characteristic fhir:value @<CodeableConcept> OR@<string> OR@<String> OR @<SimpleQuantity> OR@<base64Binary> OR@<Base64Binary> OR @<Attachment> OR@<boolean> ; # The value of the characteristic@<Boolean> ; # The value of the characteristic } # The product's nutritional information expressed by the nutrients <NutritionProduct.nutrient> EXTENDS @<BackboneElement> CLOSED { fhir:item @<CodeableReference>; # The (relevant) nutrients in the # product fhir:amount @<Ratio> OR @<Quantity> ?; # The amount of nutrient present in # the product } #---------------------- Cardinality Types (OneOrMore) ------------------- <OneOrMore_CodeableConcept> CLOSED { rdf:first @<CodeableConcept> ; rdf:rest [rdf:nil] OR @<OneOrMore_CodeableConcept> } <OneOrMore_Reference_Organization_OR_RelatedPerson> CLOSED {rdf:first @<Reference> AND {fhir:linkrdf:first @<Reference> AND {fhir:l @<Organization> OR @<RelatedPerson> } ; rdf:rest [rdf:nil] OR @<OneOrMore_Reference_Organization_OR_RelatedPerson> } <OneOrMore_NutritionProduct.nutrient> CLOSED { rdf:first @<NutritionProduct.nutrient> ; rdf:rest [rdf:nil] OR @<OneOrMore_NutritionProduct.nutrient> } <OneOrMore_NutritionProduct.ingredient> CLOSED { rdf:first @<NutritionProduct.ingredient> ; rdf:rest [rdf:nil] OR @<OneOrMore_NutritionProduct.ingredient> } <OneOrMore_NutritionProduct.characteristic> CLOSED { rdf:first @<NutritionProduct.characteristic> ; rdf:rest [rdf:nil] OR @<OneOrMore_NutritionProduct.characteristic> } <OneOrMore_NutritionProduct.instance> CLOSED { rdf:first @<NutritionProduct.instance> ; rdf:rest [rdf:nil] OR @<OneOrMore_NutritionProduct.instance> } <OneOrMore_Annotation> CLOSED { rdf:first @<Annotation> ; rdf:rest [rdf:nil] OR @<OneOrMore_Annotation> } <OneOrMore_Identifier> CLOSED { rdf:first @<Identifier> ; rdf:rest [rdf:nil] OR @<OneOrMore_Identifier> } #---------------------- Value Sets ------------------------ # Codes identifying the lifecycle stage of a product. fhirvs:nutritionproduct-status ["active" "inactive" "entered-in-error"]
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