java.lang.Object
com.mirna.hospitalmanagementapi.domain.entities.Patient

@Entity(name="Patient") public class Patient extends Object
Version:
1.0
Author:
Mirna Gama
  • Constructor Details

    • Patient

      public Patient(PatientDTO patientDTO)
      Constructor for class Patient
      Parameters:
      patientDTO - Data transfer object containing Patient entity information
      See Also:
    • Patient

      public Patient()
  • Method Details

    • getId

      public Long getId()
      Returns the doctor id.
      Returns:
      A Long representing the patient id.
    • setId

      public void setId(Long id)
      Sets the doctor id.
      Parameters:
      id - The patient's unique identifier.
    • getName

      public String getName()
      Returns the name
      Returns:
      A string representing the patient's name.
    • setName

      public void setName(String name)
      Sets the name
      Parameters:
      name - Must not be blank.
    • getEmail

      public String getEmail()
      Returns the email
      Returns:
      A string representing the patient's email.
    • setEmail

      public void setEmail(String email)
      Sets the email
      Parameters:
      email - Must not be blank.
    • getCpf

      public String getCpf()
      Returns the cpf
      Returns:
      A string representing the patient's cpf.
    • setCpf

      public void setCpf(String cpf)
      Sets the cpf
      Parameters:
      cpf - Must not be blank.
    • getTelephone

      public String getTelephone()
      Returns the telephone
      Returns:
      A string representing the patient's telephone.
    • setTelephone

      public void setTelephone(String telephone)
      Sets the telephone
      Parameters:
      telephone - Must not be blank.
    • getActive

      public Boolean getActive()
      Returns the active
      Returns:
      A boolean value that states whether the patient is active in the system
    • setActive

      public void setActive(Boolean active)
      Sets the active
      Parameters:
      active - Must not be null. Starts with the true value by default
    • getAddress

      public Address getAddress()
      Returns the address
      Returns:
      An object class representing the patient's address.
      See Also:
    • setAddress

      public void setAddress(Address address)
      Sets the address
      Parameters:
      address - Must not be null.