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

com.github.rahulsom.cda.CR 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.7 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2015.06.09 at 07:53:51 PM PDT 
//


package com.github.rahulsom.cda;

import java.util.Collection;
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;


/**
 *  A concept qualifier code with optionally named role. Both qualifier role and value codes must be defined by the coding system. For example, if SNOMED RT defines a concept "leg", a role relation "has-laterality", and another concept "left", the concept role relation allows to add the qualifier "has-laterality: left" to a primary code "leg" to construct the meaning "left leg". 
 * 
 * 

Java class for CR complex type. * *

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

 * <complexType name="CR">
 *   <complexContent>
 *     <extension base="{urn:hl7-org:v3}ANY">
 *       <sequence>
 *         <element name="name" type="{urn:hl7-org:v3}CV" minOccurs="0"/>
 *         <element name="value" type="{urn:hl7-org:v3}CD" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="inverted" type="{urn:hl7-org:v3}bn" default="false" />
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CR", namespace = "urn:hl7-org:v3", propOrder = { "name", "value" }) public class CR extends ANY { @XmlElement(namespace = "urn:hl7-org:v3") protected CV name; @XmlElement(namespace = "urn:hl7-org:v3") protected CD value; @XmlAttribute(name = "inverted") protected Boolean inverted; /** * Gets the value of the name property. * * @return * possible object is * {@link CV } * */ public CV getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link CV } * */ public void setName(CV value) { this.name = value; } /** * Gets the value of the value property. * * @return * possible object is * {@link CD } * */ public CD getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link CD } * */ public void setValue(CD value) { this.value = value; } /** * Gets the value of the inverted property. * * @return * possible object is * {@link Boolean } * */ public boolean isInverted() { if (inverted == null) { return false; } else { return inverted; } } /** * Sets the value of the inverted property. * * @param value * allowed object is * {@link Boolean } * */ public void setInverted(Boolean value) { this.inverted = value; } public CR withName(CV value) { setName(value); return this; } public CR withValue(CD value) { setValue(value); return this; } public CR withInverted(Boolean value) { setInverted(value); return this; } @Override public CR withNullFlavor(String... values) { if (values!= null) { for (String value: values) { getNullFlavor().add(value); } } return this; } @Override public CR 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