CCDA 2.1 Validation [message #1755887] |
Thu, 09 March 2017 00:40  |
Eclipse User |
|
|
|
Is there a way to get vocabulary errors similar to Edge testing tool for ONC 2015. (https://ttpedge.sitenv.org/ttp/#/validators)
We use the following code to get general errors and warnings (C-CDA IG), but i was not sure how to get vocabulary errors and warnings. (C-CDA VOCAB).
ValidationResult result = new ValidationResult();
ClinicalDocument ccdDocument = CDAUtil.loadAs(new FileInputStream("C:\\ONE_03082017_CCDA.XML"), ConsolPackage.eINSTANCE.getContinuityOfCareDocument2(), result);
for (Diagnostic diagnostic : result.getWarningDiagnostics()) {
System.out.println(diagnostic.getMessage());
}
CDAUtil.validate(ccdDocument, new BasicValidationHandler() {
public void handleError(Diagnostic diagnostic) {
System.out.println("ERROR: " + diagnostic.getMessage());
}
public void handleWarning(Diagnostic diagnostic) {
System.out.println("WARNING: " + diagnostic.getMessage());
}
});
Could you help us regarding the usage of vocabulary errors in MDHT library.
Thank you
|
|
|
Re: CCDA 2.1 Validation [message #1755962 is a reply to message #1755887] |
Thu, 09 March 2017 15:20   |
Eclipse User |
|
|
|
This is the ONC SITE project that handles both vocabulary validation and reference validation (used in for non-MDHT results in TTP (ETT/TTT) and sitenv) via varying SITE dependencies (found here https://github.com/siteadmin) that you are refering to:
https://github.com/siteadmin/referenceccdavalidator
If you want to integrate those you could use the referenceccdavalidator which relies on MDHT for the IG-based results. Or, you could use MDHT and the non-MDHT referenceccdavalidator dependencies to create your own tool.
If you are having issues getting the same IG-based (MDHT) results as SITE or TTP then I can help you with your source.
Thanks,
Dan
|
|
|
|
Powered by
FUDForum. Page generated in 0.03531 seconds