"PubMed" (Service Connection)
-
See Also
- ServiceExecute
- ServiceConnect
-
- Service Connections
- OpenLibrary
- ArXiv
-
-
See Also
- ServiceExecute
- ServiceConnect
-
- Service Connections
- OpenLibrary
- ArXiv
-
See Also
"PubMed" (Service Connection)
Connecting & Authenticating
ServiceConnect["PubMed"] creates a connection to the PubMed API. If a previously saved connection can be found, it will be used; otherwise, a new authentication request will be launched.
Requests
ServiceExecute["PubMed","request",params] sends a request to the PubMed API, using parameters params. The following gives possible requests.
Search Publications and Other Works
"PublicationSearch" — a Dataset with information about publications matching search criteria
| "ID" | None | ID or list of IDs | |
| "Query" | None | query terms | |
| "Author" | None | author's name | |
| "Title" | None | title keywords | |
| "Publisher" | None | publisher name | |
| "CreationDate" | None | date the citation was first created | |
| "CompletionDate" | None | date the National Library of Medicine finished processing the citation | |
| "ModificationDate" | None | date of the most recent revision | |
| "EntrezDate" | None | date the citation was added to PubMed | |
| "PublicationDate" | None | date or date interval that the article was published | |
| "ISBN" | None | ISBN for books or book chapters | |
| "Language" | None | language in which the article was published | |
| "PublicationType" | None | type of material the article represents (e.g. "Review", "Clinical Trial", "Retracted Publication", "Letter") | |
| MaxItems | 20 | maximum results to return | |
| "Elements" | "Data" | data elements to return | |
| "StartIndex" | 0 | index of first search result to return | |
| "SortBy" | None | field to sort by ("MostRecent", "Relevance", "PublicationDate", "Author", "Journal", "Title") |
List Publication Types
"PublicationTypes" — a List of publication types
Publication Abstract
"PublicationAbstract" — abstract for the specified PubMed ID
| "ID" | (required) | ID or list of IDs |
Examples
open all close allBasic Examples (2)
Create a new connection to PubMed:
pubmed = ServiceConnect["PubMed"]Search publications by author and title:
pubmed["PublicationSearch", <|"Author" -> "smith", "Title" -> "healthcare"|>]Sort results by publication date:
ServiceExecute["PubMed", "PublicationSearch", <|"Query" -> "science", MaxItems -> 10, "SortBy" -> "PublicationDate"|>]Retrieve information for a specific publication:
ServiceExecute["PubMed", "PublicationSearch", <|"ID" -> "26671975", "Elements" -> "FullData"|>][1]Scope (3)
Paginate over long lists of results:
ServiceExecute["PubMed", "PublicationSearch", <|"Query" -> "science", MaxItems -> 5, "StartIndex" -> 5000|>]publicationTypes = ServiceExecute["PubMed", "PublicationTypes"][[ ;; 10]]ServiceExecute["PubMed", "PublicationSearch", <|"PublicationType" -> publicationTypes[[6]]|>][1]Use dates to filter search results:
ServiceExecute["PubMed", "PublicationSearch", <|"PublicationDate" -> {"25 october 1964", "1965"}|>]ServiceExecute["PubMed", "PublicationSearch", <|"CreationDate" -> Today, MaxItems -> 5|>]Retrieve an abstract for a given publication:
ServiceExecute["PubMed", "PublicationAbstract", "ID" -> "26558272"]