...
Code Block |
---|
|
EPDocumentMetaData epdXml = DocumentFactory.createEPDocumentXML(documentId, patientId, effectiveDate, repositoryId, title, author);
EPDocumentMetaData epdPdf = DocumentFactory.createEPDocumentPDF(documentId, patientId, effectiveDate, repositoryId, title, author);
DocumentFactory.createDocumentAssociation(epdXml, epdPdf);
PSDocumentMetaData psdPdf = DocumentFactory.createPSDocumentPDF(documentId, patientId, effectiveDate, repositoryId, title, author);
PSDocumentMetaData psdXml = DocumentFactory.createPSDocumentXML(documentId, patientId, effectiveDate, repositoryId, title, author);
DocumentFactory.createDocumentAssociation(psdPdf, psdXml); |
And when returning the (DOM) document itself, should be implemented for example like:
Code Block |
---|
|
EPSOSDocument epsosDocument = DocumentFactory.createEPSOSDocument(
getPatientIdFromDocumentId(documentId)patientId,
Constants.EP_CLASSCODE,
xmlDocument); |
...