...
The current implementation of the interface is as follows:
Code Block | ||
---|---|---|
| ||
public interface DocumentSearchInterface extends NationalConnectorInterface { |
...
|
...
public DocumentAssociation<PSDocumentMetaData> getPSDocumentList(SearchCriteria searchCriteria); |
...
public List<DocumentAssociation<EPDocumentMetaData>> getEPDocumentList(SearchCriteria searchCriteria); |
...
public EPSOSDocument getDocument(SearchCriteria searchCriteria); |
...
} |
The DocumentAssociation interface
Code Block | ||
---|---|---|
| ||
public interface DocumentAssociation<T extends EPSOSDocumentMetaData> { |
...
public T getXMLDocumentMetaData(); |
...
public T getPDFDocumentMetaData(); |
...
public String getDocumentClassCode(String documentId); |
...
public String getPatientId(String documentId); |
...
} |
The DocumentAssociation will store XML and PDF document metadata and has two helper methods for searching document's classCode and patientId.
The EPSOSDocumentMetaData
Code Block | ||
---|---|---|
| ||
public interface EPSOSDocumentMetaData { |
...
|
...
public String getId(); |
...
|
...
public String getPatientId(); |
...
|
...
public int getFormat(); |
...
|
...
public Date getEffectiveTime(); |
...
|
...
public String getClassCode(); |
...
|
...
public String getRepositoryId(); |
...
public String getTitle(); |
...
public String getAuthor(); |
...
} |
This interface is a parent for EPDocumentMetaData and PSDocumentMetaData that reprecent the EPrescription and PatientSummary metaDatas.
The EPSOSDocument
...
Code Block | ||
---|---|---|
| ||
public interface EPSOSDocument |
...
{ |
...
|
...
public String getPatientId(); public |
...
String |
...
getClassCode(); |
...
|
...
public org.w3c.dom.Document getDocument(); |
...
|
...
public boolean matchesCriteria(SearchCriteria sc); } |
...
The EPSOSDocument has one document metaData and 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 DocumentMetaDatametadata.
The SearchCriteria
Code Block | ||
---|---|---|
| ||
public interface SearchCriteria { |
...
|
...
public enum Criteria { |
...
PatientId, |
...
RepositoryId, |
...
DocumentId |
...
} |
...
|
...
public SearchCriteria add(Criteria c, String value); |
...
public String getCriteriaValue(Criteria c); |
...
|
...
public Iterator<Criteria> getSearchCriteriaKeys(); } |
}
The SearchCriteria interface reprecents the criteria what will be used for searching the metaData and DOM documents from the national side. Currently the possible criteria values are in the Criteria enum.
...