Preguntas y respuestas funcionando para médicos

This commit is contained in:
Roberto Orden Erena
2019-12-24 18:36:41 +01:00
parent 000e2a8721
commit a35d7fe7fe
23 changed files with 647 additions and 163 deletions

View File

@@ -27,6 +27,8 @@ public class QuestionTO implements Serializable {
public QuestionTO() {
super();
this.patient = new PatientTO();
this.fdoctor = new FamilyDoctorTO();
}
public QuestionTO(int id, String title, String message, QuestionStatus status, PatientTO patient,
@@ -96,5 +98,21 @@ public class QuestionTO implements Serializable {
public void setResponse(String response) {
this.response = response;
}
public String toString() {
return "{"
+ "ObjectID" + super.toString()
+ ",id" + this.getId()
+ ",title" + this.getTitle()
+ ",message" + this.getMessage()
+ ",response" + this.getResponse()
+ ",status" + this.getStatus()
+ ",patient-id" + this.getPatient().getId()
+ ",patient-name-surname" + this.getPatient().getName() + " " + this.getPatient().getSurname()
+ ",fdoctor-id" + this.getDoctor().getId()
+ ",fdoctor-name-surname" + this.getDoctor().getName() + " " + this.getDoctor().getSurname()
+ "}";
}
}