public class NutritionOrderSupplement extends BackboneElement implements org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString
Java class for NutritionOrder.Supplement complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="NutritionOrder.Supplement">
<complexContent>
<extension base="{http://hl7.org/fhir}BackboneElement">
<sequence>
<element name="type" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
<element name="productName" type="{http://hl7.org/fhir}string" minOccurs="0"/>
<element name="schedule" type="{http://hl7.org/fhir}Timing" maxOccurs="unbounded" minOccurs="0"/>
<element name="quantity" type="{http://hl7.org/fhir}SimpleQuantity" minOccurs="0"/>
<element name="instruction" type="{http://hl7.org/fhir}string" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
instruction |
protected String |
productName |
protected SimpleQuantity |
quantity |
protected java.util.List<Timing> |
schedule |
protected CodeableConcept |
type |
modifierExtension| Constructor and Description |
|---|
NutritionOrderSupplement() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuilder |
append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy) |
java.lang.StringBuilder |
appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy) |
boolean |
equals(java.lang.Object object) |
boolean |
equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
java.lang.Object object,
org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy) |
String |
getInstruction()
Gets the value of the instruction property.
|
String |
getProductName()
Gets the value of the productName property.
|
SimpleQuantity |
getQuantity()
Gets the value of the quantity property.
|
java.util.List<Timing> |
getSchedule()
Gets the value of the schedule property.
|
CodeableConcept |
getType()
Gets the value of the type property.
|
int |
hashCode() |
int |
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy) |
void |
setInstruction(String value)
Sets the value of the instruction property.
|
void |
setProductName(String value)
Sets the value of the productName property.
|
void |
setQuantity(SimpleQuantity value)
Sets the value of the quantity property.
|
void |
setType(CodeableConcept value)
Sets the value of the type property.
|
java.lang.String |
toString() |
NutritionOrderSupplement |
withExtension(java.util.Collection<Extension> values) |
NutritionOrderSupplement |
withExtension(Extension... values) |
NutritionOrderSupplement |
withId(java.lang.String value) |
NutritionOrderSupplement |
withInstruction(String value) |
NutritionOrderSupplement |
withModifierExtension(java.util.Collection<Extension> values) |
NutritionOrderSupplement |
withModifierExtension(Extension... values) |
NutritionOrderSupplement |
withProductName(String value) |
NutritionOrderSupplement |
withQuantity(SimpleQuantity value) |
NutritionOrderSupplement |
withSchedule(java.util.Collection<Timing> values) |
NutritionOrderSupplement |
withSchedule(Timing... values) |
NutritionOrderSupplement |
withType(CodeableConcept value) |
getModifierExtensiongetExtension, getId, setIdprotected CodeableConcept type
protected String productName
protected java.util.List<Timing> schedule
protected SimpleQuantity quantity
protected String instruction
public CodeableConcept getType()
CodeableConceptpublic void setType(CodeableConcept value)
value - allowed object is
CodeableConceptpublic String getProductName()
Stringpublic void setProductName(String value)
value - allowed object is
Stringpublic java.util.List<Timing> getSchedule()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the schedule property.
For example, to add a new item, do as follows:
getSchedule().add(newItem);
Objects of the following type(s) are allowed in the list
Timing
public SimpleQuantity getQuantity()
SimpleQuantitypublic void setQuantity(SimpleQuantity value)
value - allowed object is
SimpleQuantitypublic String getInstruction()
Stringpublic void setInstruction(String value)
value - allowed object is
Stringpublic NutritionOrderSupplement withType(CodeableConcept value)
public NutritionOrderSupplement withProductName(String value)
public NutritionOrderSupplement withSchedule(Timing... values)
public NutritionOrderSupplement withSchedule(java.util.Collection<Timing> values)
public NutritionOrderSupplement withQuantity(SimpleQuantity value)
public NutritionOrderSupplement withInstruction(String value)
public NutritionOrderSupplement withModifierExtension(Extension... values)
withModifierExtension in class BackboneElementpublic NutritionOrderSupplement withModifierExtension(java.util.Collection<Extension> values)
withModifierExtension in class BackboneElementpublic NutritionOrderSupplement withExtension(Extension... values)
withExtension in class BackboneElementpublic NutritionOrderSupplement withExtension(java.util.Collection<Extension> values)
withExtension in class BackboneElementpublic NutritionOrderSupplement withId(java.lang.String value)
withId in class BackboneElementpublic boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
java.lang.Object object,
org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
equals in interface org.jvnet.jaxb2_commons.lang.Equalsequals in class BackboneElementpublic boolean equals(java.lang.Object object)
equals in class BackboneElementpublic int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
hashCode in interface org.jvnet.jaxb2_commons.lang.HashCodehashCode in class BackboneElementpublic int hashCode()
hashCode in class BackboneElementpublic java.lang.String toString()
toString in class BackboneElementpublic java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
append in interface org.jvnet.jaxb2_commons.lang.ToStringappend in class BackboneElementpublic java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
appendFields in interface org.jvnet.jaxb2_commons.lang.ToStringappendFields in class BackboneElement