Description
Currently, FhirPathDateTime and FhirPathTime lack a custom .toString() implementation. Calling .toString() prints a generic object reference instead of a readable date/time string, making logging and debugging difficult.
Proposed Solution
Add .toString() methods to both classes to output standard FHIR/ISO strings matching their precision level (matching what FhirPathDate already does).
Expected Outputs:
FhirPathDateTime -> @2026-06-23T20:46:16Z (or @2026-06 for partials)
FhirPathTime -> T20:46:16
Description
Currently,
FhirPathDateTimeandFhirPathTimelack a custom.toString()implementation. Calling.toString()prints a generic object reference instead of a readable date/time string, making logging and debugging difficult.Proposed Solution
Add
.toString()methods to both classes to output standard FHIR/ISO strings matching their precision level (matching whatFhirPathDatealready does).Expected Outputs:
FhirPathDateTime->@2026-06-23T20:46:16Z(or@2026-06for partials)FhirPathTime->T20:46:16