public class MedicationProduct extends BackboneElement implements org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString
Java class for Medication.Product complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Medication.Product">
<complexContent>
<extension base="{http://hl7.org/fhir}BackboneElement">
<sequence>
<element name="form" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
<element name="ingredient" type="{http://hl7.org/fhir}Medication.Ingredient" maxOccurs="unbounded" minOccurs="0"/>
<element name="batch" type="{http://hl7.org/fhir}Medication.Batch" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<MedicationBatch> |
batch |
protected CodeableConcept |
form |
protected java.util.List<MedicationIngredient> |
ingredient |
modifierExtension| Constructor and Description |
|---|
MedicationProduct() |
| 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) |
java.util.List<MedicationBatch> |
getBatch()
Gets the value of the batch property.
|
CodeableConcept |
getForm()
Gets the value of the form property.
|
java.util.List<MedicationIngredient> |
getIngredient()
Gets the value of the ingredient property.
|
int |
hashCode() |
int |
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy) |
void |
setForm(CodeableConcept value)
Sets the value of the form property.
|
java.lang.String |
toString() |
MedicationProduct |
withBatch(java.util.Collection<MedicationBatch> values) |
MedicationProduct |
withBatch(MedicationBatch... values) |
MedicationProduct |
withExtension(java.util.Collection<Extension> values) |
MedicationProduct |
withExtension(Extension... values) |
MedicationProduct |
withForm(CodeableConcept value) |
MedicationProduct |
withId(java.lang.String value) |
MedicationProduct |
withIngredient(java.util.Collection<MedicationIngredient> values) |
MedicationProduct |
withIngredient(MedicationIngredient... values) |
MedicationProduct |
withModifierExtension(java.util.Collection<Extension> values) |
MedicationProduct |
withModifierExtension(Extension... values) |
getModifierExtensiongetExtension, getId, setIdprotected CodeableConcept form
protected java.util.List<MedicationIngredient> ingredient
protected java.util.List<MedicationBatch> batch
public CodeableConcept getForm()
CodeableConceptpublic void setForm(CodeableConcept value)
value - allowed object is
CodeableConceptpublic java.util.List<MedicationIngredient> getIngredient()
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 ingredient property.
For example, to add a new item, do as follows:
getIngredient().add(newItem);
Objects of the following type(s) are allowed in the list
MedicationIngredient
public java.util.List<MedicationBatch> getBatch()
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 batch property.
For example, to add a new item, do as follows:
getBatch().add(newItem);
Objects of the following type(s) are allowed in the list
MedicationBatch
public MedicationProduct withForm(CodeableConcept value)
public MedicationProduct withIngredient(MedicationIngredient... values)
public MedicationProduct withIngredient(java.util.Collection<MedicationIngredient> values)
public MedicationProduct withBatch(MedicationBatch... values)
public MedicationProduct withBatch(java.util.Collection<MedicationBatch> values)
public MedicationProduct withModifierExtension(Extension... values)
withModifierExtension in class BackboneElementpublic MedicationProduct withModifierExtension(java.util.Collection<Extension> values)
withModifierExtension in class BackboneElementpublic MedicationProduct withExtension(Extension... values)
withExtension in class BackboneElementpublic MedicationProduct withExtension(java.util.Collection<Extension> values)
withExtension in class BackboneElementpublic MedicationProduct 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