petit/parser/function_parser/conversions_parser library

Classes

ConvertsToBooleanParser
http://hl7.org/fhirpath/#convertstoboolean-boolean If the input collection contains a single item, this function will return true if: the item is a Boolean the item is an Integer that is equal to one of the possible integer representations of Boolean values the item is a Decimal that is equal to one of the possible decimal representations of Boolean values the item is a String that is equal to one of the possible string representations of Boolean values
ConvertsToDateParser
Checks if input can be converted to a Date
ConvertsToDateTimeParser
Checks if input can be converted to a FhirDateTime
ConvertsToDecimalParser
Checks if input can be converted into a Decimal
ConvertsToIntegerParser
Checks if input can be converted to an Integer
ConvertsToQuantityParser
Checks if input can be converted to a Quantity
ConvertsToStringParser
Checks if input can be converted to a String
ConvertsToTimeParser
Checks if input can be converted to a Time
IifParser
http://hl7.org/fhirpath/#iifcriterion-expression-true-result-collection-otherwise-result-collection-collection The iif function in FHIRPath is an immediate if, also known as a conditional operator (such as C’s ? : operator). The criterion expression is expected to evaluate to a Boolean. See: http://hl7.org/fhirpath/#singleton-evaluation-of-collections for rules of Boolean evaluation. Any collection with a single non-boolean item is true.
ToBooleanParser
http://hl7.org/fhirpath/#toboolean-boolean If the input collection contains a single item, this function will return a single boolean if: the item is a Boolean the item is an Integer and is equal to one of the possible integer representations of Boolean values the item is a Decimal that is equal to one of the possible decimal representations of Boolean values the item is a String that is equal to one of the possible string representations of Boolean values If the item is not one the above types, or the item is a String, Integer, or Decimal, but is not equal to one of the possible values convertible to a Boolean, the result is empty.
ToDateParser
Converts input to an Date if possible
ToDateTimeParser
Converts input to FhirDateTime if possible
ToDecimalParser
Converts input to a Decimal if possible
ToIntegerParser
Converts input to an Integer if possible
ToQuantityParser
Converts input to a Quantity if possible
ToStringParser
Converts input to a String if possible
ToTimeParser
Converts input to a Time if possible