Record Class EffectiveDosageInstructions
java.lang.Object
java.lang.Record
org.projecthusky.fhir.emed.ch.epr.model.common.EffectiveDosageInstructions
public record EffectiveDosageInstructions(@Nullable String patientInstructions, String narrative, boolean isAsNeeded, List<DosageIntake> intakes, @Nullable Dose simpleDose, @Nullable List<TimingEventAmbu> simpleEventTimings, @Nullable String site, @Nullable RouteOfAdministrationEdqm routeOfAdministration, @Nullable org.hl7.fhir.r4.model.Period period, @Nullable AmountPerDuration maxDosePerPeriod, @Nullable AmountQuantity maxDosePerAdministration)
extends Record
A model of the effective dosage, resolved from a list of FHIR Dosages.
- Author:
- Quentin Ligier
-
Constructor Summary
ConstructorsConstructorDescriptionEffectiveDosageInstructions(@Nullable String patientInstructions, String narrative, boolean isAsNeeded, List<DosageIntake> intakes, @Nullable Dose simpleDose, @Nullable List<TimingEventAmbu> simpleEventTimings, @Nullable String site, @Nullable RouteOfAdministrationEdqm routeOfAdministration, @Nullable org.hl7.fhir.r4.model.Period period, @Nullable AmountPerDuration maxDosePerPeriod, @Nullable AmountQuantity maxDosePerAdministration) Creates an instance of aEffectiveDosageInstructionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static EffectiveDosageInstructionsfromDosages(ChEmedEprDosage baseDosage, List<ChEmedEprDosage> additionalDosages) Creates an instance from the base and additional dosages.@Nullable DosageIntake@Nullable DosageIntakegetIntake(TimingEventAmbu eventTiming) @Nullable DosageIntake@Nullable DosageIntake@Nullable DosageIntake@Nullable RegularUnitCodeAmbugetUnit()booleanfinal inthashCode()Returns a hash code value for this object.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanhasSimpleEventTiming(TimingEventAmbu timing) booleanintakes()Returns the value of theintakesrecord component.booleanReturns the value of theisAsNeededrecord component.booleanWhether the treatment is "regular" (i.e.@Nullable AmountQuantityReturns the value of themaxDosePerAdministrationrecord component.@Nullable AmountPerDurationReturns the value of themaxDosePerPeriodrecord component.Returns the value of thenarrativerecord component.@Nullable StringReturns the value of thepatientInstructionsrecord component.@Nullable org.hl7.fhir.r4.model.Periodperiod()Returns the value of theperiodrecord component.@Nullable RouteOfAdministrationEdqmReturns the value of therouteOfAdministrationrecord component.@Nullable DoseReturns the value of thesimpleDoserecord component.@Nullable List<TimingEventAmbu>Returns the value of thesimpleEventTimingsrecord component.@Nullable Stringsite()Returns the value of thesiterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EffectiveDosageInstructions
public EffectiveDosageInstructions(@Nullable String patientInstructions, String narrative, boolean isAsNeeded, List<DosageIntake> intakes, @Nullable Dose simpleDose, @Nullable List<TimingEventAmbu> simpleEventTimings, @Nullable String site, @Nullable RouteOfAdministrationEdqm routeOfAdministration, @Nullable org.hl7.fhir.r4.model.Period period, @Nullable AmountPerDuration maxDosePerPeriod, @Nullable AmountQuantity maxDosePerAdministration) Creates an instance of aEffectiveDosageInstructionsrecord class.- Parameters:
patientInstructions- the value for thepatientInstructionsrecord componentnarrative- the value for thenarrativerecord componentisAsNeeded- the value for theisAsNeededrecord componentintakes- the value for theintakesrecord componentsimpleDose- the value for thesimpleDoserecord componentsimpleEventTimings- the value for thesimpleEventTimingsrecord componentsite- the value for thesiterecord componentrouteOfAdministration- the value for therouteOfAdministrationrecord componentperiod- the value for theperiodrecord componentmaxDosePerPeriod- the value for themaxDosePerPeriodrecord componentmaxDosePerAdministration- the value for themaxDosePerAdministrationrecord component
-
-
Method Details
-
hasPatientInstructions
public boolean hasPatientInstructions() -
hasRouteOfAdministration
public boolean hasRouteOfAdministration() -
hasIntakes
public boolean hasIntakes() -
hasMaxDose
public boolean hasMaxDose() -
hasSimpleDose
public boolean hasSimpleDose() -
hasSimpleEventTimings
public boolean hasSimpleEventTimings() -
hasSimpleEventTiming
-
hasMorningSimpleEventTiming
public boolean hasMorningSimpleEventTiming() -
hasNoonSimpleEventTiming
public boolean hasNoonSimpleEventTiming() -
hasEveningSimpleEventTiming
public boolean hasEveningSimpleEventTiming() -
hasNightSimpleEventTiming
public boolean hasNightSimpleEventTiming() -
hasPeriod
public boolean hasPeriod() -
getMornIntake
-
getNoonIntake
-
getEveIntake
-
getNightIntake
-
getIntake
-
getUnit
-
isRegular
public boolean isRegular()Whether the treatment is "regular" (i.e. to be taken without condition). Iffalse, it's as needed. -
fromDosages
public static EffectiveDosageInstructions fromDosages(ChEmedEprDosage baseDosage, List<ChEmedEprDosage> additionalDosages) Creates an instance from the base and additional dosages. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
patientInstructions
Returns the value of thepatientInstructionsrecord component.- Returns:
- the value of the
patientInstructionsrecord component
-
narrative
Returns the value of thenarrativerecord component.- Returns:
- the value of the
narrativerecord component
-
isAsNeeded
public boolean isAsNeeded()Returns the value of theisAsNeededrecord component.- Returns:
- the value of the
isAsNeededrecord component
-
intakes
Returns the value of theintakesrecord component.- Returns:
- the value of the
intakesrecord component
-
simpleDose
Returns the value of thesimpleDoserecord component.- Returns:
- the value of the
simpleDoserecord component
-
simpleEventTimings
Returns the value of thesimpleEventTimingsrecord component.- Returns:
- the value of the
simpleEventTimingsrecord component
-
site
Returns the value of thesiterecord component.- Returns:
- the value of the
siterecord component
-
routeOfAdministration
Returns the value of therouteOfAdministrationrecord component.- Returns:
- the value of the
routeOfAdministrationrecord component
-
period
public @Nullable org.hl7.fhir.r4.model.Period period()Returns the value of theperiodrecord component.- Returns:
- the value of the
periodrecord component
-
maxDosePerPeriod
Returns the value of themaxDosePerPeriodrecord component.- Returns:
- the value of the
maxDosePerPeriodrecord component
-
maxDosePerAdministration
Returns the value of themaxDosePerAdministrationrecord component.- Returns:
- the value of the
maxDosePerAdministrationrecord component
-