public ArrayList<Specialty> listSpecialties(Specialty filterLookup) throws DomainInterfaceException { if (filterLookup == null) throw new DomainInterfaceException("Can not search on null speciality filter"); ArrayList<Specialty> specialtiesList = new ArrayList<Specialty>(); ArrayList<String> searchWords = new ArrayList<String>(); filterLookup.setText(filterLookup.getText().replaceAll(" ", "%")); String[] split = filterLookup.getText().split("%"); for (int i = split.length - 1; i >= 0; i--) { if (!(split[i].equalsIgnoreCase(""))) searchWords.add(split[i]); } LookupService lookup = this.getLookupService(); SpecialtyCollection collection = (SpecialtyCollection) lookup.getLookupCollection( Specialty.TYPE_ID, SpecialtyCollection.class, Specialty.class); for (int i = 0; i < collection.size(); i++) { Specialty specialty = collection.get(i); if (containsText(specialty, searchWords)) specialtiesList.add(specialty); } return specialtiesList; }
public static WhereHeardCollection getWhereHeard(LookupService lookupService) { WhereHeardCollection collection = (WhereHeardCollection) lookupService.getLookupCollection( WhereHeard.TYPE_ID, WhereHeardCollection.class, WhereHeard.class); return collection; }
public static PatientTypeCollection getPatientType(LookupService lookupService) { PatientTypeCollection collection = (PatientTypeCollection) lookupService.getLookupCollection( PatientType.TYPE_ID, PatientTypeCollection.class, PatientType.class); return collection; }
public static LoCallStatusCollection getLoCallStatus(LookupService lookupService) { LoCallStatusCollection collection = (LoCallStatusCollection) lookupService.getLookupCollection( LoCallStatus.TYPE_ID, LoCallStatusCollection.class, LoCallStatus.class); return collection; }
public static AccountingTypeCollection getAccountingType(LookupService lookupService) { AccountingTypeCollection collection = (AccountingTypeCollection) lookupService.getLookupCollection( AccountingType.TYPE_ID, AccountingTypeCollection.class, AccountingType.class); return collection; }
public static BatchStatusCollection getBatchStatus(LookupService lookupService) { BatchStatusCollection collection = (BatchStatusCollection) lookupService.getLookupCollection( BatchStatus.TYPE_ID, BatchStatusCollection.class, BatchStatus.class); return collection; }
public static CallTypeCollection getCallType(LookupService lookupService) { CallTypeCollection collection = (CallTypeCollection) lookupService.getLookupCollection( CallType.TYPE_ID, CallTypeCollection.class, CallType.class); return collection; }
public static PatientCheckListCollection getPatientCheckList(LookupService lookupService) { PatientCheckListCollection collection = (PatientCheckListCollection) lookupService.getLookupCollection( PatientCheckList.TYPE_ID, PatientCheckListCollection.class, PatientCheckList.class); return collection; }
public static InsuranceTypeCollection getInsuranceType(LookupService lookupService) { InsuranceTypeCollection collection = (InsuranceTypeCollection) lookupService.getLookupCollection( InsuranceType.TYPE_ID, InsuranceTypeCollection.class, InsuranceType.class); return collection; }
public static JobTypeCollection getJobType(LookupService lookupService) { JobTypeCollection collection = (JobTypeCollection) lookupService.getLookupCollection( JobType.TYPE_ID, JobTypeCollection.class, JobType.class); return collection; }
public static WorkQueueStatusCollection getWorkQueueStatus(LookupService lookupService) { WorkQueueStatusCollection collection = (WorkQueueStatusCollection) lookupService.getLookupCollection( WorkQueueStatus.TYPE_ID, WorkQueueStatusCollection.class, WorkQueueStatus.class); return collection; }
public static CommentContextTypeCollection getCommentContextType(LookupService lookupService) { CommentContextTypeCollection collection = (CommentContextTypeCollection) lookupService.getLookupCollection( CommentContextType.TYPE_ID, CommentContextTypeCollection.class, CommentContextType.class); return collection; }
public static CallerRelationshipCollection getCallerRelationship(LookupService lookupService) { CallerRelationshipCollection collection = (CallerRelationshipCollection) lookupService.getLookupCollection( CallerRelationship.TYPE_ID, CallerRelationshipCollection.class, CallerRelationship.class); return collection; }
public static WaitingListLengthQualifierCollection getWaitingListLengthQualifier( LookupService lookupService) { WaitingListLengthQualifierCollection collection = (WaitingListLengthQualifierCollection) lookupService.getLookupCollection( WaitingListLengthQualifier.TYPE_ID, WaitingListLengthQualifierCollection.class, WaitingListLengthQualifier.class); return collection; }
public static CommentContextType getCommentContextTypeInstance( LookupService lookupService, int id) { return (CommentContextType) lookupService.getLookupInstance(CommentContextType.class, CommentContextType.TYPE_ID, id); }
public static InsuranceType getInsuranceTypeInstance(LookupService lookupService, int id) { return (InsuranceType) lookupService.getLookupInstance(InsuranceType.class, InsuranceType.TYPE_ID, id); }
public static PatientCheckList getPatientCheckListInstance(LookupService lookupService, int id) { return (PatientCheckList) lookupService.getLookupInstance(PatientCheckList.class, PatientCheckList.TYPE_ID, id); }
public static CallType getCallTypeInstance(LookupService lookupService, int id) { return (CallType) lookupService.getLookupInstance(CallType.class, CallType.TYPE_ID, id); }
public static CountyCollection getCounty(LookupService lookupService) { CountyCollection collection = (CountyCollection) lookupService.getLookupCollection(County.TYPE_ID, CountyCollection.class, County.class); return collection; }
public static AccountingType getAccountingTypeInstance(LookupService lookupService, int id) { return (AccountingType) lookupService.getLookupInstance(AccountingType.class, AccountingType.TYPE_ID, id); }
public static BatchStatus getBatchStatusInstance(LookupService lookupService, int id) { return (BatchStatus) lookupService.getLookupInstance(BatchStatus.class, BatchStatus.TYPE_ID, id); }
public static County getCountyInstance(LookupService lookupService, int id) { return (County) lookupService.getLookupInstance(County.class, County.TYPE_ID, id); }
public static CallerRelationship getCallerRelationshipInstance( LookupService lookupService, int id) { return (CallerRelationship) lookupService.getLookupInstance(CallerRelationship.class, CallerRelationship.TYPE_ID, id); }
public static LoCallStatus getLoCallStatusInstance(LookupService lookupService, int id) { return (LoCallStatus) lookupService.getLookupInstance(LoCallStatus.class, LoCallStatus.TYPE_ID, id); }
public static PatientType getPatientTypeInstance(LookupService lookupService, int id) { return (PatientType) lookupService.getLookupInstance(PatientType.class, PatientType.TYPE_ID, id); }
public static JobType getJobTypeInstance(LookupService lookupService, int id) { return (JobType) lookupService.getLookupInstance(JobType.class, JobType.TYPE_ID, id); }
public static WaitingListLengthQualifier getWaitingListLengthQualifierInstance( LookupService lookupService, int id) { return (WaitingListLengthQualifier) lookupService.getLookupInstance( WaitingListLengthQualifier.class, WaitingListLengthQualifier.TYPE_ID, id); }
public static WhereHeard getWhereHeardInstance(LookupService lookupService, int id) { return (WhereHeard) lookupService.getLookupInstance(WhereHeard.class, WhereHeard.TYPE_ID, id); }
public static WorkQueueStatus getWorkQueueStatusInstance(LookupService lookupService, int id) { return (WorkQueueStatus) lookupService.getLookupInstance(WorkQueueStatus.class, WorkQueueStatus.TYPE_ID, id); }