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

项目:AvoinApotti    文件:Logic.java   
private void gridProcedureSelChange()
{

    PatientProcedureProcsComponentLiteVo voPatientProcedure = (PatientProcedureProcsComponentLiteVo) form.grdProcs().getValue();
    if (voPatientProcedure == null)
    {
        engine.showMessage("Please select a Procedure");
        return;
    }

    PatientProcedureProcsComponentVo voPatProc = domain.getProcedure(voPatientProcedure.toPatientProcedureRefVo());
    form.getLocalContext().setPatientProcedureVo(voPatProc);

    populateScreenFromData(voPatProc);
    updateContextMenu();
}
项目: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    文件:Logic.java   
@Override
protected void onGrdProcsSelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if(FormMode.VIEW.equals(form.getMode()))
    {
        PatientProcedureProcsComponentLiteVo voPatientProcedure = (PatientProcedureProcsComponentLiteVo) form.grdProcs().getValue();
        if (voPatientProcedure == null)
        {
            engine.showMessage("Please select a Procedure");
            form.getLocalContext().setPatientProcedureVo(null);
            return;
        }

        PatientProcedureProcsComponentVo voPatProc = domain.getProcedure(voPatientProcedure);
        form.getLocalContext().setPatientProcedureVo(voPatProc);

        populateScreenFromData(voPatProc);
        updateContextMenu();
        updateControlState();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void gridProcedureSelChange()
{

    PatientProcedureProcsComponentLiteVo voPatientProcedure = (PatientProcedureProcsComponentLiteVo) form.grdProcs().getValue();
    if (voPatientProcedure == null)
    {
        engine.showMessage("Please select a Procedure");
        return;
    }

    PatientProcedureProcsComponentVo voPatProc = domain.getProcedure(voPatientProcedure.toPatientProcedureRefVo());
    form.getLocalContext().setPatientProcedureVo(voPatProc);

    populateScreenFromData(voPatProc);
    updateContextMenu();
}
项目: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    文件:Logic.java   
@Override
protected void onGrdProcsSelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if(FormMode.VIEW.equals(form.getMode()))
    {
        PatientProcedureProcsComponentLiteVo voPatientProcedure = (PatientProcedureProcsComponentLiteVo) form.grdProcs().getValue();
        if (voPatientProcedure == null)
        {
            engine.showMessage("Please select a Procedure");
            form.getLocalContext().setPatientProcedureVo(null);
            return;
        }

        PatientProcedureProcsComponentVo voPatProc = domain.getProcedure(voPatientProcedure);
        form.getLocalContext().setPatientProcedureVo(voPatProc);

        populateScreenFromData(voPatProc);
        updateContextMenu();
        updateControlState();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void gridProcedureSelChange()
{

    PatientProcedureProcsComponentLiteVo voPatientProcedure = (PatientProcedureProcsComponentLiteVo) form.grdProcs().getValue();
    if (voPatientProcedure == null)
    {
        engine.showMessage("Please select a Procedure");
        return;
    }

    PatientProcedureProcsComponentVo voPatProc = domain.getProcedure(voPatientProcedure.toPatientProcedureRefVo());
    form.getLocalContext().setPatientProcedureVo(voPatProc);

    populateScreenFromData(voPatProc);
    updateContextMenu();
}
项目: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    文件:Logic.java   
@Override
protected void onGrdProcsSelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if(FormMode.VIEW.equals(form.getMode()))
    {
        PatientProcedureProcsComponentLiteVo voPatientProcedure = (PatientProcedureProcsComponentLiteVo) form.grdProcs().getValue();
        if (voPatientProcedure == null)
        {
            engine.showMessage("Please select a Procedure");
            form.getLocalContext().setPatientProcedureVo(null);
            return;
        }

        PatientProcedureProcsComponentVo voPatProc = domain.getProcedure(voPatientProcedure);
        form.getLocalContext().setPatientProcedureVo(voPatProc);

        populateScreenFromData(voPatProc);
        updateContextMenu();
        updateControlState();
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void gridProcedureSelChange()
{

    PatientProcedureProcsComponentLiteVo voPatientProcedure = (PatientProcedureProcsComponentLiteVo) form.grdProcs().getValue();
    if (voPatientProcedure == null)
    {
        engine.showMessage("Please select a Procedure");
        return;
    }

    PatientProcedureProcsComponentVo voPatProc = domain.getProcedure(voPatientProcedure.toPatientProcedureRefVo());
    form.getLocalContext().setPatientProcedureVo(voPatProc);

    populateScreenFromData(voPatProc);
    updateContextMenu();
}
项目: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    文件:Logic.java   
@Override
protected void onGrdProcsSelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if(FormMode.VIEW.equals(form.getMode()))
    {
        PatientProcedureProcsComponentLiteVo voPatientProcedure = (PatientProcedureProcsComponentLiteVo) form.grdProcs().getValue();
        if (voPatientProcedure == null)
        {
            engine.showMessage("Please select a Procedure");
            form.getLocalContext().setPatientProcedureVo(null);
            return;
        }

        PatientProcedureProcsComponentVo voPatProc = domain.getProcedure(voPatientProcedure);
        form.getLocalContext().setPatientProcedureVo(voPatProc);

        populateScreenFromData(voPatProc);
        updateContextMenu();
        updateControlState();
    }
}
项目:AvoinApotti    文件:Logic.java   
private void markAsRie(PatientProcedureProcsComponentLiteVo value) 
{
    if(value == null)
        return;

    form.getLocalContext().setProcedureToBeRIE(value);
    engine.open(form.getForms().Core.RieConfirmationDialog);
}
项目:AvoinApotti    文件:EDischargeOpsProcsComponentImpl.java   
public void rieProcedure(PatientProcedureProcsComponentLiteVo proc, FormName formName, Integer patientId, Integer contactId, Integer careContextId, String rieMessage, SummaryRefVo summary) throws StaleObjectException 
{
    if (summary!=null && summary.getID_SummaryIsNotNull())
    {
        //Check to see if letter status is generated 
        String sql = "select count(summ.id) from Summary as summ left join summ.dischargeLetterStatus as lookup where (summ.id=:summId and lookup.id = :idGenerated)";

        long count = getDomainFactory().countWithHQL(sql, new String[]{"summId","idGenerated"}, new Object[]{summary.getID_Summary(),DischargeLetterStatus.GENERATED.getID()});
        if (count >0)
            throw new StaleObjectException(null);
    }

    markAsRie(proc, formName, patientId, contactId, careContextId, rieMessage);
}
项目:openMAXIMS    文件:Logic.java   
private void markAsRie(PatientProcedureProcsComponentLiteVo value) 
{
    if(value == null)
        return;

    form.getLocalContext().setProcedureToBeRIE(value);
    engine.open(form.getForms().Core.RieConfirmationDialog);
}
项目:openMAXIMS    文件:EDischargeOpsProcsComponentImpl.java   
public void rieProcedure(PatientProcedureProcsComponentLiteVo proc, FormName formName, Integer patientId, Integer contactId, Integer careContextId, String rieMessage, SummaryRefVo summary) throws StaleObjectException 
{
    if (summary!=null && summary.getID_SummaryIsNotNull())
    {
        //Check to see if letter status is generated 
        String sql = "select count(summ.id) from Summary as summ left join summ.dischargeLetterStatus as lookup where (summ.id=:summId and lookup.id = :idGenerated)";

        long count = getDomainFactory().countWithHQL(sql, new String[]{"summId","idGenerated"}, new Object[]{summary.getID_Summary(),DischargeLetterStatus.GENERATED.getID()});
        if (count >0)
            throw new StaleObjectException(null);
    }

    markAsRie(proc, formName, patientId, contactId, careContextId, rieMessage);
}
项目:openMAXIMS    文件:Logic.java   
private void markAsRie(PatientProcedureProcsComponentLiteVo value) 
{
    if(value == null)
        return;

    form.getLocalContext().setProcedureToBeRIE(value);
    engine.open(form.getForms().Core.RieConfirmationDialog);
}
项目:openMAXIMS    文件:EDischargeOpsProcsComponentImpl.java   
public void rieProcedure(PatientProcedureProcsComponentLiteVo proc, FormName formName, Integer patientId, Integer contactId, Integer careContextId, String rieMessage, SummaryRefVo summary) throws StaleObjectException 
{
    if (summary!=null && summary.getID_SummaryIsNotNull())
    {
        //Check to see if letter status is generated 
        String sql = "select count(summ.id) from Summary as summ left join summ.dischargeLetterStatus as lookup where (summ.id=:summId and lookup.id = :idGenerated)";

        long count = getDomainFactory().countWithHQL(sql, new String[]{"summId","idGenerated"}, new Object[]{summary.getID_Summary(),DischargeLetterStatus.GENERATED.getID()});
        if (count >0)
            throw new StaleObjectException(null);
    }

    markAsRie(proc, formName, patientId, contactId, careContextId, rieMessage);
}
项目:openmaxims-linux    文件:Logic.java   
private void markAsRie(PatientProcedureProcsComponentLiteVo value) 
{
    if(value == null)
        return;

    form.getLocalContext().setProcedureToBeRIE(value);
    engine.open(form.getForms().Core.RieConfirmationDialog);
}
项目:openmaxims-linux    文件:EDischargeOpsProcsComponentImpl.java   
public void rieProcedure(PatientProcedureProcsComponentLiteVo proc, FormName formName, Integer patientId, Integer contactId, Integer careContextId, String rieMessage, SummaryRefVo summary) throws StaleObjectException 
{
    if (summary!=null && summary.getID_SummaryIsNotNull())
    {
        //Check to see if letter status is generated 
        String sql = "select count(summ.id) from Summary as summ left join summ.dischargeLetterStatus as lookup where (summ.id=:summId and lookup.id = :idGenerated)";

        long count = getDomainFactory().countWithHQL(sql, new String[]{"summId","idGenerated"}, new Object[]{summary.getID_Summary(),DischargeLetterStatus.GENERATED.getID()});
        if (count >0)
            throw new StaleObjectException(null);
    }

    markAsRie(proc, formName, patientId, contactId, careContextId, rieMessage);
}
项目:AvoinApotti    文件:Logic.java   
private void displayProcedures(PatientProcedureProcsComponentLiteVoCollection procedures)
{
    form.grdProcs().getRows().clear();

    if (procedures != null)
    {
        for (PatientProcedureProcsComponentLiteVo procedure : procedures)
        {
            grdProcsRow aRow = form.grdProcs().getRows().newRow();
            aRow.setValue(procedure);

            if (procedure.getAuthoringInformationIsNotNull())
            {
                if (procedure.getAuthoringInformation().getAuthoringHcpIsNotNull() && procedure.getAuthoringInformation().getAuthoringDateTimeIsNotNull())
                {
                    aRow.setColAuthoringHCPDateTime(procedure.getAuthoringInformation().getAuthoringHcp().toString() + ", " + procedure.getAuthoringInformation().getAuthoringDateTime());
                }
                else if (procedure.getAuthoringInformation().getAuthoringHcpIsNotNull() && (!procedure.getAuthoringInformation().getAuthoringDateTimeIsNotNull()))
                {
                    aRow.setColAuthoringHCPDateTime(procedure.getAuthoringInformation().getAuthoringHcp().toString());
                }
                else if ((!procedure.getAuthoringInformation().getAuthoringHcpIsNotNull()) && procedure.getAuthoringInformation().getAuthoringDateTimeIsNotNull())
                {
                    aRow.setColAuthoringHCPDateTime(procedure.getAuthoringInformation().getAuthoringDateTime().toString());
                }
            }

            // WDEV-8607
            if (procedure.getProcDateIsNotNull())
            {
                aRow.setColDate(procedure.getProcDate());
            }

            aRow.setReadOnly(false);

            if (procedure.getIncludeInDischargeLetterIsNotNull())
            {
                if (procedure.getIncludeInDischargeLetter())
                {
                    aRow.setColInclude(true);
                }
                else
                {
                    aRow.setColInclude(false);
                }
            }

            if (procedure.getProcedureDescriptionIsNotNull())
            {
                aRow.setColProc(procedure.getProcedureDescription());
            }
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void displayProcedures(PatientProcedureProcsComponentLiteVoCollection procedures)
{
    form.grdProcs().getRows().clear();

    if (procedures != null)
    {
        for (PatientProcedureProcsComponentLiteVo procedure : procedures)
        {
            grdProcsRow aRow = form.grdProcs().getRows().newRow();
            aRow.setValue(procedure);

            if (procedure.getAuthoringInformationIsNotNull())
            {
                if (procedure.getAuthoringInformation().getAuthoringHcpIsNotNull() && procedure.getAuthoringInformation().getAuthoringDateTimeIsNotNull())
                {
                    aRow.setColAuthoringHCPDateTime(procedure.getAuthoringInformation().getAuthoringHcp().toString() + ", " + procedure.getAuthoringInformation().getAuthoringDateTime());
                }
                else if (procedure.getAuthoringInformation().getAuthoringHcpIsNotNull() && (!procedure.getAuthoringInformation().getAuthoringDateTimeIsNotNull()))
                {
                    aRow.setColAuthoringHCPDateTime(procedure.getAuthoringInformation().getAuthoringHcp().toString());
                }
                else if ((!procedure.getAuthoringInformation().getAuthoringHcpIsNotNull()) && procedure.getAuthoringInformation().getAuthoringDateTimeIsNotNull())
                {
                    aRow.setColAuthoringHCPDateTime(procedure.getAuthoringInformation().getAuthoringDateTime().toString());
                }
            }

            // WDEV-8607
            if (procedure.getProcDateIsNotNull())
            {
                aRow.setColDate(procedure.getProcDate());
            }

            aRow.setReadOnly(false);

            if (procedure.getIncludeInDischargeLetterIsNotNull())
            {
                if (procedure.getIncludeInDischargeLetter())
                {
                    aRow.setColInclude(true);
                }
                else
                {
                    aRow.setColInclude(false);
                }
            }

            if (procedure.getProcedureDescriptionIsNotNull())
            {
                aRow.setColProc(procedure.getProcedureDescription());
            }
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void displayProcedures(PatientProcedureProcsComponentLiteVoCollection procedures)
{
    form.grdProcs().getRows().clear();

    if (procedures != null)
    {
        for (PatientProcedureProcsComponentLiteVo procedure : procedures)
        {
            grdProcsRow aRow = form.grdProcs().getRows().newRow();
            aRow.setValue(procedure);

            if (procedure.getAuthoringInformationIsNotNull())
            {
                if (procedure.getAuthoringInformation().getAuthoringHcpIsNotNull() && procedure.getAuthoringInformation().getAuthoringDateTimeIsNotNull())
                {
                    aRow.setColAuthoringHCPDateTime(procedure.getAuthoringInformation().getAuthoringHcp().toString() + ", " + procedure.getAuthoringInformation().getAuthoringDateTime());
                }
                else if (procedure.getAuthoringInformation().getAuthoringHcpIsNotNull() && (!procedure.getAuthoringInformation().getAuthoringDateTimeIsNotNull()))
                {
                    aRow.setColAuthoringHCPDateTime(procedure.getAuthoringInformation().getAuthoringHcp().toString());
                }
                else if ((!procedure.getAuthoringInformation().getAuthoringHcpIsNotNull()) && procedure.getAuthoringInformation().getAuthoringDateTimeIsNotNull())
                {
                    aRow.setColAuthoringHCPDateTime(procedure.getAuthoringInformation().getAuthoringDateTime().toString());
                }
            }

            // WDEV-8607
            if (procedure.getProcDateIsNotNull())
            {
                aRow.setColDate(procedure.getProcDate());
            }

            aRow.setReadOnly(false);

            if (procedure.getIncludeInDischargeLetterIsNotNull())
            {
                if (procedure.getIncludeInDischargeLetter())
                {
                    aRow.setColInclude(true);
                }
                else
                {
                    aRow.setColInclude(false);
                }
            }

            if (procedure.getProcedureDescriptionIsNotNull())
            {
                aRow.setColProc(procedure.getProcedureDescription());
            }
        }
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void displayProcedures(PatientProcedureProcsComponentLiteVoCollection procedures)
{
    form.grdProcs().getRows().clear();

    if (procedures != null)
    {
        for (PatientProcedureProcsComponentLiteVo procedure : procedures)
        {
            grdProcsRow aRow = form.grdProcs().getRows().newRow();
            aRow.setValue(procedure);

            if (procedure.getAuthoringInformationIsNotNull())
            {
                if (procedure.getAuthoringInformation().getAuthoringHcpIsNotNull() && procedure.getAuthoringInformation().getAuthoringDateTimeIsNotNull())
                {
                    aRow.setColAuthoringHCPDateTime(procedure.getAuthoringInformation().getAuthoringHcp().toString() + ", " + procedure.getAuthoringInformation().getAuthoringDateTime());
                }
                else if (procedure.getAuthoringInformation().getAuthoringHcpIsNotNull() && (!procedure.getAuthoringInformation().getAuthoringDateTimeIsNotNull()))
                {
                    aRow.setColAuthoringHCPDateTime(procedure.getAuthoringInformation().getAuthoringHcp().toString());
                }
                else if ((!procedure.getAuthoringInformation().getAuthoringHcpIsNotNull()) && procedure.getAuthoringInformation().getAuthoringDateTimeIsNotNull())
                {
                    aRow.setColAuthoringHCPDateTime(procedure.getAuthoringInformation().getAuthoringDateTime().toString());
                }
            }

            // WDEV-8607
            if (procedure.getProcDateIsNotNull())
            {
                aRow.setColDate(procedure.getProcDate());
            }

            aRow.setReadOnly(false);

            if (procedure.getIncludeInDischargeLetterIsNotNull())
            {
                if (procedure.getIncludeInDischargeLetter())
                {
                    aRow.setColInclude(true);
                }
                else
                {
                    aRow.setColInclude(false);
                }
            }

            if (procedure.getProcedureDescriptionIsNotNull())
            {
                aRow.setColProc(procedure.getProcedureDescription());
            }
        }
    }

}