Class FHIRPathQuantityNode

    • Method Detail

      • quantity

        public Quantity quantity()
        The quantity wrapped by this FHIRPathQuantityNode
        Returns:
        the quantity wrapped by this FHIRPathQuantityNode
      • getQuantitySystem

        public String getQuantitySystem()
        The system of the quantity wrapped by this FHIRPathQuantityNode
        Returns:
        the system of the quantity wrapped by this FHIRPathQuantityNode
      • getQuantityCode

        public String getQuantityCode()
        The code of the quantity wrapped by this FHIRPathQuantityNode
        Returns:
        the code of the quantity wrapped by this FHIRPathQuantityNode
      • getQuantityUnit

        public String getQuantityUnit()
        The unit of the quantity wrapped by this FHIRPathQuantityNode
        Returns:
        the unit of the quantity wrapped by this FHIRPathQuantityNode
      • getQuantityValue

        public BigDecimal getQuantityValue()
        The BigDecimal value of the quantity wrapped by this FHIRPathQuantityNode
        Returns:
        the system of the quantity wrapped by this FHIRPathQuantityNode
      • builder

        public static FHIRPathQuantityNode.Builder builder​(Quantity quantity)
        Static factory method for creating builder instances from a Quantity value
        Parameters:
        quantity - the Quantity value
        Returns:
        a new builder for building FHIRPathQuantityNode instances
      • add

        public FHIRPathQuantityNode add​(FHIRPathQuantityNode node)
        Add this FHIRPathQuantityNode to another FHIRPathQuantityNode
        Parameters:
        node - the other FHIRPathQuantityNode
        Returns:
        the result of adding this FHIRPathQuantityNode to another FHIRPathQuantityNode
      • subtract

        public FHIRPathQuantityNode subtract​(FHIRPathQuantityNode node)
        Subtract another FHIRPathQuantityNode from this FHIRPathQuantityNode
        Parameters:
        node - the other FHIRPathQuantityNode
        Returns:
        the result of subtracting another FHIRPathQuantityNode from this FHIRPathQuantityNode
      • compareTo

        public int compareTo​(FHIRPathNode other)
        Compare the quantity value wrapped by this FHIRPathQuantityNode to the parameter
        Specified by:
        compareTo in interface Comparable<FHIRPathNode>
        Overrides:
        compareTo in class FHIRPathElementNode
        Parameters:
        other - the other FHIRPathNode
        Returns:
        0 if the quantity value wrapped by this FHIRPathQuantity is equal to the parameter; a positive value if this FHIRPathQuantityNode is greater than the parameter; and a negative value if this FHIRPathQuantityNode is less than the parameter
      • equals

        public boolean equals​(Object obj)
        Indicates whether the quantity value wrapped by this FHIRPathQuantityNode is equal the parameter (or its primitive value)
        Overrides:
        equals in class FHIRPathElementNode
        Parameters:
        obj - the other Object
        Returns:
        true if the quantity value wrapped by this FHIRPathQuantityNode node is equal the parameter (or its primitive value), otherwise false