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

项目:AvoinApotti    文件:ServiceImpl.java   
public ProcedureVo getProcedureForActivity(ActivityRefVo activityRefVo)
{
    DomainFactory factory = getDomainFactory();

    if (activityRefVo.getID_ActivityIsNotNull())
    {
        java.util.List procList = factory.find("from Procedure proc where proc.activity.id = :actid", new String[]{"actid"}, new Object[]{activityRefVo.getID_Activity()});

        if (procList.size() > 1)
            throw new DomainRuntimeException("More then one Procedure is configured for this Activity.");
        else if (procList.size() == 1)
        {
            ProcedureVoCollection coll = ProcedureVoAssembler.createProcedureVoCollectionFromProcedure(procList);
            return coll.get(0);
        }
        else
            return null;
    }

    return null;
}
项目:openMAXIMS    文件:ServiceImpl.java   
public ProcedureVo getProcedureForActivity(ActivityRefVo activityRefVo)
{
    DomainFactory factory = getDomainFactory();

    if (activityRefVo.getID_ActivityIsNotNull())
    {
        java.util.List procList = factory.find("from Procedure proc where proc.activity.id = :actid", new String[]{"actid"}, new Object[]{activityRefVo.getID_Activity()});

        if (procList.size() > 1)
            throw new DomainRuntimeException("More then one Procedure is configured for this Activity.");
        else if (procList.size() == 1)
        {
            ProcedureVoCollection coll = ProcedureVoAssembler.createProcedureVoCollectionFromProcedure(procList);
            return coll.get(0);
        }
        else
            return null;
    }

    return null;
}
项目:openMAXIMS    文件:ServiceImpl.java   
public ProcedureVo getProcedureForActivity(ActivityRefVo activityRefVo)
{
    DomainFactory factory = getDomainFactory();

    if (activityRefVo.getID_ActivityIsNotNull())
    {
        java.util.List procList = factory.find("from Procedure proc where proc.activity.id = :actid", new String[]{"actid"}, new Object[]{activityRefVo.getID_Activity()});

        if (procList.size() > 1)
            throw new DomainRuntimeException("More then one Procedure is configured for this Activity.");
        else if (procList.size() == 1)
        {
            ProcedureVoCollection coll = ProcedureVoAssembler.createProcedureVoCollectionFromProcedure(procList);
            return coll.get(0);
        }
        else
            return null;
    }

    return null;
}
项目:openmaxims-linux    文件:ServiceImpl.java   
public ProcedureVo getProcedureForActivity(ActivityRefVo activityRefVo)
{
    DomainFactory factory = getDomainFactory();

    if (activityRefVo.getID_ActivityIsNotNull())
    {
        java.util.List procList = factory.find("from Procedure proc where proc.activity.id = :actid", new String[]{"actid"}, new Object[]{activityRefVo.getID_Activity()});

        if (procList.size() > 1)
            throw new DomainRuntimeException("More then one Procedure is configured for this Activity.");
        else if (procList.size() == 1)
        {
            ProcedureVoCollection coll = ProcedureVoAssembler.createProcedureVoCollectionFromProcedure(procList);
            return coll.get(0);
        }
        else
            return null;
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
protected void onQmbProcedureEndoscopyTextSubmited(String value) throws PresentationLogicException
{
    form.lyrWaitingListDetails().tabPageEndoscopy().qmbProcedureEndoscopy().clear();
    form.lyrWaitingListDetails().tabPageEndoscopy().txtDetailsEndoscopy().setValue(null);
    ProcedureVoCollection procedureCollection = new ProcedureVoCollection();

    try
    {
        procedureCollection = domain.listEndoscopyProcedures(value,null,Boolean.TRUE);  //wdev-21151
    }
    catch (DomainInterfaceException e)
    {
        engine.showMessage(e.getMessage());
        return;
    }   

    if( procedureCollection == null)
        return;

    for( int i=0; i < procedureCollection.size(); i++)
    {
        addRowProcEndoscopy(procedureCollection.get(i));
    }

    if( procedureCollection.size() == 1)
    {
        form.lyrWaitingListDetails().tabPageEndoscopy().qmbProcedureEndoscopy().setValue(procedureCollection.get(0));
        qmbProcedureEndoscopyValueChanged();    //wdev-21063
        resetProcedureEndoscopyDescription();
        updateControlsState();

    }
    else if( procedureCollection.size() > 1)
        form.lyrWaitingListDetails().tabPageEndoscopy().qmbProcedureEndoscopy().showOpened();

}
项目:AvoinApotti    文件:ProcedureListImpl.java   
public ProcedureVoCollection listActiveFullProcedures(String filter) throws DomainInterfaceException 
{
    return ProcedureVoAssembler.createProcedureVoCollectionFromProcedure(listDomProcedures(filter,true)).sort();
}
项目:openMAXIMS    文件:ProcedureListImpl.java   
public ProcedureVoCollection listActiveFullProcedures(String filter) throws DomainInterfaceException 
{
    return ProcedureVoAssembler.createProcedureVoCollectionFromProcedure(listDomProcedures(filter,true)).sort();
}
项目:openMAXIMS    文件:Logic.java   
protected void onQmbProcedureTextSubmited(String value) throws PresentationLogicException
{
    form.lyrWaitingListDetails().tabPageSurgical().qmbProcedure().clear();
    form.lyrWaitingListDetails().tabPageSurgical().txtdetails().setValue(null);
    ProcedureVoCollection procedureCollection = new ProcedureVoCollection();

    try
    {
        if( GroupPrimaryProcedureSurgicalEnumeration.rdoSpecialtyHotListSurgical.equals(form.lyrWaitingListDetails().tabPageSurgical().GroupPrimaryProcedureSurgical().getValue()))  //wdev-21151
            procedureCollection = domain.listSurgicalProcedures(value, (form.getLocalContext().getReferralIsNotNull() && form.getLocalContext().getReferral().getReferralDetailsIsNotNull() && form.getLocalContext().getReferral().getReferralDetails().getServiceIsNotNull() ?form.getLocalContext().getReferral().getReferralDetails().getService().getSpecialty():null),Boolean.FALSE);
        else if( GroupPrimaryProcedureSurgicalEnumeration.rdoAllProceduresSurgical.equals(form.lyrWaitingListDetails().tabPageSurgical().GroupPrimaryProcedureSurgical().getValue()))
            procedureCollection = domain.listSurgicalProcedures(value, (form.getLocalContext().getReferralIsNotNull() && form.getLocalContext().getReferral().getReferralDetailsIsNotNull() && form.getLocalContext().getReferral().getReferralDetails().getServiceIsNotNull() ?form.getLocalContext().getReferral().getReferralDetails().getService().getSpecialty():null),Boolean.TRUE);
        else
        {
            engine.showMessage("Select a filter");
        }

    }
    catch (DomainInterfaceException e)
    {
        engine.showMessage(e.getMessage());
        return;
    }   

    if( procedureCollection == null )
        return;

    for( int i=0; i < procedureCollection.size(); i++)
    {
        addRowPrimaryProcSurgical(procedureCollection.get(i));
    }

    if( procedureCollection.size() == 1)
    {
        form.lyrWaitingListDetails().tabPageSurgical().qmbProcedure().setValue(procedureCollection.get(0));
        qmbProcedurePrimarySurgicalValueChanged();  //wdev-21063
        //resetProcedureDescription();
        updateControlsState();

    }
    else if( procedureCollection.size() > 1)
        form.lyrWaitingListDetails().tabPageSurgical().qmbProcedure().showOpened();

}
项目:openMAXIMS    文件:Logic.java   
protected void onQmbProcedureSecondTextSubmited(String value) throws PresentationLogicException
{
    form.lyrWaitingListDetails().tabPageSurgical().qmbProcedureSecond().clear();

    ProcedureVoCollection procedureCollection = new ProcedureVoCollection();

    try
    {

        if( !Boolean.TRUE.equals(form.lyrWaitingListDetails().tabPageSurgical().chkMultiserviceCase().getValue()))
        {
            if( GroupAdditionalProcedureSurgicalEnumeration.rdoSpecialtyHotlistForAdditionalProceduresSurgical.equals(form.lyrWaitingListDetails().tabPageSurgical().GroupAdditionalProcedureSurgical().getValue()))  //wdev-21151
                procedureCollection = domain.listSurgicalProcedures(value,(form.getLocalContext().getReferralIsNotNull() && form.getLocalContext().getReferral().getReferralDetailsIsNotNull() && form.getLocalContext().getReferral().getReferralDetails().getServiceIsNotNull() ?form.getLocalContext().getReferral().getReferralDetails().getService().getSpecialty():null),Boolean.FALSE);  //hotlist procedures
            else if( GroupAdditionalProcedureSurgicalEnumeration.rdoAllProceduresForAdditionalProcedureSurgical.equals(form.lyrWaitingListDetails().tabPageSurgical().GroupAdditionalProcedureSurgical().getValue()))
                procedureCollection = domain.listSurgicalProcedures(value,(form.getLocalContext().getReferralIsNotNull() && form.getLocalContext().getReferral().getReferralDetailsIsNotNull() && form.getLocalContext().getReferral().getReferralDetails().getServiceIsNotNull() ?form.getLocalContext().getReferral().getReferralDetails().getService().getSpecialty():null),Boolean.TRUE);   //all procedures
            else
            {
                engine.showMessage("Select a filter");
            }
        }
        else
        {
            procedureCollection = domain.listSurgicalProcedures(value,(form.getLocalContext().getReferralIsNotNull() && form.getLocalContext().getReferral().getReferralDetailsIsNotNull() && form.getLocalContext().getReferral().getReferralDetails().getServiceIsNotNull() ?form.getLocalContext().getReferral().getReferralDetails().getService().getSpecialty():null),Boolean.TRUE); //all procedures
        }
    }
    catch (DomainInterfaceException e)
    {
        engine.showMessage(e.getMessage());
        return;
    }   
    if( procedureCollection == null)
        return;

    for( int i=0; i < procedureCollection.size(); i++)
    {
        addRowSecondProcSurgical(procedureCollection.get(i));
    }

    if( procedureCollection.size() == 1)
    {
        form.lyrWaitingListDetails().tabPageSurgical().qmbProcedureSecond().setValue(procedureCollection.get(0));
        onqmbProcedureSecondValueChanged();         //wdev-21063
        updateControlsState();


    }
    else if( procedureCollection.size() > 1)
        form.lyrWaitingListDetails().tabPageSurgical().qmbProcedureSecond().showOpened();

}
项目:openMAXIMS    文件:Logic.java   
protected void onQmbProcedureSecondMedicalTextSubmited(String value) throws PresentationLogicException
{
    form.lyrWaitingListDetails().tabPageMedical().qmbProcedureSecondMedical().clear();

    ProcedureVoCollection procedureCollection = new ProcedureVoCollection();

    try
    {
        if( GroupAdditionalProcedureMedicalEnumeration.rdoSpecialtyHotListAdditionalProcMedical.equals(form.lyrWaitingListDetails().tabPageMedical().GroupAdditionalProcedureMedical().getValue()))     //wdev-21151
            procedureCollection = domain.listMedicalProcedures(value,(form.getLocalContext().getReferralIsNotNull() && form.getLocalContext().getReferral().getReferralDetailsIsNotNull() && form.getLocalContext().getReferral().getReferralDetails().getServiceIsNotNull() ?form.getLocalContext().getReferral().getReferralDetails().getService().getSpecialty():null),Boolean.FALSE);   //hotlist
        else if( GroupAdditionalProcedureMedicalEnumeration.rdoAllProceduresAdditionalProcMedical.equals(form.lyrWaitingListDetails().tabPageMedical().GroupAdditionalProcedureMedical().getValue()))
            procedureCollection = domain.listMedicalProcedures(value,(form.getLocalContext().getReferralIsNotNull() && form.getLocalContext().getReferral().getReferralDetailsIsNotNull() && form.getLocalContext().getReferral().getReferralDetails().getServiceIsNotNull() ?form.getLocalContext().getReferral().getReferralDetails().getService().getSpecialty():null),Boolean.TRUE);    //all procedures
        else
        {
            engine.showMessage("Select a filter");
        }

    }
    catch (DomainInterfaceException e)
    {
        engine.showMessage(e.getMessage());
        return;
    }   

    if( procedureCollection == null )
        return;

    for( int i=0; i < procedureCollection.size(); i++)
    {
        addRowSecondProcMedical(procedureCollection.get(i));
    }

    if( procedureCollection.size() == 1)
    {
        form.lyrWaitingListDetails().tabPageMedical().qmbProcedureSecondMedical().setValue(procedureCollection.get(0));
        qmbProcedureSecondMedicalValueChanged();    //wdev-21063
        updateControlsState();


    }
    else if( procedureCollection.size() > 1)
        form.lyrWaitingListDetails().tabPageMedical().qmbProcedureSecondMedical().showOpened();

}
项目:openMAXIMS    文件:Logic.java   
protected void onQmbProcedureMedicalTextSubmited(String value) throws PresentationLogicException
{
    form.lyrWaitingListDetails().tabPageMedical().qmbProcedureMedical().clear();
    form.lyrWaitingListDetails().tabPageMedical().txtdetailsMedical().setValue(null);
    ProcedureVoCollection procedureCollection = new ProcedureVoCollection();

    try
    {
        if( GroupPrimaryProcedureMedicalEnumeration.rdoSpecialtyHotlistPrinaryProcMedical.equals(form.lyrWaitingListDetails().tabPageMedical().GroupPrimaryProcedureMedical().getValue()))      //wdev-21151
            procedureCollection = domain.listMedicalProcedures(value,(form.getLocalContext().getReferralIsNotNull() && form.getLocalContext().getReferral().getReferralDetailsIsNotNull() && form.getLocalContext().getReferral().getReferralDetails().getServiceIsNotNull() ?form.getLocalContext().getReferral().getReferralDetails().getService().getSpecialty():null),Boolean.FALSE);
        else if( GroupPrimaryProcedureMedicalEnumeration.rdoAllProceduresPrimaryProcMedical.equals(form.lyrWaitingListDetails().tabPageMedical().GroupPrimaryProcedureMedical().getValue()))
            procedureCollection = domain.listMedicalProcedures(value,(form.getLocalContext().getReferralIsNotNull() && form.getLocalContext().getReferral().getReferralDetailsIsNotNull() && form.getLocalContext().getReferral().getReferralDetails().getServiceIsNotNull() ?form.getLocalContext().getReferral().getReferralDetails().getService().getSpecialty():null),Boolean.TRUE);
        else
            engine.showMessage("Select a filter");
    }
    catch (DomainInterfaceException e)
    {
        engine.showMessage(e.getMessage());
        return;
    }   

    if( procedureCollection == null )
        return;

    for( int i=0; i < procedureCollection.size(); i++)
    {
        addRowPrimaryProcMedical(procedureCollection.get(i));
    }

    if( procedureCollection.size() == 1)
    {
        form.lyrWaitingListDetails().tabPageMedical().qmbProcedureMedical().setValue(procedureCollection.get(0));
        qmbProcedureMedicalValueChanged();  //wdev-21063
        //resetProcedureMedicalDescription();
        updateControlsState();

    }
    else if( procedureCollection.size() > 1)
        form.lyrWaitingListDetails().tabPageMedical().qmbProcedureMedical().showOpened();

}
项目:openMAXIMS    文件:ElectiveListAddLaterDialogImpl.java   
public ProcedureVoCollection listSurgicalProcedures(String name, Specialty specialty, Boolean allProceduresORHotlist) throws DomainInterfaceException
{
    ClinicalCoding impl = (ClinicalCoding) getDomainImpl(ClinicalCodingImpl.class);
    return impl.listProcedureVo(name, Boolean.FALSE, Boolean.FALSE, null,specialty, allProceduresORHotlist);    //wdev-21151
}
项目:openMAXIMS    文件:ElectiveListAddLaterDialogImpl.java   
public ProcedureVoCollection listMedicalProcedures(String name, Specialty specialty, Boolean allProceduresORHotlist) throws DomainInterfaceException
{
    ClinicalCoding impl = (ClinicalCoding) getDomainImpl(ClinicalCodingImpl.class);
    return impl.listProcedureVo(name, Boolean.TRUE, null, null,specialty, allProceduresORHotlist);              //wdev-21151
}
项目:openMAXIMS    文件:ElectiveListAddLaterDialogImpl.java   
public ProcedureVoCollection listEndoscopyProcedures(String name,Specialty specialty, Boolean allProceduresORHotlist) throws DomainInterfaceException
{
    ClinicalCoding impl = (ClinicalCoding) getDomainImpl(ClinicalCodingImpl.class);
    return impl.listProcedureVo(name,null, Boolean.TRUE, null,specialty, allProceduresORHotlist);               //wdev-21151
}
项目:openMAXIMS    文件:ProcedureListImpl.java   
public ProcedureVoCollection listActiveFullProcedures(String filter) throws DomainInterfaceException 
{
    return ProcedureVoAssembler.createProcedureVoCollectionFromProcedure(listDomProcedures(filter,true)).sort();
}
项目:openmaxims-linux    文件:ProcedureListImpl.java   
public ProcedureVoCollection listActiveFullProcedures(String filter) throws DomainInterfaceException 
{
    return ProcedureVoAssembler.createProcedureVoCollectionFromProcedure(listDomProcedures(filter,true)).sort();
}