All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hl7.v3.COCTMT080000UVSpecimen Maven / Gradle / Ivy

There is a newer version: 0.10.0
Show newest version
//
// 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_MT080000UV.Specimen complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="COCT_MT080000UV.Specimen">
 *   <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"/>
 *         <element name="code" type="{urn:hl7-org:v3}CE"/>
 *         <choice>
 *           <element name="specimenNatural" type="{urn:hl7-org:v3}COCT_MT080000UV.Natural"/>
 *           <element name="specimenManufactured" type="{urn:hl7-org:v3}COCT_MT080000UV.Manufactured"/>
 *           <element name="specimenNonPersonLivingSubject" type="{urn:hl7-org:v3}COCT_MT080000UV.NonPersonLivingSubject"/>
 *           <element name="specimenPerson" type="{urn:hl7-org:v3}COCT_MT080000UV.Person"/>
 *         </choice>
 *         <choice>
 *           <element name="sourceNatural" type="{urn:hl7-org:v3}COCT_MT080000UV.Natural" minOccurs="0"/>
 *           <element name="sourceManufactured" type="{urn:hl7-org:v3}COCT_MT080000UV.Manufactured" minOccurs="0"/>
 *           <element name="sourceNonPersonLivingSubject" type="{urn:hl7-org:v3}COCT_MT080000UV.NonPersonLivingSubject" minOccurs="0"/>
 *           <element name="sourcePerson" type="{urn:hl7-org:v3}COCT_MT080000UV.Person" minOccurs="0"/>
 *         </choice>
 *         <element name="subjectOf1" type="{urn:hl7-org:v3}COCT_MT080000UV.Subject4" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="subjectOf2" type="{urn:hl7-org:v3}COCT_MT080000UV.Subject3" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="productOf" type="{urn:hl7-org:v3}COCT_MT080000UV.Product" 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}RoleClassSpecimen" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "COCT_MT080000UV.Specimen", namespace = "urn:hl7-org:v3", propOrder = { "realmCode", "typeId", "templateId", "id", "code", "specimenNatural", "specimenManufactured", "specimenNonPersonLivingSubject", "specimenPerson", "sourceNatural", "sourceManufactured", "sourceNonPersonLivingSubject", "sourcePerson", "subjectOf1", "subjectOf2", "productOf" }) public class COCTMT080000UVSpecimen { @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 II id; @XmlElement(namespace = "urn:hl7-org:v3", required = true) protected CE code; @XmlElement(namespace = "urn:hl7-org:v3") protected COCTMT080000UVNatural specimenNatural; @XmlElement(namespace = "urn:hl7-org:v3") protected COCTMT080000UVManufactured specimenManufactured; @XmlElement(namespace = "urn:hl7-org:v3") protected COCTMT080000UVNonPersonLivingSubject specimenNonPersonLivingSubject; @XmlElement(namespace = "urn:hl7-org:v3") protected COCTMT080000UVPerson specimenPerson; @XmlElement(namespace = "urn:hl7-org:v3", nillable = true) protected COCTMT080000UVNatural sourceNatural; @XmlElement(namespace = "urn:hl7-org:v3", nillable = true) protected COCTMT080000UVManufactured sourceManufactured; @XmlElement(namespace = "urn:hl7-org:v3", nillable = true) protected COCTMT080000UVNonPersonLivingSubject sourceNonPersonLivingSubject; @XmlElement(namespace = "urn:hl7-org:v3", nillable = true) protected COCTMT080000UVPerson sourcePerson; @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 COCTMT080000UVProduct productOf; @XmlAttribute(name = "nullFlavor") protected List nullFlavor; @XmlAttribute(name = "classCode", required = true) protected RoleClassSpecimen 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 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 specimenNatural property. * * @return * possible object is * {@link COCTMT080000UVNatural } * */ public COCTMT080000UVNatural getSpecimenNatural() { return specimenNatural; } /** * Sets the value of the specimenNatural property. * * @param value * allowed object is * {@link COCTMT080000UVNatural } * */ public void setSpecimenNatural(COCTMT080000UVNatural value) { this.specimenNatural = value; } /** * Gets the value of the specimenManufactured property. * * @return * possible object is * {@link COCTMT080000UVManufactured } * */ public COCTMT080000UVManufactured getSpecimenManufactured() { return specimenManufactured; } /** * Sets the value of the specimenManufactured property. * * @param value * allowed object is * {@link COCTMT080000UVManufactured } * */ public void setSpecimenManufactured(COCTMT080000UVManufactured value) { this.specimenManufactured = value; } /** * Gets the value of the specimenNonPersonLivingSubject property. * * @return * possible object is * {@link COCTMT080000UVNonPersonLivingSubject } * */ public COCTMT080000UVNonPersonLivingSubject getSpecimenNonPersonLivingSubject() { return specimenNonPersonLivingSubject; } /** * Sets the value of the specimenNonPersonLivingSubject property. * * @param value * allowed object is * {@link COCTMT080000UVNonPersonLivingSubject } * */ public void setSpecimenNonPersonLivingSubject(COCTMT080000UVNonPersonLivingSubject value) { this.specimenNonPersonLivingSubject = value; } /** * Gets the value of the specimenPerson property. * * @return * possible object is * {@link COCTMT080000UVPerson } * */ public COCTMT080000UVPerson getSpecimenPerson() { return specimenPerson; } /** * Sets the value of the specimenPerson property. * * @param value * allowed object is * {@link COCTMT080000UVPerson } * */ public void setSpecimenPerson(COCTMT080000UVPerson value) { this.specimenPerson = value; } /** * Gets the value of the sourceNatural property. * * @return * possible object is * {@link COCTMT080000UVNatural } * */ public COCTMT080000UVNatural getSourceNatural() { return sourceNatural; } /** * Sets the value of the sourceNatural property. * * @param value * allowed object is * {@link COCTMT080000UVNatural } * */ public void setSourceNatural(COCTMT080000UVNatural value) { this.sourceNatural = value; } /** * Gets the value of the sourceManufactured property. * * @return * possible object is * {@link COCTMT080000UVManufactured } * */ public COCTMT080000UVManufactured getSourceManufactured() { return sourceManufactured; } /** * Sets the value of the sourceManufactured property. * * @param value * allowed object is * {@link COCTMT080000UVManufactured } * */ public void setSourceManufactured(COCTMT080000UVManufactured value) { this.sourceManufactured = value; } /** * Gets the value of the sourceNonPersonLivingSubject property. * * @return * possible object is * {@link COCTMT080000UVNonPersonLivingSubject } * */ public COCTMT080000UVNonPersonLivingSubject getSourceNonPersonLivingSubject() { return sourceNonPersonLivingSubject; } /** * Sets the value of the sourceNonPersonLivingSubject property. * * @param value * allowed object is * {@link COCTMT080000UVNonPersonLivingSubject } * */ public void setSourceNonPersonLivingSubject(COCTMT080000UVNonPersonLivingSubject value) { this.sourceNonPersonLivingSubject = value; } /** * Gets the value of the sourcePerson property. * * @return * possible object is * {@link COCTMT080000UVPerson } * */ public COCTMT080000UVPerson getSourcePerson() { return sourcePerson; } /** * Sets the value of the sourcePerson property. * * @param value * allowed object is * {@link COCTMT080000UVPerson } * */ public void setSourcePerson(COCTMT080000UVPerson value) { this.sourcePerson = 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 COCTMT080000UVSubject4 } * * */ 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 COCTMT080000UVSubject3 } * * */ public List getSubjectOf2() { if (subjectOf2 == null) { subjectOf2 = new ArrayList(); } return this.subjectOf2; } /** * Gets the value of the productOf property. * * @return * possible object is * {@link COCTMT080000UVProduct } * */ public COCTMT080000UVProduct getProductOf() { return productOf; } /** * Sets the value of the productOf property. * * @param value * allowed object is * {@link COCTMT080000UVProduct } * */ public void setProductOf(COCTMT080000UVProduct value) { this.productOf = 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. * * @return * possible object is * {@link RoleClassSpecimen } * */ public RoleClassSpecimen getClassCode() { return classCode; } /** * Sets the value of the classCode property. * * @param value * allowed object is * {@link RoleClassSpecimen } * */ public void setClassCode(RoleClassSpecimen value) { this.classCode = value; } public COCTMT080000UVSpecimen withRealmCode(CS... values) { if (values!= null) { for (CS value: values) { getRealmCode().add(value); } } return this; } public COCTMT080000UVSpecimen withRealmCode(Collection values) { if (values!= null) { getRealmCode().addAll(values); } return this; } public COCTMT080000UVSpecimen withTypeId(II value) { setTypeId(value); return this; } public COCTMT080000UVSpecimen withTemplateId(II... values) { if (values!= null) { for (II value: values) { getTemplateId().add(value); } } return this; } public COCTMT080000UVSpecimen withTemplateId(Collection values) { if (values!= null) { getTemplateId().addAll(values); } return this; } public COCTMT080000UVSpecimen withId(II value) { setId(value); return this; } public COCTMT080000UVSpecimen withCode(CE value) { setCode(value); return this; } public COCTMT080000UVSpecimen withSpecimenNatural(COCTMT080000UVNatural value) { setSpecimenNatural(value); return this; } public COCTMT080000UVSpecimen withSpecimenManufactured(COCTMT080000UVManufactured value) { setSpecimenManufactured(value); return this; } public COCTMT080000UVSpecimen withSpecimenNonPersonLivingSubject(COCTMT080000UVNonPersonLivingSubject value) { setSpecimenNonPersonLivingSubject(value); return this; } public COCTMT080000UVSpecimen withSpecimenPerson(COCTMT080000UVPerson value) { setSpecimenPerson(value); return this; } public COCTMT080000UVSpecimen withSourceNatural(COCTMT080000UVNatural value) { setSourceNatural(value); return this; } public COCTMT080000UVSpecimen withSourceManufactured(COCTMT080000UVManufactured value) { setSourceManufactured(value); return this; } public COCTMT080000UVSpecimen withSourceNonPersonLivingSubject(COCTMT080000UVNonPersonLivingSubject value) { setSourceNonPersonLivingSubject(value); return this; } public COCTMT080000UVSpecimen withSourcePerson(COCTMT080000UVPerson value) { setSourcePerson(value); return this; } public COCTMT080000UVSpecimen withSubjectOf1(COCTMT080000UVSubject4 ... values) { if (values!= null) { for (COCTMT080000UVSubject4 value: values) { getSubjectOf1().add(value); } } return this; } public COCTMT080000UVSpecimen withSubjectOf1(Collection values) { if (values!= null) { getSubjectOf1().addAll(values); } return this; } public COCTMT080000UVSpecimen withSubjectOf2(COCTMT080000UVSubject3 ... values) { if (values!= null) { for (COCTMT080000UVSubject3 value: values) { getSubjectOf2().add(value); } } return this; } public COCTMT080000UVSpecimen withSubjectOf2(Collection values) { if (values!= null) { getSubjectOf2().addAll(values); } return this; } public COCTMT080000UVSpecimen withProductOf(COCTMT080000UVProduct value) { setProductOf(value); return this; } public COCTMT080000UVSpecimen withNullFlavor(String... values) { if (values!= null) { for (String value: values) { getNullFlavor().add(value); } } return this; } public COCTMT080000UVSpecimen withNullFlavor(Collection values) { if (values!= null) { getNullFlavor().addAll(values); } return this; } public COCTMT080000UVSpecimen withClassCode(RoleClassSpecimen value) { setClassCode(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); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy