Java 类ims.clinical.vo.lookups.TTORequired 实例源码

项目:openMAXIMS    文件:Logic.java   
private String getMedicationDisplayText(DischargeMedicationDetailsVo voMeds)
{
    if (voMeds == null || voMeds.getTTARequired() == null)
    {   
        form.getLocalContext().setSummaryMedicationParamColour(Color.Default); //WDEV-19000
        return null;
    }   

    if (TTORequired.REQUIRED.equals(voMeds.getTTARequired()))
    {
        if (Boolean.TRUE.equals(voMeds.getTTAReceived())) //WDEV-19271
        {   
            form.getLocalContext().setSummaryMedicationParamColour(Color.LightGreen);
            return "Required and Received" ;
        }   
        form.getLocalContext().setSummaryMedicationParamColour(Color.DarkOrange);
        return "Required and NOT Received";

    }
    form.getLocalContext().setSummaryMedicationParamColour(Color.LightGreen);
    return voMeds.getTTARequired().getText(); 


}
项目:AvoinApotti    文件:Logic.java   
private void updateControlStateLblRefreshDateTime(){
    form.lblRefreshDateTime().setVisible(TTORequired.NOT_REQUIRED.equals(form.cmbRequired().getValue())?false:true);
    //--------
    if (form.getMode().equals(FormMode.EDIT))
        form.btnOrderTTO().setVisible(TTORequired.REQUIRED.equals(form.cmbRequired().getValue())?true:false);
    //----------
}
项目:AvoinApotti    文件:Logic.java   
private void initialize()
{
    clearAll();
    clearSelectedPatient();
    initializeComponents();     
    populateWards();    

    form.cmbTTA().removeRow(TTORequired.NOT_SPECIFIED);
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onCmbTTAValueChanged() throws PresentationLogicException 
{
    if (form.chkTTA().getValue()
        &&  ( (form.cmbTTA().getValue() != null && ! form.cmbTTA().getValue().equals(TTORequired.REQUIRED))
            || form.cmbTTA().getValue() == null) )
        form.chkTTA().setValue(false);
}
项目:openMAXIMS    文件:Logic.java   
private RTLSummaryVo populateRTLSummary(CareContextShortVo careContext)
{
    if (careContext == null)
        return null;

    RTLSummaryVo rTLSummary = domain.getRTLSummaryForCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    if (rTLSummary == null)
    {
        rTLSummary = new RTLSummaryVo();
    }
    rTLSummary.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    rTLSummary.setIsMedsRequiredOrNotRequired(TTORequired.REQUIRED.equals(form.cmbRequired().getValue()) || TTORequired.NOT_REQUIRED.equals(form.cmbRequired().getValue()));

    return rTLSummary;
}
项目:openMAXIMS    文件:Logic.java   
private void updateControlStateLblRefreshDateTime(){
    form.lblRefreshDateTime().setVisible(TTORequired.NOT_REQUIRED.equals(form.cmbRequired().getValue())?false:true);
    //--------
    if (form.getMode().equals(FormMode.EDIT))
        form.btnOrderTTO().setVisible(TTORequired.REQUIRED.equals(form.cmbRequired().getValue())?true:false);
    //----------
}
项目:openMAXIMS    文件:Logic.java   
private void initialize()
{
    clearAll();
    clearSelectedPatient();
    initializeComponents();     
    populateWards();    

    form.GroupSearchDateInterval().setValue(GroupSearchDateIntervalEnumeration.rdoDischarge); // WDEV-18634 
    form.cmbTTA().removeRow(TTORequired.NOT_SPECIFIED);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCmbTTAValueChanged() throws PresentationLogicException 
{
    if (form.chkTTA().getValue()
        &&  ( (form.cmbTTA().getValue() != null && ! form.cmbTTA().getValue().equals(TTORequired.REQUIRED))
            || form.cmbTTA().getValue() == null) )
        form.chkTTA().setValue(false);
}
项目:openMAXIMS    文件:Logic.java   
private boolean isTTARequiredAndNoTTAMedicationSaved(DischargeMedicationDetailsLiteVo med)
{
    if (med == null)
        return false;
    if (TTORequired.REQUIRED.equals(med.getTTARequired()) && (med.getTTAs() == null || (med.getTTAs() != null && med.getTTAs().size() == 0)))
    {
        return true;    
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void updateControlStateLblRefreshDateTime(){
    form.lblRefreshDateTime().setVisible(TTORequired.NOT_REQUIRED.equals(form.cmbRequired().getValue())?false:true);
    //--------
    if (form.getMode().equals(FormMode.EDIT))
        form.btnOrderTTO().setVisible(TTORequired.REQUIRED.equals(form.cmbRequired().getValue())?true:false);
    //----------
}
项目:openMAXIMS    文件:Logic.java   
private void initialize()
{
    clearAll();
    clearSelectedPatient();
    initializeComponents();     
    populateWards();    

    form.cmbTTA().removeRow(TTORequired.NOT_SPECIFIED);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCmbTTAValueChanged() throws PresentationLogicException 
{
    if (form.chkTTA().getValue()
        &&  ( (form.cmbTTA().getValue() != null && ! form.cmbTTA().getValue().equals(TTORequired.REQUIRED))
            || form.cmbTTA().getValue() == null) )
        form.chkTTA().setValue(false);
}
项目:openmaxims-linux    文件:Logic.java   
private void updateControlStateLblRefreshDateTime(){
    form.lblRefreshDateTime().setVisible(TTORequired.NOT_REQUIRED.equals(form.cmbRequired().getValue())?false:true);
    //--------
    if (form.getMode().equals(FormMode.EDIT))
        form.btnOrderTTO().setVisible(TTORequired.REQUIRED.equals(form.cmbRequired().getValue())?true:false);
    //----------
}
项目:openmaxims-linux    文件:Logic.java   
private void initialize()
{
    clearAll();
    clearSelectedPatient();
    initializeComponents();     
    populateWards();    

    form.cmbTTA().removeRow(TTORequired.NOT_SPECIFIED);
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onCmbTTAValueChanged() throws PresentationLogicException 
{
    if (form.chkTTA().getValue()
        &&  ( (form.cmbTTA().getValue() != null && ! form.cmbTTA().getValue().equals(TTORequired.REQUIRED))
            || form.cmbTTA().getValue() == null) )
        form.chkTTA().setValue(false);
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(DischargeMedicationDetailsVo voMeds)
{
    clearInstanceControls();
    //WDEV-8183
    form.grdMedication().getRows().clear();
    //Should clear even if the new value is null

    form.grdJAC().getRows().clear();
    if (voMeds == null)
        return;

    form.cmbRequired().setValue(voMeds.getTTARequired());
    //-----------------------------------------------------
    if (form.getMode().equals(FormMode.EDIT))
        form.btnOrderTTO().setVisible(TTORequired.REQUIRED.equals(form.cmbRequired().getValue())?true:false);
    //--------------------------------------------------------
     if (voMeds.getTTAsIsNotNull() )
     {
            //  WDEV-9537
            TTAMedicationVoCollection ttas = voMeds.getTTAs();
            ttas.sort(new TTANameCaseInsensitiveComparator<TTAMedicationVo>() );

            for ( int i = 0 ; i < ttas.size() ; i++)
            {
                TTAMedicationVo voTTA = ttas.get(i);

                grdJACRow row = form.grdJAC().getRows().newRow();
                row.setColMedication(voTTA.getMedication());
                //------------------
                row.setTooltipForColMedication(voTTA.getMedication());
                //------------------
                row.setColDose(voTTA.getDoseAmount().toString() + " " + (voTTA.getDoseUnitIsNotNull() ? voTTA.getDoseUnit().toString() : ""));
                //------------
                row.setTooltipForColDose(voTTA.getDoseAmount().toString() + " " + (voTTA.getDoseUnitIsNotNull() ? voTTA.getDoseUnit().toString() : ""));
                //-------------
                row.setColRoute(voTTA.getRouteIsNotNull() ? voTTA.getRoute().toString() : null);
                row.setTooltipForColRoute(voTTA.getRouteIsNotNull() ? voTTA.getRoute().toString() : "");
                row.setColUFreq(voTTA.getFrequency());
                row.setTooltipForColUFreq(voTTA.getFrequency());
                row.setColDays(voTTA.getDaysSupply().toString());
                //------
                row.setTooltipForColDays(voTTA.getDaysSupply().toString());
                //----------
                row.setColGpCont(voTTA.getGpToContinueIsNotNull() ? voTTA.getGpToContinue().toString() : null);
                //---------------
                row.setTooltipForColGpCont(voTTA.getGpToContinueIsNotNull() ? voTTA.getGpToContinue().toString() : "");
                //---------
                row.setValue(voTTA);


                form.lblRefreshDateTime().setValue(voTTA.getSysInfoIsNotNull() ? voTTA.getSysInfo().getCreationDateTime().toString() : "");
            }
     }
    //form.grdJAC().sort(0);
    if (voMeds.getAdmissionMedicationChangesIsNotNull())
    {
        //  WDEV-9537
        AdmissionMedicationChangesVoCollection admissionMedicationChanges = voMeds.getAdmissionMedicationChanges();
        admissionMedicationChanges.sort(new TTANameCaseInsensitiveComparator<AdmissionMedicationChangesVo>());

        for ( int i = 0 ;i < admissionMedicationChanges.size() ; i++)
        {
            AdmissionMedicationChangesVo voChanges = admissionMedicationChanges.get(i);

            grdMedicationRow rowMeds = form.grdMedication().getRows().newRow();
            rowMeds.setcolAdm(voChanges.getMedication());
            rowMeds.setcolChange(voChanges.getMedicationChanges());
            rowMeds.setValue(voChanges);
        }
    //form.grdMedication().sort(0);
    }
    form.txtMedicationRecommendations().setValue(voMeds.getMedicationRecommendations());
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onChkTTAValueChanged() throws PresentationLogicException
{
    if (form.chkTTA().getValue())
        form.cmbTTA().setValue(TTORequired.REQUIRED);
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(DischargeMedicationDetailsVo voMeds)
{
    clearInstanceControls();
    //WDEV-8183
    form.grdMedication().getRows().clear();
    //Should clear even if the new value is null

    if (voMeds == null)
        return;

    form.cmbRequired().setValue(voMeds.getTTARequired());
    //-----------------------------------------------------
    if (form.getMode().equals(FormMode.EDIT))
        form.btnOrderTTO().setVisible(TTORequired.REQUIRED.equals(form.cmbRequired().getValue())?true:false);
    //--------------------------------------------------------
     if (voMeds.getTTAsIsNotNull())
     {
            //  WDEV-9537
            TTAMedicationVoCollection ttas = voMeds.getTTAs();
            //ttas.sort(new TTANameCaseInsensitiveComparator<TTAMedicationVo>() );
            populateTTAsFromData(ttas.sort()); //WDEV-19289 //WDEV-19789 

     }
    //form.grdJAC().sort(0);
    if (voMeds.getAdmissionMedicationChangesIsNotNull())
    {
        //  WDEV-9537
        AdmissionMedicationChangesVoCollection admissionMedicationChanges = voMeds.getAdmissionMedicationChanges();
        admissionMedicationChanges.sort(new TTANameCaseInsensitiveComparator<AdmissionMedicationChangesVo>());

        for ( int i = 0 ;i < admissionMedicationChanges.size() ; i++)
        {
            AdmissionMedicationChangesVo voChanges = admissionMedicationChanges.get(i);

            grdMedicationRow rowMeds = form.grdMedication().getRows().newRow();
            rowMeds.setcolAdm(voChanges.getMedication());
            rowMeds.setcolChange(voChanges.getMedicationChanges());
            rowMeds.setValue(voChanges);
        }
    //form.grdMedication().sort(0);
    }
    form.txtMedicationRecommendations().setValue(voMeds.getMedicationRecommendations());
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onChkTTAValueChanged() throws PresentationLogicException
{
    if (form.chkTTA().getValue())
        form.cmbTTA().setValue(TTORequired.REQUIRED);
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(DischargeMedicationDetailsVo voMeds)
{
    clearInstanceControls();
    //WDEV-8183
    form.grdMedication().getRows().clear();
    //Should clear even if the new value is null

    form.grdJAC().getRows().clear();
    if (voMeds == null)
        return;

    form.cmbRequired().setValue(voMeds.getTTARequired());
    //-----------------------------------------------------
    if (form.getMode().equals(FormMode.EDIT))
        form.btnOrderTTO().setVisible(TTORequired.REQUIRED.equals(form.cmbRequired().getValue())?true:false);
    //--------------------------------------------------------
     if (voMeds.getTTAsIsNotNull() )
     {
            //  WDEV-9537
            TTAMedicationVoCollection ttas = voMeds.getTTAs();
            ttas.sort(new TTANameCaseInsensitiveComparator<TTAMedicationVo>() );

            for ( int i = 0 ; i < ttas.size() ; i++)
            {
                TTAMedicationVo voTTA = ttas.get(i);

                grdJACRow row = form.grdJAC().getRows().newRow();
                row.setColMedication(voTTA.getMedication());
                //------------------
                row.setTooltipForColMedication(voTTA.getMedication());
                //------------------
                row.setColDose(voTTA.getDoseAmount().toString() + " " + (voTTA.getDoseUnitIsNotNull() ? voTTA.getDoseUnit().toString() : ""));
                //------------
                row.setTooltipForColDose(voTTA.getDoseAmount().toString() + " " + (voTTA.getDoseUnitIsNotNull() ? voTTA.getDoseUnit().toString() : ""));
                //-------------
                row.setColRoute(voTTA.getRouteIsNotNull() ? voTTA.getRoute().toString() : null);
                row.setTooltipForColRoute(voTTA.getRouteIsNotNull() ? voTTA.getRoute().toString() : "");
                row.setColUFreq(voTTA.getFrequency());
                row.setTooltipForColUFreq(voTTA.getFrequency());
                row.setColDays(voTTA.getDaysSupply().toString());
                //------
                row.setTooltipForColDays(voTTA.getDaysSupply().toString());
                //----------
                row.setColGpCont(voTTA.getGpToContinueIsNotNull() ? voTTA.getGpToContinue().toString() : null);
                //---------------
                row.setTooltipForColGpCont(voTTA.getGpToContinueIsNotNull() ? voTTA.getGpToContinue().toString() : "");
                //---------
                row.setValue(voTTA);


                form.lblRefreshDateTime().setValue(voTTA.getSysInfoIsNotNull() ? voTTA.getSysInfo().getCreationDateTime().toString() : "");
            }
     }
    //form.grdJAC().sort(0);
    if (voMeds.getAdmissionMedicationChangesIsNotNull())
    {
        //  WDEV-9537
        AdmissionMedicationChangesVoCollection admissionMedicationChanges = voMeds.getAdmissionMedicationChanges();
        admissionMedicationChanges.sort(new TTANameCaseInsensitiveComparator<AdmissionMedicationChangesVo>());

        for ( int i = 0 ;i < admissionMedicationChanges.size() ; i++)
        {
            AdmissionMedicationChangesVo voChanges = admissionMedicationChanges.get(i);

            grdMedicationRow rowMeds = form.grdMedication().getRows().newRow();
            rowMeds.setcolAdm(voChanges.getMedication());
            rowMeds.setcolChange(voChanges.getMedicationChanges());
            rowMeds.setValue(voChanges);
        }
    //form.grdMedication().sort(0);
    }
    form.txtMedicationRecommendations().setValue(voMeds.getMedicationRecommendations());
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onChkTTAValueChanged() throws PresentationLogicException
{
    if (form.chkTTA().getValue())
        form.cmbTTA().setValue(TTORequired.REQUIRED);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(DischargeMedicationDetailsVo voMeds)
{
    clearInstanceControls();
    //WDEV-8183
    form.grdMedication().getRows().clear();
    //Should clear even if the new value is null

    form.grdJAC().getRows().clear();
    if (voMeds == null)
        return;

    form.cmbRequired().setValue(voMeds.getTTARequired());
    //-----------------------------------------------------
    if (form.getMode().equals(FormMode.EDIT))
        form.btnOrderTTO().setVisible(TTORequired.REQUIRED.equals(form.cmbRequired().getValue())?true:false);
    //--------------------------------------------------------
     if (voMeds.getTTAsIsNotNull() )
     {
            //  WDEV-9537
            TTAMedicationVoCollection ttas = voMeds.getTTAs();
            ttas.sort(new TTANameCaseInsensitiveComparator<TTAMedicationVo>() );

            for ( int i = 0 ; i < ttas.size() ; i++)
            {
                TTAMedicationVo voTTA = ttas.get(i);

                grdJACRow row = form.grdJAC().getRows().newRow();
                row.setColMedication(voTTA.getMedication());
                //------------------
                row.setTooltipForColMedication(voTTA.getMedication());
                //------------------
                row.setColDose(voTTA.getDoseAmount().toString() + " " + (voTTA.getDoseUnitIsNotNull() ? voTTA.getDoseUnit().toString() : ""));
                //------------
                row.setTooltipForColDose(voTTA.getDoseAmount().toString() + " " + (voTTA.getDoseUnitIsNotNull() ? voTTA.getDoseUnit().toString() : ""));
                //-------------
                row.setColRoute(voTTA.getRouteIsNotNull() ? voTTA.getRoute().toString() : null);
                row.setTooltipForColRoute(voTTA.getRouteIsNotNull() ? voTTA.getRoute().toString() : "");
                row.setColUFreq(voTTA.getFrequency());
                row.setTooltipForColUFreq(voTTA.getFrequency());
                row.setColDays(voTTA.getDaysSupply().toString());
                //------
                row.setTooltipForColDays(voTTA.getDaysSupply().toString());
                //----------
                row.setColGpCont(voTTA.getGpToContinueIsNotNull() ? voTTA.getGpToContinue().toString() : null);
                //---------------
                row.setTooltipForColGpCont(voTTA.getGpToContinueIsNotNull() ? voTTA.getGpToContinue().toString() : "");
                //---------
                row.setValue(voTTA);


                form.lblRefreshDateTime().setValue(voTTA.getSysInfoIsNotNull() ? voTTA.getSysInfo().getCreationDateTime().toString() : "");
            }
     }
    //form.grdJAC().sort(0);
    if (voMeds.getAdmissionMedicationChangesIsNotNull())
    {
        //  WDEV-9537
        AdmissionMedicationChangesVoCollection admissionMedicationChanges = voMeds.getAdmissionMedicationChanges();
        admissionMedicationChanges.sort(new TTANameCaseInsensitiveComparator<AdmissionMedicationChangesVo>());

        for ( int i = 0 ;i < admissionMedicationChanges.size() ; i++)
        {
            AdmissionMedicationChangesVo voChanges = admissionMedicationChanges.get(i);

            grdMedicationRow rowMeds = form.grdMedication().getRows().newRow();
            rowMeds.setcolAdm(voChanges.getMedication());
            rowMeds.setcolChange(voChanges.getMedicationChanges());
            rowMeds.setValue(voChanges);
        }
    //form.grdMedication().sort(0);
    }
    form.txtMedicationRecommendations().setValue(voMeds.getMedicationRecommendations());
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onChkTTAValueChanged() throws PresentationLogicException
{
    if (form.chkTTA().getValue())
        form.cmbTTA().setValue(TTORequired.REQUIRED);
}