Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
public interface EPSOSDocument {
	public String getPatientId();
	public String getClassCode();
	public org.w3c.dom.Document getDocument();
	public boolean matchesCriteria(SearchCriteria sc);
}

...

The EPSOSDocument has the actual DOM document plus a subset of the metadata. The interface also has a helper method for checking that if the SearchCriteria matches the metadata.

...

From the national component the usage of this interface, when returning DocumentAssociations should be something like:

Code Block
languagejava
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
languagejava
epsosDocument = DocumentFactory.createEPSOSDocument(

...


		getPatientIdFromDocumentId(documentId),
		Constants.EP_CLASSCODE,
		xmlDocument);
From the XCAService component side

...