Skip to content

Commit 85f2293

Browse files
authored
Merge pull request #347 from cidgoh/monkeypox-3.3.1
Monkeypox 3.3.1
2 parents 1abf545 + 4404909 commit 85f2293

File tree

8 files changed

+586
-412
lines changed

8 files changed

+586
-412
lines changed

lib/DataHarmonizer.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1528,12 +1528,14 @@ class DataHarmonizer {
15281528
* @param {String} prefix of export format to access in .exportField dictionary.
15291529
*/
15301530
getTransformedField(headerName, value, field, prefix) {
1531+
const self = this;
15311532
if (field.sources) {
15321533
// iterate thru and will return the first match found in field.sources
15331534
for (const source_index in field.sources) {
15341535
const term =
1535-
DataHarmonizer.schema.enums[field.sources[source_index]]
1536-
.permissible_values[value];
1536+
self.schema.enums[field.sources[source_index]].permissible_values[
1537+
value
1538+
];
15371539
// Looking for term.exportField['GRDI'] for example:
15381540
if (term && term.exportField && prefix in term.exportField) {
15391541
// Here mapping involves a value substitution

web/templates/menu.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@
4646
"display": true
4747
}
4848
}
49-
}
49+
}

web/templates/monkeypox/export.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export default {
263263

264264
['PH_SEQUENCING_CENTRE', []],
265265

266-
['PH_SEQUENCING_SUBMITTER', []],
266+
['PH_SEQUENCE_SUBMITTER', []],
267267

268268
['HC_COLLECT_DATE', []],
269269
['HC_TEXT2', []],

0 commit comments

Comments
 (0)