source: EDIS/trunk/java/tracking-ui-core/src/main/flex/gov/va/med/edp/pt/demog/control/PatientChecksController.as@ 1227

Last change on this file since 1227 was 1227, checked in by George Lilly, 13 years ago

initial load of EDIS 1.0

File size: 1.4 KB
Line 
1package gov.va.med.edp.pt.demog.control {
2import gov.va.med.edp.pt.demog.IPatientChecksDao;
3import gov.va.med.edp.pt.demog.model.PatientChecksModel;
4import gov.va.med.edp.pt.demog.model.PatientSelectVO;
5import gov.va.med.edp.pt.demog.IPatientChecksController;
6public 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.