Class TimingEvent<D,C extends FDSConfig,T extends org.hl7.fhir.instance.model.api.IPrimitiveType<Date>>

java.lang.Object
io.github.jy95.fds.common.translators.timing.TimingEvent<D,C,T>
Type Parameters:
D - The type of the data object containing timing events.
C - The type of the FDS configuration.
T - The type of the timing event elements
All Implemented Interfaces:
Translator<D>

public class TimingEvent<D,C extends FDSConfig,T extends org.hl7.fhir.instance.model.api.IPrimitiveType<Date>> extends Object implements Translator<D>
Generic class for translating "timing.event" across different FHIR versions.
Since:
2.1.9
Author:
jy95
  • Constructor Details

    • TimingEvent

      public TimingEvent()
  • Method Details

    • isPresent

      public boolean isPresent(D data)
      Checks whether a field is present and can be converted to a string.
      Specified by:
      isPresent in interface Translator<D>
      Parameters:
      data - the fhir element containing field to check
      Returns:
      true if the field is present, false otherwise
    • convert

      public CompletableFuture<String> convert(D data)
      Converts a field into a human-readable string representation asynchronously.
      Specified by:
      convert in interface Translator<D>
      Parameters:
      data - the fhir element containing field to be converted
      Returns:
      a CompletableFuture that will complete with the human-readable string