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 Summary
Constructors -
Method Summary
-
Constructor Details
-
TimingEvent
public TimingEvent()
-
-
Method Details
-
isPresent
Checks whether a field is present and can be converted to a string.- Specified by:
isPresentin interfaceTranslator<D>- Parameters:
data- the fhir element containing field to check- Returns:
trueif the field is present,falseotherwise
-
convert
Converts a field into a human-readable string representation asynchronously.- Specified by:
convertin interfaceTranslator<D>- Parameters:
data- the fhir element containing field to be converted- Returns:
- a
CompletableFuturethat will complete with the human-readable string
-