allow profile validation on element

This commit is contained in:
Oliver Egger 2020-07-08 22:03:38 +02:00
parent f40f012dfb
commit 1b135a0d34
1 changed files with 1 additions and 5 deletions

View File

@ -279,11 +279,7 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat
}
} else if (item instanceof Element) {
Element e = (Element) item;
if (e.isResource()) {
self.validateResource(new ValidatorHostContext(ctxt.getAppContext(), e), valerrors, e, e, sd, IdStatus.OPTIONAL, new NodeStack(context, e, validationLanguage));
} else {
throw new FHIRException(context.formatMessage(I18nConstants.NOT_SUPPORTED_YET));
}
self.validateResource(new ValidatorHostContext(ctxt.getAppContext(), e), valerrors, e, e, sd, IdStatus.OPTIONAL, new NodeStack(context, e, validationLanguage));
} else
throw new NotImplementedException(context.formatMessage(I18nConstants.NOT_DONE_YET_VALIDATORHOSTSERVICESCONFORMSTOPROFILE_WHEN_ITEM_IS_NOT_AN_ELEMENT));
boolean ok = true;