Details
-
Type:
New Feature
-
Status: Closed
-
Priority:
Should
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Reporting 0.9.1
-
Component/s: Running Reports
-
Complexity:Medium
Description
We have a person_attribute called "Test or Fake Patient" which we use to mark on those patient records for test patients. We need to have an easy way to exclude them when running queries/reports. Since different implementation sites might have different person_attribute_type_id for their test/fake patients, is it possible to add something on the global properties (to define which patient_attribute_type_id is for test/fake patient) so that they will be excluded when running queries/reports? Thanks!
TODO:
- Add a global property to the reporting module which can point to a saved Cohort Definition that represents "Test/Fake Patients". When evaluating any definitions, if this property is set, the services should ensure that these patients are removed from the query.
This can be implemented in CohortDefinitionServiceImpl.evaluate(CohortDefinition definition, EvaluationContext context)