public class Medication extends DomainResource implements org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString
Java class for Medication complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Medication">
<complexContent>
<extension base="{http://hl7.org/fhir}DomainResource">
<sequence>
<element name="code" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
<element name="isBrand" type="{http://hl7.org/fhir}boolean" minOccurs="0"/>
<element name="manufacturer" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
<element name="product" type="{http://hl7.org/fhir}Medication.Product" minOccurs="0"/>
<element name="package" type="{http://hl7.org/fhir}Medication.Package" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected MedicationPackage |
_package |
protected CodeableConcept |
code |
protected Boolean |
isBrand |
protected Reference |
manufacturer |
protected MedicationProduct |
product |
contained, extension, modifierExtension, textid, implicitRules, language, meta| Constructor and Description |
|---|
Medication() |
| 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) |
CodeableConcept |
getCode()
Gets the value of the code property.
|
Boolean |
getIsBrand()
Gets the value of the isBrand property.
|
Reference |
getManufacturer()
Gets the value of the manufacturer property.
|
MedicationPackage |
getPackage()
Gets the value of the package property.
|
MedicationProduct |
getProduct()
Gets the value of the product property.
|
int |
hashCode() |
int |
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy) |
void |
setCode(CodeableConcept value)
Sets the value of the code property.
|
void |
setIsBrand(Boolean value)
Sets the value of the isBrand property.
|
void |
setManufacturer(Reference value)
Sets the value of the manufacturer property.
|
void |
setPackage(MedicationPackage value)
Sets the value of the package property.
|
void |
setProduct(MedicationProduct value)
Sets the value of the product property.
|
java.lang.String |
toString() |
Medication |
withCode(CodeableConcept value) |
Medication |
withContained(java.util.Collection<ResourceContainer> values) |
Medication |
withContained(ResourceContainer... values) |
Medication |
withExtension(java.util.Collection<Extension> values) |
Medication |
withExtension(Extension... values) |
Medication |
withId(Id value) |
Medication |
withImplicitRules(Uri value) |
Medication |
withIsBrand(Boolean value) |
Medication |
withLanguage(Code value) |
Medication |
withManufacturer(Reference value) |
Medication |
withMeta(Meta value) |
Medication |
withModifierExtension(java.util.Collection<Extension> values) |
Medication |
withModifierExtension(Extension... values) |
Medication |
withPackage(MedicationPackage value) |
Medication |
withProduct(MedicationProduct value) |
Medication |
withText(Narrative value) |
getContained, getExtension, getModifierExtension, getText, setTextgetId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMetaprotected CodeableConcept code
protected Boolean isBrand
protected Reference manufacturer
protected MedicationProduct product
protected MedicationPackage _package
public CodeableConcept getCode()
CodeableConceptpublic void setCode(CodeableConcept value)
value - allowed object is
CodeableConceptpublic Boolean getIsBrand()
Booleanpublic void setIsBrand(Boolean value)
value - allowed object is
Booleanpublic Reference getManufacturer()
Referencepublic void setManufacturer(Reference value)
value - allowed object is
Referencepublic MedicationProduct getProduct()
MedicationProductpublic void setProduct(MedicationProduct value)
value - allowed object is
MedicationProductpublic MedicationPackage getPackage()
MedicationPackagepublic void setPackage(MedicationPackage value)
value - allowed object is
MedicationPackagepublic Medication withCode(CodeableConcept value)
public Medication withIsBrand(Boolean value)
public Medication withManufacturer(Reference value)
public Medication withProduct(MedicationProduct value)
public Medication withPackage(MedicationPackage value)
public Medication withText(Narrative value)
withText in class DomainResourcepublic Medication withContained(ResourceContainer... values)
withContained in class DomainResourcepublic Medication withContained(java.util.Collection<ResourceContainer> values)
withContained in class DomainResourcepublic Medication withExtension(Extension... values)
withExtension in class DomainResourcepublic Medication withExtension(java.util.Collection<Extension> values)
withExtension in class DomainResourcepublic Medication withModifierExtension(Extension... values)
withModifierExtension in class DomainResourcepublic Medication withModifierExtension(java.util.Collection<Extension> values)
withModifierExtension in class DomainResourcepublic Medication withId(Id value)
withId in class DomainResourcepublic Medication withMeta(Meta value)
withMeta in class DomainResourcepublic Medication withImplicitRules(Uri value)
withImplicitRules in class DomainResourcepublic Medication withLanguage(Code value)
withLanguage in class DomainResourcepublic 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 DomainResourcepublic boolean equals(java.lang.Object object)
equals in class DomainResourcepublic 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 DomainResourcepublic int hashCode()
hashCode in class DomainResourcepublic java.lang.String toString()
toString in class DomainResourcepublic 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 DomainResourcepublic 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 DomainResource