-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpatientVoices.R
62 lines (45 loc) · 1.71 KB
/
patientVoices.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
output$patientVoicesOutput <- renderMenu({
fluidRow(
column(width = 6, plotOutput("patientVoicesTrend")),
column(width = 6,
valueBoxOutput("patientVoicesSQ"),
valueBoxOutput("patientVoicesFFT"),
valueBoxOutput("patientVoicesPositive"),
valueBoxOutput("patientVoicesNoImpComments"),
valueBoxOutput("patientVoicesNoBestComments")
)
)
})
output$patientVoicesTrend <- renderPlot({
trend_function(passData()[["trendData"]], type = "patient_voices")
})
output$patientVoicesSQ <- renderValueBox({
valueBox(value = paste0(dataSummary()[["SQ"]], "%"),
subtitle = HTML(paste0("Service quality<br>(", dataSummary()[["NSQ"]], " responses)")),
icon = icon("thumbs-up"))
})
output$patientVoicesFFT <- renderValueBox({
valueBox(value = paste0(dataSummary()[["FFT"]], "%"),
subtitle = HTML(paste0("Would you recommend?<br>(", dataSummary()[["NFFT"]], " responses)")),
icon = icon("smile"))
})
output$patientPositive <- renderValueBox({
valueBox(value = "to",
subtitle = "complete",
icon = icon("book-open"))
# valueBox(value = paste0(dataSummary()[["FFT"]], "%"),
# subtitle = HTML(paste0("Would you recommend?<br>(", dataSummary()[["NFFT"]], " responses)")),
# icon = icon("smile"))
})
output$patientVoicesNoImpComments <- renderValueBox({
valueBox(value = dataSummary()[["IC"]],
subtitle = "Number of IOT comments",
icon = icon("book-open")
)
})
output$patientVoicesNoBestComments <- renderValueBox({
valueBox(value = dataSummary()[["BC"]],
subtitle = "Number of Best comments"
# icon = icon("smile")
)
})