Class MedicalService

java.lang.Object
org.cswteams.ms3.entity.MedicalService

@Entity public class MedicalService extends Object
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 Details

    • MedicalService

      public MedicalService(List<Task> tasks, String label)
      Create a Medical Service with the specified parameters.
      Parameters:
      tasks - The list of the taskEnums offered in this service
      label - The medical service offered to the patient (oncology, cardiology, ecc...)
    • MedicalService

      public MedicalService(Long id, List<Task> tasks, String label)
      This constructor is useful for editing the instance in the persistence layer
      Parameters:
      id - The id of the service
      tasks - The list of the taskEnums offered in this service
      label - The medical service offered to the patient (oncology, cardiology, ecc...)
    • MedicalService

      protected MedicalService()
      Default constructor needed by Lombok
  • Method Details

    • addTasks

      public void addTasks(List<Task> tasks)
      Append new tasks for this medical service-
      Parameters:
      tasks - list of the new task to be added to the service