Drugs Collected: Difference between revisions

mNo edit summary
mNo edit summary
Line 32: Line 32:


=== yes/no drugs ===
=== yes/no drugs ===
<!--
|where=Data_Element.tables HOLDS "L_Pharm_Flowsheet table" AND DATEDIFF(end_date,NOW()) >= 0
|where=Data_Element.tables HOLDS "L_Pharm_Flowsheet table" AND DATEDIFF(end_date,NOW()) >= 0
-->
{{#cargo_query:
{{#cargo_query:
tables=Data_Element
tables=Data_Element, Drugs_Included,
|fields=sort,_pageName=page, CCMDB_label =label, description,  start_date=start, end_date=end
|join on=Data_Element._pageName = Drugs_Included._pageName
|where=field_name NOT LIKE "%Complete" and field_name LIKE "pharm_%"  
|fields=Data_Element.sort=sort, Data_Element._pageName=page, Drugs_Included._pageName=DIP, drugs_included=drugs included,  start_date=start, end_date=end
|where=Data_Element.tables HOLDS "L_Log table"
|order by=sort
|order by=sort
|limit=1000
|limit=500
|more results text=Click here for the full list of drugs we have ever counted, with start and stop dates.
|default=no results were found
|default=no results were found
|max display chars=some number
|format=dynamic table
|format=dynamic table
|rows per page=500
|rows per page=50
}}
}}
<!-- old version
<!-- old version