Class DoseQuantityR4
java.lang.Object
io.github.jy95.fds.r4.translators.DoseQuantityR4
- All Implemented Interfaces:
DoseQuantity<FDSConfigR4,
,org.hl7.fhir.r4.model.Dosage> Translator<FDSConfigR4,
org.hl7.fhir.r4.model.Dosage>
public class DoseQuantityR4
extends Object
implements DoseQuantity<FDSConfigR4,org.hl7.fhir.r4.model.Dosage>
R4 class for translating "doseAndRate.doseQuantity"
- Author:
- jy95
-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.ibm.icu.text.MessageFormat
MessageFormat instance used for "doseQuantity" translation. -
Constructor Summary
ConstructorDescriptionDoseQuantityR4
(FDSConfigR4 config, ResourceBundle bundle) Constructor forDoseQuantityR4
. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.jy95.fds.common.translators.DoseQuantity
getDoseQuantityMsg
-
Field Details
-
doseQuantityMsg
protected final com.ibm.icu.text.MessageFormat doseQuantityMsgMessageFormat instance used for "doseQuantity" translation.
-
-
Constructor Details
-
DoseQuantityR4
Constructor forDoseQuantityR4
.- Parameters:
config
- The configuration object used for translation.bundle
- aResourceBundle
object
-
-
Method Details
-
convert
Converts a dosage field into a human-readable string representation asynchronously.- Specified by:
convert
in interfaceTranslator<FDSConfigR4,
org.hl7.fhir.r4.model.Dosage> - Parameters:
dosage
- the dosage field to be converted- Returns:
- a
CompletableFuture
that will complete with the human-readable string
-
isPresent
public boolean isPresent(org.hl7.fhir.r4.model.Dosage dosage) Checks whether a dosage field is present and can be converted to a string.- Specified by:
isPresent
in interfaceTranslator<FDSConfigR4,
org.hl7.fhir.r4.model.Dosage> - Parameters:
dosage
- the dosage field to check- Returns:
true
if the dosage field is present,false
otherwise
-