forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Denominator.php
33 lines (30 loc) · 1.03 KB
/
Denominator.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
// Copyright (C) 2011 Brady Miller <brady.g.miller@gmail.com>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
//
// This file contains a function to keep track of which issues
// types get modified.
//
class AMC_302d_Denominator implements AmcFilterIF
{
public function getTitle()
{
return "AMC_302d Denominator";
}
public function test(AmcPatient $patient, $beginDate, $endDate)
{
// Seen by the EP or admitted to the eligible hospitals or CAHs inpatient or emergency department (POS 21 or 23)
// (basically needs an encounter within the report dates)
$options = array( Encounter::OPTION_ENCOUNTER_COUNT => 1 );
if (Helper::checkAnyEncounter($patient, $beginDate, $endDate, $options)) {
return true;
} else {
return false;
}
}
}