subtractFromFhirTime function

FhirTime subtractFromFhirTime(
  1. FhirTime fhirTime,
  2. ValidatedQuantity validatedQuantity
)

Implementation

FhirTime subtractFromFhirTime(
  FhirTime fhirTime,
  ValidatedQuantity validatedQuantity,
) =>
    fhirTime.subtract(
      hours: validatedQuantity.hours?.toInt() ?? 0,
      minutes: validatedQuantity.minutes?.toInt() ?? 0,
      seconds: validatedQuantity.seconds?.toInt() ?? 0,
      milliseconds: validatedQuantity.milliseconds?.toInt() ?? 0,
    );