Java 类ims.core.vo.domain.HcpMinVoAssembler 实例源码

项目:openMAXIMS    文件:TrackingImpl.java   
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;
}
项目:AvoinApotti    文件:MosAdminImpl.java   
public HcpMinVo getHcpMinByTaxonomyType(String extCode, TaxonomyType taxType)
{
    MemberOfStaff domMos = getDomMosByTaxonomyType(extCode, taxType);
    if (domMos == null)
        return null;
    else
    {
        return HcpMinVoAssembler.create(domMos.getHcp());
    }
}
项目:AvoinApotti    文件:BookTheatreSlotDetailDialogImpl.java   
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);
}
项目:openMAXIMS    文件:MosAdminImpl.java   
public HcpMinVo getHcpMinByTaxonomyType(String extCode, TaxonomyType taxType)
{
    MemberOfStaff domMos = getDomMosByTaxonomyType(extCode, taxType);
    if (domMos == null)
        return null;
    else
    {
        return HcpMinVoAssembler.create(domMos.getHcp());
    }
}
项目:openMAXIMS    文件:BookTheatreSlotDetailDialogImpl.java   
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);
}
项目:openMAXIMS    文件:MosAdminImpl.java   
public HcpMinVo getHcpMinByTaxonomyType(String extCode, TaxonomyType taxType)
{
    MemberOfStaff domMos = getDomMosByTaxonomyType(extCode, taxType);
    if (domMos == null)
        return null;
    else
    {
        return HcpMinVoAssembler.create(domMos.getHcp());
    }
}
项目:openMAXIMS    文件:BookTheatreSlotDetailDialogImpl.java   
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);
}
项目:openmaxims-linux    文件:MosAdminImpl.java   
public HcpMinVo getHcpMinByTaxonomyType(String extCode, TaxonomyType taxType)
{
    MemberOfStaff domMos = getDomMosByTaxonomyType(extCode, taxType);
    if (domMos == null)
        return null;
    else
    {
        return HcpMinVoAssembler.create(domMos.getHcp());
    }
}