This is my first post, I want to thank you guys for all the work you’ve done. OpenEMR is such a great clinical solution.
I’m looking into making some changes to Calendar scheduling in order to allow users to select rooms when scheduling appointments. A list of rooms would come from list_options, and would display as text on an appointment in the Calendar Module.
I haven’t dug deep enough to find all the answers but here’s where I’m at:
SQL new list_option row of type lists to define the list ‘room’ (probably better to call it resource, or schedulable_resource)
SQL new openemr_postcalendar_events column pn_room which can be NULL
new form element in add_edit_event.php : generate_form_field form_room which is saved to pn_room
a change to pnuserapi.php that I haven’t figured out yet, but would create another return variable like patient_name called room or resource. This would be the String list_option title column from my event.
And lastly (? I haven’t investigate this step) a whole lot of edits to ajax calendar templates to display room after patient name.
What are your thoughts? Thank you for your help.
zaalt
goon @ OhavaComputers Ohava.com
Just to add, I am not a developer. You should probably wait for more useful input from real developers. All I know is that I REALLY need this functionality.
hi,
Sounds like a good approach. Suggest coding it and feel free to get reviews/suggestions/feedback/direction as you code this by posting it to github or as a patch in the code review tracker (we prefer github/git since it’s very easy to test/review code there). Here’s a quick howto to get github up and running with openemr: http://wiki.oemr.org/wiki/Git_for_dummies
looking forward to seeing your code,
-brady
Haha, wow mukoya. I’m a little intimidated by that feature ticket! But it seems so useful.
Brady, I’ve got something up and running but it probably needs to be hidden behind a Global or setting variable so that it doesn’t display by default. Should I work that into my code, or is that something that the powers that be handle?
hi,
Feel free to place the global (in library/globals.inc.php as i recall); can always modify it later. Let us know if you want us to look at, test, or review your code.
thanks,
-brady