Java 类ims.core.vo.HcpMinVo 实例源码

项目: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;
}
项目:openMAXIMS    文件:VoMapper.java   
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;
    }
项目:AvoinApotti    文件:VoMapper.java   
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;
}
项目:AvoinApotti    文件:VoMapper.java   
protected final HcpMinVo populateHcpMinFromXCN(XCN xcn, TaxonomyType taxType)
{
    String code = xcn.getIDNumber().getValue();
    if (code != null)
    {
        return mosAdmin.getHcpMinByTaxonomyType(code, taxType);
    }
    return null;
}
项目: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    文件:VoMapper.java   
protected final HcpMinVo populateHcpMinFromXCN(XCN xcn, TaxonomyType taxType)
{
    String code = xcn.getIDNumber().getValue();
    if (code != null)
    {
        return mosAdmin.getHcpMinByTaxonomyType(code, taxType);
    }
    return null;
}
项目: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    文件:VoMapper.java   
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;
}
项目:openMAXIMS    文件:VoMapper.java   
protected final HcpMinVo populateHcpMinFromXCN(XCN xcn, TaxonomyType taxType)
{
    String code = xcn.getIDNumber().getValue();
    if (code != null)
    {
        return mosAdmin.getHcpMinByTaxonomyType(code, taxType);
    }
    return null;
}
项目: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    文件:VoMapper.java   
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;
}
项目:openmaxims-linux    文件:VoMapper.java   
protected final HcpMinVo populateHcpMinFromXCN(XCN xcn, TaxonomyType taxType)
{
    String code = xcn.getIDNumber().getValue();
    if (code != null)
    {
        return mosAdmin.getHcpMinByTaxonomyType(code, taxType);
    }
    return null;
}
项目: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());
    }
}