Class Doctor
java.lang.Object
com.mirna.hospitalmanagementapi.domain.entities.Doctor
- Version:
- 1.0
- Author:
- Mirna Gama
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the addressgetCrm()Returns the crmgetEmail()Returns the emailgetId()Returns the doctor id.getName()Returns the nameReturns the specialtyReturns the telephonevoidsetAddress(Address address) Sets the addressvoidSets the crmvoidSets the emailvoidSets the doctor id.voidSets the namevoidsetSpecialty(Specialty specialty) Sets the specialtyvoidsetTelephone(String telephone) Sets the telephone
-
Constructor Details
-
Doctor
Constructor for class Doctor- Parameters:
doctorDTO- Data transfer object containing Doctor entity information- See Also:
-
-
Method Details
-
getId
Returns the doctor id.- Returns:
- A Long representing the doctor id.
-
setId
Sets the doctor id.- Parameters:
id- The doctor's unique identifier.
-
getName
Returns the name- Returns:
- A string representing the doctor's name.
-
setName
Sets the name- Parameters:
name- Must not be blank.
-
getEmail
Returns the email- Returns:
- A string representing the doctor's email.
-
setEmail
Sets the email- Parameters:
email- Must not be blank.
-
getCrm
Returns the crm- Returns:
- A string representing the doctor's crm.
-
setCrm
Sets the crm- Parameters:
crm- Must not be blank.
-
getTelephone
Returns the telephone- Returns:
- A string representing the doctor's telephone.
-
setTelephone
Sets the telephone- Parameters:
telephone- Must not be blank.
-
getSpecialty
Returns the specialty- Returns:
- An enum class representing the doctor's specialty.
- See Also:
-
Speciality
-
setSpecialty
Sets the specialty- Parameters:
specialty- Must not be null.
-
getAddress
Returns the address- Returns:
- An object class representing the doctor's address.
- See Also:
-
setAddress
Sets the address- Parameters:
address- Must not be null.
-