Corregido error: Se utilizaba la secuencia equivocada para genear los
código CIP de pacientes.
This commit is contained in:
@@ -41,7 +41,7 @@ public class ProfileFacadeBean implements ProfileFacadeRemote {
|
||||
}
|
||||
|
||||
private String getNextPersonalIdentificationCode() {
|
||||
Query q = entman.createNativeQuery("select nextval('myhealth.profesionalnumber')");
|
||||
Query q = entman.createNativeQuery("select nextval('myhealth.codigoidentificacionpaciente')");
|
||||
return Constants.PERSONAL_IDENTIFICATION_CODE_PREFIX.concat(String.valueOf(q.getSingleResult()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user