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

项目:AvoinApotti    文件:Logic.java   
@Override
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
    Boolean enableOpsProcs = false;
    Boolean enableAdditional = false;
    //take in 2 booleans which will decide what is editable here
    if(args != null)
    {
        if(args.length == 2)
        {
            if(args[0] != null)
                enableOpsProcs = (Boolean) args[0];
            if(args[1] != null)
                enableAdditional = (Boolean) args[1];
        }
    }

    form.cmbAdditionalClinicalInfo().setEnabled(enableAdditional);
    form.GroupPatProc().setEnabled(enableOpsProcs);

    if(form.getGlobalContext().Clinical.getEDischargeStartIsNotNull())
    {
        EDischargeStartVo voStart = form.getGlobalContext().Clinical.getEDischargeStart();

        form.cmbAdditionalClinicalInfo().setValue(voStart.getAdditonalClinicalInfo());

        YesNo val = voStart.getHasHadAnyProceduresPerformed();
        form.GroupPatProc().setValue( val != null && val.equals(YesNo.YES) ? GroupPatProcEnumeration.rdoYes :  (val != null && val.equals(YesNo.NO) ? GroupPatProcEnumeration.rdoNo :  GroupPatProcEnumeration.None) );
    }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if(form.getGlobalContext().Clinical.getEDischargeStart() == null)
        form.getGlobalContext().Clinical.setEDischargeStart(new EDischargeStartVo());

    form.getGlobalContext().Clinical.getEDischargeStart().setAdditonalClinicalInfo(form.cmbAdditionalClinicalInfo().getValue());
    form.getGlobalContext().Clinical.getEDischargeStart().setHasHadAnyProceduresPerformed(  form.GroupPatProc().getValue().equals(GenForm.GroupPatProcEnumeration.rdoYes) ? YesNo.YES : (form.GroupPatProc().getValue().equals(GenForm.GroupPatProcEnumeration.rdoNo) ? YesNo.NO : null));


    engine.close(DialogResult.OK);
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(EDischargeSTHKSummaryVo voSummary)
{
    clearScreen();
    form.getGlobalContext().Clinical.setEDischargeStart(null);

    if(voSummary == null)
        return;

    form.dtimAdmissionDateTime().setValue(voSummary.getAdmissionDateTime());
    if(form.getGlobalContext().Core.getCurrentCareContextIsNotNull())
    {
        form.dteEdd().setValue(form.getGlobalContext().Core.getCurrentCareContext().getEstimatedDischargeDate());
        //WDEV-11479
        if(form.getGlobalContext().Core.getCurrentCareContext().getResponsibleHCPIsNotNull())
            form.txtResponsibleClinician().setValue(form.getGlobalContext().Core.getCurrentCareContext().getResponsibleHCP().toString());
    }

    if(voSummary.getTTAStatusIsNotNull())
        form.txtTTAStatus().setValue(voSummary.getTTAStatus().getText());

    if(voSummary.getSummaryDetailsIsNotNull())
    {
        for(int i=0;i<voSummary.getSummaryDetails().size();i++)
        {
            grdSummaryRow row = form.grdSummary().getRows().newRow();

            if(voSummary.getSummaryDetails().get(i).getSectionIsNotNull())
                row.setColSummary(voSummary.getSummaryDetails().get(i).getSection().getText());
            if(voSummary.getSummaryDetails().get(i).getProgressStatusIsNotNull())
                row.setColStatus(voSummary.getSummaryDetails().get(i).getProgressStatus().getText());
        }
    }

    form.getGlobalContext().Clinical.setEDischargeStart(new EDischargeStartVo());
    form.getGlobalContext().Clinical.getEDischargeStart().setAdditonalClinicalInfo(voSummary.getAdditonalClinicalInfo());
    form.getGlobalContext().Clinical.getEDischargeStart().setHasHadAnyProceduresPerformed(voSummary.getHasHadAnyProceduresPerformed());

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
    Boolean enableOpsProcs = false;
    Boolean enableAdditional = false;
    //take in 2 booleans which will decide what is editable here
    if(args != null)
    {
        if(args.length == 2)
        {
            if(args[0] != null)
                enableOpsProcs = (Boolean) args[0];
            if(args[1] != null)
                enableAdditional = (Boolean) args[1];
        }
    }

    form.cmbAdditionalClinicalInfo().setEnabled(enableAdditional);
    form.GroupPatProc().setEnabled(enableOpsProcs);

    if(form.getGlobalContext().Clinical.getEDischargeStartIsNotNull())
    {
        EDischargeStartVo voStart = form.getGlobalContext().Clinical.getEDischargeStart();

        form.cmbAdditionalClinicalInfo().setValue(voStart.getAdditonalClinicalInfo());

        YesNo val = voStart.getHasHadAnyProceduresPerformed();
        form.GroupPatProc().setValue( val != null && val.equals(YesNo.YES) ? GroupPatProcEnumeration.rdoYes :  (val != null && val.equals(YesNo.NO) ? GroupPatProcEnumeration.rdoNo :  GroupPatProcEnumeration.None) );
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if(form.getGlobalContext().Clinical.getEDischargeStart() == null)
        form.getGlobalContext().Clinical.setEDischargeStart(new EDischargeStartVo());

    form.getGlobalContext().Clinical.getEDischargeStart().setAdditonalClinicalInfo(form.cmbAdditionalClinicalInfo().getValue());
    form.getGlobalContext().Clinical.getEDischargeStart().setHasHadAnyProceduresPerformed(  form.GroupPatProc().getValue().equals(GenForm.GroupPatProcEnumeration.rdoYes) ? YesNo.YES : (form.GroupPatProc().getValue().equals(GenForm.GroupPatProcEnumeration.rdoNo) ? YesNo.NO : null));


    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(EDischargeSTHKSummaryVo voSummary)
{
    clearScreen();
    form.getGlobalContext().Clinical.setEDischargeStart(null);

    if(voSummary == null)
        return;

    form.dtimAdmissionDateTime().setValue(voSummary.getAdmissionDateTime());
    if(form.getGlobalContext().Core.getCurrentCareContextIsNotNull())
    {
        form.dteEdd().setValue(form.getGlobalContext().Core.getCurrentCareContext().getEstimatedDischargeDate());
        //WDEV-11479
        if(form.getGlobalContext().Core.getCurrentCareContext().getResponsibleHCPIsNotNull())
            form.txtResponsibleClinician().setValue(form.getGlobalContext().Core.getCurrentCareContext().getResponsibleHCP().toString());
    }

    if(voSummary.getTTAStatusIsNotNull())
        form.txtTTAStatus().setValue(voSummary.getTTAStatus().getText());

    if(voSummary.getSummaryDetailsIsNotNull())
    {
        for(int i=0;i<voSummary.getSummaryDetails().size();i++)
        {
            grdSummaryRow row = form.grdSummary().getRows().newRow();

            if(voSummary.getSummaryDetails().get(i).getSectionIsNotNull())
                row.setColSummary(voSummary.getSummaryDetails().get(i).getSection().getText());
            if(voSummary.getSummaryDetails().get(i).getProgressStatusIsNotNull())
                row.setColStatus(voSummary.getSummaryDetails().get(i).getProgressStatus().getText());
        }
    }

    form.getGlobalContext().Clinical.setEDischargeStart(new EDischargeStartVo());
    form.getGlobalContext().Clinical.getEDischargeStart().setAdditonalClinicalInfo(voSummary.getAdditonalClinicalInfo());
    form.getGlobalContext().Clinical.getEDischargeStart().setHasHadAnyProceduresPerformed(voSummary.getHasHadAnyProceduresPerformed());

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
    Boolean enableOpsProcs = false;
    Boolean enableAdditional = false;
    //take in 2 booleans which will decide what is editable here
    if(args != null)
    {
        if(args.length == 2)
        {
            if(args[0] != null)
                enableOpsProcs = (Boolean) args[0];
            if(args[1] != null)
                enableAdditional = (Boolean) args[1];
        }
    }

    form.cmbAdditionalClinicalInfo().setEnabled(enableAdditional);
    form.GroupPatProc().setEnabled(enableOpsProcs);

    if(form.getGlobalContext().Clinical.getEDischargeStartIsNotNull())
    {
        EDischargeStartVo voStart = form.getGlobalContext().Clinical.getEDischargeStart();

        form.cmbAdditionalClinicalInfo().setValue(voStart.getAdditonalClinicalInfo());

        YesNo val = voStart.getHasHadAnyProceduresPerformed();
        form.GroupPatProc().setValue( val != null && val.equals(YesNo.YES) ? GroupPatProcEnumeration.rdoYes :  (val != null && val.equals(YesNo.NO) ? GroupPatProcEnumeration.rdoNo :  GroupPatProcEnumeration.None) );
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if(form.getGlobalContext().Clinical.getEDischargeStart() == null)
        form.getGlobalContext().Clinical.setEDischargeStart(new EDischargeStartVo());

    form.getGlobalContext().Clinical.getEDischargeStart().setAdditonalClinicalInfo(form.cmbAdditionalClinicalInfo().getValue());
    form.getGlobalContext().Clinical.getEDischargeStart().setHasHadAnyProceduresPerformed(  form.GroupPatProc().getValue().equals(GenForm.GroupPatProcEnumeration.rdoYes) ? YesNo.YES : (form.GroupPatProc().getValue().equals(GenForm.GroupPatProcEnumeration.rdoNo) ? YesNo.NO : null));


    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(EDischargeSTHKSummaryVo voSummary)
{
    clearScreen();
    form.getGlobalContext().Clinical.setEDischargeStart(null);

    if(voSummary == null)
        return;

    form.dtimAdmissionDateTime().setValue(voSummary.getAdmissionDateTime());
    if(form.getGlobalContext().Core.getCurrentCareContextIsNotNull())
    {
        form.dteEdd().setValue(form.getGlobalContext().Core.getCurrentCareContext().getEstimatedDischargeDate());
        //WDEV-11479
        if(form.getGlobalContext().Core.getCurrentCareContext().getResponsibleHCPIsNotNull())
            form.txtResponsibleClinician().setValue(form.getGlobalContext().Core.getCurrentCareContext().getResponsibleHCP().toString());
    }

    if(voSummary.getTTAStatusIsNotNull())
        form.txtTTAStatus().setValue(voSummary.getTTAStatus().getText());

    if(voSummary.getSummaryDetailsIsNotNull())
    {
        for(int i=0;i<voSummary.getSummaryDetails().size();i++)
        {
            grdSummaryRow row = form.grdSummary().getRows().newRow();

            if(voSummary.getSummaryDetails().get(i).getSectionIsNotNull())
                row.setColSummary(voSummary.getSummaryDetails().get(i).getSection().getText());
            if(voSummary.getSummaryDetails().get(i).getProgressStatusIsNotNull())
                row.setColStatus(voSummary.getSummaryDetails().get(i).getProgressStatus().getText());
        }
    }

    form.getGlobalContext().Clinical.setEDischargeStart(new EDischargeStartVo());
    form.getGlobalContext().Clinical.getEDischargeStart().setAdditonalClinicalInfo(voSummary.getAdditonalClinicalInfo());
    form.getGlobalContext().Clinical.getEDischargeStart().setHasHadAnyProceduresPerformed(voSummary.getHasHadAnyProceduresPerformed());

}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
    Boolean enableOpsProcs = false;
    Boolean enableAdditional = false;
    //take in 2 booleans which will decide what is editable here
    if(args != null)
    {
        if(args.length == 2)
        {
            if(args[0] != null)
                enableOpsProcs = (Boolean) args[0];
            if(args[1] != null)
                enableAdditional = (Boolean) args[1];
        }
    }

    form.cmbAdditionalClinicalInfo().setEnabled(enableAdditional);
    form.GroupPatProc().setEnabled(enableOpsProcs);

    if(form.getGlobalContext().Clinical.getEDischargeStartIsNotNull())
    {
        EDischargeStartVo voStart = form.getGlobalContext().Clinical.getEDischargeStart();

        form.cmbAdditionalClinicalInfo().setValue(voStart.getAdditonalClinicalInfo());

        YesNo val = voStart.getHasHadAnyProceduresPerformed();
        form.GroupPatProc().setValue( val != null && val.equals(YesNo.YES) ? GroupPatProcEnumeration.rdoYes :  (val != null && val.equals(YesNo.NO) ? GroupPatProcEnumeration.rdoNo :  GroupPatProcEnumeration.None) );
    }
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if(form.getGlobalContext().Clinical.getEDischargeStart() == null)
        form.getGlobalContext().Clinical.setEDischargeStart(new EDischargeStartVo());

    form.getGlobalContext().Clinical.getEDischargeStart().setAdditonalClinicalInfo(form.cmbAdditionalClinicalInfo().getValue());
    form.getGlobalContext().Clinical.getEDischargeStart().setHasHadAnyProceduresPerformed(  form.GroupPatProc().getValue().equals(GenForm.GroupPatProcEnumeration.rdoYes) ? YesNo.YES : (form.GroupPatProc().getValue().equals(GenForm.GroupPatProcEnumeration.rdoNo) ? YesNo.NO : null));


    engine.close(DialogResult.OK);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(EDischargeSTHKSummaryVo voSummary)
{
    clearScreen();
    form.getGlobalContext().Clinical.setEDischargeStart(null);

    if(voSummary == null)
        return;

    form.dtimAdmissionDateTime().setValue(voSummary.getAdmissionDateTime());
    if(form.getGlobalContext().Core.getCurrentCareContextIsNotNull())
    {
        form.dteEdd().setValue(form.getGlobalContext().Core.getCurrentCareContext().getEstimatedDischargeDate());
        //WDEV-11479
        if(form.getGlobalContext().Core.getCurrentCareContext().getResponsibleHCPIsNotNull())
            form.txtResponsibleClinician().setValue(form.getGlobalContext().Core.getCurrentCareContext().getResponsibleHCP().toString());
    }

    if(voSummary.getTTAStatusIsNotNull())
        form.txtTTAStatus().setValue(voSummary.getTTAStatus().getText());

    if(voSummary.getSummaryDetailsIsNotNull())
    {
        for(int i=0;i<voSummary.getSummaryDetails().size();i++)
        {
            grdSummaryRow row = form.grdSummary().getRows().newRow();

            if(voSummary.getSummaryDetails().get(i).getSectionIsNotNull())
                row.setColSummary(voSummary.getSummaryDetails().get(i).getSection().getText());
            if(voSummary.getSummaryDetails().get(i).getProgressStatusIsNotNull())
                row.setColStatus(voSummary.getSummaryDetails().get(i).getProgressStatus().getText());
        }
    }

    form.getGlobalContext().Clinical.setEDischargeStart(new EDischargeStartVo());
    form.getGlobalContext().Clinical.getEDischargeStart().setAdditonalClinicalInfo(voSummary.getAdditonalClinicalInfo());
    form.getGlobalContext().Clinical.getEDischargeStart().setHasHadAnyProceduresPerformed(voSummary.getHasHadAnyProceduresPerformed());

}