package org.hl7.v3;
import java.util.ArrayList;
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.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
*
* A dimensioned quantity expressing the result of a measurement act.
*
*
* <p>
* Java class for PQ complex type.
*
* <p>
* The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="PQ">
* <complexContent>
* <extension base="{urn:hl7-org:v3}QTY">
* <sequence>
* <element name="translation" type="{urn:hl7-org:v3}PQR" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="value" type="{urn:hl7-org:v3}fractionalnumber" />
* <attribute name="unit" type="{urn:hl7-org:v3}cs" default="1" />
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PQ", propOrder = {
"translation"
})
@XmlSeeAlso({
HXITPQ.class, IVXBPQ.class, SXCMPQ.class, PPDPQ.class
})
public class PQ extends QTY {
/**
*
*/
private static final long serialVersionUID = 1L;
protected List<PQR> translation;
@XmlAttribute
protected String value;
@XmlAttribute
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String unit;
/**
* Gets the value of the translation property.
*
* <p>
* 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 <CODE>set</CODE> method for the translation property.
*
* <p>
* For example, to add a new item, do as follows:
*
* <pre>
* getTranslation().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list {@link PQR }
*
*
*/
public List<PQR> getTranslation(){
if (translation == null) {
translation = new ArrayList<PQR>();
}
return this.translation;
}
/**
* Gets the value of the value property.
*
* @return possible object is {@link String }
*
*/
public String getValue(){
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is {@link String }
*
*/
public void setValue(String value){
this.value = value;
}
/**
* Gets the value of the unit property.
*
* @return possible object is {@link String }
*
*/
public String getUnit(){
if (unit == null) {
return "1";
} else {
return unit;
}
}
/**
* Sets the value of the unit property.
*
* @param value
* allowed object is {@link String }
*
*/
public void setUnit(String value){
this.unit = value;
}
}