QI-Core Implementation Guide
6.0.0-ballot - ballot United States of America flag

This page is part of the Quality Improvement Core Framework (v6.0.0-ballot: STU6 (v6.0.0) Ballot 1) based on FHIR R4. The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Resource Profile: QICore Nutrition Intake

Official URL: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-nutritionintake Version: 6.0.0-ballot
Standards status: Trial-use Maturity Level: 1 Computable Name: QICoreNutritionIntake

Nutrition Intake is utilized to capture details about the consumption of foods, fluids, and enteral nutrition.

Usage:

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

This structure is derived from Basic

NameFlagsCard.TypeDescription & Constraintsdoco
.. Basic 0..*BasicRecord of food or fluid being taken by a patient
... subject S1..1Reference(Patient)Individual the event is recorded for
URL: http://hl7.org/fhir/StructureDefinition/event-subject
.... value[x] 0..1Reference(QICore Patient)Value of extension
... encounter 0..1Reference(Encounter)Encounter the event is part of
URL: http://hl7.org/fhir/StructureDefinition/event-encounter
.... value[x] 0..1Reference(QICore Encounter)Value of extension
... occurrence 0..1dateTimeWhen event occurred
URL: http://hl7.org/fhir/StructureDefinition/event-occurrence
... code S1..1CodeableConceptWhat food item
Binding: Example Foods (example)

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSet
Basic.codeexampleExampleFoods
NameFlagsCard.TypeDescription & Constraintsdoco
.. Basic 0..*BasicRecord of food or fluid being taken by a patient
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... Slices for extension 1..*ExtensionExtension
Slice: Unordered, Open by value:url
... subject S1..1Reference(Patient)Individual the event is recorded for
URL: http://hl7.org/fhir/StructureDefinition/event-subject
.... url 1..1uri"http://hl7.org/fhir/StructureDefinition/event-subject"
.... value[x] 0..1Reference(QICore Patient)Value of extension
.... url 1..1uri"http://hl7.org/fhir/StructureDefinition/event-encounter"
.... value[x] 0..1Reference(QICore Encounter)Value of extension
... occurrence 0..1dateTimeWhen event occurred
URL: http://hl7.org/fhir/StructureDefinition/event-occurrence
... Slices for modifierExtension ?!1..*ExtensionExtension
Slice: Unordered, Open by value:url
... modifierExtension:status ?!S1..1EventStatuspreparation | in-progress | not-done | suspended | aborted | completed | entered-in-error | unknown
... code ?!SΣ1..1CodeableConceptWhat food item
Binding: Example Foods (example)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Basic.codeexampleExampleFoods

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorBasicIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorBasicIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorBasicIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorBasicIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceBasicA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
NameFlagsCard.TypeDescription & Constraintsdoco
.. Basic 0..*BasicRecord of food or fluid being taken by a patient
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... Slices for extension 1..*ExtensionExtension
Slice: Unordered, Open by value:url
... subject S1..1Reference(Patient)Individual the event is recorded for
URL: http://hl7.org/fhir/StructureDefinition/event-subject
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... url 1..1uri"http://hl7.org/fhir/StructureDefinition/event-subject"
.... value[x] 0..1Reference(QICore Patient)Value of extension
... encounter 0..1Reference(Encounter)Encounter the event is part of
URL: http://hl7.org/fhir/StructureDefinition/event-encounter
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... url 1..1uri"http://hl7.org/fhir/StructureDefinition/event-encounter"
.... value[x] 0..1Reference(QICore Encounter)Value of extension
... occurrence 0..1dateTimeWhen event occurred
URL: http://hl7.org/fhir/StructureDefinition/event-occurrence
... Slices for modifierExtension ?!1..*ExtensionExtension
Slice: Unordered, Open by value:url
... modifierExtension:status ?!S1..1EventStatuspreparation | in-progress | not-done | suspended | aborted | completed | entered-in-error | unknown
... identifier Σ0..*IdentifierBusiness identifier
... code ?!SΣ1..1CodeableConceptWhat food item
Binding: Example Foods (example)
... subject Σ0..1Reference(Resource)Identifies the focus of this resource
... created Σ0..1dateWhen created
... author Σ0..1Reference(Practitioner | PractitionerRole | Patient | RelatedPerson | Organization)Who created

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Basic.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
Basic.codeexampleExampleFoods

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

Differential View

This structure is derived from Basic

NameFlagsCard.TypeDescription & Constraintsdoco
.. Basic 0..*BasicRecord of food or fluid being taken by a patient
... subject S1..1Reference(Patient)Individual the event is recorded for
URL: http://hl7.org/fhir/StructureDefinition/event-subject
.... value[x] 0..1Reference(QICore Patient)Value of extension
... encounter 0..1Reference(Encounter)Encounter the event is part of
URL: http://hl7.org/fhir/StructureDefinition/event-encounter
.... value[x] 0..1Reference(QICore Encounter)Value of extension
... occurrence 0..1dateTimeWhen event occurred
URL: http://hl7.org/fhir/StructureDefinition/event-occurrence
... code S1..1CodeableConceptWhat food item
Binding: Example Foods (example)

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSet
Basic.codeexampleExampleFoods

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Basic 0..*BasicRecord of food or fluid being taken by a patient
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... Slices for extension 1..*ExtensionExtension
Slice: Unordered, Open by value:url
... subject S1..1Reference(Patient)Individual the event is recorded for
URL: http://hl7.org/fhir/StructureDefinition/event-subject
.... url 1..1uri"http://hl7.org/fhir/StructureDefinition/event-subject"
.... value[x] 0..1Reference(QICore Patient)Value of extension
.... url 1..1uri"http://hl7.org/fhir/StructureDefinition/event-encounter"
.... value[x] 0..1Reference(QICore Encounter)Value of extension
... occurrence 0..1dateTimeWhen event occurred
URL: http://hl7.org/fhir/StructureDefinition/event-occurrence
... Slices for modifierExtension ?!1..*ExtensionExtension
Slice: Unordered, Open by value:url
... modifierExtension:status ?!S1..1EventStatuspreparation | in-progress | not-done | suspended | aborted | completed | entered-in-error | unknown
... code ?!SΣ1..1CodeableConceptWhat food item
Binding: Example Foods (example)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Basic.codeexampleExampleFoods

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorBasicIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorBasicIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorBasicIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorBasicIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceBasicA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Basic 0..*BasicRecord of food or fluid being taken by a patient
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... Slices for extension 1..*ExtensionExtension
Slice: Unordered, Open by value:url
... subject S1..1Reference(Patient)Individual the event is recorded for
URL: http://hl7.org/fhir/StructureDefinition/event-subject
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... url 1..1uri"http://hl7.org/fhir/StructureDefinition/event-subject"
.... value[x] 0..1Reference(QICore Patient)Value of extension
... encounter 0..1Reference(Encounter)Encounter the event is part of
URL: http://hl7.org/fhir/StructureDefinition/event-encounter
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... url 1..1uri"http://hl7.org/fhir/StructureDefinition/event-encounter"
.... value[x] 0..1Reference(QICore Encounter)Value of extension
... occurrence 0..1dateTimeWhen event occurred
URL: http://hl7.org/fhir/StructureDefinition/event-occurrence
... Slices for modifierExtension ?!1..*ExtensionExtension
Slice: Unordered, Open by value:url
... modifierExtension:status ?!S1..1EventStatuspreparation | in-progress | not-done | suspended | aborted | completed | entered-in-error | unknown
... identifier Σ0..*IdentifierBusiness identifier
... code ?!SΣ1..1CodeableConceptWhat food item
Binding: Example Foods (example)
... subject Σ0..1Reference(Resource)Identifies the focus of this resource
... created Σ0..1dateWhen created
... author Σ0..1Reference(Practitioner | PractitionerRole | Patient | RelatedPerson | Organization)Who created

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Basic.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
Basic.codeexampleExampleFoods

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

 

Other representations of profile: CSV, Excel, Schematron