public void buscarPacienteFAT(string NroDocumento) { IFATService _fatService = new FATService(); this.paciente = new PacienteModel(); this.paciente = DTOToModel.pacienteModel(_fatService.getPacienteFAT(NroDocumento)); }
public void getTeleconsulta(int id) { IFATService _service = new FATService(); var telec = _service.getTeleconsulta(id); this.teleconsulta = new TeleconsultaModel(); this.teleconsulta = EntityToModel.teleconsultaModel(telec); }
public void getListaFATAdmGS(string fecInicio, string FecFin, string busqueda, string codespecialidad, int estado, string medico) { this.listaAtencion = new List <LstFATModel>(); IFATService _fatService = new FATService(); this.listaAtencion = DTOToModel.listaFATModel( _fatService.bandejaAdmisionFAT(fecInicio, FecFin, medico, codespecialidad, estado, busqueda)); }
public void getReporteFat(int id, string tipo) { this.archivo = new ArchivoModel(); IFATService _fat = new FATService(); this.rutaImagen = ConstantesCache.rutaImagen + "LogoClinicaJCI.png"; string rutaPlantilla = ConstantesCache.rutaArchivos + "FAT_PDF\\"; string rutaPlantillaHeader = string.Empty; string tipoR = (tipo == "R") ? "RM" : (tipo == "X") ? "RAD" : (tipo == "L") ? "LAB" : "FAT"; var fatdto = _fat.getFATReporte(id, tipoR); AtencionTmModel fat = DTOToModel.FatModel(fatdto); fat.dx = DTOToModel.listarDiagnostico(fatdto.diagnosticos); if (tipo == "R") { rutaPlantillaHeader = string.Concat(rutaPlantilla, "FatHeader_PDF.html"); rutaPlantilla += "FatRecetavirtual_PDF.html"; fat.medicinas = DTOToModel.listMedicinas(fatdto.medicinas); FAT_RecetaPDF rmodel = recetaReporte(fat); this.archivo.pdf = generarReporte(rutaPlantilla, rutaPlantillaHeader, rmodel, ""); } else if (tipo == "X") { rutaPlantillaHeader = string.Concat(rutaPlantilla, "FatHeader_PDF.html"); rutaPlantilla += "FatRadiologiaVirtual_PDF.html"; fat.radiologia = DTOToModel.listaServisioFAT(fatdto.radiologia); FAT_RadiologiaPDF rmodel = radReporte(fat); this.archivo.pdf = generarReporte(rutaPlantilla, rutaPlantillaHeader, rmodel, ""); } else if (tipo == "L") { rutaPlantillaHeader = string.Concat(rutaPlantilla, "FatHeader_PDF.html"); rutaPlantilla += "FatLaboratorioVirtual_PDF.html"; fat.laboratorio = DTOToModel.listaServisioFAT(fatdto.laboratorio); FAT_LaboratorioPDF rmodel = labReporte(fat); this.archivo.pdf = generarReporte(rutaPlantilla, rutaPlantillaHeader, rmodel, ""); } else { rutaPlantillaHeader = string.Concat(rutaPlantilla, "FatHeader_PDF.html"); rutaPlantilla += "FatAtencionVirtual_PDF.html"; fat.laboratorio = DTOToModel.listaServisioFAT(fatdto.laboratorio); fat.radiologia = DTOToModel.listaServisioFAT(fatdto.radiologia); fat.medicinas = DTOToModel.listMedicinas(fatdto.medicinas); FAT_AtencionPDF rmodel = fatReporte(fat); this.archivo.pdf = generarReporte(rutaPlantilla, rutaPlantillaHeader, rmodel, ""); } }
public async Task <int> guardaFAT(AtencionTmModel fat) { return(await Task.Run(() => { IFATService _fatService = new FATService(); var fatDTO = ModelDTO.faTDTO(fat); int i = _fatService.guardaFAT(fatDTO); TeleconsultaViewModel tele = new TeleconsultaViewModel(); tele.guardaDiagnostico(fat.dx, fat.idAtencion); tele.guardaMedicamentos(fat.medicinas, fat.idAtencion); tele.guardaServicio(fat.laboratorio, fat.idAtencion, "LAB"); tele.guardaServicio(fat.radiologia, fat.idAtencion, "RAD"); return i; })); }
public void listarTeleconsulta(string fecInicio, string fecfin, string cmp) { IFATService _service = new FATService(); var lista = _service.listaFAT(fecInicio, fecfin, cmp); this.teleconsultas = new List <TeleconsultaModel>(); this.teleconsultas = lista.Select(l => new TeleconsultaModel { Estado = l.Estado, IdAtencion = l.IdAtencion, NroDocumento = l.NroDocumento, Paciente = new PacienteModel { Nombres = l.Paciente }, Seguro = l.Seguro, HoraCita = l.HorCita, FechaCita = Convert.ToDateTime(l.FecCita).ToShortDateString() }).ToList(); }
public void getFAT(Guid id) { IFATService _fatService = new FATService(); this.atencionTM = new AtencionTmModel(); var videoConferencia = _fatService.getVideoConferencia(id); if (videoConferencia != null) { var fatdto = _fatService.getFAT(videoConferencia.AtencionId); this.atencionTM = DTOToModel.FatModel(fatdto); this.atencionTM.dx = DTOToModel.listarDiagnostico(fatdto.diagnosticos); this.atencionTM.radiologia = DTOToModel.listaServisioFAT(fatdto.radiologia); this.atencionTM.laboratorio = DTOToModel.listaServisioFAT(fatdto.laboratorio); this.atencionTM.medicinas = DTOToModel.listMedicinas(fatdto.medicinas); this.atencionTM.VideoConferencia = DTOToModel.ObtenerVideoConferenciaModelDesdeDTO(fatdto.VideoConferencia); } }