Line | |
---|
1 | package gov.va.med.edp.pt.demog.control {
|
---|
2 |
|
---|
3 | import gov.va.med.edp.pt.demog.IMatchPatientsController;
|
---|
4 | import gov.va.med.edp.business.MatchPatientsDelegate;
|
---|
5 | import gov.va.med.edp.pt.demog.model.MatchingPatientsModel;
|
---|
6 |
|
---|
7 | public class MatchPatientsController implements IMatchPatientsController {
|
---|
8 |
|
---|
9 | [Bindable]
|
---|
10 | public var model:MatchingPatientsModel;
|
---|
11 |
|
---|
12 | public function resetMatchingPatients():void {
|
---|
13 | model.matchingPatients = null; // TODO: is this right?
|
---|
14 | model.matchingPatientsLoaded = false;
|
---|
15 | model.matchingPatientsTruncated = false;
|
---|
16 | }
|
---|
17 |
|
---|
18 | public function matchPatients(partial:String):void {
|
---|
19 | model.matchingPatientsLoaded = false;
|
---|
20 |
|
---|
21 | if ((partial == null) || (partial.length == 0)) {
|
---|
22 | model.matchingPatients = null;
|
---|
23 | return;
|
---|
24 | }
|
---|
25 |
|
---|
26 | var delegate:MatchPatientsDelegate = new MatchPatientsDelegate(new MatchPatientsResponder(model));
|
---|
27 | delegate.matchPatients(partial);
|
---|
28 | }
|
---|
29 | }
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.