Class FrequencyFrequencyMaxPeriodPeriodMaxR4
java.lang.Object
io.github.jy95.fds.r4.translators.FrequencyFrequencyMaxPeriodPeriodMaxR4
- All Implemented Interfaces:
FrequencyFrequencyMaxPeriodPeriodMax<FDSConfigR4,
,org.hl7.fhir.r4.model.Dosage> Translator<FDSConfigR4,
org.hl7.fhir.r4.model.Dosage>
public class FrequencyFrequencyMaxPeriodPeriodMaxR4
extends Object
implements FrequencyFrequencyMaxPeriodPeriodMax<FDSConfigR4,org.hl7.fhir.r4.model.Dosage>
R4 class for translating "timing.repeat.frequency" / "timing.repeat.frequencyMax" / "timing.repeat.period" / "timing.repeat.periodMax"
- Author:
- jy95
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Translator
<FDSConfigR4, org.hl7.fhir.r4.model.Dosage> Class implementing the parsing of "timing.repeat.frequency" / "timing.repeat.frequencyMax"protected final Translator
<FDSConfigR4, org.hl7.fhir.r4.model.Dosage> Class implementing the parsing of "timing.repeat.period" / "timing.repeat.periodMax" -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionextractFrequency
(org.hl7.fhir.r4.model.Dosage dosage) extractFrequency.extractPeriod
(org.hl7.fhir.r4.model.Dosage dosage) extractPeriod.boolean
hasFrequency
(org.hl7.fhir.r4.model.Dosage dosage) Check if dosage contains some frequency fields (frequency / frequencyMax)boolean
hasPeriod
(org.hl7.fhir.r4.model.Dosage dosage) Check if dosage contains some period fields (period / periodMax)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.FrequencyFrequencyMaxPeriodPeriodMax
convert, isPresent
-
Field Details
-
frequencyTranslator
Class implementing the parsing of "timing.repeat.frequency" / "timing.repeat.frequencyMax" -
periodTranslator
Class implementing the parsing of "timing.repeat.period" / "timing.repeat.periodMax"
-
-
Constructor Details
-
FrequencyFrequencyMaxPeriodPeriodMaxR4
public FrequencyFrequencyMaxPeriodPeriodMaxR4()
-
-
Method Details
-
hasFrequency
public boolean hasFrequency(org.hl7.fhir.r4.model.Dosage dosage) Check if dosage contains some frequency fields (frequency / frequencyMax)- Specified by:
hasFrequency
in interfaceFrequencyFrequencyMaxPeriodPeriodMax<FDSConfigR4,
org.hl7.fhir.r4.model.Dosage> - Parameters:
dosage
- The dosage to check- Returns:
- True if present, otherwise false
-
hasPeriod
public boolean hasPeriod(org.hl7.fhir.r4.model.Dosage dosage) Check if dosage contains some period fields (period / periodMax)- Specified by:
hasPeriod
in interfaceFrequencyFrequencyMaxPeriodPeriodMax<FDSConfigR4,
org.hl7.fhir.r4.model.Dosage> - Parameters:
dosage
- The dosage to check- Returns:
- True if present, otherwise false
-
extractFrequency
extractFrequency.
- Specified by:
extractFrequency
in interfaceFrequencyFrequencyMaxPeriodPeriodMax<FDSConfigR4,
org.hl7.fhir.r4.model.Dosage> - Parameters:
dosage
- a D object- Returns:
- a
CompletableFuture
object
-
extractPeriod
extractPeriod.
- Specified by:
extractPeriod
in interfaceFrequencyFrequencyMaxPeriodPeriodMax<FDSConfigR4,
org.hl7.fhir.r4.model.Dosage> - Parameters:
dosage
- a D object- Returns:
- a
CompletableFuture
object
-