-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Study data
tab: Allow continuous & categorical data to live in harmony
#117
Comments
Study data
Study data
tab: Allow continuous & categorical data to live in harmony
It is intentional behavior that only the table is shown and not the figures with mixed data. If not done so, a monitor might review all data on a form with mixed data while never seeing the categorical data, which I think is a safety risk that should be avoided. Although not ideal, you can always make two tabs for urinalysis, one with categorical and one with continuous data. Another way to avoid this is to ensure that 1) the user is made aware that there is more data in the table, and 2) the form cannot be reviewed unless the table is viewed as well. However, I think the best non-temporary way to address this is to show different figures based on data type (continuous, categorical, dichotomous). There are already several figure functions in this package for doing so. But, in order to show mixed data, we need to stray away from |
Understood. I understand the reason behind that design decision. We do have another use case to consider (besides the Urinanlysis use case) for the redesign... in our vital signs data, we have some measurements gathered at different timepoints... for example: measuring blood pressure after lying down, standing, and standing for 5 mins (etc). Because of that, are converting that column to an This is really a separate issue, so I moved it to here: #121 |
So, we have some urinalysis labs that have both categorical & continuous data in the form. Specifically:
Continuous
Categorical
If the code is left AS-IS
if all item_groups == "continuous", the plots generate as expected for the continuous variables, but all the categorical variables generate a bunch of empty plots (see below). On the table side of things, a the categorical variables have a ton of NA's (see below).
Now, if I change to
item_type = 'other'
for all the categorical variables, the table looks excellent but none of the plot generate, because of this line of code that requires allitem_type
s be 'continuous':clinsight/R/fct_appdata.R
Line 251 in a4d88ba
Proposal
Amend the code so that only 'continuous' variables be processed for plotting and 'other' (categorical) vars be untouched for display in the table.
The text was updated successfully, but these errors were encountered: