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 SummaryConstructorsConstructorDescriptionEffectiveDosageInstructions(@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 SummaryModifier 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- 
EffectiveDosageInstructionspublic 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 the- patientInstructionsrecord component
- narrative- the value for the- narrativerecord component
- isAsNeeded- the value for the- isAsNeededrecord component
- intakes- the value for the- intakesrecord component
- simpleDose- the value for the- simpleDoserecord component
- simpleEventTimings- the value for the- simpleEventTimingsrecord component
- site- the value for the- siterecord component
- routeOfAdministration- the value for the- routeOfAdministrationrecord component
- period- the value for the- periodrecord component
- maxDosePerPeriod- the value for the- maxDosePerPeriodrecord component
- maxDosePerAdministration- the value for the- maxDosePerAdministrationrecord component
 
 
- 
- 
Method Details- 
hasPatientInstructionspublic boolean hasPatientInstructions()
- 
hasRouteOfAdministrationpublic boolean hasRouteOfAdministration()
- 
hasIntakespublic boolean hasIntakes()
- 
hasMaxDosepublic boolean hasMaxDose()
- 
hasSimpleDosepublic boolean hasSimpleDose()
- 
hasSimpleEventTimingspublic boolean hasSimpleEventTimings()
- 
hasSimpleEventTiming
- 
hasMorningSimpleEventTimingpublic boolean hasMorningSimpleEventTiming()
- 
hasNoonSimpleEventTimingpublic boolean hasNoonSimpleEventTiming()
- 
hasEveningSimpleEventTimingpublic boolean hasEveningSimpleEventTiming()
- 
hasNightSimpleEventTimingpublic boolean hasNightSimpleEventTiming()
- 
hasPeriodpublic boolean hasPeriod()
- 
getMornIntake
- 
getNoonIntake
- 
getEveIntake
- 
getNightIntake
- 
getIntake
- 
getUnit
- 
isRegularpublic boolean isRegular()Whether the treatment is "regular" (i.e. to be taken without condition). Iffalse, it's as needed.
- 
fromDosagespublic static EffectiveDosageInstructions fromDosages(ChEmedEprDosage baseDosage, List<ChEmedEprDosage> additionalDosages) Creates an instance from the base and additional dosages.
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
patientInstructionsReturns the value of thepatientInstructionsrecord component.- Returns:
- the value of the patientInstructionsrecord component
 
- 
narrativeReturns the value of thenarrativerecord component.- Returns:
- the value of the narrativerecord component
 
- 
isAsNeededpublic boolean isAsNeeded()Returns the value of theisAsNeededrecord component.- Returns:
- the value of the isAsNeededrecord component
 
- 
intakesReturns the value of theintakesrecord component.- Returns:
- the value of the intakesrecord component
 
- 
simpleDoseReturns the value of thesimpleDoserecord component.- Returns:
- the value of the simpleDoserecord component
 
- 
simpleEventTimingsReturns the value of thesimpleEventTimingsrecord component.- Returns:
- the value of the simpleEventTimingsrecord component
 
- 
siteReturns the value of thesiterecord component.- Returns:
- the value of the siterecord component
 
- 
routeOfAdministrationReturns the value of therouteOfAdministrationrecord component.- Returns:
- the value of the routeOfAdministrationrecord component
 
- 
periodpublic @Nullable org.hl7.fhir.r4.model.Period period()Returns the value of theperiodrecord component.- Returns:
- the value of the periodrecord component
 
- 
maxDosePerPeriodReturns the value of themaxDosePerPeriodrecord component.- Returns:
- the value of the maxDosePerPeriodrecord component
 
- 
maxDosePerAdministrationReturns the value of themaxDosePerAdministrationrecord component.- Returns:
- the value of the maxDosePerAdministrationrecord component
 
 
-