View raw Markdown
type: fhirpath-functionfunction: lowBoundarycategory: Utility functionssection: 5.10.5source: fhirpath/functions.json

FHIRPath Function: lowBoundary

{:.stu}

The least possible value of the input to the specified precision. {:.stu}

The function can only be used with Decimal, Date, DateTime, and Time values, and returns the same type as the value in the input collection. {:.stu}

If no precision is specified, the greatest precision of the type of the input value is used (i.e. at least 8 for Decimal, 4 for Date, at least 17 for DateTime, and at least 9 for Time). {:.stu}

If the precision is greater than the maximum possible precision of the implementation, the result is empty (CQL returns null). {:.stu}

If the input collection is empty, the result is empty. {:.stu}

If the input collection contains multiple items, the evaluation of the expression will end and signal an error to the calling environment. {:.stu}

1.587.lowBoundary() // 1.58650000
1.587.lowBoundary(6) // 1.586500
1.587.lowBoundary(2) // 1.58
1.587.lowBoundary(0) // 1
(-1.587).lowBoundary() // -1.58750000
(-1.587).lowBoundary(6) // -1.587500
(-1.587).lowBoundary(2) // -1.59
(-1.587).lowBoundary(0) // -2
@2014.lowBoundary(6) // @2014-01
@2014-01-01T08.lowBoundary(17) // @2014-01-01T08:00:00.000
@T10:30.lowBoundary(9) // @T10:30:00.000

{:.stu}

Summary

Description

The least possible value of the input to the specified precision. The function can only be used with Decimal, Date, DateTime, and Time values, and returns the same type as the value in the input collection.

Arguments

Type Mapping

Example

1.587.lowBoundary(8) // 1.58700000
@2014.lowBoundary(6) // @2014-01
@2014-01-01T08.lowBoundary(17) // @2014-01-01T08:00:00.000
@T10:30.lowBoundary(9) // @T10:30:00.000