Module: ODDB

Includes:
FlexMock::TestCase
Defined in:
src/util/money.rb,
src/config.rb,
src/util/log.rb,
src/util/job.rb,
src/util/ipn.rb,
src/util/http.rb,
src/view/form.rb,
src/view/logo.rb,
src/plugin/rss.rb,
src/model/part.rb,
src/view/vcard.rb,
src/model/user.rb,
src/model/text.rb,
src/view/pager.rb,
src/util/index.rb,
src/plugin/who.rb,
src/model/dose.rb,
src/view/limit.rb,
src/plugin/ydim.rb,
src/view/search.rb,
src/model/slate.rb,
src/state/limit.rb,
src/view/notify.rb,
src/util/config.rb,
src/model/ean13.rb,
src/plugin/lppv.rb,
src/view/latin1.rb,
src/plugin/yaml.rb,
src/util/upload.rb,
src/util/oddbapp.rb,
src/model/orphan.rb,
src/state/global.rb,
src/model/minifi.rb,
src/view/captcha.rb,
src/view/address.rb,
src/model/patent.rb,
src/plugin/migel.rb,
src/view/confirm.rb,
src/view/setpass.rb,
src/util/soundex.rb,
src/model/cyp450.rb,
src/util/updater.rb,
src/model/doctor.rb,
src/util/session.rb,
src/plugin/hayes.rb,
src/util/logfile.rb,
src/plugin/fipdf.rb,
src/state/notify.rb,
src/view/chapter.rb,
src/util/loggroup.rb,
src/view/facebook.rb,
src/state/setpass.rb,
src/model/sponsor.rb,
src/util/language.rb,
src/model/slentry.rb,
src/remote/object.rb,
src/model/company.rb,
src/model/atcnode.rb,
src/model/patinfo.rb,
src/view/personal.rb,
src/plugin/plugin.rb,
test/stub/session.rb,
test/stub/oddbapp.rb,
src/model/address.rb,
src/view/logohead.rb,
src/plugin/medwin.rb,
src/util/interval.rb,
src/util/currency.rb,
src/command/merge.rb,
src/util/exporter.rb,
src/util/failsafe.rb,
src/plugin/minifi.rb,
src/util/schedule.rb,
src/view/http_404.rb,
src/model/package.rb,
src/model/invoice.rb,
src/view/changelog.rb,
src/command/create.rb,
src/command/delete.rb,
src/model/atcclass.rb,
src/model/fachinfo.rb,
src/view/user/help.rb,
src/model/feedback.rb,
src/model/hospital.rb,
src/util/validator.rb,
src/remote/package.rb,
src/view/drugs/ddd.rb,
src/model/narcotic.rb,
src/state/http_404.rb,
src/model/sequence.rb,
src/view/searchbar.rb,
src/view/ajax/json.rb,
src/view/exception.rb,
src/view/feedbacks.rb,
src/plugin/bsv_xml.rb,
src/plugin/doctors.rb,
src/view/copyright.rb,
src/util/umlautsort.rb,
src/plugin/invoicer.rb,
src/view/resultfoot.rb,
test/test_view/logo.rb,
test/test_util/zlog.rb,
src/state/user/help.rb,
src/plugin/analysis.rb,
src/state/user/init.rb,
src/view/navigation.rb,
src/model/substance.rb,
src/view/rss/minifi.rb,
src/plugin/swissreg.rb,
src/plugin/vaccines.rb,
src/state/feedbacks.rb,
src/state/exception.rb,
ext/fipdf/src/rules.rb,
src/util/iso-latin1.rb,
src/remote/sequence.rb,
ext/fipdf/src/fipdf.rb,
src/state/all_zones.rb,
src/util/resultsort.rb,
src/state/drugs/ddd.rb,
src/util/oddbconfig.rb,
src/view/dataformat.rb,
src/model/ambiguous.rb,
src/plugin/narcotic.rb,
src/view/rss/package.rb,
src/view/sponsorlogo.rb,
src/view/welcomehead.rb,
src/plugin/ouwerkerk.rb,
src/view/custom/head.rb,
src/view/sponsorhead.rb,
test/test_model/text.rb,
test/test_view/pager.rb,
test/test_model/user.rb,
src/view/user/search.rb,
src/view/alphaheader.rb,
src/plugin/hospitals.rb,
src/util/persistence.rb,
src/plugin/flockhart.rb,
src/util/searchterms.rb,
src/state/migel/init.rb,
src/state/admin/root.rb,
src/state/user/limit.rb,
ext/fipdf/src/format.rb,
src/state/drugs/init.rb,
src/model/indication.rb,
src/view/user/plugin.rb,
src/view/admin/login.rb,
src/view/user/export.rb,
src/util/html_parser.rb,
src/plugin/text_info.rb,
src/view/migel/group.rb,
src/state/admin/user.rb,
src/util/csstemplate.rb,
src/state/admin/init.rb,
src/state/ajax/global.rb,
src/view/drugs/result.rb,
src/view/drugs/search.rb,
src/view/drugs/minifi.rb,
src/plugin/xls_export.rb,
src/model/migel/group.rb,
src/plugin/swissmedic.rb,
test/test_util/config.rb,
src/state/drugs/limit.rb,
test/test_plugin/yaml.rb,
src/view/admin/search.rb,
src/state/migel/group.rb,
src/view/rss/fachinfo.rb,
src/model/galenicform.rb,
src/state/migel/limit.rb,
src/state/admin/admin.rb,
src/view/migel/search.rb,
src/state/page_facade.rb,
test/test_plugin/lppv.rb,
src/plugin/csv_export.rb,
src/view/migel/result.rb,
src/view/resultcolors.rb,
src/view/admin/entity.rb,
src/state/user/global.rb,
src/view/pointervalue.rb,
src/state/admin/login.rb,
src/util/pointerarray.rb,
src/model/composition.rb,
src/view/pointersteps.rb,
src/view/admin/patent.rb,
src/model/activeagent.rb,
src/state/user/plugin.rb,
src/view/rss/feedback.rb,
src/view/user/download.rb,
src/plugin/interaction.rb,
src/state/drugs/notify.rb,
src/plugin/comarketing.rb,
src/state/user/confirm.rb,
src/view/user/checkout.rb,
src/state/drugs/minifi.rb,
ext/fiparse/src/minifi.rb,
src/model/registration.rb,
src/view/drugs/compare.rb,
src/state/drugs/global.rb,
src/view/doctors/vcard.rb,
src/view/user/autofill.rb,
test/test_view/chapter.rb,
test/test_view/asearch.rb,
src/view/printtemplate.rb,
src/model/genericgroup.rb,
src/model/galenicgroup.rb,
src/state/rss/passthru.rb,
src/view/migel/product.rb,
src/view/popuptemplate.rb,
src/state/doctors/init.rb,
src/state/drugs/result.rb,
src/view/paypal/return.rb,
test/test_util/updater.rb,
test/test_util/soundex.rb,
test/test_plugin/migel.rb,
test/test_util/session.rb,
test/test_state/global.rb,
src/state/migel/result.rb,
src/state/admin/entity.rb,
ext/export/src/oddbdat.rb,
src/view/drugs/package.rb,
src/view/admin/package.rb,
test/test_plugin/hayes.rb,
src/state/admin/global.rb,
src/view/rss/price_cut.rb,
test/test_model/cyp450.rb,
test/test_model/doctor.rb,
src/state/migel/notify.rb,
src/state/admin/logout.rb,
src/view/drugs/patinfo.rb,
test/test_util/oddbapp.rb,
src/view/admin/slentry.rb,
src/view/user/passthru.rb,
src/view/admin/sponsor.rb,
src/state/ajax/matches.rb,
src/state/migel/global.rb,
ext/meddata/src/result.rb,
src/state/admin/patent.rb,
test/test_util/logfile.rb,
src/view/user/auth_info.rb,
ext/meddata/src/session.rb,
src/state/admin/package.rb,
ext/meddata/src/meddata.rb,
src/view/navigationlink.rb,
src/view/navigationfoot.rb,
src/view/analysis/group.rb,
src/view/user/powerlink.rb,
test/test_model/invoice.rb,
src/view/ajax/ddd_chart.rb,
src/state/admin/slentry.rb,
src/state/admin/sponsor.rb,
src/state/user/passthru.rb,
src/view/external_links.rb,
test/test_util/exporter.rb,
src/view/drugs/vaccines.rb,
src/view/notify_confirm.rb,
test/test_model/package.rb,
src/view/migel/subgroup.rb,
test/test_util/loggroup.rb,
test/test_model/patinfo.rb,
src/view/rss/price_rise.rb,
src/state/analysis/init.rb,
ext/docdata/src/docdata.rb,
src/view/drugs/patinfos.rb,
test/test_model/slentry.rb,
ext/swissreg/src/writer.rb,
test/test_model/sponsor.rb,
src/state/drugs/package.rb,
src/view/ajax/ddd_price.rb,
src/view/paypal/invoice.rb,
src/view/tab_navigation.rb,
src/state/migel/product.rb,
src/state/admin/confirm.rb,
test/test_plugin/medwin.rb,
src/view/drugs/narcotic.rb,
test/test_model/company.rb,
test/test_model/address.rb,
src/state/paypal/return.rb,
src/state/doctors/limit.rb,
src/state/doctors/vcard.rb,
src/view/admin/atcclass.rb,
src/state/drugs/compare.rb,
src/view/doctors/doctor.rb,
src/remote/multilingual.rb,
src/remote/galenic_form.rb,
src/view/doctors/search.rb,
src/model/migel/product.rb,
src/state/user/download.rb,
src/view/publictemplate.rb,
src/view/drugs/fachinfo.rb,
ext/fiparse/src/fiparse.rb,
src/model/search_result.rb,
src/view/resulttemplate.rb,
src/state/drugs/patinfo.rb,
src/state/user/checkout.rb,
src/view/admin/entities.rb,
src/view/admin/sequence.rb,
ext/fiparse/src/fiwriter.rb,
src/state/drugs/patinfos.rb,
src/state/drugs/narcotic.rb,
src/view/drugs/ddd_price.rb,
test/test_plugin/zdoctor.rb,
src/state/drugs/fachinfo.rb,
src/view/drugs/fachinfos.rb,
src/state/doctors/global.rb,
src/state/drugs/sequence.rb,
src/view/drugs/feedbacks.rb,
src/state/drugs/vaccines.rb,
src/state/doctors/doctor.rb,
src/view/descriptionlist.rb,
src/view/drugs/narcotics.rb,
src/view/descriptionform.rb,
ext/export/src/oddb_yaml.rb,
src/state/companies/init.rb,
src/view/datadeclaration.rb,
src/state/hospitals/init.rb,
test/test_plugin/bsv_xml.rb,
test/test_model/sequence.rb,
src/view/migel/feedbacks.rb,
src/state/analysis/limit.rb,
src/state/analysis/group.rb,
src/view/drugs/sequences.rb,
test/test_model/narcotic.rb,
src/state/user/powerlink.rb,
src/state/ajax/ddd_price.rb,
src/state/ajax/ddd_chart.rb,
src/view/analysis/search.rb,
src/view/analysis/result.rb,
src/state/admin/sequence.rb,
test/test_model/hospital.rb,
src/view/user/yamlexport.rb,
ext/swissreg/src/session.rb,
test/test_model/feedback.rb,
test/test_model/fachinfo.rb,
src/view/admin/addresses.rb,
test/stub/oddbdat_export.rb,
src/state/admin/entities.rb,
src/state/migel/subgroup.rb,
src/view/paypal/redirect.rb,
src/model/analysis/group.rb,
src/state/admin/atcclass.rb,
src/view/google_ad_sense.rb,
test/test_model/address2.rb,
test/test_model/atcclass.rb,
src/view/privatetemplate.rb,
src/remote/galenic_group.rb,
src/view/hospitals/vcard.rb,
src/model/limitationtext.rb,
src/view/suggest_address.rb,
src/model/migel/subgroup.rb,
src/view/admin/loginform.rb,
src/plugin/info_invoicer.rb,
src/state/user/auth_info.rb,
src/state/analysis/global.rb,
src/state/suggest_address.rb,
src/view/inputdescription.rb,
src/view/hospitals/search.rb,
ext/docdata/src/docparser.rb,
src/view/drugs/resultlist.rb,
src/state/substances/init.rb,
src/view/drugs/recentregs.rb,
src/state/paypal/redirect.rb,
src/state/paypal/checkout.rb,
ext/export/src/patent_xls.rb,
src/view/drugs/csv_result.rb,
src/state/migel/feedbacks.rb,
test/test_plugin/vaccines.rb,
src/view/drugs/atcchooser.rb,
test/test_plugin/narcotic.rb,
src/view/descriptionvalue.rb,
test/test_model/substance.rb,
src/view/companies/search.rb,
ext/fipdf/test/rules_test.rb,
ext/swissreg/src/swissreg.rb,
src/command/accept_orphan.rb,
src/model/commercial_form.rb,
src/model/selectsubstance.rb,
src/state/hospitals/vcard.rb,
src/view/admin/indication.rb,
src/state/hospitals/limit.rb,
src/plugin/oddbdat_export.rb,
src/util/ngram_similarity.rb,
src/state/admin/addresses.rb,
src/state/drugs/sequences.rb,
src/view/user/sponsorlink.rb,
src/state/admin/poweruser.rb,
src/state/analysis/result.rb,
src/state/drugs/narcotics.rb,
src/view/user/mailinglist.rb,
src/state/drugs/feedbacks.rb,
src/state/drugs/fachinfos.rb,
src/state/drugs/ddd_price.rb,
src/state/companies/limit.rb,
src/view/language_chooser.rb,
src/view/analysis/position.rb,
src/view/drugs/resultlimit.rb,
src/view/user/invalid_user.rb,
src/state/drugs/atcchooser.rb,
test/test_state/drugs/init.rb,
test/test_state/admin/root.rb,
src/state/companies/global.rb,
test/test_model/indication.rb,
ext/meddata/src/drbsession.rb,
ext/meddata/src/meddparser.rb,
test/test_state/paypal/ipn.rb,
src/view/substances/search.rb,
src/view/migel/welcomehead.rb,
src/view/substances/result.rb,
test/test_util/csstemplate.rb,
src/view/companies/company.rb,
test/test_model/comparison.rb,
test/test_model/comparison.rb,
src/state/drugs/recentregs.rb,
test/test_util/html_parser.rb,
src/custom/lookandfeelbase.rb,
test/test_util/persistence.rb,
src/state/user/mailinglist.rb,
src/view/companies/setpass.rb,
src/state/user/sponsorlink.rb,
src/state/admin/indication.rb,
test/test_view/sponsorhead.rb,
src/view/admin/activeagent.rb,
test/test_plugin/text_info.rb,
src/model/cyp450connection.rb,
src/model/invoice_observer.rb,
ext/fipdf/test/format_test.rb,
src/state/user/contributor.rb,
src/state/global_predefine.rb,
src/model/package_observer.rb,
test/test_plugin/flockhart.rb,
src/state/hospitals/global.rb,
src/view/admin/indications.rb,
test/test_plugin/ouwerkerk.rb,
test/test_plugin/hospitals.rb,
src/view/admin/galenicform.rb,
test/test_state/page_facade.rb,
ext/export/src/generics_xls.rb,
src/state/hospitals/setpass.rb,
src/view/doctors/doctorlist.rb,
src/model/sequence_observer.rb,
test/test_view/pointersteps.rb,
test/test_plugin/swissmedic.rb,
src/state/admin/activeagent.rb,
src/state/admin/companyuser.rb,
src/view/hospitals/hospital.rb,
src/model/feedback_observer.rb,
src/state/admin/galenicform.rb,
src/state/admin/indications.rb,
src/model/analysis/position.rb,
ext/export/src/csv_exporter.rb,
src/view/user/yweseecontact.rb,
src/state/interactions/init.rb,
src/view/tab_navigationlink.rb,
src/view/companies/fipi_csv.rb,
src/view/admin/galenicgroup.rb,
ext/chapterparse/src/writer.rb,
src/view/admin/registration.rb,
src/state/user/invalid_user.rb,
src/view/user/paypal_thanks.rb,
src/state/analysis/position.rb,
test/test_model/galenicform.rb,
src/state/substances/global.rb,
src/view/migel/alphabetical.rb,
src/state/companies/company.rb,
src/view/centeredsearchform.rb,
src/state/substances/result.rb,
test/test_model/migel_group.rb,
test/test_state/admin/login.rb,
ext/meddata/src/ean_factory.rb,
ext/fiparse/src/indications.rb,
src/state/companies/setpass.rb,
src/plugin/patinfo_invoicer.rb,
test/test_model/activeagent.rb,
src/view/ajax/swissmedic_cat.rb,
test/test_model/genericgroup.rb,
ext/meddata/test/test_result.rb,
test/test_model/galenicgroup.rb,
src/view/rss/sl_introduction.rb,
src/view/interactions/search.rb,
src/view/admin/patinfo_stats.rb,
src/command/replace_fachinfo.rb,
src/view/drugs/price_history.rb,
test/test_model/registration.rb,
src/view/admin/password_lost.rb,
ext/fiparse/test/minifi_test.rb,
ext/analysisparse/src/parser.rb,
src/state/interactions/limit.rb,
test/test_plugin/comarketing.rb,
src/state/user/yweseecontact.rb,
src/view/admin/galenicgroups.rb,
test/test_plugin/interaction.rb,
src/plugin/download_invoicer.rb,
src/state/user/paypal_thanks.rb,
src/plugin/fachinfo_invoicer.rb,
src/state/hospitals/hospital.rb,
src/plugin/swissmedicjournal.rb,
src/state/admin/galenicgroup.rb,
src/view/doctors/welcomehead.rb,
src/state/migel/alphabetical.rb,
ext/export/src/odba_exporter.rb,
src/state/drugs/registration.rb,
src/state/admin/registration.rb,
src/view/interactions/basket.rb,
src/state/companies/fipi_csv.rb,
src/view/interactions/result.rb,
ext/fiparse/src/fachinfo_pdf.rb,
src/util/notification_logger.rb,
test/test_state/drugs/result.rb,
ext/fiparse/src/fachinfo_doc.rb,
ext/export/test/test_oddbdat.rb,
src/state/doctors/doctorlist.rb,
src/view/drugs/compare_search.rb,
src/view/migel/limitationtext.rb,
src/state/interactions/result.rb,
src/view/drugs/payment_method.rb,
ext/fipdf/src/chapter_wrapper.rb,
ext/fipdf/src/fachinfo_writer.rb,
ext/fipdf/src/section_wrapper.rb,
ext/fipdf/src/substance_index.rb,
test/test_model/migel_product.rb,
src/state/interactions/global.rb,
ext/meddata/test/session_test.rb,
src/view/drugs/rootresultlist.rb,
src/view/substances/substance.rb,
ext/meddata/test/test_meddata.rb,
ext/swissreg/test/test_writer.rb,
src/state/interactions/basket.rb,
src/view/admin/patinfopreview.rb,
src/view/admin/password_reset.rb,
src/custom/lookandfeelfactory.rb,
src/custom/lookandfeelwrapper.rb,
src/model/analysis/permission.rb,
test/test_view/navigationfoot.rb,
src/model/index_therapeuticus.rb,
src/view/admin/logincomposite.rb,
src/view/admin/assign_patinfo.rb,
src/state/admin/galenicgroups.rb,
src/state/admin/password_lost.rb,
src/state/admin/patinfo_stats.rb,
src/state/admin/powerlinkuser.rb,
src/state/ajax/swissmedic_cat.rb,
src/state/drugs/price_history.rb,
src/view/user/oddbdatdownload.rb,
src/view/user/download_export.rb,
src/view/drugs/limitationtext.rb,
test/test_view/user/powerlink.rb,
src/view/admin/selectsubstance.rb,
src/state/admin/password_reset.rb,
src/view/hospitals/welcomehead.rb,
src/state/drugs/compare_search.rb,
test/test_view/descriptionlist.rb,
src/view/user/fipi_offer_input.rb,
src/state/admin/assign_patinfo.rb,
test/test_view/descriptionform.rb,
src/view/drugs/privatetemplate.rb,
src/view/drugs/limitationtexts.rb,
src/state/drugs/limitationtext.rb,
src/state/drugs/notify_confirm.rb,
src/state/drugs/payment_method.rb,
src/state/migel/limitationtext.rb,
src/view/companies/companylist.rb,
ext/comarketing/src/pdf_parser.rb,
src/state/migel/notify_confirm.rb,
ext/export/src/competition_xls.rb,
src/view/analysis/alphabetical.rb,
src/view/substances/substances.rb,
src/state/substances/substance.rb,
src/model/analysis/detail_info.rb,
src/view/substances/resultlist.rb,
src/state/user/download_export.rb,
ext/swissreg/test/test_session.rb,
src/state/user/selectsubstance.rb,
test/test_model/migel_subgroup.rb,
src/view/admin/mergeindication.rb,
src/view/admin/assign_fachinfo.rb,
ext/fipdf/src/fachinfo_wrapper.rb,
src/view/admin/fachinfoconfirm.rb,
src/view/admin/commercial_form.rb,
src/state/user/selectindication.rb,
ext/fipdf/src/paragraph_wrapper.rb,
src/view/admin/mergegalenicform.rb,
test/test_plugin/oddbdat_export.rb,
test/test_view/drugs/resultlist.rb,
src/view/additional_information.rb,
src/state/admin/patinfo_preview.rb,
src/view/admin/commercial_forms.rb,
ext/fiparse/src/patinfo_hpricot.rb,
src/view/user/register_download.rb,
src/state/user/fipi_offer_input.rb,
src/state/admin/selectsubstance.rb,
src/view/admin/orphaned_patinfo.rb,
ext/fiparse/src/fachinfo_writer.rb,
src/state/admin/fachinfoconfirm.rb,
src/state/analysis/alphabetical.rb,
src/state/substances/substances.rb,
src/view/admin/selectindication.rb,
src/state/companies/companylist.rb,
src/state/admin/commercial_form.rb,
src/model/registration_observer.rb,
src/view/hospitals/hospitallist.rb,
src/view/lookandfeel_components.rb,
src/state/drugs/limitationtexts.rb,
ext/comarketing/src/comarketing.rb,
src/state/admin/assign_fachinfo.rb,
src/state/admin/mergeindication.rb,
src/view/user/centeredsearchform.rb,
ext/chapterparse/src/chaptparser.rb,
src/view/companies/fipi_overview.rb,
src/state/admin/orphaned_patinfo.rb,
src/view/drugs/register_download.rb,
src/view/user/fipi_offer_confirm.rb,
src/view/analysis/explain_result.rb,
src/view/suggest_address_confirm.rb,
src/view/admin/wait_for_fachinfo.rb,
src/state/admin/commercial_forms.rb,
src/view/admin/swissmedic_source.rb,
ext/fiparse/src/fachinfo_hpricot.rb,
src/view/admin/orphaned_patinfos.rb,
test/test_model/cyp450connection.rb,
src/state/admin/selectindication.rb,
src/state/user/register_download.rb,
src/view/user/register_poweruser.rb,
ext/fiparse/src/textinfo_hpricot.rb,
src/state/admin/mergegalenicform.rb,
ext/readonly/src/readonly_server.rb,
src/state/hospitals/hospitallist.rb,
src/view/interactions/resultlist.rb,
ext/export/test/test_csv_exporter.rb,
src/state/admin/orphaned_patinfos.rb,
test/test_view/drugs/galenicgroup.rb,
test/test_state/admin/companyuser.rb,
src/state/admin/wait_for_fachinfo.rb,
src/state/companies/fipi_overview.rb,
src/state/drugs/register_download.rb,
src/view/migel/centeredsearchform.rb,
ext/fiparse/test/indications_test.rb,
src/view/admin/orphaned_languages.rb,
test/test_plugin/patinfo_invoicer.rb,
src/state/suggest_address_confirm.rb,
test/test_state/drugs/galenicform.rb,
src/state/user/fipi_offer_confirm.rb,
ext/analysisparse/src/list_parser.rb,
ext/analysisparse/src/pagehandler.rb,
src/view/companies/mergecompanies.rb,
src/view/drugs/centeredsearchform.rb,
test/test_state/drugs/activeagent.rb,
ext/export/test/test_generics_xls.rb,
src/view/admin/address_suggestion.rb,
ext/meddata/test/test_ean_factory.rb,
test/test_state/companies/company.rb,
src/view/admin/orphaned_fachinfos.rb,
ext/chapterparse/test/test_parser.rb,
ext/chapterparse/test/test_writer.rb,
src/view/admin/centeredsearchform.rb,
src/state/user/register_poweruser.rb,
test/test_plugin/download_invoicer.rb,
test/test_util/notification_logger.rb,
test/test_plugin/swissmedicjournal.rb,
src/state/admin/address_suggestion.rb,
ext/fiparse/test/fachinfo_pdf_test.rb,
src/view/user/fachinfopdf_download.rb,
src/state/companies/mergecompanies.rb,
test/test_state/drugs/galenicgroup.rb,
src/state/admin/orphaned_fachinfos.rb,
ext/fipdf/test/chapter_wrapper_test.rb,
ext/fipdf/test/fachinfo_writer_test.rb,
ext/fipdf/test/substance_index_test.rb,
src/view/doctors/centeredsearchform.rb,
src/view/substances/selectsubstance.rb,
ext/analysisparse/src/analysisparse.rb,
test/test_state/interactions/result.rb,
test/test_state/interactions/basket.rb,
ext/fipdf/test/section_wrapper_test.rb,
test/test_util/levenshtein_distance.rb,
src/view/analysis/centeredsearchform.rb,
ext/comarketing/test/test_pdf_parser.rb,
test/test_state/user/download_export.rb,
src/view/admin/merge_commercial_form.rb,
ext/chapterparse/test/test_integrate.rb,
test/test_view/companies/companylist.rb,
src/state/substances/selectsubstance.rb,
test/test_view/drugs/fachinfoconfirm.rb,
test/test_state/substances/substance.rb,
ext/fipdf/test/fachinfo_wrapper_test.rb,
ext/fiparse/test/test_patinfo_hpricot.rb,
src/state/admin/merge_commercial_form.rb,
src/view/companies/centeredsearchform.rb,
test/test_state/user/fipi_offer_input.rb,
test/test_state/companies/companylist.rb,
src/view/hospitals/centeredsearchform.rb,
ext/fipdf/test/paragraph_wrapper_test.rb,
test/test_state/drugs/fachinfoconfirm.rb,
ext/readonly/test/test_readonly_server.rb,
src/view/substances/centeredsearchform.rb,
ext/fiparse/test/test_fachinfo_hpricot.rb,
ext/analysisparse/src/analysis_hpricot.rb,
test/test_state/drugs/mergegalenicform.rb,
src/view/admin/orphaned_patinfo_assign.rb,
src/state/admin/orphaned_patinfo_assign.rb,
src/view/admin/assign_deprived_sequence.rb,
src/view/admin/orphaned_fachinfo_assign.rb,
ext/analysisparse/src/block_list_parser.rb,
ext/analysisparse/test/test_pagehandler.rb,
ext/analysisparse/test/test_list_parser.rb,
test/test_state/drugs/register_download.rb,
src/state/admin/orphaned_fachinfo_assign.rb,
ext/analysisparse/src/simple_list_parser.rb,
src/state/admin/assign_deprived_sequence.rb,
src/view/interactions/centeredsearchform.rb,
test/test_state/companies/mergecompanies.rb,
src/view/admin/patinfo_deprived_sequences.rb,
ext/fiparse/test/test_fachinfo_doc_parser.rb,
ext/analysisparse/src/appendix_list_parser.rb,
ext/analysisparse/src/extended_list_parser.rb,
src/state/admin/patinfo_deprived_sequences.rb,
ext/analysisparse/src/antibody_list_parser.rb,
ext/analysisparse/test/test_appendix_parser.rb,
ext/analysisparse/src/anonymous_list_parser.rb,
test/test_state/drugs/incompleteregistrations.rb,
ext/analysisparse/src/fragmented_page_handler.rb,
ext/analysisparse/test/test_block_list_parser.rb,
ext/analysisparse/test/test_simple_list_parser.rb,
ext/analysisparse/test/test_extended_list_parser.rb,
ext/analysisparse/test/test_antibody_list_parser.rb,
ext/analysisparse/test/test_anonymous_list_parser.rb,
ext/analysisparse/test/test_fragmented_page_handler.rb

Overview

!/usr/bin/env ruby View::Admin::MergeCommercialForm — oddb.org — 24.11.2006 — hwyss@ywesee.com

Defined Under Namespace

Modules: AddressObserver, Admin, Analysis, AnalysisParse, ChapterParse, CoMarketing, DocData, Doctors, Drugs, Failsafe, FeedbackObserver, FiPDF, FiParse, HttpFile, IndexedInterval, Interaction, Interval, InvoiceObserver, Language, LogFile, MedData, Migel, OdbaExporter, OddbYaml, PackageObserver, Persistence, PersistenceMethods, RegistrationObserver, Remote, ResultSort, ResultStateSort, SequenceObserver, SimpleLanguage, SizeParser, State, Swissreg, Text, UmlautSort, UserObserver, Util, View Classes: AbstractInvoiceItem, AcceptOrphan, ActiveAgent, ActiveAgentCommon, Address, Address2, AddressSuggestion, AmbiguousPatinfo, AnalysisPlugin, App, AtcClass, AtcFacade, AtcNode, BasicHtmlParser, BsvPlugin, BsvXmlPlugin, CoMarketingPlugin, CommercialForm, Company, CompanyUser, Composition, Config, CreateCommand, CssTemplate, CsvExportPlugin, CyP450, CyP450Connection, CyP450InducerConnection, CyP450InhibitorConnection, CyP450InteractionConnection, CyP450SubstrateConnection, DeleteCommand, Doctor, Dose, DownloadInvoicer, Ean13, Exporter, Fachinfo, FachinfoDocument, FachinfoDocument2001, FachinfoInvoicer, Feedback, FiPDFExporter, Foo, GalenicForm, GalenicGroup, GenericGroup, Hospital, HospitalPlugin, HtmlAttributesHandler, HtmlFontHandler, HtmlFormatter, HtmlLimitationHandler, HtmlLinkHandler, HtmlParser, HtmlTableHandler, HttpSession, Index, IndexTherapeuticus, Indication, InfoInvoicer, Invoice, InvoiceItem, Invoicer, LimitationText, Log, LogGroup, LookandfeelAnthroposophy, LookandfeelAtupri, LookandfeelAtupriWeb, LookandfeelBase, LookandfeelButtons, LookandfeelCarenaSchweiz, LookandfeelComplementaryType, LookandfeelDesitin, LookandfeelExtern, LookandfeelFactory, LookandfeelGenerika, LookandfeelHomeopathy, LookandfeelJustMedical, LookandfeelKonsumInfo, LookandfeelLanguages, LookandfeelMobile, LookandfeelMyMedi, LookandfeelOekk, LookandfeelPhytoPharma, LookandfeelProvita, LookandfeelSantesuisse, LookandfeelStandardResult, LookandfeelSwissMedInfo, LookandfeelSwissmedic, LppvPlugin, LppvWriter, MedDataTest, MeddataDelegator, MedwinCompanyPlugin, MedwinPackagePlugin, MedwinPlugin, MergeCommand, MiGeLPlugin, MiniFi, MiniFiPlugin, Narcotic, NarcoticHandler, NarcoticPlugin, NotificationLogger, NullWriter, OddbDatExport, OrphanedFachinfo, OrphanedPatinfo, OrphanedTextInfo, OuwerkerkPlugin, Package, PackageCommon, Part, Patent, Patinfo, PatinfoDocument, PatinfoDocument2001, PatinfoInvoicer, Plugin, PointerArray, PointerHash, PowerUser, ReadonlyServer, Registration, RegistrationCommon, ReplaceFachinfoCommand, RootUser, RssPlugin, SearchResult, SelectSubstance, Sequence, SequenceCommon, Session, SlEntry, Slate, Sponsor, StubAcceptable, StubDRbObject, StubPackageApp, StubPackageGenericGroup, StubPackageSequence, StubPersistenceDiffable, StubPersistenceNoOid, StubPersistenceOid, StubPersistenceOtherOid, StubPersistenceUndiffable, StubPointerApp, StubPointerApp2, StubPointerBar, StubPointerFap, StubPointerFoo, StubRegistrationApp, StubRegistrationCompany, StubRegistrationIndication, StubRegistrationPatinfo, StubRegistrationSequence, StubSequenceApp, StubSequenceAtcClass, StubSequenceGalenicForm, StubUpdaterPlugin, Substance, SwissmedicJournalPlugin, SwissmedicPlugin, SwissmedicPluginTest, SwissregPlugin, TestAbstractLink, TestAddress, TestAddress2, TestAddressObserver, TestBsvXmlPlugin, TestChapter, TestCoMarketingPlugin, TestConfig, TestCyP450Connection, TestCyP450InteractionConnection, TestCyP450SubstrateConnection, TestDoctor, TestDocument, TestDownloadInvoicer, TestExporter, TestFachinfo, TestFachinfoDocument, TestFachinfoRule, TestFachinfoWriter, TestFeedback, TestFlockhartPlugin, TestFormat, TestGalenicForm, TestGalenicGroup, TestHospital, TestImageLink, TestIndication, TestInteractionPlugin, TestInvoice, TestInvoiceItem, TestLevenshteinDistance, TestLog, TestLppvPlugin, TestLppvWriter, TestMiGeLPlugin, TestNarcotic, TestNarcoticPlugin, TestNotificationLogger, TestOddbSession, TestOrphanRule, TestPackage, TestParagraph, TestPatinfoInvoicer, TestPersistence, TestPersistenceCreateItem, TestPersistencePointer, TestReadonlyServer, TestRegistration, TestSection, TestSequence, TestSlEntry, TestSmjPlugin, TestSoundex, TestSponsor, TestSubstance, TestTable, TestTextInfoPlugin, TestUnknownUser, TestUpdater, TestUserObserver, TestVaccinePlugin, TestWidowRule, TestYamlExporter, TestYusStub, TestYusUser, TextInfoPlugin, UnknownUser, Updater, Upload, VaccineIndexWriter, VaccinePlugin, Validator, WhoPlugin, XlsExportPlugin, YamlExporter, YdimPlugin, YusStub, YusUser

Constant Summary

ODDB_VERSION =
'version'
Currency =
'test'
SERVER_NAME =
'ch.oddb.org'
SMTP_SERVER =
'mail.ywesee.com'
MAIL_FROM =
'"Zeno R.R. Davatz" <zdavatz@ywesee.com>'
MAIL_TO =
['hwyss@ywesee.com']
SMTP_FROM =
'zdavatz@ywesee.com'
SERVER_URI =
"druby://localhost:10000"
FIPARSE_URI =
"druby://localhost:10002"
FIPDF_URI =
"druby://localhost:10003"
DOCPARSE_URI =
"druby://localhost:10004"
EXPORT_URI =
"druby://localhost:10005"
MEDDATA_URI =
"druby://localhost:10006"
SWISSREG_URI =
"druby://localhost:10007"
COMARKETING_URI =
"druby://localhost:10008"
ANALYSISPARSE_URI =

holidaymanager: “druby://localhost:10009” xmlconv2: “druby://localhost:10010“

"druby://localhost:10011"
READONLY_URI =

globopharm.xmlconv.bbmb.ch: “druby://localhost:10012“

"druby://localhost:10013"
CURRENCY_URI =
"druby://localhost:10999"
YUS_URI =
"drbssl://localhost:9997"
YUS_DOMAIN =
'oddb.org'
PROJECT_ROOT =
File.expand_path('../..', File.dirname(__FILE__))
IMAGE_DIR =
File.join(PROJECT_ROOT, 'doc', 'resources', 'images')
PAYPAL_SERVER =
'www.paypal.com'
PAYPAL_RECEIVER =
'zdavatz@ywesee.com'
ENCODING =
'UTF-8'
DOWNLOAD_EXPORT_PRICES =

Prices and Durations

{
  'analysis.csv'        => 300,
  'chde.xls'            => 600,
  'de.oddb.yaml'        => 600,
  'doctors.csv'         => 1900,
  'doctors.yaml'        => 2100,
  'fachinfos_de.pdf'    => 1000,
  'fachinfos_fr.pdf'    => 1000,
  'fachinfo.yaml'       => 800,
  'compendium_ch.oddb.org.firefox.epub' => 17,
  'compendium_ch.oddb.org.htc.prc'      => 17,
  'compendium_ch.oddb.org.kindle.mobi'  => 17,
  'compendium_ch.oddb.org.stanza.epub'  => 17,
  'generics.xls'        => 150,
  'index_therapeuticus' => 500,
  'interactions.yaml'   => 300,
  'migel.csv'           => 100,
  'narcotics.csv'       => 100,
  'narcotics.yaml'      => 100,
  'oddb.csv'            => 500,
  'oddb2.csv'           => 600,
  'oddbdat'             => 700,
  'oddb.yaml'           => 600,
  'patents.xls'         => 500,
  'patinfo.yaml'        => 500,
  'price_history.yaml'  => 1000,
  'price_history.csv'   => 1000,
  's31x'                => 900,
  'swissdrug-update.xls'=> 150,
}
DOWNLOAD_EXPORT_SUBSCRIPTION_PRICES =
{
  'chde.xls'            => 2000,
  'de.oddb.yaml'        => 2500,
  'fachinfos_de.pdf'    => 3000,
  'fachinfos_fr.pdf'    => 3000,
  'fachinfo.yaml'       => 1400,
  'generics.xls'        => 1700,
  'index_therapeuticus' => 1900,
  'interactions.yaml'   => 1200,
  'narcotics.csv'       => 1000,
  'narcotics.yaml'      => 1000,
  'oddb.csv'            => 2000,
  'oddb2.csv'           => 2100,
  'oddbdat'             => 2500,
  'oddb.yaml'           => 2500,
  'price_history.yaml'  => 2000,
  'price_history.csv'   => 2000,
  's31x'                => 1400,
  'swissdrug-update.xls'=> 1700,
}
DOWNLOAD_EXPORT_DURATIONS =
{ 
  'analysis.csv'        => 30,
  'chde.xls'            => 30,
  'de.oddb.yaml'        => 30,
  'doctors.csv'         => 30,
  'doctors.yaml'        => 30,
  'fachinfo.yaml'       => 30,
  'fachinfos_de.pdf'    => 30,
  'fachinfos_fr.pdf'    => 30,
  'compendium_ch.oddb.org.firefox.epub' => 30,
  'compendium_ch.oddb.org.htc.prc'      => 30,
  'compendium_ch.oddb.org.kindle.mobi'  => 30,
  'compendium_ch.oddb.org.stanza.epub'  => 30,
  'generics.xls'        => 30,
  'index_therapeuticus' => 30,
  'interactions.yaml'   => 30,
  'migel.csv'           => 30,
  'narcotics.csv'       => 30,
  'narcotics.yaml'      => 30,
  'oddb.csv'            => 30,
  'oddb2.csv'           => 30,
  'oddbdat'             => 30,
  'oddb.yaml'           => 30,
  'patents.xls'         => 30,
  'patinfo.yaml'        => 30,
  'price_history.yaml'  => 30,
  'price_history.csv'   => 30,
  's31x'                => 30,
  'swissdrug-update.xls'=> 30,
}
DOWNLOAD_EXPORT_SUBSCRIPTION_DURATIONS =
{ 
  'chde.xls'            => 365,
  'de.oddb.yaml'        => 365,
  'fachinfo.yaml'       => 365,
  'fachinfos_de.pdf'    => 365,
  'fachinfos_fr.pdf'    => 365,
  'generics.xls'        => 365,
  'index_therapeuticus' => 365,
  'interactions.yaml'   => 365,
  'narcotics.csv'       => 365,
  'narcotics.yaml'      => 365,
  'oddb.csv'            => 365,
  'oddb2.csv'           => 365,
  'oddbdat'             => 365,
  'oddb.yaml'           => 365,
  'price_history.yaml'  => 365,
  'price_history.csv'   => 365,
  's31x'                => 365,
  'swissdrug-update.xls'=> 365,
}
DOWNLOAD_PROTOCOLS =
[ 'stanza' ]
DOWNLOAD_UNCOMPRESSED =
[
  'compendium_ch.oddb.org.firefox.epub',
  'compendium_ch.oddb.org.htc.prc',
  'compendium_ch.oddb.org.kindle.mobi',
  'compendium_ch.oddb.org.stanza.epub',
]
FI_UPLOAD_PRICES =
{
  :activation => 1500,
  :annual_fee => 350,
  :processing => 150,
}
FI_UPLOAD_DURATION =
365
PI_UPLOAD_DURATION =
365
PI_UPLOAD_PRICES =
{
  :activation => 1000,
  :annual_fee => 120,
  :processing => 90,
}
QUERY_LIMIT_PRICES =
{
  1   => 5,
  30  => 50,
  365 =>  400,
}
VAT_RATE =
8.0
RSS_PATH =
File.join(PROJECT_ROOT, 'data', 'rss')
TERM_PAIRS =
{
  'Æ' => 'Ae', 'Ä' => 'Ae',
  'æ' => 'ae', 'ä' => 'ae',
  'Œ' => 'Oe', 'Ö' => 'Oe', 'Ø' => 'Oe',
  'œ' => 'oe', 'ö' => 'oe', 'ø' => 'oe',
  'Ü' => 'Ue', 'ü' => 'ue',
  'Å' => 'A', 'Á' => 'A', 'Â' => 'A', 'À' => 'A', 'Ã' => 'A', 'Ą' => 'A',
  'Ǎ' => 'A', 'Ă' => 'A', 'Ā' => 'A', 'Ȧ' => 'A',
  'Ḃ' => 'B',
  'Ç' => 'C', 'Ĉ' => 'C', 'Č' => 'C', 'Ć' => 'C', 'Ċ' => 'C',
  'Ḑ' => 'D', 'Đ' => 'D', 'Ð' => 'D', 'Ď' => 'D', 'Ḋ' => 'D',
  'Ë' => 'E', 'É' => 'E', 'Ê' => 'E', 'È' => 'E', 'Ȩ' => 'E', 'Ę' => 'E',
  'Ě' => 'E', 'Ĕ' => 'E', 'Ẽ' => 'E', 'Ē' => 'E', 'Ė' => 'E',
  'Þ' => 'F', 'Ḟ' => 'F',
  'Ģ' => 'G', 'Ǧ' => 'G', 'Ğ' => 'G', 'Ǵ' => 'G', 'Ĝ' => 'G', 'Ḡ' => 'G',
  'Ġ' => 'G',
  'Ȟ' => 'H', 'Ĥ' => 'H', 'Ḧ' => 'H', 'Ḩ' => 'H', 'Ḣ' => 'H',
  'Ï' => 'I', 'Í' => 'I', 'Î' => 'I', 'Ì' => 'I', 'Į' => 'I', 'Ǐ' => 'I',
  'Ĭ' => 'I', 'Ĩ' => 'I', 'İ' => 'I',
  'Ĵ' => 'J',
  'Ǩ' => 'K', 'Ḱ' => 'K', 'Ķ' => 'K',
  'Ł' => 'L', 'Ĺ' => 'L', 'Ľ' => 'L', 'Ļ' => 'L',
  'Ḿ' => 'M', 'Ṁ' => 'M',
  'Ň' => 'N', 'Ń' => 'N', 'Ñ' => 'N', 'Ǹ' => 'N', 'Ņ' => 'N', 'Ṅ' => 'N',
  'Ó' => 'O', 'Ô' => 'O', 'Ò' => 'O', 'Õ' => 'O', 'Ō' => 'O', 'Ŏ' => 'O',
  'Ǫ' => 'O', 'Ǒ' => 'O', 'Ȯ' => 'O',
  'Ṕ' => 'P', 'Ṗ' => 'P',
  'Ř' => 'R', 'Ŕ' => 'R', 'Ŗ' => 'R', 'Ṙ' => 'R',
  'Ś' => 'S', 'Ŝ' => 'S', 'Š' => 'S', 'Ş' => 'S', 'Ṡ' => 'S', 'ß' => 'ss',
  'Ť' => 'T', 'Ţ' => 'T', 'Ṫ' => 'T',
  'Ú' => 'U', 'Û' => 'U', 'Ù' => 'U', 'Ų' => 'U', 'Ǘ' => 'U', 'Ǔ' => 'U',
  'Ǚ' => 'U', 'Ǜ' => 'U', 'Ũ' => 'U', 'Ŭ' => 'U', 'Ů' => 'U', 'Ǖ' => 'U',
  'Ṽ' => 'V',
  'Ẃ' => 'W', 'Ŵ' => 'W', 'Ẁ' => 'W', 'Ẅ' => 'W', 'Ẇ' => 'W',
  'Ẍ' => 'X', 'Ẋ' => 'X',
  'Ÿ' => 'Y', 'Ẏ' => 'Y', 'Ỹ' => 'Y', 'Ỳ' => 'Y', 'Ŷ' => 'Y', 'Ý' => 'Y',
  'Ȳ' => 'Y',
  'Ž' => 'Z', 'Ź' => 'Z', 'Ẑ' => 'Z', 'Ż' => 'Z',
  'å' => 'a', 'á' => 'a', 'â' => 'a', 'à' => 'a', 'ã' => 'a', 'ą' => 'a',
  'ǎ' => 'a', 'ă' => 'a', 'ā' => 'a', 'ȧ' => 'a',
  'ḃ' => 'b',
  'ç' => 'c', 'ĉ' => 'c', 'č' => 'c', 'ć' => 'c', 'ċ' => 'c',
  'ḑ' => 'd', 'đ' => 'd', 'ð' => 'd', 'ď' => 'd', 'ḋ' => 'd',
  'ë' => 'e', 'é' => 'e', 'ê' => 'e', 'è' => 'e', 'ȩ' => 'e', 'ę' => 'e',
  'ě' => 'e', 'ĕ' => 'e', 'ẽ' => 'e', 'ē' => 'e', 'ė' => 'e',
  'þ' => 'f', 'ḟ' => 'f',
  'ģ' => 'g', 'ǧ' => 'g', 'ğ' => 'g', 'ǵ' => 'g', 'ĝ' => 'g', 'ḡ' => 'g',
  'ġ' => 'g',
  'ȟ' => 'h', 'ĥ' => 'h', 'ḧ' => 'h', 'ḩ' => 'h', 'ḣ' => 'h',
  'ï' => 'i', 'í' => 'i', 'î' => 'i', 'ì' => 'i', 'į' => 'i', 'ǐ' => 'i',
  'ĭ' => 'i', 'ĩ' => 'i', 'ı' => 'i',
  'ĵ' => 'j',
  'ǩ' => 'k', 'ḱ' => 'k', 'ķ' => 'k',
  'ł' => 'l', 'ĺ' => 'l', 'ľ' => 'l', 'ļ' => 'l',
  'ḿ' => 'm', 'ṁ' => 'm',
  'ň' => 'n', 'ń' => 'n', 'ñ' => 'n', 'ǹ' => 'n', 'ņ' => 'n', 'ṅ' => 'n',
  'ó' => 'o', 'ô' => 'o', 'ò' => 'o', 'õ' => 'o', 'ō' => 'o', 'ŏ' => 'o',
  'ø' => 'o', 'ǫ' => 'o', 'ǒ' => 'o', 'ȯ' => 'o',
  'ṕ' => 'p', 'ṗ' => 'p',
  'ř' => 'r', 'ŕ' => 'r', 'ŗ' => 'r', 'ṙ' => 'r',
  'ś' => 's', 'ŝ' => 's', 'š' => 's', 'ş' => 's', 'ṡ' => 's',
  'ť' => 't', 'ţ' => 't', 'ṫ' => 't',
  'ú' => 'u', 'û' => 'u', 'ù' => 'u', 'ų' => 'u', 'ǘ' => 'u', 'ǔ' => 'u',
  'ǚ' => 'u', 'ǜ' => 'u', 'ũ' => 'u', 'ŭ' => 'u', 'ů' => 'u', 'ǖ' => 'u',
  'ṽ' => 'v',
  'ẃ' => 'w', 'ŵ' => 'w', 'ẁ' => 'w', 'ẅ' => 'w', 'ẇ' => 'w',
  'ẍ' => 'x', 'ẋ' => 'x',
  'ÿ' => 'y', 'ẏ' => 'y', 'ỹ' => 'y', 'ỳ' => 'y', 'ŷ' => 'y', 'ý' => 'y',
  'ȳ' => 'y',
  'ž' => 'z', 'ź' => 'z', 'ẑ' => 'z', 'ż' => 'z',
}
TERM_PTRN =
/[#{TERM_PAIRS.keys.join}]/u

Class Method Summary (collapse)

Class Method Details

+ (Object) config



36
37
38
# File 'src/config.rb', line 36

def ODDB.config
  @config
end

+ (Object) search_term(term)



77
78
79
80
81
82
# File 'src/util/searchterms.rb', line 77

def ODDB.search_term(term)
  term = term.to_s.gsub /[[:punct:]]/u, ''
  term.gsub! /[\/\s\-]+/u, ' '
  term.gsub! TERM_PTRN do |match| TERM_PAIRS.fetch match, match end
  term
end

+ (Object) search_terms(words, opts = {})



83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# File 'src/util/searchterms.rb', line 83

def ODDB.search_terms(words, opts={})
  terms = []
  words.flatten.compact.uniq.inject(terms) { |terms, term|
    if(opts[:downcase])
      term = term.downcase
    end
    parts = term.split(/[\/-]/u)
    if(parts.size > 1)
      terms.push(ODDB.search_term(parts.first))
      terms.push(ODDB.search_term(parts.join))
      terms.push(ODDB.search_term(parts.join(' ')))
    else
      terms.push(ODDB.search_term(term))
    end
    terms
  }.select { |term|
                    # don't exclude analysis-codes
    term.length > 2 # && !/^[0-9]+$/u.match(term)
  }
end