-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #188 from uc-cdis/chore/update-vlmd-validation
Chore/update vlmd validation
- Loading branch information
Showing
20 changed files
with
921 additions
and
688 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
vlmd-submission-tools/tests/templates/template_submission_bad_format.csv
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
vlmd-submission-tools/tests/templates/template_submission_invalid.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name,description,type | ||
participant_id,Unique identifier for participant,character | ||
race,Self-reported race,integer | ||
,,integer | ||
hispanic,"Are you of Hispanic, Latino, or Spanish origin?",boolean | ||
sex_at_birth,The self-reported sex of the participant/subject at birth, | ||
SU4,During the past 30 days how many days did you use heroin (alone or mixed with other drugs)? ] [Write 0 days if no use],integer | ||
pulse_rate,Heart rate measured at systemic artery,number |
16 changes: 16 additions & 0 deletions
16
vlmd-submission-tools/tests/templates/template_submission_invalid.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"title": "Example VLMD", | ||
"description": "This is an example", | ||
"fields": [ | ||
{ | ||
"name": "participant_id", | ||
"description": "Unique identifier for participant", | ||
"type": "character" | ||
}, | ||
{ | ||
"name": "race", | ||
"description": "Self-reported race", | ||
"type": "integer" | ||
} | ||
] | ||
} |
7 changes: 7 additions & 0 deletions
7
vlmd-submission-tools/tests/templates/template_submission_invalid.tsv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name title description type | ||
participant_id Participant Id Unique identifier for participant character | ||
race Race Self-reported race integer | ||
age Age What is your age? (age at enrollment) integer | ||
hispanic "Hispanic Latino or Spanish Origin" "Are you of Hispanic Latino or Spanish origin?" boolean | ||
sex_at_birth Sex at Birth The self-reported sex of the participant/subject at birth string | ||
SU4 Heroin Days Used During the past 30 days how many days did you use heroin (alone or mixed with other drugs)? ] [Write 0 days if no use] integer |
3 changes: 3 additions & 0 deletions
3
vlmd-submission-tools/tests/templates/template_submission_small.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module,name,title,description,type,format, | ||
,participant_id,Participant Id,Unique identifier for participant,string,, | ||
,race,Race,Self-reported race,integer,, |
18 changes: 18 additions & 0 deletions
18
vlmd-submission-tools/tests/templates/template_submission_small.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"title": "Example VLMD", | ||
"description": "This is an example", | ||
"fields": [ | ||
{ | ||
"name": "participant_id", | ||
"title": "Participant Id", | ||
"description": "Unique identifier for participant", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "race", | ||
"title": "Race", | ||
"description": "Self-reported race", | ||
"type": "integer" | ||
} | ||
] | ||
} |
3 changes: 3 additions & 0 deletions
3
vlmd-submission-tools/tests/templates/template_submission_small.tsv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name title description type | ||
participant_id Participant Id Unique identifier for participant string | ||
race Race Self-reported race integer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.