Diseño de pruebas
Ejecución de pruebas Correcciones menores encontradas durante las pruebas
This commit is contained in:
@@ -174,11 +174,11 @@
|
|||||||
<p:message for="selUsertype" />
|
<p:message for="selUsertype" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui-g-4 ui-md-5" />
|
<div class="ui-g-4 ui-md-4" />
|
||||||
<div class="ui-g-4 ui-md-2">
|
<div class="ui-g-4 ui-md-4">
|
||||||
<p:commandButton value="Guardar" action="#{mt.save}" icon="pi pi-save" update="frmMT,frmImage,frmNEW" />
|
<p:commandButton value="Guardar" action="#{mt.save}" icon="pi pi-save" update="frmMT,frmImage,frmNEW" />
|
||||||
</div>
|
</div>
|
||||||
<div class="ui-g-4 ui-md-5" />
|
<div class="ui-g-4 ui-md-4" />
|
||||||
</div>
|
</div>
|
||||||
</p:panel>
|
</p:panel>
|
||||||
</h:form>
|
</h:form>
|
||||||
|
|||||||
@@ -43,6 +43,6 @@ ul.ui-menu-list {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ui-orderlist .ui-orderlist-list {
|
.ui-orderlist .ui-orderlist-list {
|
||||||
height: 70vh !important;
|
height: 62vh !important;
|
||||||
width: 25vw !important;
|
width: 25vw !important;
|
||||||
}
|
}
|
||||||
@@ -286,17 +286,17 @@ public class MedicalTestFacadeBean implements MedicalTestFacadeRemote {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<MedicalTestTO> loadMedicalTestForFamilyDoctor(int familyDoctorID, Integer patientID) {
|
public List<MedicalTestTO> loadMedicalTestForFamilyDoctor(int familyDoctorID, int patientID) {
|
||||||
List<MedicalTestTO> medicalTests = new ArrayList<MedicalTestTO>();
|
List<MedicalTestTO> medicalTests = new ArrayList<MedicalTestTO>();
|
||||||
String extraQuery = "";
|
String extraQuery = "";
|
||||||
|
|
||||||
if (patientID != null) {
|
if (patientID >= 0) {
|
||||||
extraQuery = " and q.patient.id=:patientID";
|
extraQuery = " and q.patient.id=:patientID";
|
||||||
}
|
}
|
||||||
|
|
||||||
TypedQuery<MedicalTestJPA> query = entman
|
TypedQuery<MedicalTestJPA> query = entman
|
||||||
.createQuery("SELECT q from MedicalTestJPA q where q.patient.familyDoctor.id=:familyDoctorID " + extraQuery + " order by q.id desc", MedicalTestJPA.class);
|
.createQuery("SELECT q from MedicalTestJPA q where q.patient.familyDoctor.id=:familyDoctorID " + extraQuery + " order by q.id desc", MedicalTestJPA.class);
|
||||||
if (patientID != null) {
|
if (patientID >= 0) {
|
||||||
query.setParameter("patientID", patientID);
|
query.setParameter("patientID", patientID);
|
||||||
}
|
}
|
||||||
query.setParameter("familyDoctorID", familyDoctorID);
|
query.setParameter("familyDoctorID", familyDoctorID);
|
||||||
@@ -311,18 +311,18 @@ public class MedicalTestFacadeBean implements MedicalTestFacadeRemote {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<MedicalTestTO> loadMedicalTestForSpecialistDoctor(int specialistDoctorID, Integer patientID) {
|
public List<MedicalTestTO> loadMedicalTestForSpecialistDoctor(int specialistDoctorID, int patientID) {
|
||||||
List<MedicalTestTO> medicalTests = new ArrayList<MedicalTestTO>();
|
List<MedicalTestTO> medicalTests = new ArrayList<MedicalTestTO>();
|
||||||
String extraQuery = "";
|
String extraQuery = "";
|
||||||
|
|
||||||
if (patientID != null) {
|
if (patientID >= 0) {
|
||||||
extraQuery = " and q.patient.id=:patientID";
|
extraQuery = " and q.patient.id=:patientID";
|
||||||
}
|
}
|
||||||
|
|
||||||
TypedQuery<MedicalTestJPA> query = entman
|
TypedQuery<MedicalTestJPA> query = entman
|
||||||
.createQuery("SELECT q from MedicalTestJPA q where q.specialistDoctor.id=:specialistDoctorID " + extraQuery + " order by q.id desc", MedicalTestJPA.class);
|
.createQuery("SELECT q from MedicalTestJPA q where q.specialistDoctor.id=:specialistDoctorID " + extraQuery + " order by q.id desc", MedicalTestJPA.class);
|
||||||
|
|
||||||
if (patientID != null) {
|
if (patientID >= 0) {
|
||||||
query.setParameter("patientID", patientID);
|
query.setParameter("patientID", patientID);
|
||||||
}
|
}
|
||||||
query.setParameter("specialistDoctorID", specialistDoctorID);
|
query.setParameter("specialistDoctorID", specialistDoctorID);
|
||||||
|
|||||||
@@ -27,7 +27,9 @@ public interface MedicalTestFacadeRemote {
|
|||||||
/**
|
/**
|
||||||
* Realizar una pregunta al médico por un paciente
|
* Realizar una pregunta al médico por un paciente
|
||||||
*
|
*
|
||||||
* @param professionalNumber
|
* @param userID Este parámetro en el enunciado era del doctor, se ha cambiado al del paciente ya que los EJB
|
||||||
|
* no tienen el contexto de la sesión y de esta forma se puede conseguir el médico al que se realiza la
|
||||||
|
* pregunta.
|
||||||
* @param title
|
* @param title
|
||||||
* @param message
|
* @param message
|
||||||
*/
|
*/
|
||||||
@@ -36,7 +38,8 @@ public interface MedicalTestFacadeRemote {
|
|||||||
/**
|
/**
|
||||||
* El médico responde a una pregunta
|
* El médico responde a una pregunta
|
||||||
*
|
*
|
||||||
* @param question
|
* @param questionId Se ha cambiado a questionID ya que es más directa la identificación de la pregunta
|
||||||
|
* a la que se va a responder
|
||||||
* @param response
|
* @param response
|
||||||
*/
|
*/
|
||||||
public void answerQuestion(int questionId, String response);
|
public void answerQuestion(int questionId, String response);
|
||||||
@@ -52,13 +55,16 @@ public interface MedicalTestFacadeRemote {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Recuperar las preguntas hechas por un paciente
|
* Recuperar las preguntas hechas por un paciente
|
||||||
|
*
|
||||||
|
* NEW
|
||||||
*/
|
*/
|
||||||
public List<QuestionTO> listAllMyQuestions(int userId);
|
public List<QuestionTO> listAllMyQuestions(int userId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Recuperar una pregunta por su String
|
* Recuperar una pregunta por su String
|
||||||
*
|
*
|
||||||
* @param question
|
* @param idQuestion Se ha cambiado al identificador de la pregunta, ya que es más directa
|
||||||
|
* su identificación.
|
||||||
*/
|
*/
|
||||||
public QuestionTO getQuestion(int idQuestion);
|
public QuestionTO getQuestion(int idQuestion);
|
||||||
|
|
||||||
@@ -71,9 +77,9 @@ public interface MedicalTestFacadeRemote {
|
|||||||
|
|
||||||
public List<MedicalTestTO> loadMedicalTestForSpecialistDoctor(int specialistDoctorID);
|
public List<MedicalTestTO> loadMedicalTestForSpecialistDoctor(int specialistDoctorID);
|
||||||
|
|
||||||
public List<MedicalTestTO> loadMedicalTestForFamilyDoctor(int familyDoctorID, Integer patientID);
|
public List<MedicalTestTO> loadMedicalTestForFamilyDoctor(int familyDoctorID, int patientID);
|
||||||
|
|
||||||
public List<MedicalTestTO> loadMedicalTestForSpecialistDoctor(int specialistDoctorID, Integer patientID);
|
public List<MedicalTestTO> loadMedicalTestForSpecialistDoctor(int specialistDoctorID, int patientID);
|
||||||
|
|
||||||
public List<PatientTO> loadPatientsForSpecialistDoctor(int specialistDoctorID, String searchTerm, int pageNumber, int pageSize);
|
public List<PatientTO> loadPatientsForSpecialistDoctor(int specialistDoctorID, String searchTerm, int pageNumber, int pageSize);
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ public class MedicalTestMBean extends ManagedBeanBase implements Serializable {
|
|||||||
public void init() {
|
public void init() {
|
||||||
this.userType = SessionUtils.getUserType();
|
this.userType = SessionUtils.getUserType();
|
||||||
this.userID = Integer.valueOf(SessionUtils.getUserId());
|
this.userID = Integer.valueOf(SessionUtils.getUserId());
|
||||||
|
|
||||||
this.medicalTestTypes = new ArrayList<MedicalTestType>();
|
this.medicalTestTypes = new ArrayList<MedicalTestType>();
|
||||||
this.medicalTestTypes.add(MedicalTestType.BLOOD_TEST);
|
this.medicalTestTypes.add(MedicalTestType.BLOOD_TEST);
|
||||||
this.medicalTestTypes.add(MedicalTestType.CT_SCAN);
|
this.medicalTestTypes.add(MedicalTestType.CT_SCAN);
|
||||||
@@ -128,7 +129,7 @@ public class MedicalTestMBean extends ManagedBeanBase implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void loadMedicalTests() {
|
public void loadMedicalTests() {
|
||||||
Integer patId = null;
|
Integer patId = -1;
|
||||||
if (this.patientFilterSelected != null)
|
if (this.patientFilterSelected != null)
|
||||||
patId = this.patientFilterSelected.getId();
|
patId = this.patientFilterSelected.getId();
|
||||||
|
|
||||||
|
|||||||
BIN
3.docs/Diseño de pruebas - Pruebas médicas.xlsx
Normal file
BIN
3.docs/Diseño de pruebas - Pruebas médicas.xlsx
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user