Class NutritionIntake
- java.lang.Object
-
- org.hl7.fhir.r5.model.Base
-
- org.hl7.fhir.r5.model.BaseResource
-
- org.hl7.fhir.r5.model.Resource
-
- org.hl7.fhir.r5.model.DomainResource
-
- org.hl7.fhir.r5.model.NutritionIntake
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IAnyResource,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions,org.hl7.fhir.instance.model.api.IBaseResource,org.hl7.fhir.instance.model.api.IDomainResource
public class NutritionIntake extends DomainResource
A record of food or fluid that is being consumed by a patient. A NutritionIntake may indicate that the patient may be consuming the food or fluid now or has consumed the food or fluid in the past. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay or through an app that tracks food or fluids consumed. The consumption information may come from sources such as the patient's memory, from a nutrition label, or from a clinician documenting observed intake.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNutritionIntake.NutritionIntakeConsumedItemComponentstatic classNutritionIntake.NutritionIntakeIngredientLabelComponentstatic classNutritionIntake.NutritionIntakePerformerComponent
-
Field Summary
Fields Modifier and Type Field Description protected List<Reference>basedOnA plan, proposal or order that is fulfilled in whole or in part by this event.protected CodeableConceptcodeType of nutrition intake setting/reporting.static ca.uhn.fhir.rest.gclient.TokenClientParamCODEFluent Client search parameter constant for codeprotected List<NutritionIntake.NutritionIntakeConsumedItemComponent>consumedItemWhat food or fluid product or item was consumed.static ca.uhn.fhir.rest.gclient.DateClientParamDATEFluent Client search parameter constant for dateprotected List<Reference>derivedFromAllows linking the NutritionIntake to the underlying NutritionOrder, or to other information, such as AllergyIntolerance, that supports or is used to derive the NutritionIntake.protected ReferenceencounterThe encounter that establishes the context for this NutritionIntake.static ca.uhn.fhir.rest.gclient.ReferenceClientParamENCOUNTERFluent Client search parameter constant for encounterprotected List<Identifier>identifierIdentifiers associated with this Nutrition Intake that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate.static ca.uhn.fhir.rest.gclient.TokenClientParamIDENTIFIERFluent Client search parameter constant for identifierstatic ca.uhn.fhir.model.api.IncludeINCLUDE_ENCOUNTERConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_PART_OFConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_PATIENTConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_SOURCEConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_SUBJECTConstant for fluent queries to be used to add include statements.protected List<NutritionIntake.NutritionIntakeIngredientLabelComponent>ingredientLabelTotal nutrient amounts for the whole meal, product, serving, etc.protected List<CanonicalType>instantiatesCanonicalInstantiates FHIR protocol or definition.protected List<UriType>instantiatesUriInstantiates external protocol or definition.protected ReferencelocationWhere the intake occurred.protected List<Annotation>noteProvides extra information about the Nutrition Intake that is not conveyed by the other attributes.static ca.uhn.fhir.rest.gclient.TokenClientParamNUTRITIONFluent Client search parameter constant for nutritionprotected DataTypeoccurrenceThe interval of time during which it is being asserted that the patient is/was consuming the food or fluid.static ca.uhn.fhir.rest.gclient.ReferenceClientParamPART_OFFluent Client search parameter constant for part-ofprotected List<Reference>partOfA larger event of which this particular event is a component or step.static ca.uhn.fhir.rest.gclient.ReferenceClientParamPATIENTFluent Client search parameter constant for patientprotected List<NutritionIntake.NutritionIntakePerformerComponent>performerWho performed the intake and how they were involved.protected List<CodeableReference>reasonA reason, Condition or observation for why the food or fluid is /was consumed.protected DateTimeTyperecordedThe date when the Nutrition Intake was asserted by the information source.protected DataTypereportedThe person or organization that provided the information about the consumption of this food or fluid.static ca.uhn.fhir.rest.gclient.ReferenceClientParamSOURCEFluent Client search parameter constant for sourcestatic StringSP_CODESearch parameter: codestatic StringSP_DATESearch parameter: datestatic StringSP_ENCOUNTERSearch parameter: encounterstatic StringSP_IDENTIFIERSearch parameter: identifierstatic StringSP_NUTRITIONSearch parameter: nutritionstatic StringSP_PART_OFSearch parameter: part-ofstatic StringSP_PATIENTSearch parameter: patientstatic StringSP_SOURCESearch parameter: sourcestatic StringSP_STATUSSearch parameter: statusstatic StringSP_SUBJECTSearch parameter: subjectprotected Enumeration<Enumerations.EventStatus>statusA code representing the patient or other source's judgment about the state of the intake that this assertion is about.static ca.uhn.fhir.rest.gclient.TokenClientParamSTATUSFluent Client search parameter constant for statusprotected List<CodeableConcept>statusReasonCaptures the reason for the current state of the NutritionIntake.protected ReferencesubjectThe person, animal or group who is/was consuming the food or fluid.static ca.uhn.fhir.rest.gclient.ReferenceClientParamSUBJECTFluent Client search parameter constant for subject-
Fields inherited from class org.hl7.fhir.r5.model.DomainResource
contained, extension, modifierExtension, SP_TEXT, text, TEXT
-
Fields inherited from class org.hl7.fhir.r5.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description NutritionIntake()ConstructorNutritionIntake(Enumerations.EventStatus status, Reference subject, NutritionIntake.NutritionIntakeConsumedItemComponent consumedItem)Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.r5.model.DomainResource
addContained, addExtension, addExtension, addExtension, addModifierExtension, addModifierExtension, checkNoModifiers, copyValues, getContained, getContained, getExtension, getExtensionByUrl, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasExtension, hasModifierExtension, hasText, setContained, setExtension, setModifierExtension, setText
-
Methods inherited from class org.hl7.fhir.r5.model.Resource
copyValues, getId, getIdBase, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.r5.model.BaseResource
getStructureFhirVersionEnum, isResource, setId
-
Methods inherited from class org.hl7.fhir.r5.model.Base
children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyUserData, copyValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getXhtml, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
-
-
-
-
Field Detail
-
identifier
protected List<Identifier> identifier
Identifiers associated with this Nutrition Intake that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server.
-
instantiatesCanonical
protected List<CanonicalType> instantiatesCanonical
Instantiates FHIR protocol or definition.
-
instantiatesUri
protected List<UriType> instantiatesUri
Instantiates external protocol or definition.
-
basedOn
protected List<Reference> basedOn
A plan, proposal or order that is fulfilled in whole or in part by this event.
-
partOf
protected List<Reference> partOf
A larger event of which this particular event is a component or step.
-
status
protected Enumeration<Enumerations.EventStatus> status
A code representing the patient or other source's judgment about the state of the intake that this assertion is about. Generally, this will be active or completed.
-
statusReason
protected List<CodeableConcept> statusReason
Captures the reason for the current state of the NutritionIntake.
-
code
protected CodeableConcept code
Type of nutrition intake setting/reporting.
-
subject
protected Reference subject
The person, animal or group who is/was consuming the food or fluid.
-
encounter
protected Reference encounter
The encounter that establishes the context for this NutritionIntake.
-
occurrence
protected DataType occurrence
The interval of time during which it is being asserted that the patient is/was consuming the food or fluid.
-
recorded
protected DateTimeType recorded
The date when the Nutrition Intake was asserted by the information source.
-
reported
protected DataType reported
The person or organization that provided the information about the consumption of this food or fluid. Note: Use derivedFrom when a NutritionIntake is derived from other resources.
-
consumedItem
protected List<NutritionIntake.NutritionIntakeConsumedItemComponent> consumedItem
What food or fluid product or item was consumed.
-
ingredientLabel
protected List<NutritionIntake.NutritionIntakeIngredientLabelComponent> ingredientLabel
Total nutrient amounts for the whole meal, product, serving, etc.
-
performer
protected List<NutritionIntake.NutritionIntakePerformerComponent> performer
Who performed the intake and how they were involved.
-
derivedFrom
protected List<Reference> derivedFrom
Allows linking the NutritionIntake to the underlying NutritionOrder, or to other information, such as AllergyIntolerance, that supports or is used to derive the NutritionIntake.
-
reason
protected List<CodeableReference> reason
A reason, Condition or observation for why the food or fluid is /was consumed.
-
note
protected List<Annotation> note
Provides extra information about the Nutrition Intake that is not conveyed by the other attributes.
-
SP_CODE
public static final String SP_CODE
Search parameter: codeDescription: Returns statements of this code of NutritionIntake
Type: token
Path: NutritionIntake.code
- See Also:
- Constant Field Values
-
CODE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE
Fluent Client search parameter constant for codeDescription: Returns statements of this code of NutritionIntake
Type: token
Path: NutritionIntake.code
-
SP_DATE
public static final String SP_DATE
Search parameter: dateDescription: Date when patient was taking (or not taking) the medication
Type: date
Path: NutritionIntake.occurrence
- See Also:
- Constant Field Values
-
DATE
public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE
Fluent Client search parameter constant for dateDescription: Date when patient was taking (or not taking) the medication
Type: date
Path: NutritionIntake.occurrence
-
SP_ENCOUNTER
public static final String SP_ENCOUNTER
Search parameter: encounterDescription: Returns statements for a specific encounter
Type: reference
Path: NutritionIntake.encounter
- See Also:
- Constant Field Values
-
ENCOUNTER
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER
Fluent Client search parameter constant for encounterDescription: Returns statements for a specific encounter
Type: reference
Path: NutritionIntake.encounter
-
INCLUDE_ENCOUNTER
public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER
Constant for fluent queries to be used to add include statements. Specifies the path value of "NutritionIntake:encounter".
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter: identifierDescription: Return statements with this external identifier
Type: token
Path: NutritionIntake.identifier
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
Fluent Client search parameter constant for identifierDescription: Return statements with this external identifier
Type: token
Path: NutritionIntake.identifier
-
SP_NUTRITION
public static final String SP_NUTRITION
Search parameter: nutritionDescription: Return statements of this medication reference
Type: token
Path: NutritionIntake.consumedItem.nutritionProduct
- See Also:
- Constant Field Values
-
NUTRITION
public static final ca.uhn.fhir.rest.gclient.TokenClientParam NUTRITION
Fluent Client search parameter constant for nutritionDescription: Return statements of this medication reference
Type: token
Path: NutritionIntake.consumedItem.nutritionProduct
-
SP_PART_OF
public static final String SP_PART_OF
Search parameter: part-ofDescription: Returns statements that are part of another event.
Type: reference
Path: NutritionIntake.partOf
- See Also:
- Constant Field Values
-
PART_OF
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PART_OF
Fluent Client search parameter constant for part-ofDescription: Returns statements that are part of another event.
Type: reference
Path: NutritionIntake.partOf
-
INCLUDE_PART_OF
public static final ca.uhn.fhir.model.api.Include INCLUDE_PART_OF
Constant for fluent queries to be used to add include statements. Specifies the path value of "NutritionIntake:part-of".
-
SP_PATIENT
public static final String SP_PATIENT
Search parameter: patientDescription: Returns statements for a specific patient.
Type: reference
Path: NutritionIntake.subject.where(resolve() is Patient)
- See Also:
- Constant Field Values
-
PATIENT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
Fluent Client search parameter constant for patientDescription: Returns statements for a specific patient.
Type: reference
Path: NutritionIntake.subject.where(resolve() is Patient)
-
INCLUDE_PATIENT
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "NutritionIntake:patient".
-
SP_SOURCE
public static final String SP_SOURCE
Search parameter: sourceDescription: Who or where the information in the statement came from
Type: reference
Path: (NutritionIntake.reported as Reference)
- See Also:
- Constant Field Values
-
SOURCE
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SOURCE
Fluent Client search parameter constant for sourceDescription: Who or where the information in the statement came from
Type: reference
Path: (NutritionIntake.reported as Reference)
-
INCLUDE_SOURCE
public static final ca.uhn.fhir.model.api.Include INCLUDE_SOURCE
Constant for fluent queries to be used to add include statements. Specifies the path value of "NutritionIntake:source".
-
SP_STATUS
public static final String SP_STATUS
Search parameter: statusDescription: Return statements that match the given status
Type: token
Path: NutritionIntake.status
- See Also:
- Constant Field Values
-
STATUS
public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
Fluent Client search parameter constant for statusDescription: Return statements that match the given status
Type: token
Path: NutritionIntake.status
-
SP_SUBJECT
public static final String SP_SUBJECT
Search parameter: subjectDescription: The identity of a patient, animal or group to list statements for
Type: reference
Path: NutritionIntake.subject
- See Also:
- Constant Field Values
-
SUBJECT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT
Fluent Client search parameter constant for subjectDescription: The identity of a patient, animal or group to list statements for
Type: reference
Path: NutritionIntake.subject
-
INCLUDE_SUBJECT
public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT
Constant for fluent queries to be used to add include statements. Specifies the path value of "NutritionIntake:subject".
-
-
Constructor Detail
-
NutritionIntake
public NutritionIntake()
Constructor
-
NutritionIntake
public NutritionIntake(Enumerations.EventStatus status, Reference subject, NutritionIntake.NutritionIntakeConsumedItemComponent consumedItem)
Constructor
-
-
Method Detail
-
getIdentifier
public List<Identifier> getIdentifier()
- Returns:
identifier(Identifiers associated with this Nutrition Intake that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server.)
-
setIdentifier
public NutritionIntake setIdentifier(List<Identifier> theIdentifier)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasIdentifier
public boolean hasIdentifier()
-
addIdentifier
public Identifier addIdentifier()
-
addIdentifier
public NutritionIntake addIdentifier(Identifier t)
-
getIdentifierFirstRep
public Identifier getIdentifierFirstRep()
- Returns:
- The first repetition of repeating field
identifier, creating it if it does not already exist {3}
-
getInstantiatesCanonical
public List<CanonicalType> getInstantiatesCanonical()
- Returns:
instantiatesCanonical(Instantiates FHIR protocol or definition.)
-
setInstantiatesCanonical
public NutritionIntake setInstantiatesCanonical(List<CanonicalType> theInstantiatesCanonical)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasInstantiatesCanonical
public boolean hasInstantiatesCanonical()
-
addInstantiatesCanonicalElement
public CanonicalType addInstantiatesCanonicalElement()
- Returns:
instantiatesCanonical(Instantiates FHIR protocol or definition.)
-
addInstantiatesCanonical
public NutritionIntake addInstantiatesCanonical(String value)
- Parameters:
value-instantiatesCanonical(Instantiates FHIR protocol or definition.)
-
hasInstantiatesCanonical
public boolean hasInstantiatesCanonical(String value)
- Parameters:
value-instantiatesCanonical(Instantiates FHIR protocol or definition.)
-
getInstantiatesUri
public List<UriType> getInstantiatesUri()
- Returns:
instantiatesUri(Instantiates external protocol or definition.)
-
setInstantiatesUri
public NutritionIntake setInstantiatesUri(List<UriType> theInstantiatesUri)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasInstantiatesUri
public boolean hasInstantiatesUri()
-
addInstantiatesUriElement
public UriType addInstantiatesUriElement()
- Returns:
instantiatesUri(Instantiates external protocol or definition.)
-
addInstantiatesUri
public NutritionIntake addInstantiatesUri(String value)
- Parameters:
value-instantiatesUri(Instantiates external protocol or definition.)
-
hasInstantiatesUri
public boolean hasInstantiatesUri(String value)
- Parameters:
value-instantiatesUri(Instantiates external protocol or definition.)
-
getBasedOn
public List<Reference> getBasedOn()
- Returns:
basedOn(A plan, proposal or order that is fulfilled in whole or in part by this event.)
-
setBasedOn
public NutritionIntake setBasedOn(List<Reference> theBasedOn)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasBasedOn
public boolean hasBasedOn()
-
addBasedOn
public Reference addBasedOn()
-
addBasedOn
public NutritionIntake addBasedOn(Reference t)
-
getBasedOnFirstRep
public Reference getBasedOnFirstRep()
- Returns:
- The first repetition of repeating field
basedOn, creating it if it does not already exist {3}
-
getPartOf
public List<Reference> getPartOf()
- Returns:
partOf(A larger event of which this particular event is a component or step.)
-
setPartOf
public NutritionIntake setPartOf(List<Reference> thePartOf)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasPartOf
public boolean hasPartOf()
-
addPartOf
public NutritionIntake addPartOf(Reference t)
-
getPartOfFirstRep
public Reference getPartOfFirstRep()
- Returns:
- The first repetition of repeating field
partOf, creating it if it does not already exist {3}
-
getStatusElement
public Enumeration<Enumerations.EventStatus> getStatusElement()
- Returns:
status(A code representing the patient or other source's judgment about the state of the intake that this assertion is about. Generally, this will be active or completed.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
hasStatusElement
public boolean hasStatusElement()
-
hasStatus
public boolean hasStatus()
-
setStatusElement
public NutritionIntake setStatusElement(Enumeration<Enumerations.EventStatus> value)
- Parameters:
value-status(A code representing the patient or other source's judgment about the state of the intake that this assertion is about. Generally, this will be active or completed.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
getStatus
public Enumerations.EventStatus getStatus()
- Returns:
- A code representing the patient or other source's judgment about the state of the intake that this assertion is about. Generally, this will be active or completed.
-
setStatus
public NutritionIntake setStatus(Enumerations.EventStatus value)
- Parameters:
value- A code representing the patient or other source's judgment about the state of the intake that this assertion is about. Generally, this will be active or completed.
-
getStatusReason
public List<CodeableConcept> getStatusReason()
- Returns:
statusReason(Captures the reason for the current state of the NutritionIntake.)
-
setStatusReason
public NutritionIntake setStatusReason(List<CodeableConcept> theStatusReason)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasStatusReason
public boolean hasStatusReason()
-
addStatusReason
public CodeableConcept addStatusReason()
-
addStatusReason
public NutritionIntake addStatusReason(CodeableConcept t)
-
getStatusReasonFirstRep
public CodeableConcept getStatusReasonFirstRep()
- Returns:
- The first repetition of repeating field
statusReason, creating it if it does not already exist {3}
-
getCode
public CodeableConcept getCode()
- Returns:
code(Type of nutrition intake setting/reporting.)
-
hasCode
public boolean hasCode()
-
setCode
public NutritionIntake setCode(CodeableConcept value)
- Parameters:
value-code(Type of nutrition intake setting/reporting.)
-
getSubject
public Reference getSubject()
- Returns:
subject(The person, animal or group who is/was consuming the food or fluid.)
-
hasSubject
public boolean hasSubject()
-
setSubject
public NutritionIntake setSubject(Reference value)
- Parameters:
value-subject(The person, animal or group who is/was consuming the food or fluid.)
-
getEncounter
public Reference getEncounter()
- Returns:
encounter(The encounter that establishes the context for this NutritionIntake.)
-
hasEncounter
public boolean hasEncounter()
-
setEncounter
public NutritionIntake setEncounter(Reference value)
- Parameters:
value-encounter(The encounter that establishes the context for this NutritionIntake.)
-
getOccurrence
public DataType getOccurrence()
- Returns:
occurrence(The interval of time during which it is being asserted that the patient is/was consuming the food or fluid.)
-
getOccurrenceDateTimeType
public DateTimeType getOccurrenceDateTimeType() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
occurrence(The interval of time during which it is being asserted that the patient is/was consuming the food or fluid.)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasOccurrenceDateTimeType
public boolean hasOccurrenceDateTimeType()
-
getOccurrencePeriod
public Period getOccurrencePeriod() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
occurrence(The interval of time during which it is being asserted that the patient is/was consuming the food or fluid.)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasOccurrencePeriod
public boolean hasOccurrencePeriod()
-
hasOccurrence
public boolean hasOccurrence()
-
setOccurrence
public NutritionIntake setOccurrence(DataType value)
- Parameters:
value-occurrence(The interval of time during which it is being asserted that the patient is/was consuming the food or fluid.)
-
getRecordedElement
public DateTimeType getRecordedElement()
- Returns:
recorded(The date when the Nutrition Intake was asserted by the information source.). This is the underlying object with id, value and extensions. The accessor "getRecorded" gives direct access to the value
-
hasRecordedElement
public boolean hasRecordedElement()
-
hasRecorded
public boolean hasRecorded()
-
setRecordedElement
public NutritionIntake setRecordedElement(DateTimeType value)
- Parameters:
value-recorded(The date when the Nutrition Intake was asserted by the information source.). This is the underlying object with id, value and extensions. The accessor "getRecorded" gives direct access to the value
-
getRecorded
public Date getRecorded()
- Returns:
- The date when the Nutrition Intake was asserted by the information source.
-
setRecorded
public NutritionIntake setRecorded(Date value)
- Parameters:
value- The date when the Nutrition Intake was asserted by the information source.
-
getReported
public DataType getReported()
- Returns:
reported(The person or organization that provided the information about the consumption of this food or fluid. Note: Use derivedFrom when a NutritionIntake is derived from other resources.)
-
getReportedBooleanType
public BooleanType getReportedBooleanType() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
reported(The person or organization that provided the information about the consumption of this food or fluid. Note: Use derivedFrom when a NutritionIntake is derived from other resources.)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasReportedBooleanType
public boolean hasReportedBooleanType()
-
getReportedReference
public Reference getReportedReference() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
reported(The person or organization that provided the information about the consumption of this food or fluid. Note: Use derivedFrom when a NutritionIntake is derived from other resources.)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasReportedReference
public boolean hasReportedReference()
-
hasReported
public boolean hasReported()
-
setReported
public NutritionIntake setReported(DataType value)
- Parameters:
value-reported(The person or organization that provided the information about the consumption of this food or fluid. Note: Use derivedFrom when a NutritionIntake is derived from other resources.)
-
getConsumedItem
public List<NutritionIntake.NutritionIntakeConsumedItemComponent> getConsumedItem()
- Returns:
consumedItem(What food or fluid product or item was consumed.)
-
setConsumedItem
public NutritionIntake setConsumedItem(List<NutritionIntake.NutritionIntakeConsumedItemComponent> theConsumedItem)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasConsumedItem
public boolean hasConsumedItem()
-
addConsumedItem
public NutritionIntake.NutritionIntakeConsumedItemComponent addConsumedItem()
-
addConsumedItem
public NutritionIntake addConsumedItem(NutritionIntake.NutritionIntakeConsumedItemComponent t)
-
getConsumedItemFirstRep
public NutritionIntake.NutritionIntakeConsumedItemComponent getConsumedItemFirstRep()
- Returns:
- The first repetition of repeating field
consumedItem, creating it if it does not already exist {3}
-
getIngredientLabel
public List<NutritionIntake.NutritionIntakeIngredientLabelComponent> getIngredientLabel()
- Returns:
ingredientLabel(Total nutrient amounts for the whole meal, product, serving, etc.)
-
setIngredientLabel
public NutritionIntake setIngredientLabel(List<NutritionIntake.NutritionIntakeIngredientLabelComponent> theIngredientLabel)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasIngredientLabel
public boolean hasIngredientLabel()
-
addIngredientLabel
public NutritionIntake.NutritionIntakeIngredientLabelComponent addIngredientLabel()
-
addIngredientLabel
public NutritionIntake addIngredientLabel(NutritionIntake.NutritionIntakeIngredientLabelComponent t)
-
getIngredientLabelFirstRep
public NutritionIntake.NutritionIntakeIngredientLabelComponent getIngredientLabelFirstRep()
- Returns:
- The first repetition of repeating field
ingredientLabel, creating it if it does not already exist {3}
-
getPerformer
public List<NutritionIntake.NutritionIntakePerformerComponent> getPerformer()
- Returns:
performer(Who performed the intake and how they were involved.)
-
setPerformer
public NutritionIntake setPerformer(List<NutritionIntake.NutritionIntakePerformerComponent> thePerformer)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasPerformer
public boolean hasPerformer()
-
addPerformer
public NutritionIntake.NutritionIntakePerformerComponent addPerformer()
-
addPerformer
public NutritionIntake addPerformer(NutritionIntake.NutritionIntakePerformerComponent t)
-
getPerformerFirstRep
public NutritionIntake.NutritionIntakePerformerComponent getPerformerFirstRep()
- Returns:
- The first repetition of repeating field
performer, creating it if it does not already exist {3}
-
getLocation
public Reference getLocation()
- Returns:
location(Where the intake occurred.)
-
hasLocation
public boolean hasLocation()
-
setLocation
public NutritionIntake setLocation(Reference value)
- Parameters:
value-location(Where the intake occurred.)
-
getDerivedFrom
public List<Reference> getDerivedFrom()
- Returns:
derivedFrom(Allows linking the NutritionIntake to the underlying NutritionOrder, or to other information, such as AllergyIntolerance, that supports or is used to derive the NutritionIntake.)
-
setDerivedFrom
public NutritionIntake setDerivedFrom(List<Reference> theDerivedFrom)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasDerivedFrom
public boolean hasDerivedFrom()
-
addDerivedFrom
public Reference addDerivedFrom()
-
addDerivedFrom
public NutritionIntake addDerivedFrom(Reference t)
-
getDerivedFromFirstRep
public Reference getDerivedFromFirstRep()
- Returns:
- The first repetition of repeating field
derivedFrom, creating it if it does not already exist {3}
-
getReason
public List<CodeableReference> getReason()
- Returns:
reason(A reason, Condition or observation for why the food or fluid is /was consumed.)
-
setReason
public NutritionIntake setReason(List<CodeableReference> theReason)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasReason
public boolean hasReason()
-
addReason
public CodeableReference addReason()
-
addReason
public NutritionIntake addReason(CodeableReference t)
-
getReasonFirstRep
public CodeableReference getReasonFirstRep()
- Returns:
- The first repetition of repeating field
reason, creating it if it does not already exist {3}
-
getNote
public List<Annotation> getNote()
- Returns:
note(Provides extra information about the Nutrition Intake that is not conveyed by the other attributes.)
-
setNote
public NutritionIntake setNote(List<Annotation> theNote)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasNote
public boolean hasNote()
-
addNote
public Annotation addNote()
-
addNote
public NutritionIntake addNote(Annotation t)
-
getNoteFirstRep
public Annotation getNoteFirstRep()
- Returns:
- The first repetition of repeating field
note, creating it if it does not already exist {3}
-
listChildren
protected void listChildren(List<Property> children)
- Overrides:
listChildrenin classDomainResource
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getNamedPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
makePropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getTypesForPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
public NutritionIntake copy()
- Specified by:
copyin classDomainResource
-
copyValues
public void copyValues(NutritionIntake dst)
-
typedCopy
protected NutritionIntake typedCopy()
-
equalsDeep
public boolean equalsDeep(Base other_)
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
public boolean equalsShallow(Base other_)
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-