Class RateQuantityR5
java.lang.Object
io.github.jy95.fds.r5.translators.RateQuantityR5
- All Implemented Interfaces:
RateQuantity<FDSConfigR5,,org.hl7.fhir.r5.model.Dosage> Translator<FDSConfigR5,org.hl7.fhir.r5.model.Dosage>
public class RateQuantityR5
extends Object
implements RateQuantity<FDSConfigR5,org.hl7.fhir.r5.model.Dosage>
R5 class for translating "doseAndRate.rateQuantity"
- Author:
- jy95
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.ibm.icu.text.MessageFormatMessageFormat instance used for "rateQuantity" translation. -
Constructor Summary
ConstructorsConstructorDescriptionRateQuantityR5(FDSConfigR5 config, ResourceBundle bundle) Constructor forRateQuantityR5. -
Method Summary
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.translators.RateQuantity
getRateQuantityMsg
-
Field Details
-
rateQuantityMsg
protected final com.ibm.icu.text.MessageFormat rateQuantityMsgMessageFormat instance used for "rateQuantity" translation.
-
-
Constructor Details
-
RateQuantityR5
Constructor forRateQuantityR5.- Parameters:
config- The configuration object used for translation.bundle- aResourceBundleobject
-
-
Method Details
-
convert
Converts a dosage field into a human-readable string representation asynchronously.- Specified by:
convertin interfaceTranslator<FDSConfigR5,org.hl7.fhir.r5.model.Dosage> - Parameters:
dosage- the dosage field to be converted- Returns:
- a
CompletableFuturethat will complete with the human-readable string
-
isPresent
public boolean isPresent(org.hl7.fhir.r5.model.Dosage dosage) Checks whether a dosage field is present and can be converted to a string.- Specified by:
isPresentin interfaceTranslator<FDSConfigR5,org.hl7.fhir.r5.model.Dosage> - Parameters:
dosage- the dosage field to check- Returns:
trueif the dosage field is present,falseotherwise
-