Skip to content

Commit 9e8b0b4

Browse files
committed
One more round of 'all' validation
1 parent 12b5283 commit 9e8b0b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/extractors/CSVPatientExtractor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class CSVPatientExtractor extends BaseCSVExtractor {
108108
const bundle = generateMcodeResources('Patient', packagedPatientData);
109109

110110
// mask specified fields in the patient data
111-
if (typeof this.mask === 'string') {
111+
if (typeof this.mask === 'string' && this.mask === 'all') {
112112
maskPatientData(bundle, ALL_SUPPORTED_MASK_FIELDS);
113113
} else if (this.mask.length > 0) maskPatientData(bundle, this.mask);
114114
return bundle;

src/extractors/FHIRPatientExtractor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class FHIRPatientExtractor extends BaseFHIRExtractor {
3838
async get(argumentObject) {
3939
const bundle = await super.get(argumentObject);
4040
// mask specified fields in the patient data
41-
if (typeof this.mask === 'string') {
41+
if (typeof this.mask === 'string' && this.mask === 'all') {
4242
maskPatientData(bundle, ALL_SUPPORTED_MASK_FIELDS);
4343
} else if (this.mask.length > 0) maskPatientData(bundle, this.mask);
4444
return bundle;

0 commit comments

Comments
 (0)