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

项目:AvoinApotti    文件:Logic.java   
private void populateAllergyListControl(PatientAllergyEDischargeVoCollection voCollPatientAllergy)
{
    clearAllergyDetailsPanel();
    clearAllergyGrid();

    if (voCollPatientAllergy != null)
    {   
        PatientAllergyEDischargeVo voPatientAllergy = null;
        grdAllergiesRow row = null;

        for (int i=0; i<voCollPatientAllergy.size(); i++)
        {
            voPatientAllergy = voCollPatientAllergy.get(i);
            row = form.grdAllergies().getRows().newRow();
            populateAllergyRow(voPatientAllergy, row);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateAllergyDetailsPanel(PatientAllergyEDischargeVo allergy)
{
    clearAllergyDetailsPanel();

    form.ctnAllergy().ccAllergyTerm().setValue(allergy);
    form.ctnAllergy().cmbAllergyType().setValue(allergy.getAllergenType());         
    populateAllergyReactionCmb();

    //If a reaction that has been saved is now marked as inactive in the Admin section it will still display 
    if (allergy.getAllergenReactionsIsNotNull())
    {   
        if (allergy.getAllergenReactions().size() > 0)
        {
            form.ctnAllergy().cmbAllergyReaction().newRow(allergy.getAllergenReactions().get(0).getReaction(), allergy.getAllergenReactions().get(0).getReaction().getText());
            form.ctnAllergy().cmbAllergyReaction().setValue(allergy.getAllergenReactions().get(0).getReaction());
        }
    }

    if(allergy.getAuthoringInformationIsNotNull())
        form.ctnAllergy().ccAllergyAuthor().setValue(allergy.getAuthoringInformation());

    form.ctnAllergy().txtAllergyEffect().setValue(allergy.getComments());
    form.ctnAllergy().cmbAllergySource().setValue(allergy.getSourceofInformation());
    form.ctnAllergy().pdtAllergyDateIdentified().setValue(allergy.getWhenIdentified());
}
项目:AvoinApotti    文件:Logic.java   
private PatientAllergyEDischargeVo includeValueChangedForCareContext(PatientAllergyEDischargeVo voAllergy, boolean bInclude)
{
    boolean bFound = false;
    for (int i = 0 ; voAllergy.getIncludeAllergyInDischargeReportsIsNotNull() && i < voAllergy.getIncludeAllergyInDischargeReports().size() ; i++)
    {
        IncludeAllergyInDischargeReportsVo voInclude = voAllergy.getIncludeAllergyInDischargeReports().get(i);
        if (voInclude.getCareContextIsNotNull()
            && voInclude.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()))
        {
            bFound = true;
            voInclude.setIncludeInReport(bInclude);
            voAllergy.getIncludeAllergyInDischargeReports().set(i, voInclude);
        }

    }
    if ( !bFound )
        setAllergyIncludeInfo(voAllergy, bInclude);

    return voAllergy;
}
项目:openMAXIMS    文件:Logic.java   
private void populateAllergyListControl(PatientAllergyEDischargeVoCollection voCollPatientAllergy)
{
    clearAllergyDetailsPanel();
    clearAllergyGrid();

    if (voCollPatientAllergy != null)
    {   
        PatientAllergyEDischargeVo voPatientAllergy = null;
        grdAllergiesRow row = null;

        for (int i=0; i<voCollPatientAllergy.size(); i++)
        {
            voPatientAllergy = voCollPatientAllergy.get(i);
            row = form.grdAllergies().getRows().newRow();
            populateAllergyRow(voPatientAllergy, row);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateAllergyDetailsPanel(PatientAllergyEDischargeVo allergy)
{
    clearAllergyDetailsPanel();

    form.ctnAllergy().ccAllergyTerm().setValue(allergy);
    form.ctnAllergy().cmbAllergyType().setValue(allergy.getAllergenType());         
    populateAllergyReactionCmb();

    //If a reaction that has been saved is now marked as inactive in the Admin section it will still display 
    if (allergy.getAllergenReactionsIsNotNull())
    {   
        if (allergy.getAllergenReactions().size() > 0)
        {
            form.ctnAllergy().cmbAllergyReaction().newRow(allergy.getAllergenReactions().get(0).getReaction(), allergy.getAllergenReactions().get(0).getReaction().getText());
            form.ctnAllergy().cmbAllergyReaction().setValue(allergy.getAllergenReactions().get(0).getReaction());
        }
    }

    if(allergy.getAuthoringInformationIsNotNull())
        form.ctnAllergy().ccAllergyAuthor().setValue(allergy.getAuthoringInformation());

    form.ctnAllergy().txtAllergyEffect().setValue(allergy.getComments());
    form.ctnAllergy().cmbAllergySource().setValue(allergy.getSourceofInformation());
    form.ctnAllergy().pdtAllergyDateIdentified().setValue(allergy.getWhenIdentified());
}
项目:openMAXIMS    文件:Logic.java   
private PatientAllergyEDischargeVo includeValueChangedForCareContext(PatientAllergyEDischargeVo voAllergy, boolean bInclude)
{
    boolean bFound = false;
    for (int i = 0 ; voAllergy.getIncludeAllergyInDischargeReportsIsNotNull() && i < voAllergy.getIncludeAllergyInDischargeReports().size() ; i++)
    {
        IncludeAllergyInDischargeReportsVo voInclude = voAllergy.getIncludeAllergyInDischargeReports().get(i);
        if (voInclude.getCareContextIsNotNull()
            && voInclude.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()))
        {
            bFound = true;
            voInclude.setIncludeInReport(bInclude);
            voAllergy.getIncludeAllergyInDischargeReports().set(i, voInclude);
        }

    }
    if ( !bFound )
        setAllergyIncludeInfo(voAllergy, bInclude);

    return voAllergy;
}
项目:openMAXIMS    文件:Logic.java   
private void populateAllergyListControl(PatientAllergyEDischargeVoCollection voCollPatientAllergy)
{
    clearAllergyDetailsPanel();
    clearAllergyGrid();

    if (voCollPatientAllergy != null)
    {   
        PatientAllergyEDischargeVo voPatientAllergy = null;
        grdAllergiesRow row = null;

        for (int i=0; i<voCollPatientAllergy.size(); i++)
        {
            voPatientAllergy = voCollPatientAllergy.get(i);
            row = form.grdAllergies().getRows().newRow();
            populateAllergyRow(voPatientAllergy, row);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateAllergyDetailsPanel(PatientAllergyEDischargeVo allergy)
{
    clearAllergyDetailsPanel();

    form.ctnAllergy().ccAllergyTerm().setValue(allergy);
    form.ctnAllergy().cmbAllergyType().setValue(allergy.getAllergenType());         
    populateAllergyReactionCmb();

    //If a reaction that has been saved is now marked as inactive in the Admin section it will still display 
    if (allergy.getAllergenReactionsIsNotNull())
    {   
        if (allergy.getAllergenReactions().size() > 0)
        {
            form.ctnAllergy().cmbAllergyReaction().newRow(allergy.getAllergenReactions().get(0).getReaction(), allergy.getAllergenReactions().get(0).getReaction().getText());
            form.ctnAllergy().cmbAllergyReaction().setValue(allergy.getAllergenReactions().get(0).getReaction());
        }
    }

    if(allergy.getAuthoringInformationIsNotNull())
        form.ctnAllergy().ccAllergyAuthor().setValue(allergy.getAuthoringInformation());

    form.ctnAllergy().txtAllergyEffect().setValue(allergy.getComments());
    form.ctnAllergy().cmbAllergySource().setValue(allergy.getSourceofInformation());
    form.ctnAllergy().pdtAllergyDateIdentified().setValue(allergy.getWhenIdentified());
}
项目:openMAXIMS    文件:Logic.java   
private PatientAllergyEDischargeVo includeValueChangedForCareContext(PatientAllergyEDischargeVo voAllergy, boolean bInclude)
{
    boolean bFound = false;
    for (int i = 0 ; voAllergy.getIncludeAllergyInDischargeReportsIsNotNull() && i < voAllergy.getIncludeAllergyInDischargeReports().size() ; i++)
    {
        IncludeAllergyInDischargeReportsVo voInclude = voAllergy.getIncludeAllergyInDischargeReports().get(i);
        if (voInclude.getCareContextIsNotNull()
            && voInclude.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()))
        {
            bFound = true;
            voInclude.setIncludeInReport(bInclude);
            voAllergy.getIncludeAllergyInDischargeReports().set(i, voInclude);
        }

    }
    if ( !bFound )
        setAllergyIncludeInfo(voAllergy, bInclude);

    return voAllergy;
}
项目:openmaxims-linux    文件:Logic.java   
private void populateAllergyListControl(PatientAllergyEDischargeVoCollection voCollPatientAllergy)
{
    clearAllergyDetailsPanel();
    clearAllergyGrid();

    if (voCollPatientAllergy != null)
    {   
        PatientAllergyEDischargeVo voPatientAllergy = null;
        grdAllergiesRow row = null;

        for (int i=0; i<voCollPatientAllergy.size(); i++)
        {
            voPatientAllergy = voCollPatientAllergy.get(i);
            row = form.grdAllergies().getRows().newRow();
            populateAllergyRow(voPatientAllergy, row);
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateAllergyDetailsPanel(PatientAllergyEDischargeVo allergy)
{
    clearAllergyDetailsPanel();

    form.ctnAllergy().ccAllergyTerm().setValue(allergy);
    form.ctnAllergy().cmbAllergyType().setValue(allergy.getAllergenType());         
    populateAllergyReactionCmb();

    //If a reaction that has been saved is now marked as inactive in the Admin section it will still display 
    if (allergy.getAllergenReactionsIsNotNull())
    {   
        if (allergy.getAllergenReactions().size() > 0)
        {
            form.ctnAllergy().cmbAllergyReaction().newRow(allergy.getAllergenReactions().get(0).getReaction(), allergy.getAllergenReactions().get(0).getReaction().getText());
            form.ctnAllergy().cmbAllergyReaction().setValue(allergy.getAllergenReactions().get(0).getReaction());
        }
    }

    if(allergy.getAuthoringInformationIsNotNull())
        form.ctnAllergy().ccAllergyAuthor().setValue(allergy.getAuthoringInformation());

    form.ctnAllergy().txtAllergyEffect().setValue(allergy.getComments());
    form.ctnAllergy().cmbAllergySource().setValue(allergy.getSourceofInformation());
    form.ctnAllergy().pdtAllergyDateIdentified().setValue(allergy.getWhenIdentified());
}
项目:openmaxims-linux    文件:Logic.java   
private PatientAllergyEDischargeVo includeValueChangedForCareContext(PatientAllergyEDischargeVo voAllergy, boolean bInclude)
{
    boolean bFound = false;
    for (int i = 0 ; voAllergy.getIncludeAllergyInDischargeReportsIsNotNull() && i < voAllergy.getIncludeAllergyInDischargeReports().size() ; i++)
    {
        IncludeAllergyInDischargeReportsVo voInclude = voAllergy.getIncludeAllergyInDischargeReports().get(i);
        if (voInclude.getCareContextIsNotNull()
            && voInclude.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()))
        {
            bFound = true;
            voInclude.setIncludeInReport(bInclude);
            voAllergy.getIncludeAllergyInDischargeReports().set(i, voInclude);
        }

    }
    if ( !bFound )
        setAllergyIncludeInfo(voAllergy, bInclude);

    return voAllergy;
}
项目:AvoinApotti    文件:Logic.java   
private String createAllergyRowTooltip(PatientAllergyEDischargeVo voPatientAllergy)
{
    StringBuffer sb = new StringBuffer();
    sb.append("<b>Comment : </b>");
    sb.append(voPatientAllergy.getCommentsIsNotNull() ? voPatientAllergy.getComments().toString() : "");
    sb.append("<br>");
    sb.append("<b>Date Identified : </b>");
    sb.append(voPatientAllergy.getWhenIdentifiedIsNotNull() ? voPatientAllergy.getWhenIdentified().toString() : "");
    sb.append("<br>");
    sb.append("<b>Authoring Info : </b>");
    sb.append(voPatientAllergy.getAuthoringInformationIsNotNull() ? voPatientAllergy.getAuthoringInformation().toString(" - ") : "");
    sb.append("<br>");

    return sb.toString();
}
项目:AvoinApotti    文件:Logic.java   
private String createInactivateAllergyTooltip(PatientAllergyEDischargeVo voPatientAllergy)
    {
        StringBuffer sb = new StringBuffer();
//      sb.append("<b>Inactive Comment : </b>");
//      sb.append(voPatientAllergy.getInactivationCommentsIsNotNull() ? voPatientAllergy.getInactivationComments().toString() : "");
//      sb.append("<br>");
        sb.append("<b>Inactivated Info : </b>");
        sb.append(voPatientAllergy.getInactivationAuthoringInfoIsNotNull() ? voPatientAllergy.getInactivationAuthoringInfo().toString(" - ") : "");
        sb.append("<br>");

        return sb.toString();
    }
项目:AvoinApotti    文件:Logic.java   
private void setAllergyIncludeInfo(PatientAllergyEDischargeVo voAllergy, boolean bInclude)
{
    IncludeAllergyInDischargeReportsVo voNewInclude = new IncludeAllergyInDischargeReportsVo();
    voNewInclude.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    voNewInclude.setAllergy(voAllergy);
    voNewInclude.setIncludeInReport(bInclude);

    if (voAllergy.getIncludeAllergyInDischargeReports() == null)
        voAllergy.setIncludeAllergyInDischargeReports(new IncludeAllergyInDischargeReportsVoCollection());

    voAllergy.getIncludeAllergyInDischargeReports().add(voNewInclude);
}
项目:openMAXIMS    文件:Logic.java   
private String createAllergyRowTooltip(PatientAllergyEDischargeVo voPatientAllergy)
{
    StringBuffer sb = new StringBuffer();
    sb.append("<b>Comment : </b>");
    sb.append(voPatientAllergy.getCommentsIsNotNull() ? voPatientAllergy.getComments().toString() : "");
    sb.append("<br>");
    sb.append("<b>Date Identified : </b>");
    sb.append(voPatientAllergy.getWhenIdentifiedIsNotNull() ? voPatientAllergy.getWhenIdentified().toString() : "");
    sb.append("<br>");
    sb.append("<b>Authoring Info : </b>");
    sb.append(voPatientAllergy.getAuthoringInformationIsNotNull() ? voPatientAllergy.getAuthoringInformation().toString(" - ") : "");
    sb.append("<br>");

    return sb.toString();
}
项目:openMAXIMS    文件:Logic.java   
private String createInactivateAllergyTooltip(PatientAllergyEDischargeVo voPatientAllergy)
    {
        StringBuffer sb = new StringBuffer();
//      sb.append("<b>Inactive Comment : </b>");
//      sb.append(voPatientAllergy.getInactivationCommentsIsNotNull() ? voPatientAllergy.getInactivationComments().toString() : "");
//      sb.append("<br>");
        sb.append("<b>Inactivated Info : </b>");
        sb.append(voPatientAllergy.getInactivationAuthoringInfoIsNotNull() ? voPatientAllergy.getInactivationAuthoringInfo().toString(" - ") : "");
        sb.append("<br>");

        return sb.toString();
    }
项目:openMAXIMS    文件:Logic.java   
private void setAllergyIncludeInfo(PatientAllergyEDischargeVo voAllergy, boolean bInclude)
{
    IncludeAllergyInDischargeReportsVo voNewInclude = new IncludeAllergyInDischargeReportsVo();
    voNewInclude.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    voNewInclude.setAllergy(voAllergy);
    voNewInclude.setIncludeInReport(bInclude);

    if (voAllergy.getIncludeAllergyInDischargeReports() == null)
        voAllergy.setIncludeAllergyInDischargeReports(new IncludeAllergyInDischargeReportsVoCollection());

    voAllergy.getIncludeAllergyInDischargeReports().add(voNewInclude);
}
项目:openMAXIMS    文件:Logic.java   
private String createAllergyRowTooltip(PatientAllergyEDischargeVo voPatientAllergy)
{
    StringBuffer sb = new StringBuffer();
    sb.append("<b>Comment : </b>");
    sb.append(voPatientAllergy.getCommentsIsNotNull() ? voPatientAllergy.getComments().toString() : "");
    sb.append("<br>");
    sb.append("<b>Date Identified : </b>");
    sb.append(voPatientAllergy.getWhenIdentifiedIsNotNull() ? voPatientAllergy.getWhenIdentified().toString() : "");
    sb.append("<br>");
    sb.append("<b>Authoring Info : </b>");
    sb.append(voPatientAllergy.getAuthoringInformationIsNotNull() ? voPatientAllergy.getAuthoringInformation().toString(" - ") : "");
    sb.append("<br>");

    return sb.toString();
}
项目:openMAXIMS    文件:Logic.java   
private String createInactivateAllergyTooltip(PatientAllergyEDischargeVo voPatientAllergy)
    {
        StringBuffer sb = new StringBuffer();
//      sb.append("<b>Inactive Comment : </b>");
//      sb.append(voPatientAllergy.getInactivationCommentsIsNotNull() ? voPatientAllergy.getInactivationComments().toString() : "");
//      sb.append("<br>");
        sb.append("<b>Inactivated Info : </b>");
        sb.append(voPatientAllergy.getInactivationAuthoringInfoIsNotNull() ? voPatientAllergy.getInactivationAuthoringInfo().toString(" - ") : "");
        sb.append("<br>");

        return sb.toString();
    }
项目:openMAXIMS    文件:Logic.java   
private void setAllergyIncludeInfo(PatientAllergyEDischargeVo voAllergy, boolean bInclude)
{
    IncludeAllergyInDischargeReportsVo voNewInclude = new IncludeAllergyInDischargeReportsVo();
    voNewInclude.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    voNewInclude.setAllergy(voAllergy);
    voNewInclude.setIncludeInReport(bInclude);

    if (voAllergy.getIncludeAllergyInDischargeReports() == null)
        voAllergy.setIncludeAllergyInDischargeReports(new IncludeAllergyInDischargeReportsVoCollection());

    voAllergy.getIncludeAllergyInDischargeReports().add(voNewInclude);
}
项目:openmaxims-linux    文件:Logic.java   
private String createAllergyRowTooltip(PatientAllergyEDischargeVo voPatientAllergy)
{
    StringBuffer sb = new StringBuffer();
    sb.append("<b>Comment : </b>");
    sb.append(voPatientAllergy.getCommentsIsNotNull() ? voPatientAllergy.getComments().toString() : "");
    sb.append("<br>");
    sb.append("<b>Date Identified : </b>");
    sb.append(voPatientAllergy.getWhenIdentifiedIsNotNull() ? voPatientAllergy.getWhenIdentified().toString() : "");
    sb.append("<br>");
    sb.append("<b>Authoring Info : </b>");
    sb.append(voPatientAllergy.getAuthoringInformationIsNotNull() ? voPatientAllergy.getAuthoringInformation().toString(" - ") : "");
    sb.append("<br>");

    return sb.toString();
}
项目:openmaxims-linux    文件:Logic.java   
private String createInactivateAllergyTooltip(PatientAllergyEDischargeVo voPatientAllergy)
    {
        StringBuffer sb = new StringBuffer();
//      sb.append("<b>Inactive Comment : </b>");
//      sb.append(voPatientAllergy.getInactivationCommentsIsNotNull() ? voPatientAllergy.getInactivationComments().toString() : "");
//      sb.append("<br>");
        sb.append("<b>Inactivated Info : </b>");
        sb.append(voPatientAllergy.getInactivationAuthoringInfoIsNotNull() ? voPatientAllergy.getInactivationAuthoringInfo().toString(" - ") : "");
        sb.append("<br>");

        return sb.toString();
    }
项目:openmaxims-linux    文件:Logic.java   
private void setAllergyIncludeInfo(PatientAllergyEDischargeVo voAllergy, boolean bInclude)
{
    IncludeAllergyInDischargeReportsVo voNewInclude = new IncludeAllergyInDischargeReportsVo();
    voNewInclude.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    voNewInclude.setAllergy(voAllergy);
    voNewInclude.setIncludeInReport(bInclude);

    if (voAllergy.getIncludeAllergyInDischargeReports() == null)
        voAllergy.setIncludeAllergyInDischargeReports(new IncludeAllergyInDischargeReportsVoCollection());

    voAllergy.getIncludeAllergyInDischargeReports().add(voNewInclude);
}
项目:AvoinApotti    文件:Logic.java   
private void populateAllergyRow(PatientAllergyEDischargeVo voPatientAllergy, grdAllergiesRow row) 
{
    String tooltipStr = createAllergyRowTooltip(voPatientAllergy);

    row.setColAllergenDes(voPatientAllergy.getAllergenDescription());
    row.setTooltipForColAllergenDes(tooltipStr);

    if (voPatientAllergy.getAllergenReactionsIsNotNull() && voPatientAllergy.getAllergenReactions().size() > 0)
        row.setColReaction(voPatientAllergy.getAllergenReactions().get(0).getReaction().toString());
    row.setTooltipForColReaction(tooltipStr);

    if (voPatientAllergy.getSourceofInformationIsNotNull())
        row.setColSource(voPatientAllergy.getSourceofInformation().getText());

    row.setTooltipForColSource(tooltipStr);

    if (voPatientAllergy.getIsCurrentlyActiveAllergyIsNotNull())
    {   
        if (voPatientAllergy.getIsCurrentlyActiveAllergy().equals(Boolean.TRUE))
        {
            row.setColIsActive(form.getImages().Core.AnswerBox_Yes);
            row.setTooltipForColIsActive(tooltipStr);
        }
        else
        {
            row.setColIsActive(form.getImages().Core.AnswerBox_No);
            row.setTooltipForColIsActive(createInactivateAllergyTooltip(voPatientAllergy));
            row.setBackColor(Color.LightGray);
        }
    }

    if (voPatientAllergy.getSysInfo().getCreationDateTime() != null)
        row.setColDate(voPatientAllergy.getSysInfo().getCreationDateTime().getDate().toString());   

    row.setColInclude(findIfIncludeSetForThisCareContext(voPatientAllergy.getIncludeAllergyInDischargeReports()) ? Boolean.TRUE : Boolean.FALSE);

    row.setTooltipForColDate(tooltipStr);

    if (voPatientAllergy.getSysInfoIsNotNull() && voPatientAllergy.getSysInfo().getLastupdateUser() != null)
    {
        row.setColAudit(form.getImages().Core.EditDisabled);
        row.setTooltipForColAudit("This record had been updated.");
    }
    row.setValue(voPatientAllergy);
}
项目:AvoinApotti    文件:Logic.java   
@Override
    protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
    {
        if (form.getLocalContext().getCurrentAlertIncluded().booleanValue()
            || form.getLocalContext().getCurrentAllergyIncluded().booleanValue())
        {
            if (saveIncludeInfo())
            {
                form.getLocalContext().setCurrentAlertIncluded(false);
                form.getLocalContext().setCurrentAllergyIncluded(false);

//              form.getLocalContext().setSelectedPatientDiagnosisVo(null);

                openAlert();
                openAllergy();
                updateContextMenus(); 
                //-------------------------------------------------------------
                form.getGlobalContext().Clinical.seteDischargeDisableTabs(false);
                form.fireCustomControlValueChanged();
                //------------------------------------------------------------
            }
            return;
        }

        if (form.getLocalContext().getbEditingAllergyIsNotNull()
            && form.getLocalContext().getbEditingAllergy() )
        {
            if (form.ctnAllergy().pdtAllergyDateIdentified().getValue() != null && form.ctnAllergy().pdtAllergyDateIdentified().getValue().isGreaterThan(new Date()))
            {
                engine.showMessage("'Date Identified' can not be in the future");
                return;
            }

            PatientAllergyEDischargeVo voPatientAllergy = populateAllergyInstanceData(form.getLocalContext().getVoAllergy());

            if (saveAllergy(voPatientAllergy))
            {
                openAllergy();
                openAlert();            //wdev-11558
            }
        }

        if (form.getLocalContext().getbEditingAlertIsNotNull()
            && form.getLocalContext().getbEditingAlert() )
        {
            PatientAlertEDischargeVo voPatientAlert = populateAlertDataFromScreen(form.getLocalContext().getAlertRecord());

            if (voPatientAlert.getAuthoringInformation() == null)
            {
                engine.showMessage("Authoring info is a mandatory field.");
                return;
            }

            if (saveAlert(voPatientAlert))
            {
                openAlert();
                openAllergy();      //wdev-11558
            }
        }

        updateContextMenus();

        form.getGlobalContext().Clinical.seteDischargeDisableTabs(false);
        form.fireCustomControlValueChanged();
    }
项目:AvoinApotti    文件:EDischargeAllergiesEtcComponentImpl.java   
/**
* Gets a single PatientAllerge based on a PatientAllergy ID value. 
*/
public PatientAllergyEDischargeVo getpatientAllergy(Integer patientAllergyID)
{
    DomainFactory factory = getDomainFactory();
    return PatientAllergyEDischargeVoAssembler.create((PatientAllergy)factory.getDomainObject((PatientAllergy.class), patientAllergyID.intValue()));
}
项目:openMAXIMS    文件:Logic.java   
private void populateAllergyRow(PatientAllergyEDischargeVo voPatientAllergy, grdAllergiesRow row) 
{
    String tooltipStr = createAllergyRowTooltip(voPatientAllergy);

    row.setColAllergenDes(voPatientAllergy.getAllergenDescription());
    row.setTooltipForColAllergenDes(tooltipStr);

    if (voPatientAllergy.getAllergenReactionsIsNotNull() && voPatientAllergy.getAllergenReactions().size() > 0)
        row.setColReaction(voPatientAllergy.getAllergenReactions().get(0).getReaction().toString());
    row.setTooltipForColReaction(tooltipStr);

    if (voPatientAllergy.getSourceofInformationIsNotNull())
        row.setColSource(voPatientAllergy.getSourceofInformation().getText());

    row.setTooltipForColSource(tooltipStr);

    if (voPatientAllergy.getIsCurrentlyActiveAllergyIsNotNull())
    {   
        if (voPatientAllergy.getIsCurrentlyActiveAllergy().equals(Boolean.TRUE))
        {
            row.setColIsActive(form.getImages().Core.AnswerBox_Yes);
            row.setTooltipForColIsActive(tooltipStr);
        }
        else
        {
            row.setColIsActive(form.getImages().Core.AnswerBox_No);
            row.setTooltipForColIsActive(createInactivateAllergyTooltip(voPatientAllergy));
            row.setBackColor(Color.LightGray);
        }
    }

    if (voPatientAllergy.getSysInfo().getCreationDateTime() != null)
        row.setColDate(voPatientAllergy.getSysInfo().getCreationDateTime().getDate().toString());   

    row.setColInclude(findIfIncludeSetForThisCareContext(voPatientAllergy.getIncludeAllergyInDischargeReports()) ? Boolean.TRUE : Boolean.FALSE);

    row.setTooltipForColDate(tooltipStr);

    if (voPatientAllergy.getSysInfoIsNotNull() && voPatientAllergy.getSysInfo().getLastupdateUser() != null)
    {
        row.setColAudit(form.getImages().Core.EditDisabled);
        row.setTooltipForColAudit("This record had been updated.");
    }
    row.setValue(voPatientAllergy);
}
项目:openMAXIMS    文件:Logic.java   
@Override
    protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
    {
        if (form.getLocalContext().getCurrentAlertIncluded().booleanValue()
            || form.getLocalContext().getCurrentAllergyIncluded().booleanValue())
        {
            if (saveIncludeInfo())
            {
                form.getLocalContext().setCurrentAlertIncluded(false);
                form.getLocalContext().setCurrentAllergyIncluded(false);

//              form.getLocalContext().setSelectedPatientDiagnosisVo(null);

                openAlert();
                openAllergy();
                updateContextMenus(); 
                //-------------------------------------------------------------
                form.getGlobalContext().Clinical.seteDischargeDisableTabs(false);
                form.fireCustomControlValueChanged();
                //------------------------------------------------------------
            }
            return;
        }

        if (form.getLocalContext().getbEditingAllergyIsNotNull()
            && form.getLocalContext().getbEditingAllergy() )
        {
            if (form.ctnAllergy().pdtAllergyDateIdentified().getValue() != null && form.ctnAllergy().pdtAllergyDateIdentified().getValue().isGreaterThan(new Date()))
            {
                engine.showMessage("'Date Identified' cannot be set to a date in the future."); //WDEV-18762
                return;
            }

            PatientAllergyEDischargeVo voPatientAllergy = populateAllergyInstanceData(form.getLocalContext().getVoAllergy());

            if (saveAllergy(voPatientAllergy))
            {
                openAllergy();
                openAlert();            //wdev-11558
            }
        }

        if (form.getLocalContext().getbEditingAlertIsNotNull()
            && form.getLocalContext().getbEditingAlert() )
        {
            PatientAlertEDischargeVo voPatientAlert = populateAlertDataFromScreen(form.getLocalContext().getAlertRecord());

            if (voPatientAlert.getAuthoringInformation() == null)
            {
                engine.showMessage("Authoring info is a mandatory field.");
                return;
            }

            if (saveAlert(voPatientAlert))
            {
                openAlert();
                openAllergy();      //wdev-11558
            }
        }

        updateContextMenus();

        form.getGlobalContext().Clinical.seteDischargeDisableTabs(false);
        form.fireCustomControlValueChanged();
    }
项目:openMAXIMS    文件:EDischargeAllergiesEtcComponentImpl.java   
/**
* Gets a single PatientAllerge based on a PatientAllergy ID value. 
*/
public PatientAllergyEDischargeVo getpatientAllergy(Integer patientAllergyID)
{
    DomainFactory factory = getDomainFactory();
    return PatientAllergyEDischargeVoAssembler.create((PatientAllergy)factory.getDomainObject((PatientAllergy.class), patientAllergyID.intValue()));
}
项目:openMAXIMS    文件:Logic.java   
private void populateAllergyRow(PatientAllergyEDischargeVo voPatientAllergy, grdAllergiesRow row) 
{
    String tooltipStr = createAllergyRowTooltip(voPatientAllergy);

    row.setColAllergenDes(voPatientAllergy.getAllergenDescription());
    row.setTooltipForColAllergenDes(tooltipStr);

    if (voPatientAllergy.getAllergenReactionsIsNotNull() && voPatientAllergy.getAllergenReactions().size() > 0)
        row.setColReaction(voPatientAllergy.getAllergenReactions().get(0).getReaction().toString());
    row.setTooltipForColReaction(tooltipStr);

    if (voPatientAllergy.getSourceofInformationIsNotNull())
        row.setColSource(voPatientAllergy.getSourceofInformation().getText());

    row.setTooltipForColSource(tooltipStr);

    if (voPatientAllergy.getIsCurrentlyActiveAllergyIsNotNull())
    {   
        if (voPatientAllergy.getIsCurrentlyActiveAllergy().equals(Boolean.TRUE))
        {
            row.setColIsActive(form.getImages().Core.AnswerBox_Yes);
            row.setTooltipForColIsActive(tooltipStr);
        }
        else
        {
            row.setColIsActive(form.getImages().Core.AnswerBox_No);
            row.setTooltipForColIsActive(createInactivateAllergyTooltip(voPatientAllergy));
            row.setBackColor(Color.LightGray);
        }
    }

    if (voPatientAllergy.getSysInfo().getCreationDateTime() != null)
        row.setColDate(voPatientAllergy.getSysInfo().getCreationDateTime().getDate().toString());   

    row.setColInclude(findIfIncludeSetForThisCareContext(voPatientAllergy.getIncludeAllergyInDischargeReports()) ? Boolean.TRUE : Boolean.FALSE);

    row.setTooltipForColDate(tooltipStr);

    if (voPatientAllergy.getSysInfoIsNotNull() && voPatientAllergy.getSysInfo().getLastupdateUser() != null)
    {
        row.setColAudit(form.getImages().Core.EditDisabled);
        row.setTooltipForColAudit("This record had been updated.");
    }
    row.setValue(voPatientAllergy);
}
项目:openMAXIMS    文件:Logic.java   
@Override
    protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
    {
        if (form.getLocalContext().getCurrentAlertIncluded().booleanValue()
            || form.getLocalContext().getCurrentAllergyIncluded().booleanValue())
        {
            if (saveIncludeInfo())
            {
                form.getLocalContext().setCurrentAlertIncluded(false);
                form.getLocalContext().setCurrentAllergyIncluded(false);

//              form.getLocalContext().setSelectedPatientDiagnosisVo(null);

                openAlert();
                openAllergy();
                updateContextMenus(); 
                //-------------------------------------------------------------
                form.getGlobalContext().Clinical.seteDischargeDisableTabs(false);
                form.fireCustomControlValueChanged();
                //------------------------------------------------------------
            }
            return;
        }

        if (form.getLocalContext().getbEditingAllergyIsNotNull()
            && form.getLocalContext().getbEditingAllergy() )
        {
            if (form.ctnAllergy().pdtAllergyDateIdentified().getValue() != null && form.ctnAllergy().pdtAllergyDateIdentified().getValue().isGreaterThan(new Date()))
            {
                engine.showMessage("'Date Identified' can not be in the future");
                return;
            }

            PatientAllergyEDischargeVo voPatientAllergy = populateAllergyInstanceData(form.getLocalContext().getVoAllergy());

            if (saveAllergy(voPatientAllergy))
            {
                openAllergy();
                openAlert();            //wdev-11558
            }
        }

        if (form.getLocalContext().getbEditingAlertIsNotNull()
            && form.getLocalContext().getbEditingAlert() )
        {
            PatientAlertEDischargeVo voPatientAlert = populateAlertDataFromScreen(form.getLocalContext().getAlertRecord());

            if (voPatientAlert.getAuthoringInformation() == null)
            {
                engine.showMessage("Authoring info is a mandatory field.");
                return;
            }

            if (saveAlert(voPatientAlert))
            {
                openAlert();
                openAllergy();      //wdev-11558
            }
        }

        updateContextMenus();

        form.getGlobalContext().Clinical.seteDischargeDisableTabs(false);
        form.fireCustomControlValueChanged();
    }
项目:openMAXIMS    文件:EDischargeAllergiesEtcComponentImpl.java   
/**
* Gets a single PatientAllerge based on a PatientAllergy ID value. 
*/
public PatientAllergyEDischargeVo getpatientAllergy(Integer patientAllergyID)
{
    DomainFactory factory = getDomainFactory();
    return PatientAllergyEDischargeVoAssembler.create((PatientAllergy)factory.getDomainObject((PatientAllergy.class), patientAllergyID.intValue()));
}
项目:openmaxims-linux    文件:Logic.java   
private void populateAllergyRow(PatientAllergyEDischargeVo voPatientAllergy, grdAllergiesRow row) 
{
    String tooltipStr = createAllergyRowTooltip(voPatientAllergy);

    row.setColAllergenDes(voPatientAllergy.getAllergenDescription());
    row.setTooltipForColAllergenDes(tooltipStr);

    if (voPatientAllergy.getAllergenReactionsIsNotNull() && voPatientAllergy.getAllergenReactions().size() > 0)
        row.setColReaction(voPatientAllergy.getAllergenReactions().get(0).getReaction().toString());
    row.setTooltipForColReaction(tooltipStr);

    if (voPatientAllergy.getSourceofInformationIsNotNull())
        row.setColSource(voPatientAllergy.getSourceofInformation().getText());

    row.setTooltipForColSource(tooltipStr);

    if (voPatientAllergy.getIsCurrentlyActiveAllergyIsNotNull())
    {   
        if (voPatientAllergy.getIsCurrentlyActiveAllergy().equals(Boolean.TRUE))
        {
            row.setColIsActive(form.getImages().Core.AnswerBox_Yes);
            row.setTooltipForColIsActive(tooltipStr);
        }
        else
        {
            row.setColIsActive(form.getImages().Core.AnswerBox_No);
            row.setTooltipForColIsActive(createInactivateAllergyTooltip(voPatientAllergy));
            row.setBackColor(Color.LightGray);
        }
    }

    if (voPatientAllergy.getSysInfo().getCreationDateTime() != null)
        row.setColDate(voPatientAllergy.getSysInfo().getCreationDateTime().getDate().toString());   

    row.setColInclude(findIfIncludeSetForThisCareContext(voPatientAllergy.getIncludeAllergyInDischargeReports()) ? Boolean.TRUE : Boolean.FALSE);

    row.setTooltipForColDate(tooltipStr);

    if (voPatientAllergy.getSysInfoIsNotNull() && voPatientAllergy.getSysInfo().getLastupdateUser() != null)
    {
        row.setColAudit(form.getImages().Core.EditDisabled);
        row.setTooltipForColAudit("This record had been updated.");
    }
    row.setValue(voPatientAllergy);
}
项目:openmaxims-linux    文件:Logic.java   
@Override
    protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
    {
        if (form.getLocalContext().getCurrentAlertIncluded().booleanValue()
            || form.getLocalContext().getCurrentAllergyIncluded().booleanValue())
        {
            if (saveIncludeInfo())
            {
                form.getLocalContext().setCurrentAlertIncluded(false);
                form.getLocalContext().setCurrentAllergyIncluded(false);

//              form.getLocalContext().setSelectedPatientDiagnosisVo(null);

                openAlert();
                openAllergy();
                updateContextMenus(); 
                //-------------------------------------------------------------
                form.getGlobalContext().Clinical.seteDischargeDisableTabs(false);
                form.fireCustomControlValueChanged();
                //------------------------------------------------------------
            }
            return;
        }

        if (form.getLocalContext().getbEditingAllergyIsNotNull()
            && form.getLocalContext().getbEditingAllergy() )
        {
            if (form.ctnAllergy().pdtAllergyDateIdentified().getValue() != null && form.ctnAllergy().pdtAllergyDateIdentified().getValue().isGreaterThan(new Date()))
            {
                engine.showMessage("'Date Identified' can not be in the future");
                return;
            }

            PatientAllergyEDischargeVo voPatientAllergy = populateAllergyInstanceData(form.getLocalContext().getVoAllergy());

            if (saveAllergy(voPatientAllergy))
            {
                openAllergy();
                openAlert();            //wdev-11558
            }
        }

        if (form.getLocalContext().getbEditingAlertIsNotNull()
            && form.getLocalContext().getbEditingAlert() )
        {
            PatientAlertEDischargeVo voPatientAlert = populateAlertDataFromScreen(form.getLocalContext().getAlertRecord());

            if (voPatientAlert.getAuthoringInformation() == null)
            {
                engine.showMessage("Authoring info is a mandatory field.");
                return;
            }

            if (saveAlert(voPatientAlert))
            {
                openAlert();
                openAllergy();      //wdev-11558
            }
        }

        updateContextMenus();

        form.getGlobalContext().Clinical.seteDischargeDisableTabs(false);
        form.fireCustomControlValueChanged();
    }
项目:openmaxims-linux    文件:EDischargeAllergiesEtcComponentImpl.java   
/**
* Gets a single PatientAllerge based on a PatientAllergy ID value. 
*/
public PatientAllergyEDischargeVo getpatientAllergy(Integer patientAllergyID)
{
    DomainFactory factory = getDomainFactory();
    return PatientAllergyEDischargeVoAssembler.create((PatientAllergy)factory.getDomainObject((PatientAllergy.class), patientAllergyID.intValue()));
}