Java 类ims.core.vo.lookups.SourceOfReferralCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void bindCmbSourceOfReferralLookup()
{
    form.cmbSourceOfReferral().clear();

    SourceOfReferralCollection lookupCollection = LookupHelper.getSourceOfReferral(this.domain.getLookupService());
    for(int x = 0; x < lookupCollection.size(); x++)
    {
        if(SourceOfReferral.CONSULTANT.equals(lookupCollection.get(x))
            && ! ConfigFlag.UI.BED_INFO_UI_TYPE.getValue().equals("CCO")) //wdev-13472
        {
            //DONT add consultant if its not WAITING tab
            //IF its WAITING tab, only add if its EmergencyAdmission
            if(!form.lyrAdmission().tabWaiting().isVisible() 
                || (form.lyrAdmission().tabWaiting().isVisible() 
                    && (form.getLocalContext().getIsEmergencyAdmissionTab() == null 
                        || (form.getLocalContext().getIsEmergencyAdmissionTabIsNotNull() 
                            && !form.getLocalContext().getIsEmergencyAdmissionTab()))))
                    continue;
        }

        form.cmbSourceOfReferral().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void bindCmbSourceOfReferralLookup()
{
    form.cmbSourceOfReferral().clear();

    SourceOfReferralCollection lookupCollection = LookupHelper.getSourceOfReferral(this.domain.getLookupService());
    for(int x = 0; x < lookupCollection.size(); x++)
    {
        if(SourceOfReferral.CONSULTANT.equals(lookupCollection.get(x))
            && ! ConfigFlag.UI.BED_INFO_UI_TYPE.getValue().equals("CCO")) //wdev-13472
        {
            //DONT add consultant if its not WAITING tab
            //IF its WAITING tab, only add if its EmergencyAdmission
            if(!form.lyrAdmission().tabWaiting().isVisible() 
                || (form.lyrAdmission().tabWaiting().isVisible() 
                    && (form.getLocalContext().getIsEmergencyAdmissionTab() == null 
                        || (form.getLocalContext().getIsEmergencyAdmissionTabIsNotNull() 
                            && !form.getLocalContext().getIsEmergencyAdmissionTab()))))
                    continue;
        }

        form.cmbSourceOfReferral().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void bindCmbSourceOfReferralLookup()
{
    form.cmbSourceOfReferral().clear();

    SourceOfReferralCollection lookupCollection = LookupHelper.getSourceOfReferral(this.domain.getLookupService());
    for(int x = 0; x < lookupCollection.size(); x++)
    {
        if(SourceOfReferral.CONSULTANT.equals(lookupCollection.get(x))
            && ! ConfigFlag.UI.BED_INFO_UI_TYPE.getValue().equals("CCO")) //wdev-13472
        {
            //DONT add consultant if its not WAITING tab
            //IF its WAITING tab, only add if its EmergencyAdmission
            if(!form.lyrAdmission().tabWaiting().isVisible() 
                || (form.lyrAdmission().tabWaiting().isVisible() 
                    && (form.getLocalContext().getIsEmergencyAdmissionTab() == null 
                        || (form.getLocalContext().getIsEmergencyAdmissionTabIsNotNull() 
                            && !form.getLocalContext().getIsEmergencyAdmissionTab()))))
                    continue;
        }

        form.cmbSourceOfReferral().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
    }
}
项目:AvoinApotti    文件:Logic.java   
public void initialize(CALLINGFORM callingForm)
{
    form.authoringControl().setValue((IMos) domain.getMosUser());
    //WDEV-18142
    form.ccConsultant().initializeConsultantResponsibleHcp(MosType.MEDIC, MedicGrade.CONS, null);

    form.getLocalContext().setCurrentAwaitingClinicalInformationVo(null);
    form.getGlobalContext().RefMan.setAwaitingClinicalInfo(null);
    form.getGlobalContext().RefMan.setAwaitingClinicalInfoBoolean(null);

    //wdev-12430
    form.cmbSOR().clear();
    SourceOfReferralCollection tempVoColl = ims.core.vo.lookups.LookupHelper.getSourceOfReferral(domain.getLookupService());
    if(tempVoColl != null)
        for(int i = 0;i < tempVoColl.size();i++ )
        {
            if(tempVoColl.get(i) != null 
                && (tempVoColl.get(i).equals(SourceOfReferral.GP) || tempVoColl.get(i).equals(SourceOfReferral.AHP)
                || tempVoColl.get(i).equals(SourceOfReferral.TRANSFER) || tempVoColl.get(i).equals(SourceOfReferral.SELF) || tempVoColl.get(i).equals(SourceOfReferral.CONSULTANT) ))
                form.cmbSOR().newRow((SourceOfReferral)tempVoColl.get(i),tempVoColl.get(i).getText());
        }
    //------------------
    form.lblProcedure().setVisible(ConfigFlag.GEN.CREATE_ICP_ON_ACCEPTANCE_OF_REFERRAL.getValue());
    form.qmbProcedure().setVisible(ConfigFlag.GEN.CREATE_ICP_ON_ACCEPTANCE_OF_REFERRAL.getValue());


    // WDEV-12866
    // Use the new function to list active Contracts for a specific location
    //      ContractConfigForReferralDetailsComponentVoCollection contracts = domain.listActiveContracts(domain.getOrganisationByLocation(engine.getCurrentLocation().getID()));
    ContractConfigForReferralDetailsComponentVoCollection contracts = domain.listActiveContractsForLocation((LocationRefVo) engine.getCurrentLocation());
    for (int i = 0; contracts != null && i < contracts.size(); i++)
    {
        form.cmbContract().newRow(contracts.get(i), contracts.get(i).getContractName());
    }

    if (contracts != null && contracts.size() == 1)
        form.cmbContract().setValue(contracts.get(0));

    loadLocations();

    ReferralServiceFullVo services = domain.getReferralServices();
    if (services != null && services.getReferralServicesIsNotNull())
    {
        for (ServiceShortVo service : services.getReferralServices())
        {
            form.cmbService().newRow(service, service.getServiceName());
        }
    }
    clearControlsOnInitialize();

    //wdev-13647
    form.cmbNearestTreatmentCentreLocation().setVisible(ConfigFlag.UI.REFERRAL_DETAILS_DISPLAY_NEAREST_TREATMENT_CENTRE.getValue());
    //form.lblCentreLocation().setVisible(ConfigFlag.UI.REFERRAL_DETAILS_DISPLAY_NEAREST_TREATMENT_CENTRE.getValue()); //WDEV-18142 
    form.lblNearestTreatment().setVisible(ConfigFlag.UI.REFERRAL_DETAILS_DISPLAY_NEAREST_TREATMENT_CENTRE.getValue());
    if(Boolean.TRUE.equals(ConfigFlag.UI.REFERRAL_DETAILS_DISPLAY_NEAREST_TREATMENT_CENTRE.getValue()))
    {
        getAndPopulateNearestTreatmentCenterLocation();
    }
    //---------

    form.getLocalContext().setAHPInfo(null);
    form.getLocalContext().setGPInfo(null);
    form.getLocalContext().setreferralVo(null);
    form.getLocalContext().setcallingForm(callingForm);
    form.getLocalContext().setTransferInfo(null);   
    updateControlState();

}
项目:openMAXIMS    文件:Logic.java   
private void bindCmbSourceOfReferralLookup()
    {
        form.cmbSourceOfReferral().clear();

        SourceOfReferralCollection lookupCollection = LookupHelper.getSourceOfReferral(this.domain.getLookupService());
        for(int x = 0; x < lookupCollection.size(); x++)
        {

            if(SourceOfReferral.CONSULTANT.equals(lookupCollection.get(x))
                && ! ConfigFlag.UI.BED_INFO_UI_TYPE.getValue().equals("CCO")) //wdev-13472
            {
                //DONT add consultant if its not WAITING tab
                //IF its WAITING tab, only add if its EmergencyAdmission
                if(!form.lyrAdmission().tabWaiting().isVisible() 
                    || (form.lyrAdmission().tabWaiting().isVisible() 
                        && (form.getLocalContext().getIsEmergencyAdmissionTab() == null 
                            || (form.getLocalContext().getIsEmergencyAdmissionTabIsNotNull() 
                                && !form.getLocalContext().getIsEmergencyAdmissionTab()))))
                        continue;
            }

            //WDEV-20186 If Emergency tab, limit combo options to Consultant, GP and Self
            if(form.getLocalContext().getIsEmergencyAdmissionTabIsNotNull()
                && form.getLocalContext().getIsEmergencyAdmissionTab())
            {
                if(!SourceOfReferral.CONSULTANT.equals(lookupCollection.get(x)) && !SourceOfReferral.GP.equals(lookupCollection.get(x)) && !SourceOfReferral.SELF.equals(lookupCollection.get(x)))
                {
                    continue;                   
                }
                else
                {
                    form.cmbSourceOfReferral().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());                  
                }
            }
            else
            {
                form.cmbSourceOfReferral().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
            } //WDEV-20186


//          form.cmbSourceOfReferral().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
        }
    }
项目:openMAXIMS    文件:Logic.java   
public void initialize(CALLINGFORM callingForm)
{   
    //WDEV-18142
    form.ccConsultant().initializeResponsibleHcp(MosType.HCP, true, form.qmbService().getValue(), null);//.initializeConsultantResponsibleHcp(MosType.MEDIC, MedicGrade.CONS, null);
    //WDEV-20894
    if (form.qmbService().getValue() != null && form.cmbFunction().getValue() != null)
    {
        form.ccConsultant().initializeResponsibleHcp(MosType.HCP, true, form.qmbService().getValue(), form.cmbFunction().getValue().getFunction());
    }

    form.getLocalContext().setCurrentAwaitingClinicalInformationVo(null);
    form.getLocalContext().setContractConfigurations(null); //WDEV-18904
    form.getGlobalContext().RefMan.setAwaitingClinicalInfo(null);
    form.getGlobalContext().RefMan.setAwaitingClinicalInfoBoolean(null);
    form.getLocalContext().setbRTTBreachDateInThePastAcknowledged(null); //WDEV-23904
    //wdev-12430
    form.cmbSOR().clear();
    SourceOfReferralCollection tempVoColl = ims.core.vo.lookups.LookupHelper.getSourceOfReferral(domain.getLookupService());
    if(tempVoColl != null)
        for(int i = 0;i < tempVoColl.size();i++ )
        {
            if(tempVoColl.get(i) != null 
                && (tempVoColl.get(i).equals(SourceOfReferral.GP) || tempVoColl.get(i).equals(SourceOfReferral.AHP)
                || tempVoColl.get(i).equals(SourceOfReferral.TRANSFER) || tempVoColl.get(i).equals(SourceOfReferral.SELF) || tempVoColl.get(i).equals(SourceOfReferral.CONSULTANT) ||  tempVoColl.get(i).equals(SourceOfReferral.NATIONAL_SCREENING)))  //wdev-20417
                form.cmbSOR().newRow((SourceOfReferral)tempVoColl.get(i),tempVoColl.get(i).getText());
        }
    //------------------
    //form.lblProcedure().setVisible(ConfigFlag.GEN.CREATE_ICP_ON_ACCEPTANCE_OF_REFERRAL.getValue());
    //form.qmbProcedure().setVisible(ConfigFlag.GEN.CREATE_ICP_ON_ACCEPTANCE_OF_REFERRAL.getValue());


    // WDEV-12866
    // Use the new function to list active Contracts for a specific location
    //      ContractConfigForReferralDetailsComponentVoCollection contracts = domain.listActiveContracts(domain.getOrganisationByLocation(engine.getCurrentLocation().getID()));
    ContractConfigForReferralDetailsComponentVoCollection contracts = domain.listActiveContractsForLocation((LocationRefVo) engine.getCurrentLocation());
    form.getLocalContext().setContractConfigurations(contracts);    //WDEV-18904
    for (int i = 0; contracts != null && i < contracts.size(); i++)
    {
        form.cmbContract().newRow(contracts.get(i), contracts.get(i).getContractName());
    }
    if (contracts != null && contracts.size() == 1)
        form.cmbContract().setValue(contracts.get(0));

    loadLocations();

    /*ReferralServiceFullVo services = domain.getReferralServices();
    if (services != null && services.getReferralServicesIsNotNull())
    {
        for (ServiceShortVo service : services.getReferralServices())
        {
            form.qmbService().newRow(service, service.getServiceName());
        }
    }*/
    clearControlsOnInitialize();

    //wdev-13647
    form.cmbNearestTreatmentCentreLocation().setVisible(ConfigFlag.UI.REFERRAL_DETAILS_DISPLAY_NEAREST_TREATMENT_CENTRE.getValue());
    //form.lblCentreLocation().setVisible(ConfigFlag.UI.REFERRAL_DETAILS_DISPLAY_NEAREST_TREATMENT_CENTRE.getValue()); //WDEV-18142 
    form.lblNearestTreatment().setVisible(ConfigFlag.UI.REFERRAL_DETAILS_DISPLAY_NEAREST_TREATMENT_CENTRE.getValue());
    if(Boolean.TRUE.equals(ConfigFlag.UI.REFERRAL_DETAILS_DISPLAY_NEAREST_TREATMENT_CENTRE.getValue()))
    {
        getAndPopulateNearestTreatmentCenterLocation();
    }
    //---------

    form.cmbCategory().setValue((form.getGlobalContext().Core.getPatientShort() != null && form.getGlobalContext().Core.getPatientShort().getPatientCategory() != null) ? form.getGlobalContext().Core.getPatientShort().getPatientCategory() : PatientStatus.NHS);

    form.getLocalContext().setAHPInfo(null);
    form.getLocalContext().setGPInfo(null);
    form.getLocalContext().setreferralVo(null);
    form.getLocalContext().setcallingForm(callingForm);
    form.getLocalContext().setTransferInfo(null);   
    updateControlState(false);

}
项目:openMAXIMS    文件:Logic.java   
public void initialize(CALLINGFORM callingForm)
{
    form.authoringControl().setValue((IMos) domain.getMosUser());
    //WDEV-18142
    form.ccConsultant().initializeConsultantResponsibleHcp(MosType.MEDIC, MedicGrade.CONS, null);

    form.getLocalContext().setCurrentAwaitingClinicalInformationVo(null);
    form.getGlobalContext().RefMan.setAwaitingClinicalInfo(null);
    form.getGlobalContext().RefMan.setAwaitingClinicalInfoBoolean(null);

    //wdev-12430
    form.cmbSOR().clear();
    SourceOfReferralCollection tempVoColl = ims.core.vo.lookups.LookupHelper.getSourceOfReferral(domain.getLookupService());
    if(tempVoColl != null)
        for(int i = 0;i < tempVoColl.size();i++ )
        {
            if(tempVoColl.get(i) != null 
                && (tempVoColl.get(i).equals(SourceOfReferral.GP) || tempVoColl.get(i).equals(SourceOfReferral.AHP)
                || tempVoColl.get(i).equals(SourceOfReferral.TRANSFER) || tempVoColl.get(i).equals(SourceOfReferral.SELF) || tempVoColl.get(i).equals(SourceOfReferral.CONSULTANT) ))
                form.cmbSOR().newRow((SourceOfReferral)tempVoColl.get(i),tempVoColl.get(i).getText());
        }
    //------------------
    form.lblProcedure().setVisible(ConfigFlag.GEN.CREATE_ICP_ON_ACCEPTANCE_OF_REFERRAL.getValue());
    form.qmbProcedure().setVisible(ConfigFlag.GEN.CREATE_ICP_ON_ACCEPTANCE_OF_REFERRAL.getValue());


    // WDEV-12866
    // Use the new function to list active Contracts for a specific location
    //      ContractConfigForReferralDetailsComponentVoCollection contracts = domain.listActiveContracts(domain.getOrganisationByLocation(engine.getCurrentLocation().getID()));
    ContractConfigForReferralDetailsComponentVoCollection contracts = domain.listActiveContractsForLocation((LocationRefVo) engine.getCurrentLocation());
    for (int i = 0; contracts != null && i < contracts.size(); i++)
    {
        form.cmbContract().newRow(contracts.get(i), contracts.get(i).getContractName());
    }

    if (contracts != null && contracts.size() == 1)
        form.cmbContract().setValue(contracts.get(0));

    loadLocations();

    ReferralServiceFullVo services = domain.getReferralServices();
    if (services != null && services.getReferralServicesIsNotNull())
    {
        for (ServiceShortVo service : services.getReferralServices())
        {
            form.cmbService().newRow(service, service.getServiceName());
        }
    }
    clearControlsOnInitialize();

    //wdev-13647
    form.cmbNearestTreatmentCentreLocation().setVisible(ConfigFlag.UI.REFERRAL_DETAILS_DISPLAY_NEAREST_TREATMENT_CENTRE.getValue());
    //form.lblCentreLocation().setVisible(ConfigFlag.UI.REFERRAL_DETAILS_DISPLAY_NEAREST_TREATMENT_CENTRE.getValue()); //WDEV-18142 
    form.lblNearestTreatment().setVisible(ConfigFlag.UI.REFERRAL_DETAILS_DISPLAY_NEAREST_TREATMENT_CENTRE.getValue());
    if(Boolean.TRUE.equals(ConfigFlag.UI.REFERRAL_DETAILS_DISPLAY_NEAREST_TREATMENT_CENTRE.getValue()))
    {
        getAndPopulateNearestTreatmentCenterLocation();
    }
    //---------

    form.getLocalContext().setAHPInfo(null);
    form.getLocalContext().setGPInfo(null);
    form.getLocalContext().setreferralVo(null);
    form.getLocalContext().setcallingForm(callingForm);
    form.getLocalContext().setTransferInfo(null);   
    updateControlState();

}