Java Code Examples for ims.core.vo.OrganisationVo.setLocationSites()

The following are Jave code examples for showing how to use setLocationSites() of the ims.core.vo.OrganisationVo class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
/**
 * creates a LocSiteCollection with one LocSiteVo. point is to create a 1 to 1 mapping 
 * of practice - surgery for sites who are not visibly using surgeries. 
 * 
 * @param practice
 * @return practice with 1 surgery, populated from the screen (matches practice values)
 */
private OrganisationVo createOneMatchingChildSurgery(OrganisationVo practice) 
{
	LocSiteVoCollection surgeryCollection = new LocSiteVoCollection();
	LocSiteVo surgery = new LocSiteVo();
	surgery = populateSurgeryData(surgery);
	surgery.setName(surgery.getName() + " surgery");
	surgery.setCodeMappings(null);  // do not want to be creating duplicate location mappings. 
	surgery.setIsVirtual(false);  //wdev-4093 
	surgeryCollection.add(surgery);
	surgeryCollection.get(0).setParentOrganisation(practice);
	practice.setLocationSites(surgeryCollection);
		
	return practice;
}
 
Example 2
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
/**
 * creates a LocSiteCollection with one LocSiteVo. point is to create a 1 to 1 mapping 
 * of practice - surgery for sites who are not visibly using surgeries. 
 * 
 * @param practice
 * @return practice with 1 surgery, populated from the screen (matches practice values)
 */
private OrganisationVo createOneMatchingChildSurgery(OrganisationVo practice) 
{
	LocSiteVoCollection surgeryCollection = new LocSiteVoCollection();
	LocSiteVo surgery = new LocSiteVo();
	surgery = populateSurgeryData(surgery);
	surgery.setName(surgery.getName() + " surgery");
	surgery.setCodeMappings(null);  // do not want to be creating duplicate location mappings. 
	surgery.setIsVirtual(false);  //wdev-4093 
	surgeryCollection.add(surgery);
	surgeryCollection.get(0).setParentOrganisation(practice);
	practice.setLocationSites(surgeryCollection);
		
	return practice;
}
 
Example 3
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
/**
 * creates a LocSiteCollection with one LocSiteVo. point is to create a 1 to 1 mapping 
 * of practice - surgery for sites who are not visibly using surgeries. 
 * 
 * @param practice
 * @return practice with 1 surgery, populated from the screen (matches practice values)
 */
private OrganisationVo createOneMatchingChildSurgery(OrganisationVo practice) 
{
	LocSiteVoCollection surgeryCollection = new LocSiteVoCollection();
	LocSiteVo surgery = new LocSiteVo();
	surgery = populateSurgeryData(surgery);
	surgery.setName(surgery.getName() + " surgery");
	surgery.setCodeMappings(null);  // do not want to be creating duplicate location mappings. 
	surgery.setIsVirtual(false);  //wdev-4093 
	surgeryCollection.add(surgery);
	surgeryCollection.get(0).setParentOrganisation(practice);
	practice.setLocationSites(surgeryCollection);
		
	return practice;
}
 
Example 4
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 5 votes
/**
 * creates a LocSiteCollection with one LocSiteVo. point is to create a 1 to 1 mapping 
 * of practice - surgery for sites who are not visibly using surgeries. 
 * 
 * @param practice
 * @return practice with 1 surgery, populated from the screen (matches practice values)
 */
private OrganisationVo createOneMatchingChildSurgery(OrganisationVo practice) 
{
	LocSiteVoCollection surgeryCollection = new LocSiteVoCollection();
	LocSiteVo surgery = new LocSiteVo();
	surgery = populateSurgeryData(surgery);
	surgery.setName(surgery.getName() + " surgery");
	surgery.setCodeMappings(null);  // do not want to be creating duplicate location mappings. 
	surgery.setIsVirtual(false);  //wdev-4093 
	surgeryCollection.add(surgery);
	surgeryCollection.get(0).setParentOrganisation(practice);
	practice.setLocationSites(surgeryCollection);
		
	return practice;
}