PackagesCanonicalsLogsProblems
    Packages
    test.mpd.noma.no@3.1.1
    https://noma.no/fhir/StructureDefinition/NutritionProduct_NOMA_v3_1
description: The NutritionProduct resource represents the identification of a food or fluid product consumed by patients. The scope of the NutritionProduct resource includes all the products that are understood to be food and beverage products for human consumption.  \r\n\r\nIt is lacking in FHIR 4 and therefore derived from the Basic profile. It willl be replaced by an adapted [NutritionProduct](https://hl7.org/fhir/nutritionproduct.html) profile once NoMA has transitioned to use FHIR R5 and above.
package_name: test.mpd.noma.no
derivation: constraint
name: NutritionProduct_NOMA_v3_1
type: Basic
elements:
  extension:
    array: true
    min: 2
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 2
      slices:
        routeOfAdministration:
          match: {url: null}
          schema:
            type: Extension
            isModifier: false
            url: https://example.org/fhir/StructureDefinition/RouteOfAdministrationNutrition
            index: 1
            elements:
              value:
                choices: []
                index: 3
        status:
          match: {url: null}
          schema:
            type: Extension
            short: Publishing status of the NutritionProduct
            isModifier: false
            url: https://example.org/fhir/StructureDefinition/NutritionStatus
            index: 4
            elements:
              value:
                short: Status will always be active.
                pattern: {type: Code, value: active}
                choices: []
                index: 6
        for:
          match: {url: null}
          schema:
            type: Extension
            short: Relationship to a (virtual) medicinal product element.
            isModifier: false
            url: https://example.org/fhir/StructureDefinition/NutritionProductForMedicinalProduct
            index: 7
            elements:
              value:
                short: Todo
                choices: []
                index: 9
        knownAllergen:
          match: {url: null}
          schema: {type: Extension, isModifier: false, url: 'https://noma.no/fhir/StructureDefinition/NutritionProductKnownAllergen_v3_1', index: 10}
        characteristic:
          match: {url: null}
          schema:
            type: Extension
            short: Specifies descriptive properties of the nutrition product
            isModifier: false
            url: https://example.org/fhir/StructureDefinition/NutritionProductCharacteristics
            index: 11
            extensions:
              type: {url: null, short: The type of Nutrition Product Characteristic, index: 12}
              value: {url: null, short: The value of the Nutrition Product Characteristic, index: 13}
            elements:
              extension:
                short: The type of Nutrition Product Characteristic
                index: 12
                slicing:
                  slices:
                    type:
                      match: {}
                      schema: {short: The type of Nutrition Product Characteristic, index: 12}
                    value:
                      match: {}
                      schema: {short: The value of the Nutrition Product Characteristic, index: 13}
        ingredient:
          match: {url: null}
          schema:
            type: Extension
            short: Ingredients contained in this product
            isModifier: false
            url: https://example.org/fhir/StructureDefinition/NutritionIngredient
            index: 14
            extensions:
              amount:
                url: null
                short: The
                index: 15
                elements:
                  value[x]:
                    elements:
                      numerator:
                        elements:
                          comparator: {index: 16}
                          system: {index: 17}
                      denominator:
                        elements:
                          comparator: {index: 18}
                          system: {index: 19}
              item: {url: null, short: Todo, index: 20}
            elements:
              extension:
                short: The
                index: 15
                slicing:
                  slices:
                    amount:
                      match: {}
                      schema:
                        short: The
                        index: 15
                        elements:
                          value[x]:
                            elements:
                              numerator:
                                elements:
                                  comparator: {index: 16}
                                  system: {index: 17}
                              denominator:
                                elements:
                                  comparator: {index: 18}
                                  system: {index: 19}
                    item:
                      match: {}
                      schema: {short: Todo, index: 20}
        nutrient:
          match: {url: null}
          schema:
            type: Extension
            short: Nutrition Product Nutrient
            isModifier: false
            url: https://example.org/fhir/StructureDefinition/NutritionNutrient
            index: 21
            extensions:
              amount:
                url: null
                index: 22
                elements:
                  value[x]:
                    elements:
                      numerator:
                        elements:
                          comparator: {index: 23}
                          system: {index: 24}
                      denominator:
                        elements:
                          comparator: {index: 25}
                          system: {index: 26}
              item: {url: null, short: Todo, index: 27}
            elements:
              extension:
                index: 22
                slicing:
                  slices:
                    amount:
                      match: {}
                      schema:
                        index: 22
                        elements:
                          value[x]:
                            elements:
                              numerator:
                                elements:
                                  comparator: {index: 23}
                                  system: {index: 24}
                              denominator:
                                elements:
                                  comparator: {index: 25}
                                  system: {index: 26}
                    item:
                      match: {}
                      schema: {short: Todo, index: 27}
  identifier: {label: nomaNutritionProductID, short: nomaNutritionProductID, index: 28}
  code: {short: A code that can identify the detailed nutrients and ingredients in a specific food product, index: 29}
  subject: {index: 30}
  created: {index: 31}
  author: {index: 32}
package_version: 3.1.1
extensions:
  routeOfAdministration:
    url: https://example.org/fhir/StructureDefinition/RouteOfAdministrationNutrition
    type: Extension
    isModifier: false
    index: 1
    elements:
      value:
        choices: []
        index: 3
  status:
    url: https://example.org/fhir/StructureDefinition/NutritionStatus
    type: Extension
    short: Publishing status of the NutritionProduct
    isModifier: false
    index: 4
    elements:
      value:
        short: Status will always be active.
        pattern: {type: Code, value: active}
        choices: []
        index: 6
  for:
    url: https://example.org/fhir/StructureDefinition/NutritionProductForMedicinalProduct
    type: Extension
    short: Relationship to a (virtual) medicinal product element.
    isModifier: false
    index: 7
    elements:
      value:
        short: Todo
        choices: []
        index: 9
  knownAllergen: {url: 'https://noma.no/fhir/StructureDefinition/NutritionProductKnownAllergen_v3_1', type: Extension, isModifier: false, index: 10}
  characteristic:
    url: https://example.org/fhir/StructureDefinition/NutritionProductCharacteristics
    type: Extension
    short: Specifies descriptive properties of the nutrition product
    isModifier: false
    index: 11
    extensions:
      type: {url: null, short: The type of Nutrition Product Characteristic, index: 12}
      value: {url: null, short: The value of the Nutrition Product Characteristic, index: 13}
    elements:
      extension:
        short: The type of Nutrition Product Characteristic
        index: 12
        slicing:
          slices:
            type:
              match: {}
              schema: {short: The type of Nutrition Product Characteristic, index: 12}
            value:
              match: {}
              schema: {short: The value of the Nutrition Product Characteristic, index: 13}
  ingredient:
    url: https://example.org/fhir/StructureDefinition/NutritionIngredient
    type: Extension
    short: Ingredients contained in this product
    isModifier: false
    index: 14
    extensions:
      amount:
        url: null
        short: The
        index: 15
        elements:
          value[x]:
            elements:
              numerator:
                elements:
                  comparator: {index: 16}
                  system: {index: 17}
              denominator:
                elements:
                  comparator: {index: 18}
                  system: {index: 19}
      item: {url: null, short: Todo, index: 20}
    elements:
      extension:
        short: The
        index: 15
        slicing:
          slices:
            amount:
              match: {}
              schema:
                short: The
                index: 15
                elements:
                  value[x]:
                    elements:
                      numerator:
                        elements:
                          comparator: {index: 16}
                          system: {index: 17}
                      denominator:
                        elements:
                          comparator: {index: 18}
                          system: {index: 19}
            item:
              match: {}
              schema: {short: Todo, index: 20}
  nutrient:
    url: https://example.org/fhir/StructureDefinition/NutritionNutrient
    type: Extension
    short: Nutrition Product Nutrient
    isModifier: false
    index: 21
    extensions:
      amount:
        url: null
        index: 22
        elements:
          value[x]:
            elements:
              numerator:
                elements:
                  comparator: {index: 23}
                  system: {index: 24}
              denominator:
                elements:
                  comparator: {index: 25}
                  system: {index: 26}
      item: {url: null, short: Todo, index: 27}
    elements:
      extension:
        index: 22
        slicing:
          slices:
            amount:
              match: {}
              schema:
                index: 22
                elements:
                  value[x]:
                    elements:
                      numerator:
                        elements:
                          comparator: {index: 23}
                          system: {index: 24}
                      denominator:
                        elements:
                          comparator: {index: 25}
                          system: {index: 26}
            item:
              match: {}
              schema: {short: Todo, index: 27}
class: profile
kind: resource
url: https://noma.no/fhir/StructureDefinition/NutritionProduct_NOMA_v3_1
base: http://hl7.org/fhir/StructureDefinition/Basic
version: '3.1'
required: [identifier]