Package org.hl7.v3

Class PQ

Direct Known Subclasses:
HXITPQ, IVXBPQ, PPDPQ, SXCMPQ

public class PQ extends QTY
A dimensioned quantity expressing the result of a measurement act.

Java class for PQ complex type.

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

 <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}real" />
       <attribute name="unit" type="{urn:hl7-org:v3}cs" default="1" />
     </extension>
   </complexContent>
 </complexType>
 
  • Field Details

    • translation

      protected List<PQR> translation
    • value

      protected String value
    • unit

      protected String unit
  • Constructor Details

    • PQ

      public PQ()
  • Method Details

    • getTranslation

      public List<PQR> getTranslation()
      Gets the value of the translation 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 Jakarta XML Binding object. This is why there is not a set method for the translation property.

      For example, to add a new item, do as follows:

          getTranslation().add(newItem);
       

      Objects of the following type(s) are allowed in the list PQR

    • getValue

      public String getValue()
      Gets the value of the value property.
      Returns:
      possible object is String
    • setValue

      public void setValue(String value)
      Sets the value of the value property.
      Parameters:
      value - allowed object is String
    • getUnit

      public String getUnit()
      Gets the value of the unit property.
      Returns:
      possible object is String
    • setUnit

      public void setUnit(String value)
      Sets the value of the unit property.
      Parameters:
      value - allowed object is String
    • withTranslation

      public PQ withTranslation(PQR... values)
    • withTranslation

      public PQ withTranslation(Collection<PQR> values)
    • withValue

      public PQ withValue(String value)
    • withUnit

      public PQ withUnit(String value)
    • withNullFlavor

      public PQ withNullFlavor(String... values)
      Overrides:
      withNullFlavor in class QTY
    • withNullFlavor

      public PQ withNullFlavor(Collection<String> values)
      Overrides:
      withNullFlavor in class QTY
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class QTY
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class QTY
    • toString

      public String toString()
      Generates a String representation of the contents of this type. This is an extension method, produced by the 'ts' xjc plugin
      Overrides:
      toString in class QTY