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

项目:AvoinApotti    文件:Logic.java   
private void checkNoAlertStatus(PatientNoAlertInfoVo voPatientNoAlertInfo) 
{
    if(voPatientNoAlertInfo != null 
        && voPatientNoAlertInfo.getAlertStatusIsNotNull() 
        && voPatientNoAlertInfo.getAlertStatus().equals(PatientAlertStatus.NOKNOWNALERTS))
    {
        form.lblNoKnownAllerts().setVisible(true);
        form.lblNoKnownAllerts().setTooltip(voPatientNoAlertInfo.createInfoTooltip().toString());

        if (form.getMode().equals(FormMode.VIEW))
            form.btnUpdate().setEnabled(true);

        populateScreenFromData(voPatientNoAlertInfo);
    }
    else
    {
        form.lblNoKnownAllerts().setVisible(false);
        form.lblNoKnownAllerts().setTooltip("");
        form.btnUpdate().setEnabled(false);
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void populateScreenFromData(PatientNoAlertInfoVo voNoAlert)
{
    clearScreen();

    if (form.getMode().equals(FormMode.EDIT))
        this.form.ctnDetails().chkNoKnownAlerts().setVisible(true);

    this.form.ctnDetails().chkNoKnownAlerts().setValue(true);
    this.form.ctnDetails().cmbSource().setValue(voNoAlert.getNoAlertSourceofInformationIsNotNull() ? voNoAlert.getNoAlertSourceofInformation() : null);
    this.form.ctnDetails().pdtIdentified().setValue(voNoAlert.getWhenIdentifiedIsNotNull() ? voNoAlert.getWhenIdentified() : null);

    if(voNoAlert.getAuthoringInformationIsNotNull())
        form.ctnDetails().customControlAuthoringInfo().setValue(voNoAlert.getAuthoringInformation());

    if(voNoAlert.getRecordingInformationIsNotNull()){
        if(voNoAlert.getRecordingInformation().getRecordingUserIsNotNull()){
            form.ctnDetails().cmbRecordingHCP().newRow(voNoAlert.getRecordingInformation().getRecordingUser(), voNoAlert.getRecordingInformation().getRecordingUser().toString());
            form.ctnDetails().cmbRecordingHCP().setValue(voNoAlert.getRecordingInformation().getRecordingUser());
        }
        form.ctnDetails().dtimRecordingDateTime().setValue(voNoAlert.getRecordingInformation().getRecordingDateTime());
    }
}
项目:AvoinApotti    文件:AlertsImpl.java   
public PatientNoAlertInfoVo savePatientCoreClinicalData(PatientNoAlertInfoVo patientNoAlertInfo) throws StaleObjectException, UniqueKeyViolationException 
{
    if(!patientNoAlertInfo.isValidated())
    {
        throw new CodingRuntimeException("PatientNoAlertInfoVo Value Object Alert has not been validated");
    }

    DomainFactory factory = getDomainFactory();
    PatientNoAlertInfo doPatientNoAlertInfo = PatientNoAlertInfoVoAssembler.extractPatientNoAlertInfo(factory, patientNoAlertInfo);

    try
    {
        factory.save(doPatientNoAlertInfo);
    } 
    catch(UnqViolationUncheckedException e)
    {       
        PatientNoAlertInfo noAlertInfo = PatientNoAlertInfo.getPatientNoAlertInfoFromPatient(factory, patientNoAlertInfo.getPatient().getID_Patient());
        if (noAlertInfo != null && noAlertInfo.getId() != null && !(noAlertInfo.getId().equals(patientNoAlertInfo.getID_PatientNoAlertInfo())))
        {
            throw new UniqueKeyViolationException(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue(), e);                    
        }

        throw (e);
    }
    return (PatientNoAlertInfoVoAssembler.create(doPatientNoAlertInfo));        
}
项目:openMAXIMS    文件:Logic.java   
private void checkNoAlertStatus(PatientNoAlertInfoVo voPatientNoAlertInfo) 
{
    if(voPatientNoAlertInfo != null 
        && voPatientNoAlertInfo.getAlertStatusIsNotNull() 
        && voPatientNoAlertInfo.getAlertStatus().equals(PatientAlertStatus.NOKNOWNALERTS))
    {
        form.lblNoKnownAllerts().setVisible(true);
        form.lblNoKnownAllerts().setTooltip(voPatientNoAlertInfo.createInfoTooltip().toString());

        if (form.getMode().equals(FormMode.VIEW))
            form.btnUpdate().setEnabled(true);

        populateScreenFromData(voPatientNoAlertInfo);
    }
    else
    {
        form.lblNoKnownAllerts().setVisible(false);
        form.lblNoKnownAllerts().setTooltip("");
        form.btnUpdate().setEnabled(false);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void populateScreenFromData(PatientNoAlertInfoVo voNoAlert)
{
    clearScreen();

    if (form.getMode().equals(FormMode.EDIT))
        this.form.ctnDetails().chkNoKnownAlerts().setVisible(true);

    this.form.ctnDetails().chkNoKnownAlerts().setValue(true);
    this.form.ctnDetails().cmbSource().setValue(voNoAlert.getNoAlertSourceofInformationIsNotNull() ? voNoAlert.getNoAlertSourceofInformation() : null);
    this.form.ctnDetails().pdtIdentified().setValue(voNoAlert.getWhenIdentifiedIsNotNull() ? voNoAlert.getWhenIdentified() : null);

    if(voNoAlert.getAuthoringInformationIsNotNull())
        form.ctnDetails().customControlAuthoringInfo().setValue(voNoAlert.getAuthoringInformation());

    if(voNoAlert.getRecordingInformationIsNotNull()){
        if(voNoAlert.getRecordingInformation().getRecordingUserIsNotNull()){
            form.ctnDetails().cmbRecordingHCP().newRow(voNoAlert.getRecordingInformation().getRecordingUser(), voNoAlert.getRecordingInformation().getRecordingUser().toString());
            form.ctnDetails().cmbRecordingHCP().setValue(voNoAlert.getRecordingInformation().getRecordingUser());
        }
        form.ctnDetails().dtimRecordingDateTime().setValue(voNoAlert.getRecordingInformation().getRecordingDateTime());
    }
}
项目:openMAXIMS    文件:AlertsImpl.java   
public PatientNoAlertInfoVo savePatientCoreClinicalData(PatientNoAlertInfoVo patientNoAlertInfo) throws StaleObjectException, UniqueKeyViolationException 
{
    if(!patientNoAlertInfo.isValidated())
    {
        throw new CodingRuntimeException("PatientNoAlertInfoVo Value Object Alert has not been validated");
    }

    DomainFactory factory = getDomainFactory();
    PatientNoAlertInfo doPatientNoAlertInfo = PatientNoAlertInfoVoAssembler.extractPatientNoAlertInfo(factory, patientNoAlertInfo);

    try
    {
        factory.save(doPatientNoAlertInfo);
    } 
    catch(UnqViolationUncheckedException e)
    {       
        PatientNoAlertInfo noAlertInfo = PatientNoAlertInfo.getPatientNoAlertInfoFromPatient(factory, patientNoAlertInfo.getPatient().getID_Patient());
        if (noAlertInfo != null && noAlertInfo.getId() != null && !(noAlertInfo.getId().equals(patientNoAlertInfo.getID_PatientNoAlertInfo())))
        {
            throw new UniqueKeyViolationException(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue(), e);                    
        }

        throw (e);
    }
    return (PatientNoAlertInfoVoAssembler.create(doPatientNoAlertInfo));        
}
项目:openMAXIMS    文件:Logic.java   
private void checkNoAlertStatus(PatientNoAlertInfoVo voPatientNoAlertInfo) 
{
    if(voPatientNoAlertInfo != null 
        && voPatientNoAlertInfo.getAlertStatusIsNotNull() 
        && voPatientNoAlertInfo.getAlertStatus().equals(PatientAlertStatus.NOKNOWNALERTS))
    {
        form.lblNoKnownAllerts().setVisible(true);
        form.lblNoKnownAllerts().setTooltip(voPatientNoAlertInfo.createInfoTooltip().toString());

        if (form.getMode().equals(FormMode.VIEW))
            form.btnUpdate().setEnabled(true);

        populateScreenFromData(voPatientNoAlertInfo);
    }
    else
    {
        form.lblNoKnownAllerts().setVisible(false);
        form.lblNoKnownAllerts().setTooltip("");
        form.btnUpdate().setEnabled(false);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void populateScreenFromData(PatientNoAlertInfoVo voNoAlert)
{
    clearScreen();

    if (form.getMode().equals(FormMode.EDIT))
        this.form.ctnDetails().chkNoKnownAlerts().setVisible(true);

    this.form.ctnDetails().chkNoKnownAlerts().setValue(true);
    this.form.ctnDetails().cmbSource().setValue(voNoAlert.getNoAlertSourceofInformationIsNotNull() ? voNoAlert.getNoAlertSourceofInformation() : null);
    this.form.ctnDetails().pdtIdentified().setValue(voNoAlert.getWhenIdentifiedIsNotNull() ? voNoAlert.getWhenIdentified() : null);

    if(voNoAlert.getAuthoringInformationIsNotNull())
        form.ctnDetails().customControlAuthoringInfo().setValue(voNoAlert.getAuthoringInformation());

    if(voNoAlert.getRecordingInformationIsNotNull()){
        if(voNoAlert.getRecordingInformation().getRecordingUserIsNotNull()){
            form.ctnDetails().cmbRecordingHCP().newRow(voNoAlert.getRecordingInformation().getRecordingUser(), voNoAlert.getRecordingInformation().getRecordingUser().toString());
            form.ctnDetails().cmbRecordingHCP().setValue(voNoAlert.getRecordingInformation().getRecordingUser());
        }
        form.ctnDetails().dtimRecordingDateTime().setValue(voNoAlert.getRecordingInformation().getRecordingDateTime());
    }
}
项目:openMAXIMS    文件:AlertsImpl.java   
public PatientNoAlertInfoVo savePatientCoreClinicalData(PatientNoAlertInfoVo patientNoAlertInfo) throws StaleObjectException, UniqueKeyViolationException 
{
    if(!patientNoAlertInfo.isValidated())
    {
        throw new CodingRuntimeException("PatientNoAlertInfoVo Value Object Alert has not been validated");
    }

    DomainFactory factory = getDomainFactory();
    PatientNoAlertInfo doPatientNoAlertInfo = PatientNoAlertInfoVoAssembler.extractPatientNoAlertInfo(factory, patientNoAlertInfo);

    try
    {
        factory.save(doPatientNoAlertInfo);
    } 
    catch(UnqViolationUncheckedException e)
    {       
        PatientNoAlertInfo noAlertInfo = PatientNoAlertInfo.getPatientNoAlertInfoFromPatient(factory, patientNoAlertInfo.getPatient().getID_Patient());
        if (noAlertInfo != null && noAlertInfo.getId() != null && !(noAlertInfo.getId().equals(patientNoAlertInfo.getID_PatientNoAlertInfo())))
        {
            throw new UniqueKeyViolationException(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue(), e);                    
        }

        throw (e);
    }
    return (PatientNoAlertInfoVoAssembler.create(doPatientNoAlertInfo));        
}
项目:openmaxims-linux    文件:Logic.java   
private void checkNoAlertStatus(PatientNoAlertInfoVo voPatientNoAlertInfo) 
{
    if(voPatientNoAlertInfo != null 
        && voPatientNoAlertInfo.getAlertStatusIsNotNull() 
        && voPatientNoAlertInfo.getAlertStatus().equals(PatientAlertStatus.NOKNOWNALERTS))
    {
        form.lblNoKnownAllerts().setVisible(true);
        form.lblNoKnownAllerts().setTooltip(voPatientNoAlertInfo.createInfoTooltip().toString());

        if (form.getMode().equals(FormMode.VIEW))
            form.btnUpdate().setEnabled(true);

        populateScreenFromData(voPatientNoAlertInfo);
    }
    else
    {
        form.lblNoKnownAllerts().setVisible(false);
        form.lblNoKnownAllerts().setTooltip("");
        form.btnUpdate().setEnabled(false);
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void populateScreenFromData(PatientNoAlertInfoVo voNoAlert)
{
    clearScreen();

    if (form.getMode().equals(FormMode.EDIT))
        this.form.ctnDetails().chkNoKnownAlerts().setVisible(true);

    this.form.ctnDetails().chkNoKnownAlerts().setValue(true);
    this.form.ctnDetails().cmbSource().setValue(voNoAlert.getNoAlertSourceofInformationIsNotNull() ? voNoAlert.getNoAlertSourceofInformation() : null);
    this.form.ctnDetails().pdtIdentified().setValue(voNoAlert.getWhenIdentifiedIsNotNull() ? voNoAlert.getWhenIdentified() : null);

    if(voNoAlert.getAuthoringInformationIsNotNull())
        form.ctnDetails().customControlAuthoringInfo().setValue(voNoAlert.getAuthoringInformation());

    if(voNoAlert.getRecordingInformationIsNotNull()){
        if(voNoAlert.getRecordingInformation().getRecordingUserIsNotNull()){
            form.ctnDetails().cmbRecordingHCP().newRow(voNoAlert.getRecordingInformation().getRecordingUser(), voNoAlert.getRecordingInformation().getRecordingUser().toString());
            form.ctnDetails().cmbRecordingHCP().setValue(voNoAlert.getRecordingInformation().getRecordingUser());
        }
        form.ctnDetails().dtimRecordingDateTime().setValue(voNoAlert.getRecordingInformation().getRecordingDateTime());
    }
}
项目:openmaxims-linux    文件:AlertsImpl.java   
public PatientNoAlertInfoVo savePatientCoreClinicalData(PatientNoAlertInfoVo patientNoAlertInfo) throws StaleObjectException, UniqueKeyViolationException 
{
    if(!patientNoAlertInfo.isValidated())
    {
        throw new CodingRuntimeException("PatientNoAlertInfoVo Value Object Alert has not been validated");
    }

    DomainFactory factory = getDomainFactory();
    PatientNoAlertInfo doPatientNoAlertInfo = PatientNoAlertInfoVoAssembler.extractPatientNoAlertInfo(factory, patientNoAlertInfo);

    try
    {
        factory.save(doPatientNoAlertInfo);
    } 
    catch(UnqViolationUncheckedException e)
    {       
        PatientNoAlertInfo noAlertInfo = PatientNoAlertInfo.getPatientNoAlertInfoFromPatient(factory, patientNoAlertInfo.getPatient().getID_Patient());
        if (noAlertInfo != null && noAlertInfo.getId() != null && !(noAlertInfo.getId().equals(patientNoAlertInfo.getID_PatientNoAlertInfo())))
        {
            throw new UniqueKeyViolationException(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue(), e);                    
        }

        throw (e);
    }
    return (PatientNoAlertInfoVoAssembler.create(doPatientNoAlertInfo));        
}
项目:AvoinApotti    文件:AlertsImpl.java   
public PatientNoAlertInfoVo getPatientNoAlertInfo(PatientRefVo patientRefVo) 
{
    DomainFactory factory = getDomainFactory();

    PatientNoAlertInfo patientNoAlertInfo = PatientNoAlertInfo.getPatientNoAlertInfoFromPatient(factory, patientRefVo.getID_Patient());
    return PatientNoAlertInfoVoAssembler.create(patientNoAlertInfo);
}
项目:openMAXIMS    文件:AlertsImpl.java   
public PatientNoAlertInfoVo getPatientNoAlertInfo(PatientRefVo patientRefVo) 
{
    DomainFactory factory = getDomainFactory();

    PatientNoAlertInfo patientNoAlertInfo = PatientNoAlertInfo.getPatientNoAlertInfoFromPatient(factory, patientRefVo.getID_Patient());
    return PatientNoAlertInfoVoAssembler.create(patientNoAlertInfo);
}
项目:openMAXIMS    文件:AlertsImpl.java   
public PatientNoAlertInfoVo getPatientNoAlertInfo(PatientRefVo patientRefVo) 
{
    DomainFactory factory = getDomainFactory();

    PatientNoAlertInfo patientNoAlertInfo = PatientNoAlertInfo.getPatientNoAlertInfoFromPatient(factory, patientRefVo.getID_Patient());
    return PatientNoAlertInfoVoAssembler.create(patientNoAlertInfo);
}
项目:openmaxims-linux    文件:AlertsImpl.java   
public PatientNoAlertInfoVo getPatientNoAlertInfo(PatientRefVo patientRefVo) 
{
    DomainFactory factory = getDomainFactory();

    PatientNoAlertInfo patientNoAlertInfo = PatientNoAlertInfo.getPatientNoAlertInfoFromPatient(factory, patientRefVo.getID_Patient());
    return PatientNoAlertInfoVoAssembler.create(patientNoAlertInfo);
}
项目:AvoinApotti    文件:Logic.java   
private void initializeHasNoKnownAlerts() 
{
    PatientNoAlertInfoVo voPatientNoAlertInfo = domain.getPatientNoAlertInfo(form.getGlobalContext().Core.getPatientShort());       
    form.getLocalContext().setPatientNoAlertInfoVo(voPatientNoAlertInfo);           
    checkNoAlertStatus(voPatientNoAlertInfo);
}
项目:openMAXIMS    文件:Logic.java   
private void initializeHasNoKnownAlerts() 
{
    PatientNoAlertInfoVo voPatientNoAlertInfo = domain.getPatientNoAlertInfo(form.getGlobalContext().Core.getPatientShort());       
    form.getLocalContext().setPatientNoAlertInfoVo(voPatientNoAlertInfo);           
    checkNoAlertStatus(voPatientNoAlertInfo);
}
项目:openMAXIMS    文件:Logic.java   
private void initializeHasNoKnownAlerts() 
{
    PatientNoAlertInfoVo voPatientNoAlertInfo = domain.getPatientNoAlertInfo(form.getGlobalContext().Core.getPatientShort());       
    form.getLocalContext().setPatientNoAlertInfoVo(voPatientNoAlertInfo);           
    checkNoAlertStatus(voPatientNoAlertInfo);
}
项目:openmaxims-linux    文件:Logic.java   
private void initializeHasNoKnownAlerts() 
{
    PatientNoAlertInfoVo voPatientNoAlertInfo = domain.getPatientNoAlertInfo(form.getGlobalContext().Core.getPatientShort());       
    form.getLocalContext().setPatientNoAlertInfoVo(voPatientNoAlertInfo);           
    checkNoAlertStatus(voPatientNoAlertInfo);
}