Skip to content

Commit

Permalink
Pass Message Listener to Included Libraries (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkarip authored Jan 17, 2025
1 parent 12a8ce0 commit 2cd244c
Show file tree
Hide file tree
Showing 9 changed files with 652 additions and 125 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ test/elm/external/Retrieve.js
test/elm/library/Common.js
test/elm/library/Common2.js
test/elm/library/data-with-namespace.js
test/elm/message/Included.js
4 changes: 2 additions & 2 deletions examples/browser/cql4browsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -8275,13 +8275,13 @@ class PatientContext extends Context {
}
getLibraryContext(library) {
if (this.library_context[library] == null) {
this.library_context[library] = new PatientContext(this.get(library), this.patient, this.codeService, this.parameters, this.executionDateTime);
this.library_context[library] = new PatientContext(this.get(library), this.patient, this.codeService, this.parameters, this.executionDateTime, this.messageListener);
}
return this.library_context[library];
}
getLocalIdContext(localId) {
if (this.localId_context[localId] == null) {
this.localId_context[localId] = new PatientContext(this.get(localId), this.patient, this.codeService, this.parameters, this.executionDateTime);
this.localId_context[localId] = new PatientContext(this.get(localId), this.patient, this.codeService, this.parameters, this.executionDateTime, this.messageListener);
}
return this.localId_context[localId];
}
Expand Down
Loading

0 comments on commit 2cd244c

Please sign in to comment.