Code formatting + fix code system rendering
This commit is contained in:
parent
883f4ee4cb
commit
569718d829
|
@ -402,19 +402,22 @@ public class ValueSetCheckerSimple implements ValueSetChecker {
|
|||
|
||||
private boolean inComponent(ConceptSetComponent vsi, String system, String code, boolean only) throws FHIRException {
|
||||
for (UriType uri : vsi.getValueSet()) {
|
||||
if (inImport(uri.getValue(), system, code))
|
||||
if (inImport(uri.getValue(), system, code)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!vsi.hasSystem())
|
||||
if (!vsi.hasSystem()) {
|
||||
return false;
|
||||
|
||||
}
|
||||
if (only && system == null) {
|
||||
// whether we know the system or not, we'll accept the stated codes at face value
|
||||
for (ConceptReferenceComponent cc : vsi.getConcept())
|
||||
if (cc.getCode().equals(code))
|
||||
for (ConceptReferenceComponent cc : vsi.getConcept()) {
|
||||
if (cc.getCode().equals(code)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!system.equals(vsi.getSystem()))
|
||||
return false;
|
||||
|
@ -443,14 +446,17 @@ public class ValueSetCheckerSimple implements ValueSetChecker {
|
|||
List<ConceptDefinitionComponent> list = cs.getConcept();
|
||||
boolean ok = validateCodeInConceptList(code, cs, list);
|
||||
if (ok && vsi.hasConcept()) {
|
||||
for (ConceptReferenceComponent cc : vsi.getConcept())
|
||||
if (cc.getCode().equals(code))
|
||||
for (ConceptReferenceComponent cc : vsi.getConcept()) {
|
||||
if (cc.getCode().equals(code)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
} else
|
||||
} else {
|
||||
return ok;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private boolean codeInFilter(CodeSystem cs, String system, ConceptSetFilterComponent f, String code) throws FHIRException {
|
||||
if ("concept".equals(f.getProperty()))
|
||||
|
|
|
@ -293,7 +293,7 @@ public class ValueSetExpanderSimple implements ValueSetExpander {
|
|||
if (exclusion.getCode().equals(def.getCode()))
|
||||
return; // excluded.
|
||||
}
|
||||
if (!CodeSystemUtilities.isDeprecated(cs, def)) {
|
||||
if (!CodeSystemUtilities.isDeprecated(cs, def, false)) {
|
||||
ValueSetExpansionContainsComponent np = null;
|
||||
boolean abs = CodeSystemUtilities.isNotSelectable(cs, def);
|
||||
boolean inc = CodeSystemUtilities.isInactive(cs, def);
|
||||
|
|
Loading…
Reference in New Issue