
Figure 4: A) The Cypher query of the toxicity check that searches for drug-variant pairs with a toxic association in the PGx medication check. The ‘match’ part fetches the necessary nodes for the query. In the ‘where’ part it is conditioned on the specific drug and gene variant and on the phenotype category type ‘Toxicity’. The query returns the identifier and name of the drug, if there is such an association.
B) The warning message that contains all necessary information and the reason for the user to know, where to adjust the prescription.