Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
inventario
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jose Luis Gordillo Ruiz
inventario
Commits
f0ba3e47
Commit
f0ba3e47
authored
Jun 05, 2025
by
Jose Luis Gordillo Ruiz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nueva versión de la gráfica de cobertura de pruebas
falta afinarla pero ya funciona.
parent
966b39a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
1 deletions
+51
-1
dinamyc.py
+51
-1
No files found.
dinamyc.py
View file @
f0ba3e47
...
@@ -249,7 +249,30 @@ app.layout = html.Div(children=[
...
@@ -249,7 +249,30 @@ app.layout = html.Div(children=[
),
),
dcc
.
Graph
(
id
=
"multi-visitas"
),
dcc
.
Graph
(
id
=
"multi-visitas"
),
],
className
=
"wrapper"
,),
],
className
=
"wrapper"
,),
# cobertura de pacientes por prueba
# cobertura de pacientes por prueba. working.
html
.
Div
(
children
=
[
html
.
H1
(
"Cobertura de pacientes por protocolo."
,
className
=
"header-title2"
),
# selector de etapa
html
.
Div
(
children
=
[
html
.
Div
(
children
=
"Etapa"
,
className
=
"menu-title"
),
dcc
.
Dropdown
(
id
=
"select_vis_protocolo"
,
options
=
[
{
"label"
:
1
,
"value"
:
1
},
{
"label"
:
2
,
"value"
:
2
},
{
"label"
:
3
,
"value"
:
3
},
{
"label"
:
4
,
"value"
:
4
}
],
value
=
1
,
clearable
=
False
,
searchable
=
False
,
className
=
"dropdown"
,
),
],
className
=
"wrapper"
),
#y gráfica
dcc
.
Graph
(
id
=
"cobertura_protocolo"
),
],
className
=
"wrapper"
),
# cobertura de pacientes por prueba. legajo.
html
.
Div
(
children
=
[
html
.
Div
(
children
=
[
html
.
H1
(
"Cobertura de pacientes por prueba"
,
className
=
"header-title2"
),
html
.
H1
(
"Cobertura de pacientes por prueba"
,
className
=
"header-title2"
),
# selector de etapa
# selector de etapa
...
@@ -390,6 +413,33 @@ def update_datos_por_paciente(etapa, fuente):
...
@@ -390,6 +413,33 @@ def update_datos_por_paciente(etapa, fuente):
return
figura
return
figura
@app.callback
(
Output
(
"cobertura_protocolo"
,
"figure"
),
Input
(
"select_vis_protocolo"
,
"value"
)
)
def
update_por_protocol
(
visita
):
df1
=
visitas_datos
[
visita
-
1
]
protocolos
=
{
"pyhsiological"
:
[
"pass"
,
"pad"
,
"ipaq"
,
"stress"
,
"hadsa"
,
"hadsd"
],
"tolerance_curves"
:
[
"Pan"
,
"Gelatina"
,
"Glucosa"
],
"corporal_composition"
:
[
"mmkg"
,
"mmekg"
,
"mgkg"
,
"mlgkg"
,
"percent_mg"
,
"gv"
],
"biochemical"
:[
"hba1c"
,
"glucose"
,
"ct"
,
"tag"
,
"ldl"
,
"hdl"
,
"pcr"
,
"alt"
,
"ast"
,
"homa"
,
"insuline"
],
"antropometric"
:
[
"imc"
,
"weight"
,
"waist_circunference"
]
}
cuentas
=
100
*
df1
.
replace
(
""
,
np
.
nan
)
.
count
()
/
len
(
df1
)
figura
=
{
"data"
:
[
{
"x"
:
cuentas
.
index
,
"y"
:
cuentas
,
"type"
:
"bar"
,
}
],
}
return
figura
@app.callback
(
@app.callback
(
Output
(
"multi-visitas"
,
"figure"
),
Output
(
"multi-visitas"
,
"figure"
),
Output
(
"detalle_pruebas"
,
"figure"
),
Output
(
"detalle_pruebas"
,
"figure"
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment