User login

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

Resolution

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.