Interface ValidationService


public interface ValidationService
ValidationService

performs a composition validation based on the constraints defined in a 1.4 operational template The service is a wrapper of Validator and use a cache to optimize validation since the construction of the constraints is somewhat resource intensive. The validation constraints are maintained into a standard java cache. The service uses KnowledgeCache to retrieve operational templates.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    check(com.nedap.archie.rm.composition.Composition composition)
    Initially check if the composition is valid for further processing.
    void
    check(EhrStatusDto ehrStatus)
    Initially check if ehrStatus is valid for further processing.
    void
    check(org.ehrbase.openehr.sdk.response.dto.ContributionCreateDto contribution)
    Initially check if contribution is valid for further processing.
  • Method Details

    • check

      void check(com.nedap.archie.rm.composition.Composition composition)
      Initially check if the composition is valid for further processing.
      Parameters:
      composition - to validate
      Throws:
      IllegalArgumentException - in case the given composition is invalid.
    • check

      void check(@Nonnull EhrStatusDto ehrStatus)
      Initially check if ehrStatus is valid for further processing.
      Parameters:
      ehrStatus - to validate
      Throws:
      IllegalArgumentException - in case the given ehrStatus is invalid.
    • check

      void check(org.ehrbase.openehr.sdk.response.dto.ContributionCreateDto contribution)
      Initially check if contribution is valid for further processing.
      Parameters:
      contribution - to validate
      Throws:
      IllegalArgumentException - in case the given contribution is invalid.