2727import java .util .List ;
2828
2929public interface BedManagementDao {
30-
30+
3131 Bed getBedById (int id );
32-
32+
3333 Bed getBedByUuid (String uuid );
34-
34+
3535 Bed getBedByPatient (Patient patient );
36-
36+
3737 Location getWardForBed (Bed bed );
38-
39- BedPatientAssignment getBedPatientAssignmentByUuid (String uuid );
4038
41- List < BedPatientAssignment > getBedPatientAssignmentByPatient (String patientUuid , boolean includeEnded );
39+ BedPatientAssignment getBedPatientAssignmentByUuid (String uuid );
4240
41+ List <BedPatientAssignment > getBedPatientAssignmentByPatient (String patientUuid , boolean includeEnded );
42+
4343 List <BedPatientAssignment > getBedPatientAssignmentByEncounter (String encounterUuid , boolean includeEnded );
44-
44+
4545 List <BedPatientAssignment > getBedPatientAssignmentByVisit (String visitUuid , boolean includeEnded );
46-
46+
4747 List <BedPatientAssignment > getCurrentAssignmentsByBed (Bed bed );
48-
48+
4949 Bed getLatestBedByVisit (String visitUuid );
50-
50+
5151 List <BedTag > getAllBedTags ();
52-
52+
5353 /**
5454 * Get all admission locations
55- *
55+ *
5656 * @param locations {@link List<Location>}
5757 * @return {@link List<AdmissionLocation>}
5858 */
5959 List <AdmissionLocation > getAdmissionLocations (List <Location > locations );
60-
60+
6161 /**
6262 * Get admission location for for a given location. Locations marked with the appropriate tag are
6363 * <i>admission</i> locations. This method returns the admission location, if applicable, when given
@@ -67,15 +67,15 @@ public interface BedManagementDao {
6767 * @return {@link AdmissionLocation} return null if not exist
6868 */
6969 AdmissionLocation getAdmissionLocationForLocation (Location location );
70-
70+
7171 /**
7272 * Get bed location mappings by location
7373 *
7474 * @param location {@link Location}
7575 * @return {@link List< BedLocationMapping >}
7676 */
7777 List <BedLocationMapping > getBedLocationMappingsByLocation (Location location );
78-
78+
7979 /**
8080 * Get bed location mapping by location and row and column
8181 *
@@ -85,31 +85,31 @@ public interface BedManagementDao {
8585 * @return {@link BedLocationMapping}
8686 */
8787 BedLocationMapping getBedLocationMappingByLocationAndRowAndColumn (Location location , Integer row , Integer column );
88-
88+
8989 /**
9090 * Save / Update Bed location mapping
9191 *
9292 * @param bedLocationMapping {@link BedLocationMapping}
9393 * @return {@link BedLocationMapping}
9494 */
9595 BedLocationMapping saveBedLocationMapping (BedLocationMapping bedLocationMapping );
96-
96+
9797 /**
9898 * Get bed layout by location
9999 *
100100 * @param location {@link Location}
101101 * @return {@link List<BedLayout>}
102102 */
103103 List <BedLayout > getBedLayoutsByLocation (Location location );
104-
104+
105105 /**
106106 * Get bed location mapping {@link BedLocationMapping} by bed
107107 *
108108 * @param bed {@link Bed} bed
109109 * @return {@link BedLocationMapping}
110110 */
111111 BedLocationMapping getBedLocationMappingByBed (Bed bed );
112-
112+
113113 /**
114114 * Get beds.
115115 *
@@ -122,31 +122,39 @@ public interface BedManagementDao {
122122 * @return {@link List<Bed>}
123123 */
124124 List <Bed > getBeds (Location location , BedType bedType , BedStatus status , Integer limit , Integer offset );
125-
125+
126126 /**
127127 * Get total bed number by location {@link Location} uuid
128128 *
129129 * @param location {@link Location} ward's room location
130130 * @return {@link Long} total number of beds
131131 */
132132 Integer getBedCountByLocation (Location location );
133-
133+
134134 /**
135135 * Save / update bed
136136 *
137137 * @param bed {@link Bed}
138138 * @return {@link Bed}
139139 */
140140 Bed saveBed (Bed bed );
141-
141+
142142 /**
143143 * Get bed tag by Uuid
144144 *
145145 * @param uuid {@link String} bed tag uuid
146146 * @return {@link BedTag}
147147 */
148148 BedTag getBedTagByUuid (String uuid );
149-
149+
150+ /**
151+ * Get bed tag by Uuid
152+ *
153+ * @param uuid {@link String} bed tag uuid
154+ * @return {@link BedTag}
155+ */
156+ BedTag getBedTagByName (String Name );
157+
150158 /**
151159 * Return bed tags
152160 *
@@ -156,38 +164,38 @@ public interface BedManagementDao {
156164 * @return {@link List<BedTag>}
157165 */
158166 List <BedTag > getBedTags (String name , Integer limit , Integer offset );
159-
167+
160168 /**
161169 * Save / Update bed tag
162170 *
163171 * @param bedTag {@link BedTag}
164172 * @return {@link BedTag}
165173 */
166174 BedTag saveBedTag (BedTag bedTag );
167-
175+
168176 /**
169177 * Delete bed tag
170178 *
171179 * @param bedTag {@link BedTag}
172180 */
173181 void deleteBedTag (BedTag bedTag );
174-
182+
175183 /**
176184 * Get bed type by Id
177- *
185+ *
178186 * @param id {@link Integer} bed Id
179187 * @return {@link BedType}
180188 */
181189 BedType getBedTypeById (Integer id );
182-
190+
183191 /**
184192 * Get bed type by Uuid
185193 *
186194 * @param uuid {@link String} bed Uuid
187195 * @return {@link BedType}
188196 */
189197 BedType getBedTypeByUuid (String uuid );
190-
198+
191199 /**
192200 * Get bed sypes
193201 *
@@ -197,29 +205,29 @@ public interface BedManagementDao {
197205 * @return {@link List<BedType>}
198206 */
199207 List <BedType > getBedTypes (String name , Integer limit , Integer offset );
200-
208+
201209 /**
202210 * Save/Update bed type
203211 *
204212 * @param bedType {@link BedType}
205213 * @return {@link BedType}
206214 */
207215 BedType saveBedType (BedType bedType );
208-
216+
209217 /**
210218 * Delete Bed type
211219 *
212220 * @param bedType {@link BedType}
213221 */
214222 void deleteBedType (BedType bedType );
215-
223+
216224 /**
217225 * Delete Bed location mapping
218226 *
219227 * @param bedLocationMapping
220228 */
221229 void deleteBedLocationMapping (BedLocationMapping bedLocationMapping );
222-
230+
223231 /**
224232 * @param bedPatientAssignment the BedPatientAssignment to save
225233 * @return the saved BedPatientAssignment
0 commit comments