Yes I have - One patient discharged and another not discharged as yet. I have set inspection points in each place and found the current implementation will make the input forms visible.
$parent_admin appears false even if the patient is admitted - as far as the show_prescription.php and it's dependants are concerned. The tabs seem to show it correctly based on the presence of a $current_encounter that comes from the $person->CurrentEncounter($pid) that extracts records "where is_discharged = 0". Regards, Ap.Muthu ----- Original Message ----- From: "Robert Meggle" <robert.meg...@care2x.org> To: <care2002-developers@lists.sourceforge.net> Sent: Monday, September 27, 2010 12:17 PM Subject: Re: [Care2002-developers] Prescriptions - error point located > Hi Muthu, > > In your message you wrote that is_discharge is set to true. Can you > please make sure that you have not used an patient what is discharged? > > Robert > > > Am Sonntag, den 26.09.2010, 23:32 +0530 schrieb Ap.Muthu: >> Patient >> -> Admit Patient as Out patient >> -> Fix Appointment for patient >> -> Make Encounter for Appointment of Patient >> Choose Prescriptions on right menu options. >> >> It will proceed >> to /modules/registration_admission/show_prescription.php >> which includes the >> file /modules/registration_admission/include/init_show.php (here the >> variable $is_discharged is set "safely" to TRUE) and then proceeds >> to /modules/registration_admission/gui_bridge/default/gui_show.php >> where if no prescriptions were found, a link to enter a new one should >> be displayed vide lines: >> if($parent_admit && !$is_discharged && $thisfile! >> ='show_diagnostics_result.php'){ >> $smarty->assign('sPromptIcon','<img >> >> '.createComIcon($root_path,'bul_arrowgrnlrg.gif','0','absmiddle',TRUE).'>'); >> $smarty->assign('sPromptLink','<a >> >> href="'.$thisfile.URL_APPEND.'&pid='.$_SESSION['sess_pid'].'&target='.$target.'&mode=new">'.$LDEnterNewRecord.'</a>'); >> }else{ >> >> if(file_exists('./gui_bridge/default/gui_person_createnew_'.$thisfile)) >> include('./gui_bridge/default/gui_person_createnew_'.$thisfile); >> } >> The value of the variables for an admitted patient just before >> entering this code set are: >> $parent_admit = FALSE >> $is_discharged = TRUE >> >> From the above it is seen that the if statement above will always fail >> and so the "Enter New Record" link never gets displayed! >> >> The very same gui_show.php is also used successfully by the >> Appointments options page and it get the variables correct at this >> point. >> >> zThis error persists with >> >> >> Regards, >> Ap.Muthu >> >> ------------------------------------------------------------------------------ >> Start uncovering the many advantages of virtual appliances >> and start using them to simplify application deployment and >> accelerate your shift to cloud computing. >> http://p.sf.net/sfu/novell-sfdev2dev >> _______________________________________________ Care2002-developers >> mailing list Care2002-developers@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/care2002-developers > > -- > -- > -------------------------------------------- > CARE2X - free Integ Hospital Info System > https://sourceforge.net/projects/care2002/ > http://www.care2x.org > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Care2002-developers mailing list > Care2002-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/care2002-developers > ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Care2002-developers mailing list Care2002-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/care2002-developers