fix bug in code system comparison

This commit is contained in:
Grahame Grieve 2020-08-27 12:33:13 +10:00
parent 1eda0aa128
commit 765f24a233
1 changed files with 5 additions and 3 deletions

View File

@ -420,9 +420,11 @@ public class CodeSystemComparer extends CanonicalResourceComparer {
c = comp.getPropMap().get(c); c = comp.getPropMap().get(c);
} }
ConceptPropertyComponent cp = null; ConceptPropertyComponent cp = null;
for (ConceptPropertyComponent t : cd.getProperty()) { if (cd != null) {
if (t.getCode().equals(c)) { for (ConceptPropertyComponent t : cd.getProperty()) {
cp = t; if (t.getCode().equals(c)) {
cp = t;
}
} }
} }
return cp; return cp;