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

项目:AvoinApotti    文件:Logic.java   
private PatientProcedureSurgicalOpVo createPatientProcedure(ProcedureLiteVo proc)
{
    PatientProcedureSurgicalOpVo patProc = new PatientProcedureSurgicalOpVo();
    patProc.setProcedure(proc);
    patProc.setAuthoringInformation(getAuthoringInfo());
    patProc.setProcedureDescription(proc.getProcedureName());
    patProc.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    //wdev-11815
    patProc.setEpisodeOfCare(form.getGlobalContext().Core.getCurrentCareContext().getEpisodeOfCare());
    //-----
    patProc.setIncludeInDischargeLetter(true);
    patProc.setInfoSource(SourceofInformation.CLINICALCONTACT);
    patProc.setProcedureStatus(PatientProcedureStatus.PERFORMED);
    return patProc;

}
项目:AvoinApotti    文件:Logic.java   
private void populateProcedureGridFromData(PatientProcedureSurgicalOpVoCollection ppso)
{
    if (ppso == null || ppso.size() == 0)
        return;
    populateInstanceControlsFromData(ppso.get(0));
    for (int i= 0 ; i < ppso.size() ; i++)
    {
        PatientProcedureSurgicalOpVo current = ppso.get(i);
        if (current != null)
        {
            grdProceduresRow nRow = form.grdProcedures().getRows().newRow();
            nRow.setColumnName(current.getProcedureIsNotNull() ? current.getProcedure().getProcedureName() : null);
            nRow.setColumnDescription(current.getProcedureDescription());
            nRow.setValue(current);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private PatientProcedureSurgicalOpVoCollection getDataFromGrid()
{
    if (form.grdProcedures().getRows().size() == 0)
    {
        return null;
    }
    HcpLiteVoCollection addedAssistants = getAddedAssistants();
    PatientProcedureSurgicalOpVoCollection ppsugov = new PatientProcedureSurgicalOpVoCollection();
    for (int i =0 ; i<form.grdProcedures().getRows().size() ; i++)
    {
        PatientProcedureSurgicalOpVo value = form.grdProcedures().getRows().get(i).getValue();

        ppsugov.add(updateProcedureDataFromScreen(value, addedAssistants));
    }
    return ppsugov;
}
项目:AvoinApotti    文件:Logic.java   
/**
 * WDEV-11862
 * Function used to remove procedures that were introduced but not saved
 * when the Operating Surgeon gets changed. Save Procedures must remain
 */
private void clearUnsavedProcedures()
{
    // If there is no record saved or no procedures saved then clear grid and exit the function
    if (!form.getLocalContext().getCurrentOPNoteIsNotNull()
            || !form.getLocalContext().getCurrentOPNote().getProceduresPerformedIsNotNull())
    {
        form.grdProcedures().getRows().clear();
        return;
    }

    // Iterate backwards procedure grid rows to eliminate unsaved procedures
    for (int i = form.grdProcedures().getRows().size() - 1; i >= 0; i--)
    {
        PatientProcedureSurgicalOpVo procedure = form.grdProcedures().getRows().get(i).getValue();

        // If a procedure is not found in the procedure collection of the saved record
        // then remove it from the grid
        if (!form.getLocalContext().getCurrentOPNote().getProceduresPerformed().contains(procedure))
        {
            form.grdProcedures().getRows().remove(i);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private PatientProcedureSurgicalOpVo createPatientProcedure(ProcedureLiteVo proc)
{
    PatientProcedureSurgicalOpVo patProc = new PatientProcedureSurgicalOpVo();
    patProc.setProcedure(proc);
    patProc.setAuthoringInformation(getAuthoringInfo());
    patProc.setProcedureDescription(proc.getProcedureName());
    patProc.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    //wdev-11815
    patProc.setEpisodeOfCare(form.getGlobalContext().Core.getCurrentCareContext().getEpisodeOfCare());
    //-----
    patProc.setIncludeInDischargeLetter(true);
    patProc.setInfoSource(SourceofInformation.CLINICALCONTACT);
    patProc.setProcedureStatus(PatientProcedureStatus.PERFORMED);
    return patProc;

}
项目:openMAXIMS    文件:Logic.java   
private void populateProcedureGridFromData(PatientProcedureSurgicalOpVoCollection ppso)
{
    if (ppso == null || ppso.size() == 0)
        return;
    populateInstanceControlsFromData(ppso.get(0));
    for (int i= 0 ; i < ppso.size() ; i++)
    {
        PatientProcedureSurgicalOpVo current = ppso.get(i);
        if (current != null)
        {
            grdProceduresRow nRow = form.grdProcedures().getRows().newRow();
            nRow.setColumnName(current.getProcedureIsNotNull() ? current.getProcedure().getProcedureName() : null);
            nRow.setColumnDescription(current.getProcedureDescription());
            nRow.setValue(current);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private PatientProcedureSurgicalOpVoCollection getDataFromGrid()
{
    if (form.grdProcedures().getRows().size() == 0)
    {
        return null;
    }
    HcpLiteVoCollection addedAssistants = getAddedAssistants();
    PatientProcedureSurgicalOpVoCollection ppsugov = new PatientProcedureSurgicalOpVoCollection();
    for (int i =0 ; i<form.grdProcedures().getRows().size() ; i++)
    {
        PatientProcedureSurgicalOpVo value = form.grdProcedures().getRows().get(i).getValue();

        ppsugov.add(updateProcedureDataFromScreen(value, addedAssistants));
    }
    return ppsugov;
}
项目:openMAXIMS    文件:Logic.java   
/**
 * WDEV-11862
 * Function used to remove procedures that were introduced but not saved
 * when the Operating Surgeon gets changed. Save Procedures must remain
 */
private void clearUnsavedProcedures()
{
    // If there is no record saved or no procedures saved then clear grid and exit the function
    if (!form.getLocalContext().getCurrentOPNoteIsNotNull()
            || !form.getLocalContext().getCurrentOPNote().getProceduresPerformedIsNotNull())
    {
        form.grdProcedures().getRows().clear();
        return;
    }

    // Iterate backwards procedure grid rows to eliminate unsaved procedures
    for (int i = form.grdProcedures().getRows().size() - 1; i >= 0; i--)
    {
        PatientProcedureSurgicalOpVo procedure = form.grdProcedures().getRows().get(i).getValue();

        // If a procedure is not found in the procedure collection of the saved record
        // then remove it from the grid
        if (!form.getLocalContext().getCurrentOPNote().getProceduresPerformed().contains(procedure))
        {
            form.grdProcedures().getRows().remove(i);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private PatientProcedureSurgicalOpVo createPatientProcedure(ProcedureLiteVo proc)
{
    PatientProcedureSurgicalOpVo patProc = new PatientProcedureSurgicalOpVo();
    patProc.setProcedure(proc);
    patProc.setAuthoringInformation(getAuthoringInfo());
    patProc.setProcedureDescription(proc.getProcedureName());
    patProc.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    //wdev-11815
    patProc.setEpisodeOfCare(form.getGlobalContext().Core.getCurrentCareContext().getEpisodeOfCare());
    //-----
    patProc.setIncludeInDischargeLetter(true);
    patProc.setInfoSource(SourceofInformation.CLINICALCONTACT);
    patProc.setProcedureStatus(PatientProcedureStatus.PERFORMED);
    return patProc;

}
项目:openMAXIMS    文件:Logic.java   
private void populateProcedureGridFromData(PatientProcedureSurgicalOpVoCollection ppso)
{
    if (ppso == null || ppso.size() == 0)
        return;
    populateInstanceControlsFromData(ppso.get(0));
    for (int i= 0 ; i < ppso.size() ; i++)
    {
        PatientProcedureSurgicalOpVo current = ppso.get(i);
        if (current != null)
        {
            grdProceduresRow nRow = form.grdProcedures().getRows().newRow();
            nRow.setColumnName(current.getProcedureIsNotNull() ? current.getProcedure().getProcedureName() : null);
            nRow.setColumnDescription(current.getProcedureDescription());
            nRow.setValue(current);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private PatientProcedureSurgicalOpVoCollection getDataFromGrid()
{
    if (form.grdProcedures().getRows().size() == 0)
    {
        return null;
    }
    HcpLiteVoCollection addedAssistants = getAddedAssistants();
    PatientProcedureSurgicalOpVoCollection ppsugov = new PatientProcedureSurgicalOpVoCollection();
    for (int i =0 ; i<form.grdProcedures().getRows().size() ; i++)
    {
        PatientProcedureSurgicalOpVo value = form.grdProcedures().getRows().get(i).getValue();

        ppsugov.add(updateProcedureDataFromScreen(value, addedAssistants));
    }
    return ppsugov;
}
项目:openMAXIMS    文件:Logic.java   
/**
 * WDEV-11862
 * Function used to remove procedures that were introduced but not saved
 * when the Operating Surgeon gets changed. Save Procedures must remain
 */
private void clearUnsavedProcedures()
{
    // If there is no record saved or no procedures saved then clear grid and exit the function
    if (!form.getLocalContext().getCurrentOPNoteIsNotNull()
            || !form.getLocalContext().getCurrentOPNote().getProceduresPerformedIsNotNull())
    {
        form.grdProcedures().getRows().clear();
        return;
    }

    // Iterate backwards procedure grid rows to eliminate unsaved procedures
    for (int i = form.grdProcedures().getRows().size() - 1; i >= 0; i--)
    {
        PatientProcedureSurgicalOpVo procedure = form.grdProcedures().getRows().get(i).getValue();

        // If a procedure is not found in the procedure collection of the saved record
        // then remove it from the grid
        if (!form.getLocalContext().getCurrentOPNote().getProceduresPerformed().contains(procedure))
        {
            form.grdProcedures().getRows().remove(i);
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private PatientProcedureSurgicalOpVo createPatientProcedure(ProcedureLiteVo proc)
{
    PatientProcedureSurgicalOpVo patProc = new PatientProcedureSurgicalOpVo();
    patProc.setProcedure(proc);
    patProc.setAuthoringInformation(getAuthoringInfo());
    patProc.setProcedureDescription(proc.getProcedureName());
    patProc.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    //wdev-11815
    patProc.setEpisodeOfCare(form.getGlobalContext().Core.getCurrentCareContext().getEpisodeOfCare());
    //-----
    patProc.setIncludeInDischargeLetter(true);
    patProc.setInfoSource(SourceofInformation.CLINICALCONTACT);
    patProc.setProcedureStatus(PatientProcedureStatus.PERFORMED);
    return patProc;

}
项目:openmaxims-linux    文件:Logic.java   
private void populateProcedureGridFromData(PatientProcedureSurgicalOpVoCollection ppso)
{
    if (ppso == null || ppso.size() == 0)
        return;
    populateInstanceControlsFromData(ppso.get(0));
    for (int i= 0 ; i < ppso.size() ; i++)
    {
        PatientProcedureSurgicalOpVo current = ppso.get(i);
        if (current != null)
        {
            grdProceduresRow nRow = form.grdProcedures().getRows().newRow();
            nRow.setColumnName(current.getProcedureIsNotNull() ? current.getProcedure().getProcedureName() : null);
            nRow.setColumnDescription(current.getProcedureDescription());
            nRow.setValue(current);
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private PatientProcedureSurgicalOpVoCollection getDataFromGrid()
{
    if (form.grdProcedures().getRows().size() == 0)
    {
        return null;
    }
    HcpLiteVoCollection addedAssistants = getAddedAssistants();
    PatientProcedureSurgicalOpVoCollection ppsugov = new PatientProcedureSurgicalOpVoCollection();
    for (int i =0 ; i<form.grdProcedures().getRows().size() ; i++)
    {
        PatientProcedureSurgicalOpVo value = form.grdProcedures().getRows().get(i).getValue();

        ppsugov.add(updateProcedureDataFromScreen(value, addedAssistants));
    }
    return ppsugov;
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * WDEV-11862
 * Function used to remove procedures that were introduced but not saved
 * when the Operating Surgeon gets changed. Save Procedures must remain
 */
private void clearUnsavedProcedures()
{
    // If there is no record saved or no procedures saved then clear grid and exit the function
    if (!form.getLocalContext().getCurrentOPNoteIsNotNull()
            || !form.getLocalContext().getCurrentOPNote().getProceduresPerformedIsNotNull())
    {
        form.grdProcedures().getRows().clear();
        return;
    }

    // Iterate backwards procedure grid rows to eliminate unsaved procedures
    for (int i = form.grdProcedures().getRows().size() - 1; i >= 0; i--)
    {
        PatientProcedureSurgicalOpVo procedure = form.grdProcedures().getRows().get(i).getValue();

        // If a procedure is not found in the procedure collection of the saved record
        // then remove it from the grid
        if (!form.getLocalContext().getCurrentOPNote().getProceduresPerformed().contains(procedure))
        {
            form.grdProcedures().getRows().remove(i);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private PatientProcedureSurgicalOpVo updateProcedureDataFromScreen(PatientProcedureSurgicalOpVo patProc,HcpLiteVoCollection assistants)
{
    if (patProc == null)
        return null;
    patProc.setProcDate(form.dteDate().getValue() == null ? null : new PartialDate(form.dteDate().getValue()));
    patProc.setPeformedBy(form.qmbOpSurgeon().getValue());   
    patProc.setHCPPresent(assistants);
    patProc.setProcedureUrgency(null);
    if (!GroupOperationEnumeration.None.equals(form.GroupOperation().getValue()))
    {
        patProc.setProcedureUrgency(GroupOperationEnumeration.rdoEmergency.equals(form.GroupOperation().getValue())?ProcedureUrgency.EMERGENCY:ProcedureUrgency.ELECTIVE);
    }
    return patProc;
}
项目:AvoinApotti    文件:Logic.java   
private void  addProcToGrid(PatientProcedureSurgicalOpVo patProc)
{
    if (patProc == null)
        return;
    grdProceduresRow nRow = form.grdProcedures().getRows().newRow();

    nRow.setColumnName(patProc.getProcedureIsNotNull()?patProc.getProcedure().getProcedureName():null);
    nRow.setColumnDescription(patProc.getProcedureDescription());
    nRow.setValue(patProc);
    form.grdProcedures().setValue(patProc);

}
项目:AvoinApotti    文件:Logic.java   
private void markAsRie(PatientProcedureSurgicalOpVo value) 
{
    if(value == null)
        return;

    form.getLocalContext().setProcedureToBeRIE(value);
    engine.open(form.getForms().Core.RieConfirmationDialog);
}
项目:AvoinApotti    文件:Logic.java   
public void updateControlsState()
{

    boolean viewMode = FormMode.VIEW.equals(form.getMode());
    boolean isReadWrite = !(form.getLocalContext().getReadOnlyIsNotNull() && form.getLocalContext().getReadOnly());
    boolean isOperatingSurgeon = form.qmbOpSurgeon().getValue() != null;
    if (viewMode)
    {
        form.btnEdit().setVisible(isReadWrite);
        //wdev-15917
        if( form.getLocalContext().getCurrentOPNoteIsNotNull() && form.getLocalContext().getCurrentOPNote().getProceduresPerformedIsNotNull() && form.getLocalContext().getCurrentOPNote().getProceduresPerformed().size() > 0)
            form.btnEdit().setText("Edit");
        else
            form.btnEdit().setText("New");

    }
    form.getContextMenus().Clinical.getEDischargeDiagnosisEtcDiagnosisMenuNEW_DIAGNOSISItem().setVisible(viewMode && isReadWrite);
    form.getContextMenus().Clinical.getEDischargeDiagnosisEtcDiagnosisMenuEDIT_DIAGNOSISItem().setVisible(viewMode && form.grdDiagnosis().getSelectedRow()!=null && isReadWrite);
    form.getContextMenus().Clinical.getEDischargeDiagnosisEtcDiagnosisMenuVIEW_DIAGNOSISItem().setVisible(viewMode && form.grdDiagnosis().getSelectedRow()!=null);

    form.getContextMenus().getProcedureADDItem().setVisible(isOperatingSurgeon && !viewMode && isReadWrite);
    form.getContextMenus().getProcedureRIEItem().setVisible( isOperatingSurgeon && viewMode && isReadWrite && form.grdProcedures().getValue() instanceof PatientProcedureSurgicalOpVo && form.grdProcedures().getValue().getID_PatientProcedureIsNotNull() && form.grdProcedures().getRows().size() > 1); //wdev-15914



    form.getContextMenus().getGenericGridAddItem().setVisible(!viewMode);
    form.getContextMenus().getGenericGridRemoveItem().setVisible(!viewMode && form.grdAssistants().getSelectedRowIndex() >= 0);


}
项目:AvoinApotti    文件:Logic.java   
private void populateInstanceControlsFromData(PatientProcedureSurgicalOpVo proc)
{
    clearInstanceControls();
    if (proc == null)
        return;
    form.dteDate().setValue(proc.getProcDateIsNotNull() ? proc.getProcDate().toDate() : null);
    HcpLiteVo surgeon = proc.getPeformedBy();
    if (surgeon !=null)
    {
        form.qmbOpSurgeon().newRow(surgeon, surgeon.getMosIsNotNull()?surgeon.getMos().getIMosName():null);
        form.qmbOpSurgeon().setValue(surgeon);
    }

    HcpLiteVoCollection assistants = proc.getHCPPresent();
    if (assistants != null)
    {
        for (int i =0 ; i<assistants.size() ; i++)
        {
            HcpLiteVo assistant = assistants.get(i);
            if (assistant!=null)
            {
            grdAssistantsRow nRow = form.grdAssistants().getRows().newRow();
            nRow.getSurgeon().newRow(assistant,assistant.getIMosName());
            nRow.getSurgeon().setValue(assistant);
            }
        }
    }
    // TODO form.chkPrimary().setValue(form.getLocalContext().getCurrentOPNoteIsNotNull() && proc.equals(form.getLocalContext().getCurrentOPNote().getMainProcedure()));
    if (proc.getProcedureUrgencyIsNotNull())
    {
    form.GroupOperation().setValue(ProcedureUrgency.EMERGENCY.equals(proc.getProcedureUrgency())?GroupOperationEnumeration.rdoEmergency:GroupOperationEnumeration.rdoElective);
    }

    populateCmbConsultant();

}
项目:AvoinApotti    文件:Logic.java   
private PatientProcedureSurgicalOpVo getMainFromGrid()
{
    grdProceduresRowCollection patProcs = form.grdProcedures().getRows();
    if (patProcs == null)
        return null;
    for (int i=0 ; i<patProcs.size() ; i++)
    {
        if (patProcs.get(i).getColumnPrimary() == true)
        {
            return patProcs.get(i).getValue();
        }
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private PatientProcedureSurgicalOpVo updateProcedureDataFromScreen(PatientProcedureSurgicalOpVo patProc,HcpLiteVoCollection assistants)
{
    if (patProc == null)
        return null;
    patProc.setProcDate(form.dteDate().getValue() == null ? null : new PartialDate(form.dteDate().getValue()));
    patProc.setPeformedBy(form.qmbOpSurgeon().getValue());   
    patProc.setHCPPresent(assistants);
    patProc.setProcedureUrgency(null);
    if (!GroupOperationEnumeration.None.equals(form.GroupOperation().getValue()))
    {
        patProc.setProcedureUrgency(GroupOperationEnumeration.rdoEmergency.equals(form.GroupOperation().getValue())?ProcedureUrgency.EMERGENCY:ProcedureUrgency.ELECTIVE);
    }
    return patProc;
}
项目:openMAXIMS    文件:Logic.java   
private void  addProcToGrid(PatientProcedureSurgicalOpVo patProc)
{
    if (patProc == null)
        return;
    grdProceduresRow nRow = form.grdProcedures().getRows().newRow();

    nRow.setColumnName(patProc.getProcedureIsNotNull()?patProc.getProcedure().getProcedureName():null);
    nRow.setColumnDescription(patProc.getProcedureDescription());
    nRow.setValue(patProc);
    form.grdProcedures().setValue(patProc);

}
项目:openMAXIMS    文件:Logic.java   
private void markAsRie(PatientProcedureSurgicalOpVo value) 
{
    if(value == null)
        return;

    form.getLocalContext().setProcedureToBeRIE(value);
    engine.open(form.getForms().Core.RieConfirmationDialog);
}
项目:openMAXIMS    文件:Logic.java   
public void updateControlsState()
{

    boolean viewMode = FormMode.VIEW.equals(form.getMode());
    boolean isReadWrite = !(form.getLocalContext().getReadOnlyIsNotNull() && form.getLocalContext().getReadOnly());
    boolean isOperatingSurgeon = form.qmbOpSurgeon().getValue() != null;
    if (viewMode)
    {
        form.btnEdit().setVisible(isReadWrite);
        //wdev-15917
        if( form.getLocalContext().getCurrentOPNoteIsNotNull() && form.getLocalContext().getCurrentOPNote().getProceduresPerformedIsNotNull() && form.getLocalContext().getCurrentOPNote().getProceduresPerformed().size() > 0)
            form.btnEdit().setText("Edit");
        else
            form.btnEdit().setText("New");

    }
    form.getContextMenus().Clinical.getEDischargeDiagnosisEtcDiagnosisMenuNEW_DIAGNOSISItem().setVisible(viewMode && isReadWrite);
    form.getContextMenus().Clinical.getEDischargeDiagnosisEtcDiagnosisMenuEDIT_DIAGNOSISItem().setVisible(viewMode && form.grdDiagnosis().getSelectedRow()!=null && isReadWrite);
    form.getContextMenus().Clinical.getEDischargeDiagnosisEtcDiagnosisMenuVIEW_DIAGNOSISItem().setVisible(viewMode && form.grdDiagnosis().getSelectedRow()!=null);

    form.getContextMenus().getProcedureADDItem().setVisible(isOperatingSurgeon && !viewMode && isReadWrite);
    form.getContextMenus().getProcedureRIEItem().setVisible( isOperatingSurgeon && viewMode && isReadWrite && form.grdProcedures().getValue() instanceof PatientProcedureSurgicalOpVo && form.grdProcedures().getValue().getID_PatientProcedureIsNotNull() && form.grdProcedures().getRows().size() > 1); //wdev-15914



    form.getContextMenus().getGenericGridAddItem().setVisible(!viewMode);
    form.getContextMenus().getGenericGridRemoveItem().setVisible(!viewMode && form.grdAssistants().getSelectedRowIndex() >= 0);


}
项目:openMAXIMS    文件:Logic.java   
private void populateInstanceControlsFromData(PatientProcedureSurgicalOpVo proc)
{
    clearInstanceControls();
    if (proc == null)
        return;
    form.dteDate().setValue(proc.getProcDateIsNotNull() ? proc.getProcDate().toDate() : null);
    HcpLiteVo surgeon = proc.getPeformedBy();
    if (surgeon !=null)
    {
        form.qmbOpSurgeon().newRow(surgeon, surgeon.getMosIsNotNull()?surgeon.getMos().getIMosName():null);
        form.qmbOpSurgeon().setValue(surgeon);
    }

    HcpLiteVoCollection assistants = proc.getHCPPresent();
    if (assistants != null)
    {
        for (int i =0 ; i<assistants.size() ; i++)
        {
            HcpLiteVo assistant = assistants.get(i);
            if (assistant!=null)
            {
            grdAssistantsRow nRow = form.grdAssistants().getRows().newRow();
            nRow.getSurgeon().newRow(assistant,assistant.getIMosName());
            nRow.getSurgeon().setValue(assistant);
            }
        }
    }
    // TODO form.chkPrimary().setValue(form.getLocalContext().getCurrentOPNoteIsNotNull() && proc.equals(form.getLocalContext().getCurrentOPNote().getMainProcedure()));
    if (proc.getProcedureUrgencyIsNotNull())
    {
    form.GroupOperation().setValue(ProcedureUrgency.EMERGENCY.equals(proc.getProcedureUrgency())?GroupOperationEnumeration.rdoEmergency:GroupOperationEnumeration.rdoElective);
    }

    populateCmbConsultant();

}
项目:openMAXIMS    文件:Logic.java   
private PatientProcedureSurgicalOpVo getMainFromGrid()
{
    grdProceduresRowCollection patProcs = form.grdProcedures().getRows();
    if (patProcs == null)
        return null;
    for (int i=0 ; i<patProcs.size() ; i++)
    {
        if (patProcs.get(i).getColumnPrimary() == true)
        {
            return patProcs.get(i).getValue();
        }
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
public int compare(Object ob1, Object ob2) 
{
    String rez1 = null;
    String rez2 = null;

    if(ob1 instanceof SurgicalOperationNotesListVo )
    {
        SurgicalOperationNotesListVo ps1 = (SurgicalOperationNotesListVo)ob1;
        rez1 = (ps1.getProceduresPerformed() != null && ps1.getProceduresPerformed().size() > 0 && ps1.getProceduresPerformed().get(0) instanceof PatientProcedureSurgicalOpVo
                && ps1.getProceduresPerformed().get(0).getPeformedBy() != null) ? ps1.getProceduresPerformed().get(0).getPeformedBy().getIMosName(): null;
    }
    if(ob2 instanceof SurgicalOperationNotesListVo)
    {
        SurgicalOperationNotesListVo ps2 = (SurgicalOperationNotesListVo)ob2;
        rez2 = (ps2.getProceduresPerformed() != null && ps2.getProceduresPerformed().size() > 0 && ps2.getProceduresPerformed().get(0) instanceof PatientProcedureSurgicalOpVo
                && ps2.getProceduresPerformed().get(0).getPeformedBy() != null) ? ps2.getProceduresPerformed().get(0).getPeformedBy().getIMosName(): null;
    }

    if(rez1 != null && rez2 != null)
        return  rez1.compareToIgnoreCase(rez2)*direction;

    if(rez1 != null && rez2 == null)
        return  direction;

    if(rez2 != null && rez1 == null)
        return (-1)*direction;

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
private PatientProcedureSurgicalOpVo updateProcedureDataFromScreen(PatientProcedureSurgicalOpVo patProc,HcpLiteVoCollection assistants)
{
    if (patProc == null)
        return null;
    patProc.setProcDate(form.dteDate().getValue() == null ? null : new PartialDate(form.dteDate().getValue()));
    patProc.setPeformedBy(form.qmbOpSurgeon().getValue());   
    patProc.setHCPPresent(assistants);
    patProc.setProcedureUrgency(null);
    if (!GroupOperationEnumeration.None.equals(form.GroupOperation().getValue()))
    {
        patProc.setProcedureUrgency(GroupOperationEnumeration.rdoEmergency.equals(form.GroupOperation().getValue())?ProcedureUrgency.EMERGENCY:ProcedureUrgency.ELECTIVE);
    }
    return patProc;
}
项目:openMAXIMS    文件:Logic.java   
private void  addProcToGrid(PatientProcedureSurgicalOpVo patProc)
{
    if (patProc == null)
        return;
    grdProceduresRow nRow = form.grdProcedures().getRows().newRow();

    nRow.setColumnName(patProc.getProcedureIsNotNull()?patProc.getProcedure().getProcedureName():null);
    nRow.setColumnDescription(patProc.getProcedureDescription());
    nRow.setValue(patProc);
    form.grdProcedures().setValue(patProc);

}
项目:openMAXIMS    文件:Logic.java   
private void markAsRie(PatientProcedureSurgicalOpVo value) 
{
    if(value == null)
        return;

    form.getLocalContext().setProcedureToBeRIE(value);
    engine.open(form.getForms().Core.RieConfirmationDialog);
}
项目:openMAXIMS    文件:Logic.java   
public void updateControlsState()
{

    boolean viewMode = FormMode.VIEW.equals(form.getMode());
    boolean isReadWrite = !(form.getLocalContext().getReadOnlyIsNotNull() && form.getLocalContext().getReadOnly());
    boolean isOperatingSurgeon = form.qmbOpSurgeon().getValue() != null;
    if (viewMode)
    {
        form.btnEdit().setVisible(isReadWrite);
        //wdev-15917
        if( form.getLocalContext().getCurrentOPNoteIsNotNull() && form.getLocalContext().getCurrentOPNote().getProceduresPerformedIsNotNull() && form.getLocalContext().getCurrentOPNote().getProceduresPerformed().size() > 0)
            form.btnEdit().setText("Edit");
        else
            form.btnEdit().setText("New");

    }
    form.getContextMenus().Clinical.getEDischargeDiagnosisEtcDiagnosisMenuNEW_DIAGNOSISItem().setVisible(viewMode && isReadWrite);
    form.getContextMenus().Clinical.getEDischargeDiagnosisEtcDiagnosisMenuEDIT_DIAGNOSISItem().setVisible(viewMode && form.grdDiagnosis().getSelectedRow()!=null && isReadWrite);
    form.getContextMenus().Clinical.getEDischargeDiagnosisEtcDiagnosisMenuVIEW_DIAGNOSISItem().setVisible(viewMode && form.grdDiagnosis().getSelectedRow()!=null);

    form.getContextMenus().getProcedureADDItem().setVisible(isOperatingSurgeon && !viewMode && isReadWrite);
    form.getContextMenus().getProcedureRIEItem().setVisible( isOperatingSurgeon && viewMode && isReadWrite && form.grdProcedures().getValue() instanceof PatientProcedureSurgicalOpVo && form.grdProcedures().getValue().getID_PatientProcedureIsNotNull() && form.grdProcedures().getRows().size() > 1); //wdev-15914



    form.getContextMenus().getGenericGridAddItem().setVisible(!viewMode);
    form.getContextMenus().getGenericGridRemoveItem().setVisible(!viewMode && form.grdAssistants().getSelectedRowIndex() >= 0);


}
项目:openMAXIMS    文件:Logic.java   
private void populateInstanceControlsFromData(PatientProcedureSurgicalOpVo proc)
{
    clearInstanceControls();
    if (proc == null)
        return;
    form.dteDate().setValue(proc.getProcDateIsNotNull() ? proc.getProcDate().toDate() : null);
    HcpLiteVo surgeon = proc.getPeformedBy();
    if (surgeon !=null)
    {
        form.qmbOpSurgeon().newRow(surgeon, surgeon.getMosIsNotNull()?surgeon.getMos().getIMosName():null);
        form.qmbOpSurgeon().setValue(surgeon);
    }

    HcpLiteVoCollection assistants = proc.getHCPPresent();
    if (assistants != null)
    {
        for (int i =0 ; i<assistants.size() ; i++)
        {
            HcpLiteVo assistant = assistants.get(i);
            if (assistant!=null)
            {
            grdAssistantsRow nRow = form.grdAssistants().getRows().newRow();
            nRow.getSurgeon().newRow(assistant,assistant.getIMosName());
            nRow.getSurgeon().setValue(assistant);
            }
        }
    }
    // TODO form.chkPrimary().setValue(form.getLocalContext().getCurrentOPNoteIsNotNull() && proc.equals(form.getLocalContext().getCurrentOPNote().getMainProcedure()));
    if (proc.getProcedureUrgencyIsNotNull())
    {
    form.GroupOperation().setValue(ProcedureUrgency.EMERGENCY.equals(proc.getProcedureUrgency())?GroupOperationEnumeration.rdoEmergency:GroupOperationEnumeration.rdoElective);
    }

    populateCmbConsultant();

}
项目:openMAXIMS    文件:Logic.java   
private PatientProcedureSurgicalOpVo getMainFromGrid()
{
    grdProceduresRowCollection patProcs = form.grdProcedures().getRows();
    if (patProcs == null)
        return null;
    for (int i=0 ; i<patProcs.size() ; i++)
    {
        if (patProcs.get(i).getColumnPrimary() == true)
        {
            return patProcs.get(i).getValue();
        }
    }
    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private PatientProcedureSurgicalOpVo updateProcedureDataFromScreen(PatientProcedureSurgicalOpVo patProc,HcpLiteVoCollection assistants)
{
    if (patProc == null)
        return null;
    patProc.setProcDate(form.dteDate().getValue() == null ? null : new PartialDate(form.dteDate().getValue()));
    patProc.setPeformedBy(form.qmbOpSurgeon().getValue());   
    patProc.setHCPPresent(assistants);
    patProc.setProcedureUrgency(null);
    if (!GroupOperationEnumeration.None.equals(form.GroupOperation().getValue()))
    {
        patProc.setProcedureUrgency(GroupOperationEnumeration.rdoEmergency.equals(form.GroupOperation().getValue())?ProcedureUrgency.EMERGENCY:ProcedureUrgency.ELECTIVE);
    }
    return patProc;
}
项目:openmaxims-linux    文件:Logic.java   
private void  addProcToGrid(PatientProcedureSurgicalOpVo patProc)
{
    if (patProc == null)
        return;
    grdProceduresRow nRow = form.grdProcedures().getRows().newRow();

    nRow.setColumnName(patProc.getProcedureIsNotNull()?patProc.getProcedure().getProcedureName():null);
    nRow.setColumnDescription(patProc.getProcedureDescription());
    nRow.setValue(patProc);
    form.grdProcedures().setValue(patProc);

}
项目:openmaxims-linux    文件:Logic.java   
private void markAsRie(PatientProcedureSurgicalOpVo value) 
{
    if(value == null)
        return;

    form.getLocalContext().setProcedureToBeRIE(value);
    engine.open(form.getForms().Core.RieConfirmationDialog);
}
项目:openmaxims-linux    文件:Logic.java   
public void updateControlsState()
{

    boolean viewMode = FormMode.VIEW.equals(form.getMode());
    boolean isReadWrite = !(form.getLocalContext().getReadOnlyIsNotNull() && form.getLocalContext().getReadOnly());
    boolean isOperatingSurgeon = form.qmbOpSurgeon().getValue() != null;
    if (viewMode)
    {
        form.btnEdit().setVisible(isReadWrite);
        //wdev-15917
        if( form.getLocalContext().getCurrentOPNoteIsNotNull() && form.getLocalContext().getCurrentOPNote().getProceduresPerformedIsNotNull() && form.getLocalContext().getCurrentOPNote().getProceduresPerformed().size() > 0)
            form.btnEdit().setText("Edit");
        else
            form.btnEdit().setText("New");

    }
    form.getContextMenus().Clinical.getEDischargeDiagnosisEtcDiagnosisMenuNEW_DIAGNOSISItem().setVisible(viewMode && isReadWrite);
    form.getContextMenus().Clinical.getEDischargeDiagnosisEtcDiagnosisMenuEDIT_DIAGNOSISItem().setVisible(viewMode && form.grdDiagnosis().getSelectedRow()!=null && isReadWrite);
    form.getContextMenus().Clinical.getEDischargeDiagnosisEtcDiagnosisMenuVIEW_DIAGNOSISItem().setVisible(viewMode && form.grdDiagnosis().getSelectedRow()!=null);

    form.getContextMenus().getProcedureADDItem().setVisible(isOperatingSurgeon && !viewMode && isReadWrite);
    form.getContextMenus().getProcedureRIEItem().setVisible( isOperatingSurgeon && viewMode && isReadWrite && form.grdProcedures().getValue() instanceof PatientProcedureSurgicalOpVo && form.grdProcedures().getValue().getID_PatientProcedureIsNotNull() && form.grdProcedures().getRows().size() > 1); //wdev-15914



    form.getContextMenus().getGenericGridAddItem().setVisible(!viewMode);
    form.getContextMenus().getGenericGridRemoveItem().setVisible(!viewMode && form.grdAssistants().getSelectedRowIndex() >= 0);


}
项目:openmaxims-linux    文件:Logic.java   
private void populateInstanceControlsFromData(PatientProcedureSurgicalOpVo proc)
{
    clearInstanceControls();
    if (proc == null)
        return;
    form.dteDate().setValue(proc.getProcDateIsNotNull() ? proc.getProcDate().toDate() : null);
    HcpLiteVo surgeon = proc.getPeformedBy();
    if (surgeon !=null)
    {
        form.qmbOpSurgeon().newRow(surgeon, surgeon.getMosIsNotNull()?surgeon.getMos().getIMosName():null);
        form.qmbOpSurgeon().setValue(surgeon);
    }

    HcpLiteVoCollection assistants = proc.getHCPPresent();
    if (assistants != null)
    {
        for (int i =0 ; i<assistants.size() ; i++)
        {
            HcpLiteVo assistant = assistants.get(i);
            if (assistant!=null)
            {
            grdAssistantsRow nRow = form.grdAssistants().getRows().newRow();
            nRow.getSurgeon().newRow(assistant,assistant.getIMosName());
            nRow.getSurgeon().setValue(assistant);
            }
        }
    }
    // TODO form.chkPrimary().setValue(form.getLocalContext().getCurrentOPNoteIsNotNull() && proc.equals(form.getLocalContext().getCurrentOPNote().getMainProcedure()));
    if (proc.getProcedureUrgencyIsNotNull())
    {
    form.GroupOperation().setValue(ProcedureUrgency.EMERGENCY.equals(proc.getProcedureUrgency())?GroupOperationEnumeration.rdoEmergency:GroupOperationEnumeration.rdoElective);
    }

    populateCmbConsultant();

}