Corregido error: Se utilizaba la secuencia equivocada para genear los
código CIP de pacientes.
This commit is contained in:
1 parent
5a3ed35c16
commit
f55ebe3bb9
1 file changed
+1
-1
@@ -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