9 function Handler_HL7v2 ($parser) {
10 $this->parser
= &$parser;
17 //----- Internal methods
19 function _StripToNumeric ($string) {
21 for ($pos=0; $pos<strlen($string); $pos++
) {
22 switch (substr($string, $pos, 1)) {
23 case '0': case '1': case '2': case '3':
24 case '4': case '5': case '6': case '7':
26 $target .= substr($string, $pos, 1);
28 default: // do nothing
33 } // end method _StripToNumeric
35 } // end class Handler_HL7v2