addToFhirTime function

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

Implementation

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