Skip to content

Commit

Permalink
Fix a regression in Valueset Expansion (#5993)
Browse files Browse the repository at this point in the history
* Add forgotten ISA

* revert non-standard property behaviour on is-a match type

* Changelog
  • Loading branch information
tadgh committed Jun 8, 2024
1 parent 590fe26 commit 4321670
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
type: fix
issue: 5993
title: "Corrected a regression in valueset expansion. If a valueset with a non-standard `property` in the filter used the `is-a` operation, the caller would receive `HAPI-2526`. This has been corrected."


Original file line number Diff line number Diff line change
Expand Up @@ -1452,6 +1452,7 @@ private void handleFilterPropertyDefault(
} else {
Term term = new Term(CONCEPT_PROPERTY_PREFIX_NAME + theFilter.getProperty(), value);
switch (theFilter.getOp()) {
case ISA:
case EQUAL:
theB.must(theF.match().field(term.field()).matching(term.text()));
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ public void create100ConceptsCodeSystemAndValueSet() {
createConceptsCodeSystemAndValueSet(100);
}


public IIdType createConceptsCodeSystemAndValueSet(int theCount) {
CodeSystem cs = new CodeSystem();
cs.setUrl("http:https://foo/cs");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"system": "http:https://hl7.org/fhir/sid/icd-10",
"filter": [
{
"property": "concept",
"property": "SCALE_TYP",
"op": "is-a",
"value": "STI"
}
Expand Down

0 comments on commit 4321670

Please sign in to comment.