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 aEffectiveDosageInstructions
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.static EffectiveDosageInstructions
fromDosages
(ChEmedEprDosage baseDosage, List<ChEmedEprDosage> additionalDosages) Creates an instance from the base and additional dosages.@Nullable DosageIntake
@Nullable DosageIntake
getIntake
(TimingEventAmbu eventTiming) @Nullable DosageIntake
@Nullable DosageIntake
@Nullable DosageIntake
@Nullable RegularUnitCodeAmbu
getUnit()
boolean
final int
hashCode()
Returns a hash code value for this object.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
hasSimpleEventTiming
(TimingEventAmbu timing) boolean
intakes()
Returns the value of theintakes
record component.boolean
Returns the value of theisAsNeeded
record component.boolean
Whether the treatment is "regular" (i.e.@Nullable AmountQuantity
Returns the value of themaxDosePerAdministration
record component.@Nullable AmountPerDuration
Returns the value of themaxDosePerPeriod
record component.Returns the value of thenarrative
record component.@Nullable String
Returns the value of thepatientInstructions
record component.@Nullable org.hl7.fhir.r4.model.Period
period()
Returns the value of theperiod
record component.@Nullable RouteOfAdministrationEdqm
Returns the value of therouteOfAdministration
record component.@Nullable Dose
Returns the value of thesimpleDose
record component.@Nullable List<TimingEventAmbu>
Returns the value of thesimpleEventTimings
record component.@Nullable String
site()
Returns the value of thesite
record component.final String
toString()
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 aEffectiveDosageInstructions
record class.- Parameters:
patientInstructions
- the value for thepatientInstructions
record componentnarrative
- the value for thenarrative
record componentisAsNeeded
- the value for theisAsNeeded
record componentintakes
- the value for theintakes
record componentsimpleDose
- the value for thesimpleDose
record componentsimpleEventTimings
- the value for thesimpleEventTimings
record componentsite
- the value for thesite
record componentrouteOfAdministration
- the value for therouteOfAdministration
record componentperiod
- the value for theperiod
record componentmaxDosePerPeriod
- the value for themaxDosePerPeriod
record componentmaxDosePerAdministration
- the value for themaxDosePerAdministration
record 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 thepatientInstructions
record component.- Returns:
- the value of the
patientInstructions
record component
-
narrative
Returns the value of thenarrative
record component.- Returns:
- the value of the
narrative
record component
-
isAsNeeded
public boolean isAsNeeded()Returns the value of theisAsNeeded
record component.- Returns:
- the value of the
isAsNeeded
record component
-
intakes
Returns the value of theintakes
record component.- Returns:
- the value of the
intakes
record component
-
simpleDose
Returns the value of thesimpleDose
record component.- Returns:
- the value of the
simpleDose
record component
-
simpleEventTimings
Returns the value of thesimpleEventTimings
record component.- Returns:
- the value of the
simpleEventTimings
record component
-
site
Returns the value of thesite
record component.- Returns:
- the value of the
site
record component
-
routeOfAdministration
Returns the value of therouteOfAdministration
record component.- Returns:
- the value of the
routeOfAdministration
record component
-
period
public @Nullable org.hl7.fhir.r4.model.Period period()Returns the value of theperiod
record component.- Returns:
- the value of the
period
record component
-
maxDosePerPeriod
Returns the value of themaxDosePerPeriod
record component.- Returns:
- the value of the
maxDosePerPeriod
record component
-
maxDosePerAdministration
Returns the value of themaxDosePerAdministration
record component.- Returns:
- the value of the
maxDosePerAdministration
record component
-