
com.github.rahulsom.cda.POCDMT000040Component4 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:47 PM PDT
//
package com.github.rahulsom.cda;
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 POCD_MT000040.Component4 complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="POCD_MT000040.Component4">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="realmCode" type="{urn:hl7-org:v3}CS" maxOccurs="unbounded" minOccurs="0"/>
* <element name="typeId" type="{urn:hl7-org:v3}POCD_MT000040.InfrastructureRoot.typeId" minOccurs="0"/>
* <element name="templateId" type="{urn:hl7-org:v3}II" maxOccurs="unbounded" minOccurs="0"/>
* <element name="sequenceNumber" type="{urn:hl7-org:v3}INT" minOccurs="0"/>
* <element name="seperatableInd" type="{urn:hl7-org:v3}BL" minOccurs="0"/>
* <choice>
* <element name="act" type="{urn:hl7-org:v3}POCD_MT000040.Act"/>
* <element name="encounter" type="{urn:hl7-org:v3}POCD_MT000040.Encounter"/>
* <element name="observation" type="{urn:hl7-org:v3}POCD_MT000040.Observation"/>
* <element name="observationMedia" type="{urn:hl7-org:v3}POCD_MT000040.ObservationMedia"/>
* <element name="organizer" type="{urn:hl7-org:v3}POCD_MT000040.Organizer"/>
* <element name="procedure" type="{urn:hl7-org:v3}POCD_MT000040.Procedure"/>
* <element name="regionOfInterest" type="{urn:hl7-org:v3}POCD_MT000040.RegionOfInterest"/>
* <element name="substanceAdministration" type="{urn:hl7-org:v3}POCD_MT000040.SubstanceAdministration"/>
* <element name="supply" type="{urn:hl7-org:v3}POCD_MT000040.Supply"/>
* </choice>
* </sequence>
* <attribute name="nullFlavor" type="{urn:hl7-org:v3}NullFlavor" />
* <attribute name="typeCode" type="{urn:hl7-org:v3}ActRelationshipHasComponent" fixed="COMP" />
* <attribute name="contextConductionInd" type="{urn:hl7-org:v3}bl" fixed="true" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "POCD_MT000040.Component4", namespace = "urn:hl7-org:v3", propOrder = {
"realmCode",
"typeId",
"templateId",
"sequenceNumber",
"seperatableInd",
"act",
"encounter",
"observation",
"observationMedia",
"organizer",
"procedure",
"regionOfInterest",
"substanceAdministration",
"supply"
})
public class POCDMT000040Component4 {
@XmlElement(namespace = "urn:hl7-org:v3")
protected List realmCode;
@XmlElement(namespace = "urn:hl7-org:v3")
protected POCDMT000040InfrastructureRootTypeId typeId;
@XmlElement(namespace = "urn:hl7-org:v3")
protected List templateId;
@XmlElement(namespace = "urn:hl7-org:v3")
protected INT sequenceNumber;
@XmlElement(namespace = "urn:hl7-org:v3")
protected BL seperatableInd;
@XmlElement(namespace = "urn:hl7-org:v3")
protected POCDMT000040Act act;
@XmlElement(namespace = "urn:hl7-org:v3")
protected POCDMT000040Encounter encounter;
@XmlElement(namespace = "urn:hl7-org:v3")
protected POCDMT000040Observation observation;
@XmlElement(namespace = "urn:hl7-org:v3")
protected POCDMT000040ObservationMedia observationMedia;
@XmlElement(namespace = "urn:hl7-org:v3")
protected POCDMT000040Organizer organizer;
@XmlElement(namespace = "urn:hl7-org:v3")
protected POCDMT000040Procedure procedure;
@XmlElement(namespace = "urn:hl7-org:v3")
protected POCDMT000040RegionOfInterest regionOfInterest;
@XmlElement(namespace = "urn:hl7-org:v3")
protected POCDMT000040SubstanceAdministration substanceAdministration;
@XmlElement(namespace = "urn:hl7-org:v3")
protected POCDMT000040Supply supply;
@XmlAttribute(name = "nullFlavor")
protected List nullFlavor;
@XmlAttribute(name = "typeCode")
protected ActRelationshipHasComponent typeCode;
@XmlAttribute(name = "contextConductionInd")
protected Boolean contextConductionInd;
/**
* 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 POCDMT000040InfrastructureRootTypeId }
*
*/
public POCDMT000040InfrastructureRootTypeId getTypeId() {
return typeId;
}
/**
* Sets the value of the typeId property.
*
* @param value
* allowed object is
* {@link POCDMT000040InfrastructureRootTypeId }
*
*/
public void setTypeId(POCDMT000040InfrastructureRootTypeId 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 sequenceNumber property.
*
* @return
* possible object is
* {@link INT }
*
*/
public INT getSequenceNumber() {
return sequenceNumber;
}
/**
* Sets the value of the sequenceNumber property.
*
* @param value
* allowed object is
* {@link INT }
*
*/
public void setSequenceNumber(INT value) {
this.sequenceNumber = value;
}
/**
* Gets the value of the seperatableInd property.
*
* @return
* possible object is
* {@link BL }
*
*/
public BL getSeperatableInd() {
return seperatableInd;
}
/**
* Sets the value of the seperatableInd property.
*
* @param value
* allowed object is
* {@link BL }
*
*/
public void setSeperatableInd(BL value) {
this.seperatableInd = value;
}
/**
* Gets the value of the act property.
*
* @return
* possible object is
* {@link POCDMT000040Act }
*
*/
public POCDMT000040Act getAct() {
return act;
}
/**
* Sets the value of the act property.
*
* @param value
* allowed object is
* {@link POCDMT000040Act }
*
*/
public void setAct(POCDMT000040Act value) {
this.act = value;
}
/**
* Gets the value of the encounter property.
*
* @return
* possible object is
* {@link POCDMT000040Encounter }
*
*/
public POCDMT000040Encounter getEncounter() {
return encounter;
}
/**
* Sets the value of the encounter property.
*
* @param value
* allowed object is
* {@link POCDMT000040Encounter }
*
*/
public void setEncounter(POCDMT000040Encounter value) {
this.encounter = value;
}
/**
* Gets the value of the observation property.
*
* @return
* possible object is
* {@link POCDMT000040Observation }
*
*/
public POCDMT000040Observation getObservation() {
return observation;
}
/**
* Sets the value of the observation property.
*
* @param value
* allowed object is
* {@link POCDMT000040Observation }
*
*/
public void setObservation(POCDMT000040Observation value) {
this.observation = value;
}
/**
* Gets the value of the observationMedia property.
*
* @return
* possible object is
* {@link POCDMT000040ObservationMedia }
*
*/
public POCDMT000040ObservationMedia getObservationMedia() {
return observationMedia;
}
/**
* Sets the value of the observationMedia property.
*
* @param value
* allowed object is
* {@link POCDMT000040ObservationMedia }
*
*/
public void setObservationMedia(POCDMT000040ObservationMedia value) {
this.observationMedia = value;
}
/**
* Gets the value of the organizer property.
*
* @return
* possible object is
* {@link POCDMT000040Organizer }
*
*/
public POCDMT000040Organizer getOrganizer() {
return organizer;
}
/**
* Sets the value of the organizer property.
*
* @param value
* allowed object is
* {@link POCDMT000040Organizer }
*
*/
public void setOrganizer(POCDMT000040Organizer value) {
this.organizer = value;
}
/**
* Gets the value of the procedure property.
*
* @return
* possible object is
* {@link POCDMT000040Procedure }
*
*/
public POCDMT000040Procedure getProcedure() {
return procedure;
}
/**
* Sets the value of the procedure property.
*
* @param value
* allowed object is
* {@link POCDMT000040Procedure }
*
*/
public void setProcedure(POCDMT000040Procedure value) {
this.procedure = value;
}
/**
* Gets the value of the regionOfInterest property.
*
* @return
* possible object is
* {@link POCDMT000040RegionOfInterest }
*
*/
public POCDMT000040RegionOfInterest getRegionOfInterest() {
return regionOfInterest;
}
/**
* Sets the value of the regionOfInterest property.
*
* @param value
* allowed object is
* {@link POCDMT000040RegionOfInterest }
*
*/
public void setRegionOfInterest(POCDMT000040RegionOfInterest value) {
this.regionOfInterest = value;
}
/**
* Gets the value of the substanceAdministration property.
*
* @return
* possible object is
* {@link POCDMT000040SubstanceAdministration }
*
*/
public POCDMT000040SubstanceAdministration getSubstanceAdministration() {
return substanceAdministration;
}
/**
* Sets the value of the substanceAdministration property.
*
* @param value
* allowed object is
* {@link POCDMT000040SubstanceAdministration }
*
*/
public void setSubstanceAdministration(POCDMT000040SubstanceAdministration value) {
this.substanceAdministration = value;
}
/**
* Gets the value of the supply property.
*
* @return
* possible object is
* {@link POCDMT000040Supply }
*
*/
public POCDMT000040Supply getSupply() {
return supply;
}
/**
* Sets the value of the supply property.
*
* @param value
* allowed object is
* {@link POCDMT000040Supply }
*
*/
public void setSupply(POCDMT000040Supply value) {
this.supply = 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 typeCode property.
*
* @return
* possible object is
* {@link ActRelationshipHasComponent }
*
*/
public ActRelationshipHasComponent getTypeCode() {
if (typeCode == null) {
return ActRelationshipHasComponent.COMP;
} else {
return typeCode;
}
}
/**
* Sets the value of the typeCode property.
*
* @param value
* allowed object is
* {@link ActRelationshipHasComponent }
*
*/
public void setTypeCode(ActRelationshipHasComponent value) {
this.typeCode = value;
}
/**
* Gets the value of the contextConductionInd property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isContextConductionInd() {
if (contextConductionInd == null) {
return true;
} else {
return contextConductionInd;
}
}
/**
* Sets the value of the contextConductionInd property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setContextConductionInd(Boolean value) {
this.contextConductionInd = value;
}
public POCDMT000040Component4 withRealmCode(CS... values) {
if (values!= null) {
for (CS value: values) {
getRealmCode().add(value);
}
}
return this;
}
public POCDMT000040Component4 withRealmCode(Collection values) {
if (values!= null) {
getRealmCode().addAll(values);
}
return this;
}
public POCDMT000040Component4 withTypeId(POCDMT000040InfrastructureRootTypeId value) {
setTypeId(value);
return this;
}
public POCDMT000040Component4 withTemplateId(II... values) {
if (values!= null) {
for (II value: values) {
getTemplateId().add(value);
}
}
return this;
}
public POCDMT000040Component4 withTemplateId(Collection values) {
if (values!= null) {
getTemplateId().addAll(values);
}
return this;
}
public POCDMT000040Component4 withSequenceNumber(INT value) {
setSequenceNumber(value);
return this;
}
public POCDMT000040Component4 withSeperatableInd(BL value) {
setSeperatableInd(value);
return this;
}
public POCDMT000040Component4 withAct(POCDMT000040Act value) {
setAct(value);
return this;
}
public POCDMT000040Component4 withEncounter(POCDMT000040Encounter value) {
setEncounter(value);
return this;
}
public POCDMT000040Component4 withObservation(POCDMT000040Observation value) {
setObservation(value);
return this;
}
public POCDMT000040Component4 withObservationMedia(POCDMT000040ObservationMedia value) {
setObservationMedia(value);
return this;
}
public POCDMT000040Component4 withOrganizer(POCDMT000040Organizer value) {
setOrganizer(value);
return this;
}
public POCDMT000040Component4 withProcedure(POCDMT000040Procedure value) {
setProcedure(value);
return this;
}
public POCDMT000040Component4 withRegionOfInterest(POCDMT000040RegionOfInterest value) {
setRegionOfInterest(value);
return this;
}
public POCDMT000040Component4 withSubstanceAdministration(POCDMT000040SubstanceAdministration value) {
setSubstanceAdministration(value);
return this;
}
public POCDMT000040Component4 withSupply(POCDMT000040Supply value) {
setSupply(value);
return this;
}
public POCDMT000040Component4 withNullFlavor(String... values) {
if (values!= null) {
for (String value: values) {
getNullFlavor().add(value);
}
}
return this;
}
public POCDMT000040Component4 withNullFlavor(Collection values) {
if (values!= null) {
getNullFlavor().addAll(values);
}
return this;
}
public POCDMT000040Component4 withTypeCode(ActRelationshipHasComponent value) {
setTypeCode(value);
return this;
}
public POCDMT000040Component4 withContextConductionInd(Boolean value) {
setContextConductionInd(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);
}
}