Class MaxDosePerAdministrationR5
java.lang.Object
io.github.jy95.fds.r5.translators.MaxDosePerAdministrationR5
- All Implemented Interfaces:
MaxDosePerAdministration<FDSConfigR5,
,org.hl7.fhir.r5.model.Dosage> Translator<FDSConfigR5,
org.hl7.fhir.r5.model.Dosage>
public class MaxDosePerAdministrationR5
extends Object
implements MaxDosePerAdministration<FDSConfigR5,org.hl7.fhir.r5.model.Dosage>
R5 class for translating "maxDosePerAdministration"
- Author:
- jy95
-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.ibm.icu.text.MessageFormat
MessageFormat instance used for "maxDosePerAdministration" translation -
Constructor Summary
ConstructorDescriptionMaxDosePerAdministrationR5
(FDSConfigR5 config, ResourceBundle bundle) Constructor forMaxDosePerAdministrationR5
. -
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.MaxDosePerAdministration
getMaxDosePerAdministrationMsg
-
Field Details
-
maxDosePerAdministrationMsg
protected final com.ibm.icu.text.MessageFormat maxDosePerAdministrationMsgMessageFormat instance used for "maxDosePerAdministration" translation
-
-
Constructor Details
-
MaxDosePerAdministrationR5
Constructor forMaxDosePerAdministrationR5
.- 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<FDSConfigR5,
org.hl7.fhir.r5.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.r5.model.Dosage dosage) Checks whether a dosage field is present and can be converted to a string.- Specified by:
isPresent
in interfaceTranslator<FDSConfigR5,
org.hl7.fhir.r5.model.Dosage> - Parameters:
dosage
- the dosage field to check- Returns:
true
if the dosage field is present,false
otherwise
-