Hl7 message generated by Procedure Order

mzghoumi wrote on Thursday, December 01, 2016:

Why when i save and transmit the procedure order with all informatio fullfiled
The procedure order gnerate an icomplete Hl7 message without PID and PV1

OBR|1|2||00001^Electrolytes|S||20161128194900|||||||||^Med1^Med1||P|||||||||05)259-6434|19320703|F||self|372-42-914342-9143|||

teryhill wrote on Thursday, December 01, 2016:

Are you using ICD 10 codes?

mzghoumi wrote on Friday, December 02, 2016:

dependeing I use ICD 10 codes and ICD 9 codes,
I am asking for th complete Hl7 message

MSH - Message Header
2 O * SFT - Software Segment
R * Y – PATIENT RESULT
O 1 Y – PATIENT
3 R 1 PID - Patient Identification
4 O 1 PD1 - Patient Additional Demographic
5 O * NTE - Notes and Comments
6 O * NK1 - Next of Kin / Associated Parties
O 1 Y – VISIT
7 R 1 PV1 - Patient Visit
R * Y – ORDER OBSERVATION
9 O 1 ORC - Common Order
10 R 1 OBR - Observation Request

teryhill wrote on Friday, December 02, 2016:

The program that creates that transmit file is located in openemr/interface/orders and is called gen_hl7_order.inc.php. I do not see an obvious reason why the PID and PV1 segments would not be generated. Are you getting an error in the PHP log file?

mzghoumi wrote on Saturday, December 03, 2016:

Hi Terry

here is th some logs that i sse in apache error

ults.inc.php on line 90, referer: http://server/openemr/interface/patient_file/encounter/encounter_top.php
[Fri Dec 02 20:07:19.734458 2016] [:error] [pid 31636] [client 70.24.229.254:62927] PHP Notice: Undefined index: result in /var/www/openemr/interface/orders/single_order_results.inc.php on line 90, referer: http://server/openemr/interface/patient_file/encounter/encounter_top.php
[Fri Dec 02 20:07:19.734554 2016] [:error] [pid 31636] [client 70.24.229.254:62927] PHP Notice: Undefined index: result in /var/www/openemr/interface/orders/single_order_results.inc.php on line 90, referer: http://server/openemr/interface/patient_file/encounter/encounter_top.php
[Fri Dec 02 20:07:19.745486 2016] [:error] [pid 31636] [client 70.24.229.254:62927] PHP Notice: Undefined index: result in /var/www/openemr/interface/orders/single_order_results.inc.php on line 90, referer: http://server/openemr/interface/patient_file/encounter/encounter_top.php
[Fri Dec 02 20:07:19.745622 2016] [:error] [pid 31636] [client 70.24.229.254:62927] PHP Notice: Undefined index: result in /var/www/openemr/interface/orders/single_order_results.inc.php on line 90, referer: http://server/openemr/interface/patient_file/encounter/encounter_top.php
[Fri Dec 02 20:07:19.745709 2016] [:error] [pid 31636] [client 70.24.229.254:62927] PHP Notice: Undefined index: result in /var/www/openemr/interface/orders/single_order_results.inc.php on line 90, referer: http://server/openemr/interface/patient_file/encounter/encounter_top.php

teryhill wrote on Saturday, December 03, 2016:

Which version of OpenEMR are you using?

mzghoumi wrote on Saturday, December 03, 2016:

i am using openemr version 4.2.2 under ubuntu

teryhill wrote on Saturday, December 03, 2016:

What version of PHP are you running?

mzghoumi wrote on Saturday, December 03, 2016:

PHP Version 5.5.9-1ubuntu4.20

teryhill wrote on Saturday, December 03, 2016:

  1. did you have any errors in the install of OpenEMR?
  2. What hl7 segments do you get in the transmission file?
  3. What steps do you use to create the file?

Terry

mzghoumi wrote on Wednesday, December 07, 2016:

Hy Terry
I just identfied the issue maybe in gen_hl7_order.inc.php:
When i specify in the provider: prtocol : download i get all the information the hl7 message with PID and PV1, …
But when i specify in the protocol: Local file system the structure off the hl7 message is incomplete