Last active
June 4, 2020 06:27
-
-
Save ndonolli/8b71007ff3e27a00f5eb46712b8199bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn contraindications [meds pairs] | |
(let [meds-set (set (map :rxNorm meds)) | |
contains-pair? (partial every? meds-set)] | |
(->> pairs (filter contains-pair?) not-empty))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment