# Functions
DateFromProto takes a proto Date as input and returns a system Date.
DateTimeFromProto takes a proto DateTime as input and returns a System DateTime.
Equal compares two FHIRPath System types for equality.
From converts primitive FHIR types to System types.
IsPrimitive evaluates to check whether or not the input is a primitive FHIR type.
IsValid validates whether the input string represents a valid system type name.
MustParseDate takes as input a string and returns a Date if the input is valid.
MustParseDateTime returns a DateTime if the string represents a valid DateTime.
MustParseDecimal converts a string into a Decimal type.
MustParseQuantity constructs a Quantity object from a number string and unit string.
MustParseTime takes an input string and returns a Time object if formatted correctly.
Normalize casts the "from" type to the "to" type if implicit casting is supported between the types.
ParseBoolean parses a boolean string and returns a Boolean value FHIRPath docs here: https://hl7.org/fhirpath/N1/#toboolean-boolean.
ParseDate takes as input a string and returns a Date if the input is a valid FHIRPath Date string, otherwise returns an error.
ParseDateTime parses a string and returns a DateTime object if the string is a valid FHIRPath DateTime string, or an error otherwise.
ParseDecimal parses a string representing a decimal, and returns an error if the input is invalid.
ParseInteger parses a string into an int32 value, and returns an error if the input does not represent a valid int32.
ParseQuantity takes as input a number string and a unit string and constructs a Quantity object.
ParseString parses the input string and replaces FHIRPath escape sequences with their Go-equivalent escape characters.
ParseTime takes an input string and returns a Time object if formatted correctly according to the FHIRPath spec, otherwise an error.
TimeFromProto takes a proto Time and returns a System Time.
TryEqual compares two FHIRPath System types for equality.
# Variables
No description provided by the author
Common errors.
Date, Time, DateTime, and Quantity have special cases for equality and inequality logic where an empty collection should be returned when their precisions/units are mismatched.
Common errors.
ErrNotConvertible is an error raised when attempting to call Collection.To* to a type that is not convertible.
Common errors.
# Structs
Date represents Date values in the range 0001-01-01 to 9999-12-31 with a 1 day step size.
DateTime represents date/time values and partial date/time values in the format YYYY-MM-DDThh:mm:ss.fff(+|-)hh:mm format.
Quantity type represents a decimal value along with a UCUM unit or a calendar duration keyword.
Time represents a time of day in the range 00:00:00.000 to 23:59:59.999 with a step size of 1ms.
# Interfaces
Any is the root abstraction for all FHIRPath system types.
# Type aliases
Boolean is a representation for a true or false value.
Collection abstracts the input and output type for FHIRPath expressions as a collection that can contain anything.
Decimal represents fixed-point decimals.
Integer represents integer values in the range 0 to 2^31 - 1.
String represents string values.