public void getPacientePSxApellidos(string apellidos) { IConsultaPlanSaludService wsplan = new ConsultaPlanSaludService(); this.pacientes = new List <PacienteModel>(); this.pacientes = DTOToModel.listPaciente(wsplan.getAfiliadoPorApellidos(apellidos)); }
public void buscarPacienteOIQ(string tipoDoc, string busqueda) { IPacienteService pacservice = new PacienteService(); this.pacientes = new List <PacienteModel>(); this.pacientes = DTOToModel.listPaciente (pacservice.getPacienteAll(busqueda, tipoDoc)); }
public void buscarPaciente(string hcd, string nombres, string apellido1, string apellido2) { IPacienteService pacservice = new PacienteService(); this.pacientes = new List <PacienteModel>(); string materno = apellido2 ?? ""; string nombre = nombres ?? ""; if (pacservice.getPaciente(hcd, nombre, apellido1, materno) == null) { mensajeError = "Hubo un problema, consute con el administrador"; } else { this.pacientes = DTOToModel.listPaciente(pacservice.getPaciente(hcd, nombre, apellido1, materno).ToList()); } }