Java 类ims.clinical.vo.VTERiskAssessmentShortVoCollection 实例源码

项目:AvoinApotti    文件:BedInfoDialogImpl.java   
public VTERiskAssessmentShortVoCollection getVTEByCareContext(CareContextRefVo careContextRef)
{
    if (careContextRef == null)
        throw new CodingRuntimeException("Cannot get VTEs on null careContextRef");

    DomainFactory factory = getDomainFactory();

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    String query = "SELECT vte FROM VTERiskAssessment AS vte LEFT JOIN vte.careContext AS cc WHERE cc.id = :ID_CC";

    paramNames.add("ID_CC");
    paramValues.add(careContextRef.getID_CareContext());

    return VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(factory.find(query.toString(), paramNames, paramValues));
}
项目:AvoinApotti    文件:Logic.java   
private VTERiskAssessmentShortVo getVTEAssess(VTERiskAssessmentVo voVTERiskAss , VTERiskAssessmentShortVoCollection temVoColl)
{
    if(temVoColl == null)
        return null;


    for(int i = 0; i < temVoColl.size();i++)
    {
        if(temVoColl.get(i) != null && voVTERiskAss != null)
        {
            if(voVTERiskAss.getID_VTERiskAssessmentIsNotNull() && temVoColl.get(i).getID_VTERiskAssessmentIsNotNull() && voVTERiskAss.getID_VTERiskAssessment().equals( temVoColl.get(i).getID_VTERiskAssessment()))
                return temVoColl.get(i);
        }
    }
    return null;
}
项目:AvoinApotti    文件:VTERiskAssessmentImpl.java   
public VTERiskAssessmentShortVo getVTERiskAssessmentShortVo( InpatientEpisodeRefVo inpatEpRef) 
{
    if(inpatEpRef == null)
        return null;

    DomainFactory factory = getDomainFactory();
    List vteriskassess = factory.find("select v1_1 from InpatientEpisode as i1_1 left join i1_1.vTERiskAssessment as v1_1 where( i1_1.id = :idInpatEp )", new String[] {"idInpatEp"}, new Object[] {inpatEpRef.getID_InpatientEpisode()});

    if( vteriskassess != null && vteriskassess.size() > 0 )
    {
        VTERiskAssessmentShortVoCollection tempColl = VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(vteriskassess);
        if ( tempColl != null && tempColl.size() > 0)
            return tempColl.get(0);


    }

    return null;

}
项目:AvoinApotti    文件:VTERiskAssessmentImpl.java   
public VTERiskAssessmentShortVo getVTERiskAssessmentShortByDischargeEpisode(DischargedEpisodeRefVo dischargeRef) 
{
    if(dischargeRef == null)
        return null;

    DomainFactory factory = getDomainFactory();
    List<?> vteriskassess = factory.find("select v1_1 from DischargedEpisode as dis left join dis.vTERiskAssessment as vte where( dis.id = :idDisEp )", new String[] {"idDisEp"}, new Object[] {dischargeRef.getID_DischargedEpisode()});

    if( vteriskassess != null && vteriskassess.size() > 0 )
    {
        VTERiskAssessmentShortVoCollection tempColl = VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(vteriskassess);
        if ( tempColl != null && tempColl.size() > 0)
            return tempColl.get(0);
    }

    return null;
}
项目:openMAXIMS    文件:BedInfoDialogImpl.java   
public VTERiskAssessmentShortVoCollection getVTEByCareContext(CareContextRefVo careContextRef)
{
    if (careContextRef == null)
        throw new CodingRuntimeException("Cannot get VTEs on null careContextRef");

    DomainFactory factory = getDomainFactory();

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    String query = "SELECT vte FROM VTERiskAssessment AS vte LEFT JOIN vte.careContext AS cc WHERE cc.id = :ID_CC";

    paramNames.add("ID_CC");
    paramValues.add(careContextRef.getID_CareContext());

    return VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(factory.find(query.toString(), paramNames, paramValues));
}
项目:openMAXIMS    文件:Logic.java   
private VTERiskAssessmentShortVo getVTEAssess(VTERiskAssessmentVo voVTERiskAss , VTERiskAssessmentShortVoCollection temVoColl)
{
    if(temVoColl == null)
        return null;


    for(int i = 0; i < temVoColl.size();i++)
    {
        if(temVoColl.get(i) != null && voVTERiskAss != null)
        {
            if(voVTERiskAss.getID_VTERiskAssessmentIsNotNull() && temVoColl.get(i).getID_VTERiskAssessmentIsNotNull() && voVTERiskAss.getID_VTERiskAssessment().equals( temVoColl.get(i).getID_VTERiskAssessment()))
                return temVoColl.get(i);
        }
    }
    return null;
}
项目:openMAXIMS    文件:VTERiskAssessmentImpl.java   
public VTERiskAssessmentShortVo getVTERiskAssessmentShortVo( InpatientEpisodeRefVo inpatEpRef) 
{
    if(inpatEpRef == null)
        return null;

    DomainFactory factory = getDomainFactory();
    List vteriskassess = factory.find("select v1_1 from InpatientEpisode as i1_1 left join i1_1.vTERiskAssessment as v1_1 where( i1_1.id = :idInpatEp )", new String[] {"idInpatEp"}, new Object[] {inpatEpRef.getID_InpatientEpisode()});

    if( vteriskassess != null && vteriskassess.size() > 0 )
    {
        VTERiskAssessmentShortVoCollection tempColl = VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(vteriskassess);
        if ( tempColl != null && tempColl.size() > 0)
            return tempColl.get(0);


    }

    return null;

}
项目:openMAXIMS    文件:VTERiskAssessmentImpl.java   
public VTERiskAssessmentShortVo getVTERiskAssessmentShortByDischargeEpisode(DischargedEpisodeRefVo dischargeRef) 
{
    if(dischargeRef == null)
        return null;

    DomainFactory factory = getDomainFactory();
    List<?> vteriskassess = factory.find("select v1_1 from DischargedEpisode as dis left join dis.vTERiskAssessment as vte where( dis.id = :idDisEp )", new String[] {"idDisEp"}, new Object[] {dischargeRef.getID_DischargedEpisode()});

    if( vteriskassess != null && vteriskassess.size() > 0 )
    {
        VTERiskAssessmentShortVoCollection tempColl = VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(vteriskassess);
        if ( tempColl != null && tempColl.size() > 0)
            return tempColl.get(0);
    }

    return null;
}
项目:openMAXIMS    文件:BedInfoDialogImpl.java   
public VTERiskAssessmentShortVoCollection getVTEByCareContext(CareContextRefVo careContextRef)
{
    if (careContextRef == null)
        throw new CodingRuntimeException("Cannot get VTEs on null careContextRef");

    DomainFactory factory = getDomainFactory();

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    String query = "SELECT vte FROM VTERiskAssessment AS vte LEFT JOIN vte.careContext AS cc WHERE cc.id = :ID_CC";

    paramNames.add("ID_CC");
    paramValues.add(careContextRef.getID_CareContext());

    return VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(factory.find(query.toString(), paramNames, paramValues));
}
项目:openMAXIMS    文件:Logic.java   
private VTERiskAssessmentShortVo getVTEAssess(VTERiskAssessmentVo voVTERiskAss , VTERiskAssessmentShortVoCollection temVoColl)
{
    if(temVoColl == null)
        return null;


    for(int i = 0; i < temVoColl.size();i++)
    {
        if(temVoColl.get(i) != null && voVTERiskAss != null)
        {
            if(voVTERiskAss.getID_VTERiskAssessmentIsNotNull() && temVoColl.get(i).getID_VTERiskAssessmentIsNotNull() && voVTERiskAss.getID_VTERiskAssessment().equals( temVoColl.get(i).getID_VTERiskAssessment()))
                return temVoColl.get(i);
        }
    }
    return null;
}
项目:openMAXIMS    文件:VTERiskAssessmentImpl.java   
public VTERiskAssessmentShortVo getVTERiskAssessmentShortVo( InpatientEpisodeRefVo inpatEpRef) 
{
    if(inpatEpRef == null)
        return null;

    DomainFactory factory = getDomainFactory();
    List vteriskassess = factory.find("select v1_1 from InpatientEpisode as i1_1 left join i1_1.vTERiskAssessment as v1_1 where( i1_1.id = :idInpatEp )", new String[] {"idInpatEp"}, new Object[] {inpatEpRef.getID_InpatientEpisode()});

    if( vteriskassess != null && vteriskassess.size() > 0 )
    {
        VTERiskAssessmentShortVoCollection tempColl = VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(vteriskassess);
        if ( tempColl != null && tempColl.size() > 0)
            return tempColl.get(0);


    }

    return null;

}
项目:openMAXIMS    文件:VTERiskAssessmentImpl.java   
public VTERiskAssessmentShortVo getVTERiskAssessmentShortByDischargeEpisode(DischargedEpisodeRefVo dischargeRef) 
{
    if(dischargeRef == null)
        return null;

    DomainFactory factory = getDomainFactory();
    List<?> vteriskassess = factory.find("select v1_1 from DischargedEpisode as dis left join dis.vTERiskAssessment as vte where( dis.id = :idDisEp )", new String[] {"idDisEp"}, new Object[] {dischargeRef.getID_DischargedEpisode()});

    if( vteriskassess != null && vteriskassess.size() > 0 )
    {
        VTERiskAssessmentShortVoCollection tempColl = VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(vteriskassess);
        if ( tempColl != null && tempColl.size() > 0)
            return tempColl.get(0);
    }

    return null;
}
项目:openmaxims-linux    文件:BedInfoDialogImpl.java   
public VTERiskAssessmentShortVoCollection getVTEByCareContext(CareContextRefVo careContextRef)
{
    if (careContextRef == null)
        throw new CodingRuntimeException("Cannot get VTEs on null careContextRef");

    DomainFactory factory = getDomainFactory();

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    String query = "SELECT vte FROM VTERiskAssessment AS vte LEFT JOIN vte.careContext AS cc WHERE cc.id = :ID_CC";

    paramNames.add("ID_CC");
    paramValues.add(careContextRef.getID_CareContext());

    return VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(factory.find(query.toString(), paramNames, paramValues));
}
项目:openmaxims-linux    文件:Logic.java   
private VTERiskAssessmentShortVo getVTEAssess(VTERiskAssessmentVo voVTERiskAss , VTERiskAssessmentShortVoCollection temVoColl)
{
    if(temVoColl == null)
        return null;


    for(int i = 0; i < temVoColl.size();i++)
    {
        if(temVoColl.get(i) != null && voVTERiskAss != null)
        {
            if(voVTERiskAss.getID_VTERiskAssessmentIsNotNull() && temVoColl.get(i).getID_VTERiskAssessmentIsNotNull() && voVTERiskAss.getID_VTERiskAssessment().equals( temVoColl.get(i).getID_VTERiskAssessment()))
                return temVoColl.get(i);
        }
    }
    return null;
}
项目:openmaxims-linux    文件:VTERiskAssessmentImpl.java   
public VTERiskAssessmentShortVo getVTERiskAssessmentShortVo( InpatientEpisodeRefVo inpatEpRef) 
{
    if(inpatEpRef == null)
        return null;

    DomainFactory factory = getDomainFactory();
    List vteriskassess = factory.find("select v1_1 from InpatientEpisode as i1_1 left join i1_1.vTERiskAssessment as v1_1 where( i1_1.id = :idInpatEp )", new String[] {"idInpatEp"}, new Object[] {inpatEpRef.getID_InpatientEpisode()});

    if( vteriskassess != null && vteriskassess.size() > 0 )
    {
        VTERiskAssessmentShortVoCollection tempColl = VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(vteriskassess);
        if ( tempColl != null && tempColl.size() > 0)
            return tempColl.get(0);


    }

    return null;

}
项目:openmaxims-linux    文件:VTERiskAssessmentImpl.java   
public VTERiskAssessmentShortVo getVTERiskAssessmentShortByDischargeEpisode(DischargedEpisodeRefVo dischargeRef) 
{
    if(dischargeRef == null)
        return null;

    DomainFactory factory = getDomainFactory();
    List<?> vteriskassess = factory.find("select v1_1 from DischargedEpisode as dis left join dis.vTERiskAssessment as vte where( dis.id = :idDisEp )", new String[] {"idDisEp"}, new Object[] {dischargeRef.getID_DischargedEpisode()});

    if( vteriskassess != null && vteriskassess.size() > 0 )
    {
        VTERiskAssessmentShortVoCollection tempColl = VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(vteriskassess);
        if ( tempColl != null && tempColl.size() > 0)
            return tempColl.get(0);
    }

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private void updateBtnVteRiskAssessment()
{
    VTERiskAssessmentShortVoCollection hasVTEs = domain.getVTEByCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    if (hasVTEs != null && hasVTEs.size() > 0)
    {
        for (int i = 0; i < hasVTEs.size(); i++)
        {
            if (form.getLocalContext().getInpatientEpForVTERiskAssessmentVoIsNotNull())
            {
                if (form.getLocalContext().getInpatientEpForVTERiskAssessmentVo().getVTERiskAssessmentIsNotNull())
                {
                    if (hasVTEs.get(i).equals(form.getLocalContext().getInpatientEpForVTERiskAssessmentVo().getVTERiskAssessment()))
                    {
                        form.lyrDetail().tabDischarge().btnVTERiskAssesssment().setVisible(! VTEAsessmentStatus.COMPLETED.equals(hasVTEs.get(i).getVTEAssessmentStatus()));
                        form.getLocalContext().setShowVTERiskAssessmentButton(! VTEAsessmentStatus.COMPLETED.equals(hasVTEs.get(i).getVTEAssessmentStatus()));
                        break;
                    }
                }
                else
                {
                    form.lyrDetail().tabDischarge().btnVTERiskAssesssment().setVisible(! VTEAsessmentStatus.COMPLETED.equals(hasVTEs.get(i).getVTEAssessmentStatus()));
                    form.getLocalContext().setShowVTERiskAssessmentButton(! VTEAsessmentStatus.COMPLETED.equals(hasVTEs.get(i).getVTEAssessmentStatus()));
                    break;
                }
            }
            else
            {
                form.lyrDetail().tabDischarge().btnVTERiskAssesssment().setVisible(false);
                form.getLocalContext().setShowVTERiskAssessmentButton(false);
                break;
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void fillRecordBrowser(VTERiskAssessmentShortVoCollection collVTERisk)
{
    form.recbrVTEAssessment().clear();
    if(collVTERisk == null)
        return;

    for(int i=0; i<collVTERisk.size(); i++)
    {
        VTERiskAssessmentShortVo voVTERiskAssShort =  collVTERisk.get(i); 
        if(voVTERiskAssShort != null)
        {
            String strDateTime = (voVTERiskAssShort.getRecordingInformationIsNotNull() && voVTERiskAssShort.getRecordingInformation().getRecordingDateTimeIsNotNull() ) ? voVTERiskAssShort.getRecordingInformation().getRecordingDateTime().toString():"";
            String strUserName = (voVTERiskAssShort.getRecordingInformationIsNotNull()  &&  voVTERiskAssShort.getRecordingInformation().getRecordingUserIsNotNull()) ? " - " + voVTERiskAssShort.getRecordingInformation().getRecordingUser().toString():"";

            if( form.getLocalContext().getInpatientEpisode() != null && form.getLocalContext().getInpatientEpisode().getVTERiskAssessmentIsNotNull() && voVTERiskAssShort.equals(form.getLocalContext().getInpatientEpisode().getVTERiskAssessment()))
            {                   
                form.recbrVTEAssessment().newRow(voVTERiskAssShort,  strDateTime + strUserName ,Color.Green);
            }
            //WDEV-15414 
            else if(form.getLocalContext().getDischargeEpisode() != null && form.getLocalContext().getDischargeEpisode().getVTERiskAssessmentIsNotNull() && voVTERiskAssShort.equals(form.getLocalContext().getDischargeEpisode().getVTERiskAssessment()))
            {
                form.recbrVTEAssessment().newRow(voVTERiskAssShort,  strDateTime + strUserName ,Color.Green);
            }
            else
            {                    
                form.recbrVTEAssessment().newRow(voVTERiskAssShort,   strDateTime + strUserName );
            }
        }

    }

}
项目:AvoinApotti    文件:VTERiskAssessmentImpl.java   
public ims.clinical.vo.VTERiskAssessmentShortVoCollection listVTERiskAssessments(ims.core.vo.PatientShort patient)
{
    if(patient == null )
        throw new CodingRuntimeException("Patient not provided");

    DomainFactory factory = getDomainFactory();
    List vteriskassess = factory.find("select v1_1 from VTERiskAssessment as v1_1 left join v1_1.patient as p1_1 where  p1_1.id =:idPatient", new String[] {"idPatient"}, new Object[] {patient.getID_Patient()});


    if( vteriskassess != null && vteriskassess.size() > 0)
        return  VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(vteriskassess).sort(SortOrder.DESCENDING);

    return null;
}
项目:AvoinApotti    文件:VTERiskAssessmentImpl.java   
public VTERiskAssessmentShortVoCollection listVTERiskAssessByPasId(PASEventRefVo pasRefVo) 
{
    if(pasRefVo == null )
        throw new CodingRuntimeException("Patient not provided");

    DomainFactory factory = getDomainFactory();
    List vteriskassess = factory.find("select v1_1 from VTERiskAssessment as v1_1 left join v1_1.careContext as c1_1 left join c1_1.pasEvent as p1_1 where p1_1.id =:idPasEvent", new String[] {"idPasEvent"}, new Object[] {pasRefVo.getID_PASEvent()});

    if( vteriskassess != null && vteriskassess.size() > 0)
        return  VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(vteriskassess).sort(SortOrder.DESCENDING);

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void updateBtnVteRiskAssessment()
{
    VTERiskAssessmentShortVoCollection hasVTEs = domain.getVTEByCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    if (hasVTEs != null && hasVTEs.size() > 0)
    {
        for (int i = 0; i < hasVTEs.size(); i++)
        {
            if (form.getLocalContext().getInpatientEpForVTERiskAssessmentVoIsNotNull())
            {
                if (form.getLocalContext().getInpatientEpForVTERiskAssessmentVo().getVTERiskAssessmentIsNotNull())
                {
                    if (hasVTEs.get(i).equals(form.getLocalContext().getInpatientEpForVTERiskAssessmentVo().getVTERiskAssessment()))
                    {
                        form.lyrDetail().tabDischarge().btnVTERiskAssesssment().setVisible(! VTEAsessmentStatus.COMPLETED.equals(hasVTEs.get(i).getVTEAssessmentStatus()));
                        form.getLocalContext().setShowVTERiskAssessmentButton(! VTEAsessmentStatus.COMPLETED.equals(hasVTEs.get(i).getVTEAssessmentStatus()));
                        break;
                    }
                }
                else
                {
                    form.lyrDetail().tabDischarge().btnVTERiskAssesssment().setVisible(! VTEAsessmentStatus.COMPLETED.equals(hasVTEs.get(i).getVTEAssessmentStatus()));
                    form.getLocalContext().setShowVTERiskAssessmentButton(! VTEAsessmentStatus.COMPLETED.equals(hasVTEs.get(i).getVTEAssessmentStatus()));
                    break;
                }
            }
            else
            {
                form.lyrDetail().tabDischarge().btnVTERiskAssesssment().setVisible(false);
                form.getLocalContext().setShowVTERiskAssessmentButton(false);
                break;
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void fillRecordBrowser(VTERiskAssessmentShortVoCollection collVTERisk)
{
    form.recbrVTEAssessment().clear();
    if(collVTERisk == null)
        return;

    for(int i=0; i<collVTERisk.size(); i++)
    {
        VTERiskAssessmentShortVo voVTERiskAssShort =  collVTERisk.get(i); 
        if(voVTERiskAssShort != null)
        {
            String strDateTime = (voVTERiskAssShort.getRecordingInformationIsNotNull() && voVTERiskAssShort.getRecordingInformation().getRecordingDateTimeIsNotNull() ) ? voVTERiskAssShort.getRecordingInformation().getRecordingDateTime().toString():"";
            String strUserName = (voVTERiskAssShort.getRecordingInformationIsNotNull()  &&  voVTERiskAssShort.getRecordingInformation().getRecordingUserIsNotNull()) ? " - " + voVTERiskAssShort.getRecordingInformation().getRecordingUser().toString():"";

            if( form.getLocalContext().getInpatientEpisode() != null && form.getLocalContext().getInpatientEpisode().getVTERiskAssessmentIsNotNull() && voVTERiskAssShort.equals(form.getLocalContext().getInpatientEpisode().getVTERiskAssessment()))
            {                   
                form.recbrVTEAssessment().newRow(voVTERiskAssShort,  strDateTime + strUserName ,Color.Green);
                form.recbrVTEAssessment().setValue(voVTERiskAssShort);
            }
            //WDEV-15414 
            else if(form.getLocalContext().getDischargeEpisode() != null && form.getLocalContext().getDischargeEpisode().getVTERiskAssessmentIsNotNull() && voVTERiskAssShort.equals(form.getLocalContext().getDischargeEpisode().getVTERiskAssessment()))
            {
                form.recbrVTEAssessment().newRow(voVTERiskAssShort,  strDateTime + strUserName ,Color.Green);
                form.recbrVTEAssessment().setValue(voVTERiskAssShort);
            }
            else
            {                    
                form.recbrVTEAssessment().newRow(voVTERiskAssShort,   strDateTime + strUserName );
            }
        }

    }

}
项目:openMAXIMS    文件:VTERiskAssessmentImpl.java   
public ims.clinical.vo.VTERiskAssessmentShortVoCollection listVTERiskAssessments(ims.core.vo.PatientShort patient)
{
    if(patient == null )
        throw new CodingRuntimeException("Patient not provided");

    DomainFactory factory = getDomainFactory();
    List vteriskassess = factory.find("select v1_1 from VTERiskAssessment as v1_1 left join v1_1.patient as p1_1 where  p1_1.id =:idPatient", new String[] {"idPatient"}, new Object[] {patient.getID_Patient()});


    if( vteriskassess != null && vteriskassess.size() > 0)
        return  VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(vteriskassess).sort(SortOrder.DESCENDING);

    return null;
}
项目:openMAXIMS    文件:VTERiskAssessmentImpl.java   
public VTERiskAssessmentShortVoCollection listVTERiskAssessByPasId(PASEventRefVo pasRefVo) 
{
    if(pasRefVo == null )
        throw new CodingRuntimeException("Patient not provided");

    DomainFactory factory = getDomainFactory();
    List vteriskassess = factory.find("select v1_1 from VTERiskAssessment as v1_1 left join v1_1.careContext as c1_1 left join c1_1.pasEvent as p1_1 where p1_1.id =:idPasEvent", new String[] {"idPasEvent"}, new Object[] {pasRefVo.getID_PASEvent()});

    if( vteriskassess != null && vteriskassess.size() > 0)
        return  VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(vteriskassess).sort(SortOrder.DESCENDING);

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void updateBtnVteRiskAssessment()
{
    VTERiskAssessmentShortVoCollection hasVTEs = domain.getVTEByCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    if (hasVTEs != null && hasVTEs.size() > 0)
    {
        for (int i = 0; i < hasVTEs.size(); i++)
        {
            if (form.getLocalContext().getInpatientEpForVTERiskAssessmentVoIsNotNull())
            {
                if (form.getLocalContext().getInpatientEpForVTERiskAssessmentVo().getVTERiskAssessmentIsNotNull())
                {
                    if (hasVTEs.get(i).equals(form.getLocalContext().getInpatientEpForVTERiskAssessmentVo().getVTERiskAssessment()))
                    {
                        form.lyrDetail().tabDischarge().btnVTERiskAssesssment().setVisible(! VTEAsessmentStatus.COMPLETED.equals(hasVTEs.get(i).getVTEAssessmentStatus()));
                        form.getLocalContext().setShowVTERiskAssessmentButton(! VTEAsessmentStatus.COMPLETED.equals(hasVTEs.get(i).getVTEAssessmentStatus()));
                        break;
                    }
                }
                else
                {
                    form.lyrDetail().tabDischarge().btnVTERiskAssesssment().setVisible(! VTEAsessmentStatus.COMPLETED.equals(hasVTEs.get(i).getVTEAssessmentStatus()));
                    form.getLocalContext().setShowVTERiskAssessmentButton(! VTEAsessmentStatus.COMPLETED.equals(hasVTEs.get(i).getVTEAssessmentStatus()));
                    break;
                }
            }
            else
            {
                form.lyrDetail().tabDischarge().btnVTERiskAssesssment().setVisible(false);
                form.getLocalContext().setShowVTERiskAssessmentButton(false);
                break;
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void fillRecordBrowser(VTERiskAssessmentShortVoCollection collVTERisk)
{
    form.recbrVTEAssessment().clear();
    if(collVTERisk == null)
        return;

    for(int i=0; i<collVTERisk.size(); i++)
    {
        VTERiskAssessmentShortVo voVTERiskAssShort =  collVTERisk.get(i); 
        if(voVTERiskAssShort != null)
        {
            String strDateTime = (voVTERiskAssShort.getRecordingInformationIsNotNull() && voVTERiskAssShort.getRecordingInformation().getRecordingDateTimeIsNotNull() ) ? voVTERiskAssShort.getRecordingInformation().getRecordingDateTime().toString():"";
            String strUserName = (voVTERiskAssShort.getRecordingInformationIsNotNull()  &&  voVTERiskAssShort.getRecordingInformation().getRecordingUserIsNotNull()) ? " - " + voVTERiskAssShort.getRecordingInformation().getRecordingUser().toString():"";

            if( form.getLocalContext().getInpatientEpisode() != null && form.getLocalContext().getInpatientEpisode().getVTERiskAssessmentIsNotNull() && voVTERiskAssShort.equals(form.getLocalContext().getInpatientEpisode().getVTERiskAssessment()))
            {                   
                form.recbrVTEAssessment().newRow(voVTERiskAssShort,  strDateTime + strUserName ,Color.Green);
            }
            //WDEV-15414 
            else if(form.getLocalContext().getDischargeEpisode() != null && form.getLocalContext().getDischargeEpisode().getVTERiskAssessmentIsNotNull() && voVTERiskAssShort.equals(form.getLocalContext().getDischargeEpisode().getVTERiskAssessment()))
            {
                form.recbrVTEAssessment().newRow(voVTERiskAssShort,  strDateTime + strUserName ,Color.Green);
            }
            else
            {                    
                form.recbrVTEAssessment().newRow(voVTERiskAssShort,   strDateTime + strUserName );
            }
        }

    }

}
项目:openMAXIMS    文件:VTERiskAssessmentImpl.java   
public ims.clinical.vo.VTERiskAssessmentShortVoCollection listVTERiskAssessments(ims.core.vo.PatientShort patient)
{
    if(patient == null )
        throw new CodingRuntimeException("Patient not provided");

    DomainFactory factory = getDomainFactory();
    List vteriskassess = factory.find("select v1_1 from VTERiskAssessment as v1_1 left join v1_1.patient as p1_1 where  p1_1.id =:idPatient", new String[] {"idPatient"}, new Object[] {patient.getID_Patient()});


    if( vteriskassess != null && vteriskassess.size() > 0)
        return  VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(vteriskassess).sort(SortOrder.DESCENDING);

    return null;
}
项目:openMAXIMS    文件:VTERiskAssessmentImpl.java   
public VTERiskAssessmentShortVoCollection listVTERiskAssessByPasId(PASEventRefVo pasRefVo) 
{
    if(pasRefVo == null )
        throw new CodingRuntimeException("Patient not provided");

    DomainFactory factory = getDomainFactory();
    List vteriskassess = factory.find("select v1_1 from VTERiskAssessment as v1_1 left join v1_1.careContext as c1_1 left join c1_1.pasEvent as p1_1 where p1_1.id =:idPasEvent", new String[] {"idPasEvent"}, new Object[] {pasRefVo.getID_PASEvent()});

    if( vteriskassess != null && vteriskassess.size() > 0)
        return  VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(vteriskassess).sort(SortOrder.DESCENDING);

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private void updateBtnVteRiskAssessment()
{
    VTERiskAssessmentShortVoCollection hasVTEs = domain.getVTEByCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    if (hasVTEs != null && hasVTEs.size() > 0)
    {
        for (int i = 0; i < hasVTEs.size(); i++)
        {
            if (form.getLocalContext().getInpatientEpForVTERiskAssessmentVoIsNotNull())
            {
                if (form.getLocalContext().getInpatientEpForVTERiskAssessmentVo().getVTERiskAssessmentIsNotNull())
                {
                    if (hasVTEs.get(i).equals(form.getLocalContext().getInpatientEpForVTERiskAssessmentVo().getVTERiskAssessment()))
                    {
                        form.lyrDetail().tabDischarge().btnVTERiskAssesssment().setVisible(! VTEAsessmentStatus.COMPLETED.equals(hasVTEs.get(i).getVTEAssessmentStatus()));
                        form.getLocalContext().setShowVTERiskAssessmentButton(! VTEAsessmentStatus.COMPLETED.equals(hasVTEs.get(i).getVTEAssessmentStatus()));
                        break;
                    }
                }
                else
                {
                    form.lyrDetail().tabDischarge().btnVTERiskAssesssment().setVisible(! VTEAsessmentStatus.COMPLETED.equals(hasVTEs.get(i).getVTEAssessmentStatus()));
                    form.getLocalContext().setShowVTERiskAssessmentButton(! VTEAsessmentStatus.COMPLETED.equals(hasVTEs.get(i).getVTEAssessmentStatus()));
                    break;
                }
            }
            else
            {
                form.lyrDetail().tabDischarge().btnVTERiskAssesssment().setVisible(false);
                form.getLocalContext().setShowVTERiskAssessmentButton(false);
                break;
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void fillRecordBrowser(VTERiskAssessmentShortVoCollection collVTERisk)
{
    form.recbrVTEAssessment().clear();
    if(collVTERisk == null)
        return;

    for(int i=0; i<collVTERisk.size(); i++)
    {
        VTERiskAssessmentShortVo voVTERiskAssShort =  collVTERisk.get(i); 
        if(voVTERiskAssShort != null)
        {
            String strDateTime = (voVTERiskAssShort.getRecordingInformationIsNotNull() && voVTERiskAssShort.getRecordingInformation().getRecordingDateTimeIsNotNull() ) ? voVTERiskAssShort.getRecordingInformation().getRecordingDateTime().toString():"";
            String strUserName = (voVTERiskAssShort.getRecordingInformationIsNotNull()  &&  voVTERiskAssShort.getRecordingInformation().getRecordingUserIsNotNull()) ? " - " + voVTERiskAssShort.getRecordingInformation().getRecordingUser().toString():"";

            if( form.getLocalContext().getInpatientEpisode() != null && form.getLocalContext().getInpatientEpisode().getVTERiskAssessmentIsNotNull() && voVTERiskAssShort.equals(form.getLocalContext().getInpatientEpisode().getVTERiskAssessment()))
            {                   
                form.recbrVTEAssessment().newRow(voVTERiskAssShort,  strDateTime + strUserName ,Color.Green);
            }
            //WDEV-15414 
            else if(form.getLocalContext().getDischargeEpisode() != null && form.getLocalContext().getDischargeEpisode().getVTERiskAssessmentIsNotNull() && voVTERiskAssShort.equals(form.getLocalContext().getDischargeEpisode().getVTERiskAssessment()))
            {
                form.recbrVTEAssessment().newRow(voVTERiskAssShort,  strDateTime + strUserName ,Color.Green);
            }
            else
            {                    
                form.recbrVTEAssessment().newRow(voVTERiskAssShort,   strDateTime + strUserName );
            }
        }

    }

}
项目:openmaxims-linux    文件:VTERiskAssessmentImpl.java   
public ims.clinical.vo.VTERiskAssessmentShortVoCollection listVTERiskAssessments(ims.core.vo.PatientShort patient)
{
    if(patient == null )
        throw new CodingRuntimeException("Patient not provided");

    DomainFactory factory = getDomainFactory();
    List vteriskassess = factory.find("select v1_1 from VTERiskAssessment as v1_1 left join v1_1.patient as p1_1 where  p1_1.id =:idPatient", new String[] {"idPatient"}, new Object[] {patient.getID_Patient()});


    if( vteriskassess != null && vteriskassess.size() > 0)
        return  VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(vteriskassess).sort(SortOrder.DESCENDING);

    return null;
}
项目:openmaxims-linux    文件:VTERiskAssessmentImpl.java   
public VTERiskAssessmentShortVoCollection listVTERiskAssessByPasId(PASEventRefVo pasRefVo) 
{
    if(pasRefVo == null )
        throw new CodingRuntimeException("Patient not provided");

    DomainFactory factory = getDomainFactory();
    List vteriskassess = factory.find("select v1_1 from VTERiskAssessment as v1_1 left join v1_1.careContext as c1_1 left join c1_1.pasEvent as p1_1 where p1_1.id =:idPasEvent", new String[] {"idPasEvent"}, new Object[] {pasRefVo.getID_PASEvent()});

    if( vteriskassess != null && vteriskassess.size() > 0)
        return  VTERiskAssessmentShortVoAssembler.createVTERiskAssessmentShortVoCollectionFromVTERiskAssessment(vteriskassess).sort(SortOrder.DESCENDING);

    return null;
}