Skip to contents

Pure.

Usage

europepmc_parse_results(body)

Arguments

body

A parsed Europe PMC search response.

Value

A tibble of title, authors, year, journal, pmid, doi, cited_by, source, source_id, and source_url, newest first, which is the order Europe PMC returns. NULL when nothing matched.

Details

source_id is the citable identifier: PMID:<n> where there is a PMID, and <source>:<id> otherwise, because a preprint or a patent record has no PMID but is still groundable.

Examples

body <- list(resultList = list(result = list(list(
  id = "36197410",
  source = "MED",
  pmid = "36197410",
  title = "TP53 or Not TP53",
  authorString = "Green SD.",
  journalTitle = "Clin Cancer Res",
  pubYear = "2022"
))))
europepmc_parse_results(body)
#> # A tibble: 1 × 10
#>   title   authors year  journal pmid  doi   cited_by source source_id source_url
#>   <chr>   <chr>   <chr> <chr>   <chr> <chr>    <dbl> <chr>  <chr>     <chr>     
#> 1 TP53 o… Green … 2022  Clin C… 3619… NA          NA MED    PMID:361… https://e…