public class PatientController extends AgentController
Constructor and Description |
---|
PatientController() |
Modifier and Type | Method and Description |
---|---|
void |
closeDialog()
Close the dialog without saving the data
|
Code |
getAssignedCode(int id)
Check the Code list and return the Code Model object based on the given ID
|
void |
refreshPatientData(Patient model)
Write all changes into the Model
|
void |
save()
Saves all changes and update it to the Database
|
boolean |
setupAgent()
Method which is called every time the Agent is initialized
|
addChild, getParent, receiveMessage, removeCildren, setParent
public boolean setupAgent()
setupAgent
in class AgentController
public void closeDialog()
public void refreshPatientData(Patient model)
model
- the model which should be writtenpublic void save()
public Code getAssignedCode(int id)
id
- the Code ID which should be returned