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
c04a70f4
Commit
c04a70f4
authored
4 years ago
by
adityab3
Browse files
Options
Downloads
Patches
Plain Diff
Backend: added skeleton code for AddPreRegisteredPatientAction
parent
81790cd5
No related branches found
No related tags found
1 merge request
!3
Uc91.1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iTrust/src/edu/ncsu/csc/itrust/action/AddPreRegisteredPatientAction.java
+49
-0
49 additions, 0 deletions
...ncsu/csc/itrust/action/AddPreRegisteredPatientAction.java
with
49 additions
and
0 deletions
iTrust/src/edu/ncsu/csc/itrust/action/AddPreRegisteredPatientAction.java
0 → 100644
+
49
−
0
View file @
c04a70f4
package
edu.ncsu.csc.itrust.action
;
import
edu.ncsu.csc.itrust.RandomPassword
;
import
edu.ncsu.csc.itrust.beans.PatientBean
;
import
edu.ncsu.csc.itrust.dao.DAOFactory
;
import
edu.ncsu.csc.itrust.dao.mysql.PatientDAO
;
import
edu.ncsu.csc.itrust.dao.mysql.AuthDAO
;
/**
* Used for Add Pre-registered Patient page (PreRegisterPatient.jsp). This just adds an empty patient, creates an entered password for
* that patient.
*
* Very similar to {@link AddOfficeVisitAction}
*
*
*/
public
class
AddPreRegisteredPatientAction
{
private
PatientDAO
patientDAO
;
private
AuthDAO
authDAO
;
private
long
loggedInMID
;
/**
* Just the factory and logged in MID
*
* @param factory
* @param loggedInMID
*/
public
AddPreRegisteredPatientAction
(
DAOFactory
factory
,
long
loggedInMID
)
{
this
.
patientDAO
=
factory
.
getPatientDAO
();
this
.
loggedInMID
=
loggedInMID
;
this
.
authDAO
=
factory
.
getAuthDAO
();
}
/**
* Creates a new patient, returns the new MID.
*
* @param p patient to be created
* @return the new MID of the patient
*/
public
long
addPatient
(
PatientBean
p
)
{
// Add patient to DB
long
newMID
=
0L
;
return
newMID
;
}
}
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