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

项目:AvoinApotti    文件:Logic.java   
private void addRowToGrid(PatientDiagnosisListVo patientDiagnosisListVo)
{
    if (patientDiagnosisListVo==null)
        return;

    grdDiagnosisRow row = form.grdDiagnosis().getRows().newRow();
    row.setcolDescription(patientDiagnosisListVo.getDiagnosisDescription());
    row.setTooltipForcolDescription(patientDiagnosisListVo.getDiagnosisDescription());

    row.setcolDiagnosisDate(patientDiagnosisListVo.getDiagnosedDate() != null ? patientDiagnosisListVo.getDiagnosedDate().toString() : "");
    row.setTooltipForcolDiagnosisDate(patientDiagnosisListVo.getDiagnosedDate() != null ? patientDiagnosisListVo.getDiagnosedDate().toString() : "");

    if (patientDiagnosisListVo.getAuthoringInfo() != null)
    {       
        row.setcolAuthoringHCPDateTime(patientDiagnosisListVo.getAuthoringInfo().getIItemText());
        row.setTooltipForcolAuthoringHCPDateTime(patientDiagnosisListVo.getAuthoringInfo().getIItemText());
    }

    row.setcolStatus((patientDiagnosisListVo.getCurrentStatus() != null && patientDiagnosisListVo.getCurrentStatus().getStatus() != null) ? patientDiagnosisListVo.getCurrentStatus().getStatus().getText() : "");
    row.setTooltipForcolStatus((patientDiagnosisListVo.getCurrentStatus() != null && patientDiagnosisListVo.getCurrentStatus().getStatus() != null) ? patientDiagnosisListVo.getCurrentStatus().getStatus().getText() : "");

    row.setValue(patientDiagnosisListVo);
}
项目:AvoinApotti    文件:Logic.java   
private void grdDiagnosisSelectionChanged()
{
    form.getLocalContext().setSelectedPatientDiagnosisVo(null);

    if (form.grdDiagnosis().getValue() != null)
    {
        form.ctnDetails().setCollapsed(false);
        PatientDiagnosisListVo voPatDiagShort = form.grdDiagnosis().getValue();
        PatientDiagnosisVo voPatDiag = domain.getDiagnosisVo(voPatDiagShort);

        if (voPatDiag != null && voPatDiag.getStatusHistoryIsNotNull())
            // WDEV-2535
            setTooltip(voPatDiag);
        else
            setTooltip(null);

        populateInstanceControls(voPatDiag);
        boolean isPrimaryDiagnosis = isPrimaryDiagnosisActive(voPatDiagShort);
        form.ctnDetails().chkPrimaryDiagnosis().setValue(isPrimaryDiagnosis);
        form.getContextMenus().getPastMedicalHistoryLinkingItem().setVisible(!isPrimaryDiagnosis);
        form.getLocalContext().setSelectedPatientDiagnosisVo(voPatDiag);
    }

    updateControlsState();
    updateContextMenus();
}
项目:AvoinApotti    文件:Logic.java   
private void markProblemasPrimary() throws PresentationLogicException
{
    PatientDiagnosisListVo voPatientDiagnosisList = form.grdDiagnosis().getValue();
    if (voPatientDiagnosisList == null)
    {
        engine.showErrors(new String[]{"Please select a Diagnosis / Complication"});
        return;
    }

    PatientDiagnosisVo voPatientDiagnosis = domain.getDiagnosisVo(voPatientDiagnosisList);

    setCsPrimaryDiagnosis(voPatientDiagnosis, true);

    if (saveDiagnosisRecord(voPatientDiagnosis, Boolean.FALSE, null))
    {
        PatientDiagnosisVo voPatDiagnosis = form.getLocalContext().getSelectedPatientDiagnosisVo();
        GenForm.grdDiagnosisRow row = form.grdDiagnosis().getRowByValue(voPatDiagnosis);
        if (row != null)
        {
            setPatientDiagnosisRowData(row, voPatDiagnosis);
            grdDiagnosisSelectionChanged();
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void openPatientDiagnoses() 
{
    PatientDiagnosisListVoCollection voColl = domain.listCancerDiagnosisByPatient(form.getGlobalContext().Core.getPatientShort());

    for (int i=0; i < voColl.size(); i++)
    {
        PatientDiagnosisListVo voDiagnosis = voColl.get(i);

        if (voDiagnosis.getDiagnosisIsNotNull() || voDiagnosis.getDiagnosisDescriptionIsNotNull())
        {
            grdDiagnosisRow row = form.grdDiagnosis().getRows().newRow();

            row.setValue(voDiagnosis);
            row.setcolItems(voDiagnosis.getDiagnosisDescription());
            row.setColumnSelect(false);
        }
    }

}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    for (int i = 0 ; i < form.grdDiagnosis().getRows().size() ; i++)
    {
        if (form.grdDiagnosis().getRows().get(i).getColumnSelect())
        {
            if (form.grdDiagnosis().getRows().get(i).getValue() instanceof PatientDiagnosisListVo)
                form.getGlobalContext().Clinical.setSelectedPatientDiagnosisListVo((PatientDiagnosisListVo)form.grdDiagnosis().getRows().get(i).getValue());
            else if (form.grdDiagnosis().getRows().get(i).getValue() instanceof DiagLiteVo)
            {
                PatientDiagnosisListVo voPD = new PatientDiagnosisListVo();
                voPD.setDiagnosis((DiagLiteVo) form.grdDiagnosis().getRows().get(i).getValue());
                voPD.setDiagnosisDescription( ((DiagLiteVo)form.grdDiagnosis().getRows().get(i).getValue()).getDiagnosisName());
                form.getGlobalContext().Clinical.setSelectedPatientDiagnosisListVo(voPD);
            }
        }
    }

    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
private void addRowToGrid(PatientDiagnosisListVo patientDiagnosisListVo)
{
    if (patientDiagnosisListVo==null)
        return;

    grdDiagnosisRow row = form.grdDiagnosis().getRows().newRow();
    row.setcolDescription(patientDiagnosisListVo.getDiagnosisDescription());
    row.setTooltipForcolDescription(patientDiagnosisListVo.getDiagnosisDescription());

    row.setcolDiagnosisDate(patientDiagnosisListVo.getDiagnosedDate() != null ? patientDiagnosisListVo.getDiagnosedDate().toString() : "");
    row.setTooltipForcolDiagnosisDate(patientDiagnosisListVo.getDiagnosedDate() != null ? patientDiagnosisListVo.getDiagnosedDate().toString() : "");

    if (patientDiagnosisListVo.getAuthoringInfo() != null)
    {       
        row.setcolAuthoringHCPDateTime(patientDiagnosisListVo.getAuthoringInfo().getIItemText());
        row.setTooltipForcolAuthoringHCPDateTime(patientDiagnosisListVo.getAuthoringInfo().getIItemText());
    }

    row.setcolStatus((patientDiagnosisListVo.getCurrentStatus() != null && patientDiagnosisListVo.getCurrentStatus().getStatus() != null) ? patientDiagnosisListVo.getCurrentStatus().getStatus().getText() : "");
    row.setTooltipForcolStatus((patientDiagnosisListVo.getCurrentStatus() != null && patientDiagnosisListVo.getCurrentStatus().getStatus() != null) ? patientDiagnosisListVo.getCurrentStatus().getStatus().getText() : "");

    row.setValue(patientDiagnosisListVo);
}
项目:openMAXIMS    文件:Logic.java   
private boolean isDiagNotAlreadyCoded(PatientDiagnosisListVo value)
{
    if (form.lyrTabs().tabInpatientCoding().isVisible())
    {
        for (int i = 0; i < form.lyrTabs().tabInpatientCoding().grdCoding().getRows().size(); i++)
        {
            if (form.lyrTabs().tabInpatientCoding().grdCoding().getRows().get(i).getColDiagVo() != null && form.lyrTabs().tabInpatientCoding().grdCoding().getRows().get(i).getColDiagVo().getID_PatientDiagnosisIsNotNull() && value.getID_PatientDiagnosis().equals(form.lyrTabs().tabInpatientCoding().grdCoding().getRows().get(i).getColDiagVo().getID_PatientDiagnosis()))
                return false;
        }
    }
    else if (form.lyrTabs().tabOutpatientCoding().isVisible())
    {
        for (int i = 0; i < form.lyrTabs().tabOutpatientCoding().grdOutpatientCoding().getRows().size(); i++)
        {
            if (form.lyrTabs().tabOutpatientCoding().grdOutpatientCoding().getRows().get(i).getColDiagVo() != null && form.lyrTabs().tabOutpatientCoding().grdOutpatientCoding().getRows().get(i).getColDiagVo().getID_PatientDiagnosisIsNotNull() && value.getID_PatientDiagnosis().equals(form.lyrTabs().tabOutpatientCoding().grdOutpatientCoding().getRows().get(i).getColDiagVo().getID_PatientDiagnosis()))
                return false;
        }
    }

    return true;
}
项目:openMAXIMS    文件:Logic.java   
private void grdDiagnosisSelectionChanged()
{
    form.getLocalContext().setSelectedPatientDiagnosisVo(null);

    if (form.grdDiagnosis().getValue() != null)
    {
        form.ctnDetails().setCollapsed(false);
        PatientDiagnosisListVo voPatDiagShort = form.grdDiagnosis().getValue();
        PatientDiagnosisVo voPatDiag = domain.getDiagnosisVo(voPatDiagShort);

        if (voPatDiag != null && voPatDiag.getStatusHistoryIsNotNull())
            // WDEV-2535
            setTooltip(voPatDiag);
        else
            setTooltip(null);

        populateInstanceControls(voPatDiag);
        boolean isPrimaryDiagnosis = isPrimaryDiagnosisActive(voPatDiagShort);
        form.ctnDetails().chkPrimaryDiagnosis().setValue(isPrimaryDiagnosis);
        form.getContextMenus().getPastMedicalHistoryLinkingItem().setVisible(!isPrimaryDiagnosis);
        form.getLocalContext().setSelectedPatientDiagnosisVo(voPatDiag);
    }

    updateControlsState();
    updateContextMenus();
}
项目:openMAXIMS    文件:Logic.java   
private void markProblemasPrimary() throws PresentationLogicException
{
    PatientDiagnosisListVo voPatientDiagnosisList = form.grdDiagnosis().getValue();
    if (voPatientDiagnosisList == null)
    {
        engine.showErrors(new String[]{"Please select a Diagnosis / Complication"});
        return;
    }

    PatientDiagnosisVo voPatientDiagnosis = domain.getDiagnosisVo(voPatientDiagnosisList);

    setCsPrimaryDiagnosis(voPatientDiagnosis, true);

    if (saveDiagnosisRecord(voPatientDiagnosis, Boolean.FALSE, null))
    {
        PatientDiagnosisVo voPatDiagnosis = form.getLocalContext().getSelectedPatientDiagnosisVo();
        GenForm.grdDiagnosisRow row = form.grdDiagnosis().getRowByValue(voPatDiagnosis);
        if (row != null)
        {
            setPatientDiagnosisRowData(row, voPatDiagnosis);
            grdDiagnosisSelectionChanged();
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void openPatientDiagnoses() 
{
    PatientDiagnosisListVoCollection voColl = domain.listCancerDiagnosisByPatient(form.getGlobalContext().Core.getPatientShort());

    for (int i=0; i < voColl.size(); i++)
    {
        PatientDiagnosisListVo voDiagnosis = voColl.get(i);

        if (voDiagnosis.getDiagnosisIsNotNull() || voDiagnosis.getDiagnosisDescriptionIsNotNull())
        {
            grdDiagnosisRow row = form.grdDiagnosis().getRows().newRow();

            row.setValue(voDiagnosis);
            row.setcolItems(voDiagnosis.getDiagnosisDescription());
            row.setColumnSelect(false);
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    for (int i = 0 ; i < form.grdDiagnosis().getRows().size() ; i++)
    {
        if (form.grdDiagnosis().getRows().get(i).getColumnSelect())
        {
            if (form.grdDiagnosis().getRows().get(i).getValue() instanceof PatientDiagnosisListVo)
                form.getGlobalContext().Clinical.setSelectedPatientDiagnosisListVo((PatientDiagnosisListVo)form.grdDiagnosis().getRows().get(i).getValue());
            else if (form.grdDiagnosis().getRows().get(i).getValue() instanceof DiagLiteVo)
            {
                PatientDiagnosisListVo voPD = new PatientDiagnosisListVo();
                voPD.setDiagnosis((DiagLiteVo) form.grdDiagnosis().getRows().get(i).getValue());
                voPD.setDiagnosisDescription( ((DiagLiteVo)form.grdDiagnosis().getRows().get(i).getValue()).getDiagnosisName());
                form.getGlobalContext().Clinical.setSelectedPatientDiagnosisListVo(voPD);
            }
        }
    }

    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
private void addRowToGrid(PatientDiagnosisListVo patientDiagnosisListVo)
{
    if (patientDiagnosisListVo==null)
        return;

    grdDiagnosisRow row = form.grdDiagnosis().getRows().newRow();
    row.setcolDescription(patientDiagnosisListVo.getDiagnosisDescription());
    row.setTooltipForcolDescription(patientDiagnosisListVo.getDiagnosisDescription());

    row.setcolDiagnosisDate(patientDiagnosisListVo.getDiagnosedDate() != null ? patientDiagnosisListVo.getDiagnosedDate().toString() : "");
    row.setTooltipForcolDiagnosisDate(patientDiagnosisListVo.getDiagnosedDate() != null ? patientDiagnosisListVo.getDiagnosedDate().toString() : "");

    if (patientDiagnosisListVo.getAuthoringInfo() != null)
    {       
        row.setcolAuthoringHCPDateTime(patientDiagnosisListVo.getAuthoringInfo().getIItemText());
        row.setTooltipForcolAuthoringHCPDateTime(patientDiagnosisListVo.getAuthoringInfo().getIItemText());
    }

    row.setcolStatus((patientDiagnosisListVo.getCurrentStatus() != null && patientDiagnosisListVo.getCurrentStatus().getStatus() != null) ? patientDiagnosisListVo.getCurrentStatus().getStatus().getText() : "");
    row.setTooltipForcolStatus((patientDiagnosisListVo.getCurrentStatus() != null && patientDiagnosisListVo.getCurrentStatus().getStatus() != null) ? patientDiagnosisListVo.getCurrentStatus().getStatus().getText() : "");

    row.setValue(patientDiagnosisListVo);
}
项目:openMAXIMS    文件:Logic.java   
private void grdDiagnosisSelectionChanged()
{
    form.getLocalContext().setSelectedPatientDiagnosisVo(null);

    if (form.grdDiagnosis().getValue() != null)
    {
        form.ctnDetails().setCollapsed(false);
        PatientDiagnosisListVo voPatDiagShort = form.grdDiagnosis().getValue();
        PatientDiagnosisVo voPatDiag = domain.getDiagnosisVo(voPatDiagShort);

        if (voPatDiag != null && voPatDiag.getStatusHistoryIsNotNull())
            // WDEV-2535
            setTooltip(voPatDiag);
        else
            setTooltip(null);

        populateInstanceControls(voPatDiag);
        boolean isPrimaryDiagnosis = isPrimaryDiagnosisActive(voPatDiagShort);
        form.ctnDetails().chkPrimaryDiagnosis().setValue(isPrimaryDiagnosis);
        form.getContextMenus().getPastMedicalHistoryLinkingItem().setVisible(!isPrimaryDiagnosis);
        form.getLocalContext().setSelectedPatientDiagnosisVo(voPatDiag);
    }

    updateControlsState();
    updateContextMenus();
}
项目:openMAXIMS    文件:Logic.java   
private void markProblemasPrimary() throws PresentationLogicException
{
    PatientDiagnosisListVo voPatientDiagnosisList = form.grdDiagnosis().getValue();
    if (voPatientDiagnosisList == null)
    {
        engine.showErrors(new String[]{"Please select a Diagnosis / Complication"});
        return;
    }

    PatientDiagnosisVo voPatientDiagnosis = domain.getDiagnosisVo(voPatientDiagnosisList);

    setCsPrimaryDiagnosis(voPatientDiagnosis, true);

    if (saveDiagnosisRecord(voPatientDiagnosis, Boolean.FALSE, null))
    {
        PatientDiagnosisVo voPatDiagnosis = form.getLocalContext().getSelectedPatientDiagnosisVo();
        GenForm.grdDiagnosisRow row = form.grdDiagnosis().getRowByValue(voPatDiagnosis);
        if (row != null)
        {
            setPatientDiagnosisRowData(row, voPatDiagnosis);
            grdDiagnosisSelectionChanged();
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void openPatientDiagnoses() 
{
    PatientDiagnosisListVoCollection voColl = domain.listCancerDiagnosisByPatient(form.getGlobalContext().Core.getPatientShort());

    for (int i=0; i < voColl.size(); i++)
    {
        PatientDiagnosisListVo voDiagnosis = voColl.get(i);

        if (voDiagnosis.getDiagnosisIsNotNull() || voDiagnosis.getDiagnosisDescriptionIsNotNull())
        {
            grdDiagnosisRow row = form.grdDiagnosis().getRows().newRow();

            row.setValue(voDiagnosis);
            row.setcolItems(voDiagnosis.getDiagnosisDescription());
            row.setColumnSelect(false);
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    for (int i = 0 ; i < form.grdDiagnosis().getRows().size() ; i++)
    {
        if (form.grdDiagnosis().getRows().get(i).getColumnSelect())
        {
            if (form.grdDiagnosis().getRows().get(i).getValue() instanceof PatientDiagnosisListVo)
                form.getGlobalContext().Clinical.setSelectedPatientDiagnosisListVo((PatientDiagnosisListVo)form.grdDiagnosis().getRows().get(i).getValue());
            else if (form.grdDiagnosis().getRows().get(i).getValue() instanceof DiagLiteVo)
            {
                PatientDiagnosisListVo voPD = new PatientDiagnosisListVo();
                voPD.setDiagnosis((DiagLiteVo) form.grdDiagnosis().getRows().get(i).getValue());
                voPD.setDiagnosisDescription( ((DiagLiteVo)form.grdDiagnosis().getRows().get(i).getValue()).getDiagnosisName());
                form.getGlobalContext().Clinical.setSelectedPatientDiagnosisListVo(voPD);
            }
        }
    }

    engine.close(DialogResult.OK);
}
项目:openmaxims-linux    文件:Logic.java   
private void grdDiagnosisSelectionChanged()
{
    form.getLocalContext().setSelectedPatientDiagnosisVo(null);

    if (form.grdDiagnosis().getValue() != null)
    {
        form.ctnDetails().setCollapsed(false);
        PatientDiagnosisListVo voPatDiagShort = form.grdDiagnosis().getValue();
        PatientDiagnosisVo voPatDiag = domain.getDiagnosisVo(voPatDiagShort);

        if (voPatDiag != null && voPatDiag.getStatusHistoryIsNotNull())
            // WDEV-2535
            setTooltip(voPatDiag);
        else
            setTooltip(null);

        populateInstanceControls(voPatDiag);
        boolean isPrimaryDiagnosis = isPrimaryDiagnosisActive(voPatDiagShort);
        form.ctnDetails().chkPrimaryDiagnosis().setValue(isPrimaryDiagnosis);
        form.getContextMenus().getPastMedicalHistoryLinkingItem().setVisible(!isPrimaryDiagnosis);
        form.getLocalContext().setSelectedPatientDiagnosisVo(voPatDiag);
    }

    updateControlsState();
    updateContextMenus();
}
项目:openmaxims-linux    文件:Logic.java   
private void markProblemasPrimary() throws PresentationLogicException
{
    PatientDiagnosisListVo voPatientDiagnosisList = form.grdDiagnosis().getValue();
    if (voPatientDiagnosisList == null)
    {
        engine.showErrors(new String[]{"Please select a Diagnosis / Complication"});
        return;
    }

    PatientDiagnosisVo voPatientDiagnosis = domain.getDiagnosisVo(voPatientDiagnosisList);

    setCsPrimaryDiagnosis(voPatientDiagnosis, true);

    if (saveDiagnosisRecord(voPatientDiagnosis, Boolean.FALSE, null))
    {
        PatientDiagnosisVo voPatDiagnosis = form.getLocalContext().getSelectedPatientDiagnosisVo();
        GenForm.grdDiagnosisRow row = form.grdDiagnosis().getRowByValue(voPatDiagnosis);
        if (row != null)
        {
            setPatientDiagnosisRowData(row, voPatDiagnosis);
            grdDiagnosisSelectionChanged();
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void openPatientDiagnoses() 
{
    PatientDiagnosisListVoCollection voColl = domain.listCancerDiagnosisByPatient(form.getGlobalContext().Core.getPatientShort());

    for (int i=0; i < voColl.size(); i++)
    {
        PatientDiagnosisListVo voDiagnosis = voColl.get(i);

        if (voDiagnosis.getDiagnosisIsNotNull() || voDiagnosis.getDiagnosisDescriptionIsNotNull())
        {
            grdDiagnosisRow row = form.grdDiagnosis().getRows().newRow();

            row.setValue(voDiagnosis);
            row.setcolItems(voDiagnosis.getDiagnosisDescription());
            row.setColumnSelect(false);
        }
    }

}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    for (int i = 0 ; i < form.grdDiagnosis().getRows().size() ; i++)
    {
        if (form.grdDiagnosis().getRows().get(i).getColumnSelect())
        {
            if (form.grdDiagnosis().getRows().get(i).getValue() instanceof PatientDiagnosisListVo)
                form.getGlobalContext().Clinical.setSelectedPatientDiagnosisListVo((PatientDiagnosisListVo)form.grdDiagnosis().getRows().get(i).getValue());
            else if (form.grdDiagnosis().getRows().get(i).getValue() instanceof DiagLiteVo)
            {
                PatientDiagnosisListVo voPD = new PatientDiagnosisListVo();
                voPD.setDiagnosis((DiagLiteVo) form.grdDiagnosis().getRows().get(i).getValue());
                voPD.setDiagnosisDescription( ((DiagLiteVo)form.grdDiagnosis().getRows().get(i).getValue()).getDiagnosisName());
                form.getGlobalContext().Clinical.setSelectedPatientDiagnosisListVo(voPD);
            }
        }
    }

    engine.close(DialogResult.OK);
}
项目:AvoinApotti    文件:Logic.java   
private boolean isPrimaryDiagnosisActive(PatientDiagnosisListVo voPatDiagShort)
{
    if (voPatDiagShort == null)
        return false;

    return isPrimaryDiagnosisActive(voPatDiagShort, voPatDiagShort.getPrimaryForCareSpells());
}
项目:AvoinApotti    文件:Logic.java   
private boolean isDiagNotAlreadyCoded(PatientDiagnosisListVo value)
{
    for (int i = 0 ; i < form.grdCoding().getRows().size() ; i++)
    {
        if (form.grdCoding().getRows().get(i).getColDiagVo() != null
            && form.grdCoding().getRows().get(i).getColDiagVo().getID_PatientDiagnosisIsNotNull()
            && value.getID_PatientDiagnosis().equals(form.grdCoding().getRows().get(i).getColDiagVo().getID_PatientDiagnosis()))
        return false;
    }
    return true;
}
项目:AvoinApotti    文件:Logic.java   
private boolean isInDiagnosisGrid(PatientDiagnosisListVo patientDiagnosisListVo)
{
    for (int i=0;i<form.grdDiagnoses().getRows().size();i++)
    {
        if (patientDiagnosisListVo.equals(form.grdDiagnoses().getRows().get(i).getValue()))
                return true;
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void doAddFromLocalSearch()
{
    PatientDiagnosisListVo diag = form.getGlobalContext().Clinical.getSelectedPatientDiagnosisListVo();

    if (diag != null)
        fillConditionRowValue(diag);
}
项目:AvoinApotti    文件:Logic.java   
private void fillConditionRowValue(PatientDiagnosisListVo voPatDiagnosis) 
{
    grdCauseofDeathRow row = form.grdCauseofDeath().getSelectedRow();
    row.setColCondition(voPatDiagnosis.getDiagnosisDescriptionIsNotNull() ? voPatDiagnosis.getDiagnosisDescription() : "");

    DeathConditionsVo voDC = new DeathConditionsVo();
    voDC.setPatientDiagnosis(voPatDiagnosis.getID_PatientDiagnosisIsNotNull() ? voPatDiagnosis : null);

    if (voPatDiagnosis.getDiagnosisIsNotNull())
        voDC.setDiagnosis(voPatDiagnosis.getDiagnosis());
    voDC.setCauseofDeath(row.getColCause());

    row.setValue(voDC);     
}
项目:AvoinApotti    文件:Logic.java   
protected void updateContextMenus()
{
    form.getContextMenus().hideAllPastMedicalHistoryMenuItems();
    if (form.getMode().equals(FormMode.VIEW))
    {
        if (form.grdDiagnosis().getSelectedRowIndex() >= 0)
        {
            PatientDiagnosisListVo voPatientDiagnosisList = form.grdDiagnosis().getValue();
            boolean isPrimaryDiagnosis = isPrimaryDiagnosisActive(voPatientDiagnosisList);
            grdDiagnosisRow selectedRow = form.grdDiagnosis().getSelectedRow();
            boolean hasAssociations = selectedRow != null && selectedRow.getColAssociations() != null;

            String diagnosisOrComplication = (isComplication(voPatientDiagnosisList) ? "Complication" : "Diagnosis");
            form.getContextMenus().getPastMedicalHistoryEditItem().setText("Edit " + diagnosisOrComplication);
            form.getContextMenus().getPastMedicalHistoryLinkingItem().setText("Mark " + diagnosisOrComplication + " as Primary");

            form.getContextMenus().getPastMedicalHistoryNewItem().setVisible(true);
            form.getContextMenus().getPastMedicalHistoryEditItem().setVisible(true);
            form.getContextMenus().getPastMedicalHistoryLinkingItem().setVisible(!isPrimaryDiagnosis);
            form.getContextMenus().getPastMedicalHistoryViewAssociationsItem().setVisible(hasAssociations);
        }
        else
        {
            form.getContextMenus().getPastMedicalHistoryNewItem().setVisible(true);
            form.getContextMenus().getPastMedicalHistoryEditItem().setVisible(false);
            form.getContextMenus().getPastMedicalHistoryLinkingItem().setVisible(false);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateDiagnosisGrid(PatientDiagnosisListVoCollection voPatDiagColl)
{
    form.grdDiagnosis().getRows().clear();
    if (voPatDiagColl != null)
    {
        for (int i = 0; i < voPatDiagColl.size(); i++)
        {
            GenForm.grdDiagnosisRow row = form.grdDiagnosis().getRows().newRow();
            PatientDiagnosisListVo patientDiagnosisListVo = voPatDiagColl.get(i);

            setPatientDiagnosisRowData(row, patientDiagnosisListVo);
        }
    }

}
项目:AvoinApotti    文件:Logic.java   
private boolean isPrimaryDiagnosisActive(PatientDiagnosisListVo voPatDiagShort)
{
    if (voPatDiagShort == null)
        return false;

    return isPrimaryDiagnosisActive(voPatDiagShort, voPatDiagShort.getPrimaryForCareSpells());
}
项目:AvoinApotti    文件:Logic.java   
private boolean isPmhSaved()
{
    PatientDiagnosisVo voPatDiagnosis = form.getLocalContext().getSelectedPatientDiagnosisVo();
    PatientDiagnosisListVo voPatDiagnosisListVo = form.grdDiagnosis().getValue();

    boolean hasPmhSaved = voPatDiagnosisListVo != null && voPatDiagnosisListVo.getIsPMHIsNotNull() && voPatDiagnosisListVo.getIsPMH().booleanValue();
    boolean isRecordSaved = voPatDiagnosis != null && voPatDiagnosis.getID_PatientDiagnosisIsNotNull();

    return isRecordSaved && hasPmhSaved;
}
项目:openMAXIMS    文件:Logic.java   
private boolean isPrimaryDiagnosisActive(PatientDiagnosisListVo voPatDiagShort)
{
    if (voPatDiagShort == null)
        return false;

    return isPrimaryDiagnosisActive(voPatDiagShort, voPatDiagShort.getPrimaryForCareSpells());
}
项目:openMAXIMS    文件:Logic.java   
private boolean isInDiagnosisGrid(PatientDiagnosisListVo patientDiagnosisListVo)
{
    for (int i = 0; i < form.lyrTabs().tabInpatientCoding().grdDiagnoses().getRows().size(); i++)
    {
        if (patientDiagnosisListVo.equals(form.lyrTabs().tabInpatientCoding().grdDiagnoses().getRows().get(i).getValue()))
            return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void doAddFromLocalSearch()
{
    PatientDiagnosisListVo diag = form.getGlobalContext().Clinical.getSelectedPatientDiagnosisListVo();

    if (diag != null)
        fillConditionRowValue(diag);
}
项目:openMAXIMS    文件:Logic.java   
private void fillConditionRowValue(PatientDiagnosisListVo voPatDiagnosis) 
{
    grdCauseofDeathRow row = form.grdCauseofDeath().getSelectedRow();
    row.setColCondition(voPatDiagnosis.getDiagnosisDescriptionIsNotNull() ? voPatDiagnosis.getDiagnosisDescription() : "");
    row.setCellColConditionTooltip(voPatDiagnosis.getDiagnosisDescriptionIsNotNull() ? voPatDiagnosis.getDiagnosisDescription() : "");

    DeathConditionsVo voDC = new DeathConditionsVo();
    voDC.setPatientDiagnosis(voPatDiagnosis.getID_PatientDiagnosisIsNotNull() ? voPatDiagnosis : null);

    if (voPatDiagnosis.getDiagnosisIsNotNull())
        voDC.setDiagnosis(voPatDiagnosis.getDiagnosis());
    voDC.setCauseofDeath(row.getColCause());

    row.setValue(voDC);     
}
项目:openMAXIMS    文件:Logic.java   
protected void updateContextMenus()
{
    form.getContextMenus().hideAllPastMedicalHistoryMenuItems();
    if (form.getMode().equals(FormMode.VIEW))
    {
        if (form.grdDiagnosis().getSelectedRowIndex() >= 0)
        {
            PatientDiagnosisListVo voPatientDiagnosisList = form.grdDiagnosis().getValue();
            boolean isPrimaryDiagnosis = isPrimaryDiagnosisActive(voPatientDiagnosisList);
            grdDiagnosisRow selectedRow = form.grdDiagnosis().getSelectedRow();
            boolean hasAssociations = selectedRow != null && selectedRow.getColAssociations() != null;

            String diagnosisOrComplication = (isComplication(voPatientDiagnosisList) ? "Complication" : "Diagnosis");
            form.getContextMenus().getPastMedicalHistoryEditItem().setText("Edit " + diagnosisOrComplication);
            form.getContextMenus().getPastMedicalHistoryLinkingItem().setText("Mark " + diagnosisOrComplication + " as Primary");

            form.getContextMenus().getPastMedicalHistoryNewItem().setVisible(true);
            form.getContextMenus().getPastMedicalHistoryEditItem().setVisible(true);
            form.getContextMenus().getPastMedicalHistoryLinkingItem().setVisible(!isPrimaryDiagnosis);
            form.getContextMenus().getPastMedicalHistoryViewAssociationsItem().setVisible(hasAssociations);
        }
        else
        {
            form.getContextMenus().getPastMedicalHistoryNewItem().setVisible(true);
            form.getContextMenus().getPastMedicalHistoryEditItem().setVisible(false);
            form.getContextMenus().getPastMedicalHistoryLinkingItem().setVisible(false);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateDiagnosisGrid(PatientDiagnosisListVoCollection voPatDiagColl)
{
    form.grdDiagnosis().getRows().clear();
    if (voPatDiagColl != null)
    {
        for (int i = 0; i < voPatDiagColl.size(); i++)
        {
            GenForm.grdDiagnosisRow row = form.grdDiagnosis().getRows().newRow();
            PatientDiagnosisListVo patientDiagnosisListVo = voPatDiagColl.get(i);

            setPatientDiagnosisRowData(row, patientDiagnosisListVo);
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private boolean isPrimaryDiagnosisActive(PatientDiagnosisListVo voPatDiagShort)
{
    if (voPatDiagShort == null)
        return false;

    return isPrimaryDiagnosisActive(voPatDiagShort, voPatDiagShort.getPrimaryForCareSpells());
}
项目:openMAXIMS    文件:Logic.java   
private boolean isPmhSaved()
{
    PatientDiagnosisVo voPatDiagnosis = form.getLocalContext().getSelectedPatientDiagnosisVo();
    PatientDiagnosisListVo voPatDiagnosisListVo = form.grdDiagnosis().getValue();

    boolean hasPmhSaved = voPatDiagnosisListVo != null && voPatDiagnosisListVo.getIsPMHIsNotNull() && voPatDiagnosisListVo.getIsPMH().booleanValue();
    boolean isRecordSaved = voPatDiagnosis != null && voPatDiagnosis.getID_PatientDiagnosisIsNotNull();

    return isRecordSaved && hasPmhSaved;
}
项目:openMAXIMS    文件:Logic.java   
private boolean isPrimaryDiagnosisActive(PatientDiagnosisListVo voPatDiagShort)
{
    if (voPatDiagShort == null)
        return false;

    return isPrimaryDiagnosisActive(voPatDiagShort, voPatDiagShort.getPrimaryForCareSpells());
}
项目:openMAXIMS    文件:Logic.java   
private boolean isDiagNotAlreadyCoded(PatientDiagnosisListVo value)
{
    for (int i = 0 ; i < form.grdCoding().getRows().size() ; i++)
    {
        if (form.grdCoding().getRows().get(i).getColDiagVo() != null
            && form.grdCoding().getRows().get(i).getColDiagVo().getID_PatientDiagnosisIsNotNull()
            && value.getID_PatientDiagnosis().equals(form.grdCoding().getRows().get(i).getColDiagVo().getID_PatientDiagnosis()))
        return false;
    }
    return true;
}
项目:openMAXIMS    文件:Logic.java   
private boolean isInDiagnosisGrid(PatientDiagnosisListVo patientDiagnosisListVo)
{
    for (int i=0;i<form.grdDiagnoses().getRows().size();i++)
    {
        if (patientDiagnosisListVo.equals(form.grdDiagnoses().getRows().get(i).getValue()))
                return true;
    }

    return false;
}