
org.hl7.v3.COCTMT230100UVMedicine 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: 2014.07.06 at 04:34:42 PM PDT
//
package org.hl7.v3;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.JAXBElement;
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.XmlElementRef;
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.Medicine complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="COCT_MT230100UV.Medicine">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <group ref="{urn:hl7-org:v3}InfrastructureRootElements"/>
* <element name="id" type="{urn:hl7-org:v3}II" minOccurs="0"/>
* <element name="code" type="{urn:hl7-org:v3}CE" minOccurs="0"/>
* <element name="name" type="{urn:hl7-org:v3}TN" maxOccurs="unbounded" minOccurs="0"/>
* <element name="desc" type="{urn:hl7-org:v3}ED" minOccurs="0"/>
* <element name="riskCode" type="{urn:hl7-org:v3}CE" minOccurs="0"/>
* <element name="handlingCode" type="{urn:hl7-org:v3}CE" minOccurs="0"/>
* <element name="formCode" type="{urn:hl7-org:v3}CE" minOccurs="0"/>
* <element name="lotNumberText" type="{urn:hl7-org:v3}ST" minOccurs="0"/>
* <element name="expirationTime" type="{urn:hl7-org:v3}IVL_TS" minOccurs="0"/>
* <element name="stabilityTime" type="{urn:hl7-org:v3}IVL_TS" minOccurs="0"/>
* <element name="asDistributedProduct" type="{urn:hl7-org:v3}COCT_MT230100UV.DistributedProduct" maxOccurs="unbounded" minOccurs="0"/>
* <element name="asMedicineManufacturer" type="{urn:hl7-org:v3}COCT_MT230100UV.MedicineManufacturer" maxOccurs="unbounded" minOccurs="0"/>
* <element name="asContent" type="{urn:hl7-org:v3}COCT_MT230100UV.Content" minOccurs="0"/>
* <element name="asSpecializedKind" type="{urn:hl7-org:v3}COCT_MT230100UV.SpecializedKind" maxOccurs="unbounded" minOccurs="0"/>
* <element name="part" type="{urn:hl7-org:v3}COCT_MT230100UV.Part" maxOccurs="unbounded" minOccurs="0"/>
* <element name="ingredient" type="{urn:hl7-org:v3}COCT_MT230100UV.Ingredient" maxOccurs="unbounded" 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}EntityClassManufacturedMaterial" />
* <attribute name="determinerCode" use="required" type="{urn:hl7-org:v3}EntityDeterminer" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "COCT_MT230100UV.Medicine", namespace = "urn:hl7-org:v3", propOrder = {
"realmCode",
"typeId",
"templateId",
"id",
"code",
"name",
"desc",
"riskCode",
"handlingCode",
"formCode",
"lotNumberText",
"expirationTime",
"stabilityTime",
"asDistributedProduct",
"asMedicineManufacturer",
"asContent",
"asSpecializedKind",
"part",
"ingredient"
})
public class COCTMT230100UVMedicine {
@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")
protected II id;
@XmlElement(namespace = "urn:hl7-org:v3")
protected CE code;
@XmlElement(namespace = "urn:hl7-org:v3")
protected List name;
@XmlElement(namespace = "urn:hl7-org:v3")
protected ED desc;
@XmlElement(namespace = "urn:hl7-org:v3")
protected CE riskCode;
@XmlElement(namespace = "urn:hl7-org:v3")
protected CE handlingCode;
@XmlElement(namespace = "urn:hl7-org:v3")
protected CE formCode;
@XmlElement(namespace = "urn:hl7-org:v3")
protected ST lotNumberText;
@XmlElement(namespace = "urn:hl7-org:v3")
protected IVLTS expirationTime;
@XmlElement(namespace = "urn:hl7-org:v3")
protected IVLTS stabilityTime;
@XmlElement(namespace = "urn:hl7-org:v3", nillable = true)
protected List asDistributedProduct;
@XmlElement(namespace = "urn:hl7-org:v3", nillable = true)
protected List asMedicineManufacturer;
@XmlElementRef(name = "asContent", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false)
protected JAXBElement asContent;
@XmlElement(namespace = "urn:hl7-org:v3", nillable = true)
protected List asSpecializedKind;
@XmlElement(namespace = "urn:hl7-org:v3", nillable = true)
protected List part;
@XmlElement(namespace = "urn:hl7-org:v3", nillable = true)
protected List ingredient;
@XmlAttribute(name = "nullFlavor")
protected List nullFlavor;
@XmlAttribute(name = "classCode", required = true)
protected String classCode;
@XmlAttribute(name = "determinerCode", required = true)
protected String determinerCode;
/**
* 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 id property.
*
* @return
* possible object is
* {@link II }
*
*/
public II getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link II }
*
*/
public void setId(II value) {
this.id = value;
}
/**
* Gets the value of the code property.
*
* @return
* possible object is
* {@link CE }
*
*/
public CE getCode() {
return code;
}
/**
* Sets the value of the code property.
*
* @param value
* allowed object is
* {@link CE }
*
*/
public void setCode(CE value) {
this.code = value;
}
/**
* Gets the value of the name 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 name property.
*
*
* For example, to add a new item, do as follows:
*
* getName().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TN }
*
*
*/
public List getName() {
if (name == null) {
name = new ArrayList();
}
return this.name;
}
/**
* Gets the value of the desc property.
*
* @return
* possible object is
* {@link ED }
*
*/
public ED getDesc() {
return desc;
}
/**
* Sets the value of the desc property.
*
* @param value
* allowed object is
* {@link ED }
*
*/
public void setDesc(ED value) {
this.desc = value;
}
/**
* Gets the value of the riskCode property.
*
* @return
* possible object is
* {@link CE }
*
*/
public CE getRiskCode() {
return riskCode;
}
/**
* Sets the value of the riskCode property.
*
* @param value
* allowed object is
* {@link CE }
*
*/
public void setRiskCode(CE value) {
this.riskCode = value;
}
/**
* Gets the value of the handlingCode property.
*
* @return
* possible object is
* {@link CE }
*
*/
public CE getHandlingCode() {
return handlingCode;
}
/**
* Sets the value of the handlingCode property.
*
* @param value
* allowed object is
* {@link CE }
*
*/
public void setHandlingCode(CE value) {
this.handlingCode = value;
}
/**
* Gets the value of the formCode property.
*
* @return
* possible object is
* {@link CE }
*
*/
public CE getFormCode() {
return formCode;
}
/**
* Sets the value of the formCode property.
*
* @param value
* allowed object is
* {@link CE }
*
*/
public void setFormCode(CE value) {
this.formCode = value;
}
/**
* Gets the value of the lotNumberText property.
*
* @return
* possible object is
* {@link ST }
*
*/
public ST getLotNumberText() {
return lotNumberText;
}
/**
* Sets the value of the lotNumberText property.
*
* @param value
* allowed object is
* {@link ST }
*
*/
public void setLotNumberText(ST value) {
this.lotNumberText = value;
}
/**
* Gets the value of the expirationTime property.
*
* @return
* possible object is
* {@link IVLTS }
*
*/
public IVLTS getExpirationTime() {
return expirationTime;
}
/**
* Sets the value of the expirationTime property.
*
* @param value
* allowed object is
* {@link IVLTS }
*
*/
public void setExpirationTime(IVLTS value) {
this.expirationTime = value;
}
/**
* Gets the value of the stabilityTime property.
*
* @return
* possible object is
* {@link IVLTS }
*
*/
public IVLTS getStabilityTime() {
return stabilityTime;
}
/**
* Sets the value of the stabilityTime property.
*
* @param value
* allowed object is
* {@link IVLTS }
*
*/
public void setStabilityTime(IVLTS value) {
this.stabilityTime = value;
}
/**
* Gets the value of the asDistributedProduct 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 asDistributedProduct property.
*
*
* For example, to add a new item, do as follows:
*
* getAsDistributedProduct().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link COCTMT230100UVDistributedProduct }
*
*
*/
public List getAsDistributedProduct() {
if (asDistributedProduct == null) {
asDistributedProduct = new ArrayList();
}
return this.asDistributedProduct;
}
/**
* Gets the value of the asMedicineManufacturer 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 asMedicineManufacturer property.
*
*
* For example, to add a new item, do as follows:
*
* getAsMedicineManufacturer().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link COCTMT230100UVMedicineManufacturer }
*
*
*/
public List getAsMedicineManufacturer() {
if (asMedicineManufacturer == null) {
asMedicineManufacturer = new ArrayList();
}
return this.asMedicineManufacturer;
}
/**
* Gets the value of the asContent property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link COCTMT230100UVContent }{@code >}
*
*/
public JAXBElement getAsContent() {
return asContent;
}
/**
* Sets the value of the asContent property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link COCTMT230100UVContent }{@code >}
*
*/
public void setAsContent(JAXBElement value) {
this.asContent = value;
}
/**
* Gets the value of the asSpecializedKind 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 asSpecializedKind property.
*
*
* For example, to add a new item, do as follows:
*
* getAsSpecializedKind().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link COCTMT230100UVSpecializedKind }
*
*
*/
public List getAsSpecializedKind() {
if (asSpecializedKind == null) {
asSpecializedKind = new ArrayList();
}
return this.asSpecializedKind;
}
/**
* Gets the value of the part 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 part property.
*
*
* For example, to add a new item, do as follows:
*
* getPart().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link COCTMT230100UVPart }
*
*
*/
public List getPart() {
if (part == null) {
part = new ArrayList();
}
return this.part;
}
/**
* Gets the value of the ingredient 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 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
* {@link COCTMT230100UVIngredient }
*
*
*/
public List getIngredient() {
if (ingredient == null) {
ingredient = new ArrayList();
}
return this.ingredient;
}
/**
* 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.
*
* @return
* possible object is
* {@link String }
*
*/
public String getClassCode() {
return classCode;
}
/**
* Sets the value of the classCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setClassCode(String value) {
this.classCode = value;
}
/**
* Gets the value of the determinerCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDeterminerCode() {
return determinerCode;
}
/**
* Sets the value of the determinerCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDeterminerCode(String value) {
this.determinerCode = value;
}
public COCTMT230100UVMedicine withRealmCode(CS... values) {
if (values!= null) {
for (CS value: values) {
getRealmCode().add(value);
}
}
return this;
}
public COCTMT230100UVMedicine withRealmCode(Collection values) {
if (values!= null) {
getRealmCode().addAll(values);
}
return this;
}
public COCTMT230100UVMedicine withTypeId(II value) {
setTypeId(value);
return this;
}
public COCTMT230100UVMedicine withTemplateId(II... values) {
if (values!= null) {
for (II value: values) {
getTemplateId().add(value);
}
}
return this;
}
public COCTMT230100UVMedicine withTemplateId(Collection values) {
if (values!= null) {
getTemplateId().addAll(values);
}
return this;
}
public COCTMT230100UVMedicine withId(II value) {
setId(value);
return this;
}
public COCTMT230100UVMedicine withCode(CE value) {
setCode(value);
return this;
}
public COCTMT230100UVMedicine withName(TN... values) {
if (values!= null) {
for (TN value: values) {
getName().add(value);
}
}
return this;
}
public COCTMT230100UVMedicine withName(Collection values) {
if (values!= null) {
getName().addAll(values);
}
return this;
}
public COCTMT230100UVMedicine withDesc(ED value) {
setDesc(value);
return this;
}
public COCTMT230100UVMedicine withRiskCode(CE value) {
setRiskCode(value);
return this;
}
public COCTMT230100UVMedicine withHandlingCode(CE value) {
setHandlingCode(value);
return this;
}
public COCTMT230100UVMedicine withFormCode(CE value) {
setFormCode(value);
return this;
}
public COCTMT230100UVMedicine withLotNumberText(ST value) {
setLotNumberText(value);
return this;
}
public COCTMT230100UVMedicine withExpirationTime(IVLTS value) {
setExpirationTime(value);
return this;
}
public COCTMT230100UVMedicine withStabilityTime(IVLTS value) {
setStabilityTime(value);
return this;
}
public COCTMT230100UVMedicine withAsDistributedProduct(COCTMT230100UVDistributedProduct... values) {
if (values!= null) {
for (COCTMT230100UVDistributedProduct value: values) {
getAsDistributedProduct().add(value);
}
}
return this;
}
public COCTMT230100UVMedicine withAsDistributedProduct(Collection values) {
if (values!= null) {
getAsDistributedProduct().addAll(values);
}
return this;
}
public COCTMT230100UVMedicine withAsMedicineManufacturer(COCTMT230100UVMedicineManufacturer... values) {
if (values!= null) {
for (COCTMT230100UVMedicineManufacturer value: values) {
getAsMedicineManufacturer().add(value);
}
}
return this;
}
public COCTMT230100UVMedicine withAsMedicineManufacturer(Collection values) {
if (values!= null) {
getAsMedicineManufacturer().addAll(values);
}
return this;
}
public COCTMT230100UVMedicine withAsContent(JAXBElement value) {
setAsContent(value);
return this;
}
public COCTMT230100UVMedicine withAsSpecializedKind(COCTMT230100UVSpecializedKind... values) {
if (values!= null) {
for (COCTMT230100UVSpecializedKind value: values) {
getAsSpecializedKind().add(value);
}
}
return this;
}
public COCTMT230100UVMedicine withAsSpecializedKind(Collection values) {
if (values!= null) {
getAsSpecializedKind().addAll(values);
}
return this;
}
public COCTMT230100UVMedicine withPart(COCTMT230100UVPart... values) {
if (values!= null) {
for (COCTMT230100UVPart value: values) {
getPart().add(value);
}
}
return this;
}
public COCTMT230100UVMedicine withPart(Collection values) {
if (values!= null) {
getPart().addAll(values);
}
return this;
}
public COCTMT230100UVMedicine withIngredient(COCTMT230100UVIngredient... values) {
if (values!= null) {
for (COCTMT230100UVIngredient value: values) {
getIngredient().add(value);
}
}
return this;
}
public COCTMT230100UVMedicine withIngredient(Collection values) {
if (values!= null) {
getIngredient().addAll(values);
}
return this;
}
public COCTMT230100UVMedicine withNullFlavor(String... values) {
if (values!= null) {
for (String value: values) {
getNullFlavor().add(value);
}
}
return this;
}
public COCTMT230100UVMedicine withNullFlavor(Collection values) {
if (values!= null) {
getNullFlavor().addAll(values);
}
return this;
}
public COCTMT230100UVMedicine withClassCode(String value) {
setClassCode(value);
return this;
}
public COCTMT230100UVMedicine withDeterminerCode(String value) {
setDeterminerCode(value);
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);
}
}