Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs427fa20team22
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
htmoss2
cs427fa20team22
Commits
9ba1b2ac
Commit
9ba1b2ac
authored
4 years ago
by
xuechen5
Browse files
Options
Downloads
Patches
Plain Diff
Format: Change Tabs to blank space
parent
eb2b43a9
No related branches found
No related tags found
2 merge requests
!22
Merge UC92 into Master
,
!15
Merge 5-uc-92-activate-pre-registered-patient-2 into UC92v2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iTrust/WebRoot/auth/hcp-uap/viewPreRegisteredPatientInfo.jsp
+116
-122
116 additions, 122 deletions
iTrust/WebRoot/auth/hcp-uap/viewPreRegisteredPatientInfo.jsp
with
116 additions
and
122 deletions
iTrust/WebRoot/auth/hcp-uap/viewPreRegisteredPatientInfo.jsp
+
116
−
122
View file @
9ba1b2ac
...
...
@@ -37,17 +37,17 @@ DateFormat df = DateFormat.getDateInstance();
String
switchString
=
""
;
if
(
request
.
getParameter
(
"switch"
)
!=
null
)
{
switchString
=
request
.
getParameter
(
"switch"
);
switchString
=
request
.
getParameter
(
"switch"
);
}
String
relativeString
=
""
;
if
(
request
.
getParameter
(
"relative"
)
!=
null
)
{
relativeString
=
request
.
getParameter
(
"relative"
);
relativeString
=
request
.
getParameter
(
"relative"
);
}
String
patientString
=
""
;
if
(
request
.
getParameter
(
"patient"
)
!=
null
)
{
patientString
=
request
.
getParameter
(
"patient"
);
patientString
=
request
.
getParameter
(
"patient"
);
}
String
pidString
;
...
...
@@ -56,56 +56,52 @@ long pid = 0;
if
(
switchString
.
equals
(
"true"
))
pidString
=
""
;
else
if
(!
relativeString
.
equals
(
""
))
{
int
relativeIndex
=
Integer
.
parseInt
(
relativeString
);
List
<
PatientBean
>
relatives
=
(
List
<
PatientBean
>
)
session
.
getAttribute
(
"relatives"
);
pid
=
relatives
.
get
(
relativeIndex
).
getMID
();
pidString
=
""
+
pid
;
session
.
removeAttribute
(
"relatives"
);
session
.
setAttribute
(
"pid"
,
pidString
);
int
relativeIndex
=
Integer
.
parseInt
(
relativeString
);
List
<
PatientBean
>
relatives
=
(
List
<
PatientBean
>
)
session
.
getAttribute
(
"relatives"
);
pid
=
relatives
.
get
(
relativeIndex
).
getMID
();
pidString
=
""
+
pid
;
session
.
removeAttribute
(
"relatives"
);
session
.
setAttribute
(
"pid"
,
pidString
);
}
else
if
(!
patientString
.
equals
(
""
))
{
int
patientIndex
=
Integer
.
parseInt
(
patientString
);
List
<
PatientBean
>
patients
=
(
List
<
PatientBean
>
)
session
.
getAttribute
(
"patients"
);
pid
=
patients
.
get
(
patientIndex
).
getMID
();
pidString
=
""
+
pid
;
session
.
removeAttribute
(
"patients"
);
session
.
setAttribute
(
"pid"
,
pidString
);
int
patientIndex
=
Integer
.
parseInt
(
patientString
);
List
<
PatientBean
>
patients
=
(
List
<
PatientBean
>
)
session
.
getAttribute
(
"patients"
);
pid
=
patients
.
get
(
patientIndex
).
getMID
();
pidString
=
""
+
pid
;
session
.
removeAttribute
(
"patients"
);
session
.
setAttribute
(
"pid"
,
pidString
);
}
else
{
if
(
session
.
getAttribute
(
"pid"
)
==
null
)
{
pid
=
0
;
pidString
=
""
;
}
else
{
pid
=
(
long
)
Long
.
parseLong
((
String
)
session
.
getAttribute
(
"pid"
));
pidString
=
""
+
pid
;
}
if
(
session
.
getAttribute
(
"pid"
)
==
null
)
{
pid
=
0
;
pidString
=
""
;
}
else
{
pid
=
(
long
)
Long
.
parseLong
((
String
)
session
.
getAttribute
(
"pid"
));
pidString
=
""
+
pid
;
}
}
if
(
pidString
==
null
||
1
>
pidString
.
length
())
{
response
.
sendRedirect
(
"../getPatientID.jsp?forward=hcp-uap/editPHR.jsp"
);
return
;
response
.
sendRedirect
(
"../getPatientID.jsp?forward=hcp-uap/editPHR.jsp"
);
return
;
}
loggingAction
.
logEvent
(
TransactionType
.
PATIENT_HEALTH_INFORMATION_VIEW
,
loggedInMID
.
longValue
(),
pid
,
""
);
//else {
// session.removeAttribute("pid");
//}
EditPHRAction
action
=
new
EditPHRAction
(
prodDAO
,
loggedInMID
.
longValue
(),
pidString
);
pid
=
action
.
getPid
();
String
confirm
=
""
;
if
(
request
.
getParameter
(
"addA"
)
!=
null
)
{
try
{
confirm
=
action
.
updateAllergies
(
pid
,
request
.
getParameter
(
"description"
));
loggingAction
.
logEvent
(
TransactionType
.
PATIENT_HEALTH_INFORMATION_EDIT
,
loggedInMID
.
longValue
(),
pid
,
""
);
}
catch
(
Exception
e
)
{
confirm
=
e
.
getMessage
();
}
try
{
confirm
=
action
.
updateAllergies
(
pid
,
request
.
getParameter
(
"description"
));
loggingAction
.
logEvent
(
TransactionType
.
PATIENT_HEALTH_INFORMATION_EDIT
,
loggedInMID
.
longValue
(),
pid
,
""
);
}
catch
(
Exception
e
)
{
confirm
=
e
.
getMessage
();
}
}
PatientBean
patient
=
action
.
getPatient
();
...
...
@@ -116,109 +112,107 @@ List<FamilyMemberBean> family = action.getFamily();
%>
<%@page
import=
"edu.ncsu.csc.itrust.exception.NoHealthRecordsException"
%><script
type=
"text/javascript"
>
function
showRisks
(){
document
.
getElementById
(
"
risks
"
).
style
.
display
=
"
inline
"
;
document
.
getElementById
(
"
riskButton
"
).
style
.
display
=
"
none
"
;
}
<%@page
import=
"edu.ncsu.csc.itrust.exception.NoHealthRecordsException"
%>
<script
type=
"text/javascript"
>
function
showRisks
(){
document
.
getElementById
(
"
risks
"
).
style
.
display
=
"
inline
"
;
document
.
getElementById
(
"
riskButton
"
).
style
.
display
=
"
none
"
;
}
</script>
<%
if
(!
""
.
equals
(
confirm
))
{
%>
<span
class=
"iTrustError"
><%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
confirm
))
%></span><br
/>
<%
}
%>
<br
/>
<br
/>
<a
href=
"/iTrust/auth/hcp-uap/viewPreRegisteredPatientList.jsp"
style=
"text-decoration: none;"
>
<input
type=
button
value=
"Go Back to Pre-Registered Patient List"
onClick=
"location='/iTrust/auth/hcp-uap/viewPreRegisteredPatientList.jsp';"
>
</a>
<br
/><br
/>
<td>
<a
href=
"activatePatient.jsp"
style=
"text-decoration: none;"
>
<input
type=
button
value=
"Activate"
>
</a>
<a
href=
"activatePatient.jsp"
style=
"text-decoration: none;"
>
<input
type=
button
value=
"Activate"
>
</a>
</td>
<div
align=
center
>
<div
style=
"margin-right: 10px;"
>
<table
class=
"fTable"
align=
"center"
>
<tr>
<th
colspan=
"2"
>
Patient Information
</th>
</tr>
<tr>
<td
class=
"subHeaderVertical"
>
Name:
</td>
<td
><%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
patient
.
getFullName
()))
%></td>
</tr>
<tr>
<td
class=
"subHeaderVertical"
>
Address:
</td>
<td
>
<%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
patient
.
getStreetAddress1
()))
%><br
/>
<%=
""
.
equals
(
patient
.
getStreetAddress2
())
?
""
:
patient
.
getStreetAddress2
()
+
"
<
br
/
>"
%>
<%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
patient
.
getStreetAddress3
()))
%><br
/>
</td>
</tr>
<tr>
<td
class=
"subHeaderVertical"
>
Phone:
</td>
<td
><%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
patient
.
getPhone
()))
%></td>
</tr>
<tr>
<td
class=
"subHeaderVertical"
>
Email:
</td>
<td
><%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
patient
.
getEmail
()))
%></td>
</tr>
<tr>
<th
colspan=
"2"
>
Insurance Information
</th>
</tr>
<tr>
<td
class=
"subHeaderVertical"
>
Provider Name:
</td>
<td
><%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
patient
.
getIcName
()))
%></td>
</tr>
<tr>
<td
class=
"subHeaderVertical"
>
Address:
</td>
<td
>
<%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
patient
.
getIcAddress1
()))
%><br
/>
<%=
""
.
equals
(
patient
.
getIcAddress2
())
?
""
:
patient
.
getIcAddress2
()
+
"
<
br
/
>"
%>
<%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
patient
.
getIcAddress3
()))
%><br
/>
</td>
</tr>
<tr>
<td
class=
"subHeaderVertical"
>
Phone:
</td>
<td
><%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
patient
.
getIcPhone
()))
%></td>
</tr>
</table>
<br
/>
</div>
<div
style=
"margin-right: 10px;"
>
<table
class=
"fTable"
align=
"center"
>
<tr>
<th
colspan=
"2"
>
Basic Health Records
</th>
</tr>
<%
if
(
null
==
mostRecent
)
{
%>
<tr><td
colspan=
2
>
No basic health records are on file for this patient
</td></tr>
<%
}
else
{
%>
<tr>
<td
class=
"subHeaderVertical"
>
Height:
</td>
<td
><%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
mostRecent
.
getHeight
()))
%>
in.
</td>
</tr>
<tr>
<td
class=
"subHeaderVertical"
>
Weight:
</td>
<td
><%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
mostRecent
.
getWeight
()))
%>
lbs.
</td>
</tr>
<tr>
<td
class=
"subHeaderVertical"
>
Smoker?:
</td>
<td
><%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
mostRecent
.
getSmokingStatus
())
+
" - "
+
(
mostRecent
.
getSmokingStatusDesc
()))
%></td>
</tr>
<%
}
//closing for "there is a most recent record for this patient"
%>
</table>
<br
/>
</div>
<div
style=
"margin-right: 10px;"
>
<table
class=
"fTable"
align=
"center"
>
<tr>
<th
colspan=
"2"
>
Patient Information
</th>
</tr>
<tr>
<td
class=
"subHeaderVertical"
>
Name:
</td>
<td
><%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
patient
.
getFullName
()))
%></td>
</tr>
<tr>
<td
class=
"subHeaderVertical"
>
Address:
</td>
<td
>
<%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
patient
.
getStreetAddress1
()))
%><br
/>
<%=
""
.
equals
(
patient
.
getStreetAddress2
())
?
""
:
patient
.
getStreetAddress2
()
+
"
<
br
/
>"
%>
<%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
patient
.
getStreetAddress3
()))
%><br
/>
</td>
</tr>
<tr>
<td
class=
"subHeaderVertical"
>
Phone:
</td>
<td
><%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
patient
.
getPhone
()))
%></td>
</tr>
<tr>
<td
class=
"subHeaderVertical"
>
Email:
</td>
<td
><%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
patient
.
getEmail
()))
%></td>
</tr>
<tr>
<th
colspan=
"2"
>
Insurance Information
</th>
</tr>
<tr>
<td
class=
"subHeaderVertical"
>
Provider Name:
</td>
<td
><%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
patient
.
getIcName
()))
%></td>
</tr>
<tr>
<td
class=
"subHeaderVertical"
>
Address:
</td>
<td
>
<%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
patient
.
getIcAddress1
()))
%><br
/>
<%=
""
.
equals
(
patient
.
getIcAddress2
())
?
""
:
patient
.
getIcAddress2
()
+
"
<
br
/
>"
%>
<%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
patient
.
getIcAddress3
()))
%><br
/>
</td>
</tr>
<tr>
<td
class=
"subHeaderVertical"
>
Phone:
</td>
<td
><%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
patient
.
getIcPhone
()))
%></td>
</tr>
</table>
<br
/>
</div>
<div
style=
"margin-right: 10px;"
>
<table
class=
"fTable"
align=
"center"
>
<tr>
<th
colspan=
"2"
>
Basic Health Records
</th>
</tr>
<%
if
(
null
==
mostRecent
)
{
%>
<tr><td
colspan=
2
>
No basic health records are on file for this patient
</td></tr>
<%
}
else
{
%>
<tr>
<td
class=
"subHeaderVertical"
>
Height:
</td>
<td
><%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
mostRecent
.
getHeight
()))
%>
in.
</td>
</tr>
<tr>
<td
class=
"subHeaderVertical"
>
Weight:
</td>
<td
><%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
mostRecent
.
getWeight
()))
%>
lbs.
</td>
</tr>
<tr>
<td
class=
"subHeaderVertical"
>
Smoker?:
</td>
<td
><%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
mostRecent
.
getSmokingStatus
())
+
" - "
+
(
mostRecent
.
getSmokingStatusDesc
()))
%></td>
</tr>
<%
}
//closing for "there is a most recent record for this patient"
%>
</table>
<br
/>
</div>
</div>
<br
/>
<br
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment