Skip to content
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

brapi v2 trait "notes" missing from headerRow #5286

Closed
fg-sempre opened this issue Jan 28, 2025 · 1 comment
Closed

brapi v2 trait "notes" missing from headerRow #5286

fg-sempre opened this issue Jan 28, 2025 · 1 comment
Assignees
Labels
Priority: Critical Issue/PR requires immediate resolution. Type: Bug Issue describes a bug.

Comments

@fg-sempre
Copy link

when calling

observations/table?studyDbId={studyDbId}

the trait "notes" is missing from result: "headerRow" and "observationVariables"

@lukasmueller lukasmueller added Priority: Critical Issue/PR requires immediate resolution. Type: Bug Issue describes a bug. labels Jan 30, 2025
@chris263
Copy link
Contributor

chris263 commented Feb 3, 2025

@fg-sempre
This issue is regarding QMBS in R. It can be solved in R with the functions ahead.

list_trials()
set_trial("SuBR_23_Trials_TC1")
studies <- list_studies()
studies
set_study(studies$studyName[1]) # selection the first study

info <- get_study_info()

Function tho extract header:

study_header <- as.data.frame(lapply(info, function(x) {
if (is.list(x)) {
if (length(x) == 0) return(NA_character_)
x <- unlist(x, recursive = FALSE, use.names = FALSE)
if (length(x) == 0) return(NA_character_)
return(x[1])
} else {
return(x)
}
}), stringsAsFactors = FALSE, row.names = NULL)

Checking header

print(study_header)

Please, let me know if it is ok for you.

Cheers,

@chris263 chris263 closed this as completed Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Critical Issue/PR requires immediate resolution. Type: Bug Issue describes a bug.
Projects
None yet
Development

No branches or pull requests

3 participants