Class RepositoryValidatingRuleBuilder.RepositoryValidatingRuleBuilderTyped
- Enclosing class:
RepositoryValidatingRuleBuilder
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
-
Method Summary
Modifier and TypeMethodDescriptiondisallowProfile
(String theProfileUrl) If set, any resources that contain a profile declaration inResource.meta.profile
matching theProfileUrl will be rejected.disallowProfiles
(String... theProfileUrls) requireAtLeastOneProfileOf
(String... theProfileUrls) Require any resource being persisted to declare conformance to at least one of the given profiles, meaning that the specified profile URL must be found within the resource inResource.meta.profile
.requireAtLeastProfile
(String theProfileUrl) Require any resource being persisted to declare conformance to the given profile, meaning that the specified profile URL must be found within the resource inResource.meta.profile
.Perform a resource validation step using the FHIR Instance Validator and reject the storage if the validation fails.
-
Method Details
-
requireAtLeastProfile
public RepositoryValidatingRuleBuilder.FinalizedTypedRule requireAtLeastProfile(String theProfileUrl) Require any resource being persisted to declare conformance to the given profile, meaning that the specified profile URL must be found within the resource inResource.meta.profile
.This rule is non-exclusive, meaning that a resource will pass as long as one of its profile declarations in
Resource.meta.profile
matches. If the resource declares conformance to multiple profiles, any other profile declarations found in that field will be ignored. -
requireAtLeastOneProfileOf
public RepositoryValidatingRuleBuilder.FinalizedTypedRule requireAtLeastOneProfileOf(String... theProfileUrls) Require any resource being persisted to declare conformance to at least one of the given profiles, meaning that the specified profile URL must be found within the resource inResource.meta.profile
.This rule is non-exclusive, meaning that a resource will pass as long as one of its profile declarations in
Resource.meta.profile
matches. If the resource declares conformance to multiple profiles, any other profile declarations found in that field will be ignored. -
disallowProfile
If set, any resources that contain a profile declaration inResource.meta.profile
matching theProfileUrl will be rejected.- Parameters:
theProfileUrl
- The profile canonical URL
-
requireValidationToDeclaredProfiles
public RepositoryValidatingRuleBuilder.RepositoryValidatingRuleBuilderTyped.FinalizedRequireValidationRule requireValidationToDeclaredProfiles()Perform a resource validation step using the FHIR Instance Validator and reject the storage if the validation fails.If the
ValidationResultEnrichingInterceptor
is registered against theRestfulServer
interceptor registry, the validation results will be appended to anyOperationOutcome
resource returned by the server.- See Also:
-
disallowProfiles
public RepositoryValidatingRuleBuilder.FinalizedTypedRule disallowProfiles(String... theProfileUrls)
-