-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement the support for _filter (#244)
* feat: initial commit for _filter support * refactor: add edge cases and support for BT operator string encoding to "" since fhir expects that in _filter * test: add unit testcases , add tests and get the filter prefix method * test: add more tests * test: add more testcases * docs: update docs * test: add test cases * docs: fix indentation * refactor: fixes * docs: update docs * refactor: address review comments * refactor: address review comments * refactor: review comments * refactor: review comments * docs: review comments * refactor: address review comments * style: review comments * style: eslint issues * refactor: review comments
- Loading branch information
1 parent
9cc9159
commit 3fc0634
Showing
9 changed files
with
513 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/*! | ||
* ${copyright} | ||
*/ | ||
|
||
// Provides class sap.fhir.model.r4.FHIRFilterComplexOperator | ||
sap.ui.define(["sap/fhir/model/r4/FHIRFilterOperator"], function (FHIRFilterOperator) { | ||
|
||
"use strict"; | ||
|
||
/** | ||
* Operators for the FHIR Complex Filter. Documentation https://www.hl7.org/fhir/search_filter.html#ops | ||
* | ||
* @enum {string} | ||
* @public | ||
* @alias sap.fhir.model.r4.FHIRFilterComplexOperator | ||
* @extends sap.ui.model.FHIRFilterOperator | ||
*/ | ||
var FHIRFilterComplexOperator = { | ||
/** | ||
* The set is empty or not (value is false or true) | ||
* | ||
* @public | ||
*/ | ||
PR: "pr", | ||
|
||
/** | ||
* If a (implied) date period in the set overlaps with the implied period in the value | ||
* | ||
* @public | ||
*/ | ||
PO: "po", | ||
|
||
/** | ||
* If the value subsumes a concept in the set | ||
* | ||
* @public | ||
*/ | ||
SS: "ss", | ||
|
||
/** | ||
* If the value is subsumed by a concept in the set | ||
* | ||
* @public | ||
*/ | ||
SB: "sb", | ||
|
||
/** | ||
* If one of the concepts is in the nominated value set by URI, either a relative, literal or logical vs | ||
* | ||
* @public | ||
*/ | ||
IN: "in", | ||
|
||
/** | ||
* If none of the concepts is in the nominated value set by URI, either a relative, literal or logical vs | ||
* | ||
* @public | ||
*/ | ||
NI: "ni", | ||
|
||
/** | ||
* If one of the references in set points to the given URL | ||
* | ||
* @public | ||
*/ | ||
RE: "re" | ||
}; | ||
|
||
// merge the FHIR FilterOperator object into the FHIRFilterComplexOperator | ||
return Object.assign(FHIRFilterComplexOperator, FHIRFilterOperator); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.