User A.I.Brown of ganfyd has been working on a HubMed extension for MediaWiki, which allows users to add tags like <hubmed>Myocardial Infarction</hubmed> that gets rewritten to add a link to a HubMed search for the specified keywords. There are options to limit the search to particular types of clinical queries and to build custom queries.
Ganfyd is a "free medical knowledge base [wiki] that anyone can read and any registered medical practitioner may edit".
Comments
All fields are optional, email address will not be shown; no HTML, URLs are automatically hyperlinked.

Nice...
It's a little more verbose, but this is exactly what the Query element in OpenSearch is designed to do...
[opensearch:Query role="related" searchTerms="Myocardial Infarction" osd="http://hubmed.org/opensearch.xml" /]
or perhaps
[opensearch:Query role="related" searchTerms="Myocardial Infarction" osd="http://hubmed.org/opensearch.xml" title="search for Myocardial Infarction on HubMed" /]
Thanks for the mention.
The extension code is open source, so anyone who wishes to tweak/refine it is welcome to do so (and I think there is room for plenty of improvement).
It has come in very useful for adding searches to templates on ganfyd.
- Adam