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

项目:AvoinApotti    文件:Logic.java   
private void viewProcedureItem(Control sender)
{
    form.getGlobalContext().Clinical.setReturnToFormName(engine.getFormName());
    if (form.grdDiagnosis().getSelectedRow() != null && sender.equals(form.grdDiagnosis()))
    {
        ValueObject voVal = (ValueObject) form.grdDiagnosis().getValue();
        if (voVal != null)
        {
            if (voVal instanceof PatientProcedureShortVo)
            {
                form.getGlobalContext().Clinical.setSelectedPatientProcedureFromNursingAdmission((PatientProcedureShortVo)voVal);
                engine.open(form.getForms().Clinical.Procedures_Dialog);
                form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void displayProcAssociationsOnSummary()
{
    ClinicalDIAssociationVoCollection voCollDiAsociations = null;

    if (form.ctnSummary().grdProcedure().getValue() != null)
    {
        String headerTooltip = "";
        String association = "";

        if (form.ctnSummary().grdProcedure().getValue() instanceof PatientProcedureRefVo)
        {
            voCollDiAsociations = domain.listClinicalDiAssociationByPatientProcedure((PatientProcedureRefVo) form.ctnSummary().grdProcedure().getValue());
            if (form.ctnSummary().grdProcedure().getValue() instanceof PatientProcedureShortVo)
            {
                association = getProcedureText(((PatientProcedureShortVo) form.ctnSummary().grdProcedure().getValue()));
                headerTooltip = ((PatientProcedureShortVo) form.ctnSummary().grdProcedure().getValue()).getDiAssociationsTooltip();
            }
        }

        markGridAssociations(voCollDiAsociations, Boolean.FALSE, association, headerTooltip);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void viewProcItem()
{
    form.getGlobalContext().Clinical.setReturnToFormName(engine.getFormName());
    form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);

    if (form.ctnSummary().grdProcedure().getSelectedRow() != null)
    {
        ValueObject voVal = form.ctnSummary().grdProcedure().getValue();
        if (voVal != null)
        {
            if (voVal instanceof PatientProcedureShortVo)
            {
                // WDEV-1421
                form.getGlobalContext().Clinical.setSelectedPatientProcedureFromPatientSummary((PatientProcedureShortVo) voVal);
                // WDEV-2422
                engine.open(form.getForms().Clinical.Procedures_Dialog);
            }
        }
    }

}
项目:AvoinApotti    文件:Logic.java   
private String getDate(PatientProcedureShortVo voPatientProcedureShort)
{
    PartialDate procDate = null;
    if (voPatientProcedureShort != null)
    {
        PatientProcedureStatus procedureStatus = voPatientProcedureShort.getProcedureStatus();
        if (procedureStatus != null)
        {
            if (procedureStatus.equals(PatientProcedureStatus.PLANNED))
            {
                procDate = voPatientProcedureShort.getDatePlanned();
            }
            else if (procedureStatus.equals(PatientProcedureStatus.PERFORMED))
            {
                procDate = voPatientProcedureShort.getProcDate();
            }
        }
    }

    return procDate != null ? procDate.toString() : "";
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnUpdateClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.setMode(FormMode.EDIT);
    form.getLocalContext().setbUpdatingRecord(Boolean.TRUE);

    form.getLocalContext().setRieRecord(null);
    if (form.grpType().getValue().equals(GenForm.grpTypeEnumeration.rdoDiagnosis))
        form.getLocalContext().setDiagnosis((PatientDiagnosisVo) form.gridDiagnosis().getValue());
    else
        form.getLocalContext().setProcedure((PatientProcedureShortVo) form.gridDiagnosis().getValue());

    //form.setcustomControlDiagProcEnabled(false);
    form.grpType().setEnabled(false);

    form.btnUpdate().setVisible(false);
    form.setcustomControlAuthoringInfoEnabled(false);
    form.customControlDiagProc().setEnabled(false);
    //form.setcustomControlDiagProcEnabled(true);
    onRadioButtongrpTypeValueChanged();

}
项目:AvoinApotti    文件:Logic.java   
private void displayProcAssociationsOnSummary()
{
    ClinicalDIAssociationVoCollection voCollDiAsociations = null;

    if (form.ctnSummary().grdProcedure().getValue() != null)
    {
        String headerTooltip = "";
        String association = "";

        if (form.ctnSummary().grdProcedure().getValue() instanceof PatientProcedureRefVo)
        {
            voCollDiAsociations = domain.listClinicalDiAssociationByPatientProcedure((PatientProcedureRefVo) form.ctnSummary().grdProcedure().getValue());
            if(form.ctnSummary().grdProcedure().getValue() instanceof PatientProcedureShortVo)
            {
                association = getProcedureText(((PatientProcedureShortVo)form.ctnSummary().grdProcedure().getValue()));
                headerTooltip = ((PatientProcedureShortVo)form.ctnSummary().grdProcedure().getValue()).getDiAssociationsTooltip();
            }
        }

        markGridAssociations(voCollDiAsociations, Boolean.FALSE, association, headerTooltip);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void viewProcItem()
{
    form.getGlobalContext().Clinical.setReturnToFormName(engine.getFormName());
    form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);

    if (form.ctnSummary().grdProcedure().getSelectedRow() != null)
    {
        ValueObject voVal = form.ctnSummary().grdProcedure().getValue();
        if (voVal != null)
        {
            if (voVal instanceof PatientProcedureShortVo)
            {
                //WDEV-1421
                form.getGlobalContext().Clinical.setSelectedPatientProcedureFromPatientSummary((PatientProcedureShortVo)voVal);
                //WDEV-2422
                engine.open(form.getForms().Clinical.Procedures_Dialog);
            }
        }
    }

}
项目:AvoinApotti    文件:Logic.java   
private String getDate(PatientProcedureShortVo voPatientProcedureShort)
{
    PartialDate procDate = null;
    if (voPatientProcedureShort != null)
    {
        PatientProcedureStatus procedureStatus = voPatientProcedureShort.getProcedureStatus();
        if (procedureStatus != null)
        {
            if (procedureStatus.equals(PatientProcedureStatus.PLANNED))
            {
                procDate = voPatientProcedureShort.getDatePlanned();
            }
            else if (procedureStatus.equals(PatientProcedureStatus.PERFORMED))
            {
                procDate = voPatientProcedureShort.getProcDate();
            }
        }
    }

    return procDate != null ? procDate.toString() : "";
}
项目:AvoinApotti    文件:Logic.java   
private ClinicalDIAssociationVo setPrimary(ClinicalDIAssociationVo data)
{       
    if(data == null)
        return data;

    ValueObject primary = form.getGlobalContext().Clinical.PatientSummary.getPrimaryAssociation();              

    if(primary instanceof PatientDiagnosisShortVo)
    {
        data.setPrimDiagnosis((PatientDiagnosisRefVo)form.getGlobalContext().Clinical.PatientSummary.getPrimaryAssociation());          
    }
    else if(primary instanceof PatientProcedureShortVo)
    {
        data.setPrimProcedure((PatientProcedureRefVo)form.getGlobalContext().Clinical.PatientSummary.getPrimaryAssociation());
    }
    else if(primary instanceof PatientProblemVo)
    {
        data.setPrimProblem((PatientProblemVo)form.getGlobalContext().Clinical.PatientSummary.getPrimaryAssociation());
    }

    return data;
}
项目:AvoinApotti    文件:SurgicalOPNotesOperationDetailsCCImpl.java   
@SuppressWarnings("unchecked")
public ims.clinicaladmin.vo.SurgicalOperationDetailsConfigVo getDefaultTemplate(PatientProcedureShortVo proc) throws ims.domain.exceptions.DomainInterfaceException
{
    if (proc == null)
        throw new DomainInterfaceException("Patient procedure is mandatory");

    //WDEV-9946
    if (proc.getPeformedBy() == null || proc.getPeformedBy().getIMosHcpId() == null)
        throw new DomainInterfaceException("Operating Surgeon for patient procedure is mandatory");
    if (proc.getProcedure() == null)
        throw new DomainInterfaceException("Procedure for patient procedure is mandatory");
    String query = "from SurgicalOperationDetailsConfig as s1_1 where (s1_1.surgeon.id = :surgeonID and s1_1.procedureReference.id = :procID)";
    //WDEV-9946
    List result = getDomainFactory().find(query,new String[]{"surgeonID","procID"},new Object[]{proc.getPeformedBy().getIMosHcpId(),proc.getProcedure().getID_Procedure()});
    if (result == null || result.size()==0)
            return null;
    return SurgicalOperationDetailsConfigVoAssembler.create((SurgicalOperationDetailsConfig) result.get(0));
}
项目:AvoinApotti    文件:SurgicalOPNotesPostOpInstructionsCCImpl.java   
public SurgicalOperationDetailsConfigVo getDefaultTemplate(PatientProcedureShortVo proc) throws DomainInterfaceException 
{
    if (proc == null)
        throw new DomainInterfaceException("Patient procedure is mandatory");

    //WDEV-9946
    if (proc.getPeformedBy() == null || proc.getPeformedBy().getIMosHcpId() == null)
        throw new DomainInterfaceException("Operating Surgeon for patient procedure is mandatory");
    if (proc.getProcedure() == null)
        throw new DomainInterfaceException("Procedure for patient procedure is mandatory");
    String query = "from SurgicalOperationDetailsConfig as s1_1 where (s1_1.surgeon.id = :surgeonID and s1_1.procedureReference.id = :procID)";
    //WDEV-9946
    List result = getDomainFactory().find(query,new String[]{"surgeonID","procID"},new Object[]{proc.getPeformedBy().getIMosHcpId(),proc.getProcedure().getID_Procedure()});
    if (result == null || result.size()==0)
            return null;
    return SurgicalOperationDetailsConfigVoAssembler.create((SurgicalOperationDetailsConfig) result.get(0));
}
项目:openMAXIMS    文件:Logic.java   
private void viewProcedureItem(Control sender)
{
    form.getGlobalContext().Clinical.setReturnToFormName(engine.getFormName());
    if (form.grdDiagnosis().getSelectedRow() != null && sender.equals(form.grdDiagnosis()))
    {
        ValueObject voVal = (ValueObject) form.grdDiagnosis().getValue();
        if (voVal != null)
        {
            if (voVal instanceof PatientProcedureShortVo)
            {
                form.getGlobalContext().Clinical.setSelectedPatientProcedureFromNursingAdmission((PatientProcedureShortVo)voVal);
                engine.open(form.getForms().Clinical.Procedures_Dialog);
                form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void displayProcAssociationsOnSummary()
{
    ClinicalDIAssociationVoCollection voCollDiAsociations = null;

    if (form.ctnSummary().grdProcedure().getValue() != null)
    {
        String headerTooltip = "";
        String association = "";

        if (form.ctnSummary().grdProcedure().getValue() instanceof PatientProcedureRefVo)
        {
            voCollDiAsociations = domain.listClinicalDiAssociationByPatientProcedure((PatientProcedureRefVo) form.ctnSummary().grdProcedure().getValue());
            if (form.ctnSummary().grdProcedure().getValue() instanceof PatientProcedureShortVo)
            {
                association = getProcedureText(((PatientProcedureShortVo) form.ctnSummary().grdProcedure().getValue()));
                headerTooltip = ((PatientProcedureShortVo) form.ctnSummary().grdProcedure().getValue()).getDiAssociationsTooltip();
            }
        }

        markGridAssociations(voCollDiAsociations, Boolean.FALSE, association, headerTooltip);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void viewProcItem()
{
    form.getGlobalContext().Clinical.setReturnToFormName(engine.getFormName());
    form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);

    if (form.ctnSummary().grdProcedure().getSelectedRow() != null)
    {
        ValueObject voVal = form.ctnSummary().grdProcedure().getValue();
        if (voVal != null)
        {
            if (voVal instanceof PatientProcedureShortVo)
            {
                // WDEV-1421
                form.getGlobalContext().Clinical.setSelectedPatientProcedureFromPatientSummary((PatientProcedureShortVo) voVal);
                // WDEV-2422
                engine.open(form.getForms().Clinical.Procedures_Dialog);
            }
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private String getDate(PatientProcedureShortVo voPatientProcedureShort)
{
    PartialDate procDate = null;
    if (voPatientProcedureShort != null)
    {
        PatientProcedureStatus procedureStatus = voPatientProcedureShort.getProcedureStatus();
        if (procedureStatus != null)
        {
            if (procedureStatus.equals(PatientProcedureStatus.PLANNED))
            {
                procDate = voPatientProcedureShort.getDatePlanned();
            }
            else if (procedureStatus.equals(PatientProcedureStatus.PERFORMED))
            {
                procDate = voPatientProcedureShort.getProcDate();
            }
        }
    }

    return procDate != null ? procDate.toString() : "";
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnUpdateClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.setMode(FormMode.EDIT);
    form.getLocalContext().setbUpdatingRecord(Boolean.TRUE);

    form.getLocalContext().setRieRecord(null);
    if (form.grpType().getValue().equals(GenForm.grpTypeEnumeration.rdoDiagnosis))
        form.getLocalContext().setDiagnosis((PatientDiagnosisVo) form.gridDiagnosis().getValue());
    else
        form.getLocalContext().setProcedure((PatientProcedureShortVo) form.gridDiagnosis().getValue());

    //form.setcustomControlDiagProcEnabled(false);
    form.grpType().setEnabled(false);

    form.btnUpdate().setVisible(false);
    form.setcustomControlAuthoringInfoEnabled(false);
    form.customControlDiagProc().setEnabled(false);
    //form.setcustomControlDiagProcEnabled(true);
    onRadioButtongrpTypeValueChanged();

}
项目:openMAXIMS    文件:Logic.java   
private void displayProcAssociationsOnSummary()
{
    ClinicalDIAssociationVoCollection voCollDiAsociations = null;

    if (form.ctnSummary().grdProcedure().getValue() != null)
    {
        String headerTooltip = "";
        String association = "";

        if (form.ctnSummary().grdProcedure().getValue() instanceof PatientProcedureRefVo)
        {
            voCollDiAsociations = domain.listClinicalDiAssociationByPatientProcedure((PatientProcedureRefVo) form.ctnSummary().grdProcedure().getValue());
            if(form.ctnSummary().grdProcedure().getValue() instanceof PatientProcedureShortVo)
            {
                association = getProcedureText(((PatientProcedureShortVo)form.ctnSummary().grdProcedure().getValue()));
                headerTooltip = ((PatientProcedureShortVo)form.ctnSummary().grdProcedure().getValue()).getDiAssociationsTooltip();
            }
        }

        markGridAssociations(voCollDiAsociations, Boolean.FALSE, association, headerTooltip);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void viewProcItem()
{
    form.getGlobalContext().Clinical.setReturnToFormName(engine.getFormName());
    form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);

    if (form.ctnSummary().grdProcedure().getSelectedRow() != null)
    {
        ValueObject voVal = form.ctnSummary().grdProcedure().getValue();
        if (voVal != null)
        {
            if (voVal instanceof PatientProcedureShortVo)
            {
                //WDEV-1421
                form.getGlobalContext().Clinical.setSelectedPatientProcedureFromPatientSummary((PatientProcedureShortVo)voVal);
                //WDEV-2422
                engine.open(form.getForms().Clinical.Procedures_Dialog);
            }
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private String getDate(PatientProcedureShortVo voPatientProcedureShort)
{
    PartialDate procDate = null;
    if (voPatientProcedureShort != null)
    {
        PatientProcedureStatus procedureStatus = voPatientProcedureShort.getProcedureStatus();
        if (procedureStatus != null)
        {
            if (procedureStatus.equals(PatientProcedureStatus.PLANNED))
            {
                procDate = voPatientProcedureShort.getDatePlanned();
            }
            else if (procedureStatus.equals(PatientProcedureStatus.PERFORMED))
            {
                procDate = voPatientProcedureShort.getProcDate();
            }
        }
    }

    return procDate != null ? procDate.toString() : "";
}
项目:openMAXIMS    文件:Logic.java   
private ClinicalDIAssociationVo setPrimary(ClinicalDIAssociationVo data)
{       
    if(data == null)
        return data;

    ValueObject primary = form.getGlobalContext().Clinical.PatientSummary.getPrimaryAssociation();              

    if(primary instanceof PatientDiagnosisShortVo)
    {
        data.setPrimDiagnosis((PatientDiagnosisRefVo)form.getGlobalContext().Clinical.PatientSummary.getPrimaryAssociation());          
    }
    else if(primary instanceof PatientProcedureShortVo)
    {
        data.setPrimProcedure((PatientProcedureRefVo)form.getGlobalContext().Clinical.PatientSummary.getPrimaryAssociation());
    }
    else if(primary instanceof PatientProblemVo)
    {
        data.setPrimProblem((PatientProblemVo)form.getGlobalContext().Clinical.PatientSummary.getPrimaryAssociation());
    }

    return data;
}
项目:openMAXIMS    文件:SurgicalOPNotesOperationDetailsCCImpl.java   
@SuppressWarnings("unchecked")
public ims.clinicaladmin.vo.SurgicalOperationDetailsConfigVo getDefaultTemplate(PatientProcedureShortVo proc) throws ims.domain.exceptions.DomainInterfaceException
{
    if (proc == null)
        throw new DomainInterfaceException("Patient procedure is mandatory");

    //WDEV-9946
    if (proc.getPeformedBy() == null || proc.getPeformedBy().getIMosHcpId() == null)
        throw new DomainInterfaceException("Operating Surgeon for patient procedure is mandatory");
    if (proc.getProcedure() == null)
        throw new DomainInterfaceException("Procedure for patient procedure is mandatory");
    String query = "from SurgicalOperationDetailsConfig as s1_1 where (s1_1.surgeon.id = :surgeonID and s1_1.procedureReference.id = :procID)";
    //WDEV-9946
    List result = getDomainFactory().find(query,new String[]{"surgeonID","procID"},new Object[]{proc.getPeformedBy().getIMosHcpId(),proc.getProcedure().getID_Procedure()});
    if (result == null || result.size()==0)
            return null;
    return SurgicalOperationDetailsConfigVoAssembler.create((SurgicalOperationDetailsConfig) result.get(0));
}
项目:openMAXIMS    文件:SurgicalOPNotesPostOpInstructionsCCImpl.java   
public SurgicalOperationDetailsConfigVo getDefaultTemplate(PatientProcedureShortVo proc) throws DomainInterfaceException 
{
    if (proc == null)
        throw new DomainInterfaceException("Patient procedure is mandatory");

    //WDEV-9946
    if (proc.getPeformedBy() == null || proc.getPeformedBy().getIMosHcpId() == null)
        throw new DomainInterfaceException("Operating Surgeon for patient procedure is mandatory");
    if (proc.getProcedure() == null)
        throw new DomainInterfaceException("Procedure for patient procedure is mandatory");
    String query = "from SurgicalOperationDetailsConfig as s1_1 where (s1_1.surgeon.id = :surgeonID and s1_1.procedureReference.id = :procID)";
    //WDEV-9946
    List result = getDomainFactory().find(query,new String[]{"surgeonID","procID"},new Object[]{proc.getPeformedBy().getIMosHcpId(),proc.getProcedure().getID_Procedure()});
    if (result == null || result.size()==0)
            return null;
    return SurgicalOperationDetailsConfigVoAssembler.create((SurgicalOperationDetailsConfig) result.get(0));
}
项目:openMAXIMS    文件:Logic.java   
private void viewProcedureItem(Control sender)
{
    form.getGlobalContext().Clinical.setReturnToFormName(engine.getFormName());
    if (form.grdDiagnosis().getSelectedRow() != null && sender.equals(form.grdDiagnosis()))
    {
        ValueObject voVal = (ValueObject) form.grdDiagnosis().getValue();
        if (voVal != null)
        {
            if (voVal instanceof PatientProcedureShortVo)
            {
                form.getGlobalContext().Clinical.setSelectedPatientProcedureFromNursingAdmission((PatientProcedureShortVo)voVal);
                engine.open(form.getForms().Clinical.Procedures_Dialog);
                form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void displayProcAssociationsOnSummary()
{
    ClinicalDIAssociationVoCollection voCollDiAsociations = null;

    if (form.ctnSummary().grdProcedure().getValue() != null)
    {
        String headerTooltip = "";
        String association = "";

        if (form.ctnSummary().grdProcedure().getValue() instanceof PatientProcedureRefVo)
        {
            voCollDiAsociations = domain.listClinicalDiAssociationByPatientProcedure((PatientProcedureRefVo) form.ctnSummary().grdProcedure().getValue());
            if (form.ctnSummary().grdProcedure().getValue() instanceof PatientProcedureShortVo)
            {
                association = getProcedureText(((PatientProcedureShortVo) form.ctnSummary().grdProcedure().getValue()));
                headerTooltip = ((PatientProcedureShortVo) form.ctnSummary().grdProcedure().getValue()).getDiAssociationsTooltip();
            }
        }

        markGridAssociations(voCollDiAsociations, Boolean.FALSE, association, headerTooltip);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void viewProcItem()
{
    form.getGlobalContext().Clinical.setReturnToFormName(engine.getFormName());
    form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);

    if (form.ctnSummary().grdProcedure().getSelectedRow() != null)
    {
        ValueObject voVal = form.ctnSummary().grdProcedure().getValue();
        if (voVal != null)
        {
            if (voVal instanceof PatientProcedureShortVo)
            {
                // WDEV-1421
                form.getGlobalContext().Clinical.setSelectedPatientProcedureFromPatientSummary((PatientProcedureShortVo) voVal);
                // WDEV-2422
                engine.open(form.getForms().Clinical.Procedures_Dialog);
            }
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private String getDate(PatientProcedureShortVo voPatientProcedureShort)
{
    PartialDate procDate = null;
    if (voPatientProcedureShort != null)
    {
        PatientProcedureStatus procedureStatus = voPatientProcedureShort.getProcedureStatus();
        if (procedureStatus != null)
        {
            if (procedureStatus.equals(PatientProcedureStatus.PLANNED))
            {
                procDate = voPatientProcedureShort.getDatePlanned();
            }
            else if (procedureStatus.equals(PatientProcedureStatus.PERFORMED))
            {
                procDate = voPatientProcedureShort.getProcDate();
            }
        }
    }

    return procDate != null ? procDate.toString() : "";
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnUpdateClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.setMode(FormMode.EDIT);
    form.getLocalContext().setbUpdatingRecord(Boolean.TRUE);

    form.getLocalContext().setRieRecord(null);
    if (form.grpType().getValue().equals(GenForm.grpTypeEnumeration.rdoDiagnosis))
        form.getLocalContext().setDiagnosis((PatientDiagnosisVo) form.gridDiagnosis().getValue());
    else
        form.getLocalContext().setProcedure((PatientProcedureShortVo) form.gridDiagnosis().getValue());

    //form.setcustomControlDiagProcEnabled(false);
    form.grpType().setEnabled(false);

    form.btnUpdate().setVisible(false);
    form.setcustomControlAuthoringInfoEnabled(false);
    form.customControlDiagProc().setEnabled(false);
    //form.setcustomControlDiagProcEnabled(true);
    onRadioButtongrpTypeValueChanged();

}
项目:openMAXIMS    文件:Logic.java   
private void displayProcAssociationsOnSummary()
{
    ClinicalDIAssociationVoCollection voCollDiAsociations = null;

    if (form.ctnSummary().grdProcedure().getValue() != null)
    {
        String headerTooltip = "";
        String association = "";

        if (form.ctnSummary().grdProcedure().getValue() instanceof PatientProcedureRefVo)
        {
            voCollDiAsociations = domain.listClinicalDiAssociationByPatientProcedure((PatientProcedureRefVo) form.ctnSummary().grdProcedure().getValue());
            if(form.ctnSummary().grdProcedure().getValue() instanceof PatientProcedureShortVo)
            {
                association = getProcedureText(((PatientProcedureShortVo)form.ctnSummary().grdProcedure().getValue()));
                headerTooltip = ((PatientProcedureShortVo)form.ctnSummary().grdProcedure().getValue()).getDiAssociationsTooltip();
            }
        }

        markGridAssociations(voCollDiAsociations, Boolean.FALSE, association, headerTooltip);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void viewProcItem()
{
    form.getGlobalContext().Clinical.setReturnToFormName(engine.getFormName());
    form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);

    if (form.ctnSummary().grdProcedure().getSelectedRow() != null)
    {
        ValueObject voVal = form.ctnSummary().grdProcedure().getValue();
        if (voVal != null)
        {
            if (voVal instanceof PatientProcedureShortVo)
            {
                //WDEV-1421
                form.getGlobalContext().Clinical.setSelectedPatientProcedureFromPatientSummary((PatientProcedureShortVo)voVal);
                //WDEV-2422
                engine.open(form.getForms().Clinical.Procedures_Dialog);
            }
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private String getDate(PatientProcedureShortVo voPatientProcedureShort)
{
    PartialDate procDate = null;
    if (voPatientProcedureShort != null)
    {
        PatientProcedureStatus procedureStatus = voPatientProcedureShort.getProcedureStatus();
        if (procedureStatus != null)
        {
            if (procedureStatus.equals(PatientProcedureStatus.PLANNED))
            {
                procDate = voPatientProcedureShort.getDatePlanned();
            }
            else if (procedureStatus.equals(PatientProcedureStatus.PERFORMED))
            {
                procDate = voPatientProcedureShort.getProcDate();
            }
        }
    }

    return procDate != null ? procDate.toString() : "";
}
项目:openMAXIMS    文件:Logic.java   
private ClinicalDIAssociationVo setPrimary(ClinicalDIAssociationVo data)
{       
    if(data == null)
        return data;

    ValueObject primary = form.getGlobalContext().Clinical.PatientSummary.getPrimaryAssociation();              

    if(primary instanceof PatientDiagnosisShortVo)
    {
        data.setPrimDiagnosis((PatientDiagnosisRefVo)form.getGlobalContext().Clinical.PatientSummary.getPrimaryAssociation());          
    }
    else if(primary instanceof PatientProcedureShortVo)
    {
        data.setPrimProcedure((PatientProcedureRefVo)form.getGlobalContext().Clinical.PatientSummary.getPrimaryAssociation());
    }
    else if(primary instanceof PatientProblemVo)
    {
        data.setPrimProblem((PatientProblemVo)form.getGlobalContext().Clinical.PatientSummary.getPrimaryAssociation());
    }

    return data;
}
项目:openMAXIMS    文件:SurgicalOPNotesOperationDetailsCCImpl.java   
@SuppressWarnings("unchecked")
public ims.clinicaladmin.vo.SurgicalOperationDetailsConfigVo getDefaultTemplate(PatientProcedureShortVo proc) throws ims.domain.exceptions.DomainInterfaceException
{
    if (proc == null)
        throw new DomainInterfaceException("Patient procedure is mandatory");

    //WDEV-9946
    if (proc.getPeformedBy() == null || proc.getPeformedBy().getIMosHcpId() == null)
        throw new DomainInterfaceException("Operating Surgeon for patient procedure is mandatory");
    if (proc.getProcedure() == null)
        throw new DomainInterfaceException("Procedure for patient procedure is mandatory");
    String query = "from SurgicalOperationDetailsConfig as s1_1 where (s1_1.surgeon.id = :surgeonID and s1_1.procedureReference.id = :procID)";
    //WDEV-9946
    List result = getDomainFactory().find(query,new String[]{"surgeonID","procID"},new Object[]{proc.getPeformedBy().getIMosHcpId(),proc.getProcedure().getID_Procedure()});
    if (result == null || result.size()==0)
            return null;
    return SurgicalOperationDetailsConfigVoAssembler.create((SurgicalOperationDetailsConfig) result.get(0));
}
项目:openMAXIMS    文件:SurgicalOPNotesPostOpInstructionsCCImpl.java   
public SurgicalOperationDetailsConfigVo getDefaultTemplate(PatientProcedureShortVo proc) throws DomainInterfaceException 
{
    if (proc == null)
        throw new DomainInterfaceException("Patient procedure is mandatory");

    //WDEV-9946
    if (proc.getPeformedBy() == null || proc.getPeformedBy().getIMosHcpId() == null)
        throw new DomainInterfaceException("Operating Surgeon for patient procedure is mandatory");
    if (proc.getProcedure() == null)
        throw new DomainInterfaceException("Procedure for patient procedure is mandatory");
    String query = "from SurgicalOperationDetailsConfig as s1_1 where (s1_1.surgeon.id = :surgeonID and s1_1.procedureReference.id = :procID)";
    //WDEV-9946
    List result = getDomainFactory().find(query,new String[]{"surgeonID","procID"},new Object[]{proc.getPeformedBy().getIMosHcpId(),proc.getProcedure().getID_Procedure()});
    if (result == null || result.size()==0)
            return null;
    return SurgicalOperationDetailsConfigVoAssembler.create((SurgicalOperationDetailsConfig) result.get(0));
}
项目:openmaxims-linux    文件:Logic.java   
private void viewProcedureItem(Control sender)
{
    form.getGlobalContext().Clinical.setReturnToFormName(engine.getFormName());
    if (form.grdDiagnosis().getSelectedRow() != null && sender.equals(form.grdDiagnosis()))
    {
        ValueObject voVal = (ValueObject) form.grdDiagnosis().getValue();
        if (voVal != null)
        {
            if (voVal instanceof PatientProcedureShortVo)
            {
                form.getGlobalContext().Clinical.setSelectedPatientProcedureFromNursingAdmission((PatientProcedureShortVo)voVal);
                engine.open(form.getForms().Clinical.Procedures_Dialog);
                form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void displayProcAssociationsOnSummary()
{
    ClinicalDIAssociationVoCollection voCollDiAsociations = null;

    if (form.ctnSummary().grdProcedure().getValue() != null)
    {
        String headerTooltip = "";
        String association = "";

        if (form.ctnSummary().grdProcedure().getValue() instanceof PatientProcedureRefVo)
        {
            voCollDiAsociations = domain.listClinicalDiAssociationByPatientProcedure((PatientProcedureRefVo) form.ctnSummary().grdProcedure().getValue());
            if (form.ctnSummary().grdProcedure().getValue() instanceof PatientProcedureShortVo)
            {
                association = getProcedureText(((PatientProcedureShortVo) form.ctnSummary().grdProcedure().getValue()));
                headerTooltip = ((PatientProcedureShortVo) form.ctnSummary().grdProcedure().getValue()).getDiAssociationsTooltip();
            }
        }

        markGridAssociations(voCollDiAsociations, Boolean.FALSE, association, headerTooltip);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void viewProcItem()
{
    form.getGlobalContext().Clinical.setReturnToFormName(engine.getFormName());
    form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);

    if (form.ctnSummary().grdProcedure().getSelectedRow() != null)
    {
        ValueObject voVal = form.ctnSummary().grdProcedure().getValue();
        if (voVal != null)
        {
            if (voVal instanceof PatientProcedureShortVo)
            {
                // WDEV-1421
                form.getGlobalContext().Clinical.setSelectedPatientProcedureFromPatientSummary((PatientProcedureShortVo) voVal);
                // WDEV-2422
                engine.open(form.getForms().Clinical.Procedures_Dialog);
            }
        }
    }

}
项目:openmaxims-linux    文件:Logic.java   
private String getDate(PatientProcedureShortVo voPatientProcedureShort)
{
    PartialDate procDate = null;
    if (voPatientProcedureShort != null)
    {
        PatientProcedureStatus procedureStatus = voPatientProcedureShort.getProcedureStatus();
        if (procedureStatus != null)
        {
            if (procedureStatus.equals(PatientProcedureStatus.PLANNED))
            {
                procDate = voPatientProcedureShort.getDatePlanned();
            }
            else if (procedureStatus.equals(PatientProcedureStatus.PERFORMED))
            {
                procDate = voPatientProcedureShort.getProcDate();
            }
        }
    }

    return procDate != null ? procDate.toString() : "";
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnUpdateClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.setMode(FormMode.EDIT);
    form.getLocalContext().setbUpdatingRecord(Boolean.TRUE);

    form.getLocalContext().setRieRecord(null);
    if (form.grpType().getValue().equals(GenForm.grpTypeEnumeration.rdoDiagnosis))
        form.getLocalContext().setDiagnosis((PatientDiagnosisVo) form.gridDiagnosis().getValue());
    else
        form.getLocalContext().setProcedure((PatientProcedureShortVo) form.gridDiagnosis().getValue());

    //form.setcustomControlDiagProcEnabled(false);
    form.grpType().setEnabled(false);

    form.btnUpdate().setVisible(false);
    form.setcustomControlAuthoringInfoEnabled(false);
    form.customControlDiagProc().setEnabled(false);
    //form.setcustomControlDiagProcEnabled(true);
    onRadioButtongrpTypeValueChanged();

}
项目:openmaxims-linux    文件:Logic.java   
private void displayProcAssociationsOnSummary()
{
    ClinicalDIAssociationVoCollection voCollDiAsociations = null;

    if (form.ctnSummary().grdProcedure().getValue() != null)
    {
        String headerTooltip = "";
        String association = "";

        if (form.ctnSummary().grdProcedure().getValue() instanceof PatientProcedureRefVo)
        {
            voCollDiAsociations = domain.listClinicalDiAssociationByPatientProcedure((PatientProcedureRefVo) form.ctnSummary().grdProcedure().getValue());
            if(form.ctnSummary().grdProcedure().getValue() instanceof PatientProcedureShortVo)
            {
                association = getProcedureText(((PatientProcedureShortVo)form.ctnSummary().grdProcedure().getValue()));
                headerTooltip = ((PatientProcedureShortVo)form.ctnSummary().grdProcedure().getValue()).getDiAssociationsTooltip();
            }
        }

        markGridAssociations(voCollDiAsociations, Boolean.FALSE, association, headerTooltip);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void viewProcItem()
{
    form.getGlobalContext().Clinical.setReturnToFormName(engine.getFormName());
    form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);

    if (form.ctnSummary().grdProcedure().getSelectedRow() != null)
    {
        ValueObject voVal = form.ctnSummary().grdProcedure().getValue();
        if (voVal != null)
        {
            if (voVal instanceof PatientProcedureShortVo)
            {
                //WDEV-1421
                form.getGlobalContext().Clinical.setSelectedPatientProcedureFromPatientSummary((PatientProcedureShortVo)voVal);
                //WDEV-2422
                engine.open(form.getForms().Clinical.Procedures_Dialog);
            }
        }
    }

}