Package org.hl7.v3

Class CR


public class CR extends ANY
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>
 
  • Field Details

    • name

      protected CV name
    • value

      protected CD value
    • inverted

      protected Boolean inverted
  • Constructor Details

    • CR

      public CR()
  • Method Details

    • getName

      public CV getName()
      Gets the value of the name property.
      Returns:
      possible object is CV
    • setName

      public void setName(CV value)
      Sets the value of the name property.
      Parameters:
      value - allowed object is CV
    • getValue

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

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

      public boolean isInverted()
      Gets the value of the inverted property.
      Returns:
      possible object is Boolean
    • setInverted

      public void setInverted(Boolean value)
      Sets the value of the inverted property.
      Parameters:
      value - allowed object is Boolean
    • withName

      public CR withName(CV value)
    • withValue

      public CR withValue(CD value)
    • withInverted

      public CR withInverted(Boolean value)
    • withNullFlavor

      public CR withNullFlavor(String... values)
      Overrides:
      withNullFlavor in class ANY
    • withNullFlavor

      public CR withNullFlavor(Collection<String> values)
      Overrides:
      withNullFlavor in class ANY
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class ANY
    • 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 ANY