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

User-Configured Dynamic Initialization of Annotation Tool #286

Open
jarmoza opened this issue Dec 20, 2022 · 2 comments
Open

User-Configured Dynamic Initialization of Annotation Tool #286

jarmoza opened this issue Dec 20, 2022 · 2 comments
Labels
data store someday Not a priority right now, but we want to keep this around to think or discuss more.

Comments

@jarmoza
Copy link
Contributor

jarmoza commented Dec 20, 2022

Up until this point we have initialized a few store fields in the nuxtServerInit function as this appeared to be the most logical place to put them, particularly with our usage of Nuxt (where other startup functions are not as publicly available).

As of the latest refactor of the store, we are moving to put these hardcoded initial values directly in the state object definition.

However, in the near future we would like to return to programmatically initializing some of these fields (i.e. annotationDetails) with the introduction of editable config files for the annotation tool.

Below is some pseudocode as to how and where this would work.

nuxtServerInit({ commit }) {

    // 1. Load up app configuration values from a config file
    commit("loadAppSettings");

    // App config file contents
    /*
        {
            categories: [

                "Subject ID",
                "Age",
                "Sex",
                "Diagnosis",
                "Assessment Tool"
            ],
            annotationDetails: [

                {
                    id: 0,
                    category: "Age",
                    dataType: "continuous",
                    explanation: "This is an explanation for how to annotate age.",
                    options: {},
                    specializedComponent: "annot-age-values"
                },
                {
                    id: 1,
                    category: "Sex",
                    dataType: "categorical",
                    explanation: "This is an explanation for how to annotate sex.",
                    options: ["male", "female", "other"],
                    specializedComponent: "annot-discrete-choices"
                },
                {
                    id: 2,
                    category: "Diagnosis",
                    dataType: "string",
                    explanation: "This is an explanation for how to annotate diagnosis.",
                    options: {},
                    specializedComponent: "annot-vocabulary"
               }
            ]
         };

        // 2. Set up the rest of the app

        // A. Set the current page as the landing page
        commit("setCurrentPage", "home");
    */
}
@github-actions
Copy link

We want to keep our issues up to date and active. This issue hasn't seen any activity in the last 30 days.
We have applied the stale-issue label to indicate that this issue should be reviewed again and then either prioritized or closed.

@github-actions github-actions bot added the _flag:stale [BOT ONLY] Flag issue that hasn't been updated in a while and needs to be triaged again label Feb 10, 2023
@github-actions
Copy link

We want to keep our issues up to date and active. This issue hasn't seen any activity in the last 30 days.
We have applied the stale-issue label to indicate that this issue should be reviewed again and then either prioritized or closed.

@surchs surchs added someday Not a priority right now, but we want to keep this around to think or discuss more. and removed _flag:stale [BOT ONLY] Flag issue that hasn't been updated in a while and needs to be triaged again labels Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data store someday Not a priority right now, but we want to keep this around to think or discuss more.
Projects
Status: No status
Development

No branches or pull requests

2 participants