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.
change to load enum for new adodb
This is an API for storing the documents in Apache CouchDB instead of in the disk.

It is implemented in such a way that it is configurable whether to store the documents only in the disk or CouchDB. The CouchDB has got a good replication feature which will make it easy to have a copy of documents in another system. Its also a good feature that CouchDB database is in consistent stage at every time. So a backup of CouchDB database can be taken at anytime by simply copying the database(CouchDB_root/var/lib/couchdb). We think this feature will be useful when the documents total size grows into GBs.

Even though CouchDB is not officially supported in Windows an unofficial version is available here:

1) http://wiki.apache.org/couchdb/Installing_on_Windows
2) https://github.com/downloads/dch/couchdb/setup-couchdb-1.1.1_js185_otp_R14B03+fix-win32-crypto.exe

Linux version is available here:

1) http://couchdb.apache.org/downloads.html

We have implemented this feature in Documents upload/download screen in Patient Demographics. This feature also can be used for storing the following files:

1) Generated X12 file
2) Generated PDF file
3) ERA file

We will implement it after getting the feedback from the community.

Configuring:

1) Install the Apache CouchDB.
2) If installation is success, normally it will be available on port number 5984.
3) It can be reached through the browser (http://localhost:5984).
4) Basic administration utility will be available in http://localhost:5984/_utils.
5) Initially it is running without username and password with all privileges. This can be reset by going to CouchDB\etc\couchdb\local.ini. In the lower side uncomment the
;admin = mysecretpassword . Put the desired password. On restarting the couchDB, this will take effect and also the password set will be hashed in the local.ini.
6) Enable CouchDB from Administration->Globals->Documents->Document Storage Method.

Signed-off-by: eldhochacko <eldho_c@yahoo.co.in>
Added DataTables 1.9.0, minus examples and documentation.
New dynamic patient list/finder feature.
Refinements to dynamic patient list/finder feature.