Fix a regression in Valueset Expansion (#5993)

* Add forgotten ISA

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

* Changelog
This commit is contained in:
Tadgh 2024-06-07 21:57:10 -07:00 committed by GitHub
parent 590fe26a76
commit 432167011d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 9 additions and 1 deletions

View File

@ -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."

View File

@ -1452,6 +1452,7 @@ public class TermReadSvcImpl implements ITermReadSvc, IHasScheduledJobs {
} 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;

View File

@ -401,6 +401,7 @@ public class ValueSetExpansionR4Test extends BaseTermR4Test implements IValueSet
createConceptsCodeSystemAndValueSet(100);
}
public IIdType createConceptsCodeSystemAndValueSet(int theCount) {
CodeSystem cs = new CodeSystem();
cs.setUrl("http://foo/cs");

View File

@ -13,7 +13,7 @@
"system": "http://hl7.org/fhir/sid/icd-10",
"filter": [
{
"property": "concept",
"property": "SCALE_TYP",
"op": "is-a",
"value": "STI"
}