
org.hl7.v3.COCTMT230100UVMedication Maven / Gradle / Ivy
Show all versions of ihe-iti Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.12.15 at 11:19:24 AM PST
//
package org.hl7.v3;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
/**
* Java class for COCT_MT230100UV.Medication complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="COCT_MT230100UV.Medication">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <group ref="{urn:hl7-org:v3}InfrastructureRootElements"/>
* <element name="administerableMedicine" type="{urn:hl7-org:v3}COCT_MT230100UV.Medicine"/>
* <element name="subjectOf1" type="{urn:hl7-org:v3}COCT_MT230100UV.Subject2" maxOccurs="unbounded" minOccurs="0"/>
* <element name="subjectOf2" type="{urn:hl7-org:v3}COCT_MT230100UV.Subject1" maxOccurs="unbounded" minOccurs="0"/>
* <element name="subjectOf3" type="{urn:hl7-org:v3}COCT_MT230100UV.Subject22" maxOccurs="unbounded" minOccurs="0"/>
* <element name="subjectOf4" type="{urn:hl7-org:v3}COCT_MT230100UV.Subject3" maxOccurs="unbounded" minOccurs="0"/>
* <element name="subjectOf5" type="{urn:hl7-org:v3}COCT_MT230100UV.Subject7" minOccurs="0"/>
* </sequence>
* <attGroup ref="{urn:hl7-org:v3}InfrastructureRootAttributes"/>
* <attribute name="nullFlavor" type="{urn:hl7-org:v3}NullFlavor" />
* <attribute name="classCode" use="required" type="{urn:hl7-org:v3}RoleClass" fixed="ADMM" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "COCT_MT230100UV.Medication", namespace = "urn:hl7-org:v3", propOrder = {
"realmCode",
"typeId",
"templateId",
"administerableMedicine",
"subjectOf1",
"subjectOf2",
"subjectOf3",
"subjectOf4",
"subjectOf5"
})
public class COCTMT230100UVMedication {
@XmlElement(namespace = "urn:hl7-org:v3")
protected List realmCode;
@XmlElement(namespace = "urn:hl7-org:v3")
protected II typeId;
@XmlElement(namespace = "urn:hl7-org:v3")
protected List templateId;
@XmlElement(namespace = "urn:hl7-org:v3", required = true)
protected COCTMT230100UVMedicine administerableMedicine;
@XmlElement(namespace = "urn:hl7-org:v3", nillable = true)
protected List subjectOf1;
@XmlElement(namespace = "urn:hl7-org:v3", nillable = true)
protected List subjectOf2;
@XmlElement(namespace = "urn:hl7-org:v3", nillable = true)
protected List subjectOf3;
@XmlElement(namespace = "urn:hl7-org:v3", nillable = true)
protected List subjectOf4;
@XmlElement(namespace = "urn:hl7-org:v3", nillable = true)
protected COCTMT230100UVSubject7 subjectOf5;
@XmlAttribute(name = "nullFlavor")
protected List nullFlavor;
@XmlAttribute(name = "classCode", required = true)
protected List classCode;
/**
* Gets the value of the realmCode property.
*
*
* 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 realmCode property.
*
*
* For example, to add a new item, do as follows:
*
* getRealmCode().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CS }
*
*
*/
public List getRealmCode() {
if (realmCode == null) {
realmCode = new ArrayList();
}
return this.realmCode;
}
/**
* Gets the value of the typeId property.
*
* @return
* possible object is
* {@link II }
*
*/
public II getTypeId() {
return typeId;
}
/**
* Sets the value of the typeId property.
*
* @param value
* allowed object is
* {@link II }
*
*/
public void setTypeId(II value) {
this.typeId = value;
}
/**
* Gets the value of the templateId property.
*
*
* 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 templateId property.
*
*
* For example, to add a new item, do as follows:
*
* getTemplateId().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link II }
*
*
*/
public List getTemplateId() {
if (templateId == null) {
templateId = new ArrayList();
}
return this.templateId;
}
/**
* Gets the value of the administerableMedicine property.
*
* @return
* possible object is
* {@link COCTMT230100UVMedicine }
*
*/
public COCTMT230100UVMedicine getAdministerableMedicine() {
return administerableMedicine;
}
/**
* Sets the value of the administerableMedicine property.
*
* @param value
* allowed object is
* {@link COCTMT230100UVMedicine }
*
*/
public void setAdministerableMedicine(COCTMT230100UVMedicine value) {
this.administerableMedicine = value;
}
/**
* Gets the value of the subjectOf1 property.
*
*
* 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 subjectOf1 property.
*
*
* For example, to add a new item, do as follows:
*
* getSubjectOf1().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link COCTMT230100UVSubject2 }
*
*
*/
public List getSubjectOf1() {
if (subjectOf1 == null) {
subjectOf1 = new ArrayList();
}
return this.subjectOf1;
}
/**
* Gets the value of the subjectOf2 property.
*
*
* 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 subjectOf2 property.
*
*
* For example, to add a new item, do as follows:
*
* getSubjectOf2().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link COCTMT230100UVSubject1 }
*
*
*/
public List getSubjectOf2() {
if (subjectOf2 == null) {
subjectOf2 = new ArrayList();
}
return this.subjectOf2;
}
/**
* Gets the value of the subjectOf3 property.
*
*
* 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 subjectOf3 property.
*
*
* For example, to add a new item, do as follows:
*
* getSubjectOf3().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link COCTMT230100UVSubject22 }
*
*
*/
public List getSubjectOf3() {
if (subjectOf3 == null) {
subjectOf3 = new ArrayList();
}
return this.subjectOf3;
}
/**
* Gets the value of the subjectOf4 property.
*
*
* 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 subjectOf4 property.
*
*
* For example, to add a new item, do as follows:
*
* getSubjectOf4().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link COCTMT230100UVSubject3 }
*
*
*/
public List getSubjectOf4() {
if (subjectOf4 == null) {
subjectOf4 = new ArrayList();
}
return this.subjectOf4;
}
/**
* Gets the value of the subjectOf5 property.
*
* @return
* possible object is
* {@link COCTMT230100UVSubject7 }
*
*/
public COCTMT230100UVSubject7 getSubjectOf5() {
return subjectOf5;
}
/**
* Sets the value of the subjectOf5 property.
*
* @param value
* allowed object is
* {@link COCTMT230100UVSubject7 }
*
*/
public void setSubjectOf5(COCTMT230100UVSubject7 value) {
this.subjectOf5 = value;
}
/**
* Gets the value of the nullFlavor property.
*
*
* 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 nullFlavor property.
*
*
* For example, to add a new item, do as follows:
*
* getNullFlavor().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getNullFlavor() {
if (nullFlavor == null) {
nullFlavor = new ArrayList();
}
return this.nullFlavor;
}
/**
* Gets the value of the classCode property.
*
*
* 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 classCode property.
*
*
* For example, to add a new item, do as follows:
*
* getClassCode().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getClassCode() {
if (classCode == null) {
classCode = new ArrayList();
}
return this.classCode;
}
public COCTMT230100UVMedication withRealmCode(CS... values) {
if (values!= null) {
for (CS value: values) {
getRealmCode().add(value);
}
}
return this;
}
public COCTMT230100UVMedication withRealmCode(Collection values) {
if (values!= null) {
getRealmCode().addAll(values);
}
return this;
}
public COCTMT230100UVMedication withTypeId(II value) {
setTypeId(value);
return this;
}
public COCTMT230100UVMedication withTemplateId(II... values) {
if (values!= null) {
for (II value: values) {
getTemplateId().add(value);
}
}
return this;
}
public COCTMT230100UVMedication withTemplateId(Collection values) {
if (values!= null) {
getTemplateId().addAll(values);
}
return this;
}
public COCTMT230100UVMedication withAdministerableMedicine(COCTMT230100UVMedicine value) {
setAdministerableMedicine(value);
return this;
}
public COCTMT230100UVMedication withSubjectOf1(COCTMT230100UVSubject2 ... values) {
if (values!= null) {
for (COCTMT230100UVSubject2 value: values) {
getSubjectOf1().add(value);
}
}
return this;
}
public COCTMT230100UVMedication withSubjectOf1(Collection values) {
if (values!= null) {
getSubjectOf1().addAll(values);
}
return this;
}
public COCTMT230100UVMedication withSubjectOf2(COCTMT230100UVSubject1 ... values) {
if (values!= null) {
for (COCTMT230100UVSubject1 value: values) {
getSubjectOf2().add(value);
}
}
return this;
}
public COCTMT230100UVMedication withSubjectOf2(Collection values) {
if (values!= null) {
getSubjectOf2().addAll(values);
}
return this;
}
public COCTMT230100UVMedication withSubjectOf3(COCTMT230100UVSubject22 ... values) {
if (values!= null) {
for (COCTMT230100UVSubject22 value: values) {
getSubjectOf3().add(value);
}
}
return this;
}
public COCTMT230100UVMedication withSubjectOf3(Collection values) {
if (values!= null) {
getSubjectOf3().addAll(values);
}
return this;
}
public COCTMT230100UVMedication withSubjectOf4(COCTMT230100UVSubject3 ... values) {
if (values!= null) {
for (COCTMT230100UVSubject3 value: values) {
getSubjectOf4().add(value);
}
}
return this;
}
public COCTMT230100UVMedication withSubjectOf4(Collection values) {
if (values!= null) {
getSubjectOf4().addAll(values);
}
return this;
}
public COCTMT230100UVMedication withSubjectOf5(COCTMT230100UVSubject7 value) {
setSubjectOf5(value);
return this;
}
public COCTMT230100UVMedication withNullFlavor(String... values) {
if (values!= null) {
for (String value: values) {
getNullFlavor().add(value);
}
}
return this;
}
public COCTMT230100UVMedication withNullFlavor(Collection values) {
if (values!= null) {
getNullFlavor().addAll(values);
}
return this;
}
public COCTMT230100UVMedication withClassCode(String... values) {
if (values!= null) {
for (String value: values) {
getClassCode().add(value);
}
}
return this;
}
public COCTMT230100UVMedication withClassCode(Collection values) {
if (values!= null) {
getClassCode().addAll(values);
}
return this;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}