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 [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/care2002-developers