WFU

2024/11/16

外部查詢 PubMed MeSH 的方法(ESearch, EFetch)

(1) 關鍵字查 MeSH Term,回傳 MeSH id (XML 格式)

呼叫方式
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=mesh&term={關鍵字}

Esearch 會回傳一連串的 MeSH ID 資訊,格式請詳見以下範例

(2) 用 MeSH id 回傳 MeSH 細部內容(XML格式)

呼叫方式
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=mesh&id={id}&retmode=xml

EFetch 會返回一個包含詳細 MeSH 詞條信息的 XML 文件。這個 XML 包含了如下信息:
  • 詞條名稱(DescriptorName)
  • 詞條編號(DescriptorUI)
  • 樹狀結構編號(TreeNumber)
  • 概念(Concept)
  • 同義詞(TermList)
  • 定義(ScopeNote)等

(3) 批量查詢 MeSH id

如果你需要查詢多個 ID,可以在一個請求中包含多個 ID,用逗號分隔:
範例: https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=mesh&id=68059366,68055963,68004418&retmode=xml

以下為範例

(A) 關鍵字查 MeSH Term 範例:

https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=mesh&term=asthma

回傳XML內容

<eSearchResult>

<Count>13</Count>

<RetMax>13</RetMax>

<RetStart>0</RetStart>

<IdList>

<Id>68059366</Id>

<Id>68055963</Id>

<Id>68004418</Id>

<Id>68001250</Id>

<Id>68001249</Id>

<Id>67565935</Id>

<Id>67565934</Id>

<Id>67565739</Id>

<Id>67565292</Id>

<Id>67564133</Id>

<Id>67484532</Id>

<Id>2106493</Id>

<Id>2030960</Id>

</IdList>

<TranslationSet>

<Translation>

<From>asthma</From>

<To>"asthma"[MeSH Terms] OR asthma[Text Word]</To>

</Translation>

</TranslationSet>

<TranslationStack>

<TermSet>

<Term>"asthma"[MeSH Terms]</Term>

<Field>MeSH Terms</Field>

<Count>1</Count>

<Explode>N</Explode>

</TermSet>

<TermSet>

<Term>asthma[Text Word]</Term>

<Field>Text Word</Field>

<Count>13</Count>

<Explode>N</Explode>

</TermSet>

<OP>OR</OP>

<OP>GROUP</OP>

</TranslationStack>

<QueryTranslation>"asthma"[MeSH Terms] OR asthma[Text Word]</QueryTranslation>

</eSearchResult>


(B) 用 MeSH id 查內容範例

https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=mesh&id=68059366&retmode=xml 回傳資訊如下:

1: Asthma, Occupational

Asthma attacks caused, triggered, or exacerbated by OCCUPATIONAL EXPOSURE.

Year introduced: 2012


Subheadings:

    blood

    cerebrospinal fluid

    chemically induced

    classification

    complications

    congenital

    diagnosis

    diagnostic imaging

    diet therapy

    drug therapy

    economics

    embryology

    enzymology

    epidemiology

    ethnology

    etiology

    genetics

    history

    immunology

    metabolism

    microbiology

    mortality

    nursing

    parasitology

    pathology

    physiopathology

    prevention and control

    psychology

    radiotherapy

    rehabilitation

    surgery

    therapy

    urine

    veterinary

    virology


Tree Number(s): C08.127.108.495, C08.674.095.495, C20.543.480.680.095.495, C24.102

Entry Terms:

    Asthmas, Occupational

    Occupational Asthma

    Occupational Asthmas


Previous Indexing:

    Asthma (1964-2011)


    All MeSH Categories

        Diseases Category

            Respiratory Tract Diseases

                Bronchial Diseases

                    Asthma

                        Asthma, Occupational


    All MeSH Categories

        Diseases Category

            Respiratory Tract Diseases

                Respiratory Hypersensitivity

                    Asthma

                        Asthma, Occupational


    All MeSH Categories

        Diseases Category

            Immune System Diseases

                Hypersensitivity

                    Hypersensitivity, Immediate

                        Respiratory Hypersensitivity

                            Asthma

                                Asthma, Occupational


    All MeSH Categories

        Diseases Category

            Occupational Diseases

                Asthma, Occupational