Skip to content

Commit

Permalink
Added to the JSON output file
Browse files Browse the repository at this point in the history
  • Loading branch information
rmanaem committed Oct 25, 2023
1 parent c5990af commit 02e91f8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,19 @@ export const getters = {

columnOutput = p_getters.getContinuousJsonOutput(columnName);
break;

default:
columnOutput = {
"Description": "A participant ID",
Annotations: {

IsAbout: {
Label: "Subject Unique Identifier",
TermURL: "nb:ParticipantID"
},
Identifies: "participant"
}
};
}

}
Expand Down Expand Up @@ -722,6 +735,12 @@ export const mutations = {
// NOTE: The latter are initialized here to eliminate checks for their
// nullness in other store functions
switch ( p_state.columnToCategoryMap[columnName] ) {
case "Subject ID":
p_state.dataDictionary.annotated[columnName] = Object.assign(
{},
p_state.dataDictionary.userProvided[columnName]
);
break;

case "Age":

Expand Down

0 comments on commit 02e91f8

Please sign in to comment.