Skip to content

Commit 948261b

Browse files
chore: add medical technology repository
1 parent fdf0774 commit 948261b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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.medicaltechnology.MedicalTechnology;
12+
import entity.medicaltechnology.MedicalTechnologyID;
13+
14+
import java.util.Optional;
15+
16+
/**
17+
* Interface that models the repository to manage Medical Technologies.
18+
*/
19+
public interface MedicalTechnologyRepository {
20+
/**
21+
* Find a medical technology by its id and gets its data.
22+
* @param medicalTechnologyID the id used to find the medical technology
23+
* @return the medical technology data
24+
*/
25+
Optional<MedicalTechnology> findBy(MedicalTechnologyID medicalTechnologyID);
26+
}

0 commit comments

Comments
 (0)