Package org.cswteams.ms3.entity
Class MedicalService
java.lang.Object
org.cswteams.ms3.entity.MedicalService
Class that represent a service offered by the hospital.
(E.g. In the hospital, we have that in the morning in the cardiology ward, we offer treatment)
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor needed by LombokMedicalService(Long id, List<Task> tasks, String label) This constructor is useful for editing the instance in the persistence layerMedicalService(List<Task> tasks, String label) Create a Medical Service with the specified parameters. -
Method Summary
-
Constructor Details
-
MedicalService
Create a Medical Service with the specified parameters.- Parameters:
tasks- The list of the taskEnums offered in this servicelabel- The medical service offered to the patient (oncology, cardiology, ecc...)
-
MedicalService
This constructor is useful for editing the instance in the persistence layer- Parameters:
id- The id of the servicetasks- The list of the taskEnums offered in this servicelabel- The medical service offered to the patient (oncology, cardiology, ecc...)
-
MedicalService
protected MedicalService()Default constructor needed by Lombok
-
-
Method Details
-
addTasks
Append new tasks for this medical service-- Parameters:
tasks- list of the new task to be added to the service
-