Rev | Line | |
---|
[1240] | 1 | package gov.va.med.edp.pt.demog.control {
|
---|
| 2 | import gov.va.med.edp.pt.demog.IPatientChecksDao;
|
---|
| 3 | import gov.va.med.edp.pt.demog.model.PatientChecksModel;
|
---|
| 4 | import gov.va.med.edp.pt.demog.model.PatientSelectVO;
|
---|
| 5 | import gov.va.med.edp.pt.demog.IPatientChecksController;
|
---|
| 6 | public class PatientChecksController implements IPatientChecksController {
|
---|
| 7 |
|
---|
| 8 | [Bindable]
|
---|
| 9 | public var model:PatientChecksModel;
|
---|
| 10 |
|
---|
| 11 | [Bindable]
|
---|
| 12 | public var dao:IPatientChecksDao;
|
---|
| 13 |
|
---|
| 14 | public function resetPatientChecks():void {
|
---|
| 15 | model.reset();
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | public function loadPatientChecks(pt:PatientSelectVO, forwardOnLoad:Boolean = false):void {
|
---|
| 19 | resetPatientChecks();
|
---|
| 20 | model.checkState = PatientChecksModel.STATE_LOADING;
|
---|
| 21 | dao.loadPatientChecks(new CheckSensitivePtAndFlagsResponder(this, model, pt, forwardOnLoad), pt);
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | public function logPatientAccess(pt:PatientSelectVO):void {
|
---|
| 25 | logAccessForDfn(pt.dfn);
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 | private function logAccessForDfn(dfn:String):void {
|
---|
| 29 | dao.logPatientAccess(new LogSensitivePatientAccessResponder(), dfn);
|
---|
| 30 | }
|
---|
| 31 |
|
---|
| 32 | public function backPatientCheck():void {
|
---|
| 33 | model.back();
|
---|
| 34 | }
|
---|
| 35 |
|
---|
| 36 | public function forwardPatientCheck():void {
|
---|
| 37 | if (model.continueEnabled && model.checkState == PatientChecksModel.STATE_SENSITIVE && model.patientChecks.logAccess) {
|
---|
| 38 | logAccessForDfn(model.patientChecks.dfn);
|
---|
| 39 | }
|
---|
| 40 | model.forward();
|
---|
| 41 | }
|
---|
| 42 | }
|
---|
| 43 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.