Java Code Examples for ims.core.vo.PersonAddress.getAddressTypeIsNotNull()

The following are Jave code examples for showing how to use getAddressTypeIsNotNull() of the ims.core.vo.PersonAddress class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: AvoinApotti   File: VoMapper.java   View Source Code Vote up 5 votes
protected final void renderAddressVoToXAD(PersonAddress pa, XAD xad,ProviderSystemVo providerSystem) throws Exception
{
	LOG.debug("VoMapper renderAddressVoToXAD: entry");
	if (pa == null)
		return;

	xad.getStreetAddress().getStreetOrMailingAddress().setValue(pa.getLine1());
	xad.getOtherDesignation().setValue(pa.getLine2());
	xad.getCity().setValue(pa.getLine3());
	xad.getStateOrProvince().setValue(pa.getLine4());
	xad.getOtherGeographicDesignation().setValue(pa.getLine5());
	xad.getZipOrPostalCode().setValue(pa.getPostCode());

	if (pa.getCountyIsNotNull())
		xad.getCountyParishCode().setValue(svc.getRemoteLookup(pa.getCounty().getID(), providerSystem.getCodeSystem().getText()));
	
	if(pa.getAddressTypeIsNotNull())
	{
		xad.getAddressType().setValue(svc.getRemoteLookup(pa.getAddressType().getID(), providerSystem.getCodeSystem().getText()));
	}
	else
	{
		xad.getAddressType().setValue(svc.getRemoteLookup(AddressType.PERMANENT.getID(), providerSystem.getCodeSystem().getText()));
	}

	LOG.debug("VoMapper renderAddressVoToXAD: exit (" + xad.toString() + ")");
}
 
Example 2
Project: openMAXIMS   File: VoMapper.java   View Source Code Vote up 5 votes
protected final void renderAddressVoToXAD(PersonAddress pa, XAD xad,ProviderSystemVo providerSystem) throws Exception
{
	LOG.debug("VoMapper renderAddressVoToXAD: entry");
	if (pa == null)
		return;

	xad.getStreetAddress().getStreetOrMailingAddress().setValue(pa.getLine1());
	xad.getOtherDesignation().setValue(pa.getLine2());
	xad.getCity().setValue(pa.getLine3());
	xad.getStateOrProvince().setValue(pa.getLine4());
	xad.getOtherGeographicDesignation().setValue(pa.getLine5());
	xad.getZipOrPostalCode().setValue(pa.getPostCode());

	if (pa.getCountyIsNotNull())
		xad.getCountyParishCode().setValue(svc.getRemoteLookup(pa.getCounty().getID(), providerSystem.getCodeSystem().getText()));
	
	if(pa.getAddressTypeIsNotNull())
	{
		xad.getAddressType().setValue(svc.getRemoteLookup(pa.getAddressType().getID(), providerSystem.getCodeSystem().getText()));
	}
	else
	{
		xad.getAddressType().setValue(svc.getRemoteLookup(AddressType.PERMANENT.getID(), providerSystem.getCodeSystem().getText()));
	}
	if(pa.getAreaOfResidenceIsNotNull()) //http://jira/browse/WDEV-19177
	{
		xad.getCensusTract().setValue(svc.getRemoteLookup(pa.getAreaOfResidence().getID(), providerSystem.getCodeSystem().getText()));
	}

	LOG.debug("VoMapper renderAddressVoToXAD: exit (" + xad.toString() + ")");
}
 
Example 3
Project: openMAXIMS   File: VoMapper.java   View Source Code Vote up 5 votes
protected final void renderAddressVoToXAD(PersonAddress pa, XAD xad,ProviderSystemVo providerSystem) throws Exception
{
	LOG.debug("VoMapper renderAddressVoToXAD: entry");
	if (pa == null)
		return;

	xad.getStreetAddress().getStreetOrMailingAddress().setValue(pa.getLine1());
	xad.getOtherDesignation().setValue(pa.getLine2());
	xad.getCity().setValue(pa.getLine3());
	xad.getStateOrProvince().setValue(pa.getLine4());
	xad.getOtherGeographicDesignation().setValue(pa.getLine5());
	xad.getZipOrPostalCode().setValue(pa.getPostCode());

	if (pa.getCountyIsNotNull())
		xad.getCountyParishCode().setValue(svc.getRemoteLookup(pa.getCounty().getID(), providerSystem.getCodeSystem().getText()));
	
	if(pa.getAddressTypeIsNotNull())
	{
		xad.getAddressType().setValue(svc.getRemoteLookup(pa.getAddressType().getID(), providerSystem.getCodeSystem().getText()));
	}
	else
	{
		xad.getAddressType().setValue(svc.getRemoteLookup(AddressType.PERMANENT.getID(), providerSystem.getCodeSystem().getText()));
	}

	LOG.debug("VoMapper renderAddressVoToXAD: exit (" + xad.toString() + ")");
}
 
Example 4
Project: openmaxims-linux   File: VoMapper.java   View Source Code Vote up 5 votes
protected final void renderAddressVoToXAD(PersonAddress pa, XAD xad,ProviderSystemVo providerSystem) throws Exception
{
	LOG.debug("VoMapper renderAddressVoToXAD: entry");
	if (pa == null)
		return;

	xad.getStreetAddress().getStreetOrMailingAddress().setValue(pa.getLine1());
	xad.getOtherDesignation().setValue(pa.getLine2());
	xad.getCity().setValue(pa.getLine3());
	xad.getStateOrProvince().setValue(pa.getLine4());
	xad.getOtherGeographicDesignation().setValue(pa.getLine5());
	xad.getZipOrPostalCode().setValue(pa.getPostCode());

	if (pa.getCountyIsNotNull())
		xad.getCountyParishCode().setValue(svc.getRemoteLookup(pa.getCounty().getID(), providerSystem.getCodeSystem().getText()));
	
	if(pa.getAddressTypeIsNotNull())
	{
		xad.getAddressType().setValue(svc.getRemoteLookup(pa.getAddressType().getID(), providerSystem.getCodeSystem().getText()));
	}
	else
	{
		xad.getAddressType().setValue(svc.getRemoteLookup(AddressType.PERMANENT.getID(), providerSystem.getCodeSystem().getText()));
	}

	LOG.debug("VoMapper renderAddressVoToXAD: exit (" + xad.toString() + ")");
}