[R6] Patient public data dto
This commit is contained in:
parent
03077db3a3
commit
d6b269f169
@ -0,0 +1,16 @@
|
||||
package com.mirna.hospitalmanagementapi.domain.dtos.patient;
|
||||
|
||||
import com.mirna.hospitalmanagementapi.domain.entities.Patient;
|
||||
|
||||
/**
|
||||
* Data transfer object used to format and display only the public data allowed for Patient entity
|
||||
*
|
||||
* @author Mirna Gama
|
||||
* @version 1.0
|
||||
*/
|
||||
public record PatientPublicDataDTO (String name, String email, String cpf){
|
||||
|
||||
public PatientPublicDataDTO(Patient patient){
|
||||
this(patient.getName(), patient.getEmail(), patient.getCpf());
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user