-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
115 lines (98 loc) · 4.47 KB
/
ui.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
library(shiny)
library(shinyjs)
shinyUI(fluidPage(theme = "bootstr.css",
navbarPage("",
tabPanel("Sprawdź zalecenia",
titlePanel("Kontrola podawanych leków"),
fluidRow(column(4, wellPanel(
h3("Pacjent"),
hr(),
textInput('fname',
label = 'Imię'
),
textInput('sname',
label = 'Nazwisko'
),
textInput('id',
label = "PESEL"
),
fluidRow(column(4, offset = 5,(
actionButton('sub',
label = 'Wyszukaj',
icon = icon("search")
)
)))
)),
column(8,
fluidRow(column(4,
h4(format(Sys.time(), "%d-%b-%Y %H:%M"))
),
column(6, offset = 2,
uiOutput("color"), uiOutput("image")
),
fluidRow(column(6, offset = 1,
h3("Dane pacjenta"),
tableOutput("retable"),
useShinyjs(),
uiOutput("checks")))
))
)
),
tabPanel("Dodaj receptę",
titlePanel("Dodawanie nowego leku"),
fluidRow(column(4, wellPanel(
h3("Pacjent"),
hr(),
textInput('infname',
label = 'Imię'
),
textInput('insname',
label = 'Nazwisko'
),
textInput('inid',
label = "PESEL"
),
textInput('ingodzina',
label = "Godzina podania"
),
textInput('inlek',
label = "Nazwa leku"
),
textInput('indawka',
label = "Dawka i jednostka"
),
fluidRow(column(4, offset = 5,(
actionButton('drugsub',
label = 'Dodaj',
icon = icon("fa fa-check-square-o")
)
)))
)),
column(6, tags$span(style="color:green", h2(textOutput("dodano"))))
)),
tabPanel("Usuń receptę",
titlePanel("Usuwanie przepisanego leku"),
fluidRow(column(4, wellPanel(
h3("Pacjent"),
hr(),
textInput('inidrm',
label = "PESEL"
),
textInput('inlekrm',
label = "Nazwa leku"
),
textInput('ingodzinarm',
label = "Godzina podania",
value = ""
),
fluidRow(column(4, offset = 5,(
actionButton('drugsubrm',
label = 'Usuń',
icon = icon("fa fa-minus-square-o")
)
)))
)),
column(6, tags$span(style="color:red", h2(textOutput("usunieto"))))
)
)
)))