Skip to content

Commit 5d28fb7

Browse files
committed
change fallback default Retrieve.codeComparator to 'in'
1 parent 2d95980 commit 5d28fb7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

examples/browser/cql4browsers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4943,8 +4943,8 @@ class Retrieve extends expression_1.Expression {
49434943
return this.equal(recordCodeValue, codes);
49444944
default:
49454945
// if there's a terminology filter, there should always be a comparator,
4946-
// but just in case, default to ~
4947-
return this.equivalent(recordCodeValue, codes);
4946+
// but just in case, default to "in"
4947+
return this.in(recordCodeValue, codes);
49484948
}
49494949
}
49504950
in(lhs, rhs) {

src/elm/external.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ export class Retrieve extends Expression {
107107

108108
default:
109109
// if there's a terminology filter, there should always be a comparator,
110-
// but just in case, default to ~
111-
return this.equivalent(recordCodeValue, codes);
110+
// but just in case, default to "in"
111+
return this.in(recordCodeValue, codes);
112112
}
113113
}
114114

0 commit comments

Comments
 (0)