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

项目:openMAXIMS    文件:MedicodeCodeExportImportHelper.java   
private String getMappingForSourceOfAdmissionLookup(SourceOfAdmission sourceOfAdmission)
{
    String strListLocalCodes = "";
    if(sourceOfAdmission == null)
        return strListLocalCodes;
    LookupMappingVoCollection vocol = getMappings(sourceOfAdmission.getID());
    if(vocol != null && vocol.size() > 0)
    {
        for(int i=0; i<vocol.size(); i++)
        {
            LookupMappingVo voSpec = vocol.get(i);
            //WDEV-23780
            if(voSpec != null && voSpec.getExtSystem() != null && voSpec.getExtSystem().equals(ims.core.vo.lookups.TaxonomyType.CDS.toString()))
            //WDEV-23780
            {
                strListLocalCodes += voSpec.getExtCode();
                return strListLocalCodes;
            }

        }

    }
    return strListLocalCodes;

}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromEmergencyData(PendingEmergencyAdmissionAdmitVo voPendingEmergencyAdmissionAdmit) 
{
    clearScreen();
    if(voPendingEmergencyAdmissionAdmit == null)
        return;

    BedSpaceStateLiteVo voBedSpaceState = form.getGlobalContext().Core.getSelectedBedSpaceState();
    if(voBedSpaceState != null)
    {
        if(voBedSpaceState.getWardIsNotNull())
        {
            form.cmbWard().newRow(voBedSpaceState.getWard(), voBedSpaceState.getWard().toString());
            form.cmbWard().setValue(voBedSpaceState.getWard());
        }

        if(voBedSpaceState.getBedSpaceIsNotNull())
            form.cmbWardType().setValue(voBedSpaceState.getBedSpace().getWardType());
    }

    if(voPendingEmergencyAdmissionAdmit.getPasEventIsNotNull())
    {
        form.ccConsultant().setValue(voPendingEmergencyAdmissionAdmit.getPasEvent().getConsultant());
        listSpecialtiesForConsultant();

        if(ConfigFlag.UI.BED_INFO_UI_TYPE.getValue().equals("CCO"))
        {
            if(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialtyIsNotNull())
            {
                if(!form.cmbCCOSpecialty().getValues().contains(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty()))
                    form.cmbCCOSpecialty().newRow(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty(), voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty().getText());
            }

            form.cmbCCOSpecialty().setValue(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty());
        }
        //if conspc call did not find specialty (conspc mapping was removed) add it as a value anyway
        if(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialtyIsNotNull())
        {
            if(!form.cmbSpecialty().getValues().contains(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty()))
                form.cmbSpecialty().newRow(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty(), voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty().getText());
        }

        form.cmbSpecialty().setValue(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty());
    }

    //WDEV-10076
    form.cmbMethod().setValue(null);
    form.cmbSource().setValue(SourceOfAdmission.HOMEADDRESS);
    form.dtimAdmit().setValue(new DateTime());

    form.chkChaplain().setValue(false);

    loadEpisodes();
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromEmergencyData(PendingEmergencyAdmissionAdmitVo voPendingEmergencyAdmissionAdmit) 
{
    clearScreen();
    if(voPendingEmergencyAdmissionAdmit == null)
        return;

    BedSpaceStateLiteVo voBedSpaceState = form.getGlobalContext().Core.getSelectedBedSpaceState();
    if(voBedSpaceState != null)
    {
        if(voBedSpaceState.getWardIsNotNull())
        {
            form.cmbWard().newRow(voBedSpaceState.getWard(), voBedSpaceState.getWard().toString());
            form.cmbWard().setValue(voBedSpaceState.getWard());
        }

        if(voBedSpaceState.getBedSpaceIsNotNull())
            form.cmbWardType().setValue(voBedSpaceState.getBedSpace().getWardType());
    }

    if(voPendingEmergencyAdmissionAdmit.getPasEventIsNotNull())
    {
        form.ccConsultant().setValue(voPendingEmergencyAdmissionAdmit.getPasEvent().getConsultant());
        listSpecialtiesForConsultant();

        if(ConfigFlag.UI.BED_INFO_UI_TYPE.getValue().equals("CCO"))
        {
            if(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialtyIsNotNull())
            {
                if(!form.cmbCCOSpecialty().getValues().contains(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty()))
                    form.cmbCCOSpecialty().newRow(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty(), voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty().getText());
            }

            form.cmbCCOSpecialty().setValue(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty());
        }
        //if conspc call did not find specialty (conspc mapping was removed) add it as a value anyway
        if(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialtyIsNotNull())
        {
            if(!form.cmbSpecialty().getValues().contains(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty()))
                form.cmbSpecialty().newRow(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty(), voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty().getText());
        }

        form.cmbSpecialty().setValue(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty());
    }

    //WDEV-10076
    form.cmbMethod().setValue(null);
    form.cmbSource().setValue(SourceOfAdmission.HOMEADDRESS);
    form.dtimAdmit().setValue(new DateTime());

    form.chkChaplain().setValue(false);

    loadEpisodes();
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromEmergencyData(PendingEmergencyAdmissionAdmitVo voPendingEmergencyAdmissionAdmit) 
{
    clearScreen();
    if(voPendingEmergencyAdmissionAdmit == null)
        return;

    BedSpaceStateLiteVo voBedSpaceState = form.getGlobalContext().Core.getSelectedBedSpaceState();
    if(voBedSpaceState != null)
    {
        if(voBedSpaceState.getWardIsNotNull())
        {
            form.cmbWard().newRow(voBedSpaceState.getWard(), voBedSpaceState.getWard().toString());
            form.cmbWard().setValue(voBedSpaceState.getWard());
        }

        if(voBedSpaceState.getBedSpaceIsNotNull())
            form.cmbWardType().setValue(voBedSpaceState.getBedSpace().getWardType());
    }

    if(voPendingEmergencyAdmissionAdmit.getPasEventIsNotNull())
    {
        form.ccConsultant().setValue(voPendingEmergencyAdmissionAdmit.getPasEvent().getConsultant());
        listSpecialtiesForConsultant();

        if(ConfigFlag.UI.BED_INFO_UI_TYPE.getValue().equals("CCO"))
        {
            if(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialtyIsNotNull())
            {
                if(!form.cmbCCOSpecialty().getValues().contains(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty()))
                    form.cmbCCOSpecialty().newRow(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty(), voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty().getText());
            }

            form.cmbCCOSpecialty().setValue(voPendingEmergencyAdmissionAdmit.getPasEvent().getPASSpecialty());
        }
        //if conspc call did not find specialty (conspc mapping was removed) add it as a value anyway
        if(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialtyIsNotNull())
        {
            if(!form.cmbSpecialty().getValues().contains(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty()))
                form.cmbSpecialty().newRow(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty(), voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty().getText());
        }

        form.cmbSpecialty().setValue(voPendingEmergencyAdmissionAdmit.getPasEvent().getSpecialty());
    }

    //WDEV-10076
    form.cmbMethod().setValue(null);
    form.cmbSource().setValue(SourceOfAdmission.HOMEADDRESS);
    form.dtimAdmit().setValue(new DateTime());

    form.chkChaplain().setValue(false);

    loadEpisodes();
}