remove invalid warning
This commit is contained in:
parent
4a8d626ab9
commit
a56978bdd0
|
@ -613,7 +613,7 @@ public class ValueSetCheckerSimple extends ValueSetWorker implements ValueSetChe
|
|||
vs.getCompose().addInclude(vsi);
|
||||
ValidationResult res = context.validateCode(options.noClient(), new Coding(system, code, null), vs);
|
||||
if (res.getErrorClass() == TerminologyServiceErrorClass.UNKNOWN || res.getErrorClass() == TerminologyServiceErrorClass.CODESYSTEM_UNSUPPORTED || res.getErrorClass() == TerminologyServiceErrorClass.VALUESET_UNSUPPORTED) {
|
||||
if (warnings != null) {
|
||||
if (warnings != null && res.getErrorClass() == TerminologyServiceErrorClass.CODESYSTEM_UNSUPPORTED) {
|
||||
warnings.add(context.formatMessage(I18nConstants.TERMINOLOGY_TX_SYSTEM_NOTKNOWN, system));
|
||||
}
|
||||
return null;
|
||||
|
|
|
@ -90,7 +90,9 @@ public class ValueSetValidator extends BaseValidator {
|
|||
Resource rs = context.fetchResource(Resource.class, v);
|
||||
if (rs != null) {
|
||||
warning(errors, IssueType.BUSINESSRULE, ns.getLiteralPath(), false, I18nConstants.VALUESET_REFERENCE_INVALID_TYPE, v, rs.fhirType());
|
||||
} else {
|
||||
} else {
|
||||
// todo: it's possible, at this point, that the txx server knows the value set, but it's not in scope
|
||||
// should we handle this case?
|
||||
warning(errors, IssueType.BUSINESSRULE, ns.getLiteralPath(), false, I18nConstants.VALUESET_REFERENCE_UNKNOWN, v);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue