Validation based on severity level [message #1744423] |
Mon, 26 September 2016 15:31  |
Eclipse User |
|
|
|
Hi MDHT Team,
Can you please provide the link for the latest source code or documentation for CDAUtil.
Basically looking for MDHT Validation API that will validate and return the results based on the given severity level (Ex., Error, Warning, Info).
For example, if one would like to receive only Errors from the validation then specify 'Error' as the required severity type.
Similarly when 'Warning' is set, then Validation results will only contain Errors and Warnings.
Assuming this may improve response times of Validation, if users are interested only in certain type of severity results as opposed to getting all the results.
This will also avoid any post processing of the complete result set to filter out and get the desired severity type results.
If the current API version doesn't support this functionality, is it possible to expose any such method sooner or later.
Thanks,
Lakshmi
|
|
|
Re: Validation based on severity level [message #1744431 is a reply to message #1744423] |
Mon, 26 September 2016 16:51  |
Eclipse User |
|
|
|
Lakshmi,
The org.eclipse.mdht.uml.cda.util.CDAUtil.ValidationHandler supports the feature of filtering by level of severity
org.eclipse.mdht.uml.cda.util.BasicValidationHandler is an example where you do nothing for a validation
if for instance you only want to report errors
override/implmenet the org.eclipse.mdht.uml.cda.util.CDAUtil.ValidationHandler.handleError(Diagnostic) method
and pass the instance in the org.eclipse.mdht.uml.cda.util.CDAUtil.validate(ClinicalDocument, ValidationHandler)
This will not necessarily improve response times as we still call all the validations methods
What type of environment are you running the validation and which implementation guide are you running ?
Where is the performance hit as we know there is some overhead for initialization but after that most validations are sub second even for the larger documents
thanks
sean
|
|
|
Powered by
FUDForum. Page generated in 0.05287 seconds