450 likes | 772 Views
Edu Rad. C LEVELAND C LINIC. RadLex for Dummies A How-to Tutorial and Practical Example for Integrating RadLex for Individual Needs. Talanow R Cleveland Clinic, Cleveland, Ohio. Tutorials and scripts available at: www.SearchRadiology.com/RadLex. Menu
E N D
Edu Rad CLEVELAND CLINIC RadLex for DummiesA How-to Tutorial and Practical Example for Integrating RadLex for Individual Needs Talanow RCleveland Clinic, Cleveland, Ohio Tutorials and scripts available at: www.SearchRadiology.com/RadLex
Menu Click on a link to view a specific area or wait until the slideshow begins Purpose Content Organization Summary Quick Intro to RadLex How can RadLex be used? Important resources How-to step by step tutorials: PERL Tutorial PHP Tutorial ASP Tutorial Where can I get examples? Tutorials and scripts available at: www.SearchRadiology.com/RadLex
Purpose RadLex is a lexicon for uniform indexing and retrieval of radiology information resources. It offers users and developers to share the information via several ways. One way is the possibility to retrieve the information directly from the user's website. However, for less computer experienced users this may become a difficult task to perform. MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
Content Organization We provide a tutorial how to create an interface to use the RadLex information from the user's own website. Step by step, the tutorial explains the requirements which are needed to perform this task and explains the indivdual steps with explanatory text and images. This tutorial demonstrates also a working and useful example. After this tutorial, even a not well computer experienced user should be able to integrate a RadLex interface into the own website. MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
Summary This tutorial explains in an - even for a less computer experienced user - understandable way how to create a working RadLex interface for individual purposes such as integrating into the own website. MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
RadLex for Dummies The following slides will provide you with a tutorial, how to create an interface to use the RadLex information from your own website Sit down, relax and enjoy! MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
What is Radlex? • Sponsored by RSNA and other organizations. • RadLex is a single unified source of Radiology terms and unifies/supplements other lexicons and standards, such as SNOMED-CT, and DICOM. • It faces the challenge that images, imaging reports, and medical records move online, and that radiologists need a unified language to organize and retrieve them. MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
What is Radlex? • Radiologists currently use a variety of terminologies and standards, but no single lexicon serves all of their needs. That’s where RadLex comes into play… • RadLex is a single unified source of Radiology terms that is designed to unify language to organize and retrieve images, imaging reports, and medical records. • About 12000 RadLex terms are currently included • Integration of different languages (German) is planned MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
The RadLex term lexicon is divided in multiple categories: • treatment • imaging procedure attribute • substance • procedure step • imaging observation characteristic • modifier • foreign body • imaging observation • anatomic entity • teaching attribute • relationship • imaging service request • image quality MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
How can RadLex be used? • RadLex offers to use the lexicon for individual needs. • Methods of Radlex usage: • Through RadLex browser • On own website (through RadLex API) MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
How can RadLex be used? The RadLex lexicon can be either accessed by the end user through the RadLex browser provided by the RadLex website… Customized display Uniform display …or can be individually displayed by a third party website through the RadLex API interface. MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
How can RadLex be used? RadLex Browser • Pros: • No programming necessary • Independent from user’s • resources (server, URL, etc.) • Contras: • Not customizable to individual needs • Static layout and display of search results Screenshot RadLex browser MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
How can RadLex be used? RadLex on own website (through API) • Pros: • Customizable to individual needs • Flexible layout and display of search results • Integration into other programs • Contras: • User need software & hardware resources (server, URL, etc.) • Programming skills necessary -> This tutorial, including downloadable scripts should alleviate parts of this burden MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
How-to step by step RadLex API acts as a webservice, which allows developers to query the RadLex terminology and retrieve an XML API methods. Basically, we need to do 5 steps! Step 1: Open connection to the RadLex server Step 2: Send a query to the RadLex server Step 3: Accept the incoming XML data Step 4: Identify and count nodes (child elements) Step 5: Format the output to your individual needs MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
How-to step by step On the next slides you will be provided with simplified codes for several programming languages (PERL, PHP and ASP). The complete codes can be downloaded for free. MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
How-to step by step PERL MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
How-to step by step PERL Example Step 1: Open connection to the RadLex server use LWP::Simple qw(get $ua); $url = "http://radlex.org/search?query=$q"; $q = search term Step 2: Send a query to the RadLex server MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
How-to step by step PERL Example Step 3: Accept the incoming XML data $efetch_result = get($url); get the data This is an XML example returned by the RadLex server for the search term “lipoma” MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
How-to step by step PERL Example Step 4: Identify and count nodes (child elements) Search for the tags “term”, which is a child (node) of the tag “terms” @entries = split(/<\/term>/,$efetch_result); Now, go through each node (foreach loop) and split the information foreach ( @entries){@fields = split(/"/,$_); Create an array (list) of terms (e.g. for diagnoses) push(@diagnosis,$fields[4]); … }end of loop MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
How-to step by step PERL Example Step 5: Format the output to your individual needs Now go through the terms in our created list and do whatever you want foreach (@diagnosis){ Example: Create a hyperlink for each term $links_s .= qq~: <a href="?search=$_">$_</a> :~; Or create a pulldown menu item for each term $option_s .= qq~<option value="$_">$_</option>~;} Example: Create a search form, including the pulldown menu with all similar terms $similar = qq~<form action=""><select name="search"><option value="">Similar terms to $q</option>$option_s</select><input type="submit" value=">>" ></form>~; MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
PERL code example Complete script code (downloadable) MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
Et voila! Working online MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
How-to step by step PHP MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
How-to step by step PHP Example Step 1: Open connection to the RadLex server $xmlDoc = new DOMDocument(); $xml=("http://radlex.org/search?query=".$q); $q = search term Step 2: Send a query to the RadLex server MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
How-to step by step PHP Example Step 3: Accept the incoming XML data $xmlDoc->load($xml); get the data This is an XML example returned by the RadLex server for the search term “lipoma” MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
How-to step by step PHP Example Step 4: Identify and count nodes (child elements) Search for the tag “terms”, which includes all children (the terms we are looking for) $x=$xmlDoc->getElementsByTagName('terms'); Get now the items (have tag “term”) $c = $xmlDoc->getElementsByTagName('term'); Now, count each item (foreach loop) foreach($c as $cs){ $j ++; } end of loop MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
How-to step by step PHP Example Step 5: Format the output to your individual needs Now go through each item (term) and do whatever you want (here: create hyperlinks) for ($i=0; $i<=$j; $i++) { $term=$x->item(0)->getElementsByTagName('term') ->item($i)->childNodes->item(0)->nodeValue; print ("<p><a href='?search=" . $term . "'>" . $term . "</a>"); } MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
PHP code example Complete script code (downloadable) MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
Et voila! Working online MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
How-to step by step ASP MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
How-to step by step ASP Example Step 1: Open connection to the RadLex server Set xmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP.3.0") xmlHttp.Open "GET", URLToRSS, false xmlHttp.Send() URLToRSS = "http://radlex.org/search?query=" & Request(“q") q = search term Step 2: Send a query to the RadLex server MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
How-to step by step ASP Example Step 3: Accept the incoming XML data RSSXML = xmlHttp.ResponseText get the data This is an XML example returned by the RadLex server for the search term “lipoma” MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
How-to step by step ASP Example Step 4: Identify and count nodes (child elements) Search for the tag “terms”, which includes all children (the terms we are looking for) Set RSSItems = xmlDOM.getElementsByTagName("terms") Now, through each node (for each loop) Set SearchtermItems = RSSItem.getElementsByTagName("term") for each Searchtermitem in SearchtermItems … MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
How-to step by step ASP Example Step 5: Format the output to your individual needs Now go through each item (term) and do whatever you want (here: create hyperlinks) RSSSearchterm = "<a href='?search="& Searchtermitem.text & "'>" & Searchtermitem.text & "</a>, <br /> “ Response.Write RSSSearchterm MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
ASP code example Complete script code (downloadable) MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
Et voila! Working online MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
Test the scripts by putting the search termat the end of the URL (after “?search=“) MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
A more sophisticated usage of the RadLex API: www.SearchRadiology.com MENU
Important Links • RadLex homepage: http://www.rsna.org/radlex/ • RadLex Viewer: http://radlex.org/viewer • RadLex Documentation: ftp://ftp.ihe.net/RadLex/documentation.html • Radlex API (Application programming interface): http://radlexwiki.rsna.org/?title=RadLex_API MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
Example Codes (Free download) • RadLex Tutorial homepage: http://www.SearchRadiology.com/RadLex • Example script (written in PERL): http://www.searchradiology.com/radlex/radlex-perl.zip • Example script (written in PHP): http://www.searchradiology.com/radlex/radlex-php.zip • Example script (written in ASP): http://www.searchradiology.com/radlex/radlex-asp.zip MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
Thank you for taking the time to watch this RadLex tutorial. I hope that you found it useful and might take advantage of RadLex’ phantastic features for your own website. For more information and suggestions please contact: Roland Talanow, MD, PhD Email: programs@talanow.info MENU Tutorials and scripts available at: www.SearchRadiology.com/RadLex
Edu Rad CLEVELAND CLINIC RadLex for DummiesA How-to Tutorial and Practical Example for Integrating RadLex for Individual Needs Talanow RCleveland Clinic, Cleveland, Ohio Tutorials and scripts available at: www.SearchRadiology.com/RadLex