| [news.eclipse.technology.ohf] Re: If OHF validation the document form? |
thanks, Sarah
Hi,
Yep, this is kind of correct. If you tell the XDS Source component that you are providing a CDA document, it attempts to do an XDS metadata extraction from elements of the CDA before submitting the document. This allows a user to create an XDS document submission without doing (much) additional work in setting values for the XDS metadata - something that can be quite tedious.
I actually think you have encountered a bug in OHF. Is it possible for you to send me (attached to this post or through a bug report at http://www.eclipse.org/ohf/bugs.php) the document you're trying to submit? I will drop it into the test and see what the debug results are and whether there's something wrong in OHF. If the document is not a CDA, then the XDS metadata probably isn't being formed properly. But -- this doesn't appear to be a result of that. It will help me a lot in trying to determine what's wrong.
Thanks! -Matt
RobertHua wrote:
I puzzuled that If OHF validation the document form before submitting?
This means is :if the docement that submits to the Repository is wrong or not exact XML file, the OHF validates it and repeat the error?
In other words,for this code Document clinicalDocument = new Document("./resources/sample_files/test1/input.xml",DocumentDescriptor.CDA_R2),I change the input.xml to a document that is not a CDA_R2 docment,OHF is able to check the document that is not CDA_R2?
I do this,but it also is successful to submit to the services.
I would like to know OHF able to check document,for example ,using CDA Schema check CDA document etc.