DoctorDTO(@NotBlank(message="name cannot be blank") String name,
+
DoctorDTO(@NotBlank(message="name cannot be blank") String name,
@NotBlank(message="email cannot be blank") @Email(message="invalid format for email") String email,
@NotBlank(message="crm cannot be blank") @Pattern(regexp="\\d{4,6}",message="invalid format for crm") String crm,
@NotBlank(message="telephone cannot be blank") String telephone,
@@ -97,7 +99,7 @@ loadScripts(document, 'script');
PatientDTO(@NotBlank(message="name cannot be blank") String name,
+ @NotBlank(message="email cannot be blank") @Email(message="invalid format for email") String email,
+ @NotBlank(message="cpf cannot be blank") @Pattern(regexp="\\d{11}",message="invalid format for cpf") String cpf,
+ @NotBlank(message="telephone cannot be blank") String telephone,
+ @NotNull(message="address cannot be null") @Valid AddressDTO address)
public record DoctorDTO(@NotBlank(message="name cannot be blank") String name, @NotBlank(message="email cannot be blank") @Email(message="invalid format for email") String email, @NotBlank(message="crm cannot be blank") @Pattern(regexp="\\d{4,6}",message="invalid format for crm") String crm, @NotBlank(message="telephone cannot be blank") String telephone, @NotNull(message="speciality cannot be null") @Valid Specialty specialty, @NotNull(message="address cannot be null") @Valid AddressDTO address)
+extends Record
+
Data transfer object used to transfer data that will be saved in a Doctor entity
+
+
Version:
+
1.0
+
Author:
+
Mirna Gama
+
+
+
+
+
+
+
+
Constructor Summary
+
Constructors
+
+
Constructor
+
Description
+
DoctorDTO(@NotBlank(message="name cannot be blank") String name,
+ @NotBlank(message="email cannot be blank") @Email(message="invalid format for email") String email,
+ @NotBlank(message="crm cannot be blank") @Pattern(regexp="\\d{4,6}",message="invalid format for crm") String crm,
+ @NotBlank(message="telephone cannot be blank") String telephone,
+ @NotNull(message="speciality cannot be null") @Valid Specialty specialty,
+ @NotNull(message="address cannot be null") @Valid AddressDTO address)
+
+
Creates an instance of a DoctorDTO record class.
+
+
+
+
+
+
+
+
Method Summary
+
+
+
+
+
Modifier and Type
+
Method
+
Description
+
@NotNull(message="address cannot be null") @Valid AddressDTO
publicDoctorDTO(@NotBlank(message="name cannot be blank")
+ @NotBlank(message="name cannot be blank") String name,
+ @NotBlank(message="email cannot be blank") @Email(message="invalid format for email")
+ @NotBlank(message="email cannot be blank") @Email(message="invalid format for email") String email,
+ @NotBlank(message="crm cannot be blank") @Pattern(regexp="\\d{4,6}",message="invalid format for crm")
+ @NotBlank(message="crm cannot be blank") @Pattern(regexp="\\d{4,6}",message="invalid format for crm") String crm,
+ @NotBlank(message="telephone cannot be blank")
+ @NotBlank(message="telephone cannot be blank") String telephone,
+ @NotNull(message="speciality cannot be null") @Valid
+ @NotNull(message="speciality cannot be null") @Valid Specialty specialty,
+ @NotNull(message="address cannot be null") @Valid
+ @NotNull(message="address cannot be null") @Valid AddressDTO address)
+
Creates an instance of a DoctorDTO record class.
+
+
Parameters:
+
name - the value for the name record component
+
email - the value for the email record component
+
crm - the value for the crm record component
+
telephone - the value for the telephone record component
+
specialty - the value for the specialty record component
+
address - the value for the address record component
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
true if this object is the same as the o argument; false otherwise.
+
+
+
+
+
+
name
+
@NotBlank(message="name cannot be blank")
+public@NotBlank(message="name cannot be blank") Stringname()
+
Returns the value of the name record component.
+
+
Returns:
+
the value of the name record component
+
+
+
+
+
+
email
+
@NotBlank(message="email cannot be blank")
+@Email(message="invalid format for email")
+public@NotBlank(message="email cannot be blank") @Email(message="invalid format for email") Stringemail()
+
Returns the value of the email record component.
+
+
Returns:
+
the value of the email record component
+
+
+
+
+
+
crm
+
@NotBlank(message="crm cannot be blank")
+@Pattern(regexp="\\d{4,6}",
+ message="invalid format for crm")
+public@NotBlank(message="crm cannot be blank") @Pattern(regexp="\\d{4,6}",message="invalid format for crm") Stringcrm()
+
Returns the value of the crm record component.
+
+
Returns:
+
the value of the crm record component
+
+
+
+
+
+
telephone
+
@NotBlank(message="telephone cannot be blank")
+public@NotBlank(message="telephone cannot be blank") Stringtelephone()
+
Returns the value of the telephone record component.
+
+
Returns:
+
the value of the telephone record component
+
+
+
+
+
+
specialty
+
@NotNull(message="speciality cannot be null")
+@Valid
+public@NotNull(message="speciality cannot be null") @Valid Specialtyspecialty()
+
Returns the value of the specialty record component.
+
+
Returns:
+
the value of the specialty record component
+
+
+
+
+
+
address
+
@NotNull(message="address cannot be null")
+@Valid
+public@NotNull(message="address cannot be null") @Valid AddressDTOaddress()
+
Returns the value of the address record component.
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
public record PatientDTO(@NotBlank(message="name cannot be blank") String name, @NotBlank(message="email cannot be blank") @Email(message="invalid format for email") String email, @NotBlank(message="cpf cannot be blank") @Pattern(regexp="\\d{11}",message="invalid format for cpf") String cpf, @NotBlank(message="telephone cannot be blank") String telephone, @NotNull(message="address cannot be null") @Valid AddressDTO address)
+extends Record
+
Data transfer object used to transfer data that will be saved in a Patient
+ entity
+
+
Version:
+
1.0
+
Author:
+
Mirna Gama
+
+
+
+
+
+
+
+
Constructor Summary
+
Constructors
+
+
Constructor
+
Description
+
PatientDTO(@NotBlank(message="name cannot be blank") String name,
+ @NotBlank(message="email cannot be blank") @Email(message="invalid format for email") String email,
+ @NotBlank(message="cpf cannot be blank") @Pattern(regexp="\\d{11}",message="invalid format for cpf") String cpf,
+ @NotBlank(message="telephone cannot be blank") String telephone,
+ @NotNull(message="address cannot be null") @Valid AddressDTO address)
+
+
Creates an instance of a PatientDTO record class.
+
+
+
+
+
+
+
+
Method Summary
+
+
+
+
+
Modifier and Type
+
Method
+
Description
+
@NotNull(message="address cannot be null") @Valid AddressDTO
publicPatientDTO(@NotBlank(message="name cannot be blank")
+ @NotBlank(message="name cannot be blank") String name,
+ @NotBlank(message="email cannot be blank") @Email(message="invalid format for email")
+ @NotBlank(message="email cannot be blank") @Email(message="invalid format for email") String email,
+ @NotBlank(message="cpf cannot be blank") @Pattern(regexp="\\d{11}",message="invalid format for cpf")
+ @NotBlank(message="cpf cannot be blank") @Pattern(regexp="\\d{11}",message="invalid format for cpf") String cpf,
+ @NotBlank(message="telephone cannot be blank")
+ @NotBlank(message="telephone cannot be blank") String telephone,
+ @NotNull(message="address cannot be null") @Valid
+ @NotNull(message="address cannot be null") @Valid AddressDTO address)
+
Creates an instance of a PatientDTO record class.
+
+
Parameters:
+
name - the value for the name record component
+
email - the value for the email record component
+
cpf - the value for the cpf record component
+
telephone - the value for the telephone record component
+
address - the value for the address record component
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
true if this object is the same as the o argument; false otherwise.
+
+
+
+
+
+
name
+
@NotBlank(message="name cannot be blank")
+public@NotBlank(message="name cannot be blank") Stringname()
+
Returns the value of the name record component.
+
+
Returns:
+
the value of the name record component
+
+
+
+
+
+
email
+
@NotBlank(message="email cannot be blank")
+@Email(message="invalid format for email")
+public@NotBlank(message="email cannot be blank") @Email(message="invalid format for email") Stringemail()
+
Returns the value of the email record component.
+
+
Returns:
+
the value of the email record component
+
+
+
+
+
+
cpf
+
@NotBlank(message="cpf cannot be blank")
+@Pattern(regexp="\\d{11}",
+ message="invalid format for cpf")
+public@NotBlank(message="cpf cannot be blank") @Pattern(regexp="\\d{11}",message="invalid format for cpf") Stringcpf()
+
Returns the value of the cpf record component.
+
+
Returns:
+
the value of the cpf record component
+
+
+
+
+
+
telephone
+
@NotBlank(message="telephone cannot be blank")
+public@NotBlank(message="telephone cannot be blank") Stringtelephone()
+
Returns the value of the telephone record component.
+
+
Returns:
+
the value of the telephone record component
+
+
+
+
+
+
address
+
@NotNull(message="address cannot be null")
+@Valid
+public@NotNull(message="address cannot be null") @Valid AddressDTOaddress()
+
Returns the value of the address record component.
+
+
Returns:
+
the value of the address record component
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/com/mirna/hospitalmanagementapi/domain/dtos/patient/class-use/PatientDTO.html b/doc/com/mirna/hospitalmanagementapi/domain/dtos/patient/class-use/PatientDTO.html
new file mode 100644
index 0000000..1eea381
--- /dev/null
+++ b/doc/com/mirna/hospitalmanagementapi/domain/dtos/patient/class-use/PatientDTO.html
@@ -0,0 +1,139 @@
+
+
+
+
+Uses of Record Class com.mirna.hospitalmanagementapi.domain.dtos.patient.PatientDTO
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Uses of Record Class com.mirna.hospitalmanagementapi.domain.dtos.patient.PatientDTO
DoctorDTO(@NotBlank(message="name cannot be blank") String name,
+
DoctorDTO(@NotBlank(message="name cannot be blank") String name,
@NotBlank(message="email cannot be blank") @Email(message="invalid format for email") String email,
@NotBlank(message="crm cannot be blank") @Pattern(regexp="\\d{4,6}",message="invalid format for crm") String crm,
@NotBlank(message="telephone cannot be blank") String telephone,
@@ -99,7 +99,7 @@ loadScripts(document, 'script');
diff --git a/doc/package-search-index.js b/doc/package-search-index.js
index 765bbb4..5519743 100644
--- a/doc/package-search-index.js
+++ b/doc/package-search-index.js
@@ -1 +1 @@
-packageSearchIndex = [{"l":"All Packages","u":"allpackages-index.html"},{"l":"com.mirna.hospitalmanagementapi.application.controllers"},{"l":"com.mirna.hospitalmanagementapi.application.services"},{"l":"com.mirna.hospitalmanagementapi.application.usecase.doctor"},{"l":"com.mirna.hospitalmanagementapi.domain.dtos"},{"l":"com.mirna.hospitalmanagementapi.domain.entities"},{"l":"com.mirna.hospitalmanagementapi.domain.enums"},{"l":"com.mirna.hospitalmanagementapi.domain.repositories"},{"l":"com.mirna.hospitalmanagementapi.domain.services"},{"l":"com.mirna.hospitalmanagementapi.infra.handlers.validation"}];updateSearchResults();
\ No newline at end of file
+packageSearchIndex = [{"l":"All Packages","u":"allpackages-index.html"},{"l":"com.mirna.hospitalmanagementapi.application.controllers"},{"l":"com.mirna.hospitalmanagementapi.application.services"},{"l":"com.mirna.hospitalmanagementapi.application.usecase.doctor"},{"l":"com.mirna.hospitalmanagementapi.application.usecase.patient"},{"l":"com.mirna.hospitalmanagementapi.domain.dtos"},{"l":"com.mirna.hospitalmanagementapi.domain.dtos.doctor"},{"l":"com.mirna.hospitalmanagementapi.domain.dtos.patient"},{"l":"com.mirna.hospitalmanagementapi.domain.entities"},{"l":"com.mirna.hospitalmanagementapi.domain.enums"},{"l":"com.mirna.hospitalmanagementapi.domain.repositories"},{"l":"com.mirna.hospitalmanagementapi.domain.services"},{"l":"com.mirna.hospitalmanagementapi.infra.handlers"},{"l":"com.mirna.hospitalmanagementapi.infra.handlers.validation"}];updateSearchResults();
\ No newline at end of file
diff --git a/doc/type-search-index.js b/doc/type-search-index.js
index e86382f..cb5ec29 100644
--- a/doc/type-search-index.js
+++ b/doc/type-search-index.js
@@ -1 +1 @@
-typeSearchIndex = [{"p":"com.mirna.hospitalmanagementapi.domain.entities","l":"Address"},{"p":"com.mirna.hospitalmanagementapi.domain.dtos","l":"AddressDTO"},{"l":"All Classes and Interfaces","u":"allclasses-index.html"},{"p":"com.mirna.hospitalmanagementapi.domain.entities","l":"Doctor"},{"p":"com.mirna.hospitalmanagementapi.application.controllers","l":"DoctorController"},{"p":"com.mirna.hospitalmanagementapi.domain.dtos","l":"DoctorDTO"},{"p":"com.mirna.hospitalmanagementapi.domain.dtos","l":"DoctorPublicDataDTO"},{"p":"com.mirna.hospitalmanagementapi.domain.repositories","l":"DoctorRepository"},{"p":"com.mirna.hospitalmanagementapi.domain.services","l":"DoctorService"},{"p":"com.mirna.hospitalmanagementapi.application.services","l":"DoctorServiceImpl"},{"p":"com.mirna.hospitalmanagementapi.domain.dtos","l":"DoctorUpdatedDataDTO"},{"p":"com.mirna.hospitalmanagementapi.application.usecase.doctor","l":"FindDoctorByIdUseCase"},{"p":"com.mirna.hospitalmanagementapi.application.usecase.doctor","l":"FindDoctorsUseCase"},{"p":"com.mirna.hospitalmanagementapi","l":"HospitalManagementApiApplication"},{"p":"com.mirna.hospitalmanagementapi.application.usecase.doctor","l":"SaveDoctorUseCase"},{"p":"com.mirna.hospitalmanagementapi.domain.enums","l":"Specialty"},{"p":"com.mirna.hospitalmanagementapi.infra.handlers.validation","l":"ValidationErrorHandler"}];updateSearchResults();
\ No newline at end of file
+typeSearchIndex = [{"p":"com.mirna.hospitalmanagementapi.domain.entities","l":"Address"},{"p":"com.mirna.hospitalmanagementapi.domain.dtos","l":"AddressDTO"},{"l":"All Classes and Interfaces","u":"allclasses-index.html"},{"p":"com.mirna.hospitalmanagementapi.domain.entities","l":"Doctor"},{"p":"com.mirna.hospitalmanagementapi.application.controllers","l":"DoctorController"},{"p":"com.mirna.hospitalmanagementapi.domain.dtos.doctor","l":"DoctorDTO"},{"p":"com.mirna.hospitalmanagementapi.domain.dtos.doctor","l":"DoctorPublicDataDTO"},{"p":"com.mirna.hospitalmanagementapi.domain.repositories","l":"DoctorRepository"},{"p":"com.mirna.hospitalmanagementapi.domain.services","l":"DoctorService"},{"p":"com.mirna.hospitalmanagementapi.application.services","l":"DoctorServiceImpl"},{"p":"com.mirna.hospitalmanagementapi.domain.dtos.doctor","l":"DoctorUpdatedDataDTO"},{"p":"com.mirna.hospitalmanagementapi.infra.handlers","l":"EntityNotFoundErrorHandler"},{"p":"com.mirna.hospitalmanagementapi.application.usecase.doctor","l":"FindDoctorByIdUseCase"},{"p":"com.mirna.hospitalmanagementapi.application.usecase.doctor","l":"FindDoctorsUseCase"},{"p":"com.mirna.hospitalmanagementapi.application.usecase.patient","l":"FindPatientByIdUseCase"},{"p":"com.mirna.hospitalmanagementapi","l":"HospitalManagementApiApplication"},{"p":"com.mirna.hospitalmanagementapi.domain.entities","l":"Patient"},{"p":"com.mirna.hospitalmanagementapi.application.controllers","l":"PatientController"},{"p":"com.mirna.hospitalmanagementapi.domain.dtos.patient","l":"PatientDTO"},{"p":"com.mirna.hospitalmanagementapi.domain.repositories","l":"PatientRepository"},{"p":"com.mirna.hospitalmanagementapi.domain.services","l":"PatientService"},{"p":"com.mirna.hospitalmanagementapi.application.services","l":"PatientServiceImpl"},{"p":"com.mirna.hospitalmanagementapi.application.usecase.doctor","l":"SaveDoctorUseCase"},{"p":"com.mirna.hospitalmanagementapi.application.usecase.patient","l":"SavePatientUseCase"},{"p":"com.mirna.hospitalmanagementapi.domain.enums","l":"Specialty"},{"p":"com.mirna.hospitalmanagementapi.infra.handlers.validation","l":"ValidationErrorHandler"}];updateSearchResults();
\ No newline at end of file