Merge pull request #836 from RuthAlk/include_patch
Fix problem with _include=MedicationRequest:medication
This commit is contained in:
commit
3a68bc19e7
|
@ -101,9 +101,15 @@ public class ResourceReferenceInfo {
|
|||
if (resourceDef != null) {
|
||||
RuntimeSearchParam searchParamDef = resourceDef.getSearchParam(paramName);
|
||||
if (searchParamDef!=null) {
|
||||
if (searchParamDef.getPathsSplit().contains(myOwningResource + "." + myName)) {
|
||||
return true;
|
||||
final String myCompleteName = myOwningResource + "." + myName;
|
||||
boolean matched = false;
|
||||
for (String s : searchParamDef.getPathsSplit()) {
|
||||
if (s.equals(myCompleteName) ||
|
||||
s.startsWith(myCompleteName + ".")) {
|
||||
matched = true; break;
|
||||
}
|
||||
}
|
||||
return matched;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue