PubMed Backend

About the PubMed Backend

PubMed comprises more than 30 million citations for biomedical literature from MEDLINE, life science journals, and online books.

To learn more about PubMed, see https://www.ncbi.nlm.nih.gov/pubmed.

The following specific PubMed type search engines are available as backends in SmartHub:

  • NCBIPCCompound
  • NCBIPCPathwayReaction
  • NCBIPCSubstance
  • NCBIPMC
  • NCBIProtein

To set up PubMed as a backend The search engine your SmartHub instance uses to perform queries. SmartHub can be configured to use more than one search engine. in your instance of SmartHub, use the topics below.

How to Set Up the PubMed Backend

Use the following steps to configure your PubMed backend.

Add a New Backend to SmartHub

  1. Start by opening your SmartHub Administration site: https://<SmartHubSite>:<port>/_admin.

  2. Add a new backend.

  3. The Backend Settings page appears. Select your PubMed/PubChem backend from the "Backend type" drop-down menu:



  4. Complete the following fields on the page:
    1. Backend Name
    2. Backend Type
    3. Maximum number of results to retrieve for a query
    4. (Backend) API Key: When you register a new PubMed account, you are given the option to create a key. Use that key value here.
    5. Supported result sources:
      1. Optional.
      2. Add all the results sources where you want to display PubMed/PubChem content.
      3. Add the sources using the following syntax:
        1. Syntax:  
          1. <Result source ID>=pccompound;<Result source ID>=pccompound;
        2. Example:
          1. 221c396f-c525-4fe2-a210-c58c81ffeb99=pccompound;661cca31-31ba-4021-9581-9b809a1a7faa=pccompound

Configure Your SmartHub Results Page

  1. Your SmartHub Results page is controlled by the file Results.html (or a modified version of that file if you use a custom Results page).

  2. Reference the PubMed/PubChem backend name and the Result source ID (added to the backend set up as above)
    1. Example:

PubChem Settings

If you are setting up PubChem you must also add the following code to your custom settings file, (such as a custom Results settings file):

  1. Open your custom settings file for editing, such as ResultsCopyCustomSettings.js.
    1. Default path: <SmartHub root directory>\CustomerCustomization\settings\
    2. Your custom settings path may vary:
      1. Example: <SmartHub root directory>\MyCustomerCustomization\settings\
  2. Open the file DefaultModuleSettings.js, found in \modules\SmartHubResourceLoader\.
    1. Add the following code, from line 976 to 984 in the graphic below, to your custom settings file, described in step 1, above.
    2. Change the following settings from "false" to "true":
      1. Enabled
      2. ChemViewerEnabled
      3. ChemComposerEnabled



    3. Example: PubChem Composer Enabled in SmartHub




Results Page Example

Once configured, your site Results page will resemble the screenshot below:

Security Trimming

Note: There is no security on PubMed content.

BA Insight SmartHub requires only an API key to access the content.