|
8 | 8 | { label: "${ ui.message("coreapps.app.awaitingAdmission.label")}"} |
9 | 9 | ]; |
10 | 10 |
|
11 | | - var supportsAdmissionLocationTag = '${supportsAdmissionLocationTag}'; |
12 | | - var supportsLoginLocationTag = '${supportsLoginLocationTag}'; |
13 | | -
|
14 | 11 | // TODO: probably want replace the whole thing with either ngGrid or the new datatable widget |
15 | 12 | // TODO: make this more robust--kind of hacky to rely on column index now that it can change |
16 | 13 | var admitToLocationColumnIndex = ${ paperRecordIdentifierDefinitionAvailable ? '5' : '4' }; |
|
103 | 100 | <h2>${ ui.message("coreapps.app.awaitingAdmission.title") }</h2> |
104 | 101 |
|
105 | 102 | <div class="inpatient-current-location-filter"> |
106 | | - ${ ui.includeFragment("uicommons", "field/location", [ |
| 103 | + ${ ui.includeFragment("pihapps", "field/location", [ |
107 | 104 | "id": "inpatients-filterByCurrentLocation", |
108 | 105 | "formFieldName": "filterByCurentLocationId", |
109 | 106 | "label": "coreapps.app.awaitingAdmission.filterByCurrent", |
110 | | - "withTag": supportsLoginLocationTag |
| 107 | + "withTag": supportsLoginLocationTag, |
| 108 | + "restrictToVisitLocationAndDescendants": true |
111 | 109 | ] ) } |
112 | 110 | </div> |
113 | 111 |
|
114 | 112 | <div class="inpatient-admitTo-location-filter"> |
115 | | - ${ ui.includeFragment("uicommons", "field/location", [ |
| 113 | + ${ ui.includeFragment("pihapps", "field/location", [ |
116 | 114 | "id": "inpatients-filterByAdmitToLocation", |
117 | 115 | "formFieldName": "filterByAdmitToLocationId", |
118 | 116 | "label": "coreapps.app.awaitingAdmission.filterByAdmittedTo", |
119 | 117 | "withTag": supportsAdmissionLocationTag, |
| 118 | + "restrictToVisitLocationAndDescendants": true, |
120 | 119 | "initialValue": sessionContext.sessionLocation |
121 | 120 | ] ) } |
122 | 121 | </div> |
|
0 commit comments