Class NutritionProduct
- 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
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static enum
static class
Nested classes/interfaces inherited from class org.hl7.fhir.r5.model.Base
Base.ProfileSource, Base.ValidationInfo, Base.ValidationMode, Base.ValidationReason
-
Field Summary
Modifier and TypeFieldDescriptionprotected List
<CodeableConcept> Nutrition products can have different classifications - according to its nutritional properties, preparation methods, etc.Specifies descriptive properties of the nutrition product.protected CodeableConcept
The code assigned to the product, for example a USDA NDB number, a USDA FDC ID number, or a Langual code.static final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for codestatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for identifierIngredients contained in this product.Conveys instance-level information about this product item.protected List
<CodeableReference> Allergens that are known or suspected to be a part of this nutrition product.static final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for lot-numberThe organisation (manufacturer, representative or legal authorization holder) that is responsible for the device.protected List
<Annotation> Comments made about the product.The product's nutritional information expressed by the nutrients.static final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for serial-numberstatic final String
Search parameter: codestatic final String
Search parameter: identifierstatic final String
Search parameter: lot-numberstatic final String
Search parameter: serial-numberstatic final String
Search parameter: statusThe current state of the product.static final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for statusFields 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
Fields inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
RES_ID, RES_LAST_UPDATED, RES_PROFILE, RES_SECURITY, RES_TAG, SP_RES_ID, SP_RES_LAST_UPDATED, SP_RES_PROFILE, SP_RES_SECURITY, SP_RES_TAG
Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET
-
Constructor Summary
ConstructorDescriptionConstructorConstructor -
Method Summary
Modifier and TypeMethodDescriptionaddNote()
copy()
void
boolean
equalsDeep
(Base other_) boolean
equalsShallow
(Base other_) fhirType()
getCode()
getNamedProperty
(int _hash, String _name, boolean _checkValid) getNote()
Base[]
getProperty
(int hash, String name, boolean checkValid) String[]
getTypesForProperty
(int hash, String name) boolean
boolean
boolean
hasCode()
boolean
boolean
boolean
boolean
boolean
hasNote()
boolean
boolean
boolean
boolean
isEmpty()
protected void
listChildren
(List<Property> children) makeProperty
(int hash, String name) void
removeChild
(String name, Base value) setCategory
(List<CodeableConcept> theCategory) setCharacteristic
(List<NutritionProduct.NutritionProductCharacteristicComponent> theCharacteristic) setCode
(CodeableConcept value) setIngredient
(List<NutritionProduct.NutritionProductIngredientComponent> theIngredient) setKnownAllergen
(List<CodeableReference> theKnownAllergen) setManufacturer
(List<Reference> theManufacturer) setNote
(List<Annotation> theNote) setProperty
(int hash, String name, Base value) setProperty
(String name, Base value) protected NutritionProduct
Methods inherited from class org.hl7.fhir.r5.model.DomainResource
addContained, addExtension, addExtension, addExtension, addModifierExtension, addModifierExtension, checkNoModifiers, copyValues, getContained, getContained, getExtension, getExtensionByUrl, getExtensionsByUrl, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getStandardsStatus, getText, hasContained, hasExtension, hasExtension, hasExtension, hasModifierExtension, hasText, setContained, setExtension, setModifierExtension, setStandardsStatus, setText
Methods inherited from class org.hl7.fhir.r5.model.Resource
copyValues, getFHIRPublicationVersion, getId, getIdBase, getIdElement, getIdPart, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguage, getLanguageElement, getMeta, getSourcePackage, getWebPath, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, hasSourcePackage, hasWebPath, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta, setSourcePackage, setWebPath
Methods inherited from class org.hl7.fhir.r5.model.BaseResource
getStructureFhirVersionEnum, isResource, setId
Methods inherited from class org.hl7.fhir.r5.model.Base
addDefinition, addFormatCommentsPost, addFormatCommentsPre, addValidationMessage, canHavePrimitiveValue, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyFormatComments, copyUserData, copyValues, dateTimeValue, equals, getChildByName, getChildValueByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getValidationInfo, getValidationMessages, getXhtml, hasFormatComment, hasFormatCommentPost, hasFormatCommentPre, hasPrimitiveValue, hasType, hasUserData, hasValidated, hasValidationInfo, hasValidationMessages, isBooleanPrimitive, isCopyUserData, isDateTime, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setCopyUserData, 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
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, hasFormatComment
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getMeta, getStructureFhirVersionEnum, isDeleted, setId
-
Field Details
-
code
The code assigned to the product, for example a USDA NDB number, a USDA FDC ID number, or a Langual code. -
status
The current state of the product. -
category
Nutrition products can have different classifications - according to its nutritional properties, preparation methods, etc. -
manufacturer
The organisation (manufacturer, representative or legal authorization holder) that is responsible for the device. -
nutrient
The product's nutritional information expressed by the nutrients. -
ingredient
Ingredients contained in this product. -
knownAllergen
Allergens that are known or suspected to be a part of this nutrition product. -
characteristic
Specifies descriptive properties of the nutrition product. -
instance
Conveys instance-level information about this product item. One or several physical, countable instances or occurrences of the product. -
note
Comments made about the product. -
SP_CODE
Search parameter: codeDescription: The code identifying a specific nutrition product
Type: token
Path: NutritionProduct.code
- See Also:
-
CODE
Fluent Client search parameter constant for codeDescription: The code identifying a specific nutrition product
Type: token
Path: NutritionProduct.code
-
SP_IDENTIFIER
Search parameter: identifierDescription: The identifier for the physical instance, typically a serial number
Type: token
Path: NutritionProduct.instance.identifier
- See Also:
-
IDENTIFIER
Fluent Client search parameter constant for identifierDescription: The identifier for the physical instance, typically a serial number
Type: token
Path: NutritionProduct.instance.identifier
-
SP_LOT_NUMBER
Search parameter: lot-numberDescription: The lot number
Type: token
Path: NutritionProduct.instance.lotNumber
- See Also:
-
LOT_NUMBER
Fluent Client search parameter constant for lot-numberDescription: The lot number
Type: token
Path: NutritionProduct.instance.lotNumber
-
SP_SERIAL_NUMBER
Search parameter: serial-numberDescription: The serial number
Type: token
Path: NutritionProduct.instance.identifier
- See Also:
-
SERIAL_NUMBER
Fluent Client search parameter constant for serial-numberDescription: The serial number
Type: token
Path: NutritionProduct.instance.identifier
-
SP_STATUS
Search parameter: statusDescription: The broad product group or category of the nutrition product
Type: token
Path: NutritionProduct.category
- See Also:
-
STATUS
Fluent Client search parameter constant for statusDescription: The broad product group or category of the nutrition product
Type: token
Path: NutritionProduct.category
-
-
Constructor Details
-
NutritionProduct
public NutritionProduct()Constructor -
NutritionProduct
Constructor
-
-
Method Details
-
getCode
- Returns:
code
(The code assigned to the product, for example a USDA NDB number, a USDA FDC ID number, or a Langual code.)
-
hasCode
-
setCode
- Parameters:
value
-code
(The code assigned to the product, for example a USDA NDB number, a USDA FDC ID number, or a Langual code.)
-
getStatusElement
- Returns:
status
(The current state of the product.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
hasStatusElement
-
hasStatus
-
setStatusElement
public NutritionProduct setStatusElement(Enumeration<NutritionProduct.NutritionProductStatus> value) - Parameters:
value
-status
(The current state of the product.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
getStatus
- Returns:
- The current state of the product.
-
setStatus
- Parameters:
value
- The current state of the product.
-
getCategory
- Returns:
category
(Nutrition products can have different classifications - according to its nutritional properties, preparation methods, etc.)
-
setCategory
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasCategory
-
addCategory
-
addCategory
-
getCategoryFirstRep
- Returns:
- The first repetition of repeating field
category
, creating it if it does not already exist {3}
-
getManufacturer
- Returns:
manufacturer
(The organisation (manufacturer, representative or legal authorization holder) that is responsible for the device.)
-
setManufacturer
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasManufacturer
-
addManufacturer
-
addManufacturer
-
getManufacturerFirstRep
- Returns:
- The first repetition of repeating field
manufacturer
, creating it if it does not already exist {3}
-
getNutrient
- Returns:
nutrient
(The product's nutritional information expressed by the nutrients.)
-
setNutrient
public NutritionProduct setNutrient(List<NutritionProduct.NutritionProductNutrientComponent> theNutrient) - Returns:
- Returns a reference to
this
for easy method chaining
-
hasNutrient
-
addNutrient
-
addNutrient
-
getNutrientFirstRep
- Returns:
- The first repetition of repeating field
nutrient
, creating it if it does not already exist {3}
-
getIngredient
- Returns:
ingredient
(Ingredients contained in this product.)
-
setIngredient
public NutritionProduct setIngredient(List<NutritionProduct.NutritionProductIngredientComponent> theIngredient) - Returns:
- Returns a reference to
this
for easy method chaining
-
hasIngredient
-
addIngredient
-
addIngredient
-
getIngredientFirstRep
- Returns:
- The first repetition of repeating field
ingredient
, creating it if it does not already exist {3}
-
getKnownAllergen
- Returns:
knownAllergen
(Allergens that are known or suspected to be a part of this nutrition product.)
-
setKnownAllergen
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasKnownAllergen
-
addKnownAllergen
-
addKnownAllergen
-
getKnownAllergenFirstRep
- Returns:
- The first repetition of repeating field
knownAllergen
, creating it if it does not already exist {3}
-
getCharacteristic
- Returns:
characteristic
(Specifies descriptive properties of the nutrition product.)
-
setCharacteristic
public NutritionProduct setCharacteristic(List<NutritionProduct.NutritionProductCharacteristicComponent> theCharacteristic) - Returns:
- Returns a reference to
this
for easy method chaining
-
hasCharacteristic
-
addCharacteristic
-
addCharacteristic
-
getCharacteristicFirstRep
- Returns:
- The first repetition of repeating field
characteristic
, creating it if it does not already exist {3}
-
getInstance
- Returns:
instance
(Conveys instance-level information about this product item. One or several physical, countable instances or occurrences of the product.)
-
setInstance
public NutritionProduct setInstance(List<NutritionProduct.NutritionProductInstanceComponent> theInstance) - Returns:
- Returns a reference to
this
for easy method chaining
-
hasInstance
-
addInstance
-
addInstance
-
getInstanceFirstRep
- Returns:
- The first repetition of repeating field
instance
, creating it if it does not already exist {3}
-
getNote
- Returns:
note
(Comments made about the product.)
-
setNote
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasNote
-
addNote
-
addNote
-
getNoteFirstRep
- Returns:
- The first repetition of repeating field
note
, creating it if it does not already exist {3}
-
listChildren
- Overrides:
listChildren
in classDomainResource
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getNamedProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
setProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
- Overrides:
setProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
removeChild
- Overrides:
removeChild
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- Overrides:
makeProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getTypesForProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
- Overrides:
addChild
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
- Specified by:
fhirType
in interfaceorg.hl7.fhir.instance.model.api.IBase
- Overrides:
fhirType
in classDomainResource
- Returns:
- the FHIR type name of the instance (not the java class name)
-
copy
- Specified by:
copy
in classDomainResource
-
copyValues
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeep
in classDomainResource
-
equalsShallow
- Overrides:
equalsShallow
in classDomainResource
-
isEmpty
- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
- Overrides:
isEmpty
in classDomainResource
-
getResourceType
- Specified by:
getResourceType
in classResource
-