FhirDateTimeX extension

on
  • FhirDateTime

Methods

toInstant() → Instant

Available on FhirDateTime, provided by the FhirDateTimeX extension

Converts a FhirDateTime to an Instant using the FHIR date time pattern. It first attempts to parse the string using the extended ISO 8601 format. If unsuccessful, it will try the general ISO 8601 format. If both fail, it will try the FHIR specific format. The FHIR time stamp MUST have a time zone offset or UTC "Z" specification, otherwise an exception is thrown.
toLocalDate() → LocalDate

Available on FhirDateTime, provided by the FhirDateTimeX extension

Converts a FhirDate to a LocalDate
toLocalDateTime() → LocalDateTime

Available on FhirDateTime, provided by the FhirDateTimeX extension

Converts a FhirDateTime to a LocalDateTime