Class TimingModifierExtensionR5
java.lang.Object
io.github.jy95.fds.r5.translators.TimingModifierExtensionR5
- All Implemented Interfaces:
Translator<org.hl7.fhir.r5.model.Dosage>,TranslatorExtension<org.hl7.fhir.r5.model.Dosage,org.hl7.fhir.r5.model.Extension, FDSConfigR5>
public class TimingModifierExtensionR5
extends Object
implements TranslatorExtension<org.hl7.fhir.r5.model.Dosage,org.hl7.fhir.r5.model.Extension,FDSConfigR5>
R5 class for translating "timing.modifierExtension"
- Author:
- jy95
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.hl7.fhir.r5.model.Extension> getExtension(org.hl7.fhir.r5.model.Dosage dosage) Return a list of extension contained in the dosage fieldbooleanisPresent(org.hl7.fhir.r5.model.Dosage dosage) Checks whether a dosage field is present and can be converted to a string.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.TranslatorExtension
convert, getTranslationService
-
Constructor Details
-
TimingModifierExtensionR5
public TimingModifierExtensionR5()
-
-
Method Details
-
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<org.hl7.fhir.r5.model.Dosage>- Parameters:
dosage- the dosage field to check- Returns:
trueif the dosage field is present,falseotherwise
-
getExtension
Return a list of extension contained in the dosage field- Specified by:
getExtensionin interfaceTranslatorExtension<org.hl7.fhir.r5.model.Dosage,org.hl7.fhir.r5.model.Extension, FDSConfigR5> - Parameters:
dosage- the dosage field to be converted- Returns:
- The list of extension
-