Skip to content

Commit b13e87f

Browse files
giacomoaccursiandrea-acampora
authored andcommitted
chore: create repository interface for health professional tracking
1 parent b71ffcf commit b13e87f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Copyright (c) 2023. Smart Operating Block
3+
*
4+
* Use of this source code is governed by an MIT-style
5+
* license that can be found in the LICENSE file or at
6+
* https://opensource.org/licenses/MIT.
7+
*/
8+
9+
package usecase.repository
10+
11+
import entity.tracking.HealthProfessionalTrackingInfo
12+
import io.vertx.core.Future
13+
14+
/**
15+
* Interface that model tracking repository.
16+
*/
17+
interface TrackingRepository {
18+
19+
/**
20+
* Get the info about health professionals tracking given the [preOperatingRoomId] and the [operatingRoomId].
21+
*/
22+
fun getZoneHealthProfessionalTrackingInfo(
23+
preOperatingRoomId: String,
24+
operatingRoomId: String,
25+
): Pair<Future<List<Future<HealthProfessionalTrackingInfo>>>, Future<List<Future<HealthProfessionalTrackingInfo>>>>
26+
27+
/**
28+
* Get the info about health professionals tracking in the operating block.
29+
*/
30+
fun getBlockHealthProfessionalTrackingInfo(): Future<List<Future<HealthProfessionalTrackingInfo>>>
31+
}

0 commit comments

Comments
 (0)