Class Patient
java.lang.Object
com.mirna.hospitalmanagementapi.domain.entities.Patient
- Version:
- 1.0
- Author:
- Mirna Gama
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the activeReturns the addressgetCpf()Returns the cpfgetEmail()Returns the emailgetId()Returns the doctor id.getName()Returns the nameReturns the telephonevoidSets the activevoidsetAddress(Address address) Sets the addressvoidSets the cpfvoidSets the emailvoidSets the doctor id.voidSets the namevoidsetTelephone(String telephone) Sets the telephone
-
Constructor Details
-
Patient
Constructor for class Patient- Parameters:
patientDTO- Data transfer object containing Patient entity information- See Also:
-
Patient
public Patient()
-
-
Method Details
-
getId
Returns the doctor id.- Returns:
- A Long representing the patient id.
-
setId
Sets the doctor id.- Parameters:
id- The patient's unique identifier.
-
getName
Returns the name- Returns:
- A string representing the patient's name.
-
setName
Sets the name- Parameters:
name- Must not be blank.
-
getEmail
Returns the email- Returns:
- A string representing the patient's email.
-
setEmail
Sets the email- Parameters:
email- Must not be blank.
-
getCpf
Returns the cpf- Returns:
- A string representing the patient's cpf.
-
setCpf
Sets the cpf- Parameters:
cpf- Must not be blank.
-
getTelephone
Returns the telephone- Returns:
- A string representing the patient's telephone.
-
setTelephone
Sets the telephone- Parameters:
telephone- Must not be blank.
-
getActive
Returns the active- Returns:
- A boolean value that states whether the patient 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 patient's address.
- See Also:
-
setAddress
Sets the address- Parameters:
address- Must not be null.
-