Class RepositoryValidatingRuleBuilder.RepositoryValidatingRuleBuilderTyped.FinalizedRequireValidationRule
java.lang.Object
ca.uhn.fhir.jpa.interceptor.validation.RepositoryValidatingRuleBuilder.FinalizedTypedRule
ca.uhn.fhir.jpa.interceptor.validation.RepositoryValidatingRuleBuilder.RepositoryValidatingRuleBuilderTyped.FinalizedRequireValidationRule
- Enclosing class:
RepositoryValidatingRuleBuilder.RepositoryValidatingRuleBuilderTyped
-
Constructor Summary
ConstructorDescriptionFinalizedRequireValidationRule
(ca.uhn.fhir.jpa.interceptor.validation.RequireValidationRule theRule) -
Method Summary
Modifier and TypeMethodDescriptionConfigure the validator to never reject extensionsConfigure the validator to not perform terminology validationConfigure the validator to raise an error if a resource being validated declares a profile, and the StructureDefinition for this profile can not be found.Specifies that the resource should not be rejected from storage even if it does not pass validation.rejectOnSeverity
(ca.uhn.fhir.validation.ResultSeverityEnum theSeverity) Specifies the minimum validation result severity that should cause a rejection.rejectOnSeverity
(String theSeverity) Specifies the minimum validation result severity that should cause a rejection.Configure the validator to reject unknown extensionsConfigure the validator to suppress the information-level message that is added to the validation result if a profile StructureDefinition does not declare a binding for a coded field.Configure the validator to suppress the warning-level message that is added when validating a code that can't be found in an ValueSet that has an extensible binding.tagOnSeverity
(ca.uhn.fhir.validation.ResultSeverityEnum theSeverity, String theTagSystem, String theTagCode) Specifies that if the validation results in any results with a severity oftheSeverity
or greater, the resource will be tagged with the given tag when it is saved.tagOnSeverity
(String theSeverity, String theTagSystem, String theTagCode) Specifies that if the validation results in any results with a severity oftheSeverity
or greater, the resource will be tagged with the given tag when it is saved.withBestPracticeWarningLevel
(String theBestPracticeWarningLevel) Sets the "Best Practice Warning Level", which is the severity at which any "best practices" that are specified in the FHIR specification will be added to the validation outcome.withBestPracticeWarningLevel
(org.hl7.fhir.r5.utils.validation.constants.BestPracticeWarningLevel bestPracticeWarningLevel) Sets the "Best Practice Warning Level", which is the severity at which any "best practices" that are specified in the FHIR specification will be added to the validation outcome.Methods inherited from class ca.uhn.fhir.jpa.interceptor.validation.RepositoryValidatingRuleBuilder.FinalizedTypedRule
and, build, forResourcesOfType
-
Constructor Details
-
FinalizedRequireValidationRule
public FinalizedRequireValidationRule(ca.uhn.fhir.jpa.interceptor.validation.RequireValidationRule theRule)
-
-
Method Details
-
withBestPracticeWarningLevel
@Nonnull public RepositoryValidatingRuleBuilder.RepositoryValidatingRuleBuilderTyped.FinalizedRequireValidationRule withBestPracticeWarningLevel(String theBestPracticeWarningLevel) Sets the "Best Practice Warning Level", which is the severity at which any "best practices" that are specified in the FHIR specification will be added to the validation outcome. Set toERROR
to cause any best practice notices to result in a validation failure. Set toIGNORE
to not include any best practice notifications. -
withBestPracticeWarningLevel
@Nonnull public RepositoryValidatingRuleBuilder.RepositoryValidatingRuleBuilderTyped.FinalizedRequireValidationRule withBestPracticeWarningLevel(org.hl7.fhir.r5.utils.validation.constants.BestPracticeWarningLevel bestPracticeWarningLevel) Sets the "Best Practice Warning Level", which is the severity at which any "best practices" that are specified in the FHIR specification will be added to the validation outcome. Set toBestPracticeWarningLevel.Error
to cause any best practice notices to result in a validation failure. Set toBestPracticeWarningLevel.Ignore
to not include any best practice notifications. -
neverReject
@Nonnull public RepositoryValidatingRuleBuilder.RepositoryValidatingRuleBuilderTyped.FinalizedRequireValidationRule neverReject()Specifies that the resource should not be rejected from storage even if it does not pass validation. -
rejectOnSeverity
@Nonnull public RepositoryValidatingRuleBuilder.RepositoryValidatingRuleBuilderTyped.FinalizedRequireValidationRule rejectOnSeverity(@Nonnull String theSeverity) Specifies the minimum validation result severity that should cause a rejection. For example, if this is set toERROR
(which is the default), any validation results with a severity ofERROR
orFATAL
will cause the create/update operation to be rejected and rolled back, and no data will be saved.Valid values must be drawn from
ResultSeverityEnum
-
rejectOnSeverity
@Nonnull public RepositoryValidatingRuleBuilder.RepositoryValidatingRuleBuilderTyped.FinalizedRequireValidationRule rejectOnSeverity(@Nonnull ca.uhn.fhir.validation.ResultSeverityEnum theSeverity) Specifies the minimum validation result severity that should cause a rejection. For example, if Specifies the minimum validation result severity that should cause a rejection. For example, if this is set toERROR
(which is the default), any validation results with a severity ofERROR
orFATAL
will cause the create/update operation to be rejected and rolled back, and no data will be saved.Valid values must be drawn from
ResultSeverityEnum
-
tagOnSeverity
@Nonnull public RepositoryValidatingRuleBuilder.RepositoryValidatingRuleBuilderTyped.FinalizedRequireValidationRule tagOnSeverity(@Nonnull String theSeverity, @Nonnull String theTagSystem, @Nonnull String theTagCode) Specifies that if the validation results in any results with a severity oftheSeverity
or greater, the resource will be tagged with the given tag when it is saved.- Parameters:
theSeverity
- The minimum severity. Must be drawn from values inResultSeverityEnum
and must not benull
theTagSystem
- The system for the tag to add. Must not benull
theTagCode
- The code for the tag to add. Must not benull
- Returns:
-
tagOnSeverity
@Nonnull public RepositoryValidatingRuleBuilder.RepositoryValidatingRuleBuilderTyped.FinalizedRequireValidationRule tagOnSeverity(@Nonnull ca.uhn.fhir.validation.ResultSeverityEnum theSeverity, @Nonnull String theTagSystem, @Nonnull String theTagCode) Specifies that if the validation results in any results with a severity oftheSeverity
or greater, the resource will be tagged with the given tag when it is saved.- Parameters:
theSeverity
- The minimum severity. Must be drawn from values inResultSeverityEnum
and must not benull
theTagSystem
- The system for the tag to add. Must not benull
theTagCode
- The code for the tag to add. Must not benull
- Returns:
-
allowAnyExtensions
@Nonnull public RepositoryValidatingRuleBuilder.RepositoryValidatingRuleBuilderTyped.FinalizedRequireValidationRule allowAnyExtensions()Configure the validator to never reject extensions -
rejectUnknownExtensions
@Nonnull public RepositoryValidatingRuleBuilder.RepositoryValidatingRuleBuilderTyped.FinalizedRequireValidationRule rejectUnknownExtensions()Configure the validator to reject unknown extensions -
disableTerminologyChecks
@Nonnull public RepositoryValidatingRuleBuilder.RepositoryValidatingRuleBuilderTyped.FinalizedRequireValidationRule disableTerminologyChecks()Configure the validator to not perform terminology validation -
errorOnUnknownProfiles
@Nonnull public RepositoryValidatingRuleBuilder.RepositoryValidatingRuleBuilderTyped.FinalizedRequireValidationRule errorOnUnknownProfiles()Configure the validator to raise an error if a resource being validated declares a profile, and the StructureDefinition for this profile can not be found. -
suppressNoBindingMessage
@Nonnull public RepositoryValidatingRuleBuilder.RepositoryValidatingRuleBuilderTyped.FinalizedRequireValidationRule suppressNoBindingMessage()Configure the validator to suppress the information-level message that is added to the validation result if a profile StructureDefinition does not declare a binding for a coded field. -
suppressWarningForExtensibleValueSetValidation
@Nonnull public RepositoryValidatingRuleBuilder.RepositoryValidatingRuleBuilderTyped.FinalizedRequireValidationRule suppressWarningForExtensibleValueSetValidation()Configure the validator to suppress the warning-level message that is added when validating a code that can't be found in an ValueSet that has an extensible binding.
-