Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ETagToVersionId ¶
Types ¶
type Date ¶
type Date struct { Value time.Time Precision DatePrecision }
Date represents a date in a search query. FHIR search params may define dates to varying levels of precision, and the amount of precision affects the behavior of the query. Date's value should only be interpreted in the context of the Precision supplied.
func MustParseDate ¶
func ParseDate ¶
ParseDate parses a FHIR date string (roughly ISO 8601) into a Date object, maintaining the value and the precision supplied.
func (*Date) RangeHighExcl ¶
RangeHighExcl represents the high end of a date range to match against. As the name suggests, the high end of the range is exclusive.
func (*Date) RangeLowIncl ¶
RangeLowIncl represents the low end of a date range to match against. As the name suggests, the low end of the range is inclusive.
type DatePrecision ¶
type DatePrecision int
DatePrecision is an enum representing the precision of a date.
const ( Year DatePrecision = iota Month Day Minute Second Millisecond )
Constant values for the DatePrecision enum.
type Number ¶
Number represents a number in a search query. FHIR search params may define numbers to varying levels of precision, and the amount of precision affects the behavior of the query. Number's value should only be interpreted in the context of the Precision supplied. The Precision indicates the number of decimal places in the precision.
func ParseNumber ¶
ParseNumber parses a numeric string into a Number object, maintaining the value and precision supplied.
func (*Number) RangeHighExcl ¶
RangeHighExcl represents the high end of a range to match against. As the name suggests, the high end of the range is exclusive.
func (*Number) RangeLowIncl ¶
RangeLowIncl represents the low end of a range to match against. As the name suggests, the low end of the range is inclusive.