Java Code Examples for ims.core.vo.HcpMinVo

The following are top voted examples for showing how to use ims.core.vo.HcpMinVo. 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: openMAXIMS   File: TrackingImpl.java   Source Code and License 6 votes vote down vote up
private EDPartialAdmissionForTrackingVo assembleCurrentpartialAdmission(EDPartialAdmissionForTrackingVo currentPartialAdmission, Date allocatedDateTime, LookupInstance specialty, Hcp consultant)
{
	if (currentPartialAdmission==null)
		currentPartialAdmission=new EDPartialAdmissionForTrackingVo();
	
	if(allocatedDateTime != null)//WDEV-23199
	{
		currentPartialAdmission.setAllocatedDateTime(new DateTime(allocatedDateTime));
	}
	
	if(specialty != null)
	{
		currentPartialAdmission.setSpecialty(assembleReferalSpecialty(specialty));
	}
	
	if(consultant != null)
	{
		HcpMinVo hcpMinVo = HcpMinVoAssembler.create(consultant);
		currentPartialAdmission.setAdmittingConsultant(hcpMinVo);
	}
	
	return currentPartialAdmission;
}
 
Example 2
Project: openMAXIMS   File: VoMapper.java   Source Code and License 6 votes vote down vote up
protected HcpMinVo getAttendingDoctor(PV1 pv1, ProviderSystemVo providerSystem) //WDEV-20278
	{
		HcpMinVo hcp=null;
		XCN[] xcns = pv1.getAttendingDoctor();
		if (xcns!=null&&xcns.length>0&&xcns[0]!=null)
		{
			hcp= populateHcpMinFromXCN(xcns[0],TaxonomyType.NAT_CONS_CODE);
		}
		if(hcp==null&&xcns.length>1&&xcns[1]!=null)
		{
			//WDEV-20278
//			hcp=populateHcpMinFromXCN(xcns[1],TaxonomyType.PAS);
			hcp = populateHcpMinFromXCN(xcns[1], providerSystem.getCodeSystem()); //WDEV-20278
		}
		return hcp;
	}
 
Example 3
Project: AvoinApotti   File: VoMapper.java   Source Code and License 5 votes vote down vote up
protected HcpMinVo getAttendingDoctor(PV1 pv1)
{
	HcpMinVo hcp=null;
	XCN[] xcns = pv1.getAttendingDoctor();
	if (xcns!=null&&xcns.length>0&&xcns[0]!=null)
	{
		hcp= populateHcpMinFromXCN(xcns[0],TaxonomyType.NAT_CONS_CODE);
	}
	if(hcp==null&&xcns.length>1&&xcns[1]!=null)
	{
		hcp=populateHcpMinFromXCN(xcns[1],TaxonomyType.PAS);
	}
	return hcp;
}
 
Example 4
Project: AvoinApotti   File: VoMapper.java   Source Code and License 5 votes vote down vote up
protected final HcpMinVo populateHcpMinFromXCN(XCN xcn, TaxonomyType taxType)
{
	String code = xcn.getIDNumber().getValue();
	if (code != null)
	{
		return mosAdmin.getHcpMinByTaxonomyType(code, taxType);
	}
	return null;
}
 
Example 5
Project: AvoinApotti   File: MosAdminImpl.java   Source Code and License 5 votes vote down vote up
public HcpMinVo getHcpMinByTaxonomyType(String extCode, TaxonomyType taxType)
{
	MemberOfStaff domMos = getDomMosByTaxonomyType(extCode, taxType);
	if (domMos == null)
		return null;
	else
	{
		return HcpMinVoAssembler.create(domMos.getHcp());
	}
}
 
Example 6
Project: AvoinApotti   File: BookTheatreSlotDetailDialogImpl.java   Source Code and License 5 votes vote down vote up
public HcpMinVo getHCPMin(HcpRefVo hcpRef)
{
	if (hcpRef == null || hcpRef.getID_Hcp()==null)
	{
		throw new CodingRuntimeException("Cannot get HCPMin for null ID");
	}
	
	DomainFactory factory = getDomainFactory();
	Hcp domHCP=(Hcp) factory.getDomainObject(Hcp.class, hcpRef.getID_Hcp());
	
	return HcpMinVoAssembler.create(domHCP);
}
 
Example 7
Project: openMAXIMS   File: VoMapper.java   Source Code and License 5 votes vote down vote up
protected final HcpMinVo populateHcpMinFromXCN(XCN xcn, TaxonomyType taxType)
{
	String code = xcn.getIDNumber().getValue();
	if (code != null)
	{
		return mosAdmin.getHcpMinByTaxonomyType(code, taxType);
	}
	return null;
}
 
Example 8
Project: openMAXIMS   File: MosAdminImpl.java   Source Code and License 5 votes vote down vote up
public HcpMinVo getHcpMinByTaxonomyType(String extCode, TaxonomyType taxType)
{
	MemberOfStaff domMos = getDomMosByTaxonomyType(extCode, taxType);
	if (domMos == null)
		return null;
	else
	{
		return HcpMinVoAssembler.create(domMos.getHcp());
	}
}
 
Example 9
Project: openMAXIMS   File: BookTheatreSlotDetailDialogImpl.java   Source Code and License 5 votes vote down vote up
public HcpMinVo getHCPMin(HcpRefVo hcpRef)
{
	if (hcpRef == null || hcpRef.getID_Hcp() == null)
	{
		throw new CodingRuntimeException("Cannot get HCPMin for null ID");
	}

	DomainFactory factory = getDomainFactory();
	Hcp domHCP = (Hcp) factory.getDomainObject(Hcp.class, hcpRef.getID_Hcp());

	return HcpMinVoAssembler.create(domHCP);
}
 
Example 10
Project: openMAXIMS   File: VoMapper.java   Source Code and License 5 votes vote down vote up
protected HcpMinVo getAttendingDoctor(PV1 pv1)
{
	HcpMinVo hcp=null;
	XCN[] xcns = pv1.getAttendingDoctor();
	if (xcns!=null&&xcns.length>0&&xcns[0]!=null)
	{
		hcp= populateHcpMinFromXCN(xcns[0],TaxonomyType.NAT_CONS_CODE);
	}
	if(hcp==null&&xcns.length>1&&xcns[1]!=null)
	{
		hcp=populateHcpMinFromXCN(xcns[1],TaxonomyType.PAS);
	}
	return hcp;
}
 
Example 11
Project: openMAXIMS   File: VoMapper.java   Source Code and License 5 votes vote down vote up
protected final HcpMinVo populateHcpMinFromXCN(XCN xcn, TaxonomyType taxType)
{
	String code = xcn.getIDNumber().getValue();
	if (code != null)
	{
		return mosAdmin.getHcpMinByTaxonomyType(code, taxType);
	}
	return null;
}
 
Example 12
Project: openMAXIMS   File: MosAdminImpl.java   Source Code and License 5 votes vote down vote up
public HcpMinVo getHcpMinByTaxonomyType(String extCode, TaxonomyType taxType)
{
	MemberOfStaff domMos = getDomMosByTaxonomyType(extCode, taxType);
	if (domMos == null)
		return null;
	else
	{
		return HcpMinVoAssembler.create(domMos.getHcp());
	}
}
 
Example 13
Project: openMAXIMS   File: BookTheatreSlotDetailDialogImpl.java   Source Code and License 5 votes vote down vote up
public HcpMinVo getHCPMin(HcpRefVo hcpRef)
{
	if (hcpRef == null || hcpRef.getID_Hcp()==null)
	{
		throw new CodingRuntimeException("Cannot get HCPMin for null ID");
	}
	
	DomainFactory factory = getDomainFactory();
	Hcp domHCP=(Hcp) factory.getDomainObject(Hcp.class, hcpRef.getID_Hcp());
	
	return HcpMinVoAssembler.create(domHCP);
}
 
Example 14
Project: openmaxims-linux   File: VoMapper.java   Source Code and License 5 votes vote down vote up
protected HcpMinVo getAttendingDoctor(PV1 pv1)
{
	HcpMinVo hcp=null;
	XCN[] xcns = pv1.getAttendingDoctor();
	if (xcns!=null&&xcns.length>0&&xcns[0]!=null)
	{
		hcp= populateHcpMinFromXCN(xcns[0],TaxonomyType.NAT_CONS_CODE);
	}
	if(hcp==null&&xcns.length>1&&xcns[1]!=null)
	{
		hcp=populateHcpMinFromXCN(xcns[1],TaxonomyType.PAS);
	}
	return hcp;
}
 
Example 15
Project: openmaxims-linux   File: VoMapper.java   Source Code and License 5 votes vote down vote up
protected final HcpMinVo populateHcpMinFromXCN(XCN xcn, TaxonomyType taxType)
{
	String code = xcn.getIDNumber().getValue();
	if (code != null)
	{
		return mosAdmin.getHcpMinByTaxonomyType(code, taxType);
	}
	return null;
}
 
Example 16
Project: openmaxims-linux   File: MosAdminImpl.java   Source Code and License 5 votes vote down vote up
public HcpMinVo getHcpMinByTaxonomyType(String extCode, TaxonomyType taxType)
{
	MemberOfStaff domMos = getDomMosByTaxonomyType(extCode, taxType);
	if (domMos == null)
		return null;
	else
	{
		return HcpMinVoAssembler.create(domMos.getHcp());
	}
}