From 6e98cda1922e87b8cf03c660b4eaff70f9b82299 Mon Sep 17 00:00:00 2001 From: sunsetsystems Date: Tue, 31 Mar 2009 04:19:24 +0000 Subject: [PATCH] changing some service codes --- interface/reports/ippf_daily.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/interface/reports/ippf_daily.php b/interface/reports/ippf_daily.php index 4e76eb725..7e434f2a2 100644 --- a/interface/reports/ippf_daily.php +++ b/interface/reports/ippf_daily.php @@ -215,6 +215,7 @@ if ($_POST['form_submit']) { $crow = sqlQuery("SELECT lc.new_method " . "FROM lists AS l, lists_ippf_con AS lc WHERE " . "l.pid = '$last_pid' AND l.begdate <= '$from_date' AND " . + "( l.enddate IS NULL OR l.enddate > '$from_date' ) AND " . "l.activity = 1 AND l.type = 'contraceptive' AND lc.id = l.id " . "ORDER BY l.begdate DESC LIMIT 1"); $amethods = explode('|', empty($crow) ? 'zzz' : $crow['new_method']); @@ -267,9 +268,9 @@ if ($_POST['form_submit']) { $code = 0 + $row['code']; if ($code == 255004) ++$areport[$method][6]; // pap smear if ($code == 256101) ++$areport[$method][7]; // preg test - if ($code == 375013) ++$areport[$method][8]; // dr's check - if ($code == 375013) ++$areport[$method][9]; // dr's visit - if ($code == 009903) ++$areport[$method][10]; // advice + if ($code == 375008) ++$areport[$method][8]; // dr's check + if ($code == 375014) ++$areport[$method][9]; // dr's visit (was 375013) + if ($code == 375011) ++$areport[$method][10]; // advice (was 009903) if ($code == 019916) ++$areport[$method][11]; // couns by method if ($code == 039916) ++$areport[$method][12]; // infert couns if ($code == 019911) ++$areport[$method][13]; // std/aids couns @@ -341,4 +342,4 @@ if ($form_output != 3) { \ No newline at end of file +?> -- 2.11.4.GIT