fix: Update patient_tracker.php (#6595)
[openemr.git] / library / classes / class.Handler_HL7v2.php
blob8caa61ab8d45303ee07be4146a6076d33d38deb2
1 <?php
3 // $Id$
4 // $Author$
6 class Handler_HL7v2
8 var $parser;
10 function __construct($parser)
12 $this->parser = &$parser;
15 function Type()
17 return false;
20 //----- Internal methods
22 function _StripToNumeric($string)
24 $target = '';
25 for ($pos = 0; $pos < strlen($string); $pos++) {
26 switch (substr($string, $pos, 1)) {
27 case '0':
28 case '1':
29 case '2':
30 case '3':
31 case '4':
32 case '5':
33 case '6':
34 case '7':
35 case '8':
36 case '9':
37 $target .= substr($string, $pos, 1);
38 break;
39 default: // do nothing
40 break;
44 return $target;
45 } // end method _StripToNumeric
46 } // end class Handler_HL7v2