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 activeReturns the addressgetCrm()Returns the crmgetEmail()Returns the emailgetId()Returns the doctor id.getName()Returns the nameReturns the specialtyReturns the telephonevoidSets the activevoidsetAddress(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:
-
Doctor
public Doctor()
-
-
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:
-
setSpecialty
Sets the specialty- Parameters:
specialty- Must not be null.
-
getActive
Returns the active- Returns:
- A boolean value that states whether the doctor is active in the system
-
setActive
Sets the active- Parameters:
active- Must not be null. Starts with the true value by default
-
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.
-