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:
parent
590fe26a76
commit
432167011d
|
@ -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."
|
||||||
|
|
||||||
|
|
|
@ -1452,6 +1452,7 @@ public class TermReadSvcImpl implements ITermReadSvc, IHasScheduledJobs {
|
||||||
} else {
|
} else {
|
||||||
Term term = new Term(CONCEPT_PROPERTY_PREFIX_NAME + theFilter.getProperty(), value);
|
Term term = new Term(CONCEPT_PROPERTY_PREFIX_NAME + theFilter.getProperty(), value);
|
||||||
switch (theFilter.getOp()) {
|
switch (theFilter.getOp()) {
|
||||||
|
case ISA:
|
||||||
case EQUAL:
|
case EQUAL:
|
||||||
theB.must(theF.match().field(term.field()).matching(term.text()));
|
theB.must(theF.match().field(term.field()).matching(term.text()));
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -401,6 +401,7 @@ public class ValueSetExpansionR4Test extends BaseTermR4Test implements IValueSet
|
||||||
createConceptsCodeSystemAndValueSet(100);
|
createConceptsCodeSystemAndValueSet(100);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public IIdType createConceptsCodeSystemAndValueSet(int theCount) {
|
public IIdType createConceptsCodeSystemAndValueSet(int theCount) {
|
||||||
CodeSystem cs = new CodeSystem();
|
CodeSystem cs = new CodeSystem();
|
||||||
cs.setUrl("http://foo/cs");
|
cs.setUrl("http://foo/cs");
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
"system": "http://hl7.org/fhir/sid/icd-10",
|
"system": "http://hl7.org/fhir/sid/icd-10",
|
||||||
"filter": [
|
"filter": [
|
||||||
{
|
{
|
||||||
"property": "concept",
|
"property": "SCALE_TYP",
|
||||||
"op": "is-a",
|
"op": "is-a",
|
||||||
"value": "STI"
|
"value": "STI"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue