public async Task <ActionResult> newHistoriaClinica([FromBody] CrearHistoriaClinicaDTO model)
        {
            using (var transaction = context.Database.BeginTransaction())
            {
                logger.LogInformation("BeginTransaction  Crear Historia Clinica by user => {0}", getUser());
                try
                {
                    await fundabiem.newHistoriaClinica(model);

                    transaction.Commit();
                    logger.LogInformation("Commit transaction Crear Historia Clinica");
                    return(Ok());
                }
                catch (Exception ex)
                {
                    logger.LogInformation("RollBack transaction Crear Historia Clinica");
                    logger.LogError(ex.ToString());
                    return(BadRequest());
                }
            }
        }