{"id":2112,"date":"2024-04-12T16:19:08","date_gmt":"2024-04-12T08:19:08","guid":{"rendered":"https:\/\/www.yohz.com\/blogs\/?p=2112"},"modified":"2024-04-12T16:26:46","modified_gmt":"2024-04-12T08:26:46","slug":"easy-dicom-search-search-parameters-examples","status":"publish","type":"post","link":"https:\/\/www.yohz.com\/blogs\/2024\/04\/12\/easy-dicom-search-search-parameters-examples\/","title":{"rendered":"Easy DICOM Search &#8211; search parameters examples"},"content":{"rendered":"<div>\n<h3>Working with text values<\/h3>\n<p>Search for exact text:<\/p>\n<pre>(Image.Tag('0008,0060') = 'CT')<\/pre>\n<p>matches CT but not ct, Ct, cT.<\/p>\n<p>Search for multiple exact text:<\/p>\n<pre>(Image.Tag('0008,0060') In\u00a0['CT', 'MR'])<\/pre>\n<p>matches CT and MR, but not ct, Ct, cT, mr, Mr, mR.<\/p>\n<p>Search for multiple text values (case-insensitive):<\/p>\n<pre>(Image.Tag('0008,0060').Match('CT, MR'))<\/pre>\n<p>matches CT, MR, ct, Ct, cT, mr, Mr, mR.<\/p>\n<p>Search for multiple text values (case-insensitive):<\/p>\n<pre>(Image.Tag('0008,0060').Match('CT, MR'))<\/pre>\n<p>matches CT, MR, ct, Ct, cT, mr, Mr, mR.<\/p>\n<p>Search for partial text matches (case-insensitive):<\/p>\n<pre>(Image.Tag('0008,0080').Contain('hospital'))<\/pre>\n<p>matches &#8216;Hospital of Columbia&#8217;, &#8216;Columbia Hospital&#8217;<\/p>\n<p>Search for multiple partial text matches (case-insensitive):<\/p>\n<pre>(Image.Tag('0008,0080').Contain('hospital, research'))<\/pre>\n<p>matches &#8216;Hospital of Columbia&#8217;, &#8216;Columbia Hospital&#8217;, &#8216;Columbia Research Institute&#8217;, &#8216;Research Institute of Columbia&#8217;<\/p>\n<p>Search for values starting with a specific text (case-insensitive):<\/p>\n<pre>(Image.Tag('0008,0080').StartWith('hospital'))<\/pre>\n<p>matches &#8216;Hospital of Columbia&#8217; but not &#8216;Columbia Hospital&#8217;.<\/p>\n<p>Search for values starting with multiple specific text (case-insensitive):<\/p>\n<pre>(Image.Tag('0008,0080').StartWith('hospital, research'))<\/pre>\n<p>matches &#8216;Hospital of Columbia&#8217;, &#8216;Research Institute of Columbia&#8217;, but not &#8216;Columbia Hospital&#8217;, &#8216;Columbia Research Institute&#8217;.<\/p>\n<p>Search for values ending with a specific text (case-insensitive):<\/p>\n<pre>(Image.Tag('0008,0080').EndWith('hospital'))<\/pre>\n<p>matches &#8216;Columbia Hospital&#8217; but not &#8216;Hospital of Columbia&#8217;.<\/p>\n<p>Search for values ending with multiple specific text (case-insensitive):<\/p>\n<pre>(Image.Tag('0008,0080').EndWith('hospital, research'))<\/pre>\n<p>matches &#8216;Columbia Hospital&#8217;, &#8216;Columbia Research Institute&#8217; but not &#8216;Hospital of Columbia&#8217;, &#8216;Research Institute of Columbia&#8217;.<\/p>\n<p>Search for inequality values:<\/p>\n<pre>(Image.Tag('0008,0060') &lt;&gt; 'CT')<\/pre>\n<p>matches any value but CT.<\/p>\n<p>Reverse the results of the &#8216;inner&#8217; parameters:<\/p>\n<pre>(NOT (Image.Tag('0008,0060') = 'CT'))<\/pre>\n<h3>Working with numbers<\/h3>\n<p>Match a specific value:<\/p>\n<pre>(Image.Tag('0010,1030') = 50)<\/pre>\n<p>Match one value from a list of values:<\/p>\n<pre>(Image.Tag('0010,1030') IN [30,33,36,39])<\/pre>\n<p>Match value using comparison operators:<\/p>\n<pre>(Image.Tag('0010,1030') &gt; 50)\r\n(Image.Tag('0010,1030') &gt;= 50)\r\n(Image.Tag('0010,1030') &lt; 50)\r\n(Image.Tag('0010,1030') &lt;= 50)\r\n(Image.Tag('0010,1030') &lt;&gt; 50)<\/pre>\n<p>Match a range of values:<\/p>\n<pre>(Image.Tag('0010,1030').BETWEEN(30, 60))<\/pre>\n<p>Reverse the results of the &#8216;inner&#8217; parameters.<\/p>\n<pre>(NOT (Image.Tag('0010,1030').BETWEEN(30, 60)))<\/pre>\n<h3>Working with date and time values<\/h3>\n<p>Dates are represented in the [year][month][day] format, so February 14, 2024 is represented as 20240214.\u00a0 You then write your search parameters the same way as you would for numbers e.g.<\/p>\n<pre>(Image.Tag('0008,0020') =\u00a020240214)\r\n(Image.Tag('0008,0020') &gt; 20240214)\r\n(Image.Tag('0008,0020') &gt;= 20240214)\r\n(Image.Tag('0008,0020') &lt; 20240214)\r\n(Image.Tag('0008,0020') &lt;= 20240214)\r\n(Image.Tag('0008,0020') &lt;&gt; 20240214)\r\n(Image.Tag('0008,0020') IN [20240214, 20241108]\r\n(Image.Tag('0008,0020').BETWEEN(20240214, 20250214))<\/pre>\n<p>Similarly, time is represented in the [hour][minutes][second] format, so 10:30.24 PM is represented as 223024.\u00a0 You then write your search parameters the same way as you would for numbers.<\/p>\n<h3>Working with patient age (AS-type)<\/h3>\n<p>Patient age can be returned in a variety of values.<\/p>\n<p>Image.PatientAge &#8211; returns the age in years<br \/>\nImage.PatientAgeInDays &#8211; returns the age in years<br \/>\nImage.PatientAgeInWeeks &#8211; returns the age in weeks<br \/>\nImage.PatientAgeInMonths &#8211; returns the age in months<\/p>\n<p>The returned values are number values, and you can then use the same search parameters for numbers e.g.<\/p>\n<pre>(Image.PatientAge = 50)\r\n(Image.PatientAgeInDays &gt;= 180)\r\n(Image.PatientAgeInWeeks.BETWEEN(15, 30)\r\n(Image.PatientAgeInMonths &lt; 10)<\/pre>\n<\/div>\n<div>\n<hr \/>\n<h2><span style=\"color: #000000;\"><em>Easy DICOM Search is the easiest tool you can use to search your DICOM image collection, and the most flexible in how you can work with the search results.<\/em><\/span><\/h2>\n<hr \/>\n<p><a href=\"https:\/\/www.yohz.com\/downloads\/easydicomsearch\/EasyDICOMSearchSetup.zip\">Download<\/a> a 14-day trial of <a href=\"https:\/\/www.yohz.com\/easydicomsearch\/eds_index.htm\">Easy DICOM Search<\/a> now.\u00a0 A 12-months license costs USD 45, and includes 12 months of support and updates.<\/p>\n<p>See also:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.yohz.com\/blogs\/2024\/04\/11\/getting-started-with-easy-dicom-search\/\">getting started with Easy DICOM Search<\/a><\/li>\n<\/ul>\n<\/div>\n<div class=\"fcbkbttn_buttons_block\" id=\"fcbkbttn_left\"><div class=\"fcbkbttn_like \"><fb:like href=\"https:\/\/www.yohz.com\/blogs\/2024\/04\/12\/easy-dicom-search-search-parameters-examples\/\" action=\"like\" colorscheme=\"light\" layout=\"button\"  size=\"small\"><\/fb:like><\/div><div class=\"fb-share-button  \" data-href=\"https:\/\/www.yohz.com\/blogs\/2024\/04\/12\/easy-dicom-search-search-parameters-examples\/\" data-type=\"button\" data-size=\"small\"><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Working with text values Search for exact text: (Image.Tag(&#8216;0008,0060&#8217;) = &#8216;CT&#8217;) matches CT but not ct, Ct, cT. Search for multiple exact text: (Image.Tag(&#8216;0008,0060&#8217;) In\u00a0[&#8216;CT&#8217;, &#8216;MR&#8217;]) matches CT and MR, but not ct, Ct, cT, mr, Mr, mR. Search for multiple text values (case-insensitive): (Image.Tag(&#8216;0008,0060&#8217;).Match(&#8216;CT, MR&#8217;)) matches CT, MR, ct, Ct, cT, mr, Mr, mR. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[213],"tags":[219,214],"_links":{"self":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/2112"}],"collection":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/comments?post=2112"}],"version-history":[{"count":6,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/2112\/revisions"}],"predecessor-version":[{"id":2120,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/2112\/revisions\/2120"}],"wp:attachment":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/media?parent=2112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/categories?post=2112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/tags?post=2112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}