use of ca.uhn.fhir.validation.SchemaBaseValidator in project integration-adaptor-111 by nhsconnect.
the class FhirJsonValidator method isValid.
public boolean isValid(String message) {
FhirValidator validator = ctx.newValidator();
IValidatorModule module = new SchemaBaseValidator(ctx);
validator.registerValidatorModule(module);
ValidationResult result = validator.validateWithResult(message);
return result.getMessages().isEmpty();
}
Aggregations