Skip to contents

Shiny module. Used to create a new query and add it to the database. This module can be activated by pressing an action button, which is currently located in the applications' main sidebar (mod_main_sidebar_server()).

Usage

mod_query_add_server(id, r, active_form, db_path, available_data)

Arguments

id

Character string, used to connect the module UI with the module Server.

r

Common reactivevalues. Used to access the active subject_id and the current reviewer's name user_name.

active_form

A reactive value, containing the active form.

db_path

Character string with the path to the database.

available_data

A data frame containing all available data, usually created with the function get_available_data().

Details

Upon activation of this module, a window will be shown with a fixed sidebar and a field with the main content. The main content contains a field in which a query can be written, contains a Save and Cancel button, and shows the name of the reviewer who is currently logged in. In the sidebar, information is given about the currently active patient and form. In addition, drop-down menus are shown to narrow down to which data the query is concerning. In these menus, the applicable visit, and (optional) the applicable item within the form can be selected.