We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0176990 commit 235d66bCopy full SHA for 235d66b
src/helpers/patientUtils.js
@@ -122,7 +122,7 @@ function maskPatientData(bundle, mask) {
122
'Patient.extension.where(url=\'http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex\')',
123
);
124
// 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
+ // so checking if the result is an array with anything in it checks if the field exists to be masked
126
if (birthsex.length > 0) {
127
delete birthsex[0].valueCode;
128
birthsex[0]._valueCode = masked;
0 commit comments