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

项目:AvoinApotti    文件:Logic.java   
private void addSelectedPatientDiagnosis()
{
    if(form.getGlobalContext().RefMan.getSelectedDiagnosisApptOutcomeList() == null)
        return;

    for(PatientDiagnosisOpNotesVo diagnosis : form.getGlobalContext().RefMan.getSelectedDiagnosisApptOutcomeList())
    {
        if(form.grdDiagnosis().getRowByValue(diagnosis) ==  null)
            addPatientDiagnosisRow(diagnosis, null);
    }

    if(form.grdDiagnosis().getRows().size() > 0)
    {
        for(int i=form.grdDiagnosis().getRows().size() - 1; i>=0; i--)
        {
            if(form.grdDiagnosis().getRows().get(i).getValue() == null || form.grdDiagnosis().getRows().get(i).getValue().getID_PatientDiagnosis() == null)
                continue;

            if(!form.getGlobalContext().RefMan.getSelectedDiagnosisApptOutcomeList().contains(form.grdDiagnosis().getRows().get(i).getValue()))
                form.grdDiagnosis().getRows().remove(i);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private boolean isPrimaryDiagnosisRecord(PatientDiagnosisOpNotesVo voPatDiagnosis)
{
    if (voPatDiagnosis == null || voPatDiagnosis.getPrimaryForCareSpells() == null)
        return false;

    CSPrimaryDiagnosisVoCollection voColl = voPatDiagnosis.getPrimaryForCareSpells();
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        CSPrimaryDiagnosisVo primaryDiagnosisVo = voColl.get(i);
        boolean sameDiagnosis = primaryDiagnosisVo.getDiagnosisIsNotNull() && primaryDiagnosisVo.getDiagnosis().equals(voPatDiagnosis);
        boolean sameCareContext = primaryDiagnosisVo.getCareContextIsNotNull() && primaryDiagnosisVo.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());

        if (sameDiagnosis && sameCareContext && primaryDiagnosisVo.getIsActiveIsNotNull() && primaryDiagnosisVo.getIsActive())
            return true;
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void setCsPrimaryDiagnosis(PatientDiagnosisOpNotesVo voPatDiagnosis, boolean isChkPrimaryChecked)
{
    CSPrimaryDiagnosisVo voCSPrimaryDiagnosis = getPrimaryDiagnosisRecord(voPatDiagnosis);
    if (voCSPrimaryDiagnosis != null || isChkPrimaryChecked)
    {
        if (voCSPrimaryDiagnosis == null)
        {
            voCSPrimaryDiagnosis = populatePrimaryDiagnosisDataFromScreen(new CSPrimaryDiagnosisVo(), voPatDiagnosis, isChkPrimaryChecked);
            if (voPatDiagnosis.getPrimaryForCareSpells() == null)
                voPatDiagnosis.setPrimaryForCareSpells(new CSPrimaryDiagnosisVoCollection());
            voPatDiagnosis.getPrimaryForCareSpells().add(voCSPrimaryDiagnosis);
        }
        else
        {
            int index = voPatDiagnosis.getPrimaryForCareSpells().indexOf(voCSPrimaryDiagnosis);
            if (index >= 0)
            {
                voCSPrimaryDiagnosis = populatePrimaryDiagnosisDataFromScreen(voCSPrimaryDiagnosis, voPatDiagnosis, isChkPrimaryChecked);
                voPatDiagnosis.getPrimaryForCareSpells().set(index, voCSPrimaryDiagnosis);
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private CSPrimaryDiagnosisVo getPrimaryDiagnosisRecord(PatientDiagnosisOpNotesVo voPatDiagnosis)
{
    if (voPatDiagnosis == null || voPatDiagnosis.getPrimaryForCareSpells() == null)
        return null;

    CSPrimaryDiagnosisVoCollection voColl = voPatDiagnosis.getPrimaryForCareSpells();
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        boolean sameDiagnosis = voColl.get(i).getDiagnosisIsNotNull() && voColl.get(i).getDiagnosis().equals(voPatDiagnosis);
        boolean sameCareContext = voColl.get(i).getCareContextIsNotNull() && voColl.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());

        if (sameDiagnosis && sameCareContext)
            return voColl.get(i);
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private boolean isPrimaryDiagnosisRecord(PatientDiagnosisOpNotesVo voPatDiagnosis)
{
    if (voPatDiagnosis == null || voPatDiagnosis.getPrimaryForCareSpells() == null)
        return false;

    CSPrimaryDiagnosisVoCollection voColl = voPatDiagnosis.getPrimaryForCareSpells();
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        CSPrimaryDiagnosisVo primaryDiagnosisVo = voColl.get(i);
        boolean sameDiagnosis = primaryDiagnosisVo.getDiagnosisIsNotNull() && primaryDiagnosisVo.getDiagnosis().equals(voPatDiagnosis);
        boolean sameCareContext = primaryDiagnosisVo.getCareContextIsNotNull() && primaryDiagnosisVo.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());

        if (sameDiagnosis && sameCareContext && primaryDiagnosisVo.getIsActiveIsNotNull() && primaryDiagnosisVo.getIsActive())
            return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void setCsPrimaryDiagnosis(PatientDiagnosisOpNotesVo voPatDiagnosis, boolean isChkPrimaryChecked)
{
    CSPrimaryDiagnosisVo voCSPrimaryDiagnosis = getPrimaryDiagnosisRecord(voPatDiagnosis);
    if (voCSPrimaryDiagnosis != null || isChkPrimaryChecked)
    {
        if (voCSPrimaryDiagnosis == null)
        {
            voCSPrimaryDiagnosis = populatePrimaryDiagnosisDataFromScreen(new CSPrimaryDiagnosisVo(), voPatDiagnosis, isChkPrimaryChecked);
            if (voPatDiagnosis.getPrimaryForCareSpells() == null)
                voPatDiagnosis.setPrimaryForCareSpells(new CSPrimaryDiagnosisVoCollection());
            voPatDiagnosis.getPrimaryForCareSpells().add(voCSPrimaryDiagnosis);
        }
        else
        {
            int index = voPatDiagnosis.getPrimaryForCareSpells().indexOf(voCSPrimaryDiagnosis);
            if (index >= 0)
            {
                voCSPrimaryDiagnosis = populatePrimaryDiagnosisDataFromScreen(voCSPrimaryDiagnosis, voPatDiagnosis, isChkPrimaryChecked);
                voPatDiagnosis.getPrimaryForCareSpells().set(index, voCSPrimaryDiagnosis);
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private CSPrimaryDiagnosisVo getPrimaryDiagnosisRecord(PatientDiagnosisOpNotesVo voPatDiagnosis)
{
    if (voPatDiagnosis == null || voPatDiagnosis.getPrimaryForCareSpells() == null)
        return null;

    CSPrimaryDiagnosisVoCollection voColl = voPatDiagnosis.getPrimaryForCareSpells();
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        boolean sameDiagnosis = voColl.get(i).getDiagnosisIsNotNull() && voColl.get(i).getDiagnosis().equals(voPatDiagnosis);
        boolean sameCareContext = voColl.get(i).getCareContextIsNotNull() && voColl.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());

        if (sameDiagnosis && sameCareContext)
            return voColl.get(i);
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void addSelectedPatientDiagnosis()
{
    if(form.getGlobalContext().RefMan.getSelectedDiagnosisApptOutcomeList() == null)
        return;

    for(PatientDiagnosisOpNotesVo diagnosis : form.getGlobalContext().RefMan.getSelectedDiagnosisApptOutcomeList())
    {
        if(form.grdDiagnosis().getRowByValue(diagnosis) ==  null)
            addPatientDiagnosisRow(diagnosis, null);
    }

    if(form.grdDiagnosis().getRows().size() > 0)
    {
        for(int i=form.grdDiagnosis().getRows().size() - 1; i>=0; i--)
        {
            if(form.grdDiagnosis().getRows().get(i).getValue() == null || form.grdDiagnosis().getRows().get(i).getValue().getID_PatientDiagnosis() == null)
                continue;

            if(!form.getGlobalContext().RefMan.getSelectedDiagnosisApptOutcomeList().contains(form.grdDiagnosis().getRows().get(i).getValue()))
                form.grdDiagnosis().getRows().remove(i);
        }
    }
}
项目:openMAXIMS    文件:AppointmentOutcomeDialogImpl.java   
public PatientDiagnosisOpNotesVo getPatientDiagnosis(PatientDiagnosisRefVo patientDiagnosisRef)
{
    if(patientDiagnosisRef == null || patientDiagnosisRef.getID_PatientDiagnosis() == null)
        return null;

    PatientDiagnosis doPatientDiagnosis = (PatientDiagnosis) getDomainFactory().getDomainObject(PatientDiagnosis.class, patientDiagnosisRef.getID_PatientDiagnosis());

    return PatientDiagnosisOpNotesVoAssembler.create(doPatientDiagnosis);
}
项目:openMAXIMS    文件:Logic.java   
private boolean isPrimaryDiagnosisRecord(PatientDiagnosisOpNotesVo voPatDiagnosis)
{
    if (voPatDiagnosis == null || voPatDiagnosis.getPrimaryForCareSpells() == null)
        return false;

    CSPrimaryDiagnosisVoCollection voColl = voPatDiagnosis.getPrimaryForCareSpells();
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        CSPrimaryDiagnosisVo primaryDiagnosisVo = voColl.get(i);
        boolean sameDiagnosis = primaryDiagnosisVo.getDiagnosisIsNotNull() && primaryDiagnosisVo.getDiagnosis().equals(voPatDiagnosis);
        boolean sameCareContext = primaryDiagnosisVo.getCareContextIsNotNull() && primaryDiagnosisVo.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());

        if (sameDiagnosis && sameCareContext && primaryDiagnosisVo.getIsActiveIsNotNull() && primaryDiagnosisVo.getIsActive())
            return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void setCsPrimaryDiagnosis(PatientDiagnosisOpNotesVo voPatDiagnosis, boolean isChkPrimaryChecked)
{
    CSPrimaryDiagnosisVo voCSPrimaryDiagnosis = getPrimaryDiagnosisRecord(voPatDiagnosis);
    if (voCSPrimaryDiagnosis != null || isChkPrimaryChecked)
    {
        if (voCSPrimaryDiagnosis == null)
        {
            voCSPrimaryDiagnosis = populatePrimaryDiagnosisDataFromScreen(new CSPrimaryDiagnosisVo(), voPatDiagnosis, isChkPrimaryChecked);
            if (voPatDiagnosis.getPrimaryForCareSpells() == null)
                voPatDiagnosis.setPrimaryForCareSpells(new CSPrimaryDiagnosisVoCollection());
            voPatDiagnosis.getPrimaryForCareSpells().add(voCSPrimaryDiagnosis);
        }
        else
        {
            int index = voPatDiagnosis.getPrimaryForCareSpells().indexOf(voCSPrimaryDiagnosis);
            if (index >= 0)
            {
                voCSPrimaryDiagnosis = populatePrimaryDiagnosisDataFromScreen(voCSPrimaryDiagnosis, voPatDiagnosis, isChkPrimaryChecked);
                voPatDiagnosis.getPrimaryForCareSpells().set(index, voCSPrimaryDiagnosis);
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private CSPrimaryDiagnosisVo getPrimaryDiagnosisRecord(PatientDiagnosisOpNotesVo voPatDiagnosis)
{
    if (voPatDiagnosis == null || voPatDiagnosis.getPrimaryForCareSpells() == null)
        return null;

    CSPrimaryDiagnosisVoCollection voColl = voPatDiagnosis.getPrimaryForCareSpells();
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        boolean sameDiagnosis = voColl.get(i).getDiagnosisIsNotNull() && voColl.get(i).getDiagnosis().equals(voPatDiagnosis);
        boolean sameCareContext = voColl.get(i).getCareContextIsNotNull() && voColl.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());

        if (sameDiagnosis && sameCareContext)
            return voColl.get(i);
    }

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private void addSelectedPatientDiagnosis()
{
    if(form.getGlobalContext().CareUk.getSelectedDiagnosisApptOutcomeList() == null)
        return;

    for(PatientDiagnosisOpNotesVo diagnosis : form.getGlobalContext().CareUk.getSelectedDiagnosisApptOutcomeList())
    {
        if(form.grdDiagnosis().getRowByValue(diagnosis) ==  null)
            addPatientDiagnosisRow(diagnosis, null);
    }

    if(form.grdDiagnosis().getRows().size() > 0)
    {
        for(int i=form.grdDiagnosis().getRows().size() - 1; i>=0; i--)
        {
            if(form.grdDiagnosis().getRows().get(i).getValue() == null || form.grdDiagnosis().getRows().get(i).getValue().getID_PatientDiagnosis() == null)
                continue;

            if(!form.getGlobalContext().CareUk.getSelectedDiagnosisApptOutcomeList().contains(form.grdDiagnosis().getRows().get(i).getValue()))
                form.grdDiagnosis().getRows().remove(i);
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private boolean isPrimaryDiagnosisRecord(PatientDiagnosisOpNotesVo voPatDiagnosis)
{
    if (voPatDiagnosis == null || voPatDiagnosis.getPrimaryForCareSpells() == null)
        return false;

    CSPrimaryDiagnosisVoCollection voColl = voPatDiagnosis.getPrimaryForCareSpells();
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        CSPrimaryDiagnosisVo primaryDiagnosisVo = voColl.get(i);
        boolean sameDiagnosis = primaryDiagnosisVo.getDiagnosisIsNotNull() && primaryDiagnosisVo.getDiagnosis().equals(voPatDiagnosis);
        boolean sameCareContext = primaryDiagnosisVo.getCareContextIsNotNull() && primaryDiagnosisVo.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());

        if (sameDiagnosis && sameCareContext && primaryDiagnosisVo.getIsActiveIsNotNull() && primaryDiagnosisVo.getIsActive())
            return true;
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private void setCsPrimaryDiagnosis(PatientDiagnosisOpNotesVo voPatDiagnosis, boolean isChkPrimaryChecked)
{
    CSPrimaryDiagnosisVo voCSPrimaryDiagnosis = getPrimaryDiagnosisRecord(voPatDiagnosis);
    if (voCSPrimaryDiagnosis != null || isChkPrimaryChecked)
    {
        if (voCSPrimaryDiagnosis == null)
        {
            voCSPrimaryDiagnosis = populatePrimaryDiagnosisDataFromScreen(new CSPrimaryDiagnosisVo(), voPatDiagnosis, isChkPrimaryChecked);
            if (voPatDiagnosis.getPrimaryForCareSpells() == null)
                voPatDiagnosis.setPrimaryForCareSpells(new CSPrimaryDiagnosisVoCollection());
            voPatDiagnosis.getPrimaryForCareSpells().add(voCSPrimaryDiagnosis);
        }
        else
        {
            int index = voPatDiagnosis.getPrimaryForCareSpells().indexOf(voCSPrimaryDiagnosis);
            if (index >= 0)
            {
                voCSPrimaryDiagnosis = populatePrimaryDiagnosisDataFromScreen(voCSPrimaryDiagnosis, voPatDiagnosis, isChkPrimaryChecked);
                voPatDiagnosis.getPrimaryForCareSpells().set(index, voCSPrimaryDiagnosis);
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private CSPrimaryDiagnosisVo getPrimaryDiagnosisRecord(PatientDiagnosisOpNotesVo voPatDiagnosis)
{
    if (voPatDiagnosis == null || voPatDiagnosis.getPrimaryForCareSpells() == null)
        return null;

    CSPrimaryDiagnosisVoCollection voColl = voPatDiagnosis.getPrimaryForCareSpells();
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        boolean sameDiagnosis = voColl.get(i).getDiagnosisIsNotNull() && voColl.get(i).getDiagnosis().equals(voPatDiagnosis);
        boolean sameCareContext = voColl.get(i).getCareContextIsNotNull() && voColl.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());

        if (sameDiagnosis && sameCareContext)
            return voColl.get(i);
    }

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private void populateDiagnosisGrid(PatientDiagnosisOpNotesVoCollection diagnosis)
{
    form.grdDiagnosis().getRows().clear();

    if(diagnosis == null)
        return;

    for(PatientDiagnosisOpNotesVo diag : diagnosis)
    {
        addPatientDiagnosisRow(diag, null);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void addPatientDiagnosisRow(PatientDiagnosisOpNotesVo patientDiagnosis, grdDiagnosisRow row)
{
    if(patientDiagnosis == null)
        return;

    if(row == null)
        row = form.grdDiagnosis().getRows().newRow();

    row.setColDiagnosis(patientDiagnosis.getDiagnosisDescription());
    row.setValue(patientDiagnosis);
}
项目:AvoinApotti    文件:AppointmentOutcomeDialogImpl.java   
public PatientDiagnosisOpNotesVo getPatientDiagnosis(PatientDiagnosisRefVo patientDiagnosisRef)
{
    if(patientDiagnosisRef == null || patientDiagnosisRef.getID_PatientDiagnosis() == null)
        return null;

    PatientDiagnosis doPatientDiagnosis = (PatientDiagnosis) getDomainFactory().getDomainObject(PatientDiagnosis.class, patientDiagnosisRef.getID_PatientDiagnosis());

    return PatientDiagnosisOpNotesVoAssembler.create(doPatientDiagnosis);
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    PatientDiagnosisOpNotesVo record = populateDataFromScreen(form.getGlobalContext().Clinical.getSelectedPatientDiagnosisOPNotes());
    String[] errs = record.validate();
    if ( errs != null && errs.length > 0)
    {
        engine.showErrors(errs);
        return;
    }
    form.getGlobalContext().Clinical.setSelectedPatientDiagnosisOPNotes(record);
    engine.close(DialogResult.OK);
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(PatientDiagnosisOpNotesVo record)
{
    clearScreen();
    if (record == null)
        return;
    form.ccDiagnosis().setValue(record);
    //form.ccDiagnosis().setDescription(record.getDiagnosisDescription());
    //form.cmbPatDiagStatus().setValue(record.getCurrentStatusIsNotNull() ? record.getCurrentStatus().getStatus(): null);
    form.ccAuthInfo().setValue(record.getAuthoringInfo());
    form.chkMain().setValue(false);
    CSPrimaryDiagnosisVo primDiag= getPrimaryDiagnosisRecord(record);
    form.chkMain().setValue(primDiag!=null && Boolean.TRUE.equals(primDiag.getIsActive()));

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    PatientDiagnosisOpNotesVo record = populateDataFromScreen(form.getGlobalContext().Clinical.getSelectedPatientDiagnosisOPNotes());
    String[] errs = record.validate();
    if ( errs != null && errs.length > 0)
    {
        engine.showErrors(errs);
        return;
    }
    form.getGlobalContext().Clinical.setSelectedPatientDiagnosisOPNotes(record);
    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(PatientDiagnosisOpNotesVo record)
{
    clearScreen();
    if (record == null)
        return;
    form.ccDiagnosis().setValue(record);
    //form.ccDiagnosis().setDescription(record.getDiagnosisDescription());
    //form.cmbPatDiagStatus().setValue(record.getCurrentStatusIsNotNull() ? record.getCurrentStatus().getStatus(): null);
    form.ccAuthInfo().setValue(record.getAuthoringInfo());
    form.chkMain().setValue(false);
    CSPrimaryDiagnosisVo primDiag= getPrimaryDiagnosisRecord(record);
    form.chkMain().setValue(primDiag!=null && Boolean.TRUE.equals(primDiag.getIsActive()));
    form.chkDiagnosedOnAdmission().setValue(record.getDiagnosedOnAdmissionIsNotNull() ? record.getDiagnosedOnAdmission().booleanValue() : false); //WDEV-19860

}
项目:openMAXIMS    文件:Logic.java   
private void populateDiagnosisGrid(PatientDiagnosisOpNotesVoCollection diagnosis)
{
    form.grdDiagnosis().getRows().clear();

    if(diagnosis == null)
        return;

    for(PatientDiagnosisOpNotesVo diag : diagnosis)
    {
        addPatientDiagnosisRow(diag, null);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addPatientDiagnosisRow(PatientDiagnosisOpNotesVo patientDiagnosis, grdDiagnosisRow row)
{
    if(patientDiagnosis == null)
        return;

    if(row == null)
        row = form.grdDiagnosis().getRows().newRow();

    row.setColDiagnosis(patientDiagnosis.getDiagnosisDescription());
    row.setValue(patientDiagnosis);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    PatientDiagnosisOpNotesVo record = populateDataFromScreen(form.getGlobalContext().Clinical.getSelectedPatientDiagnosisOPNotes());
    String[] errs = record.validate();
    if ( errs != null && errs.length > 0)
    {
        engine.showErrors(errs);
        return;
    }
    form.getGlobalContext().Clinical.setSelectedPatientDiagnosisOPNotes(record);
    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(PatientDiagnosisOpNotesVo record)
{
    clearScreen();
    if (record == null)
        return;
    form.ccDiagnosis().setValue(record);
    //form.ccDiagnosis().setDescription(record.getDiagnosisDescription());
    //form.cmbPatDiagStatus().setValue(record.getCurrentStatusIsNotNull() ? record.getCurrentStatus().getStatus(): null);
    form.ccAuthInfo().setValue(record.getAuthoringInfo());
    form.chkMain().setValue(false);
    CSPrimaryDiagnosisVo primDiag= getPrimaryDiagnosisRecord(record);
    form.chkMain().setValue(primDiag!=null && Boolean.TRUE.equals(primDiag.getIsActive()));

}
项目:openmaxims-linux    文件:Logic.java   
private void populateDiagnosisGrid(PatientDiagnosisOpNotesVoCollection diagnosis)
{
    form.grdDiagnosis().getRows().clear();

    if(diagnosis == null)
        return;

    for(PatientDiagnosisOpNotesVo diag : diagnosis)
    {
        addPatientDiagnosisRow(diag, null);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void addPatientDiagnosisRow(PatientDiagnosisOpNotesVo patientDiagnosis, grdDiagnosisRow row)
{
    if(patientDiagnosis == null)
        return;

    if(row == null)
        row = form.grdDiagnosis().getRows().newRow();

    row.setColDiagnosis(patientDiagnosis.getDiagnosisDescription());
    row.setValue(patientDiagnosis);
}
项目:openmaxims-linux    文件:AppointmentOutcomeDialogImpl.java   
public PatientDiagnosisOpNotesVo getPatientDiagnosis(PatientDiagnosisRefVo patientDiagnosisRef)
{
    if(patientDiagnosisRef == null || patientDiagnosisRef.getID_PatientDiagnosis() == null)
        return null;

    PatientDiagnosis doPatientDiagnosis = (PatientDiagnosis) getDomainFactory().getDomainObject(PatientDiagnosis.class, patientDiagnosisRef.getID_PatientDiagnosis());

    return PatientDiagnosisOpNotesVoAssembler.create(doPatientDiagnosis);
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    PatientDiagnosisOpNotesVo record = populateDataFromScreen(form.getGlobalContext().Clinical.getSelectedPatientDiagnosisOPNotes());
    String[] errs = record.validate();
    if ( errs != null && errs.length > 0)
    {
        engine.showErrors(errs);
        return;
    }
    form.getGlobalContext().Clinical.setSelectedPatientDiagnosisOPNotes(record);
    engine.close(DialogResult.OK);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(PatientDiagnosisOpNotesVo record)
{
    clearScreen();
    if (record == null)
        return;
    form.ccDiagnosis().setValue(record);
    //form.ccDiagnosis().setDescription(record.getDiagnosisDescription());
    //form.cmbPatDiagStatus().setValue(record.getCurrentStatusIsNotNull() ? record.getCurrentStatus().getStatus(): null);
    form.ccAuthInfo().setValue(record.getAuthoringInfo());
    form.chkMain().setValue(false);
    CSPrimaryDiagnosisVo primDiag= getPrimaryDiagnosisRecord(record);
    form.chkMain().setValue(primDiag!=null && Boolean.TRUE.equals(primDiag.getIsActive()));

}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(PatientDiagnosisOpNotesVoCollection outcomeDiagCollection, PatientDiagnosisOpNotesVoCollection allDiagnosis) 
{
    form.grdCareContext().getRows().clear();
    form.grdOtherDiagnosis().getRows().clear();

    if (allDiagnosis != null)
    {
        for (PatientDiagnosisOpNotesVo diag : allDiagnosis)
        {
            if (form.getGlobalContext().Core.getCurrentCareContext() != null && diag.getCareContext() != null && diag.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()))
            {
                grdCareContextRow row = form.grdCareContext().getRows().newRow();

                row.setcolDescription(diag.getDiagnosisDescription());
                row.setcolDiagnosisDate(diag.getDiagnosedDate() != null ? diag.getDiagnosedDate().toString(): "");

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

                row.setcolStatus((diag.getCurrentStatus() != null && diag.getCurrentStatus().getStatus() != null) ? diag.getCurrentStatus().getStatus().getText() : "");
                row.setValue(diag);
            }
            else
            {
                grdOtherDiagnosisRow otherDiagRow = form.grdOtherDiagnosis().getRows().newRow();
                otherDiagRow.setcolDescription(diag.getDiagnosisDescription());
                otherDiagRow.setcolDiagnosisDate(diag.getDiagnosedDate() != null ? diag.getDiagnosedDate().toString() : "");

                if (diag.getAuthoringInfo() != null)
                {       
                    otherDiagRow.setcolAuthoringHCPDateTime(diag.getAuthoringInfo().getIItemText());
                }

                otherDiagRow.setcolStatus((diag.getCurrentStatus() != null && diag.getCurrentStatus().getStatus() != null) ? diag.getCurrentStatus().getStatus().getText() : "");
                otherDiagRow.setValue(diag);
            }

            //remove from all for display
        /*  for (int i = 0; i < allDiagnosis.size();i++)
            {
                if (allDiagnosis.get(i).equals(diag))
                {
                    allDiagnosis.remove(i);
                }
            }*/
        }
    }

    markApptOutcomeDiagnosis(form.getGlobalContext().RefMan.getSelectedDiagnosisApptOutcomeList());
}
项目:AvoinApotti    文件:Logic.java   
private void populateDiagnosisGridFromData(PatientDiagnosisOpNotesVoCollection pdac)
{   
    form.grdDiagnosis().getRows().clear();
    if (pdac == null)
        return;

    for (int i = 0 ; i < pdac.size() ; i++)
    {
        PatientDiagnosisOpNotesVo current = pdac.get(i);
        if (current != null)
        {
            grdDiagnosisRow nRow = form.grdDiagnosis().getRows().newRow();
            nRow.setColumnName(current.getDiagnosisIsNotNull() ? current.getDiagnosis().getDiagnosisName() : null);
            nRow.setColumnDescription(current.getDiagnosisDescription());
            nRow.setColumnPrimary(isPrimaryDiagnosisRecord(current));
            nRow.setValue(current);

            String toolTip = "";
            if (current.getCurrentStatusIsNotNull() && current.getCurrentStatus().getStatusIsNotNull())
            {
                toolTip = "<b>Status</b>: "+current.getCurrentStatus().getStatus().getText();
            }
            if (current.getAuthoringInfoIsNotNull()) 
            {
                if (current.getAuthoringInfo().getAuthoringHcpIsNotNull() && 
                        current.getAuthoringInfo().getAuthoringHcp().getMosIsNotNull() &&
                            current.getAuthoringInfo().getAuthoringHcp().getMos().getNameIsNotNull())
                {

                    toolTip+= "<br/><b>Authoring HCP: </b> "+current.getAuthoringInfo().getAuthoringHcp().getMos().getName().toString();
                }
                if (current.getAuthoringInfo().getAuthoringDateTimeIsNotNull())
                {
                    toolTip+= "<br/><b>Authoring Date/Time: </b> "+current.getAuthoringInfo().getAuthoringDateTime().toString();
                }

            }
            if (toolTip.length()>0)
                nRow.setTooltip(toolTip);

        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateDiagnosisGridFromData(PatientDiagnosisOpNotesVoCollection pdac)
{   
    form.grdDiagnosis().getRows().clear();
    if (pdac == null)
        return;

    for (int i = 0 ; i < pdac.size() ; i++)
    {
        PatientDiagnosisOpNotesVo current = pdac.get(i);
        if (current != null)
        {
            grdDiagnosisRow nRow = form.grdDiagnosis().getRows().newRow();
            nRow.setColumnName(current.getDiagnosisIsNotNull() ? current.getDiagnosis().getDiagnosisName() : null);
            nRow.setColumnDescription(current.getDiagnosisDescription());
            nRow.setColumnPrimary(isPrimaryDiagnosisRecord(current));
            nRow.setValue(current);

            String toolTip = "";
            if (current.getCurrentStatusIsNotNull() && current.getCurrentStatus().getStatusIsNotNull())
            {
                toolTip = "<b>Status</b>: "+current.getCurrentStatus().getStatus().getText();
            }
            if (current.getAuthoringInfoIsNotNull()) 
            {
                if (current.getAuthoringInfo().getAuthoringHcpIsNotNull() && 
                        current.getAuthoringInfo().getAuthoringHcp().getMosIsNotNull() &&
                            current.getAuthoringInfo().getAuthoringHcp().getMos().getNameIsNotNull())
                {

                    toolTip+= "<br/><b>Authoring HCP: </b> "+current.getAuthoringInfo().getAuthoringHcp().getMos().getName().toString();
                }
                if (current.getAuthoringInfo().getAuthoringDateTimeIsNotNull())
                {
                    toolTip+= "<br/><b>Authoring Date/Time: </b> "+current.getAuthoringInfo().getAuthoringDateTime().toString();
                }

            }
            if (toolTip.length()>0)
                nRow.setTooltip(toolTip);

        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(PatientDiagnosisOpNotesVoCollection outcomeDiagCollection, PatientDiagnosisOpNotesVoCollection allDiagnosis) 
{
    form.grdCareContext().getRows().clear();
    form.grdOtherDiagnosis().getRows().clear();

    if (allDiagnosis != null)
    {
        for (PatientDiagnosisOpNotesVo diag : allDiagnosis)
        {
            if (form.getGlobalContext().Core.getCurrentCareContext() != null && diag.getCareContext() != null && diag.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()))
            {
                grdCareContextRow row = form.grdCareContext().getRows().newRow();

                row.setcolDescription(diag.getDiagnosisDescription());
                row.setcolDiagnosisDate(diag.getDiagnosedDate() != null ? diag.getDiagnosedDate().toString(): "");

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

                row.setcolStatus((diag.getCurrentStatus() != null && diag.getCurrentStatus().getStatus() != null) ? diag.getCurrentStatus().getStatus().getText() : "");
                row.setValue(diag);
            }
            else
            {
                grdOtherDiagnosisRow otherDiagRow = form.grdOtherDiagnosis().getRows().newRow();
                otherDiagRow.setcolDescription(diag.getDiagnosisDescription());
                otherDiagRow.setcolDiagnosisDate(diag.getDiagnosedDate() != null ? diag.getDiagnosedDate().toString() : "");

                if (diag.getAuthoringInfo() != null)
                {       
                    otherDiagRow.setcolAuthoringHCPDateTime(diag.getAuthoringInfo().getIItemText());
                }

                otherDiagRow.setcolStatus((diag.getCurrentStatus() != null && diag.getCurrentStatus().getStatus() != null) ? diag.getCurrentStatus().getStatus().getText() : "");
                otherDiagRow.setValue(diag);
            }

            //remove from all for display
        /*  for (int i = 0; i < allDiagnosis.size();i++)
            {
                if (allDiagnosis.get(i).equals(diag))
                {
                    allDiagnosis.remove(i);
                }
            }*/
        }
    }

    markApptOutcomeDiagnosis(form.getGlobalContext().RefMan.getSelectedDiagnosisApptOutcomeList());
}
项目:openMAXIMS    文件:Logic.java   
private void populateDiagnosisGridFromData(PatientDiagnosisOpNotesVoCollection pdac)
{   
    form.grdDiagnosis().getRows().clear();
    if (pdac == null)
        return;

    for (int i = 0 ; i < pdac.size() ; i++)
    {
        PatientDiagnosisOpNotesVo current = pdac.get(i);
        if (current != null)
        {
            grdDiagnosisRow nRow = form.grdDiagnosis().getRows().newRow();
            nRow.setColumnName(current.getDiagnosisIsNotNull() ? current.getDiagnosis().getDiagnosisName() : null);
            nRow.setColumnDescription(current.getDiagnosisDescription());
            nRow.setColumnPrimary(isPrimaryDiagnosisRecord(current));
            nRow.setValue(current);

            String toolTip = "";
            if (current.getCurrentStatusIsNotNull() && current.getCurrentStatus().getStatusIsNotNull())
            {
                toolTip = "<b>Status</b>: "+current.getCurrentStatus().getStatus().getText();
            }
            if (current.getAuthoringInfoIsNotNull()) 
            {
                if (current.getAuthoringInfo().getAuthoringHcpIsNotNull() && 
                        current.getAuthoringInfo().getAuthoringHcp().getMosIsNotNull() &&
                            current.getAuthoringInfo().getAuthoringHcp().getMos().getNameIsNotNull())
                {

                    toolTip+= "<br/><b>Authoring HCP: </b> "+current.getAuthoringInfo().getAuthoringHcp().getMos().getName().toString();
                }
                if (current.getAuthoringInfo().getAuthoringDateTimeIsNotNull())
                {
                    toolTip+= "<br/><b>Authoring Date/Time: </b> "+current.getAuthoringInfo().getAuthoringDateTime().toString();
                }

            }
            if (toolTip.length()>0)
                nRow.setTooltip(toolTip);

        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateDiagnosisGridFromData(PatientDiagnosisOpNotesVoCollection pdac)
{   
    form.grdDiagnosis().getRows().clear();
    if (pdac == null)
        return;

    for (int i = 0 ; i < pdac.size() ; i++)
    {
        PatientDiagnosisOpNotesVo current = pdac.get(i);
        if (current != null)
        {
            grdDiagnosisRow nRow = form.grdDiagnosis().getRows().newRow();
            nRow.setColumnName(current.getDiagnosisIsNotNull() ? current.getDiagnosis().getDiagnosisName() : null);
            nRow.setColumnDescription(current.getDiagnosisDescription());
            nRow.setColumnPrimary(isPrimaryDiagnosisRecord(current));
            nRow.setValue(current);

            String toolTip = "";
            if (current.getCurrentStatusIsNotNull() && current.getCurrentStatus().getStatusIsNotNull())
            {
                toolTip = "<b>Status</b>: "+current.getCurrentStatus().getStatus().getText();
            }
            if (current.getAuthoringInfoIsNotNull()) 
            {
                if (current.getAuthoringInfo().getAuthoringHcpIsNotNull() && 
                        current.getAuthoringInfo().getAuthoringHcp().getMosIsNotNull() &&
                            current.getAuthoringInfo().getAuthoringHcp().getMos().getNameIsNotNull())
                {

                    toolTip+= "<br/><b>Authoring HCP: </b> "+current.getAuthoringInfo().getAuthoringHcp().getMos().getName().toString();
                }
                if (current.getAuthoringInfo().getAuthoringDateTimeIsNotNull())
                {
                    toolTip+= "<br/><b>Authoring Date/Time: </b> "+current.getAuthoringInfo().getAuthoringDateTime().toString();
                }

            }
            if (toolTip.length()>0)
                nRow.setTooltip(toolTip);

        }
    }
}
项目:AvoinApotti    文件:Logic.java   
public void updateInstance() {

    form.getGlobalContext().Clinical.setSelectedPatientDiagnosisOPNotes((PatientDiagnosisOpNotesVo) form.grdDiagnosis().getValue().clone());
    engine.open(form.getForms().Clinical.PatientDiagnosisDialog);

}
项目:openMAXIMS    文件:Logic.java   
public void updateInstance() {

    form.getGlobalContext().Clinical.setSelectedPatientDiagnosisOPNotes((PatientDiagnosisOpNotesVo) form.grdDiagnosis().getValue().clone());
    engine.open(form.getForms().Clinical.PatientDiagnosisDialog);

}