Class DV_BOOLEAN

All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseDatatype, org.hl7.fhir.instance.model.api.ICompositeType

public class DV_BOOLEAN extends DATA_VALUE implements org.hl7.fhir.instance.model.api.ICompositeType
Items which are truly boolean data, such as true/false or yes/no answers. For such data, it is important to devise the meanings (usually questions in subjective data) carefully, so that the only allowed results are in fact true or false.
See Also:
  • Field Details

    • value

      protected BooleanType value
      Boolean value of this item. Actual values may be language or implementation dependent.
  • Constructor Details

    • DV_BOOLEAN

      public DV_BOOLEAN()
      Constructor
    • DV_BOOLEAN

      public DV_BOOLEAN(boolean value)
      Constructor
  • Method Details

    • getValueElement

      Returns:
      value (Boolean value of this item. Actual values may be language or implementation dependent.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value
    • hasValueElement

      public boolean hasValueElement()
    • hasValue

      public boolean hasValue()
    • setValueElement

      Parameters:
      value - value (Boolean value of this item. Actual values may be language or implementation dependent.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value
    • getValue

      public boolean getValue()
      Returns:
      Boolean value of this item. Actual values may be language or implementation dependent.
    • setValue

      public DV_BOOLEAN setValue(boolean value)
      Parameters:
      value - Boolean value of this item. Actual values may be language or implementation dependent.
    • listChildren

      protected void listChildren(List<Property> children)
      Overrides:
      listChildren in class Base
    • getNamedProperty

      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getNamedProperty in class Base
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getProperty

      public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getProperty in class Base
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty

      public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class Base
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty

      public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class Base
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • makeProperty

      public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      makeProperty in class Base
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getTypesForProperty

      public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getTypesForProperty in class Base
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • addChild

      public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      addChild in class Base
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • fhirType

      public String fhirType()
      Specified by:
      fhirType in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      fhirType in class DATA_VALUE
      Returns:
      the FHIR type name of the instance (not the java class name)
    • copy

      public DV_BOOLEAN copy()
      Specified by:
      copy in class DATA_VALUE
    • copyValues

      public void copyValues(DV_BOOLEAN dst)
    • typedCopy

      protected DV_BOOLEAN typedCopy()
    • equalsDeep

      public boolean equalsDeep(Base other_)
      Overrides:
      equalsDeep in class Base
    • equalsShallow

      public boolean equalsShallow(Base other_)
      Overrides:
      equalsShallow in class Base
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      isEmpty in class Base