ID: 3608171 oscarEncounter tickler window does not close

The tickler window makes a reference to
window.opener.document.forms['encForm']) when saving and closing. This
form is in the main tickler screen, but not in the oscarEncounter
screen. As a result the javascript is interrupted and self.close() is
never reached.

The fix was to put a check in the JS to ensure that the form exists
before triggering the relevant code.
ID: 3608199 Out of order demographicExt results

The demographicExt DAO does not sort the results of some of its queries
that return a list. The code that uses said DAO expects an ordered
result. There is a boundary case where if data is loaded into
demographicExt in non-ascending order by primary key (or creation date)
then the result set is also unordered. This can in return cause
information in the demographic master record to appear to not be
updated.

Solution: Add "order by d.dateCreated" to the queries that are missing
it.
moved some utils to common utils project

and added documentation on the move of generic utilities v.s. old
lingering classes which can't be refactored out yet.

Change-Id: Ie09751f0e33d3d9b6fd410dc2536ffbc5b9de4e1
moved table from ON script to general script

It causes problems with hibernate in BC installations
fixed measurement inserts on lab uploads

when not found in measurement map, the old way (12.1) was to still
insert but with an empty type. Sometime during the JPA refactor,
the logic got altered so that the insert does not happen when there's
no match in measurementMap. This reverts to the existing 12.1 logic.
getComment js func was hidden in preview mode of inbox

renamed function in index file so lab function would not hide it.

Change-Id: I25e21d62534694650454339161abd83c36d376a9
ID: 3608613 Added next appt to prevention report

Change-Id: I15d679eb8f18c63475d3db6a94ad06d4a1b4815a
ID: 3608818 Fix relations not showing in master demographic screen

Change-Id: I434beabcb06efd093d54afbb38e3682ba38f6320
ID #3609015 - Health Tracker - Updated

-style fixes
-add entered by *changed from title attr to use popover
-changed comment popover to tooltip and fixed the carousel inner
container cutting off the popover.
-moved carousel controls 
-added an "add" button for preventions

https://sourceforge.net/tracker/?func=detail&atid=515435&aid=3609015&group_id=66701

Change-Id: Ife5c171cd591fd628165fa964190f80269144c4c
Merge "ID #3609015 - Health Tracker - Updated"
Merge changes I434beabc,I15d679eb,I25e21d62

* changes:
  ID: 3608818 Fix relations not showing in master demographic screen
  ID: 3608613 Added next appt to prevention report
  getComment js func was hidden in preview mode of inbox
Merge "fixed measurement inserts on lab uploads"
ID: 3608819 Since Framingham and CKPDS forms are inaccurate use

eforms if available

Change-Id: I4c17063af90accf049d062910ba1efd56592af66
ID: 3609047 Fix NPE when searching for demographic in adding an appt

Change-Id: I9a82d6d04412f5c834331c9dd5a849d5964b9d15
ID: 3605706 Fix payment print out when no method is selected

Change-Id: I3ebf85e71ba1fb9ea36602c06a746080e2d777a3
ID: 3608844 Fix NPE in lab lab ajax display for labs with no comments

Change-Id: Ib2beaff17f681a853eea9c7a698a8a5ca381a304
Fix Array Out of Bounds error caused by bad data in dxresearch table

Change-Id: I5bcb37ccc071b97870f766d758cac726998fbd6a
Change deprecated session.getValue to session.getAttribute

Change-Id: Ie2befccad1f758d02d571395e6e9cbf1c9e43d08
ID: 3609141 Make sure provider is null

if demographic does not have a provider assigned

Change-Id: Icfe054fca2fafbf133206442b8bae7b0801c90f0
ID: 3609066 tickler.tickler_no in echart

Having the tickler_no crowds the space and confuses the users. Perhaps
it is in there for development testing?

Change-Id: I45f28bb5b63519b03aa9ff4cd083bf272c257f75