class RepositoryImpl extends AbstractC32DaoAware implements Repository {

	@Override
	public List<DocStatus> getStatus(String patientId, String patientName) {
		List<C32DocumentEntity> docList = getAllStoredDocuments(patientId);

		Date today = new Date();
		
		if (getDocumentByDate(today, docList)==null) {
			saveIncompleteDocument(today, patientId);
			sendMessageToRetrieve(today, patientId, patientName);
			docList = getAllStoredDocuments(patientId);
		}
		docList = getLimitedStatuses(today, docList);
		return getDocStatuses(docList);
	}

}