Interface IConcreteShiftController
- All Known Implementing Classes:
ConcreteShiftController
public interface IConcreteShiftController
-
Method Summary
Modifier and TypeMethodDescriptiongetConcreteShiftById(long idAssegnazione) getSingleDoctorConcreteShifts(Long idUtente) substituteAssignedDoctor(@NotNull ConcreteShift concreteShift, @NotNull Doctor requestingDoctor, @NotNull Doctor substituteDoctor) Substitute a doctor assigned to a concrete shift (i.e. is either on duty or on call for it) with a doctor that is on call for it.
-
Method Details
-
getAllConcreteShifts
- Throws:
ParseException
-
createNewConcreteShift
- Throws:
ConcreteShiftException
-
getSingleDoctorConcreteShifts
- Throws:
ParseException
-
getConcreteShiftById
-
substituteAssignedDoctor
ConcreteShift substituteAssignedDoctor(@NotNull @NotNull ConcreteShift concreteShift, @NotNull @NotNull Doctor requestingDoctor, @NotNull @NotNull Doctor substituteDoctor) throws ConcreteShiftException Substitute a doctor assigned to a concrete shift (i.e. is either on duty or on call for it) with a doctor that is on call for it.- Parameters:
concreteShift- the concrete shift the substitution is referring torequestingDoctor- doctor requesting the substitutionsubstituteDoctor- on-call-doctor that will substituterequestingDoctor- Returns:
- object related to the concrete shift
- Throws:
ConcreteShiftException- if the requesting doctor is neither on duty nor on call, or if the substitute doctor is not on call for the concrete shift.
-