Example #1
0
File: IN1.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7);
     $this->rawSeg = array();
     $this->rawSeg[0] = 'IN1';
     // IN1 Message Header Segment
     $this->rawSeg[1] = $this->getType('SI');
     $this->rawSeg[2] = $this->getType('CE');
     $this->rawSeg[3] = $this->getType('CX');
     $this->rawSeg[4] = $this->getType('XON');
     $this->rawSeg[5] = $this->getType('XAD');
     $this->rawSeg[6] = $this->getType('XPN');
     $this->rawSeg[7] = $this->getType('XTN');
     $this->rawSeg[8] = $this->getType('ST');
     $this->rawSeg[9] = $this->getType('XON');
     $this->rawSeg[10] = $this->getType('CX');
     $this->rawSeg[11] = $this->getType('XON');
     $this->rawSeg[12] = $this->getType('DT');
     $this->rawSeg[13] = $this->getType('DT');
     $this->rawSeg[14] = $this->getType('AUI');
     $this->rawSeg[15] = $this->getType('IS');
     $this->rawSeg[16] = $this->getType('XPN');
     $this->rawSeg[17] = $this->getType('CE');
     $this->rawSeg[18] = $this->getType('TS');
     $this->rawSeg[19] = $this->getType('XAD');
     $this->rawSeg[20] = $this->getType('IS');
     $this->rawSeg[21] = $this->getType('IS');
     $this->rawSeg[22] = $this->getType('ST');
     $this->rawSeg[23] = $this->getType('ID');
     $this->rawSeg[24] = $this->getType('DT');
     $this->rawSeg[25] = $this->getType('ID');
     $this->rawSeg[26] = $this->getType('DT');
     $this->rawSeg[27] = $this->getType('IS');
     $this->rawSeg[28] = $this->getType('ST');
     $this->rawSeg[29] = $this->getType('TS');
     $this->rawSeg[30] = $this->getType('XCN');
     $this->rawSeg[31] = $this->getType('IS');
     $this->rawSeg[32] = $this->getType('IS');
     $this->rawSeg[33] = $this->getType('NM');
     $this->rawSeg[34] = $this->getType('NM');
     $this->rawSeg[35] = $this->getType('IS');
     $this->rawSeg[36] = $this->getType('ST');
     $this->rawSeg[37] = $this->getType('CP');
     $this->rawSeg[38] = $this->getType('CP');
     $this->rawSeg[39] = $this->getType('NM');
     $this->rawSeg[40] = $this->getType('CP');
     $this->rawSeg[41] = $this->getType('CP');
     $this->rawSeg[42] = $this->getType('CE');
     $this->rawSeg[43] = $this->getType('IS');
     $this->rawSeg[44] = $this->getType('XAD');
     $this->rawSeg[45] = $this->getType('ST');
     $this->rawSeg[46] = $this->getType('IS');
     $this->rawSeg[47] = $this->getType('IS');
     $this->rawSeg[48] = $this->getType('IS');
     $this->rawSeg[49] = $this->getType('CX');
     $this->rawSeg[50] = $this->getType('IS');
     $this->rawSeg[51] = $this->getType('DT');
     $this->rawSeg[52] = $this->getType('ST');
     $this->rawSeg[53] = $this->getType('IS');
 }
Example #2
0
File: SCH.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7, 'SCH');
     $this->setField(1, 'EI', 75);
     $this->setField(2, 'EI', 75);
     $this->setField(3, 'NM', 5);
     $this->setField(4, 'EI', 22);
     $this->setField(5, 'CE', 250);
     $this->setField(6, 'CE', 250, true);
     $this->setField(7, 'CE', 250);
     // TABLE 0276
     $this->setField(8, 'CE', 250);
     // TABLE 0277
     $this->setField(9, 'NM', 20);
     $this->setField(10, 'CE', 250);
     $this->setField(11, 'TQ', 200, false, true);
     $this->setField(12, 'XCN', 250, false, true);
     $this->setField(13, 'XTN', 250);
     $this->setField(14, 'XAD', 250, false, true);
     $this->setField(15, 'PL', 80);
     $this->setField(16, 'XCN', 250, true, true);
     $this->setField(17, 'XTN', 250);
     $this->setField(18, 'XAD', 250, false, true);
     $this->setField(19, 'PL', 80);
     $this->setField(20, 'XCN', 250, true, true);
     $this->setField(21, 'XTN', 250, false, true);
     $this->setField(22, 'PL', 80);
     $this->setField(23, 'EI', 75);
     $this->setField(24, 'EI', 75);
     $this->setField(25, 'CE', 250);
     // TABLE 0278
     $this->setField(26, 'EI', 22);
     $this->setField(27, 'EI', 22);
 }
Example #3
0
File: IN3.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7);
     $this->rawSeg = array();
     $this->rawSeg[0] = 'IN3';
     // IN3 Message Header Segment
     $this->rawSeg[1] = $this->getType('SI');
     $this->rawSeg[2] = $this->getType('CX');
     $this->rawSeg[3] = $this->getType('XCN');
     $this->rawSeg[4] = $this->getType('ID');
     $this->rawSeg[5] = $this->getType('MOP');
     $this->rawSeg[6] = $this->getType('TS');
     $this->rawSeg[7] = $this->getType('TS');
     $this->rawSeg[8] = $this->getType('XCN');
     $this->rawSeg[9] = $this->getType('DT');
     $this->rawSeg[10] = $this->getType('DT');
     $this->rawSeg[11] = $this->getType('DTN');
     $this->rawSeg[12] = $this->getType('CE');
     $this->rawSeg[13] = $this->getType('TS');
     $this->rawSeg[14] = $this->getType('XCN');
     $this->rawSeg[15] = $this->getType('ST');
     $this->rawSeg[16] = $this->getType('XTN');
     $this->rawSeg[17] = $this->getType('CE');
     $this->rawSeg[18] = $this->getType('CE');
     $this->rawSeg[19] = $this->getType('XTN');
     $this->rawSeg[20] = $this->getType('ICD');
     $this->rawSeg[21] = $this->getType('ST');
     $this->rawSeg[22] = $this->getType('DT');
     $this->rawSeg[23] = $this->getType('IS');
     $this->rawSeg[24] = $this->getType('IS');
     $this->rawSeg[25] = $this->getType('XCN');
 }
Example #4
0
File: SPM.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7);
     $this->rawSeg = array();
     $this->rawSeg[0] = 'SPM';
     $this->rawSeg[1] = $this->getType('SI');
     $this->rawSeg[2] = $this->getType('EIP');
     $this->rawSeg[3] = $this->getType('EIP');
     $this->rawSeg[4] = $this->getType('CWE');
     $this->rawSeg[5] = $this->getType('CWE');
     $this->rawSeg[6] = $this->getType('CWE');
     $this->rawSeg[7] = $this->getType('CWE');
     $this->rawSeg[8] = $this->getType('CWE');
     $this->rawSeg[9] = $this->getType('CWE');
     $this->rawSeg[10] = $this->getType('CWE');
     $this->rawSeg[11] = $this->getType('CWE');
     $this->rawSeg[12] = $this->getType('CQ');
     $this->rawSeg[13] = $this->getType('NM');
     $this->rawSeg[14] = $this->getType('ST');
     $this->rawSeg[15] = $this->getType('CWE');
     $this->rawSeg[16] = $this->getType('CWE');
     $this->rawSeg[17] = $this->getType('DR');
     $this->rawSeg[18] = $this->getType('TS');
     $this->rawSeg[19] = $this->getType('TS');
     $this->rawSeg[20] = $this->getType('ID');
     $this->rawSeg[21] = $this->getType('CWE');
     $this->rawSeg[22] = $this->getType('CWE');
     $this->rawSeg[23] = $this->getType('CWE');
     $this->rawSeg[24] = $this->getType('CWE');
     $this->rawSeg[25] = $this->getType('CQ');
     $this->rawSeg[26] = $this->getType('NM');
     $this->rawSeg[27] = $this->getType('CWE');
     $this->rawSeg[28] = $this->getType('CWE');
     $this->rawSeg[29] = $this->getType('CWE');
 }
Example #5
0
File: UB1.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7);
     $this->rawSeg = array();
     $this->rawSeg[0] = 'UB1';
     // UB1 Message Header Segment
     $this->rawSeg[1] = $this->getType('SI');
     $this->rawSeg[2] = $this->getType('NM');
     $this->rawSeg[3] = $this->getType('NM');
     $this->rawSeg[4] = $this->getType('NM');
     $this->rawSeg[5] = $this->getType('NM');
     $this->rawSeg[6] = $this->getType('NM');
     $this->rawSeg[7] = $this->getType('IS');
     $this->rawSeg[8] = $this->getType('NM');
     $this->rawSeg[9] = $this->getType('NM');
     $this->rawSeg[10] = $this->getType('UVC');
     $this->rawSeg[11] = $this->getType('NM');
     $this->rawSeg[12] = $this->getType('CE');
     $this->rawSeg[13] = $this->getType('CE');
     $this->rawSeg[14] = $this->getType('DT');
     $this->rawSeg[15] = $this->getType('DT');
     $this->rawSeg[16] = $this->getType('OCD');
     $this->rawSeg[17] = $this->getType('CE');
     $this->rawSeg[18] = $this->getType('DT');
     $this->rawSeg[19] = $this->getType('DT');
     $this->rawSeg[20] = $this->getType('ST');
     $this->rawSeg[21] = $this->getType('ST');
     $this->rawSeg[22] = $this->getType('ST');
     $this->rawSeg[23] = $this->getType('ST');
 }
Example #6
0
File: NTE.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7, 'NTE');
     $this->setField(1, 'SI', 4);
     $this->setField(2, 'ID', 8);
     $this->setField(3, 'FT', 65536, false, true);
     $this->setField(4, 'CE', 250);
 }
Example #7
0
File: RGS.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7, 'RGS');
     $this->setField(1, 'SI', 4, true);
     $this->setField(2, 'ID', 3);
     // TABLE 0206
     $this->setField(3, 'CE', 250);
 }
Example #8
0
File: APR.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7, 'APR');
     $this->setField(1, 'SCV', 80, false, true);
     $this->setField(2, 'SCV', 80, false, true);
     $this->setField(3, 'SCV', 80, false, true);
     $this->setField(4, 'NM', 5, false, true);
     $this->setField(5, 'SCV', 80, false, true);
 }
Example #9
0
File: PV1.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7, 'PV1');
     $this->setField(1, 'SI', 1);
     $this->setField(2, 'IS', 1, true);
     $this->setField(3, 'PL', 1);
     $this->setField(4, 'IS', 1);
     $this->setField(5, 'CX', 1);
     $this->setField(6, 'PL', 1);
     $this->setField(7, 'XCN', 1, false, true);
     $this->setField(8, 'XCN', 1, false, true);
     $this->setField(9, 'XCN', 1, false, true);
     $this->setField(10, 'IS', 1);
     $this->setField(11, 'PL', 1);
     $this->setField(12, 'IS', 1);
     $this->setField(13, 'IS', 1);
     $this->setField(14, 'IS', 1);
     $this->setField(15, 'IS', 1, false, true);
     $this->setField(16, 'IS', 1);
     $this->setField(17, 'XCN', 1, false, true);
     $this->setField(18, 'IS', 1);
     $this->setField(19, 'CX', 1);
     $this->setField(20, 'FC', 1, false, true);
     $this->setField(21, 'IS', 1);
     $this->setField(22, 'IS', 1);
     $this->setField(23, 'IS', 1);
     $this->setField(24, 'IS', 1, false, true);
     $this->setField(25, 'DT', 1, false, true);
     $this->setField(26, 'NM', 1, false, true);
     $this->setField(27, 'NM', 1, false, true);
     $this->setField(28, 'IS', 1);
     $this->setField(29, 'IS', 1);
     $this->setField(30, 'DT', 1);
     $this->setField(31, 'IS', 1);
     $this->setField(32, 'NM', 1);
     $this->setField(33, 'NM', 1);
     $this->setField(34, 'IS', 1);
     $this->setField(35, 'DT', 1);
     $this->setField(36, 'IS', 1);
     $this->setField(37, 'DLD', 1);
     $this->setField(38, 'CE', 1);
     $this->setField(39, 'IS', 1);
     $this->setField(40, 'IS', 1);
     $this->setField(41, 'IS', 1);
     $this->setField(42, 'PL', 1);
     $this->setField(43, 'PL', 1);
     $this->setField(44, 'TS', 1);
     $this->setField(45, 'TS', 1, false, true);
     $this->setField(46, 'NM', 1);
     $this->setField(47, 'NM', 1);
     $this->setField(48, 'NM', 1);
     $this->setField(49, 'NM', 1);
     $this->setField(50, 'CX', 1);
     $this->setField(51, 'IS', 1);
     $this->setField(52, 'XCN', 1, false, true);
 }
Example #10
0
 function __construct($hl7)
 {
     parent::__construct($hl7, 'ZDS');
     $this->setField(1, 'ST', 250);
     $this->setField(2, 'ST', 250);
     $this->setField(3, 'ST', 250);
     $this->setField(4, 'ST', 250);
     $this->setField(5, 'ST', 250);
     $this->setField(6, 'ST', 250);
 }
Example #11
0
File: SFT.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7);
     $this->rawSeg = array();
     $this->rawSeg[0] = 'SFT';
     // SFT Message Header Segment
     $this->rawSeg[1] = $this->getType('XON');
     $this->rawSeg[2] = $this->getType('ST');
     $this->rawSeg[3] = $this->getType('ST');
     $this->rawSeg[4] = $this->getType('ST');
     $this->rawSeg[5] = $this->getType('TX');
     $this->rawSeg[6] = $this->getType('TS');
 }
Example #12
0
File: MRG.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7);
     $this->rawSeg = array();
     $this->rawSeg[0] = 'MRG';
     // MRG Message Header Segment
     $this->rawSeg[1] = $this->getType('CX');
     $this->rawSeg[2] = $this->getType('CX');
     $this->rawSeg[3] = $this->getType('CX');
     $this->rawSeg[4] = $this->getType('CX');
     $this->rawSeg[5] = $this->getType('CX');
     $this->rawSeg[6] = $this->getType('CX');
     $this->rawSeg[7] = $this->getType('XPN');
 }
Example #13
0
File: EVN.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7);
     $this->rawSeg = array();
     $this->rawSeg[0] = 'EVN';
     // EVN Message Header Segment
     $this->rawSeg[1] = $this->getType('ID');
     $this->rawSeg[2] = $this->getType('TS');
     $this->rawSeg[3] = $this->getType('TS');
     $this->rawSeg[4] = $this->getType('IS');
     $this->rawSeg[5] = $this->getType('XCN');
     $this->rawSeg[6] = $this->getType('TS');
     $this->rawSeg[7] = $this->getType('HD');
 }
Example #14
0
File: ACC.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7, 'ACC');
     $this->setField(1, 'TS', 26);
     $this->setField(2, 'CE', 250);
     $this->setField(3, 'ST', 25);
     $this->setField(4, 'CE', 250);
     $this->setField(5, 'ID', 1);
     $this->setField(6, 'ID', 12);
     $this->setField(7, 'XCN', 250);
     $this->setField(8, 'ST', 25);
     $this->setField(9, 'ST', 80);
     $this->setField(10, 'ID', 1);
     $this->setField(11, 'XAD', 250);
 }
Example #15
0
File: AL1.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7);
     $this->rawSeg = array();
     $this->rawSeg[0] = 'AL1';
     // PID Message Header Segment
     $this->rawSeg[1] = $this->getType('SI');
     $this->rawSeg[2] = $this->getType('CE');
     // TABLE 0127
     $this->rawSeg[3] = $this->getType('CE');
     $this->rawSeg[4] = $this->getType('CE');
     // TABLE 0128
     $this->rawSeg[5] = $this->getType('ST');
     $this->rawSeg[6] = $this->getType('DT');
 }
Example #16
0
File: DB1.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7);
     $this->rawSeg = array();
     $this->rawSeg[0] = 'DB1';
     // DB1 Message Header Segment
     $this->rawSeg[1] = $this->getType('SI');
     $this->rawSeg[2] = $this->getType('IS');
     // TABLE 0334
     $this->rawSeg[3] = $this->getType('CX');
     $this->rawSeg[4] = $this->getType('ID');
     // TABLE 0136
     $this->rawSeg[5] = $this->getType('DT');
     $this->rawSeg[6] = $this->getType('DT');
     $this->rawSeg[7] = $this->getType('DT');
     $this->rawSeg[8] = $this->getType('DT');
 }
Example #17
0
File: NK1.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7, 'NK1');
     $this->setField(1, 'SI', 4);
     $this->setField(2, 'XPN', 4);
     $this->setField(3, 'CE', 4);
     $this->setField(4, 'XAD', 4);
     $this->setField(5, 'XTN', 4);
     $this->setField(6, 'XTN', 4);
     $this->setField(7, 'CE', 4);
     $this->setField(8, 'DT', 4);
     $this->setField(9, 'DT', 4);
     $this->setField(10, 'ST', 4);
     $this->setField(11, 'JCC', 4);
     $this->setField(12, 'CX', 4);
     $this->setField(13, 'XON', 4);
     $this->setField(14, 'CE', 4);
     $this->setField(15, 'IS', 4);
     $this->setField(16, 'TS', 4);
     $this->setField(17, 'IS', 4);
     $this->setField(18, 'IS', 4);
     $this->setField(19, 'CE', 4);
     $this->setField(20, 'CE', 4);
     $this->setField(21, 'IS', 4);
     $this->setField(22, 'CE', 4);
     $this->setField(23, 'ID', 4);
     $this->setField(24, 'IS', 4);
     $this->setField(25, 'CE', 4);
     $this->setField(26, 'XPN', 4);
     $this->setField(27, 'CE', 4);
     $this->setField(28, 'CE', 4);
     $this->setField(29, 'CE', 4);
     $this->setField(30, 'XPN', 4);
     $this->setField(31, 'XTN', 4);
     $this->setField(32, 'XAD', 4);
     $this->setField(33, 'CX', 4);
     $this->setField(34, 'IS', 4);
     $this->setField(35, 'CE', 4);
     $this->setField(36, 'IS', 4);
     $this->setField(37, 'ST', 4);
     $this->setField(38, 'ST', 4);
     $this->setField(39, 'IS', 4);
 }
Example #18
0
File: MSA.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7, 'MSA');
     /**
      * MSA-1 Acknowledgment Code
      * AA Original mode: Application Accept - Enhanced mode: Application acknowledgment: Accept
      * AE Original mode: Application Error - Enhanced mode: Application acknowledgment: Error
      * AR Original mode: Application Reject - Enhanced mode: Application acknowledgment: Reject CA Enhanced mode: Accept acknowledgment: Commit Accept
      * CE Enhanced mode: Accept acknowledgment: Commit Error
      * CR Enhanced mode: Accept acknowledgment: Commit Reject
      */
     $this->setField(1, 'ID', 2, true);
     $this->setField(2, 'ST', 20, true);
     $this->setField(3, 'ST', 80);
     $this->setField(4, 'NM', 15);
     $this->setFieldValue(5, null);
     //The MSA-5 was deprecated as of v2.2 standard
     $this->setField(6, 'CE', 250);
 }
Example #19
0
File: PDA.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7);
     $this->rawSeg = array();
     $this->rawSeg = array();
     $this->rawSeg[0] = 'PDA';
     // AL1 Message Header Segment
     $this->rawSeg[1] = $this->getType('CE');
     $this->rawSeg[2] = $this->getType('PL');
     $this->rawSeg[3] = $this->getType('ID');
     // TABLE 0136
     $this->rawSeg[4] = $this->getType('TS');
     $this->rawSeg[5] = $this->getType('XCN');
     $this->rawSeg[6] = $this->getType('ID');
     // TABLE 0136
     $this->rawSeg[7] = $this->getType('DR');
     $this->rawSeg[8] = $this->getType('XCN');
     $this->rawSeg[9] = $this->getType('ID');
     // TABLE 0136
 }
Example #20
0
File: AIP.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7, 'AIP');
     $this->setField(1, 'SI', 4, true);
     $this->setField(2, 'ID', 3);
     // TABLE 0206
     $this->setField(3, 'XCN', 250, false, true);
     $this->setField(4, 'CE', 250);
     // TABLE 0182
     $this->setField(5, 'CE', 250);
     $this->setField(6, 'TS', 26);
     $this->setField(7, 'NM', 20);
     $this->setField(8, 'CE', 250);
     $this->setField(9, 'NM', 20);
     $this->setField(10, 'CE', 250);
     $this->setField(11, 'IS', 10);
     // TABLE 0279
     $this->setField(12, 'CE', 250);
     // TABLE 0278
 }
Example #21
0
File: PR1.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7);
     $this->rawSeg = array();
     $this->rawSeg[0] = 'PR1';
     // PR1 Message Header Segment
     $this->rawSeg[1] = $this->getType('SI');
     $this->rawSeg[2] = $this->getType('IS');
     // TABLE 0089
     $this->rawSeg[3] = $this->getType('CE');
     // TABLE 0088
     $this->rawSeg[4] = $this->getType('ST');
     $this->rawSeg[5] = $this->getType('TS');
     $this->rawSeg[6] = $this->getType('IS');
     // TABLE 0230
     $this->rawSeg[7] = $this->getType('NM');
     $this->rawSeg[8] = $this->getType('XCN');
     // TABLE 0010
     $this->rawSeg[9] = $this->getType('IS');
     // TABLE 0019
     $this->rawSeg[10] = $this->getType('NM');
     $this->rawSeg[11] = $this->getType('XCN');
     // TABLE 0010
     $this->rawSeg[12] = $this->getType('XCN');
     // TABLE 0010
     $this->rawSeg[13] = $this->getType('CE');
     // TABLE 0059
     $this->rawSeg[14] = $this->getType('ID');
     // TABLE 0418
     $this->rawSeg[15] = $this->getType('CE');
     // TABLE 0051
     $this->rawSeg[16] = $this->getType('CE');
     // TABLE 0340
     $this->rawSeg[17] = $this->getType('IS');
     // TABLE 0416
     $this->rawSeg[18] = $this->getType('CE');
     // TABLE 0417
     $this->rawSeg[19] = $this->getType('EI');
     $this->rawSeg[20] = $this->getType('ID');
     // TABLE 0206
 }
Example #22
0
File: PD1.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7, 'PD1');
     $this->setField(1, 'IS', 2, false, true);
     // TABLE 0223
     $this->setField(2, 'IS', 2);
     // TABLE 0220
     $this->setField(3, 'XON', 250, false, true);
     $this->setField(4, 'XCN', 250, false, true);
     $this->setField(5, 'IS', 2);
     // TABLE 0231
     $this->setField(6, 'IS', 2);
     // TABLE 0295
     $this->setField(7, 'IS', 2);
     // TABLE 0315
     $this->setField(8, 'IS', 2);
     // TABLE 0316
     $this->setField(9, 'ID', 1);
     // TABLE 0136
     $this->setField(10, 'CX', 250, false, true);
     $this->setField(11, 'CE', 250);
     // TABLE 0215
     $this->setField(12, 'ID', 1);
     // TABLE 0136
     $this->setField(13, 'DT', 8);
     $this->setField(14, 'XON', 250, false, true);
     $this->setField(15, 'CE', 250, false, true);
     // TABLE 0435
     $this->setField(16, 'IS', 1);
     // TABLE 0441
     $this->setField(17, 'DT', 8);
     $this->setField(18, 'DT', 8);
     $this->setField(19, 'IS', 5);
     // TABLE 0140
     $this->setField(20, 'IS', 2);
     // TABLE 0141
     $this->setField(21, 'IS', 3);
     // TABLE 0142
 }
Example #23
0
File: DG1.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7, 'DG1');
     $this->setField(1, 'SI', 4, true);
     $this->setField(2, 'ID', 2, true);
     // TABLE 0053
     $this->setField(3, 'CE', 250);
     // TABLE 0051
     $this->setField(4, 'ST', 40);
     $this->setField(5, 'TS', 26);
     $this->setField(6, 'IS', 2, true);
     // TABLE 0052
     $this->setField(7, 'CE', 250);
     // TABLE 0118
     $this->setField(8, 'CE', 250);
     // TABLE 0055
     $this->setField(9, 'ID', 1);
     // TABLE 0136
     $this->setField(10, 'IS', 2);
     // TABLE 0056
     $this->setField(11, 'CE', 250);
     // TABLE 0083
     $this->setField(12, 'NM', 3);
     $this->setField(13, 'CP', 12);
     $this->setField(14, 'ST', 4);
     $this->setField(15, 'ID', 2);
     // TABLE 0206
     $this->setField(16, 'XCN', 250, false, true);
     $this->setField(17, 'IS', 3);
     // TABLE 0206
     $this->setField(18, 'ID', 1);
     // TABLE 0206
     $this->setField(19, 'TS', 26);
     $this->setField(20, 'EI', 427);
     $this->setField(21, 'ID', 1);
     // TABLE 0206
 }
Example #24
0
File: MSH.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7, 'MSH');
     // 2 and 3 are set by default in constructor
     $this->setField(3, 'HD', 227);
     $this->setField(4, 'HD', 227);
     $this->setField(5, 'HD', 227);
     $this->setField(6, 'HD', 227);
     $this->setField(7, 'TS', 26, true);
     $this->setField(8, 'ST', 40);
     $this->setField(9, 'MSG', 15, true);
     $this->setFieldValue(10, $this->newUID());
     $this->setField(11, 'PT', 3, true);
     $this->setField(12, 'VID', 60, true);
     $this->setField(13, 'NM', 15);
     $this->setField(14, 'ST', 180);
     $this->setField(15, 'ID', 2);
     /**
      * MSH-16 Application Acknowledgment Type
      *
      * AL Always
      * NE Never
      * ER Error/reject conditions only
      * SU Successful completion only
      */
     $this->setField(16, 'ID', 2);
     /**
      * MSH-17 Country Code
      * use 3-character (alphabetic) form of ISO 3166
      */
     $this->setField(17, 'ID', 3);
     $this->setField(18, 'ID', 16, false, true);
     $this->setField(19, 'CE', 250);
     $this->setField(20, 'ID', 20);
     $this->setField(21, 'EI', 427, false, true);
 }
Example #25
0
File: ROL.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7);
     $this->rawSeg = array();
     $this->rawSeg = array();
     $this->rawSeg[0] = 'ROL';
     // ROL Message Header Segment
     $this->rawSeg[1] = $this->getType('EI');
     $this->rawSeg[2] = $this->getType('ID');
     // TABLE 0287
     $this->rawSeg[3] = $this->getType('CE');
     // TABLE 0443
     $this->rawSeg[4] = $this->getType('XCN');
     $this->rawSeg[5] = $this->getType('TS');
     $this->rawSeg[6] = $this->getType('TS');
     // TABLE 0136
     $this->rawSeg[7] = $this->getType('CE');
     $this->rawSeg[8] = $this->getType('CE');
     $this->rawSeg[9] = $this->getType('CE');
     $this->rawSeg[10] = $this->getType('CE');
     // TABLE 0406
     $this->rawSeg[11] = $this->getType('XAD');
     $this->rawSeg[12] = $this->getType('XTN');
 }
Example #26
0
File: ERR.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7, 'ERR');
     $this->setField(1, 'ELD', 493, false, true);
     $this->setField(2, 'ERL', 18, false, true);
     /**
      * 0   - Message accepted                  - Used for systems that must always return a status code. Success. Optional, as the AA conveys success.
      * 100 - Segment sequence error            - Error: The message segments were not in the proper order, or required segments are missing.
      * 101 - Required field missing            - Error: A required field is missing from a segment
      * 102 - Data type error                   - Error: The field contained data of the wrong data type, e.g. an NM field contained "FOO".
      * 103 - Table value not found             - Error: A field of data type ID or IS was compared against the corresponding table, and no match was found.
      * 200 - Unsupported message type          - Rejection: The Message Type is not supported.
      * 201 - Unsupported supported. event code - Rejection: The Event Code is not
      * 202 - Unsupported processing id         - Rejection: The Processing ID is not supported.
      * 203 - Unsupported version id            - Rejection: The Version ID is not supported.
      * 204 - Unknown key identifier            - Rejection: The ID of the patient, order, etc., was not found. Used for transactions other than additions, e.g. transfer of a non-existent patient.
      * 205 - Duplicate key identifier          - Rejection: The ID of the patient, order, etc., already exists. Used in response to addition transactions (Admit, New Order, etc.).
      * 206 - Application record locked         - Rejection: The transaction could not be performed at the application store level, e.g., database locked.
      * 207 - Application Internal Error        - Rejection: A catchall for internal errors not explicitly covered by other codes.
      */
     $this->setField(3, 'CWE', 705, true);
     /**
      * W - Warning      - Transaction  successful, but there may issues
      * I - Information  - Transaction  successful, but includes information e.g., inform patient
      * E - Error        - Transaction was unsuccessful
      */
     $this->setField(4, 'ID', 2, true);
     $this->setField(5, 'CWE', 705);
     $this->setField(6, 'ST', 80, false, true);
     $this->setField(7, 'TX', 2048);
     $this->setField(8, 'TX', 250);
     $this->setField(9, 'IS', 20, false, true);
     $this->setField(10, 'CWE', 705);
     $this->setField(11, 'CWE', 705, false, true);
     $this->setField(12, 'XTN', 652, false, true);
 }
Example #27
0
File: OBR.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7, 'OBR');
     $this->setField(1, 'SI', 4);
     $this->setField(2, 'EI', 22);
     $this->setField(3, 'EI', 22);
     $this->setField(4, 'CE', 250, true);
     $this->setField(5, 'ID', 2);
     $this->setField(6, 'TS', 26);
     $this->setField(7, 'TS', 26);
     $this->setField(8, 'TS', 26);
     $this->setField(9, 'CQ', 20);
     $this->setField(10, 'XCN', 250, false, true);
     /**
      * OBR-11 Specimen Action Code
      * A    Add ordered tests to the existing specimen
      * G    Generated order; reflex order
      * L    Lab to obtain specimen from patient
      * O    Specimen obtained by service other than Lab
      * P    Pending specimen; Order sent prior to delivery
      * R    Revised order
      * S    Schedule the tests specified below
      */
     $this->setField(11, 'ID', 1);
     $this->setField(12, 'CE', 250);
     $this->setField(13, 'ST', 300);
     $this->setField(14, 'TS', 26);
     /**
      * OBR-15 Specimen Source
      * B Blind Sample
      * C Calibrator
      * P Patient (default if blank component value)
      * Q Control specimen
      * R Replicate (of patient sample as a control)
      */
     $this->setField(15, 'SPS', 300);
     $this->setField(16, 'XCN', 250, false, true);
     $this->setField(17, 'XTN', 250, false, true);
     $this->setField(18, 'ST', 60);
     $this->setField(19, 'ST', 60);
     $this->setField(20, 'ST', 60);
     $this->setField(21, 'ST', 60);
     $this->setField(22, 'TS', 60);
     $this->setField(23, 'MOC', 40);
     /**
      * OBR-24 Diagnostic Serv Sect ID
      * AU   Audiology
      * BG   Blood Gases
      * BLB  Blood Bank
      * CUS  Cardiac Ultrasound
      * CTH  Cardiac Catheterization
      * CT   CAT Scan
      * CH   Chemistry
      * CP   Cytopathology
      * EC   Electrocardiac (e.g., EKG, EEC, Holter)
      * EN   Electroneuro (EEG, EMG,EP,PSG)
      * HM   Hematology
      * ICU  Bedside ICU Monitoring
      * IMM  Immunology
      * LAB  Laboratory
      * MB   Microbiology
      * MCB  Mycobacteriology
      * MYC  Mycology
      * NMS  Nuclear Medicine Scan
      * NMR  Nuclear Magnetic Resonance
      * NRS  Nursing Service Measures
      * OUS  OB Ultrasound
      * OT   Occupational Therapy
      * OTH  Other
      * OSL  Outside Lab
      * PHR  Pharmacy
      * PT   Physical Therapy
      * PHY  Physician (Hx. Dx, admission note, etc.)
      * PF   Pulmonary Function
      * RAD  Radiology
      * RX   Radiograph
      * RUS  Radiology Ultrasound
      * RC   Respiratory Care (therapy)
      * RT   Radiation Therapy
      * SR   Serology
      * SP   Surgical Pathology
      * TX   Toxicology
      * VUS  Vascular Ultrasound
      * VR   Virology
      * XRC  Cineradiograph
      */
     $this->setField(24, 'ID', 10);
     /**
      * OBR-25 Result Status
      * O    Order received; specimen not yet received
      * I    No results available; specimen received, procedure incomplete
      * S    No results available; procedure scheduled, but not done
      * A    Some, but not all, results available
      * P    Preliminary: A verified early result is available, final results not yet obtained
      * C    Correction to results
      * R    Results stored; not yet verified
      * F    Final results; results stored and verified. Can only be changed with a corrected result.
      * X    No results available; Order canceled.
      * Y    No order on record for this test. (Used only on queries)
      * Z    No record of this patient. (Used only on queries)
      */
     $this->setField(25, 'ID', 1);
     $this->setField(26, 'PRL', 400);
     $this->setField(27, 'TQ', 200, false, true);
     $this->setField(28, 'XCN', 250, false, true);
     $this->setField(29, 'EIP', 200);
     /**
      * OBR-30 Transportation Mode
      * CART     Cart - patient travels on cart or gurney
      * PORT     The examining device goes to patient's location
      * WALK     Patient walks to diagnostic service
      * WHLC     Wheelchair
      */
     $this->setField(30, 'ID', 1);
     $this->setField(31, 'CE', 250, false, true);
     $this->setField(32, 'NDL', 200);
     $this->setField(33, 'NDL', 200, false, true);
     $this->setField(34, 'NDL', 200, false, true);
     $this->setField(35, 'NDL', 200, false, true);
     $this->setField(36, 'TS', 26);
     $this->setField(37, 'NM', 4);
     $this->setField(38, 'CE', 250, false, true);
     $this->setField(39, 'CE', 250, false, true);
     $this->setField(40, 'CE', 250);
     /**
      * OBR-41 Transport Arranged
      * A    Arranged
      * N    Not Arranged
      * U    Unknown
      */
     $this->setField(41, 'ID', 30);
     /**
      * OBR-42 Escort Required
      * R    Required
      * N    Not Required
      * U    Unknown
      */
     $this->setField(42, 'ID', 1);
     $this->setField(43, 'CE', 250, false, true);
     $this->setField(44, 'CE', 250);
     $this->setField(45, 'CE', 250, false, true);
     $this->setField(46, 'CE', 250, false, true);
     /**
      * OBR-47 Filler Supplemental Service Information
      * The SNOMED DICOM Micro-glossary (SDM) or private (local) entries.
      */
     $this->setField(47, 'CE', 250);
     $this->setField(48, 'CWE', 250);
     $this->setField(49, 'IS', 2);
     /**
      * OBR-49 Result Handling
      * F    Film-with-patient
      * N    Notify provider when ready
      */
     $this->setField(50, 'CWE', 250);
 }
Example #28
0
     $types = $cache_types[$typeoption];
 }
 if (!empty($types)) {
     setvar("cats", $types);
 }
 foreach ($allowed_search as $k => $v) {
     $modules[$v] = L(array_search($v, $allowed_search));
 }
 ksort($modules);
 setvar("top_modules", $modules);
 unset($modules[$option]);
 array_unshift($modules, L(array_search($option, $allowed_search)));
 setvar("modules", $modules);
 //similar
 require LIB_PATH . "segment.class.php";
 $segment = new Segments();
 $similar_q = $segment->Split($_GET['q']);
 if (!empty($similar_q)) {
     $similar_result = $similar_q;
 } else {
     $similar_result = $model_object->GetArray("SELECT *,name AS title FROM " . $tb_prefix . "tags WHERE name like '%" . $_GET['q'] . "%' ORDER BY id DESC LIMIT 0,10");
 }
 setvar("similar_search", $similar_result);
 setvar("items", $result);
 $from = $pos == 0 ? 0 : $pos + 1;
 setvar("paging", array('total' => $model_object->amount, 'from' => $from, 'to' => ($to = $pos + $limit) > $model_object->amount ? $model_object->amount : $to));
 setvar("TimeSpend", number_format(getmicrotime() - $time_start, 3));
 $tpl = $theme_name . DS . $option . DS . 'list' . $smarty->tpl_ext;
 $viewhelper->setTitle(L(array_search($option, $allowed_search), 'tpl'));
 if ($_GET['q']) {
     $viewhelper->setTitle($_GET['q']);
Example #29
0
File: RXR.php Project: igez/gaiaehr
 function __construct($hl7)
 {
     parent::__construct($hl7, 'RXR');
     /**
      * RXR-1 Route (CE) 00309
      *
      * Components:
      * <Identifier (ST)> ^
      * <Text (ST)> ^
      * <Name of Coding System (ID)> ^
      * <Alternate Identifier (ST)> ^
      * <Alternate Text (ST)> ^
      * <Name of Alternate Coding System (ID)>
      *
      * Definition: This field is the route of administration.
      * Some current "route codes," such as some of the NDC-derived codes include the site already. In such
      * cases, the entire code can be included in this field as a "locally-defined code" for the CE data type.
      * Refer to User-Defined Table 0162 - Route Of Administration for valid values.
      */
     $this->setField(1, 'CE', 250, true);
     /**
      * RXR-2 Administration Site (CWE) 00310
      *
      * Components:
      * <Identifier (ST)> ^
      * <Text (ST)> ^
      * <Name of Coding System (ID)> ^
      * <Alternate Identifier (ST)> ^
      * <Alternate Text (ST)> ^
      * <Name of Alternate Coding System (ID)> ^
      * <Coding System Version ID (ST)> ^
      * <Alternate Coding System Version ID (ST)> ^
      * <Original Text (ST)>
      *
      * Definition: This field contains the site of the administration route. When using a post-coordinated code
      * table in this field, RXR-6 Administration Site may be used to modify the meaning of this field.
      * Refer to HL7 Table 0550 – Body Parts for valid values. For backward compatibility, HL7 Table 0163 –
      * Body Site may also be employed. Other appropriate external code sets (e.g., SNOMED) may also be
      * employed.
      */
     $this->setField(2, 'ST', 250, false);
     /**
      * RXR-3 Administration Device (CE) 00311
      *
      * Components:
      * <Identifier (ST)> ^
      * <Text (ST)> ^
      * <Name of Coding System (ID)> ^
      * <Alternate Identifier (ST)> ^
      * <Alternate Text (ST)> ^
      * <Name of Alternate Coding System (ID)>
      *
      * Definition: This field contains the mechanical device used to aid in the administration of the drug or other
      * treatment. Common examples are IV-sets of different types. Refer to User-defined Table 0164 -
      * Administration device for valid entries.
      */
     $this->setField(3, 'CE', 250, false);
     // Identifier
     /**
      * RXR-4 Administration Method (CWE) 00312
      *
      * Components:
      * <Identifier (ST)> ^
      * <Text (ST)> ^
      * <Name of Coding System (ID)> ^
      * <Alternate Identifier (ST)> ^
      * <Alternate Text (ST)> ^
      * <Name of Alternate Coding System (ID)> ^
      * <Coding System Version ID (ST)> ^
      * <Alternate Coding System Version ID (ST)> ^
      * <Original Text (ST)>
      *
      * Definition: This field identifies the specific method requested for the administration of the drug or
      * treatment to the patient. Refer To User-defined Table 0165 – Administration Method for valid values.
      */
     $this->setField(4, 'CWE', 250, false);
     /**
      * 4.14.2.5 RXR-5 Routing Instruction (CE) 01315
      *
      * Components:
      * <Identifier (ST)> ^
      * <Text (ST)> ^
      * <Name of Coding System (ID)> ^
      * <Alternate Identifier (ST)> ^
      * <Alternate Text (ST)> ^
      * <Name of Alternate Coding System (ID)>
      *
      * Definition: This field provides instruction on administration routing, especially in cases where more than
      * one route of administration is possible. A typical case would be designating which IV line should be used
      * when more than one IV line is a possible route for injection.
      */
     $this->setField(5, 'CE', 250);
     /**
      * 4.14.2.6 RXR-6 Administration Site Modifier (CWE) 01670
      *
      * Components:
      * <Identifier (ST)> ^
      * <Text (ST)> ^
      * <Name of Coding System (ID)> ^
      * <Alternate Identifier (ST)> ^
      * <Alternate Text (ST)> ^
      * <Name of Alternate Coding System (ID)> ^
      * <Coding System Version ID (ST)> ^
      * <Alternate Coding System Version ID (ST)> ^
      * <Original Text (ST)>
      *
      * Definition:
      * This field contains a modifier which modifies the meaning of RXR-2 Administration Site.
      * The code table used in this field is dependent upon the code table used in RXR-2 Administration site. If
      * RXR-2 employs HL7 Table 0550 – Body Parts, then this field may only be populated with values from HL7
      * Table 0495 – Body Parts Modifier. If RXR-2 employs HL7 Table 0163 – Body Site, then RXR-6 should not
      * be populated. In the case of other code sets (e.g., SNOMED) in RXR-2, RXR-6 may only be populated if
      * modifiers are defined within, or related to, that code set.
      *
      * Condition Rule:
      * This field may only be populated if RXR-2 Administration Site is populated. This field is
      * not required if RXR-2 is populated.
      */
     $this->setField(6, 'CWE', 250, false);
 }
Example #30
0
 function lists()
 {
     global $time_start, $viewhelper, $pos, $smarty, $theme_name;
     $cache_types = cache_read("type");
     $viewhelper->setTitle(L("advanced_search", 'tpl'));
     $module = trim(strtolower($_GET['module']));
     if (in_array($module, $this->allowed_search)) {
         $tpl_file = "search/list";
         setvar('highlight_str', $this->keyword);
         switch ($module) {
             case "fair":
                 $module = "expo";
                 $option = "fair";
                 break;
             case "offer":
                 $option = "offer";
                 $module = "trade";
                 break;
             default:
                 $option = $module;
                 break;
         }
         $search_controller = new PbController();
         $model_name = htmlspecialchars($module, ENT_QUOTES);
         uses($model_name);
         $model_name = $search_controller->pluralize(ucwords($model_name));
         $model_object = new $model_name();
         $model_object->initSearch();
         $result = array();
         if ($model_object->amount > 0) {
             $result = $model_object->Search($pos, $this->displaypg);
         }
         //lft cat nav
         switch ($module) {
             case "product":
                 $typeoption = "productsort";
                 break;
             case "trade":
                 $typeoption = "offertype";
                 break;
             default:
                 $typeoption = $module . "type";
                 break;
         }
         if ($module == "company") {
             $cache_options = cache_read('typeoption');
             $types = $cache_options['manage_type'];
         } else {
             $types = $cache_types[$typeoption];
         }
         if (!empty($types)) {
             setvar("cats", $types);
         }
         foreach ($this->allowed_search as $k => $v) {
             $modules[$v] = L(array_search($v, $this->allowed_search));
         }
         ksort($modules);
         setvar("top_modules", $modules);
         setvar("current_module", $option);
         unset($modules[$option]);
         array_unshift($modules, L(array_search($option, $this->allowed_search)));
         setvar("modules", $modules);
         //similar
         require CLASS_PATH . "segment.class.php";
         $segment = new Segments();
         $search_q = $similar_result = '';
         if (!empty($this->keyword)) {
             $similar_q = $segment->Split($this->keyword);
         }
         if (!empty($similar_q)) {
             $similar_result = $similar_q;
         } elseif (!empty($search_q)) {
             $similar_result = $model_object->GetArray("SELECT *,name AS title FROM " . $tb_prefix . "tags WHERE name like '%" . $search_q . "%' ORDER BY id DESC LIMIT 0,10");
         }
         setvar("similar_search", $similar_result);
         setvar("items", $result);
         $from = $pos == 0 ? 0 : $pos + 1;
         setvar("paging", array('total' => $model_object->amount, 'from' => $from, 'to' => ($to = $pos + $this->displaypg) > $model_object->amount ? $model_object->amount : $to));
         setvar("TimeSpend", number_format(getmicrotime() - $time_start, 3));
         $tpl = $theme_name . DS . $option . DS . 'list' . $smarty->tpl_ext;
         $viewhelper->setTitle(L(array_search($option, $this->allowed_search), 'tpl'));
         if ($search_q) {
             $viewhelper->setTitle($search_q);
         }
         setvar("no_result_tip", L("no_search_result_for_you", "tpl", $search_q));
         if (isset($_GET['typeid'])) {
             $viewhelper->setTitle($types[$_GET['typeid']]);
         }
         render($tpl_file);
     } else {
         unset($_GET);
         flash("record_not_exists");
     }
 }