Class TimingCodeR5
java.lang.Object
io.github.jy95.fds.r5.translators.TimingCodeR5
- All Implemented Interfaces:
Translator<org.hl7.fhir.r5.model.Dosage>,TranslatorTiming<org.hl7.fhir.r5.model.Dosage>
R5 class for translating "timing.code"
- Author:
- jy95
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(org.hl7.fhir.r5.model.Dosage dosage) Converts a dosage field into a human-readable string representation asynchronously.booleanhasRequiredElements(org.hl7.fhir.r5.model.Dosage dosage) Checks if the "Timing" element of the given dosage object contains the required conditions for this translator.booleanhasTiming(org.hl7.fhir.r5.model.Dosage dosage) Checks if the given dosage object contains a "Timing" element.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.jy95.fds.common.types.TranslatorTiming
isPresent
-
Constructor Details
-
TimingCodeR5
public TimingCodeR5()
-
-
Method Details
-
hasTiming
public boolean hasTiming(org.hl7.fhir.r5.model.Dosage dosage) Checks if the given dosage object contains a "Timing" element.- Specified by:
hasTimingin interfaceTranslatorTiming<org.hl7.fhir.r5.model.Dosage>- Parameters:
dosage- the dosage object to check- Returns:
trueif the dosage object has a "Timing" element,falseotherwise
-
convert
Converts a dosage field into a human-readable string representation asynchronously.- Specified by:
convertin interfaceTranslator<org.hl7.fhir.r5.model.Dosage>- Parameters:
dosage- the dosage field to be converted- Returns:
- a
CompletableFuturethat will complete with the human-readable string
-
hasRequiredElements
public boolean hasRequiredElements(org.hl7.fhir.r5.model.Dosage dosage) Checks if the "Timing" element of the given dosage object contains the required conditions for this translator.- Specified by:
hasRequiredElementsin interfaceTranslatorTiming<org.hl7.fhir.r5.model.Dosage>- Parameters:
dosage- the dosage object to check- Returns:
trueif the "Timing" element has the required conditions,falseotherwise
-