diff --git a/dependencies-lock.json b/dependencies-lock.json index 68d478dd085..511c09742d6 100644 --- a/dependencies-lock.json +++ b/dependencies-lock.json @@ -1227,11 +1227,11 @@ }, { "groupId" : "net.java.dev.jna", "artifactId" : "jna", - "version" : "5.15.0", + "version" : "5.16.0", "scope" : "compile", "type" : "jar", "optional" : false, - "integrity" : "sha512:Nfr+zgyK+pXglOfGJ4ANDOAky/1bZxEHV+sw1F3PwxB+q3Wvn+xJi2Kfm3kLKviSegk6coPTSPeyEPRTPPd8og==" + "integrity" : "sha512:2eGpxL6mstiqyWAdCXp3AT/TI7b1xh2D+sIZirapiLXPITkGGJM7FD3kzCVthL0qhnmPyzZ5R5zPxq7LIDQZhA==" }, { "groupId" : "net.oauth.core", "artifactId" : "oauth-provider", diff --git a/src/main/java/org/oscarehr/casemgmt/web/CaseManagementEntry2Action.java b/src/main/java/org/oscarehr/casemgmt/web/CaseManagementEntry2Action.java index d0e7a7d8aa2..fa5c02dd254 100644 --- a/src/main/java/org/oscarehr/casemgmt/web/CaseManagementEntry2Action.java +++ b/src/main/java/org/oscarehr/casemgmt/web/CaseManagementEntry2Action.java @@ -2613,6 +2613,9 @@ public String notehistory() { String noteid = request.getParameter("noteId"); List history = caseManagementMgr.getHistory(noteid); + for (CaseManagementNote caseManagementNote : history) { + caseManagementNote.setNote(caseManagementNote.getNote().replace("\n", "
")); + } request.setAttribute("history", history); ResourceBundle props = ResourceBundle.getBundle("oscarResources"); request.setAttribute("title", props.getString("oscarEncounter.noteHistory.title")); diff --git a/src/main/webapp/PMmodule/Admin/ProgramManagerForm.jsp b/src/main/webapp/PMmodule/Admin/ProgramManagerForm.jsp index a087d297450..04941e78c0a 100644 --- a/src/main/webapp/PMmodule/Admin/ProgramManagerForm.jsp +++ b/src/main/webapp/PMmodule/Admin/ProgramManagerForm.jsp @@ -88,8 +88,7 @@ <% - DynaValidatorForm form = (DynaValidatorForm) session.getAttribute("programManagerForm"); - Program program = (Program) form.get("program"); + Program program = (Program) request.getAttribute("program"); for (int i = 0; i < ProgramManagerViewFormBean.tabs.length; i++) { if (ProgramManagerViewFormBean.tabs[i].equalsIgnoreCase("Bed Check") && program.isService()) { diff --git a/src/main/webapp/PMmodule/Admin/ProgramView/queue.jsp b/src/main/webapp/PMmodule/Admin/ProgramView/queue.jsp index bee1e0dc22e..3c29f87a8ac 100755 --- a/src/main/webapp/PMmodule/Admin/ProgramView/queue.jsp +++ b/src/main/webapp/PMmodule/Admin/ProgramView/queue.jsp @@ -27,7 +27,7 @@ <%@page import="oscar.eform.EFormUtil" %> <%@ page import="java.util.*" %> <%@ page import="org.oscarehr.PMmodule.model.ProgramQueue" %> -<%@ page import="org.oscarehr.PMmodule.web.admin.ProgramManagerAction.RemoteQueueEntry" %> +<%@ page import="org.oscarehr.PMmodule.web.admin.ProgramManager2Action.RemoteQueueEntry" %> <%@ page import="java.net.URLEncoder" %> <%@page import="org.apache.commons.lang.time.DateFormatUtils" %> <%@page import="org.oscarehr.util.SpringUtils" %> diff --git a/src/main/webapp/PMmodule/Admin/StaffManagerList.jsp b/src/main/webapp/PMmodule/Admin/StaffManagerList.jsp index d0da99cd27b..afae4e2c894 100644 --- a/src/main/webapp/PMmodule/Admin/StaffManagerList.jsp +++ b/src/main/webapp/PMmodule/Admin/StaffManagerList.jsp @@ -23,8 +23,6 @@ --%> <%@ include file="/taglibs.jsp" %> -<%@ taglib uri="/WEB-INF/quatro-tag.tld" prefix="quatro" %> - diff --git a/src/main/webapp/admin/billingSettings.jsp b/src/main/webapp/admin/billingSettings.jsp index dff2fa5cac9..5dd6a15050e 100644 --- a/src/main/webapp/admin/billingSettings.jsp +++ b/src/main/webapp/admin/billingSettings.jsp @@ -43,7 +43,7 @@ <%@ taglib uri="/WEB-INF/oscar-tag.tld" prefix="oscar" %> -<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ page import="org.oscarehr.util.SpringUtils" %> <%@ page import="org.owasp.encoder.Encode" %> <%@ page import="org.oscarehr.common.dao.PropertyDao" %> diff --git a/src/main/webapp/billing/CA/BC/receivePayment.jsp b/src/main/webapp/billing/CA/BC/receivePayment.jsp index fd30d8e8c7e..ed8534b467a 100644 --- a/src/main/webapp/billing/CA/BC/receivePayment.jsp +++ b/src/main/webapp/billing/CA/BC/receivePayment.jsp @@ -32,7 +32,7 @@
<% - oscar.oscarBilling.ca.bc.pageUtil.ReceivePaymentActionForm frm = (oscar.oscarBilling.ca.bc.pageUtil.ReceivePaymentActionForm) request.getAttribute("receivePaymentActionForm"); + oscar.oscarBilling.ca.bc.pageUtil.ReceivePayment2Action frm = (oscar.oscarBilling.ca.bc.pageUtil.ReceivePayment2Action) request.getAttribute("receivePaymentActionForm"); %> <%=java.text.NumberFormat.getCurrencyInstance().format(new Double(frm.getAmountReceived()))%>     diff --git a/src/main/webapp/billing/CA/ON/billingON3rdPayments.jsp b/src/main/webapp/billing/CA/ON/billingON3rdPayments.jsp index 8891b58ddec..2761766e118 100644 --- a/src/main/webapp/billing/CA/ON/billingON3rdPayments.jsp +++ b/src/main/webapp/billing/CA/ON/billingON3rdPayments.jsp @@ -338,14 +338,18 @@
@@ -433,24 +437,25 @@ - + - + - <%if (((BigDecimal) balances.get(index)).compareTo(BigDecimal.ZERO) == -1) {%> - - <%} else { %> - - <%} %> diff --git a/src/main/webapp/casemgmt/CaseManagementEntry.jsp b/src/main/webapp/casemgmt/CaseManagementEntry.jsp index 188bb67ad60..dcee499ceb3 100644 --- a/src/main/webapp/casemgmt/CaseManagementEntry.jsp +++ b/src/main/webapp/casemgmt/CaseManagementEntry.jsp @@ -223,7 +223,7 @@ String pId = (String) session.getAttribute("case_program_id"); if (pId == null) pId = ""; %> - +
@@ -287,98 +287,76 @@
- - <% - String submitString = "this.form.method.value='issueChange';"; - submitString = submitString + "this.form.lineId.value=" + "'" - + ind.intValue() + "';" + "this.form.submit();"; - - org.oscarehr.casemgmt.web.CheckBoxBean cbb = (org.oscarehr.casemgmt.web.CheckBoxBean) pageContext.getAttribute("issueCheckList"); - boolean writeAccess = cbb.getIssueDisplay().isWriteAccess(); - boolean disabled = !"local".equals(cbb.getIssueDisplay().location) ? true : !writeAccess; - boolean checkBoxDisabled = !"local".equals(cbb.getIssueDisplay().location) ? false : disabled; - boolean resolved = "resolved".equals(cbb.getIssueDisplay().resolved); - int counter = 0; - - if (!resolved || showResolved) { - count_issues_display++; - counter++; - %> - - " - align="center"> - - - - - - - - - - <% - } - %> - + + + + + + + + + + + + + + + + + + + + + + + +
- <%= ttr.intValue() % 2 == 0 ? "" : "" %> + + + - <%= ttr.intValue() % 2 == 0 ? "" : "" %> + + +
/> + id="paymentType${billingPaymentType.id}" + value="${billingPaymentType.id}" ${ttr.index == 0 ? "checked" : ""}/>
<%= ctr + 1 %> - ${ctr.index + 1} <%=types.get(ctr.intValue()) %> - ${types[ctr.index]} <%= "-" + currency.format(balances.get(index++)) %> - <%= currency.format(balances.get(index++)) %> + + + + -${currency.format(balances[ctr.index])} + + + ${currency.format(balances[ctr.index])} + + - ')">view + ')" >view
- - > - - - - - - - - - - - - - - - - - - - - - - - - - - <% if (cbb.getIssueDisplay().location != null && cbb.getIssueDisplay().location.equals("local")) { %> - - - <% - submitString = "this.form.method.value='issueDelete';"; - submitString = submitString + "this.form.deleteId.value=" + "'" - + ind.intValue() + "';"; - %> - - - - - <% - submitString = "this.form.method.value='changeDiagnosis';"; - submitString = submitString + "this.form.deleteId.value=" + "'" - + ind.intValue() + "';"; - %> - - - <%} else {%> - - <%}%> -
+ + + ${cbb.issueDisplay.description} + + + + + + + + + + + + + + + + + + + + + +

@@ -398,7 +376,7 @@ %>
- +

@@ -419,7 +397,8 @@ + onchange="setChangeFlag(true);">${caseNote.note} + @@ -461,7 +440,8 @@ - + + ${caseNote.billing_code} ','','scrollbars=yes,menubars=no,toolbars=no,resizable=yes');return false;"> @@ -490,7 +470,7 @@ - + diff --git a/src/main/webapp/casemgmt/IssueSearch.jsp b/src/main/webapp/casemgmt/IssueSearch.jsp index 786a9103808..655b5f3c074 100644 --- a/src/main/webapp/casemgmt/IssueSearch.jsp +++ b/src/main/webapp/casemgmt/IssueSearch.jsp @@ -108,39 +108,27 @@ <%-- table contents --%> - - " align="center"> - - - - Local - - - + + + + + + + + Local + + Community - - - - - - - + - - - - - - - - - - - - + ${newIssueCheckList.issue.code} + + ${newIssueCheckList.issue.description} + + ${newIssueCheckList.issue.role} + + -
diff --git a/src/main/webapp/casemgmt/navigation.jsp b/src/main/webapp/casemgmt/navigation.jsp index d3781e28e42..e6df8030f10 100644 --- a/src/main/webapp/casemgmt/navigation.jsp +++ b/src/main/webapp/casemgmt/navigation.jsp @@ -29,6 +29,7 @@ <%@page import="org.oscarehr.util.LoggedInInfo" %> <% long loadPage = System.currentTimeMillis(); %> <%@ include file="/casemgmt/taglibs.jsp" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <%@ taglib uri="/WEB-INF/caisi-tag.tld" prefix="caisi" %> <%@ page import="org.apache.commons.lang.StringEscapeUtils" %> <%@ page import="oscar.oscarEncounter.oscarMeasurements.MeasurementFlowSheet" %> @@ -335,24 +336,18 @@ @@ -364,17 +359,13 @@ @@ -431,7 +422,7 @@ onchange="javascript:popUpMsg(600,900,this.options[this.selectedIndex].value)"> - + @@ -601,29 +592,24 @@ onChange="javascript:selectBox(this)" onMouseOver="javascript:window.status='View <%=bean.patientFirstName+" "+bean.patientLastName%>\'s lab results'; return true;"> - - <% - - String lablable = labrst.dateTime + "" + labrst.discipline; - String mdvalue = bsurl + "/oscarMDS/SegmentDisplay.jsp?providerNo=" + bean.providerNo + "&segmentID=" + labrst.segmentID + "&status=" + labrst.reportStatus; - String cmvalue = bsurl + "/lab/CA/ON/CMLDisplay.jsp?providerNo=" + bean.providerNo + "&segmentID=" + labrst.segmentID; - String otvalue = bsurl + "/lab/CA/BC/labDisplay.jsp?segmentID=" + labrst.segmentID + "&providerNo=" + bean.providerNo; - if (labrst.isMDS()) { - %> - - <% } else { - if (labrst.isCML()) { - %> - - <% } else {%> - - <% } - }%> - + + + + + + + + + + + + + + + + + + <%session.removeAttribute("casemgmt_labsbeans"); %> diff --git a/src/main/webapp/casemgmt/noteIssueList.jsp b/src/main/webapp/casemgmt/noteIssueList.jsp index ece8f64437c..f14c5754fe1 100644 --- a/src/main/webapp/casemgmt/noteIssueList.jsp +++ b/src/main/webapp/casemgmt/noteIssueList.jsp @@ -23,16 +23,14 @@ Ontario, Canada --%> - <%@page import="org.oscarehr.util.LoggedInInfo" %> -<%@ page - import="org.oscarehr.casemgmt.web.formbeans.CaseManagementEntryFormBean, org.oscarehr.common.model.Facility" %> +<%@page import="org.oscarehr.casemgmt.web.formbeans.CaseManagementEntryFormBean, org.oscarehr.common.model.Facility" %> <%@page import="org.apache.commons.lang.StringEscapeUtils" %> <%@page import="org.oscarehr.PMmodule.model.Program" %> <%@page import="org.oscarehr.PMmodule.dao.ProgramDao" %> <%@page import="org.oscarehr.util.SpringUtils" %> <%@ include file="/casemgmt/taglibs.jsp" %> - +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> <% String roleName$ = (String) session.getAttribute("userrole") + "," + (String) session.getAttribute("user"); boolean authed = true; @@ -46,10 +44,7 @@ return; } %> - - - + <% LoggedInInfo loggedInInfo73557 = LoggedInInfo.getLoggedInInfoFromSession(request); String noteIndex = ""; @@ -62,87 +57,85 @@ request.setAttribute("caseManagementEntryForm", frm); } %> - - - <% - noteIndex = request.getParameter("newNoteIdx"); - %> -
"> -
" - style="float: right; margin-right: 3px;"> - - - <% - noteIndex = "0"; - %> -
-
- - - - <% - noteIndex = String.valueOf(frm.getCaseNote().getId()); - %> -
"> -
" - style="float: right; margin-right: 3px;"> - + + + + + +
+
+
+ + + +
+
+
+ + + + + +
+
+
+
+
+
- - "> -   - ', event);"> - - - " - id="observationDate_cal" - alt="calendar"> "> - rev', event);"> - + + + +   + + +   + + + + ${caseManagementEntryForm.caseNote.revision} + + + + +   + calendar  + "> + rev + + ${caseManagementEntryForm.caseNote.revision} + + +
: - + +
    - - - -
  • ; + + +
  • ${editor.formattedName}; - - -
  • + + ${editor.formattedName} -
    - + +
-
+ +
 
-
+ +
<% @@ -156,24 +149,28 @@ if (currentFacility.isEnableEncounterTime() || (currentProgram != null && currentProgram.getEnableEncounterTime())) { %>
- - :  - "> - - : - "> - - - - - :  - "> :  - "> - + + + + :  + + ${caseManagementEntryForm.caseNote.hourOfEncounterTime} + : + + ${caseManagementEntryForm.caseNote.minuteOfEncounterTime} + + + + + :  +  :  + + +
<%}%> @@ -181,25 +178,29 @@ if (currentFacility.isEnableEncounterTransportationTime() || (currentProgram != null && currentProgram.isEnableEncounterTransportationTime())) { %>
- - :  - "> - - : - "> - - - - - :  - "> :  - "> - + + + + :  + + ${caseManagementEntryForm.caseNote.hourOfEncTransportationTime} + : + + ${caseManagementEntryForm.caseNote.minuteOfEncTransportationTime} + + + + + :  +  :  + + + +
<%}%> @@ -211,56 +212,77 @@
- - - - "" - + + + + + + """" + +
- -<%-- -
 
-
--%> - -
- + + + +
+ + + +
    - +
  • -
    +

- - -

+ + + +
+
- +
+
@@ -268,112 +290,77 @@ <% int countResolvedIssue = -1; %> - - - <% - String winame = "window" + issueCheckList.getIssueDisplay().getDescription(); - winame = winame.replaceAll("\\s|\\/|\\*", "_"); - winame = winame.replaceAll("'", ""); - winame = StringEscapeUtils.escapeJavaScript(winame); - countResolvedIssue++; - if (countResolvedIssue % 2 == 0) { - %> - - <% - } - %> - - - - - <% - if (countResolvedIssue % 2 != 0) { - %> - - <% - } - %> - - + + + + + + + + + + +
- <% - String submitString = "this.form.method.value='issueChange';"; - submitString = submitString + "this.form.lineId.value=" + "'" + ind.intValue() + "'; return ajaxUpdateIssues('issueChange', $('noteIssues').up().id);"; - String id = "noteIssue" + ind; - org.oscarehr.casemgmt.web.CheckBoxBean cbb = (org.oscarehr.casemgmt.web.CheckBoxBean) pageContext.getAttribute("issueCheckList"); - boolean writeAccess = cbb.getIssueDisplay().isWriteAccess(); - boolean disabled = !writeAccess; - %> - - - - - - - - - <% - String submitDelete = "removeIssue('" + winame + "');document.forms['caseManagementEntryForm'].deleteId.value=" + "'" + ind.intValue() + "';return ajaxUpdateIssues('issueDelete', $('noteIssues').up().id);"; - %> -   - Delete -   - - - - <% - String submitChange = "return changeDiagnosisResolved('" + ind.intValue() + "');"; - %> -   - Change - - - - -
+ + + + + + + + + + + + + + + + + + + +   + Delete  + + + + +   + Change + + +
@@ -384,101 +371,82 @@ - - - - - - <% - String winame = "window" + issueCheckList.getIssueDisplay().getDescription(); - winame = winame.replaceAll("\\s|\\/|\\*", "_"); - winame = winame.replaceAll("'", ""); - winame = StringEscapeUtils.escapeJavaScript(winame); - countUnresolvedIssue++; - if (countUnresolvedIssue % 2 == 0) { - %> - <% - } - %> - - <% if (countUnresolvedIssue % 2 != 0) { %> - - <% } %> - - + + + + + + + + + + + + + + + + + + + + + +
- <% - String submitString = "this.form.method.value='issueChange';"; - submitString = submitString + "this.form.lineId.value=" + "'" + ind.intValue() + "'; return ajaxUpdateIssues('issueChange', $('noteIssues').up().id);"; - String id = "noteIssue" + ind; - org.oscarehr.casemgmt.web.CheckBoxBean cbb = (org.oscarehr.casemgmt.web.CheckBoxBean) pageContext.getAttribute("issueCheckList"); - boolean writeAccess = cbb.getIssueDisplay().isWriteAccess(); - boolean disabled = !writeAccess; - %> - - - - - - - <% - String submitDelete = "removeIssue('" + winame + "');document.forms['caseManagementEntryForm'].deleteId.value=" + "'" + ind.intValue() + "';return ajaxUpdateIssues('issueDelete', $('noteIssues').up().id);"; - %> -   - Delete -   - - - <% - String submitChange = "return changeDiagnosisUnresolved('" + ind.intValue() + "');"; - %> -   - Change - -
+ + + + + + + + + + ${issueCheckList.issueDisplay.description} + + + + +   + Delete +   + + +   + Change + + +
@@ -489,34 +457,37 @@ //check to see if we need to update div containers to most recent note id //this happens only when we're called thru ajaxsave - - var origId = ""; - var newId = ""; - var oldDiv; - var newDiv; - var prequel = ["n", "sig", "signed", "full", "bgColour", "print", "editWarn"]; - - for (var idx = 0; idx < prequel.length; ++idx) { - oldDiv = prequel[idx] + origId; - newDiv = prequel[idx] + newId; - if ($(oldDiv) != null) - $(oldDiv).id = newDiv; - } - updatedNoteId = newId; - - <%//CaseManagementEntryFormBean form = (CaseManagementEntryFormBean)request.getAttribute("caseManagementEntryForm"); - String noteTxt = frm.getCaseNote().getNote(); - noteTxt = org.apache.commons.lang.StringEscapeUtils.escapeJavaScript(noteTxt);%> - completeChangeToView("<%=noteTxt%>", newId); - if (origId.substr(0, 1) == "0") { - $("nc" + origId).id = "nc" + numNotes; - ++numNotes; - } + + + - - alert(""); - - var c = "bgColour" + "<%=noteIndex%>"; var txtStyles = $F(c).split(";"); @@ -542,7 +513,7 @@ } //do we have a custom encounter type? if so add an option to the encounter type select - var encounterType = ''; + var encounterType = '${caseManagementEntryForm.caseNote.encounter_type}'; var selectEnc = "<%=encSelect%>"; if ($(selectEnc) != null) { diff --git a/src/main/webapp/casemgmt/showHistory.jsp b/src/main/webapp/casemgmt/showHistory.jsp index 03ea5a96e86..d49629eed6f 100644 --- a/src/main/webapp/casemgmt/showHistory.jsp +++ b/src/main/webapp/casemgmt/showHistory.jsp @@ -23,7 +23,7 @@ Ontario, Canada --%> - +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <%@ include file="/casemgmt/taglibs.jsp" %> <%@page import="org.oscarehr.casemgmt.model.CaseManagementNote" %> <% @@ -52,45 +52,38 @@ Note History -

-

- -
-
-

- <% - String theNote = ((CaseManagementNote) pageContext.getAttribute("note")).getNote(); - theNote = theNote.replaceAll("\n", "
"); - %> - <%=theNote %> - -

+

${title}

+

${demoName}

+ +
+
+

+ +

+
+
+ +
REMOVED
+
+ +
ARCHIVED
+
+ + Documentation Date:
+ + + Signed by + + + + + Saved by + : + + + +
-
- -
REMOVED
-
-
- -
ARCHIVED
-
- - Documentation Date:
- - Signed by - <% - CaseManagementNote n = (CaseManagementNote) note; - out.println(pMgr.getProvider(n.getSigning_provider_no()).getFormattedName()); - %> - - Saved by - : -
-
- + diff --git a/src/main/webapp/casemgmt/viewNotes.jsp b/src/main/webapp/casemgmt/viewNotes.jsp index 2170f8e4887..b3e25668244 100644 --- a/src/main/webapp/casemgmt/viewNotes.jsp +++ b/src/main/webapp/casemgmt/viewNotes.jsp @@ -23,7 +23,7 @@ Ontario, Canada --%> - +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <%@page import="org.apache.commons.lang.StringEscapeUtils" %> <%@page import="oscar.util.ConversionUtils" %> <%@page import="org.oscarehr.casemgmt.web.NoteDisplay" %> @@ -58,9 +58,8 @@ String titleMsg = bundle.getString(titleParam); %> - - + +