Encounter errors

aiotech wrote on Sunday, February 13, 2011:

I have been recieving this error when attempting to open encounters from the list view. The error is generating when opening any of the encounters, regardless of the status of appointments.

<? include_once(“…/…/globals.php”); include_once(“$srcdir/forms.inc”); //function called to set the global session variable for encounter number function setencounter($enc) { $return_val = 1; global $encounter; global $pid; if ($enc == “” ) { $enc = date(“Ymd”); if (getFormByEncounter($pid,$enc)) { //there is an encounter enterred for today } else { //addForm($enc, “New Patient Encounter”, 0, $pid, 1); $return_val = 0; } } $_SESSION=$enc; $encounter=$enc; //returns 1 on successful global set, or 0 if there was no //current encounter, signifying that the interface should load //the screen for a new encounter return $return_val; }

I also get an error while trying to open any LBV Forms: 

Internal error: we do not seem to be in an encounter!

These could be two seperate errors, But i believe they are tied together. I cannot unnderstant PHP so I could use some assistance. Thanks in advance.

aiotech wrote on Sunday, February 13, 2011:

I am using openerm 3.2.0

visolveemr wrote on Tuesday, February 15, 2011:

Hi,

I suppose you are using openemr in windows. If so, first error is because of php short tag. Make sure the short tag are enabled in php.ini file.

Ensure the following  php setting in php.ini file:
http://www.openmedsoftware.org/wiki/FAQ#What_are_the_correct_PHP_settings_.28can_be_found_in_the_php.ini_file.29_.3F

Thanks
ViCarePlus Team,
www.vicareplus.com
services@vicareplus.com