Beispiel #1
0
        public IHttpActionResult buscarDiagnosticos(int idPaciente)
        {
            DiagnosticoService serv = new DiagnosticoService();
            var lista = serv.buscarDiagnosticos(idPaciente);

            return(Ok(lista));
        }
Beispiel #2
0
        public IHttpActionResult grabarDiagnostico(DiagnosticoDTO param)
        {
            DiagnosticoService serv = new DiagnosticoService();
            string             s    = serv.grabarDiagnostico(param.idCita, param.detDiagnostico, param.idDiagnostico, param.nroSesiones, param.vecesXsemana, param.fechaInicio);

            return(Ok());
        }
Beispiel #3
0
        public IHttpActionResult obtenerDiagnostico(int idDiagnostico)
        {
            DiagnosticoService serv = new DiagnosticoService();
            var lista = serv.obtenerDiagnostico(idDiagnostico);

            return(Ok(lista));
        }
Beispiel #4
0
        public IHttpActionResult obtenerUltimoDiagnostico(int idPaciente)
        {
            DiagnosticoService serv = new DiagnosticoService();
            var lista = serv.obtenerUltimoDiagnostico(idPaciente);

            return(Ok(lista));
        }
Beispiel #5
0
        public IHttpActionResult grabarAlta(DiagnosticoDTO param)
        {
            DiagnosticoService serv = new DiagnosticoService();

            serv.grabarAlta(param.idDiagnostico, param.cRecomendaciones);
            return(Ok());
        }
Beispiel #6
0
        public IHttpActionResult grabarAmpliacionPlanTratamiento(PlanTratamientoDTO param)
        {
            DiagnosticoService serv = new DiagnosticoService();

            serv.grabarAmpliacionTratamiento(param.idPlanTratamiento, param.nroSesiones);
            return(Ok());
        }
Beispiel #7
0
        public IHttpActionResult obtenerConsolidadoPlanTratamiento(int idDiagnostico)
        {
            DiagnosticoService serv = new DiagnosticoService();
            var lista = serv.obtenerConsolidadoPlanTratamiento(idDiagnostico);

            return(Ok(lista));
        }
Beispiel #8
0
 public FormDiagnostico()
 {
     InitializeComponent();
     persona            = new Persona();
     PersonaService     = new PersonaServiceBD(ConfigConnection.connectionString);
     diagnosticoService = new DiagnosticoService(ConfigConnection.connectionString);
     generar            = new Generar();
 }
Beispiel #9
0
 public FormRecetario()
 {
     InitializeComponent();
     generar            = new Generar();
     diagnosticoService = new DiagnosticoService(ConfigConnection.connectionString);
     medicamentoService = new MedicamentoService(ConfigConnection.connectionString);
     posologiaService   = new PosologiaService(ConfigConnection.connectionString);
     persona            = new Persona();
     PersonaService     = new PersonaServiceBD(ConfigConnection.connectionString);
     recetarioService   = new RecetarioService(ConfigConnection.connectionString);
 }
        public void DiagnosticoNetworkAmigdalitis()
        {
            var service = new DiagnosticoService();
            var request = new DiagnosticoRequest()
            {
                NombreDelArchivo = "AmigdalitisWeights",
                InputsValues     = new double[]
                { 1, 1, 1, 1, 1, 1, 1, 1, 1 }
            };
            var response = service.Ejecute(request);

            Assert.AreEqual(response.Diagnostico, "Positivo");
        }
Beispiel #11
0
 public DiagnosticoController(DiagnosticoService diagService, IMapper mapper)
 {
     this.diagService = diagService;
     this.mapper      = mapper;
 }