File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ class CSVPatientExtractor extends BaseCSVExtractor {
108
108
const bundle = generateMcodeResources ( 'Patient' , packagedPatientData ) ;
109
109
110
110
// mask specified fields in the patient data
111
- if ( typeof this . mask === 'string' ) {
111
+ if ( typeof this . mask === 'string' && this . mask === 'all' ) {
112
112
maskPatientData ( bundle , ALL_SUPPORTED_MASK_FIELDS ) ;
113
113
} else if ( this . mask . length > 0 ) maskPatientData ( bundle , this . mask ) ;
114
114
return bundle ;
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ class FHIRPatientExtractor extends BaseFHIRExtractor {
38
38
async get ( argumentObject ) {
39
39
const bundle = await super . get ( argumentObject ) ;
40
40
// mask specified fields in the patient data
41
- if ( typeof this . mask === 'string' ) {
41
+ if ( typeof this . mask === 'string' && this . mask === 'all' ) {
42
42
maskPatientData ( bundle , ALL_SUPPORTED_MASK_FIELDS ) ;
43
43
} else if ( this . mask . length > 0 ) maskPatientData ( bundle , this . mask ) ;
44
44
return bundle ;
You can’t perform that action at this time.
0 commit comments