Problem downloading ICD9 codes

srajapaksa wrote on Tuesday, January 11, 2011:

I was trying to load the ICD9 code tables into my system (as I’m using someone else’s fork which doesn’t have them)

For this I followed the instructions on the wiki page:

http://www.openmedsoftware.org/wiki/Load_ICD9_Codes

I installed Activeperl and ran the script as given.

some of the codes were being downloaded but the code insertion is aborted midway with the following error message:

Error GETing http://www.icd9data.com/2010/Volume1/140-239/170-175/172/default.ht
m: Status read failed: An established connection was aborted by the software in
your host machine. at C:\xampp\xampp\htdocs\openemr\contrib\util\load_ic
d_desc.plx line 75

it always stops at line 75 which holds the code:

  my $browser = WWW::Mechanize->new();
  $browser->get($url);
  my $parser = HTML::TokeParser->new($browser->content());

I have checked my connection and other security options which may have prevented the download,and its inserting some codes correctly into the database.

what could be wrong?

yehster wrote on Tuesday, January 11, 2011:

I suspect what is happening is that the web page from icd9data.com is failing to load for you completely some of the time.  Try wrapping the $browser->get($url); in exception handling code and retry the get.

https://www.socialtext.net/perl5/index.cgi?exception_handling

srajapaksa wrote on Tuesday, February 01, 2011:

It worked.

Thanks Yehster,

ericsbrown wrote on Friday, February 18, 2011:

I came across your post while I was searching for similar information.  I noticed that in your post you are trying to load 2010 codes instead of 2011 codes.  I wasn’t sure if this was intentional or not but I figured it was worth mentioning to you.