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

项目:AvoinApotti    文件:Logic.java   
private boolean isOpNotesProcedures(PatientProcedureProcsComponentLiteVo proc)
{
    SurgicalOperationNotesShortVo tempVo = domain.getSurgicalOperationNotesShort(form.getGlobalContext().Core.getCurrentCareContext());

    if( tempVo == null)
        return false;

    if( tempVo.getProceduresPerformedIsNotNull() )
    {
        for( int i = 0; i < tempVo.getProceduresPerformed().size();i++)
        {
            if( proc != null && proc.getID_PatientProcedureIsNotNull() && tempVo.getProceduresPerformed().get(i) != null && proc.getID_PatientProcedure().equals(tempVo.getProceduresPerformed().get(i).getID_PatientProcedure()))
                return true;

        }
    }

    if( proc != null && proc.getID_PatientProcedureIsNotNull() && tempVo.getMainProcedureIsNotNull() && proc.getID_PatientProcedure().equals(tempVo.getMainProcedure().getID_PatientProcedure()))
        return true;


    return false;
}
项目:AvoinApotti    文件:EDischargeOpsProcsComponentImpl.java   
public SurgicalOperationNotesShortVo getSurgicalOperationNotesShort( CareContextRefVo careContextRef) 
{
    if( careContextRef == null)
        return null;
    DomainFactory factory = getDomainFactory();

    List result = factory.find("select s1_1 from SurgicalOperationNotes as s1_1 left join s1_1.careContext as c1_1  where (c1_1.id = :carecontextId)", new String[]{"carecontextId"}, new Object[]{careContextRef.getID_CareContext()});
    if(result != null && result.size() > 0)
    {
        SurgicalOperationNotesShortVoCollection tempColl = SurgicalOperationNotesShortVoAssembler.createSurgicalOperationNotesShortVoCollectionFromSurgicalOperationNotes(result);

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

    return null;


}
项目:openMAXIMS    文件:Logic.java   
private boolean isOpNotesProcedures(PatientProcedureProcsComponentLiteVo proc)
{
    SurgicalOperationNotesShortVo tempVo = domain.getSurgicalOperationNotesShort(form.getGlobalContext().Core.getCurrentCareContext());

    if( tempVo == null)
        return false;

    if( tempVo.getProceduresPerformedIsNotNull() )
    {
        for( int i = 0; i < tempVo.getProceduresPerformed().size();i++)
        {
            if( proc != null && proc.getID_PatientProcedureIsNotNull() && tempVo.getProceduresPerformed().get(i) != null && proc.getID_PatientProcedure().equals(tempVo.getProceduresPerformed().get(i).getID_PatientProcedure()))
                return true;

        }
    }

    if( proc != null && proc.getID_PatientProcedureIsNotNull() && tempVo.getMainProcedureIsNotNull() && proc.getID_PatientProcedure().equals(tempVo.getMainProcedure().getID_PatientProcedure()))
        return true;


    return false;
}
项目:openMAXIMS    文件:EDischargeOpsProcsComponentImpl.java   
public SurgicalOperationNotesShortVo getSurgicalOperationNotesShort( CareContextRefVo careContextRef) 
{
    if( careContextRef == null)
        return null;
    DomainFactory factory = getDomainFactory();

    List result = factory.find("select s1_1 from SurgicalOperationNotes as s1_1 left join s1_1.careContext as c1_1  where (c1_1.id = :carecontextId)", new String[]{"carecontextId"}, new Object[]{careContextRef.getID_CareContext()});
    if(result != null && result.size() > 0)
    {
        SurgicalOperationNotesShortVoCollection tempColl = SurgicalOperationNotesShortVoAssembler.createSurgicalOperationNotesShortVoCollectionFromSurgicalOperationNotes(result);

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

    return null;


}
项目:openMAXIMS    文件:Logic.java   
private boolean isOpNotesProcedures(PatientProcedureProcsComponentLiteVo proc)
{
    SurgicalOperationNotesShortVo tempVo = domain.getSurgicalOperationNotesShort(form.getGlobalContext().Core.getCurrentCareContext());

    if( tempVo == null)
        return false;

    if( tempVo.getProceduresPerformedIsNotNull() )
    {
        for( int i = 0; i < tempVo.getProceduresPerformed().size();i++)
        {
            if( proc != null && proc.getID_PatientProcedureIsNotNull() && tempVo.getProceduresPerformed().get(i) != null && proc.getID_PatientProcedure().equals(tempVo.getProceduresPerformed().get(i).getID_PatientProcedure()))
                return true;

        }
    }

    if( proc != null && proc.getID_PatientProcedureIsNotNull() && tempVo.getMainProcedureIsNotNull() && proc.getID_PatientProcedure().equals(tempVo.getMainProcedure().getID_PatientProcedure()))
        return true;


    return false;
}
项目:openMAXIMS    文件:EDischargeOpsProcsComponentImpl.java   
public SurgicalOperationNotesShortVo getSurgicalOperationNotesShort( CareContextRefVo careContextRef) 
{
    if( careContextRef == null)
        return null;
    DomainFactory factory = getDomainFactory();

    List result = factory.find("select s1_1 from SurgicalOperationNotes as s1_1 left join s1_1.careContext as c1_1  where (c1_1.id = :carecontextId)", new String[]{"carecontextId"}, new Object[]{careContextRef.getID_CareContext()});
    if(result != null && result.size() > 0)
    {
        SurgicalOperationNotesShortVoCollection tempColl = SurgicalOperationNotesShortVoAssembler.createSurgicalOperationNotesShortVoCollectionFromSurgicalOperationNotes(result);

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

    return null;


}
项目:openmaxims-linux    文件:Logic.java   
private boolean isOpNotesProcedures(PatientProcedureProcsComponentLiteVo proc)
{
    SurgicalOperationNotesShortVo tempVo = domain.getSurgicalOperationNotesShort(form.getGlobalContext().Core.getCurrentCareContext());

    if( tempVo == null)
        return false;

    if( tempVo.getProceduresPerformedIsNotNull() )
    {
        for( int i = 0; i < tempVo.getProceduresPerformed().size();i++)
        {
            if( proc != null && proc.getID_PatientProcedureIsNotNull() && tempVo.getProceduresPerformed().get(i) != null && proc.getID_PatientProcedure().equals(tempVo.getProceduresPerformed().get(i).getID_PatientProcedure()))
                return true;

        }
    }

    if( proc != null && proc.getID_PatientProcedureIsNotNull() && tempVo.getMainProcedureIsNotNull() && proc.getID_PatientProcedure().equals(tempVo.getMainProcedure().getID_PatientProcedure()))
        return true;


    return false;
}
项目:openmaxims-linux    文件:EDischargeOpsProcsComponentImpl.java   
public SurgicalOperationNotesShortVo getSurgicalOperationNotesShort( CareContextRefVo careContextRef) 
{
    if( careContextRef == null)
        return null;
    DomainFactory factory = getDomainFactory();

    List result = factory.find("select s1_1 from SurgicalOperationNotes as s1_1 left join s1_1.careContext as c1_1  where (c1_1.id = :carecontextId)", new String[]{"carecontextId"}, new Object[]{careContextRef.getID_CareContext()});
    if(result != null && result.size() > 0)
    {
        SurgicalOperationNotesShortVoCollection tempColl = SurgicalOperationNotesShortVoAssembler.createSurgicalOperationNotesShortVoCollectionFromSurgicalOperationNotes(result);

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

    return null;


}