I would like to know if I can convert PMID to NIHMSID, if there is no PMCID associated with that PMID and retrieve both of them if PMCID exists. I want to do this programmatically may be using eutils if possible. I know about this link http://www.ncbi.nlm.nih.gov/pmc/pmctopmid/ that will do the work but its not programmatically. I also tried the services by PMC http://www.ncbi.nlm.nih.gov/pmc/tools/oai/#examples but not much of success.
So my questions, again, is I have PMIDs and want to find it there exists a NIHMSID and PMCID for it and retrieve them. If PMCID has not yet been assigned then there should be a NIHMSID, retrieve it. For example I have the following two ids:
Has anyone tried anything similar to this before?