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.NutritionIntakeStatusCodesstatic classNutritionIntake.NutritionIntakeStatusCodesEnumFactory
-
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 List<CodeableConcept>categoryIndicates where the food or fluid was consumed or prescribed.static ca.uhn.fhir.rest.gclient.TokenClientParamCATEGORYFluent Client search parameter constant for categoryprotected List<NutritionIntake.NutritionIntakeConsumedItemComponent>consumedItemWhat food or fluid product or item was consumed.protected DateTimeTypedateAssertedThe date when the Nutrition Intake was asserted by the information source.protected 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 DataTypeeffectiveThe 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.DateClientParamEFFECTIVEFluent Client search parameter constant for effectiveprotected 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 ReferenceinformationSourceThe person or organization that provided the information about the consumption of this food or fluid.protected List<NutritionIntake.NutritionIntakeIngredientLabelComponent>ingredientLabelTotal nutrient amounts for the whole meal, product, serving, etc.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 nutritionstatic 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<CodeableReference>reasonCodeA reason, Condition or observation for why the food or fluid is /was consumed.static ca.uhn.fhir.rest.gclient.ReferenceClientParamSOURCEFluent Client search parameter constant for sourcestatic StringSP_CATEGORYSearch parameter: categorystatic StringSP_EFFECTIVESearch parameter: effectivestatic 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<NutritionIntake.NutritionIntakeStatusCodes>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(NutritionIntake.NutritionIntakeStatusCodes status, NutritionIntake.NutritionIntakeConsumedItemComponent consumedItem, Reference subject)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, copyValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, 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.
-
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<NutritionIntake.NutritionIntakeStatusCodes> 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.
-
category
protected List<CodeableConcept> category
Indicates where the food or fluid was consumed or prescribed.
-
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.
-
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.
-
effective
protected DataType effective
The interval of time during which it is being asserted that the patient is/was consuming the food or fluid.
-
dateAsserted
protected DateTimeType dateAsserted
The date when the Nutrition Intake was asserted by the information source.
-
informationSource
protected Reference informationSource
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.
-
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.
-
reasonCode
protected List<CodeableReference> reasonCode
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_CATEGORY
public static final String SP_CATEGORY
Search parameter: categoryDescription: Returns statements of this category of NutritionIntake
Type: token
Path: NutritionIntake.category
- See Also:
- Constant Field Values
-
CATEGORY
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CATEGORY
Fluent Client search parameter constant for categoryDescription: Returns statements of this category of NutritionIntake
Type: token
Path: NutritionIntake.category
-
SP_EFFECTIVE
public static final String SP_EFFECTIVE
Search parameter: effectiveDescription: Date when patient was taking (or not taking) the medication
Type: date
Path: NutritionIntake.effective
- See Also:
- Constant Field Values
-
EFFECTIVE
public static final ca.uhn.fhir.rest.gclient.DateClientParam EFFECTIVE
Fluent Client search parameter constant for effectiveDescription: Date when patient was taking (or not taking) the medication
Type: date
Path: NutritionIntake.effective
-
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.informationSource
- 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.informationSource
-
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(NutritionIntake.NutritionIntakeStatusCodes status, NutritionIntake.NutritionIntakeConsumedItemComponent consumedItem, Reference subject)
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}
-
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<NutritionIntake.NutritionIntakeStatusCodes> 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<NutritionIntake.NutritionIntakeStatusCodes> 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 NutritionIntake.NutritionIntakeStatusCodes 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(NutritionIntake.NutritionIntakeStatusCodes 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}
-
getCategory
public List<CodeableConcept> getCategory()
- Returns:
category(Indicates where the food or fluid was consumed or prescribed.)
-
setCategory
public NutritionIntake setCategory(List<CodeableConcept> theCategory)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasCategory
public boolean hasCategory()
-
addCategory
public CodeableConcept addCategory()
-
addCategory
public NutritionIntake addCategory(CodeableConcept t)
-
getCategoryFirstRep
public CodeableConcept getCategoryFirstRep()
- Returns:
- The first repetition of repeating field
category, creating it if it does not already exist {3}
-
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}
-
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.)
-
getEffective
public DataType getEffective()
- Returns:
effective(The interval of time during which it is being asserted that the patient is/was consuming the food or fluid.)
-
getEffectiveDateTimeType
public DateTimeType getEffectiveDateTimeType() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
effective(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
-
hasEffectiveDateTimeType
public boolean hasEffectiveDateTimeType()
-
getEffectivePeriod
public Period getEffectivePeriod() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
effective(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
-
hasEffectivePeriod
public boolean hasEffectivePeriod()
-
hasEffective
public boolean hasEffective()
-
setEffective
public NutritionIntake setEffective(DataType value)
- Parameters:
value-effective(The interval of time during which it is being asserted that the patient is/was consuming the food or fluid.)
-
getDateAssertedElement
public DateTimeType getDateAssertedElement()
- Returns:
dateAsserted(The date when the Nutrition Intake was asserted by the information source.). This is the underlying object with id, value and extensions. The accessor "getDateAsserted" gives direct access to the value
-
hasDateAssertedElement
public boolean hasDateAssertedElement()
-
hasDateAsserted
public boolean hasDateAsserted()
-
setDateAssertedElement
public NutritionIntake setDateAssertedElement(DateTimeType value)
- Parameters:
value-dateAsserted(The date when the Nutrition Intake was asserted by the information source.). This is the underlying object with id, value and extensions. The accessor "getDateAsserted" gives direct access to the value
-
getDateAsserted
public Date getDateAsserted()
- Returns:
- The date when the Nutrition Intake was asserted by the information source.
-
setDateAsserted
public NutritionIntake setDateAsserted(Date value)
- Parameters:
value- The date when the Nutrition Intake was asserted by the information source.
-
getInformationSource
public Reference getInformationSource()
- Returns:
informationSource(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.)
-
hasInformationSource
public boolean hasInformationSource()
-
setInformationSource
public NutritionIntake setInformationSource(Reference value)
- Parameters:
value-informationSource(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.)
-
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}
-
getReasonCode
public List<CodeableReference> getReasonCode()
- Returns:
reasonCode(A reason, Condition or observation for why the food or fluid is /was consumed.)
-
setReasonCode
public NutritionIntake setReasonCode(List<CodeableReference> theReasonCode)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasReasonCode
public boolean hasReasonCode()
-
addReasonCode
public CodeableReference addReasonCode()
-
addReasonCode
public NutritionIntake addReasonCode(CodeableReference t)
-
getReasonCodeFirstRep
public CodeableReference getReasonCodeFirstRep()
- Returns:
- The first repetition of repeating field
reasonCode, 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
-
-