Java 类ims.admin.vo.Icd10AmProcVo 实例源码

项目:AvoinApotti    文件:TaxonomyCodeAdminImpl.java   
public Icd10AmProcVo saveIcd10Record(Icd10AmProcVo vo) throws DomainInterfaceException, StaleObjectException, UniqueKeyViolationException 
{
    if (!vo.isValidated())
    {
        throw new DomainRuntimeException("Opcs4 Vo has not been validated.");
    }

    DomainFactory factory = getDomainFactory();

    Icd10AmProc icd10ProcBo = Icd10AmProcVoAssembler.extractIcd10AmProc(factory, vo);

    if (vo.getID_Icd10AmProcIsNotNull())
    {
        //update
        factory.update(icd10ProcBo);
    }
    else
    {
        //insert
        factory.save(icd10ProcBo);
    }

    return Icd10AmProcVoAssembler.create(icd10ProcBo);

}
项目:openMAXIMS    文件:TaxonomyCodeAdminImpl.java   
public Icd10AmProcVo saveIcd10Record(Icd10AmProcVo vo) throws DomainInterfaceException, StaleObjectException, UniqueKeyViolationException 
{
    if (!vo.isValidated())
    {
        throw new DomainRuntimeException("Opcs4 Vo has not been validated.");
    }

    DomainFactory factory = getDomainFactory();

    Icd10AmProc icd10ProcBo = Icd10AmProcVoAssembler.extractIcd10AmProc(factory, vo);

    if (vo.getID_Icd10AmProcIsNotNull())
    {
        //update
        factory.update(icd10ProcBo);
    }
    else
    {
        //insert
        factory.save(icd10ProcBo);
    }

    return Icd10AmProcVoAssembler.create(icd10ProcBo);

}
项目:openMAXIMS    文件:TaxonomyCodeAdminImpl.java   
public Icd10AmProcVo saveIcd10Record(Icd10AmProcVo vo) throws DomainInterfaceException, StaleObjectException, UniqueKeyViolationException 
{
    if (!vo.isValidated())
    {
        throw new DomainRuntimeException("Opcs4 Vo has not been validated.");
    }

    DomainFactory factory = getDomainFactory();

    Icd10AmProc icd10ProcBo = Icd10AmProcVoAssembler.extractIcd10AmProc(factory, vo);

    if (vo.getID_Icd10AmProcIsNotNull())
    {
        //update
        factory.update(icd10ProcBo);
    }
    else
    {
        //insert
        factory.save(icd10ProcBo);
    }

    return Icd10AmProcVoAssembler.create(icd10ProcBo);

}
项目:openmaxims-linux    文件:TaxonomyCodeAdminImpl.java   
public Icd10AmProcVo saveIcd10Record(Icd10AmProcVo vo) throws DomainInterfaceException, StaleObjectException, UniqueKeyViolationException 
{
    if (!vo.isValidated())
    {
        throw new DomainRuntimeException("Opcs4 Vo has not been validated.");
    }

    DomainFactory factory = getDomainFactory();

    Icd10AmProc icd10ProcBo = Icd10AmProcVoAssembler.extractIcd10AmProc(factory, vo);

    if (vo.getID_Icd10AmProcIsNotNull())
    {
        //update
        factory.update(icd10ProcBo);
    }
    else
    {
        //insert
        factory.save(icd10ProcBo);
    }

    return Icd10AmProcVoAssembler.create(icd10ProcBo);

}
项目:AvoinApotti    文件:TaxonomyCodeAdminImpl.java   
public Icd10AmProcVo getIcd10Code(String code) throws DomainInterfaceException 
{
    if(code == null || code.trim().length() == 0)
        return null;

    ims.admin.vo.Icd10AmProcVoCollection coll = Icd10AmProcVoAssembler.createIcd10AmProcVoCollectionFromIcd10AmProc(getDomainFactory().find("" +
            "from Icd10AmProc icd10 WHERE icd10.code_id = '" + code + "'"));

    if (coll != null && coll.size()>0)
        return coll.get(0);

    return null;

}
项目:openMAXIMS    文件:TaxonomyCodeAdminImpl.java   
public Icd10AmProcVo getIcd10Code(String code) throws DomainInterfaceException 
{
    if(code == null || code.trim().length() == 0)
        return null;

    ims.admin.vo.Icd10AmProcVoCollection coll = Icd10AmProcVoAssembler.createIcd10AmProcVoCollectionFromIcd10AmProc(getDomainFactory().find("" +
            "from Icd10AmProc icd10 WHERE icd10.code_id = '" + code + "'"));

    if (coll != null && coll.size()>0)
        return coll.get(0);

    return null;

}
项目:openMAXIMS    文件:Logic.java   
private ReferralExternalCodingVo populateCodingItemsWithDescription(ReferralExternalCodingVo referralCodingVo)
{
    if(referralCodingVo == null || referralCodingVo.getCodingItems() == null)
        return null;

    for(ReferralExternalCodingItemVo item : referralCodingVo.getCodingItems())
    {
        if(item == null)
            continue;

        if(item.getID_ReferralCodingItem() == null || item.getItemDescription() == null)
        {
            if(item.getICD10() != null)
            {
                Icd10AmProcVo icd10Code = domain.getICD10(item.getICD10());
                item.setItemShortDescription(icd10Code != null ? icd10Code.getAscii_short_desc() : null);
                item.setItemDescription(icd10Code != null ? icd10Code.getAscii_desc() : null);
            }
            else if(item.getOPCS4() != null)
            {
                Opcs4Vo opcs4Code = domain.getOPCS4(item.getOPCS4());
                item.setItemShortDescription(opcs4Code != null ? opcs4Code.getOpname3() : null);
                item.setItemDescription(opcs4Code != null ? opcs4Code.getOpname4() : null);
            }
            else if(item.getHRG() != null)
            {
                HrgConfigLiteVo hrgCode = domain.getHRG(item.getHRG());
                item.setItemDescription(hrgCode != null ? hrgCode.getHRGDescription() : null);
            }
        }
    }

    return referralCodingVo;
}
项目:openMAXIMS    文件:ReferralExternalCodingImpl.java   
public Icd10AmProcVo getICD10(String code)
{
    if(code == null)
        return null;

    DomainFactory factory = getDomainFactory();
    String hqlList  = "select icd from Icd10AmProc icd where icd.code_id = :Code";

    List codesList = factory.find(hqlList, new String[] {"Code"}, new Object[] {code});

    if(codesList == null || codesList.size() == 0)
        return null;

    return Icd10AmProcVoAssembler.create((Icd10AmProc) codesList.get(0));
}
项目:openMAXIMS    文件:TaxonomyCodeAdminImpl.java   
public Icd10AmProcVo getIcd10Code(String code) throws DomainInterfaceException 
{
    if(code == null || code.trim().length() == 0)
        return null;

    ims.admin.vo.Icd10AmProcVoCollection coll = Icd10AmProcVoAssembler.createIcd10AmProcVoCollectionFromIcd10AmProc(getDomainFactory().find("" +
            "from Icd10AmProc icd10 WHERE icd10.code_id = '" + code + "'"));

    if (coll != null && coll.size()>0)
        return coll.get(0);

    return null;

}
项目:openmaxims-linux    文件:TaxonomyCodeAdminImpl.java   
public Icd10AmProcVo getIcd10Code(String code) throws DomainInterfaceException 
{
    if(code == null || code.trim().length() == 0)
        return null;

    ims.admin.vo.Icd10AmProcVoCollection coll = Icd10AmProcVoAssembler.createIcd10AmProcVoCollectionFromIcd10AmProc(getDomainFactory().find("" +
            "from Icd10AmProc icd10 WHERE icd10.code_id = '" + code + "'"));

    if (coll != null && coll.size()>0)
        return coll.get(0);

    return null;

}