source:
qrda/qds/sno2rdf.pl@
991
| Last change on this file since 991 was 902, checked in by , 15 years ago | |
|---|---|
| File size: 381 bytes | |
| Line | |
|---|---|
| 1 | #!/usr/bin/perl -w |
| 2 | |
| 3 | print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; |
| 4 | print "<snomed>\n"; |
| 5 | while(<STDIN>) |
| 6 | { |
| 7 | my($line) = $_; |
| 8 | chomp($line); |
| 9 | #print "$line\n"; |
| 10 | #if ($line =~ /(\d+)\t(\d+).((\w| |\(|\))+)\t(\w+)\t/) |
| 11 | #if ($line =~ m/(^\t+)\t(^\t+)\t(^\t+)\t(^\t+)\t/) |
| 12 | { |
| 13 | print "<e c=\"" . $1 . "\" n=\"" . $3 . "\" \/>" . "\n"; |
| 14 | } |
| 15 | } |
| 16 | print "</snomed>\n"; |
Note:
See TracBrowser
for help on using the repository browser.
