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

org.hl7.v3.CS 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.Collection;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSeeAlso;
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;


/**
 * 
 *             Coded data, consists of a code, display name, code system,
 *             and original text. Used when a single code value must be sent.
 *          
 * 
 * 

Java class for CS complex type. * *

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

 * <complexType name="CS">
 *   <complexContent>
 *     <restriction base="{urn:hl7-org:v3}CV">
 *       <attribute name="code" type="{urn:hl7-org:v3}cs" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CS", namespace = "urn:hl7-org:v3") @XmlSeeAlso({ PRPAMT201302UV02PatientStatusCode.class }) public class CS extends CV { @Override public CS withOriginalText(ED value) { setOriginalText(value); return this; } @Override public CS withQualifier(CR... values) { if (values!= null) { for (CR value: values) { getQualifier().add(value); } } return this; } @Override public CS withQualifier(Collection values) { if (values!= null) { getQualifier().addAll(values); } return this; } @Override public CS withTranslation(CD... values) { if (values!= null) { for (CD value: values) { getTranslation().add(value); } } return this; } @Override public CS withTranslation(Collection values) { if (values!= null) { getTranslation().addAll(values); } return this; } @Override public CS withCode(String value) { setCode(value); return this; } @Override public CS withCodeSystem(String value) { setCodeSystem(value); return this; } @Override public CS withCodeSystemName(String value) { setCodeSystemName(value); return this; } @Override public CS withCodeSystemVersion(String value) { setCodeSystemVersion(value); return this; } @Override public CS withDisplayName(String value) { setDisplayName(value); return this; } @Override public CS withNullFlavor(String... values) { if (values!= null) { for (String value: values) { getNullFlavor().add(value); } } return this; } @Override public CS withNullFlavor(Collection values) { if (values!= null) { getNullFlavor().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); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy