Skip to content

Commit 235d66b

Browse files
committed
Update comment
1 parent 0176990 commit 235d66b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/patientUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function maskPatientData(bundle, mask) {
122122
'Patient.extension.where(url=\'http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex\')',
123123
);
124124
// fhirpath.evaluate will return [] if there is no extension with the given URL
125-
// so checking if the result is [] checks if the field exists to be masked
125+
// so checking if the result is an array with anything in it checks if the field exists to be masked
126126
if (birthsex.length > 0) {
127127
delete birthsex[0].valueCode;
128128
birthsex[0]._valueCode = masked;

0 commit comments

Comments
 (0)