Package org.ehrbase.api.service
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 TypeMethodDescriptionvoidcheck(com.nedap.archie.rm.composition.Composition composition) initially check if the composition is valid for further processingvoidcheck(com.nedap.archie.rm.ehr.EhrStatus ehrStatus) initially check if ehrstatus is valid for further processingvoidcheck(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) throws NoSuchMethodException, IllegalAccessException initially check if the composition is valid for further processing- Parameters:
composition-- Throws:
IllegalArgumentExceptionNoSuchMethodExceptionIllegalAccessException
-
check
void check(com.nedap.archie.rm.ehr.EhrStatus ehrStatus) initially check if ehrstatus is valid for further processing- Parameters:
ehrStatus-- Throws:
IllegalArgumentException
-
check
void check(org.ehrbase.openehr.sdk.response.dto.ContributionCreateDto contribution) initially check if contribution is valid for further processing- Parameters:
contribution-- Throws:
IllegalArgumentException
-