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

项目:AvoinApotti    文件:Logic.java   
private void newAlert() 
{
    form.ctnAlert().cmbAlertSource().setFocus();
    form.setMode(FormMode.EDIT); 

    clearAlertControls();

    form.ctnAlert().ccAlertAuthor().initializeComponent();
    form.ctnAlert().setccAlertAuthorEnabled(true);
    form.ctnAlert().ccAlertAuthor().setIsRequiredPropertyToControls(Boolean.TRUE);

    form.getLocalContext().setAlertRecord(new PatientAlertEDischargeVo());
//  form.ctnAlert().setCollapsed(false);

    manageEnteringAlertDetails();

    form.getGlobalContext().Clinical.seteDischargeDisableTabs(true);
    form.fireCustomControlValueChanged();
}
项目:AvoinApotti    文件:Logic.java   
protected PatientAlertEDischargeVo populateAlertDataFromScreen(PatientAlertEDischargeVo voPatientAlert)
{
    voPatientAlert.setAlertType(form.ctnAlert().cmbAlertAlert().getValue());
    voPatientAlert.setComments(form.ctnAlert().txtAlertComment().getValue());
    voPatientAlert.setSourceofInformation(form.ctnAlert().cmbAlertSource().getValue());
    voPatientAlert.setDateIdentified(form.ctnAlert().pdtAlertDateIdentified().getValue());

    if(voPatientAlert.getIsCurrentlyActiveAlert() == null)
        voPatientAlert.setIsCurrentlyActiveAlert(Boolean.TRUE); 

    voPatientAlert.setAuthoringInformation(form.ctnAlert().ccAlertAuthor().getValue());

    voPatientAlert.setPatient(form.getGlobalContext().Core.getPatientShort());

    if (voPatientAlert.getID_PatientAlert() == null)
        setAlertIncludeInfo(voPatientAlert, true);

    return voPatientAlert;
}
项目:AvoinApotti    文件:Logic.java   
protected void populateAlertScreenFromData(PatientAlertEDischargeVo voPatAlert)
{

    if (voPatAlert == null)
        return;
    form.ctnAlert().cmbAlertAlert().setValue(voPatAlert.getAlertTypeIsNotNull() ? voPatAlert.getAlertType() : null);
    form.ctnAlert().txtAlertComment().setValue(voPatAlert.getCommentsIsNotNull() ? voPatAlert.getComments(): null);
    form.ctnAlert().cmbAlertSource().setValue(voPatAlert.getSourceofInformationIsNotNull() ? voPatAlert.getSourceofInformation() : null);
    form.ctnAlert().pdtAlertDateIdentified().setValue(voPatAlert.getDateIdentifiedIsNotNull() ? voPatAlert.getDateIdentified() : null);

    if(voPatAlert.getAuthoringInformationIsNotNull())
        form.ctnAlert().ccAlertAuthor().setValue(voPatAlert.getAuthoringInformation());

    if(voPatAlert.getAlertType() != null && voPatAlert.getAlertType().getParent() != null && voPatAlert.getAlertType().getParent().getText()!= null)
    {
        form.ctnAlert().cmbAlertCategory().newRow(voPatAlert.getAlertType().getParent(), voPatAlert.getAlertType().getParent().getText());
        form.ctnAlert().cmbAlertCategory().setValue(voPatAlert.getAlertType().getParent());
    }

    loadCategoryTypes(); 

    form.ctnAlert().cmbAlertAlert().newRow(voPatAlert.getAlertType(), voPatAlert.getAlertType().getText());
    form.ctnAlert().cmbAlertAlert().setValue(voPatAlert.getAlertType());
}
项目:AvoinApotti    文件:Logic.java   
private PatientAlertEDischargeVo includeValueChangedForCareContext(PatientAlertEDischargeVo voAlert, boolean bInclude) 
{
    boolean bFound = false;
    for (int i = 0 ; voAlert.getIncludeAlertInDischargeReportsIsNotNull() && i < voAlert.getIncludeAlertInDischargeReports().size() ; i++)
    {
        IncludeAlertInDischargeReportsVo voInclude = voAlert.getIncludeAlertInDischargeReports().get(i);
        if (voInclude.getCareContextIsNotNull()
            && voInclude.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()))
        {
            bFound = true;
            voInclude.setIncludeInReport(bInclude);
            voAlert.getIncludeAlertInDischargeReports().set(i, voInclude);
        }

    }
    if ( !bFound )
        setAlertIncludeInfo(voAlert, bInclude);

    return voAlert;
}
项目:openMAXIMS    文件:Logic.java   
private void newAlert() 
{
    form.ctnAlert().cmbAlertSource().setFocus();
    form.setMode(FormMode.EDIT); 

    clearAlertControls();

    form.ctnAlert().ccAlertAuthor().initializeComponent();
    form.ctnAlert().setccAlertAuthorEnabled(true);
    form.ctnAlert().ccAlertAuthor().setIsRequiredPropertyToControls(Boolean.TRUE);

    form.getLocalContext().setAlertRecord(new PatientAlertEDischargeVo());
//  form.ctnAlert().setCollapsed(false);

    manageEnteringAlertDetails();

    form.getGlobalContext().Clinical.seteDischargeDisableTabs(true);
    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
protected PatientAlertEDischargeVo populateAlertDataFromScreen(PatientAlertEDischargeVo voPatientAlert)
{
    voPatientAlert.setAlertType(form.ctnAlert().cmbAlertAlert().getValue());
    voPatientAlert.setComments(form.ctnAlert().txtAlertComment().getValue());
    voPatientAlert.setSourceofInformation(form.ctnAlert().cmbAlertSource().getValue());
    voPatientAlert.setDateIdentified(form.ctnAlert().pdtAlertDateIdentified().getValue());

    if(voPatientAlert.getIsCurrentlyActiveAlert() == null)
        voPatientAlert.setIsCurrentlyActiveAlert(Boolean.TRUE); 

    voPatientAlert.setAuthoringInformation(form.ctnAlert().ccAlertAuthor().getValue());

    voPatientAlert.setPatient(form.getGlobalContext().Core.getPatientShort());

    if (voPatientAlert.getID_PatientAlert() == null)
        setAlertIncludeInfo(voPatientAlert, true);

    return voPatientAlert;
}
项目:openMAXIMS    文件:Logic.java   
protected void populateAlertScreenFromData(PatientAlertEDischargeVo voPatAlert)
{

    if (voPatAlert == null)
        return;
    form.ctnAlert().cmbAlertAlert().setValue(voPatAlert.getAlertTypeIsNotNull() ? voPatAlert.getAlertType() : null);
    form.ctnAlert().txtAlertComment().setValue(voPatAlert.getCommentsIsNotNull() ? voPatAlert.getComments(): null);
    form.ctnAlert().cmbAlertSource().setValue(voPatAlert.getSourceofInformationIsNotNull() ? voPatAlert.getSourceofInformation() : null);
    form.ctnAlert().pdtAlertDateIdentified().setValue(voPatAlert.getDateIdentifiedIsNotNull() ? voPatAlert.getDateIdentified() : null);

    if(voPatAlert.getAuthoringInformationIsNotNull())
        form.ctnAlert().ccAlertAuthor().setValue(voPatAlert.getAuthoringInformation());

    if(voPatAlert.getAlertType() != null && voPatAlert.getAlertType().getParent() != null && voPatAlert.getAlertType().getParent().getText()!= null)
    {
        form.ctnAlert().cmbAlertCategory().newRow(voPatAlert.getAlertType().getParent(), voPatAlert.getAlertType().getParent().getText());
        form.ctnAlert().cmbAlertCategory().setValue(voPatAlert.getAlertType().getParent());
    }

    loadCategoryTypes(); 

    form.ctnAlert().cmbAlertAlert().newRow(voPatAlert.getAlertType(), voPatAlert.getAlertType().getText());
    form.ctnAlert().cmbAlertAlert().setValue(voPatAlert.getAlertType());
}
项目:openMAXIMS    文件:Logic.java   
private PatientAlertEDischargeVo includeValueChangedForCareContext(PatientAlertEDischargeVo voAlert, boolean bInclude) 
{
    boolean bFound = false;
    for (int i = 0 ; voAlert.getIncludeAlertInDischargeReportsIsNotNull() && i < voAlert.getIncludeAlertInDischargeReports().size() ; i++)
    {
        IncludeAlertInDischargeReportsVo voInclude = voAlert.getIncludeAlertInDischargeReports().get(i);
        if (voInclude.getCareContextIsNotNull()
            && voInclude.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()))
        {
            bFound = true;
            voInclude.setIncludeInReport(bInclude);
            voAlert.getIncludeAlertInDischargeReports().set(i, voInclude);
        }

    }
    if ( !bFound )
        setAlertIncludeInfo(voAlert, bInclude);

    return voAlert;
}
项目:openMAXIMS    文件:Logic.java   
private void newAlert() 
{
    form.ctnAlert().cmbAlertSource().setFocus();
    form.setMode(FormMode.EDIT); 

    clearAlertControls();

    form.ctnAlert().ccAlertAuthor().initializeComponent();
    form.ctnAlert().setccAlertAuthorEnabled(true);
    form.ctnAlert().ccAlertAuthor().setIsRequiredPropertyToControls(Boolean.TRUE);

    form.getLocalContext().setAlertRecord(new PatientAlertEDischargeVo());
//  form.ctnAlert().setCollapsed(false);

    manageEnteringAlertDetails();

    form.getGlobalContext().Clinical.seteDischargeDisableTabs(true);
    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
protected PatientAlertEDischargeVo populateAlertDataFromScreen(PatientAlertEDischargeVo voPatientAlert)
{
    voPatientAlert.setAlertType(form.ctnAlert().cmbAlertAlert().getValue());
    voPatientAlert.setComments(form.ctnAlert().txtAlertComment().getValue());
    voPatientAlert.setSourceofInformation(form.ctnAlert().cmbAlertSource().getValue());
    voPatientAlert.setDateIdentified(form.ctnAlert().pdtAlertDateIdentified().getValue());

    if(voPatientAlert.getIsCurrentlyActiveAlert() == null)
        voPatientAlert.setIsCurrentlyActiveAlert(Boolean.TRUE); 

    voPatientAlert.setAuthoringInformation(form.ctnAlert().ccAlertAuthor().getValue());

    voPatientAlert.setPatient(form.getGlobalContext().Core.getPatientShort());

    if (voPatientAlert.getID_PatientAlert() == null)
        setAlertIncludeInfo(voPatientAlert, true);

    return voPatientAlert;
}
项目:openMAXIMS    文件:Logic.java   
protected void populateAlertScreenFromData(PatientAlertEDischargeVo voPatAlert)
{

    if (voPatAlert == null)
        return;
    form.ctnAlert().cmbAlertAlert().setValue(voPatAlert.getAlertTypeIsNotNull() ? voPatAlert.getAlertType() : null);
    form.ctnAlert().txtAlertComment().setValue(voPatAlert.getCommentsIsNotNull() ? voPatAlert.getComments(): null);
    form.ctnAlert().cmbAlertSource().setValue(voPatAlert.getSourceofInformationIsNotNull() ? voPatAlert.getSourceofInformation() : null);
    form.ctnAlert().pdtAlertDateIdentified().setValue(voPatAlert.getDateIdentifiedIsNotNull() ? voPatAlert.getDateIdentified() : null);

    if(voPatAlert.getAuthoringInformationIsNotNull())
        form.ctnAlert().ccAlertAuthor().setValue(voPatAlert.getAuthoringInformation());

    if(voPatAlert.getAlertType() != null && voPatAlert.getAlertType().getParent() != null && voPatAlert.getAlertType().getParent().getText()!= null)
    {
        form.ctnAlert().cmbAlertCategory().newRow(voPatAlert.getAlertType().getParent(), voPatAlert.getAlertType().getParent().getText());
        form.ctnAlert().cmbAlertCategory().setValue(voPatAlert.getAlertType().getParent());
    }

    loadCategoryTypes(); 

    form.ctnAlert().cmbAlertAlert().newRow(voPatAlert.getAlertType(), voPatAlert.getAlertType().getText());
    form.ctnAlert().cmbAlertAlert().setValue(voPatAlert.getAlertType());
}
项目:openMAXIMS    文件:Logic.java   
private PatientAlertEDischargeVo includeValueChangedForCareContext(PatientAlertEDischargeVo voAlert, boolean bInclude) 
{
    boolean bFound = false;
    for (int i = 0 ; voAlert.getIncludeAlertInDischargeReportsIsNotNull() && i < voAlert.getIncludeAlertInDischargeReports().size() ; i++)
    {
        IncludeAlertInDischargeReportsVo voInclude = voAlert.getIncludeAlertInDischargeReports().get(i);
        if (voInclude.getCareContextIsNotNull()
            && voInclude.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()))
        {
            bFound = true;
            voInclude.setIncludeInReport(bInclude);
            voAlert.getIncludeAlertInDischargeReports().set(i, voInclude);
        }

    }
    if ( !bFound )
        setAlertIncludeInfo(voAlert, bInclude);

    return voAlert;
}
项目:openmaxims-linux    文件:Logic.java   
private void newAlert() 
{
    form.ctnAlert().cmbAlertSource().setFocus();
    form.setMode(FormMode.EDIT); 

    clearAlertControls();

    form.ctnAlert().ccAlertAuthor().initializeComponent();
    form.ctnAlert().setccAlertAuthorEnabled(true);
    form.ctnAlert().ccAlertAuthor().setIsRequiredPropertyToControls(Boolean.TRUE);

    form.getLocalContext().setAlertRecord(new PatientAlertEDischargeVo());
//  form.ctnAlert().setCollapsed(false);

    manageEnteringAlertDetails();

    form.getGlobalContext().Clinical.seteDischargeDisableTabs(true);
    form.fireCustomControlValueChanged();
}
项目:openmaxims-linux    文件:Logic.java   
protected PatientAlertEDischargeVo populateAlertDataFromScreen(PatientAlertEDischargeVo voPatientAlert)
{
    voPatientAlert.setAlertType(form.ctnAlert().cmbAlertAlert().getValue());
    voPatientAlert.setComments(form.ctnAlert().txtAlertComment().getValue());
    voPatientAlert.setSourceofInformation(form.ctnAlert().cmbAlertSource().getValue());
    voPatientAlert.setDateIdentified(form.ctnAlert().pdtAlertDateIdentified().getValue());

    if(voPatientAlert.getIsCurrentlyActiveAlert() == null)
        voPatientAlert.setIsCurrentlyActiveAlert(Boolean.TRUE); 

    voPatientAlert.setAuthoringInformation(form.ctnAlert().ccAlertAuthor().getValue());

    voPatientAlert.setPatient(form.getGlobalContext().Core.getPatientShort());

    if (voPatientAlert.getID_PatientAlert() == null)
        setAlertIncludeInfo(voPatientAlert, true);

    return voPatientAlert;
}
项目:openmaxims-linux    文件:Logic.java   
protected void populateAlertScreenFromData(PatientAlertEDischargeVo voPatAlert)
{

    if (voPatAlert == null)
        return;
    form.ctnAlert().cmbAlertAlert().setValue(voPatAlert.getAlertTypeIsNotNull() ? voPatAlert.getAlertType() : null);
    form.ctnAlert().txtAlertComment().setValue(voPatAlert.getCommentsIsNotNull() ? voPatAlert.getComments(): null);
    form.ctnAlert().cmbAlertSource().setValue(voPatAlert.getSourceofInformationIsNotNull() ? voPatAlert.getSourceofInformation() : null);
    form.ctnAlert().pdtAlertDateIdentified().setValue(voPatAlert.getDateIdentifiedIsNotNull() ? voPatAlert.getDateIdentified() : null);

    if(voPatAlert.getAuthoringInformationIsNotNull())
        form.ctnAlert().ccAlertAuthor().setValue(voPatAlert.getAuthoringInformation());

    if(voPatAlert.getAlertType() != null && voPatAlert.getAlertType().getParent() != null && voPatAlert.getAlertType().getParent().getText()!= null)
    {
        form.ctnAlert().cmbAlertCategory().newRow(voPatAlert.getAlertType().getParent(), voPatAlert.getAlertType().getParent().getText());
        form.ctnAlert().cmbAlertCategory().setValue(voPatAlert.getAlertType().getParent());
    }

    loadCategoryTypes(); 

    form.ctnAlert().cmbAlertAlert().newRow(voPatAlert.getAlertType(), voPatAlert.getAlertType().getText());
    form.ctnAlert().cmbAlertAlert().setValue(voPatAlert.getAlertType());
}
项目:openmaxims-linux    文件:Logic.java   
private PatientAlertEDischargeVo includeValueChangedForCareContext(PatientAlertEDischargeVo voAlert, boolean bInclude) 
{
    boolean bFound = false;
    for (int i = 0 ; voAlert.getIncludeAlertInDischargeReportsIsNotNull() && i < voAlert.getIncludeAlertInDischargeReports().size() ; i++)
    {
        IncludeAlertInDischargeReportsVo voInclude = voAlert.getIncludeAlertInDischargeReports().get(i);
        if (voInclude.getCareContextIsNotNull()
            && voInclude.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()))
        {
            bFound = true;
            voInclude.setIncludeInReport(bInclude);
            voAlert.getIncludeAlertInDischargeReports().set(i, voInclude);
        }

    }
    if ( !bFound )
        setAlertIncludeInfo(voAlert, bInclude);

    return voAlert;
}
项目:AvoinApotti    文件:Logic.java   
private String createAlertRowTooltip(PatientAlertEDischargeVo alert)
{
    StringBuffer sb = new StringBuffer();
    sb.append("<b>Comment : </b>");
    sb.append(alert.getCommentsIsNotNull() ? alert.getComments().toString() : "");
    sb.append("<br>");
    sb.append("<b>Date Identified : </b>");
    sb.append(alert.getDateIdentifiedIsNotNull() ? alert.getDateIdentified().toString() : "");
    sb.append("<br>");
    sb.append("<b>Authoring Info : </b>");
    sb.append(alert.getAuthoringInformationIsNotNull() ? alert.getAuthoringInformation().toString(" - ") : "");
    sb.append("<br>");

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

    return sb.toString();
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onGrdAlertsSelectionChanged() throws PresentationLogicException 
{
    PatientAlertEDischargeVo voAlert = domain.getPatientAlert(form.grdAlerts().getValue());
    form.getLocalContext().setAlertRecord(voAlert);

    if(voAlert != null)
    {
        populateAlertScreenFromData(voAlert);
        updateContextMenus();
    }   
}
项目:AvoinApotti    文件:Logic.java   
private void setAlertIncludeInfo(PatientAlertEDischargeVo voAlert, boolean bInclude) 
{
    IncludeAlertInDischargeReportsVo voNewInclude = new IncludeAlertInDischargeReportsVo();
    voNewInclude.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    voNewInclude.setAlert(voAlert);
    voNewInclude.setIncludeInReport(bInclude);

    if (voAlert.getIncludeAlertInDischargeReports() == null)
        voAlert.setIncludeAlertInDischargeReports(new IncludeAlertInDischargeReportsVoCollection());

    voAlert.getIncludeAlertInDischargeReports().add(voNewInclude);
}
项目:AvoinApotti    文件:EDischargeAllergiesEtcComponentImpl.java   
public PatientAlertEDischargeVo getPatientAlert(PatientAlertRefVo patientalertRefVo) 
{   
    if(patientalertRefVo == null)
        throw new DomainRuntimeException("PatientAlert Filter not provided for list call. ");

    DomainFactory factory = getDomainFactory();
    ims.core.clinical.domain.objects.PatientAlert doPA = (ims.core.clinical.domain.objects.PatientAlert)factory.getDomainObject(ims.core.clinical.domain.objects.PatientAlert.class, patientalertRefVo.getID_PatientAlert());
    return PatientAlertEDischargeVoAssembler.create(doPA);      
}
项目:openMAXIMS    文件:Logic.java   
private String createAlertRowTooltip(PatientAlertEDischargeVo alert)
{
    StringBuffer sb = new StringBuffer();
    sb.append("<b>Comment : </b>");
    sb.append(alert.getCommentsIsNotNull() ? alert.getComments().toString() : "");
    sb.append("<br>");
    sb.append("<b>Date Identified : </b>");
    sb.append(alert.getDateIdentifiedIsNotNull() ? alert.getDateIdentified().toString() : "");
    sb.append("<br>");
    sb.append("<b>Authoring Info : </b>");
    sb.append(alert.getAuthoringInformationIsNotNull() ? alert.getAuthoringInformation().toString(" - ") : "");
    sb.append("<br>");

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

    return sb.toString();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onGrdAlertsSelectionChanged() throws PresentationLogicException 
{
    PatientAlertEDischargeVo voAlert = domain.getPatientAlert(form.grdAlerts().getValue());
    form.getLocalContext().setAlertRecord(voAlert);

    if(voAlert != null)
    {
        populateAlertScreenFromData(voAlert);
        updateContextMenus();
    }   
}
项目:openMAXIMS    文件:Logic.java   
private void setAlertIncludeInfo(PatientAlertEDischargeVo voAlert, boolean bInclude) 
{
    IncludeAlertInDischargeReportsVo voNewInclude = new IncludeAlertInDischargeReportsVo();
    voNewInclude.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    voNewInclude.setAlert(voAlert);
    voNewInclude.setIncludeInReport(bInclude);

    if (voAlert.getIncludeAlertInDischargeReports() == null)
        voAlert.setIncludeAlertInDischargeReports(new IncludeAlertInDischargeReportsVoCollection());

    voAlert.getIncludeAlertInDischargeReports().add(voNewInclude);
}
项目:openMAXIMS    文件:EDischargeAllergiesEtcComponentImpl.java   
public PatientAlertEDischargeVo getPatientAlert(PatientAlertRefVo patientalertRefVo) 
{   
    if(patientalertRefVo == null)
        throw new DomainRuntimeException("PatientAlert Filter not provided for list call. ");

    DomainFactory factory = getDomainFactory();
    ims.core.clinical.domain.objects.PatientAlert doPA = (ims.core.clinical.domain.objects.PatientAlert)factory.getDomainObject(ims.core.clinical.domain.objects.PatientAlert.class, patientalertRefVo.getID_PatientAlert());
    return PatientAlertEDischargeVoAssembler.create(doPA);      
}
项目:openMAXIMS    文件:Logic.java   
private String createAlertRowTooltip(PatientAlertEDischargeVo alert)
{
    StringBuffer sb = new StringBuffer();
    sb.append("<b>Comment : </b>");
    sb.append(alert.getCommentsIsNotNull() ? alert.getComments().toString() : "");
    sb.append("<br>");
    sb.append("<b>Date Identified : </b>");
    sb.append(alert.getDateIdentifiedIsNotNull() ? alert.getDateIdentified().toString() : "");
    sb.append("<br>");
    sb.append("<b>Authoring Info : </b>");
    sb.append(alert.getAuthoringInformationIsNotNull() ? alert.getAuthoringInformation().toString(" - ") : "");
    sb.append("<br>");

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

    return sb.toString();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onGrdAlertsSelectionChanged() throws PresentationLogicException 
{
    PatientAlertEDischargeVo voAlert = domain.getPatientAlert(form.grdAlerts().getValue());
    form.getLocalContext().setAlertRecord(voAlert);

    if(voAlert != null)
    {
        populateAlertScreenFromData(voAlert);
        updateContextMenus();
    }   
}
项目:openMAXIMS    文件:Logic.java   
private void setAlertIncludeInfo(PatientAlertEDischargeVo voAlert, boolean bInclude) 
{
    IncludeAlertInDischargeReportsVo voNewInclude = new IncludeAlertInDischargeReportsVo();
    voNewInclude.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    voNewInclude.setAlert(voAlert);
    voNewInclude.setIncludeInReport(bInclude);

    if (voAlert.getIncludeAlertInDischargeReports() == null)
        voAlert.setIncludeAlertInDischargeReports(new IncludeAlertInDischargeReportsVoCollection());

    voAlert.getIncludeAlertInDischargeReports().add(voNewInclude);
}
项目:openMAXIMS    文件:EDischargeAllergiesEtcComponentImpl.java   
public PatientAlertEDischargeVo getPatientAlert(PatientAlertRefVo patientalertRefVo) 
{   
    if(patientalertRefVo == null)
        throw new DomainRuntimeException("PatientAlert Filter not provided for list call. ");

    DomainFactory factory = getDomainFactory();
    ims.core.clinical.domain.objects.PatientAlert doPA = (ims.core.clinical.domain.objects.PatientAlert)factory.getDomainObject(ims.core.clinical.domain.objects.PatientAlert.class, patientalertRefVo.getID_PatientAlert());
    return PatientAlertEDischargeVoAssembler.create(doPA);      
}
项目:openmaxims-linux    文件:Logic.java   
private String createAlertRowTooltip(PatientAlertEDischargeVo alert)
{
    StringBuffer sb = new StringBuffer();
    sb.append("<b>Comment : </b>");
    sb.append(alert.getCommentsIsNotNull() ? alert.getComments().toString() : "");
    sb.append("<br>");
    sb.append("<b>Date Identified : </b>");
    sb.append(alert.getDateIdentifiedIsNotNull() ? alert.getDateIdentified().toString() : "");
    sb.append("<br>");
    sb.append("<b>Authoring Info : </b>");
    sb.append(alert.getAuthoringInformationIsNotNull() ? alert.getAuthoringInformation().toString(" - ") : "");
    sb.append("<br>");

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

    return sb.toString();
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onGrdAlertsSelectionChanged() throws PresentationLogicException 
{
    PatientAlertEDischargeVo voAlert = domain.getPatientAlert(form.grdAlerts().getValue());
    form.getLocalContext().setAlertRecord(voAlert);

    if(voAlert != null)
    {
        populateAlertScreenFromData(voAlert);
        updateContextMenus();
    }   
}
项目:openmaxims-linux    文件:Logic.java   
private void setAlertIncludeInfo(PatientAlertEDischargeVo voAlert, boolean bInclude) 
{
    IncludeAlertInDischargeReportsVo voNewInclude = new IncludeAlertInDischargeReportsVo();
    voNewInclude.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    voNewInclude.setAlert(voAlert);
    voNewInclude.setIncludeInReport(bInclude);

    if (voAlert.getIncludeAlertInDischargeReports() == null)
        voAlert.setIncludeAlertInDischargeReports(new IncludeAlertInDischargeReportsVoCollection());

    voAlert.getIncludeAlertInDischargeReports().add(voNewInclude);
}
项目:openmaxims-linux    文件:EDischargeAllergiesEtcComponentImpl.java   
public PatientAlertEDischargeVo getPatientAlert(PatientAlertRefVo patientalertRefVo) 
{   
    if(patientalertRefVo == null)
        throw new DomainRuntimeException("PatientAlert Filter not provided for list call. ");

    DomainFactory factory = getDomainFactory();
    ims.core.clinical.domain.objects.PatientAlert doPA = (ims.core.clinical.domain.objects.PatientAlert)factory.getDomainObject(ims.core.clinical.domain.objects.PatientAlert.class, patientalertRefVo.getID_PatientAlert());
    return PatientAlertEDischargeVoAssembler.create(doPA);      
}
项目: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();
    }
项目: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    文件: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    文件: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();
    }