public class MedicationIngredient 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.Ingredient complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Medication.Ingredient">
<complexContent>
<extension base="{http://hl7.org/fhir}BackboneElement">
<sequence>
<choice>
<element name="itemCodeableConcept" type="{http://hl7.org/fhir}CodeableConcept"/>
<element name="itemReference" type="{http://hl7.org/fhir}Reference"/>
</choice>
<element name="amount" type="{http://hl7.org/fhir}Ratio" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected Ratio |
amount |
protected CodeableConcept |
itemCodeableConcept |
protected Reference |
itemReference |
modifierExtension| Constructor and Description |
|---|
MedicationIngredient() |
| 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) |
Ratio |
getAmount()
Gets the value of the amount property.
|
CodeableConcept |
getItemCodeableConcept()
Gets the value of the itemCodeableConcept property.
|
Reference |
getItemReference()
Gets the value of the itemReference property.
|
int |
hashCode() |
int |
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy) |
void |
setAmount(Ratio value)
Sets the value of the amount property.
|
void |
setItemCodeableConcept(CodeableConcept value)
Sets the value of the itemCodeableConcept property.
|
void |
setItemReference(Reference value)
Sets the value of the itemReference property.
|
java.lang.String |
toString() |
MedicationIngredient |
withAmount(Ratio value) |
MedicationIngredient |
withExtension(java.util.Collection<Extension> values) |
MedicationIngredient |
withExtension(Extension... values) |
MedicationIngredient |
withId(java.lang.String value) |
MedicationIngredient |
withItemCodeableConcept(CodeableConcept value) |
MedicationIngredient |
withItemReference(Reference value) |
MedicationIngredient |
withModifierExtension(java.util.Collection<Extension> values) |
MedicationIngredient |
withModifierExtension(Extension... values) |
getModifierExtensiongetExtension, getId, setIdprotected CodeableConcept itemCodeableConcept
protected Reference itemReference
protected Ratio amount
public CodeableConcept getItemCodeableConcept()
CodeableConceptpublic void setItemCodeableConcept(CodeableConcept value)
value - allowed object is
CodeableConceptpublic Reference getItemReference()
Referencepublic void setItemReference(Reference value)
value - allowed object is
Referencepublic Ratio getAmount()
Ratiopublic void setAmount(Ratio value)
value - allowed object is
Ratiopublic MedicationIngredient withItemCodeableConcept(CodeableConcept value)
public MedicationIngredient withItemReference(Reference value)
public MedicationIngredient withAmount(Ratio value)
public MedicationIngredient withModifierExtension(Extension... values)
withModifierExtension in class BackboneElementpublic MedicationIngredient withModifierExtension(java.util.Collection<Extension> values)
withModifierExtension in class BackboneElementpublic MedicationIngredient withExtension(Extension... values)
withExtension in class BackboneElementpublic MedicationIngredient withExtension(java.util.Collection<Extension> values)
withExtension in class BackboneElementpublic MedicationIngredient 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