Add another Status (Care Duration) on the add edit event Calendar

brainknight wrote on Sunday, December 07, 2014:

Dears All.

I need help for the two modifications below:

(A)
I want to add another status list on the add edit event on the calendar. (like the appointment status list).

The status is (Care Duration)
1 hour
2 hour
3 hour

I am already created the status list (Care Duration) in the lists.
I tried in add_edit_event.php


(B)
Also I want to add another comment (Comment 2) in the add edit events.

I tried in add_edit_event.php but it is not working and the (Comment 2) copied in the Old Comment (Comment).

The attached pic may help (I edited the pic for clarification).

Many Thanks in advance

Regards,

B. K.

fsgl wrote on Monday, December 08, 2014:

See this.

Alternative approach would be to create 3 separate categories of Consultations; e.g., Brief, Intermediate & Comprehensive.

This would dovetail nicely into billing for these services.

visolveemr wrote on Monday, December 08, 2014:

Hello Knight

For the 1st modification, you may need to call the following function to retrieve the list added.

<?php echo generate_select_list("form_care_type", "Care_Duration", $_REQUEST['form_care_type'], '', 'All');?>

Where “Care_Duration” - is the ID of the list created for care duration in the table “list_options”.

For the 2nd modification, the coulmn name used for “Comment” field is “pc_hometext” in the table “openemr_postcalendar_events”. You may need to create a new column for the “Comment 2” field in the database and make the necessary changes similar to the comments field.

Thanks
OpenEMR Customization/Support Team,
ViSolve Inc
services@visolve.com
Demo’s @ ViSolve Demo Library

brainknight wrote on Tuesday, December 09, 2014:

Thank you ViSolve Inc OpenEMR Customization/Support Team,

The new status list (Care Duration)is applied successfully on the add edit event.
but when I chose 1 hour …or 2 hour , its not applied, (its always All).

I need to chose the time duration and I need the duration to be shown in the calendar.

Please if you can guide me for the modification line.
(or at which line do I add the code you sent to me) .

Many Thanks in advance.

Regards.

B. K.

brainknight wrote on Tuesday, December 09, 2014:

Thank you fsgl, but I need to add this at the add edit event calendar.

I am trying to do apply the ViSolve Code.