Utility
The utility module contains the object representations of the utility FHIRPath functions.
Now
Bases: FHIRPathFunction
A representation of the FHIRPath now()
function.
Source code in fhircraft/fhir/path/engine/utility.py
evaluate(*args, **kwargs)
Returns the current date and time, including timezone offset.
Returns:
Name | Type | Description |
---|---|---|
DateTime |
int
|
The current date and time, including timezone offset. |
Source code in fhircraft/fhir/path/engine/utility.py
TimeOfDay
Bases: FHIRPathFunction
A representation of the FHIRPath timeOfDay()
function.
Source code in fhircraft/fhir/path/engine/utility.py
evaluate(*args, **kwargs)
Today
Bases: FHIRPathFunction
A representation of the FHIRPath Today()
function.
Source code in fhircraft/fhir/path/engine/utility.py
evaluate(*args, **kwargs)
Trace
Bases: FHIRPathFunction
A representation of the FHIRPath trace()
function.
Attributes:
Name | Type | Description |
---|---|---|
name |
(str
|
Subtring query. |
Source code in fhircraft/fhir/path/engine/utility.py
evaluate(collection, *args, **kwargs)
Adds a String
representation of the input collection to the diagnostic log, using the name
argument
as the name in the log. This log should be made available to the user in some appropriate fashion. Does not
change the input, so returns the input collection as output.
If the projection
argument is used, the trace would log the result of evaluating the project expression on the input,
but still return the input to the trace function unchanged.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
collection |
List[FHIRPathCollectionItem]
|
The input collection. |
required |
Returns:
Name | Type | Description |
---|---|---|
collection |
List[FHIRPathCollectionItem])
|
The input collection. |