Class DrugInteractionChecker
java.lang.Object
org.episteme.natural.medicine.pharmacology.DrugInteractionChecker
Drug interaction database and checker.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic enumstatic enum -
Method Summary
Modifier and TypeMethodDescriptionstatic voidAdds a new drug to the database.static voidaddInteraction(DrugInteractionChecker.DrugInteraction interaction) Adds a new interaction to the database.checkInteraction(String drug1Name, String drug2Name) Checks for interactions between two drugs.checkMedicationList(List<String> medications) Checks all interactions for a medication list.Infers potential interaction from drug properties.
-
Method Details
-
checkInteraction
public static Optional<DrugInteractionChecker.DrugInteraction> checkInteraction(String drug1Name, String drug2Name) Checks for interactions between two drugs. -
checkMedicationList
public static List<DrugInteractionChecker.DrugInteraction> checkMedicationList(List<String> medications) Checks all interactions for a medication list. -
inferPotentialInteractions
public static List<String> inferPotentialInteractions(DrugInteractionChecker.Drug drug1, DrugInteractionChecker.Drug drug2) Infers potential interaction from drug properties. -
addDrug
Adds a new drug to the database. -
addInteraction
Adds a new interaction to the database.
-