virgil/commit

count drug mentions based on drug use, thus allow multiple entries per report

authorMichiel Hildebrand
Sun Dec 8 17:12:22 2013 +0100
committerMichiel Hildebrand
Sun Dec 8 17:12:22 2013 +0100
commit1df31eefdb01fba45f9e5d0312f2760da113c724
tree909108aa333d95c0a1588ef1f30e92127e053d51
parent3851d42687fb53574409921192a8371cacf714b2
Diff style: patch stat
diff --git a/api/drugs.pl b/api/drugs.pl
index a1fe70e..51bf4fa 100644
--- a/api/drugs.pl
+++ b/api/drugs.pl
@@ -33,7 +33,7 @@ http_drug_mentions(Request) :-
 
 drug_mentions(Q, Method, Mentions) :-
 	findall(Count-M,
-		(   setof(R, drug_mention(Method, Q, M, _, R),
+		(   setof(R, drug_mention(Method, Q, M, R),
 			  Rs),
 		    length(Rs, Count)
 		),
@@ -41,9 +41,11 @@ drug_mentions(Q, Method, Mentions) :-
 	keysort(Mentions0, Mentions1),
 	reverse(Mentions1, Mentions).
 
+/*
 drug_mention(Method, Q, Lit, DrugUse, Report) :-
 	drug_mention(Method, Q, Lit, DrugUse),
 	rdf(Report, aers:drug, DrugUse).
+*/
 
 drug_mention(exact, Q,  Lit, DrugUse) :-
 	!,