Java Code Examples for ims.admin.domain.impl.OrganisationAndLocationImpl

The following are top voted examples for showing how to use ims.admin.domain.impl.OrganisationAndLocationImpl. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: AvoinApotti   File: InpatientListImpl.java   Source Code and License 6 votes vote down vote up
/**
* list all Wards for the supplied Hospital. For each Ward retrieved get the PAS Mapping. Return a delimiter string of Ward Mappings 
*/
private String listWardMappingsForHospital(LocationRefVo hospital)
{
	String strListLocalCodes = "";
	OrganisationAndLocation locImpl = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	LocShortMappingsVoCollection voLocShortColl = locImpl.listActiveWardsForHospital(hospital);
	
	if (voLocShortColl != null && voLocShortColl.size() > 0)
	{
		String delim = "|";
		
		for(int i=0; i<voLocShortColl.size(); i++)
		{
			LocShortMappingsVo voLocShort = voLocShortColl.get(i);
			strListLocalCodes += voLocShort.getPasMapping();
			if(voLocShortColl.size() - i == 2)
				strListLocalCodes += delim;
		}
	}
	return strListLocalCodes;
}
 
Example 2
Project: AvoinApotti   File: MyOrderImpl.java   Source Code and License 6 votes vote down vote up
public LocationLiteVoCollection listWardsForHospitalByNameLite(LocationRefVo location, String name)
{
	OrganisationAndLocation impl = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	
	//WDEV-6721 - if user enters more than 1 '%' - search was failing
	String[] arr = null;
	if(name.contains("%"))
	{
		arr = name.split("%");
		if(arr.length > 0)
			name = arr[0] + "%";
		else
			name = "%";
	}
	
	return impl.listActiveWardsForHospitalByNameLite(location, name);
}
 
Example 3
Project: AvoinApotti   File: PatientListsImpl.java   Source Code and License 5 votes vote down vote up
private void populatePasContactFromDtoOutpatient(PasContactVo voPasContact, OutpatientlistRecord dtoOutpatient)
{
	String extSystem = ConfigFlag.DOM.DEMOGRAPHICS_EXT_SYSTEM.getValue();			
	LocShortVo voLoc = new LocShortVo();		
	OrganisationAndLocation locImpl = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	
	voLoc = locImpl.getLocationByLocalCode(dtoOutpatient.Cliniccode,LocationType.CLINIC);
	voPasContact.setLocation(voLoc);
					
	HcpAdmin hcpAdmin = (HcpAdmin)getDomainImpl(HcpAdminImpl.class);
	
	MedicWithMappingsLiteVo voMedicWithMappingsLite = hcpAdmin.getMedicMedicMappingsByPasCode(dtoOutpatient.Hcpcode);
	voPasContact.setConsultant(voMedicWithMappingsLite == null ? null : voMedicWithMappingsLite);
			

	Specialty specialty = (Specialty)getLookupService().getLocalLookup(Specialty.class, Specialty.TYPE_ID, extSystem, dtoOutpatient.Specialty);			
	
	voPasContact.setSpecialty(specialty);			
	
	//Contact Number
	voPasContact.setContactNumber(dtoOutpatient.Contactno);
	try {
		voPasContact.setAppointmentDateTime(new DateTime (dtoOutpatient.Apptdate, "1000"));
	} catch (ParseException e) {
		voPasContact.setAppointmentDateTime(null);
	}
					
	PatientShort voPatientShort = new PatientShort();
	voPatientShort.setName(dtoOutpatient.Snm, dtoOutpatient.Fnm1, null);	

	voPatientShort.addId(PatIdType.HOSPNUM, dtoOutpatient.Hospnum);						
	voPatientShort.addId(PatIdType.CHARTNUM, dtoOutpatient.Chartnum);						

	if(dtoOutpatient.Dob != null && dtoOutpatient.Dob != "")
		voPatientShort.setDob(new PartialDate(dtoOutpatient.Dob));	
	else
		voPatientShort.setDob(null);
	
	if(dtoOutpatient.Dod != null && dtoOutpatient.Dod != "")
	{
		try {voPatientShort.setDod(new Date(dtoOutpatient.Dod,DateFormat.ISO));
		} catch (ParseException e2) {
			e2.printStackTrace();
		}
	}
	
	if(dtoOutpatient.Dob != null && dtoOutpatient.Dob != "")
		voPatientShort.calculateAge();
	
	voPatientShort.setWard(voPasContact.getLocation());		
	voPatientShort.setSex((Sex)getLookupService().getLocalLookup(Sex.class, Sex.TYPE_ID, extSystem, dtoOutpatient.Sex));
	voPasContact.setPatient(voPatientShort);			
	voPasContact.setGPCode(dtoOutpatient.Gpcode);

	if (dtoOutpatient.Documentstatus != ""  && Integer.valueOf(dtoOutpatient.Documentstatus).intValue() == DocumentStatus.LETTERREQUIRED.getId())
	{ 
		voPasContact.setDocumentStatus((DocumentStatus)getLookupService().getLookupInstance(DocumentStatus.class,Integer.valueOf(dtoOutpatient.Documentstatus).intValue()));
	}
	else				
	{
		if (isLetterRequired(voMedicWithMappingsLite, specialty ,null, null) == Boolean.FALSE)
			voPasContact.setDocumentStatus(DocumentStatus.NOLETTERREQUIRED);
		else
			voPasContact.setDocumentStatus(DocumentStatus.LETTERREQUIRED);
	}		
}
 
Example 4
Project: AvoinApotti   File: CarePlanReviewImpl.java   Source Code and License 5 votes vote down vote up
/**
 *  list wards
 */
public LocMostVoCollection listWards()
{
	ims.admin.domain.OrganisationAndLocation wardImpl = (ims.admin.domain.OrganisationAndLocation)getDomainImpl(ims.admin.domain.impl.OrganisationAndLocationImpl.class);
	LocMostVo filter = new LocMostVo();
	filter.setType(LocationType.WARD);
	return wardImpl.listLocation(filter);		
}
 
Example 5
Project: AvoinApotti   File: ClinicLetterBatchCreateImpl.java   Source Code and License 5 votes vote down vote up
public ILocation[] listLocations()
{
	OrganisationAndLocation orgLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	
	LocationLiteVoCollection locations = orgLoc.listActiveHospitalsLite();
	return locations != null ? locations.toILocationArray() : null;
}
 
Example 6
Project: AvoinApotti   File: SurgicalOPNotesPostOpInstructionsCCImpl.java   Source Code and License 5 votes vote down vote up
public LocationLiteVoCollection listWards(String location) 
{
	OrganisationAndLocation impl = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);		
	return impl.listActiveLocationsByName(location);
}
 
Example 7
Project: AvoinApotti   File: HospitalAtNightWorklistImpl.java   Source Code and License 5 votes vote down vote up
public LocationLiteVoCollection listWards(LocSiteRefVo hospital)
{
	if(hospital == null || hospital.getID_Location()== null)
		throw new CodingRuntimeException("Can not list Wards for a null Hospital Id.");
	
	OrganisationAndLocation organisationAndLocation = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return organisationAndLocation.listActiveWardsForHospitalLite(hospital);
}
 
Example 8
Project: AvoinApotti   File: TransfersImpl.java   Source Code and License 5 votes vote down vote up
public LocationLiteVoCollection listWards(Integer hospitalID, String searchName)
{
	OrganisationAndLocation implLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	LocationRefVo voRef = new LocationRefVo();
	voRef.setID_Location(hospitalID);
	return implLoc.listActiveWardsForHospitalByNameLite(voRef, searchName);
}
 
Example 9
Project: AvoinApotti   File: STHKCurrentInpatientListComponentImpl.java   Source Code and License 5 votes vote down vote up
public LocationLiteVoCollection listWards(Integer hospitalID, String searchName)
{
	OrganisationAndLocation implLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	LocationRefVo voRef = new LocationRefVo();
	voRef.setID_Location(hospitalID);
	return implLoc.listActiveWardsForHospitalByNameLite(voRef, searchName);
}
 
Example 10
Project: AvoinApotti   File: PendingElectiveAdmissionsListELComponentImpl.java   Source Code and License 5 votes vote down vote up
public ims.core.vo.LocationLiteVoCollection listWards(Integer hospitalID, String searchName)
{
	OrganisationAndLocation implLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	LocationRefVo voRef = new LocationRefVo();
	voRef.setID_Location(hospitalID);
	return implLoc.listActiveWardsForHospitalByNameLite(voRef, searchName);
}
 
Example 11
Project: AvoinApotti   File: AdmissionDetailsImpl.java   Source Code and License 5 votes vote down vote up
/**
* Method used to retrieve active wards for in the same hospital as given ward.
*/
public LocationLiteVoCollection listWards(LocationRefVo ward)
{
	LocationRefVo hospital = null;

	// If the hospital is null or not found in the database then return no wards
	if (ward == null || !ward.getID_LocationIsNotNull())
		return null;
	
	// Search for the first parent of type hospital
	hospital = getHospitalForWard(ward);
	
	if (hospital == null)
		return null;
	
	OrganisationAndLocation implLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	LocShortMappingsVoCollection locationShortVoMap = implLoc.listActiveWardsForHospital(hospital);
	
	if (locationShortVoMap == null || locationShortVoMap.size() == 0)
		return null;
	
	LocationLiteVoCollection results = new LocationLiteVoCollection();
	
	for (LocShortMappingsVo location : locationShortVoMap)
		results.add(location);
	
	return results;
}
 
Example 12
Project: AvoinApotti   File: STHKPendingElectiveAdmissionsListComponentImpl.java   Source Code and License 5 votes vote down vote up
public LocationLiteVoCollection listWards(Integer hospitalID, String searchName)
{
	OrganisationAndLocation implLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	LocationRefVo voRef = new LocationRefVo();
	voRef.setID_Location(hospitalID);
	return implLoc.listActiveWardsForHospitalByNameLite(voRef, searchName);
}
 
Example 13
Project: AvoinApotti   File: PendingEmergencyAdmissionsImpl.java   Source Code and License 5 votes vote down vote up
public LocationLiteVoCollection listWards(Integer hospitalID, String searchName) 
{
	OrganisationAndLocation implLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	LocationRefVo voRef = new LocationRefVo();
	voRef.setID_Location(hospitalID);
	return implLoc.listActiveWardsForHospitalByNameLite(voRef, searchName);
}
 
Example 14
Project: AvoinApotti   File: WardViewImpl.java   Source Code and License 5 votes vote down vote up
public ims.core.vo.LocationLiteVoCollection listWardsForCurrentLocation(ILocation location)
{
	if(location == null)
		return null;
	
	OrganisationAndLocation implLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	LocationRefVo voRef = new LocationRefVo();
	voRef.setID_Location(location.getID());
	return implLoc.listActiveWardsForHospitalLite(voRef).sort();
}
 
Example 15
Project: AvoinApotti   File: MyOrderImpl.java   Source Code and License 5 votes vote down vote up
public LocationLiteVoCollection listActiveOutpatientDepartment(LocationRefVo hospital) 
{
	if(hospital == null || !hospital.getID_LocationIsNotNull())
		throw new CodingRuntimeException("Can not list Outpatient Departments on null Hospital Id.");
	
	OrganisationAndLocation orgLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	return orgLoc.listActiveOutpatDeptsForHospitalByNameLite(hospital, null);
}
 
Example 16
Project: AvoinApotti   File: SelectandOrderImpl.java   Source Code and License 5 votes vote down vote up
public LocationLiteVoCollection listLocationLiteForReferralContract(CatsReferralRefVo referral, Boolean includePathandRad)
{		
	if (referral == null)
		throw new CodingRuntimeException("referral cannot be null in method listLocationLiteForReferralContract");
	if (includePathandRad == null)
		throw new CodingRuntimeException("includePathandRad cannot be null in method listLocationLiteForReferralContract");

	DomainFactory factory = getDomainFactory();
	
	List ccs = factory.find(" select catsRef.contract from CatsReferral as catsRef where catsRef.id = " + referral.getID_CatsReferral());
	if(ccs != null && ccs.size() > 0)
	{
		ContractConfig doCC = (ContractConfig) ccs.get(0);
		if (doCC.getContractOrganisation() != null)
		{
			OrganisationRefVo voOrgRef = new OrganisationRefVo();
			voOrgRef.setID_Organisation(doCC.getContractOrganisation().getId());
			
			OrganisationAndLocation impl = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
			if(includePathandRad)
				return impl.listLocationByOrganisationIncludingPathAndRadTypes(voOrgRef);
			else
				return impl.listLocationByOrganisation(voOrgRef, "");
		}
		return null;
	}

	return null;
}
 
Example 17
Project: AvoinApotti   File: BookTheatreSlotDetailDialogImpl.java   Source Code and License 5 votes vote down vote up
public LocationLiteVoCollection listWardsForCurrentLocation(ILocation location)
{
	if(location == null)
		return null;

	OrganisationAndLocation implLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	LocationRefVo voRef = new LocationRefVo();
	voRef.setID_Location(location.getID());

	return implLoc.listActiveWardsForHospitalLite(voRef).sort();

}
 
Example 18
Project: AvoinApotti   File: NewElectiveListTCIErodDialogImpl.java   Source Code and License 5 votes vote down vote up
public LocationLiteVoCollection listWards(String name, LocationRefVo locationRef)//WDEV-18388
{
	if(locationRef == null)
		throw new CodingRuntimeException("Cannot get Location on null on null LocationRef.");
	
	OrganisationAndLocation impl = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return impl.listActiveWardsForHospitalByNameLite(locationRef, name);//WDEV-18388
}
 
Example 19
Project: AvoinApotti   File: TheatreSessionImpl.java   Source Code and License 4 votes vote down vote up
/**
* List Oraganisations
*/
public ims.core.vo.OrganisationVoCollection listOrganisation(ims.core.vo.OrganisationVo organisation)
{
	OrganisationAndLocation org = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return org.listOrganisation(organisation, Boolean.TRUE, Boolean.TRUE);
}
 
Example 20
Project: AvoinApotti   File: MDTDetailsImpl.java   Source Code and License 4 votes vote down vote up
public LocationLiteVoCollection listActiveLocations() 
{
	OrganisationAndLocation orgLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	return orgLoc.listActiveLocSiteLite();
}
 
Example 21
Project: AvoinApotti   File: ChemotherapyDetailsImpl.java   Source Code and License 4 votes vote down vote up
public LocSiteLiteVoCollection listLocSite(String locationName)
{
	OrganisationAndLocation organisationAndLocation = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	return organisationAndLocation.listLocSite(locationName);
}
 
Example 22
Project: AvoinApotti   File: PathologyReportImpl.java   Source Code and License 4 votes vote down vote up
public OrgLiteVoCollection listOrganisationsLite(OrgShortVo filter) 
{
	OrganisationAndLocation org = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return org.listOrganisationsLite(filter);
}
 
Example 23
Project: AvoinApotti   File: CancerreferralDetailsImpl.java   Source Code and License 4 votes vote down vote up
/**
* List Organisations for given search criteria
*/
public ims.core.vo.OrganisationVoCollection listOrganisation(ims.core.vo.OrganisationVo organisation)
{
	OrganisationAndLocation org = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return org.listOrganisation(organisation, Boolean.TRUE, Boolean.TRUE);
}
 
Example 24
Project: AvoinApotti   File: RadioTherapyDetailsImpl.java   Source Code and License 4 votes vote down vote up
public LocSiteLiteVoCollection listLocSite(String locationName)
{
	OrganisationAndLocation locSite = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return locSite.listLocSite(locationName);
}
 
Example 25
Project: AvoinApotti   File: PatientListsImpl.java   Source Code and License 4 votes vote down vote up
public LocShortMappingsVoCollection listActiveWards(String name) 
{ 
	OrganisationAndLocation impl = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);		
	return impl.listActiveWardsForHospital(null);
}
 
Example 26
Project: AvoinApotti   File: PatientListsImpl.java   Source Code and License 4 votes vote down vote up
private void populatePasContactFromDtoInpatient(PasContactVo voPasContact, InpatientlistRecord dtoInpatient)
{
	String extSystem = ConfigFlag.DOM.DEMOGRAPHICS_EXT_SYSTEM.getValue();			
	LocShortVo voLoc = new LocShortVo();		
	OrganisationAndLocation locImpl = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class); 
	voLoc = locImpl.getLocationByLocalCode(dtoInpatient.Rescode,LocationType.WARD);
	voPasContact.setLocation(voLoc);
					
	Specialty specialty = (Specialty)getLookupService().getLocalLookup(Specialty.class, Specialty.TYPE_ID, extSystem, dtoInpatient.Specialty);					
	voPasContact.setSpecialty(specialty);			

	//Contact Number
	voPasContact.setContactNumber(dtoInpatient.Contactno);		
	try 
	{
		//Discharge Date
		voPasContact.setDischargeDateTime(dtoInpatient.Dischargedate == "" || dtoInpatient.Dischargedate == null ? null : new DateTime (dtoInpatient.Dischargedate));
	} 
	catch (ParseException e) 
	{
		voPasContact.setDischargeDateTime(null);
		e.printStackTrace();
	}
			
	PatientShort voPatientShort = new PatientShort();

	HcpAdmin hcpAdmin = (HcpAdmin)getDomainImpl(HcpAdminImpl.class);
	MedicWithMappingsLiteVo voMedicWithMappingsLite = hcpAdmin.getMedicMedicMappingsByPasCode(dtoInpatient.Hcpcode);
	voPasContact.setConsultant(voMedicWithMappingsLite == null ? null : voMedicWithMappingsLite);
	
	voPatientShort.setName(dtoInpatient.Snm, dtoInpatient.Fnm1, null);	

	voPatientShort.addId(PatIdType.HOSPNUM, dtoInpatient.Hospnum);						
	voPatientShort.addId(PatIdType.CHARTNUM, dtoInpatient.Chartnum);						

	voPatientShort.setDob(dtoInpatient.Dob == "" ? null : new PartialDate(dtoInpatient.Dob));	
	
	if(dtoInpatient.Dod != null && dtoInpatient.Dod != "")
	{
		try {voPatientShort.setDod(new Date(dtoInpatient.Dod,DateFormat.ISO));
		} catch (ParseException e2) {
			e2.printStackTrace();
		}
	}
	
	voPatientShort.calculateAge();
	voPatientShort.setWard(voPasContact.getLocation());		
	voPatientShort.setSex((Sex)getLookupService().getLocalLookup(Sex.class, Sex.TYPE_ID, extSystem, dtoInpatient.Sex));
	voPasContact.setPatient(voPatientShort);			
	
	voPasContact.setGPCode(dtoInpatient.Gpcode); 
	
	if (dtoInpatient.Documentstatus != ""  && Integer.valueOf(dtoInpatient.Documentstatus).intValue() == DocumentStatus.LETTERREQUIRED.getId())
	{ 
		voPasContact.setDocumentStatus((DocumentStatus)getLookupService().getLookupInstance(DocumentStatus.class,Integer.valueOf(dtoInpatient.Documentstatus).intValue()));
	}
	else				
	{
		if (isLetterRequired(voMedicWithMappingsLite, specialty ,null, null) == Boolean.FALSE)
			voPasContact.setDocumentStatus(DocumentStatus.NOLETTERREQUIRED);
		else
			voPasContact.setDocumentStatus(DocumentStatus.LETTERREQUIRED);
	}
}
 
Example 27
Project: AvoinApotti   File: CorrespondenceOutpatientListImpl.java   Source Code and License 4 votes vote down vote up
public ims.core.vo.LocationLiteVoCollection listActiveLocations()
{
	OrganisationAndLocation orgLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	return orgLoc.listActiveLocSiteLite();
}
 
Example 28
Project: AvoinApotti   File: CorrespondenceOutpatientListImpl.java   Source Code and License 4 votes vote down vote up
public LocationLiteVoCollection listActiveHospitalsLite() {
	OrganisationAndLocation orgLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	return orgLoc.listActiveHospitalsLite();
}
 
Example 29
Project: AvoinApotti   File: ClinicCorrespondenceListImpl.java   Source Code and License 4 votes vote down vote up
public ims.core.vo.LocationLiteVoCollection listActiveLocations()
{
	OrganisationAndLocation orgLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	return orgLoc.listActiveLocSiteLite();
}
 
Example 30
Project: AvoinApotti   File: ClinicCorrespondenceListImpl.java   Source Code and License 4 votes vote down vote up
public ims.core.vo.LocationLiteVoCollection listActiveHospitalsLite()
{
	OrganisationAndLocation orgLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	return orgLoc.listActiveHospitalsLite();
}
 
Example 31
Project: AvoinApotti   File: CorrespondenceInpatientListImpl.java   Source Code and License 4 votes vote down vote up
/**
* listActiveHospitals
*/
public ims.core.vo.LocShortMappingsVoCollection listActiveHospitals()
{
	OrganisationAndLocation locImpl = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return locImpl.listActiveHospitals();
}
 
Example 32
Project: AvoinApotti   File: CorrespondenceInpatientListImpl.java   Source Code and License 4 votes vote down vote up
public ims.core.vo.LocShortMappingsVoCollection listActiveWardsForHospital(ims.core.resource.place.vo.LocationRefVo hospital)
{
	OrganisationAndLocation locImpl = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return locImpl.listActiveWardsForHospital(hospital);
}
 
Example 33
Project: AvoinApotti   File: EDischargePatientReadyToLeaveSTHKComponentImpl.java   Source Code and License 4 votes vote down vote up
public ims.core.vo.LocationLiteVoCollection listActiveWardsForHospitalLite(ims.core.resource.place.vo.LocationRefVo hospital)
{
	OrganisationAndLocation impl = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return impl.listActiveWardsForHospitalLite(hospital);
}
 
Example 34
Project: AvoinApotti   File: HospitalReportImpl.java   Source Code and License 4 votes vote down vote up
public LocMostVoCollection listLocations(LocMostVo locationFilter)
{
	OrganisationAndLocation locImpl = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return locImpl.listLocation(locationFilter).sort();
}
 
Example 35
Project: AvoinApotti   File: SecurityTokenWebServicesHandlerProvider.java   Source Code and License 4 votes vote down vote up
public ILocation getLocation(Integer locationId)
{	
	OrganisationAndLocation orgImpl = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return orgImpl.getLocation(locationId);
}
 
Example 36
Project: AvoinApotti   File: InpatientTransferDialogImpl.java   Source Code and License 4 votes vote down vote up
public ims.core.vo.LocationLiteVoCollection listWardsForHospital(ims.core.resource.place.vo.LocationRefVo hospital)
{
	OrganisationAndLocation orgAdmin = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	return orgAdmin.listActiveWardsForHospitalByNameLite(hospital, null);
}
 
Example 37
Project: AvoinApotti   File: DemoreferralDetailsImpl.java   Source Code and License 4 votes vote down vote up
/**
* List Organisations for given search criteria
*/
public ims.core.vo.OrganisationVoCollection listOrganisation(ims.core.vo.OrganisationVo organisation)
{
	OrganisationAndLocation org = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return org.listOrganisation(organisation, Boolean.TRUE, Boolean.TRUE);
}
 
Example 38
Project: AvoinApotti   File: DemographicsImpl.java   Source Code and License 4 votes vote down vote up
public OrganisationVo getOrganisationByTaxonomyType(String extId,TaxonomyType taxonomyType) 
{
	OrganisationAndLocation impl = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return impl.getOrganisationByTaxonomyType(extId, taxonomyType);
}
 
Example 39
Project: AvoinApotti   File: TransfersImpl.java   Source Code and License 4 votes vote down vote up
public LocationLiteVo getWard(LocationRefVo voWardRef) 
{
	OrganisationAndLocation implLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	return implLoc.getLocation(voWardRef.getID_Location());
}
 
Example 40
Project: AvoinApotti   File: STHKCurrentInpatientListComponentImpl.java   Source Code and License 4 votes vote down vote up
public LocationLiteVo getWard(LocationRefVo voWardRef) 
{
	OrganisationAndLocation implLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	return implLoc.getLocation(voWardRef.getID_Location());
}
 
Example 41
Project: AvoinApotti   File: STHKCurrentInpatientListComponentImpl.java   Source Code and License 4 votes vote down vote up
public LocationLiteVoCollection listActiveHospitalsLite()
{
	OrganisationAndLocation impl = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return impl.listActiveHospitalsLite();		
}
 
Example 42
Project: AvoinApotti   File: PendingElectiveAdmissionsListELComponentImpl.java   Source Code and License 4 votes vote down vote up
public LocationLiteVo getWard(ims.core.resource.place.vo.LocationRefVo voWardRef)
{
	OrganisationAndLocation implLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	return implLoc.getLocation(voWardRef.getID_Location());
}
 
Example 43
Project: AvoinApotti   File: PendingElectiveAdmissionsListELComponentImpl.java   Source Code and License 4 votes vote down vote up
public ims.core.vo.LocationLiteVoCollection listActiveHospitalsLite()
{
	OrganisationAndLocation impl = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return impl.listActiveHospitalsLite();
}
 
Example 44
Project: AvoinApotti   File: ReportRunnerDialogImpl.java   Source Code and License 4 votes vote down vote up
public OrgShortVoCollection listOrganisationsShort(OrgShortVo filter)
{
	OrganisationAndLocation organisationAndLocation = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return organisationAndLocation.listOrganisationsShort(filter);
}
 
Example 45
Project: AvoinApotti   File: ReportRunnerDialogImpl.java   Source Code and License 4 votes vote down vote up
public LocSiteLiteVoCollection listLocSite(String locationName)
{
	OrganisationAndLocation organisationAndLocation = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return organisationAndLocation.listLocSite(locationName);
}
 
Example 46
Project: AvoinApotti   File: ReportRunnerDialogImpl.java   Source Code and License 4 votes vote down vote up
public LocationLiteVoCollection listLocationByName(String locationName)
{
	OrganisationAndLocation organisationAndLocation = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return organisationAndLocation.listLocationByName(locationName);
}
 
Example 47
Project: AvoinApotti   File: DocumentWorklistImpl.java   Source Code and License 4 votes vote down vote up
public ILocation[] listActiveHospitalsLite()
{
	OrganisationAndLocation orgLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	LocationLiteVoCollection hosps = orgLoc.listActiveHospitalsLite();
	return (hosps == null || hosps.size() == 0) ? null : hosps.toILocationArray();
}
 
Example 48
Project: AvoinApotti   File: BedInfoDialogImpl.java   Source Code and License 4 votes vote down vote up
public LocationLiteVoCollection listActiveHospitalsLite()
{
	OrganisationAndLocation impl = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return impl.listActiveHospitalsLite();
}
 
Example 49
Project: AvoinApotti   File: BedInfoDialogImpl.java   Source Code and License 4 votes vote down vote up
public LocationLiteVoCollection listActiveWardsForHospitalLite(LocationRefVo hospital)
{
	OrganisationAndLocation impl = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return impl.listActiveWardsForHospitalLite(hospital);
}
 
Example 50
Project: AvoinApotti   File: DementiaWorklistImpl.java   Source Code and License 4 votes vote down vote up
public ims.core.vo.LocationLiteVoCollection listWards(ims.core.resource.place.vo.LocationRefVo hospital, String wardName)
{
	OrganisationAndLocation implLoc = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return implLoc.listActiveWardsForHospitalByNameLite(hospital, wardName);
}
 
Example 51
Project: AvoinApotti   File: OutpatientListImpl.java   Source Code and License 4 votes vote down vote up
public LocationLiteVoCollection listActiveHospitalsLite() {
	OrganisationAndLocation orgLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	return orgLoc.listActiveHospitalsLite();
}
 
Example 52
Project: AvoinApotti   File: AdtTransferDialogImpl.java   Source Code and License 4 votes vote down vote up
public LocationLiteVoCollection listWardsForHospital(LocationRefVo hospital)
{
	OrganisationAndLocation orgAdmin = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	return orgAdmin.listActiveWardsForHospitalByNameLite(hospital, null);
}
 
Example 53
Project: AvoinApotti   File: DemographicsComponentImpl.java   Source Code and License 4 votes vote down vote up
public OrganisationVo getOrganisationByTaxonomyType(String extId,TaxonomyType taxonomyType) 
{
	OrganisationAndLocation impl = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return impl.getOrganisationByTaxonomyType(extId, taxonomyType);
}
 
Example 54
Project: AvoinApotti   File: STHKPendingElectiveAdmissionsListComponentImpl.java   Source Code and License 4 votes vote down vote up
public ims.core.vo.LocationLiteVo getWard(ims.core.resource.place.vo.LocationRefVo voWardRef)
{
	OrganisationAndLocation implLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	return implLoc.getLocation(voWardRef.getID_Location());
}
 
Example 55
Project: AvoinApotti   File: STHKPendingElectiveAdmissionsListComponentImpl.java   Source Code and License 4 votes vote down vote up
public LocationLiteVoCollection listActiveHospitalsLite()
{
	OrganisationAndLocation impl = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return impl.listActiveHospitalsLite();		
}
 
Example 56
Project: AvoinApotti   File: PendingEmergencyAdmissionsImpl.java   Source Code and License 4 votes vote down vote up
public LocationLiteVoCollection listActiveHospitalsLite() 
{
	OrganisationAndLocation impl = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return impl.listActiveHospitalsLite();		
}
 
Example 57
Project: AvoinApotti   File: PendingEmergencyAdmissionsImpl.java   Source Code and License 4 votes vote down vote up
public LocationLiteVo getWard(LocationRefVo voWardRef) 
{
	OrganisationAndLocation implLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	return implLoc.getLocation(voWardRef.getID_Location());
}
 
Example 58
Project: AvoinApotti   File: InpatientListImpl.java   Source Code and License 4 votes vote down vote up
public ims.core.vo.LocShortMappingsVoCollection listActiveWardsForHospital(ims.core.resource.place.vo.LocationRefVo hospital)
{
	OrganisationAndLocation locImpl = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return locImpl.listActiveWardsForHospital(hospital);
}
 
Example 59
Project: AvoinApotti   File: InpatientListImpl.java   Source Code and License 4 votes vote down vote up
public LocationLiteVo getWard(LocationRefVo voWardRef)
{
	OrganisationAndLocation implLoc = (OrganisationAndLocation)getDomainImpl(OrganisationAndLocationImpl.class);
	return implLoc.getLocation(voWardRef.getID_Location());
}
 
Example 60
Project: AvoinApotti   File: InpatientListImpl.java   Source Code and License 4 votes vote down vote up
public LocationLiteVoCollection listActiveHospitals() 
{
	OrganisationAndLocation impl = (OrganisationAndLocation) getDomainImpl(OrganisationAndLocationImpl.class);
	return impl.listActiveHospitalsLite();		
}