|
|
|
@ -29,7 +29,7 @@ class VisitsSearch {
|
|
|
|
this.expectedDateTo,
|
|
|
|
this.expectedDateTo,
|
|
|
|
this.deviceNumber,
|
|
|
|
this.deviceNumber,
|
|
|
|
this.deviceName,
|
|
|
|
this.deviceName,
|
|
|
|
this.mostRecent,
|
|
|
|
this.mostRecent = true,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
fromSearch(VisitsSearch newSearch) {
|
|
|
|
fromSearch(VisitsSearch newSearch) {
|
|
|
|
@ -58,6 +58,10 @@ class VisitsSearch {
|
|
|
|
_search["siteId"] = hospital.id;
|
|
|
|
_search["siteId"] = hospital.id;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (mostRecent != null) {
|
|
|
|
|
|
|
|
_search["mostRecent"] = mostRecent;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (brand != null && brand.isNotEmpty) {
|
|
|
|
if (brand != null && brand.isNotEmpty) {
|
|
|
|
// todo get new key
|
|
|
|
// todo get new key
|
|
|
|
_search[""] = brand;
|
|
|
|
_search[""] = brand;
|
|
|
|
|