Class Medication

java.lang.Object
org.episteme.natural.medicine.Medication
All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named

public class Medication extends Object implements ComprehensiveIdentification
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:
  • Field Details

  • Constructor Details

    • Medication

      public Medication(String name)
  • Method Details

    • getId

      public Identification getId()
      Description copied from interface: Identified
      Returns the unique identifier of this entity.
      Specified by:
      getId in interface Identified<Identification>
      Returns:
      the identifier
    • getTraits

      public Map<String,Object> getTraits()
      Description copied from interface: ComprehensiveIdentification
      Returns the traits map for this entity.
      Specified by:
      getTraits in interface Commented
      Specified by:
      getTraits in interface ComprehensiveIdentification
      Returns:
      the traits map
    • getPathology

      public Pathology getPathology()
    • setPathology

      public void setPathology(Pathology pathology)
    • getGenericName

      public String getGenericName()
    • setGenericName

      public void setGenericName(String genericName)
    • getBrandName

      public String getBrandName()
    • setBrandName

      public void setBrandName(String brandName)
    • getForm

      public Medication.Form getForm()
    • setForm

      public void setForm(Medication.Form form)
    • getRoute

      public Medication.Route getRoute()
    • setRoute

      public void setRoute(Medication.Route route)
    • setDosage

      public void setDosage(String dosage)
    • getDosage

      public String getDosage()
    • getDosageAmount

      public Quantity<?> getDosageAmount()
    • setDosageAmount

      public void setDosageAmount(Quantity<?> dosageAmount)
    • getFrequency

      public String getFrequency()
    • setFrequency

      public void setFrequency(String frequency)
    • getActiveIngredients

      public List<String> getActiveIngredients()
    • addActiveIngredient

      public void addActiveIngredient(String ingredient)
    • getSideEffects

      public List<String> getSideEffects()
    • addSideEffect

      public void addSideEffect(String effect)
    • getContraindications

      public List<String> getContraindications()
    • addContraindication

      public void addContraindication(String contraindication)
    • isPrescriptionRequired

      public boolean isPrescriptionRequired()
    • setPrescriptionRequired

      public void setPrescriptionRequired(boolean prescriptionRequired)
    • getAtcCode

      public String getAtcCode()
    • setAtcCode

      public void setAtcCode(String atcCode)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • aspirin

      public static Medication aspirin()