Skip to content

Commit

Permalink
Merge pull request #339 from cidgoh/monkeypox-v2.1.1
Browse files Browse the repository at this point in the history
WIP Monkeypox v2.1.1
  • Loading branch information
ddooley authored Jul 21, 2022
2 parents 1826760 + b4c04ce commit e2a0a49
Show file tree
Hide file tree
Showing 10 changed files with 8,220 additions and 1,600 deletions.
2 changes: 1 addition & 1 deletion script/data-harmonizer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*
*/

const VERSION = '1.3.2';
const VERSION = '1.3.3';

const VERSION_TEXT = 'DataHarmonizer provenance: v' + VERSION;

Expand Down
6 changes: 6 additions & 0 deletions script/data-harmonizer/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ Object.assign(DataHarmonizer, {
// Default: any token is valid.
valid = true;
break;

case 'Provenance':
// Any provenance string is valid.
valid = true;
break;

} // End switch


Expand Down
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion template/monkeypox/exampleInput/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Monkeypox Example Input Data
This directory contains example input/test data for the Canadian Network for Public Health Intelligence (CNPHI) DataHarmonizer application template: `Monkeypox`. This data is appropriate for testing up to the version appended to the end of the file name, for example:

- `DH_Canadian_MPX_validTestDataset_1-1-0_Jul13_2022.xlsx` is _valid_ for version `1-3-2` of the DataHarmonizer.
- `DH_Canadian_MPX_validTestDataset_2-1-1_July202022.xlsx` is _valid_ for version `1-3-3` of the DataHarmonizer.

## Valid Test Data

Expand Down
38 changes: 19 additions & 19 deletions template/monkeypox/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ var EXPORT_FORMATS = {
['TEXT_ID', []],
//['HC_TEXT5', []],
//['PH_ID_NUMBER_PRIMARY', []],
//['PH_CASE_ID', []],
['PH_CASE_ID', []],
['PH_RELATED_PRIMARY_ID', []],

['CUSTOMER', []],
Expand Down Expand Up @@ -279,28 +279,28 @@ var EXPORT_FORMATS = {
['PH_SPECIMEN_TYPE_ORIG', []],
['COLLECTION_METHOD', []],

//['PH_ANIMAL_TYPE', []],
//['PH_HOST_HEALTH', []],
//['PH_HOST_HEALTH_DETAILS', []],
//['PH_HOST_HEALTH_OUTCOME', []],
['PH_ANIMAL_TYPE', []],
['PH_HOST_HEALTH', []],
['PH_HOST_HEALTH_DETAILS', []],
['PH_HOST_HEALTH_OUTCOME', []],
['PH_HOST_DISEASE', []],
//['PH_AGE', []],
//['PH_AGE_UNIT', []],
//['PH_AGE_GROUP', []],
//['VD_SEX', []],
//['PH_HOST_COUNTRY', []],
//['PH_HOST_PROVINCE', []],
//['HC_ONSET_DATE', []],
//['HC_SYMPTOMS', []],
//['PH_VACCINATION_HISTORY', []],
//['VE_SYMP_AVAIL', []], // Calculated field (not in import)
//['PH_EXPOSURE_COUNTRY', []],
['PH_AGE', []],
['PH_AGE_UNIT', []],
['PH_AGE_GROUP', []],
['VD_SEX', []],
['PH_HOST_COUNTRY', []],
['PH_HOST_PROVINCE', []],
['HC_ONSET_DATE', []],
['HC_SYMPTOMS', []],
['PH_VACCINATION_HISTORY', []],
['VE_SYMP_AVAIL', []], // Calculated field (not in import)
['PH_EXPOSURE_COUNTRY', []],
['PH_TRAVEL', []],
//['PH_POINT_OF_ENTRY', []],
//['PH_DAY', []],
//['PH_EXPOSURE', []],
//['PH_EXPOSURE_DETAILS', []],
//['PH_HOST_ROLE', []],
['PH_EXPOSURE', []],
['PH_EXPOSURE_DETAILS', []],
['PH_HOST_ROLE', []],
['PH_REASON_FOR_SEQUENCING',[]],

['PH_REASON_FOR_SEQUENCING_DETAILS', []],
Expand Down
Loading

0 comments on commit e2a0a49

Please sign in to comment.