From 0d54535718e24623de2fc56fbbd732e42c4631dd Mon Sep 17 00:00:00 2001 From: Ken Chapple Date: Fri, 1 Jul 2011 10:29:58 -0700 Subject: [PATCH] fixed range for mysql and php compatability --- library/classes/ClinicalTypes/LabResult.php | 1 - library/classes/ClinicalTypes/Range.php | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/library/classes/ClinicalTypes/LabResult.php b/library/classes/ClinicalTypes/LabResult.php index 2f976c676..ea63dd227 100644 --- a/library/classes/ClinicalTypes/LabResult.php +++ b/library/classes/ClinicalTypes/LabResult.php @@ -23,7 +23,6 @@ class LabResult extends ClinicalType public function doPatientCheck( RsPatient $patient, $beginDate = null, $endDate = null, $options = null ) { $data = Codes::lookup( $this->getOptionId() ); - $type = $this->getListType(); $range = new Range( Range::NEG_INF, Range::POS_INF ); if ( isset( $options[self::OPTION_RANGE] ) && diff --git a/library/classes/ClinicalTypes/Range.php b/library/classes/ClinicalTypes/Range.php index f71f176f5..b2d415322 100644 --- a/library/classes/ClinicalTypes/Range.php +++ b/library/classes/ClinicalTypes/Range.php @@ -8,8 +8,8 @@ // class Range { - const NEG_INF = -1E100000000; - const POS_INF = INF; + const NEG_INF = -999999; + const POS_INF = 999999; public $lowerBound; public $upperBound; -- 2.11.4.GIT