Class Medication
java.lang.Object
org.episteme.natural.medicine.Medication
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named
Represents a medication or drug with clinical and pharmaceutical details.
Modernized to use extensible enums and typed quantities for dosages.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActiveIngredient(String ingredient) voidaddContraindication(String contraindication) voidaddSideEffect(String effect) static Medicationaspirin()booleanQuantity<?> getForm()getId()Returns the unique identifier of this entity.getRoute()Returns the traits map for this entity.inthashCode()booleanvoidsetAtcCode(String atcCode) voidsetBrandName(String brandName) voidvoidsetDosageAmount(Quantity<?> dosageAmount) voidsetForm(Medication.Form form) voidsetFrequency(String frequency) voidsetGenericName(String genericName) voidsetPathology(Pathology pathology) voidsetPrescriptionRequired(boolean prescriptionRequired) voidsetRoute(Medication.Route route) toString()Methods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Field Details
-
id
-
traits
-
-
Constructor Details
-
Medication
-
-
Method Details
-
getId
Description copied from interface:IdentifiedReturns the unique identifier of this entity.- Specified by:
getIdin interfaceIdentified<Identification>- Returns:
- the identifier
-
getTraits
Description copied from interface:ComprehensiveIdentificationReturns the traits map for this entity.- Specified by:
getTraitsin interfaceCommented- Specified by:
getTraitsin interfaceComprehensiveIdentification- Returns:
- the traits map
-
getPathology
-
setPathology
-
getGenericName
-
setGenericName
-
getBrandName
-
setBrandName
-
getForm
-
setForm
-
getRoute
-
setRoute
-
setDosage
-
getDosage
-
getDosageAmount
-
setDosageAmount
-
getFrequency
-
setFrequency
-
getActiveIngredients
-
addActiveIngredient
-
getSideEffects
-
addSideEffect
-
getContraindications
-
addContraindication
-
isPrescriptionRequired
public boolean isPrescriptionRequired() -
setPrescriptionRequired
public void setPrescriptionRequired(boolean prescriptionRequired) -
getAtcCode
-
setAtcCode
-
equals
-
hashCode
-
toString
-
aspirin
-