bug fixes as per bugs reported by ericsbrown on SOURCEfORGE :
https://sourceforge.net/projects/openemr/forums/forum/202505/topic/5210595

Signed-off-by: tajemo <cbezuidenhout@tajemo.co.za>
Comments ammended

Signed-off-by: tajemo <cbezuidenhout@tajemo.co.za>
Modification made to fix a bug in patient portal

Signed-off-by: Jacob T.Paul <jacob@zhservices.com>
Facility drop-down data types added to Layout/LBF engine:

1. List of facilities option
2. Updated dropdown_facility function in options.inc.php
   -Added new parameter $allow_allfacilities that control visibility of the "All facilities" option
   -Changed logic to use it
removed call time *pass by reference* and made sure pass by reference specified in function signature
Improved integrated of patient notes and messages module.

  -Option to show all, only active, or only inactive pnotes/messages
   (default is only active)
  -Also added patient link from within Messages module (click on 'Patient')
  -Added number of active messages to the Messages menu counter
messages/pnotes module minor bug fixes
Migrate sql billing copay items to ar_session/ar_activity sql tables.

Modified all scripts within OpenEMR place and use copay tries in ar_session
and ar_activity tables. During upgrade, all copay entries will also be migrated
from the billing table to the ar_session and ar_activity tables.

Signed-off-by: Ajil <ajilpm@zhservices.com>
Minor fixes to previous copay migration commit.

 1. Increment version.php
 2. Migrate sql upgrade to bottom of sql upgrade script
 3. Strip away several formDataCore() and formData() functions
 4. Add a missing sql bind
switch to explode since split is deprecated
Facility specific user information form via the layout engine.

 -Enter in per-facility user information at Administration->Users->View
  Facility Specific User Information->Click on username to edit info
 -Add new entries via Administration->Layouts->Facility Specific User Information
 -TODO: clean up the data entry mechanism
Converting billing scripts and calendar add_edit_event.php to new security model.
Fix fetch multiple modifiers from ERA fie.

Signed-off-by: vinish <vinish@zhservices.com>
some minor clean up from previous commit
Added ability to return vitals as a string instead of outputting it directly

Signed-off-by: tajemo <cbezuidenhout@tajemo.co.za>
Added time slot availability checking at appointment save time to avoid double booking errors.
In our previous commit of "Payment Popup", we had made modifications to insert the COPAYs to ar_activity table instead of billing. Also we have made a script to transfer the existing COPAYs from billing table to ar_activity table. In the function ar_get_invoice_summary, we are fetching the COPAYs from the billing table. We have now added an extra modification to fetch the COPAYs from ar_activity table also.

Signed-off-by: Jacob T.Paul <jacob@zhservices.com>
Added a Provider entry to patient demographics.

 -Since the current provider entry in demographics was
  being used both as referring provider and main
  provider in the codebase, did the following:
  -Made the current providerID entry only for the main
   provider.
  -Created a new ref_providerID entry for referring provider
  -For upgraders, copied the providerID info to the
   ref_providerID field to ensure previous fx is not broken.
  -In codebase, elements that were using providerID to collect
   the referring provider now map to ref_providerID.
translation engine - allow comments in constants and translations
Migrated the copyright notice file to a acknowledgements and copyright notice file

 -Goal of this is to credit/acknowledgements anybody that has contributed any
  time/money/effort towards the project.