Class TimingEventR5
java.lang.Object
io.github.jy95.fds.r5.translators.TimingEventR5
- All Implemented Interfaces:
TimingEvent<org.hl7.fhir.r5.model.Timing>,Translator<org.hl7.fhir.r5.model.Timing>
R5 class for translating "timing.event"
- Author:
- jy95
-
Field Summary
Fields inherited from interface io.github.jy95.fds.common.translators.timing.TimingEvent
KEY_EVENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(org.hl7.fhir.r5.model.Timing data) Converts a field into a human-readable string representation asynchronously.getEvents(org.hl7.fhir.r5.model.Timing data) Extracts a list of timing events from the data object.booleanisPresent(org.hl7.fhir.r5.model.Timing data) Checks whether a field is present and can be converted to a string.
-
Constructor Details
-
TimingEventR5
public TimingEventR5()
-
-
Method Details
-
isPresent
public boolean isPresent(org.hl7.fhir.r5.model.Timing data) Checks whether a field is present and can be converted to a string.- Specified by:
isPresentin interfaceTranslator<org.hl7.fhir.r5.model.Timing>- Parameters:
data- the fhir element containing field to check- Returns:
trueif the field is present,falseotherwise
-
getEvents
Extracts a list of timing events from the data object.- Specified by:
getEventsin interfaceTimingEvent<org.hl7.fhir.r5.model.Timing>- Parameters:
data- The data object containing timing events.- Returns:
- A list of timing events represented as strings.
-
convert
Converts a field into a human-readable string representation asynchronously.- Specified by:
convertin interfaceTranslator<org.hl7.fhir.r5.model.Timing>- Parameters:
data- the fhir element containing field to be converted- Returns:
- a
CompletableFuturethat will complete with the human-readable string
-