public class MedicationDispenseSubstitution extends BackboneElement implements org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString
Java class for MedicationDispense.Substitution complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="MedicationDispense.Substitution">
<complexContent>
<extension base="{http://hl7.org/fhir}BackboneElement">
<sequence>
<element name="type" type="{http://hl7.org/fhir}CodeableConcept"/>
<element name="reason" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
<element name="responsibleParty" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<CodeableConcept> |
reason |
protected java.util.List<Reference> |
responsibleParty |
protected CodeableConcept |
type |
modifierExtension| Constructor and Description |
|---|
MedicationDispenseSubstitution() |
| 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<CodeableConcept> |
getReason()
Gets the value of the reason property.
|
java.util.List<Reference> |
getResponsibleParty()
Gets the value of the responsibleParty 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 |
setType(CodeableConcept value)
Sets the value of the type property.
|
java.lang.String |
toString() |
MedicationDispenseSubstitution |
withExtension(java.util.Collection<Extension> values) |
MedicationDispenseSubstitution |
withExtension(Extension... values) |
MedicationDispenseSubstitution |
withId(java.lang.String value) |
MedicationDispenseSubstitution |
withModifierExtension(java.util.Collection<Extension> values) |
MedicationDispenseSubstitution |
withModifierExtension(Extension... values) |
MedicationDispenseSubstitution |
withReason(CodeableConcept... values) |
MedicationDispenseSubstitution |
withReason(java.util.Collection<CodeableConcept> values) |
MedicationDispenseSubstitution |
withResponsibleParty(java.util.Collection<Reference> values) |
MedicationDispenseSubstitution |
withResponsibleParty(Reference... values) |
MedicationDispenseSubstitution |
withType(CodeableConcept value) |
getModifierExtensiongetExtension, getId, setIdprotected CodeableConcept type
protected java.util.List<CodeableConcept> reason
protected java.util.List<Reference> responsibleParty
public CodeableConcept getType()
CodeableConceptpublic void setType(CodeableConcept value)
value - allowed object is
CodeableConceptpublic java.util.List<CodeableConcept> getReason()
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 reason property.
For example, to add a new item, do as follows:
getReason().add(newItem);
Objects of the following type(s) are allowed in the list
CodeableConcept
public java.util.List<Reference> getResponsibleParty()
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 responsibleParty property.
For example, to add a new item, do as follows:
getResponsibleParty().add(newItem);
Objects of the following type(s) are allowed in the list
Reference
public MedicationDispenseSubstitution withType(CodeableConcept value)
public MedicationDispenseSubstitution withReason(CodeableConcept... values)
public MedicationDispenseSubstitution withReason(java.util.Collection<CodeableConcept> values)
public MedicationDispenseSubstitution withResponsibleParty(Reference... values)
public MedicationDispenseSubstitution withResponsibleParty(java.util.Collection<Reference> values)
public MedicationDispenseSubstitution withModifierExtension(Extension... values)
withModifierExtension in class BackboneElementpublic MedicationDispenseSubstitution withModifierExtension(java.util.Collection<Extension> values)
withModifierExtension in class BackboneElementpublic MedicationDispenseSubstitution withExtension(Extension... values)
withExtension in class BackboneElementpublic MedicationDispenseSubstitution withExtension(java.util.Collection<Extension> values)
withExtension in class BackboneElementpublic MedicationDispenseSubstitution 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