Interface ValidationServiceProvider
public interface ValidationServiceProvider
-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<ValidationService> getValidationService(FhirPackageIdentifier... identifiers) Returns aValidationServiceconfigured for the given FHIR package identifiers and their dependencies.getValidationService(Predicate<FhirPackageIdentifier> filter, FhirPackageIdentifier... identifiers) Returns aValidationServiceconfigured for the given FHIR package identifiers and their dependencies.
-
Method Details
-
getValidationService
Returns aValidationServiceconfigured for the given FHIR package identifiers and their dependencies.- Parameters:
identifiers- notnull, not empty- Returns:
Optional.empty()if resource validation is disabled for the DSF instance
-
getValidationService
Optional<ValidationService> getValidationService(Predicate<FhirPackageIdentifier> filter, FhirPackageIdentifier... identifiers) Returns aValidationServiceconfigured for the given FHIR package identifiers and their dependencies. Excludes packages when the given filter returnsfalse.- Parameters:
filter- notnull, packages are only included if allowed by this filteridentifiers- notnull, not empty- Returns:
Optional.empty()if resource validation is disabled for the DSF instance
-