Pubmed notes
A simple way of fetching documents from pubmed, as actually used, for testing purposes anyway:
<?php
$efetch_url = 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=' . $pmid . '&retmode=xml';
// @debug
// $efetch_load = simplexml_load_file($efetch_url);
// drupal_set_message('<pre>'.var_export($efetch_load,TRUE).'</pre>');
?>
Reference:
http://www.ncbi.nlm.nih.gov/entrez/query/static/esoap_help.html
http://www.ncbi.nlm.nih.gov/entrez/eutils/soap/v2.0/efetch_pubmed.wsdl
http://www.ncbi.nlm.nih.gov/entrez/query/static/citmatch.html
http://eutils.ncbi.nlm.nih.gov/entrez/query/static/efetchlit_help.html
http://www.ncbi.nlm.nih.gov/books/bv.fcgi?rid=helppubmed.section.pubmedhelp.Search_Field_Descrip
This can be done with SOAP as well as the simpler way.
http://drupal.org/project/soapclient
http://www.drupaler.co.uk/blog/complex-calls-soap-client/77
See also http://agaricdesign.com/note/biblio-module-first-take
(Let us not forget the mythical nodalpoint pubmed module, which announced its triumphant return in the post "Pubmed module is back"... that was on 2003-05-12 unfortunately and, in addition to there being no code, none of the example links work anymore.)
Thanks to a tip from Alf Eaton of HubMed.org:
just put one of PubMed's filters in square brackets at the end of the search term, same as in the web interface.
"melancon b"[AU], for example.http://www.ncbi.nlm.nih.gov/books/bv.fcgi?rid=helppubmed.section.pubmedhelp.Search_Field_Descrip
Document Type Definition (DTD), could also call it XML Schema
http://www.ncbi.nlm.nih.gov/entrez/query/static/PubMed.dtd
http://www.blackwellpublishing.com/xml/dtds/4-0/help/pubmedmap.htm
Comments
Post new comment