public class DoctorController extends AgentController
Constructor and Description |
---|
DoctorController()
Constrcutor of the class
Creates alls sub Agent (Bottom level Agents)
|
Modifier and Type | Method and Description |
---|---|
void |
createMedicalHistory(int patientId)
Open the Patient Dialog for creating a new Patient
Creates the model and saves the PatientID and the UserID into the model
|
void |
deletePatient(Patient model)
prompt the user and inactivate the Patient
|
void |
editMedicalHistory(MedicalHistory model)
Edit the given MedicalHistory model.
|
void |
FilterTable(java.lang.String firstname,
java.lang.String lastname,
java.time.LocalDate birthDate,
java.lang.String ahv)
Filter the Patient Table based on the given criteria
If all params are null or empty the display all data
|
boolean |
setupAgent()
Called when the Agent is initialized
|
void |
showMedicalHistory(int patientId)
Get the Medical history from the Database based on the passed PatientID
Fills the received data into the Table
|
void |
showPatientChildWindow(Patient model)
Opens the Patient Dialog and sends the given model
for later processing
|
addChild, getParent, receiveMessage, removeCildren, setParent
public DoctorController()
public boolean setupAgent()
setupAgent
in class AgentController
public void showPatientChildWindow(Patient model)
model
- public void deletePatient(Patient model)
model
- public void showMedicalHistory(int patientId)
patientId
- the ID of the Patientpublic void createMedicalHistory(int patientId)
patientId
- the id of the Patient which should be assignedpublic void editMedicalHistory(MedicalHistory model)
model
- public void FilterTable(java.lang.String firstname, java.lang.String lastname, java.time.LocalDate birthDate, java.lang.String ahv)
firstname
- as the name saylastname
- as the name saybirthDate
- as the name sayahv
- as the name say