Java Code Examples for ims.core.vo.LocSiteShortVoCollection

The following are top voted examples for showing how to use ims.core.vo.LocSiteShortVoCollection. 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: Logic.java   Source Code and License 6 votes vote down vote up
private LocSiteShortVoCollection getHeartsSurgery(LocSiteShortVoCollection surgeries,String gMCCode)
{
	if(ConfigFlag.HL7.HEARTS_GP_MODEL.getValue()&&surgeries!=null)
	{
		LocSiteShortVoCollection surgeriesForGp = new LocSiteShortVoCollection();
		for (LocSiteShortVo surgery : surgeries)
		{
			if(surgery.getIsActiveIsNotNull() && 
					surgery.getIsActive().equals(Boolean.TRUE)&&
					surgery.getPasCode()!=null&&
					gMCCode!=null&&
					gMCCode.trim()!=null&&
					surgery.getPasCode().toUpperCase().matches("\\S+_"+gMCCode.trim().toUpperCase()+"_\\S+")) //http://jira/browse/WDEV-15535 changed filter from PAS to GMC 
			{
				surgeriesForGp.add(surgery);
			}
		}
		return surgeriesForGp;
	}
	return null;
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateLocations()
{
	form.cmbSite().clear();
	
	LocSiteShortVoCollection locations = domain.getLocations();
	if(locations != null)
	{
		locations.sort();			
		for(int x = 0; x < locations.size(); x++)
		{
			LocSiteShortVo location = locations.get(x);
			if(location.getID_LocationIsNotNull() && location.getID_Location().intValue() != 0)
				form.cmbSite().newRow(location, location.getName(), form.getImages().Admin.LocationSite);
		}
	}
}
 
Example 3
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private LocSiteShortVoCollection getHeartsSurgery(LocSiteShortVoCollection surgeries, String gMCCode)
{
	if (ConfigFlag.HL7.HEARTS_GP_MODEL.getValue()&& surgeries != null)
	{
		LocSiteShortVoCollection surgeriesForGp = new LocSiteShortVoCollection();
		for (LocSiteShortVo surgery : surgeries)
		{
			if(surgery.getIsActiveIsNotNull() && 
					surgery.getIsActive().equals(Boolean.TRUE)&&
					surgery.getPasCode()!=null&&
					gMCCode!=null&&
					gMCCode.trim()!=null&&
					surgery.getPasCode().toUpperCase().matches("\\S+_"+gMCCode.trim().toUpperCase()+"_\\S+")) //http://jira/browse/WDEV-15535 changed filter from PAS to GMC 
			{
				surgeriesForGp.add(surgery);
			}
		}
		return surgeriesForGp;
	}
	return null;
}
 
Example 4
Project: openMAXIMS   File: GPSearchImpl.java   Source Code and License 6 votes vote down vote up
private LocSiteShortVoCollection getHeartsSurgery(LocSiteShortVoCollection surgeries, String gMCCode)
{
	if (ConfigFlag.HL7.HEARTS_GP_MODEL.getValue()&& surgeries != null)
	{
		LocSiteShortVoCollection surgeriesForGp = new LocSiteShortVoCollection();
		for (LocSiteShortVo surgery : surgeries)
		{
			if(surgery.getIsActiveIsNotNull() && 
					surgery.getIsActive().equals(Boolean.TRUE)&&
					surgery.getPasCode()!=null&&
					gMCCode!=null&&
					gMCCode.trim()!=null&&
					surgery.getPasCode().toUpperCase().matches("\\S+_"+gMCCode.trim().toUpperCase()+"_\\S+")) //http://jira/browse/WDEV-15535 changed filter from PAS to GMC 
			{
				surgeriesForGp.add(surgery);
			}
		}
		return surgeriesForGp;
	}
	return null;
	
}
 
Example 5
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateLocations()
{
	form.cmbSite().clear();
	
	LocSiteShortVoCollection locations = domain.getLocations();
	if(locations != null)
	{
		locations.sort();			
		for(int x = 0; x < locations.size(); x++)
		{
			LocSiteShortVo location = locations.get(x);
			if(location.getID_LocationIsNotNull() && location.getID_Location().intValue() != 0)
				form.cmbSite().newRow(location, location.getName(), form.getImages().Admin.LocationSite);
		}
	}
}
 
Example 6
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private LocSiteShortVoCollection getHeartsSurgery(LocSiteShortVoCollection surgeries,String gMCCode)
{
	if(ConfigFlag.HL7.HEARTS_GP_MODEL.getValue()&&surgeries!=null)
	{
		LocSiteShortVoCollection surgeriesForGp = new LocSiteShortVoCollection();
		for (LocSiteShortVo surgery : surgeries)
		{
			if(surgery.getIsActiveIsNotNull() && 
					surgery.getIsActive().equals(Boolean.TRUE)&&
					surgery.getPasCode()!=null&&
					gMCCode!=null&&
					gMCCode.trim()!=null&&
					surgery.getPasCode().toUpperCase().matches("\\S+_"+gMCCode.trim().toUpperCase()+"_\\S+")) //http://jira/browse/WDEV-15535 changed filter from PAS to GMC 
			{
				surgeriesForGp.add(surgery);
			}
		}
		return surgeriesForGp;
	}
	return null;
}
 
Example 7
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateLocations()
{
	form.cmbSite().clear();
	
	LocSiteShortVoCollection locations = domain.getLocations();
	if(locations != null)
	{
		locations.sort();			
		for(int x = 0; x < locations.size(); x++)
		{
			LocSiteShortVo location = locations.get(x);
			if(location.getID_LocationIsNotNull() && location.getID_Location().intValue() != 0)
				form.cmbSite().newRow(location, location.getName(), form.getImages().Admin.LocationSite);
		}
	}
}
 
Example 8
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private LocSiteShortVoCollection getHeartsSurgery(LocSiteShortVoCollection surgeries,String gMCCode)
{
	if(ConfigFlag.HL7.HEARTS_GP_MODEL.getValue()&&surgeries!=null)
	{
		LocSiteShortVoCollection surgeriesForGp = new LocSiteShortVoCollection();
		for (LocSiteShortVo surgery : surgeries)
		{
			if(surgery.getIsActiveIsNotNull() && 
					surgery.getIsActive().equals(Boolean.TRUE)&&
					surgery.getPasCode()!=null&&
					gMCCode!=null&&
					gMCCode.trim()!=null&&
					surgery.getPasCode().toUpperCase().matches("\\S+_"+gMCCode.trim().toUpperCase()+"_\\S+")) //http://jira/browse/WDEV-15535 changed filter from PAS to GMC 
			{
				surgeriesForGp.add(surgery);
			}
		}
		return surgeriesForGp;
	}
	return null;
}
 
Example 9
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateLocations()
{
	form.cmbSite().clear();
	
	LocSiteShortVoCollection locations = domain.getLocations();
	if(locations != null)
	{
		locations.sort();			
		for(int x = 0; x < locations.size(); x++)
		{
			LocSiteShortVo location = locations.get(x);
			if(location.getID_LocationIsNotNull() && location.getID_Location().intValue() != 0)
				form.cmbSite().newRow(location, location.getName(), form.getImages().Admin.LocationSite);
		}
	}
}
 
Example 10
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void loadLocations()
{
	LocSiteShortVoCollection locations = domain.getLocations();
	form.lyrDetails().tabLocations().grdLocations().getRows().clear();
	
	if(locations == null)
		return;
	
	locations.sort();		
	for(int x = 0; x < locations.size(); x++)
	{
		addLocationSite(locations.get(x));
	}
}
 
Example 11
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void populateSurgeriesInGrid(GPLiteWithPracticesVo voGpWithPractice, GpPracticeLiteVo gppractice, DynamicGridRow row)
{
	String gMCCode = null;

	if (voGpWithPractice != null)
	{
		if(voGpWithPractice.getCodeMappingsIsNotNull())
		{
			gMCCode = voGpWithPractice.getCodeMappings().getMappingValue(TaxonomyType.NAT_GP_CODE);
		}
	}

	if (gppractice.getSurgeries() != null && gppractice.getSurgeries().size() > 0)
	{	
		
		LocSiteShortVoCollection heartsSurgeries = getHeartsSurgery(gppractice.getSurgeries(), gMCCode);

		if (heartsSurgeries != null && heartsSurgeries.size() > 0)
		{
			populateSurgeriesFromCollection(voGpWithPractice, gppractice, row, heartsSurgeries);          
		}	

		else
		{	
			populateSurgeriesFromCollection(voGpWithPractice, gppractice, row, gppractice.getSurgeries()); 
		}
	}
}
 
Example 12
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void populateSurgeriesFromCollection(GPLiteWithPracticesVo voGpWithPractice,	GpPracticeLiteVo gppractice, DynamicGridRow row, LocSiteShortVoCollection surgeries)
{
	for (LocSiteShortVo surgery : surgeries)
	{	
		if (surgery == null || (surgery != null && !(Boolean.TRUE.equals(surgery.getIsActive()))))
			continue;	
		
		addSurgeryRow(voGpWithPractice, gppractice, row, surgery);
		
		row = null;
	}
}
 
Example 13
Project: openMAXIMS   File: GPSearchImpl.java   Source Code and License 5 votes vote down vote up
private GPLiteWithPracticesVoCollection filterGpsForGMCNumberAndPasCode(GPLiteWithPracticesVoCollection gpColl)
{
	if (gpColl == null || gpColl.size() == 0)
		return null;
	String gMCCode = null;
	GPLiteWithPracticesVoCollection filteredGps = new GPLiteWithPracticesVoCollection();

	for (int i=0;i<gpColl.size();i++)
	{	
		GPLiteWithPracticesVo voGpWithPractice = gpColl.get(i);

		if (voGpWithPractice != null)
		{
			if(voGpWithPractice.getCodeMappingsIsNotNull())
			{
				gMCCode = voGpWithPractice.getCodeMappings().getMappingValue(TaxonomyType.NAT_GP_CODE);
			}
			GpLiteToPracticeLiteVoCollection voPractices = voGpWithPractice.getPractices();
			for (int j=0;j<voPractices.size();j++)
			{
				GpLiteToPracticeLiteVo practiceWithSurg = voPractices.get(j);
				if (practiceWithSurg != null && practiceWithSurg.getPracticeIsNotNull() && practiceWithSurg.getPractice().getSurgeries() != null && practiceWithSurg.getPractice().getSurgeries().size() > 0)
				{	

					LocSiteShortVoCollection heartsSurgeries = getHeartsSurgery(practiceWithSurg.getPractice().getSurgeries(), gMCCode);
					if (heartsSurgeries != null && heartsSurgeries.size() > 0)
						filteredGps.add(voGpWithPractice);
				}
			}
		}
	}
	return filteredGps;
	
}
 
Example 14
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void loadLocations()
{
	LocSiteShortVoCollection locations = domain.getLocations();
	form.lyrDetails().tabLocations().grdLocations().getRows().clear();
	
	if(locations == null)
		return;
	
	locations.sort();		
	for(int x = 0; x < locations.size(); x++)
	{
		addLocationSite(locations.get(x));
	}
}
 
Example 15
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void loadLocations()
{
	LocSiteShortVoCollection locations = domain.getLocations();
	form.lyrDetails().tabLocations().grdLocations().getRows().clear();
	
	if(locations == null)
		return;
	
	locations.sort();		
	for(int x = 0; x < locations.size(); x++)
	{
		addLocationSite(locations.get(x));
	}
}
 
Example 16
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void loadLocations()
{
	LocSiteShortVoCollection locations = domain.getLocations();
	form.lyrDetails().tabLocations().grdLocations().getRows().clear();
	
	if(locations == null)
		return;
	
	locations.sort();		
	for(int x = 0; x < locations.size(); x++)
	{
		addLocationSite(locations.get(x));
	}
}
 
Example 17
Project: AvoinApotti   File: DemographicsImpl.java   Source Code and License 4 votes vote down vote up
public GpLiteToPracticeLiteVo synchronizeGPPracticeDetails(String strGPCode)  throws StaleObjectException, UniqueKeyViolationException
{
	Gp_practice gpPracticeRecord = (Gp_practice) getDTOInstance(Gp_practice.class);
	gpPracticeRecord.Filter.Gp_code = strGPCode;
	GP voGP = null;
	
	Result gpPracticeGetResult = gpPracticeRecord.get();
	if (gpPracticeGetResult != null)
		return null;
	
	Gp_practiceRecord gp_practice_record = gpPracticeRecord.DataCollection.get(0);
	OrganisationVo voSavedPractice = null;
	if (gpPracticeGetResult == null && gp_practice_record != null) 
	{
		// Extract the organisation which is in effect the practice and the location site
		// which is in effect the surgery and synchronise them withthe current date.			
		
		// If the Practice is in csp, get it and populate from dto, otherwise just populate from dto.
		try
		{
			voSavedPractice = saveOrganisation(populatePracticeFromDTORecord(gp_practice_record));
		}
		catch (UniqueKeyViolationException e)
		{
			// DARA TODO Comm Channels
		}
						
		voGP =  saveGP(populateGpFromDTORecord(gp_practice_record, voSavedPractice));
		
		GpLiteToPracticeLiteVo voGpLiteToPracticeLite = new GpLiteToPracticeLiteVo();
		// Just need a get here to see if you already have a gppracticeslite record.
		
		GpPracticeLiteVo voGpPracticeLite = new GpPracticeLiteVo();
		voGpPracticeLite.setAddress(voSavedPractice.getAddress());
		voGpPracticeLite.setID_Organisation(voSavedPractice.getID_Organisation());
		voGpPracticeLite.setIsActive(voSavedPractice.getIsActive());
		voGpPracticeLite.setName(voSavedPractice.getName());
		voGpPracticeLite.setType(OrganisationType.GPP);
		
		LocSiteShortVo voLocSiteShort = getLocSiteShortByTaxonomyType(gp_practice_record.Gp_practice_id, TaxonomyType.PAS);
		LocSiteShortVoCollection voCollLocations = new LocSiteShortVoCollection();
		voCollLocations.add(voLocSiteShort);
		voGpPracticeLite.setSurgeries(voCollLocations);
		
		voGpLiteToPracticeLite.setGp(voGP == null ? null : voGP);
		voGpLiteToPracticeLite.setPractice(voGpPracticeLite);
		return voGpLiteToPracticeLite;
		
	}
	
	return null;
	
	
}
 
Example 18
Project: openMAXIMS   File: DemographicsImpl.java   Source Code and License 4 votes vote down vote up
public GpLiteToPracticeLiteVo synchronizeGPPracticeDetails(String strGPCode)  throws StaleObjectException, UniqueKeyViolationException
{
	if (Boolean.TRUE.equals(ConfigFlag.GEN.USE_ELECTIVE_LIST_FUNCTIONALITY.getValue()))
		return null;

	Gp_practice gpPracticeRecord = (Gp_practice) getDTOInstance(Gp_practice.class);
	gpPracticeRecord.Filter.Gp_code = strGPCode;
	GP voGP = null;
	
	Result gpPracticeGetResult = gpPracticeRecord.get();
	if (gpPracticeGetResult != null)
		return null;
	
	Gp_practiceRecord gp_practice_record = gpPracticeRecord.DataCollection.get(0);
	OrganisationVo voSavedPractice = null;
	if (gpPracticeGetResult == null && gp_practice_record != null) 
	{
		// Extract the organisation which is in effect the practice and the location site
		// which is in effect the surgery and synchronise them withthe current date.			
		
		// If the Practice is in csp, get it and populate from dto, otherwise just populate from dto.
		try
		{
			voSavedPractice = saveOrganisation(populatePracticeFromDTORecord(gp_practice_record));
		}
		catch (UniqueKeyViolationException e)
		{
			// DARA TODO Comm Channels
		}
						
		voGP =  saveGP(populateGpFromDTORecord(gp_practice_record, voSavedPractice));
		
		GpLiteToPracticeLiteVo voGpLiteToPracticeLite = new GpLiteToPracticeLiteVo();
		// Just need a get here to see if you already have a gppracticeslite record.
		
		GpPracticeLiteVo voGpPracticeLite = new GpPracticeLiteVo();
		voGpPracticeLite.setAddress(voSavedPractice.getAddress());
		voGpPracticeLite.setID_Organisation(voSavedPractice.getID_Organisation());
		voGpPracticeLite.setIsActive(voSavedPractice.getIsActive());
		voGpPracticeLite.setName(voSavedPractice.getName());
		voGpPracticeLite.setType(OrganisationType.GPP);
		
		LocSiteShortVo voLocSiteShort = getLocSiteShortByTaxonomyType(gp_practice_record.Gp_practice_id, TaxonomyType.PAS);
		LocSiteShortVoCollection voCollLocations = new LocSiteShortVoCollection();
		voCollLocations.add(voLocSiteShort);
		voGpPracticeLite.setSurgeries(voCollLocations);
		
		voGpLiteToPracticeLite.setGp(voGP == null ? null : voGP);
		voGpLiteToPracticeLite.setPractice(voGpPracticeLite);
		return voGpLiteToPracticeLite;
		
	}
	
	return null;
	
	
}
 
Example 19
Project: openMAXIMS   File: PDSDemographicsImpl.java   Source Code and License 4 votes vote down vote up
public GpLiteToPracticeLiteVo synchronizeGPPracticeDetails(String strGPCode)  throws StaleObjectException, UniqueKeyViolationException
{
	if (Boolean.TRUE.equals(ConfigFlag.GEN.USE_ELECTIVE_LIST_FUNCTIONALITY.getValue()))
		return null;

	Gp_practice gpPracticeRecord = (Gp_practice) getDTOInstance(Gp_practice.class);
	gpPracticeRecord.Filter.Gp_code = strGPCode;
	GP voGP = null;
	
	Result gpPracticeGetResult = gpPracticeRecord.get();
	if (gpPracticeGetResult != null)
		return null;
	
	Gp_practiceRecord gp_practice_record = gpPracticeRecord.DataCollection.get(0);
	OrganisationVo voSavedPractice = null;
	if (gpPracticeGetResult == null && gp_practice_record != null) 
	{
		// Extract the organisation which is in effect the practice and the location site
		// which is in effect the surgery and synchronise them withthe current date.			
		
		// If the Practice is in csp, get it and populate from dto, otherwise just populate from dto.
		try
		{
			voSavedPractice = saveOrganisation(populatePracticeFromDTORecord(gp_practice_record));
		}
		catch (UniqueKeyViolationException e)
		{
			// DARA TODO Comm Channels
		}
						
		voGP =  saveGP(populateGpFromDTORecord(gp_practice_record, voSavedPractice));
		
		GpLiteToPracticeLiteVo voGpLiteToPracticeLite = new GpLiteToPracticeLiteVo();
		// Just need a get here to see if you already have a gppracticeslite record.
		
		GpPracticeLiteVo voGpPracticeLite = new GpPracticeLiteVo();
		voGpPracticeLite.setAddress(voSavedPractice.getAddress());
		voGpPracticeLite.setID_Organisation(voSavedPractice.getID_Organisation());
		voGpPracticeLite.setIsActive(voSavedPractice.getIsActive());
		voGpPracticeLite.setName(voSavedPractice.getName());
		voGpPracticeLite.setType(OrganisationType.GPP);
		
		LocSiteShortVo voLocSiteShort = getLocSiteShortByTaxonomyType(gp_practice_record.Gp_practice_id, TaxonomyType.PAS);
		LocSiteShortVoCollection voCollLocations = new LocSiteShortVoCollection();
		voCollLocations.add(voLocSiteShort);
		voGpPracticeLite.setSurgeries(voCollLocations);
		
		voGpLiteToPracticeLite.setGp(voGP == null ? null : voGP);
		voGpLiteToPracticeLite.setPractice(voGpPracticeLite);
		return voGpLiteToPracticeLite;
		
	}
	
	return null;
	
	
}
 
Example 20
Project: openMAXIMS   File: DemographicsImpl.java   Source Code and License 4 votes vote down vote up
public GpLiteToPracticeLiteVo synchronizeGPPracticeDetails(String strGPCode)  throws StaleObjectException, UniqueKeyViolationException
{
	Gp_practice gpPracticeRecord = (Gp_practice) getDTOInstance(Gp_practice.class);
	gpPracticeRecord.Filter.Gp_code = strGPCode;
	GP voGP = null;
	
	Result gpPracticeGetResult = gpPracticeRecord.get();
	if (gpPracticeGetResult != null)
		return null;
	
	Gp_practiceRecord gp_practice_record = gpPracticeRecord.DataCollection.get(0);
	OrganisationVo voSavedPractice = null;
	if (gpPracticeGetResult == null && gp_practice_record != null) 
	{
		// Extract the organisation which is in effect the practice and the location site
		// which is in effect the surgery and synchronise them withthe current date.			
		
		// If the Practice is in csp, get it and populate from dto, otherwise just populate from dto.
		try
		{
			voSavedPractice = saveOrganisation(populatePracticeFromDTORecord(gp_practice_record));
		}
		catch (UniqueKeyViolationException e)
		{
			// DARA TODO Comm Channels
		}
						
		voGP =  saveGP(populateGpFromDTORecord(gp_practice_record, voSavedPractice));
		
		GpLiteToPracticeLiteVo voGpLiteToPracticeLite = new GpLiteToPracticeLiteVo();
		// Just need a get here to see if you already have a gppracticeslite record.
		
		GpPracticeLiteVo voGpPracticeLite = new GpPracticeLiteVo();
		voGpPracticeLite.setAddress(voSavedPractice.getAddress());
		voGpPracticeLite.setID_Organisation(voSavedPractice.getID_Organisation());
		voGpPracticeLite.setIsActive(voSavedPractice.getIsActive());
		voGpPracticeLite.setName(voSavedPractice.getName());
		voGpPracticeLite.setType(OrganisationType.GPP);
		
		LocSiteShortVo voLocSiteShort = getLocSiteShortByTaxonomyType(gp_practice_record.Gp_practice_id, TaxonomyType.PAS);
		LocSiteShortVoCollection voCollLocations = new LocSiteShortVoCollection();
		voCollLocations.add(voLocSiteShort);
		voGpPracticeLite.setSurgeries(voCollLocations);
		
		voGpLiteToPracticeLite.setGp(voGP == null ? null : voGP);
		voGpLiteToPracticeLite.setPractice(voGpPracticeLite);
		return voGpLiteToPracticeLite;
		
	}
	
	return null;
	
	
}
 
Example 21
Project: openmaxims-linux   File: DemographicsImpl.java   Source Code and License 4 votes vote down vote up
public GpLiteToPracticeLiteVo synchronizeGPPracticeDetails(String strGPCode)  throws StaleObjectException, UniqueKeyViolationException
{
	Gp_practice gpPracticeRecord = (Gp_practice) getDTOInstance(Gp_practice.class);
	gpPracticeRecord.Filter.Gp_code = strGPCode;
	GP voGP = null;
	
	Result gpPracticeGetResult = gpPracticeRecord.get();
	if (gpPracticeGetResult != null)
		return null;
	
	Gp_practiceRecord gp_practice_record = gpPracticeRecord.DataCollection.get(0);
	OrganisationVo voSavedPractice = null;
	if (gpPracticeGetResult == null && gp_practice_record != null) 
	{
		// Extract the organisation which is in effect the practice and the location site
		// which is in effect the surgery and synchronise them withthe current date.			
		
		// If the Practice is in csp, get it and populate from dto, otherwise just populate from dto.
		try
		{
			voSavedPractice = saveOrganisation(populatePracticeFromDTORecord(gp_practice_record));
		}
		catch (UniqueKeyViolationException e)
		{
			// DARA TODO Comm Channels
		}
						
		voGP =  saveGP(populateGpFromDTORecord(gp_practice_record, voSavedPractice));
		
		GpLiteToPracticeLiteVo voGpLiteToPracticeLite = new GpLiteToPracticeLiteVo();
		// Just need a get here to see if you already have a gppracticeslite record.
		
		GpPracticeLiteVo voGpPracticeLite = new GpPracticeLiteVo();
		voGpPracticeLite.setAddress(voSavedPractice.getAddress());
		voGpPracticeLite.setID_Organisation(voSavedPractice.getID_Organisation());
		voGpPracticeLite.setIsActive(voSavedPractice.getIsActive());
		voGpPracticeLite.setName(voSavedPractice.getName());
		voGpPracticeLite.setType(OrganisationType.GPP);
		
		LocSiteShortVo voLocSiteShort = getLocSiteShortByTaxonomyType(gp_practice_record.Gp_practice_id, TaxonomyType.PAS);
		LocSiteShortVoCollection voCollLocations = new LocSiteShortVoCollection();
		voCollLocations.add(voLocSiteShort);
		voGpPracticeLite.setSurgeries(voCollLocations);
		
		voGpLiteToPracticeLite.setGp(voGP == null ? null : voGP);
		voGpLiteToPracticeLite.setPractice(voGpPracticeLite);
		return voGpLiteToPracticeLite;
		
	}
	
	return null;
	
	
}