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 {
|
||||
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;
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"system": "http://hl7.org/fhir/sid/icd-10",
|
||||
"filter": [
|
||||
{
|
||||
"property": "concept",
|
||||
"property": "SCALE_TYP",
|
||||
"op": "is-a",
|
||||
"value": "STI"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue