congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
FhirValidator.applyDefaultValidators
Code IndexAdd Tabnine to your IDE (free)

How to use
applyDefaultValidators
method
in
ca.uhn.fhir.validation.FhirValidator

Best Java code snippets using ca.uhn.fhir.validation.FhirValidator.applyDefaultValidators (Showing top 6 results out of 315)

origin: jamesagnew/hapi-fhir

/**
 * Validates a resource instance returning a {@link ca.uhn.fhir.validation.ValidationResult} which contains the results.
 *
 * @param theResource
 *           the resource to validate
 * @return the results of validation
 * @since 1.1
 */
public ValidationResult validateWithResult(String theResource) {
  Validate.notNull(theResource, "theResource must not be null");
  
  applyDefaultValidators();
  
  IValidationContext<IBaseResource> ctx = ValidationContext.forText(myContext, theResource);
  for (IValidatorModule next : myValidators) {
    next.validateResource(ctx);
  }
  return ctx.toResult();
}
origin: jamesagnew/hapi-fhir

/**
 * Validates a resource instance returning a {@link ca.uhn.fhir.validation.ValidationResult} which contains the results.
 *
 * @param theResource
 *           the resource to validate
 * @return the results of validation
 * @since 0.7
 */
public ValidationResult validateWithResult(IBaseResource theResource) {
  Validate.notNull(theResource, "theResource must not be null");
  
  applyDefaultValidators();
  
  IValidationContext<IBaseResource> ctx = ValidationContext.forResource(myContext, theResource);
  for (IValidatorModule next : myValidators) {
    next.validateResource(ctx);
  }
  return ctx.toResult();
}
origin: jamesagnew/hapi-fhir

/**
 * Validates a resource instance, throwing a {@link ValidationFailureException} if the validation fails
 * 
 * @param theResource
 *           The resource to validate
 * @throws ValidationFailureException
 *            If the validation fails
 * @deprecated use {@link #validateWithResult(IBaseResource)} instead
 */
@Deprecated
public void validate(IResource theResource) throws ValidationFailureException {
  
  applyDefaultValidators();
  
  ValidationResult validationResult = validateWithResult(theResource);
  if (!validationResult.isSuccessful()) {
    throw new ValidationFailureException(myContext, validationResult.toOperationOutcome());
  }
}
origin: ca.uhn.hapi.fhir/hapi-fhir-base

/**
 * Validates a resource instance returning a {@link ca.uhn.fhir.validation.ValidationResult} which contains the results.
 *
 * @param theResource
 *           the resource to validate
 * @return the results of validation
 * @since 0.7
 */
public ValidationResult validateWithResult(IBaseResource theResource) {
  Validate.notNull(theResource, "theResource must not be null");
  
  applyDefaultValidators();
  
  IValidationContext<IBaseResource> ctx = ValidationContext.forResource(myContext, theResource);
  for (IValidatorModule next : myValidators) {
    next.validateResource(ctx);
  }
  return ctx.toResult();
}
origin: ca.uhn.hapi.fhir/hapi-fhir-base

/**
 * Validates a resource instance returning a {@link ca.uhn.fhir.validation.ValidationResult} which contains the results.
 *
 * @param theResource
 *           the resource to validate
 * @return the results of validation
 * @since 1.1
 */
public ValidationResult validateWithResult(String theResource) {
  Validate.notNull(theResource, "theResource must not be null");
  
  applyDefaultValidators();
  
  IValidationContext<IBaseResource> ctx = ValidationContext.forText(myContext, theResource);
  for (IValidatorModule next : myValidators) {
    next.validateResource(ctx);
  }
  return ctx.toResult();
}
origin: ca.uhn.hapi.fhir/hapi-fhir-base

/**
 * Validates a resource instance, throwing a {@link ValidationFailureException} if the validation fails
 * 
 * @param theResource
 *           The resource to validate
 * @throws ValidationFailureException
 *            If the validation fails
 * @deprecated use {@link #validateWithResult(IBaseResource)} instead
 */
@Deprecated
public void validate(IResource theResource) throws ValidationFailureException {
  
  applyDefaultValidators();
  
  ValidationResult validationResult = validateWithResult(theResource);
  if (!validationResult.isSuccessful()) {
    throw new ValidationFailureException(myContext, validationResult.toOperationOutcome());
  }
}
ca.uhn.fhir.validationFhirValidatorapplyDefaultValidators

Popular methods of FhirValidator

  • validateWithResult
    Validates a resource instance returning a ca.uhn.fhir.validation.ValidationResult which contains the
  • registerValidatorModule
    Add a new validator module to this validator. You may register as many modules as you like at any ti
  • setValidateAgainstStandardSchema
    Should the validator validate the resource against the base schema (the schema provided with the FHI
  • setValidateAgainstStandardSchematron
    Should the validator validate the resource against the base schematron (the schematron provided with
  • <init>
    Constructor (this should not be called directly, but rather FhirContext#newValidator() should be cal
  • addOrRemoveValidator
  • haveValidatorOfType
  • unregisterValidatorModule
    Removes a validator module from this validator. You may register as many modules as you like, and re

Popular in Java

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • setContentView (Activity)
  • getContentResolver (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now