<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">

<channel>
	<title>Bob on Medical Device Software</title>
	
	<link>http://rdn-consulting.com/blog</link>
	<description>Software Development and Biomedical Engineering</description>
	<lastBuildDate>Wed, 28 Jul 2010 03:13:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<cloud domain="rdn-consulting.com" port="80" path="/blog/?rsscloud=notify" registerProcedure="" protocol="http-post" />
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/BobOnMedicalDeviceSoftware" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="bobonmedicaldevicesoftware" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Failure to Launch: Healthcare IT Q&amp;A</title>
		<link>http://rdn-consulting.com/blog/2010/07/19/failure-to-launch-healthcare-it-qa/</link>
		<comments>http://rdn-consulting.com/blog/2010/07/19/failure-to-launch-healthcare-it-qa/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 05:00:20 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[area51.stackexchange.com]]></category>
		<category><![CDATA[Health Informatics Forum]]></category>
		<category><![CDATA[HIT Community]]></category>
		<category><![CDATA[stack exchange]]></category>
		<category><![CDATA[stack overflow]]></category>

		<guid isPermaLink="false">http://rdn-consulting.com/blog/?p=379</guid>
		<description><![CDATA[It seems like a great concept (to me anyway). Grow a community of like-minded Healthcare IT geeks that want to participate in an on-line Q&#38;A site which rewards contribution and facilitates constructive dialog. As of today, it appears unlikely this will happen anytime soon. Even after being endorsed on HISTalk News 6/25/10 less than 900 [...]]]></description>
			<content:encoded><![CDATA[<p>It seems like a great concept (to me anyway). Grow a community of like-minded Healthcare IT geeks that want to participate in an on-line Q&amp;A site which rewards contribution and facilitates constructive dialog. As of today, it appears unlikely this will happen anytime soon.</p>
<p style="text-align: center;"><a href="http://area51.stackexchange.com/proposals/6433/healthcare-it?referrer=oCd_jImHIG_Wgagw76fBpg2" target="_blank"><img class="size-full wp-image-380 aligncenter" title="area51-hit" src="http://rdn-consulting.com/blog/wp-content/uploads/2010/07/area51-hit.png" alt="" width="500" height="79" /></a></p>
<p>Even after being endorsed on <a href="http://histalk2.com/2010/06/24/news-62510/" target="_blank">HISTalk News 6/25/10</a> less than 900 people have visited the site.</p>
<p>The attraction that programmers have for <a href="http://stackoverflow.com/" target="_blank">Stack Overflow</a> just doesn&#8217;t translate for this group of professionals. I suppose it&#8217;s the nature of the business.</p>
<ol>
<li>Programming, like <a href="http://cooking.stackexchange.com/" target="_blank">Food and Cooking</a>, have a much larger audience. Since only a small percentage of the interested population will actively participate or become community leaders, the numbers game is critical.</li>
<li>Even though Healthcare IT seems like a broad topic, the number of non-subjective questions that could be asked is probably fairly limited.  The .NET Framework and bread recipes have tons of facts.</li>
<li>Maybe HIT experts are a shy bunch?  The activity level also seems surprising low on Chris Paton&#8217;s <a id="application_name_header_link" href="http://www.healthinformaticsforum.com/">Health Informatics Forum</a> site which has over 4000 members.</li>
</ol>
<p>Anyway, it&#8217;s really too bad there isn&#8217;t a way for a site like this to gain traction. It would be a valuable HIT resource if it could get off the ground.</p>
]]></content:encoded>
			<wfw:commentRss>http://rdn-consulting.com/blog/2010/07/19/failure-to-launch-healthcare-it-qa/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ISO 62304: The Harmonized Standard for Medical Device Software Development</title>
		<link>http://rdn-consulting.com/blog/2010/06/05/iso-62304-the-harmonized-standard-for-medical-device-software-development/</link>
		<comments>http://rdn-consulting.com/blog/2010/06/05/iso-62304-the-harmonized-standard-for-medical-device-software-development/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 22:31:03 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[FDA]]></category>
		<category><![CDATA[Medical Devices]]></category>
		<category><![CDATA[Software Quality]]></category>
		<category><![CDATA[ISO 62304]]></category>

		<guid isPermaLink="false">http://rdn-consulting.com/blog/?p=374</guid>
		<description><![CDATA[The FDA approved ISO 62304 as a recognized software development standard in 2009. Developing Medical Device Software to ISO 62304 gives a nice overview. Besides providing a globally accepted development process one of the other practical components is the assignment of a safety class to individual software items and units: Class A: No injury or [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.emdt.co.uk/article/developing-medical-device-software-iso-62304" target="_blank"><img class="alignright size-medium wp-image-375" title="iso62304" src="http://rdn-consulting.com/blog/wp-content/uploads/2010/06/iso62304-300x241.jpg" alt="" width="300" height="241" /></a>The FDA approved ISO 62304 as a recognized software development standard in 2009. <a href="http://www.emdt.co.uk/article/developing-medical-device-software-iso-62304" target="_blank">Developing Medical Device Software to ISO 62304</a> gives a nice overview.</p>
<p>Besides providing a globally accepted development process one of the other practical components is the assignment of a safety class to individual software items and units:</p>
<ul>
<li>Class A:   No injury or damage to health is possible</li>
<li>Class B:    Non-serious injury  is possible</li>
<li>Class C:  Death or serious injury  is  possible</li>
</ul>
<p>Each classification changes the required documentation for the assigned software.</p>
<p>These standards will become more widely known as the FDA moves to regulate the proliferation of medical applications for personal and home use, most notably software that runs on mobile devices. I&#8217;ve discussed this before in <a href="http://rdn-consulting.com/blog/2009/07/14/when-cell-phones-become-medical-devices/" target="_blank">When Cell Phones Become Medical Devices</a>. As noted more recently in <a href="http://www.ama-assn.org/amednews/2010/05/24/bica0524.htm" target="_blank">FDA oversight may extend throughout health IT</a>:</p>
<blockquote><p>&#8230; an FDA director stated flatly: &#8220;Under the Federal Food, Drug and  Cosmetic Act, HIT software is a medical device.&#8221;</p></blockquote>
<p>Broad FDA oversight at the QSR/62304 level will probably not happen, but change is certainly coming for many HIT companies.</p>
<p>The Elsmar Cove Forum <a href="http://elsmar.com/Forums/forumdisplay.php?f=186" target="_blank">IEC 62304 &#8211; Medical Device Software Life Cycle Processes</a> has a lot of discussion on this topic. This is where I found a document checklist that is useful for understanding the process scope:</p>
<p><a href="http://www.rdn-consulting.com/ccount/click.php?id=4">IEC62304_Checklist.xls</a> (Excel spreadsheet)</p>
]]></content:encoded>
			<wfw:commentRss>http://rdn-consulting.com/blog/2010/06/05/iso-62304-the-harmonized-standard-for-medical-device-software-development/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The Software Quality Balancing Act</title>
		<link>http://rdn-consulting.com/blog/2010/05/15/the-software-quality-balancing-act/</link>
		<comments>http://rdn-consulting.com/blog/2010/05/15/the-software-quality-balancing-act/#comments</comments>
		<pubDate>Sun, 16 May 2010 02:22:37 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Agile]]></category>
		<category><![CDATA[FDA]]></category>
		<category><![CDATA[Medical Devices]]></category>
		<category><![CDATA[Software Quality]]></category>
		<category><![CDATA[software verification and validation]]></category>
		<category><![CDATA[V&V]]></category>

		<guid isPermaLink="false">http://rdn-consulting.com/blog/?p=373</guid>
		<description><![CDATA[Andrew Dallas&#8217;s article Caution: V&#38;V May Be Hazardous to Software Quality touches on a number of good points regarding software quality best practices. Medical device software development V&#38;V (also see here) and the documentation that goes with it have substantial costs. Any strategy that can reduce this overhead and still meet the necessary quality standards [...]]]></description>
			<content:encoded><![CDATA[<p>Andrew Dallas&#8217;s article <a href="http://www.mddionline.com/article/caution-vv-may-be-hazardous-software-quality" target="_blank">Caution: V&amp;V May Be Hazardous to Software Quality</a> touches on a number of good points regarding software quality best practices.</p>
<p>Medical device software development <a href="http://en.wikipedia.org/wiki/Verification_and_validation" target="_blank">V&amp;V</a> (also see <a href="http://rdn-consulting.com/blog/2009/03/26/software-verification-vs-validation/" target="_blank">here</a>) and the documentation that goes with it have substantial costs. Any strategy that can reduce this overhead and still meet the necessary quality standards should be seriously considered.</p>
<p>The use of &#8220;incremental&#8221; software development approaches really refers to <a href="http://en.wikipedia.org/wiki/Agile_software_development" target="_blank">Agile</a> methodologies.  I&#8217;ve talked about the use of Agile for medical device software development several times:</p>
<ul>
<li> <a title="Agile development in a FDA regulated setting" rel="bookmark" href="http://rdn-consulting.com/blog/2007/07/22/agile-development-in-a-fda-regulated-setting/" target="_blank">Agile development in a FDA regulated setting</a></li>
<li><a title="Medical Device Software Development – Going Agile" rel="bookmark" href="http://rdn-consulting.com/blog/2007/10/14/medical-device-software-development-going-agile/" target="_blank">Medical Device Software Development – Going Agile</a></li>
</ul>
<p>Most of the discussion revolves around the risks associated with this approach. The benefits of any process change have to be weighed against the  possible risks that might be introduced.</p>
<p>Besides the importance of understanding what V&amp;V documentation the FDA actually wants to see, Andrew makes a great point about producing quality software versus the V&amp;V process (my highlight):</p>
<blockquote><p><strong>V&amp;V is not software testing</strong>. Verification testing ensures specified  requirements have been fulfilled. Validation testing ensures that  particular requirements for a specific intended use can be consistently  fulfilled.</p></blockquote>
<p>Following the required <a href="http://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/GuidanceDocuments/ucm085281.htm" target="_blank">FDA V&amp;V processes</a> alone is not sufficient to ensure software quality. You also have to adhere to software development best practices at all levels. For example, in addition to non-functional requirements there are many <a href="http://en.wikipedia.org/wiki/Software_quality#Software_quality_factors" target="_blank">software quality factors</a> that require careful design considerations and testing that you may decide are outside the scope of FDA reporting.  Deciding what to report and what to leave out is the balancing act.</p>
]]></content:encoded>
			<wfw:commentRss>http://rdn-consulting.com/blog/2010/05/15/the-software-quality-balancing-act/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Interoperability is a Big Word!</title>
		<link>http://rdn-consulting.com/blog/2010/05/13/interoperability-is-a-big-word/</link>
		<comments>http://rdn-consulting.com/blog/2010/05/13/interoperability-is-a-big-word/#comments</comments>
		<pubDate>Fri, 14 May 2010 05:10:51 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[EMR]]></category>
		<category><![CDATA[Interoperability]]></category>
		<category><![CDATA[HIStalk]]></category>
		<category><![CDATA[supercalifragilisticexpialidocious]]></category>

		<guid isPermaLink="false">http://rdn-consulting.com/blog/?p=370</guid>
		<description><![CDATA[There was a statement in one of the HIStalk Readers Write 5/10/10 articles in that I haven&#8217;t been able to get out of my mind. In Digging for Gold in your HIT Applications, Ron Olsen writes: One of the most over-used buzz words in healthcare IT is “interoperability,” a is really a big word that [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-371" title="big-words-Z" src="http://rdn-consulting.com/blog/wp-content/uploads/2010/05/big-words-Z-300x300.jpg" alt="" width="246" height="246" />There was a statement in one of the HIStalk <a href="http://histalk2.com/2010/05/10/readers-write-51010/" target="_blank">Readers Write 5/10/10</a> articles in that I haven&#8217;t been able to get out of my mind. In <em>Digging for Gold in your HIT Applications</em>, Ron Olsen writes:</p>
<blockquote><p>One of the most over-used buzz words in healthcare IT is  “interoperability,” a is really a big word that self-important people  use to describe data transfer.</p></blockquote>
<p>OMG, I&#8217;ve been using that word for a long time&#8230;</p>
<p>All joking aside, for the most part Mr Olsen&#8217;s advise to get more out of existing IT tools is a reasonable suggestion. Unfortunately, interoperability means a lot more than just &#8220;data transfer&#8221; (see<a title="Permanent Link to Healthcare IT Interoperability Defined" href="http://rdn-consulting.com/blog/2007/11/20/healthcare-it-interoperability-defined/" target="_blank"> Healthcare IT Interoperability Defined</a>), and is where the advise breaks down.</p>
<blockquote><p>Scripting tools can manipulate those files, turning them into almost any  format imaginable. With the correct format, data can be transferred to  disparate systems, individually or concurrently, via a data stream.</p></blockquote>
<p>The fundamental flaw in this statement is the <strong>oversimplification</strong> (sorry, another big word) of the problem. Simple scripts are good for simple tasks. Communicating medical data reliably and securely between disparate systems is not a simple task.</p>
<p>I would also encourage all HIT professionals to fully understand the tools at their disposal in order to improve the efficiency and effectiveness of their organizations.  There may be a few nuggets, I&#8217;m not so sure that there will be a whole lot of gold to be found when it comes to  interoperability.</p>
]]></content:encoded>
			<wfw:commentRss>http://rdn-consulting.com/blog/2010/05/13/interoperability-is-a-big-word/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>To Validate and Verify: Software Issues Solved</title>
		<link>http://rdn-consulting.com/blog/2010/04/06/to-validate-and-verify-software-issues-solved/</link>
		<comments>http://rdn-consulting.com/blog/2010/04/06/to-validate-and-verify-software-issues-solved/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 01:13:03 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[FDA]]></category>
		<category><![CDATA[Software Quality]]></category>
		<category><![CDATA[verification vs. validation]]></category>

		<guid isPermaLink="false">http://rdn-consulting.com/blog/?p=368</guid>
		<description><![CDATA[Yours truly was interviewed for this article: To Validate and Verify: Software Issues Solved &#8220;V&#38;V&#8221; is one of those topics that should be simple to understand, but for some reason is the source of a lot of confusion. This is evident in the comments on Software Verification vs. Validation. It is also interesting to note [...]]]></description>
			<content:encoded><![CDATA[<p>Yours truly was interviewed for this article:</p>
<p style="text-align: center;"><strong><a href="http://www.medicaldevice-network.com/features/feature81038/" target="_blank">To Validate and Verify: Software Issues Solved</a></strong></p>
<p>&#8220;V&amp;V&#8221; is one of those topics that should be simple to understand, but for some reason is the source of a lot of confusion. This is evident in the comments on <a href="http://rdn-consulting.com/blog/2009/03/26/software-verification-vs-validation/">Software Verification vs. Validation</a>.</p>
<p>It is also interesting to note that the differing interpretations of these definitions results in a wide variety of V&amp;V strategies and plans. From a regulatory point of view there is no single right or wrong way to do it. It&#8217;s similar to the implementation of quality systems in general.  If you say you are going to do something you need to be able to prove that you&#8217;re actually doing it.</p>
]]></content:encoded>
			<wfw:commentRss>http://rdn-consulting.com/blog/2010/04/06/to-validate-and-verify-software-issues-solved/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Personal EEG-based Communications Device</title>
		<link>http://rdn-consulting.com/blog/2010/03/13/personal-eeg-based-communications-device/</link>
		<comments>http://rdn-consulting.com/blog/2010/03/13/personal-eeg-based-communications-device/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 01:04:32 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[EEG]]></category>
		<category><![CDATA[HCI]]></category>
		<category><![CDATA[evoked potentials]]></category>
		<category><![CDATA[g.tec]]></category>
		<category><![CDATA[IntendiX]]></category>
		<category><![CDATA[P300]]></category>
		<category><![CDATA[VEP]]></category>

		<guid isPermaLink="false">http://rdn-consulting.com/blog/?p=364</guid>
		<description><![CDATA[The IntendiX (by g.tec) is a BCI device that uses visual evoked potentials to &#8220;type&#8221; messages on a keyboard. The system is based on visually evoked EEG potentials (VEP/P300) and enables the user to sequentially select characters from a keyboard-like matrix on the screen just by paying attention to the target for several seconds. P300 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.intendix.com/" target="_blank"><img class="alignright size-medium wp-image-365" title="intendix" src="http://rdn-consulting.com/blog/wp-content/uploads/2010/03/intendix-300x197.jpg" alt="" width="300" height="197" /></a>The <a href="http://www.intendix.com/" target="_blank">IntendiX</a> (by <a href="http://www.gtec.at/" target="_blank">g.tec)</a> is a <a href="http://en.wikipedia.org/wiki/Brain%E2%80%93computer_interface" target="_blank">BCI</a> device that uses visual evoked potentials to &#8220;type&#8221; messages on a keyboard.</p>
<blockquote><p>The system is based on visually evoked EEG potentials (VEP/P300)  and enables the user to sequentially select characters from a  keyboard-like matrix on the screen just by paying attention  to the target for several seconds.</p></blockquote>
<p><a href="http://en.wikipedia.org/wiki/P300_%28neuroscience%29" target="_blank">P300</a> refers to the event related averaged potential deflection that occurs between 300 to 600 ms after a stimuli. This is a <a href="http://www.gtec.at/products/g.BCIsys/bci.htm" target="_blank">BCI research platform</a> that has been made into a commercial reality.  The system includes useful real-life features:</p>
<blockquote><p>Besides writing a text the patient can also use the system to trigger an  alarm, let the computer  speak the written text, print out or copy the text into an e-mail or to  send commands to external devices.</p></blockquote>
<p>I&#8217;m usually skeptical of &#8220;mind reading&#8221; device claims (e.g. <a href="http://rdn-consulting.com/blog/2008/06/08/moving-mountains-with-the-brain/" target="_blank">here</a>), but P300-based technology has many years of solid research behind it. It may be pricey ($12,250) and typing 5 to 10 characters per minute may not sound very exciting, but this device would be a huge leap for disabled patients that have the cognitive ability but no other way of communicating.</p>
<p>(hat tip: <a href="http://www.medgadget.com/archives/2010/03/intendix_braincomputer_interface_might_be_available_soon.html" target="_blank">medGadget</a>)</p>
<p>UPDATE (3/24/10): <a href="http://www.medgadget.com/archives/2010/03/mind_speller_lets_users_communicate_with_thought.html" target="_blank">Mind Speller Lets Users Communicate with Thought</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rdn-consulting.com/blog/2010/03/13/personal-eeg-based-communications-device/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Guest Article: Static Analysis in Medical Device Software (Part 3) — Formal specifications</title>
		<link>http://rdn-consulting.com/blog/2010/03/07/guest-article-static-analysis-in-medical-device-software-part-3-formal-specifications/</link>
		<comments>http://rdn-consulting.com/blog/2010/03/07/guest-article-static-analysis-in-medical-device-software-part-3-formal-specifications/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 10:15:01 +0000</pubDate>
		<dc:creator>Pascal</dc:creator>
				<category><![CDATA[Software Quality]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Frama-C]]></category>
		<category><![CDATA[static analysis]]></category>

		<guid isPermaLink="false">http://rdn-consulting.com/blog/?p=362</guid>
		<description><![CDATA[The third and last guest post by Pascal Cuoq on software verification. This part is about formal specifications.]]></description>
			<content:encoded><![CDATA[<p><em><strong>Pascal Cuoq</strong> at <a href="http://frama-c.cea.fr/" target="_blank">Frama-C</a> continues </em><em>his discussion of static analysis for medical device software</em><em>. Also see <a href="http://rdn-consulting.com/blog/2009/05/15/guest-article-static-analysis-in-medical-device-software-part-1-the-traps-of-c/" target="_blank">Part 1</a> and <a href="http://rdn-consulting.com/blog/2009/06/04/guest-article-static-analysis-in-medical-device-software-part-2-methodology/" target="_blank">Part 2</a>.</em></p>
<p>In May 2009, I alluded to a three-part blog post on the general topic of static analysis in medical device software. The ideas I hope will emerge from this third and last part are:</p>
<ol>
<li>Formal specifications are good,</li>
<li>Partial formal specifications are underrated, and</li>
<li>One should never commit in advance to writing anything, however easy it seems it will be at the time.</li>
</ol>
<p>Going back to point one, a &#8220;functional specification&#8221; is a description of what a system/subsystem does. I really mostly intend to talk about formal versions of functional specifications.  This only means that the description is written in a machine-parsable language with an unambiguous grammar. The separation between formal and informal specifications is not always clear-cut, but this third blog entry will try to convince you of the advantages of specifications that can be handled mechanically.</p>
<p>Near the bottom of the V development cycle, &#8220;subsystem&#8221; often means software: a function, or a small tree of functions.  A functional specification is a description of what a function (respectively, a tree of functions) does and does not (the time they take to execute, for instance, is usually not considered part of the functional specification, although whether they terminate at all can belong in it. It is only a matter of convention). The <a href="http://en.wikipedia.org/wiki/Design_by_contract">Wikipedia page on &#8220;Design by Contract&#8221;</a> lists the following as making up a function contract, and while the term is loaded (it may evoke <a href="http://en.wikipedia.org/wiki/Eiffel_(programming_language)">Eiffel</a> or <a href="http://eprints.ucl.ac.uk/4991/1/4991.pdf">run-time assertion checking</a>, which are not specifically the topic here), the three bullet points below are a good categorization of what functional specifications are about:</p>
<ul>
<li>What does the function <em>expect</em>, what rules should the caller obey at the time of calling it?</li>
<li>What does the function <em>guarantee</em>, what is the caller allowed to expect from the function&#8217;s results?</li>
<li>What properties does the function <em>maintain</em>?</li>
</ul>
<p>I am tempted to point out that invariants maintained by a function can be encoded in terms of things that the function expects and things that the function guarantees, but this is exactly <a href="http://www.stanford.edu/~pgbovine/geek-behaviors.htm">the kind of hair-splitting that I am resolved to give up on</a>.</p>
<p>The English sentence &#8220;when called, this function may modify the global variables <code>G</code> and <code>H</code>, and no other&#8221; is almost unambiguous and rigorous — assuming that we leave aliasing out of the picture for the moment. Note that while technically something that the function <em>ensures</em> on return (it ensures that for any variable other than <code>G</code> or <code>H</code>, the value of the variable after the call is the same as its value before the call), this property can be thought of more intuitively as something that the function <em>maintains</em>.</p>
<p>The enthusiastic specifier may like the sentence &#8220;this function may modify the global variables <code>G</code> and <code>H</code>, and no other&#8221; so much that he may start copy-pasting the boilerplate part from one function to another. Why should he take the risk to introduce an ambiguity accidentally? Re-writing from memory may lead him to forget the &#8220;may&#8221; auxiliary, when he does not intend to guarantee that the function will overwrite <code>G</code> and <code>H</code> each time it is called. Like for contracts of a more legal nature, copy-pasting is the way to go. The boilerplate may also include jargon that make it impossible to understand by someone who is not from the field, or even from the company, whence the specifications originate. Ordinary words may be used with a precise domain-specific meaning. All reasons not to try to paraphrase and to reuse the specification template verbatim.</p>
<p>The hypothetical specifier may particularly appreciate that the specification above is not only carefully worded but also that a list of possibly modified globals is part of any wholesome function specification. He may — rightly, in my humble opinion — endeavor to use it for all the functions he has to specify near the end of the descending branch of the V cycle.  This is when he is ripe for the introduction of a formal syntax for functional specifications. According to Wikipedia, Robert Recorde <a href="http://en.wikipedia.org/wiki/Equals_sign">introduced the equal sign</a> &#8220;to auoide the tediouſe repetition of [...] woordes&#8221;, and the sentence above is a tedious repetition begging for a sign of its own to replace it. When the constructs of the formal language are well-chosen, the readability is improved, instead of being diminished.</p>
<p>A natural idea for to express the properties that make up a function contract is to use the same language as for the implementation. Being a programming language, it is suitably formal; the specifier, even if he is not the programmer, is presumably already familiar with it; and the compiler can transform these properties into executable code that checks that preconditions are properly assured by callers, and that the function does its own part by returning results that satisfy its postconditions. This choice can be recognized in run-time assertion checking, and in Test-Driven Development (in Test-Driven Development, unit tests and expected results are written before the function&#8217;s implementation and are considered part of the specification).</p>
<p>Still, the choice of the programming language as the specification language has the disadvantages of its advantages: it is a programming language; its constructs are optimized for translation to executable code, with intent of describing algorithms. For instance, the &#8220;no global variable other than <code>G</code> and <code>H</code> is modified&#8221; idiom, as expressed in C, is a horrible way to specify a C function.  Surely even the most rabid TDD proponent would not suggest it for a function that belongs in the same C file as a thousand global variable definitions.</p>
<p>A dedicated specification language has the freedom to offer exactly the constructs that make it pleasant to write specifications in it. This means directly including constructs for commonly recurring properties, but also providing the building blocks that make it possible to define new constructs for advanced specifications. So a good specification language has much in common with a programming language.</p>
<p>A dedicated specification language may for instance offer</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*@ assigns G, H */</span></pre></div></div>

<p>as a synonym for the boilerplate function specification above, and while this syntax may seem wordy and redundant to the seat-of-the-pants programmer, I hope to have convinced you that in the context of structured development, it fares well in the comparison with the alternatives. Functional specifications give static analyzers that understand them something to chew on, instead of having to limit themselves to the absence of run-time errors. This especially applies to <em>correct</em> static analyzers as emphasized in <a href="http://rdn-consulting.com/blog/2009/06/04/guest-article-static-analysis-in-medical-device-software-part-2-methodology/">part 2 of this oversize blog post</a>.</p>
<p>Third parties that contact us often are focused on using static analysis tools to do things they weren&#8217;t doing before. It is a natural expectation that a new tool will allow you to do something new, but a more accurate description of our activity is that we aim to allow to do the same specification and verification that people are already doing (for critical systems), better. In particular, people who discover tools such as Frama-C/Jessie or other analysis tools based on Hoare-Floyd precondition computations often think these tools are intended for verifying, and can only be useful for verifying, complete specifications.</p>
<p>A complete specification for a function is a specification where <em>all</em> the properties expected for the function&#8217;s behavior have been expressed formally as a contract. In some cases, there is only one function (in the mathematical sense) that satisfies the complete specification. This does not prevent several implementations to exist for this unique mathematical function. More importantly, it is nice to be able to check that the C function being verified is one of them!</p>
<p>Complete specifications can be long and tedious to write.  In the same way that a snippet of code can be shorter than the explanation of what it does and why it works, a complete specification can sometimes be longer than its implementation. And it is often pointed out that these specifications can be so large that once written, it would be too difficult to convince oneself that they do not themselves contain a bug.</p>
<p>But just because we are providing a language that would allow you to write complete specifications does not mean that you have to. It is perfectly fine to write minimal formal specifications accompanied with informal descriptions. To be useful, the tools we are proposing only need to do better than testing (the most widely used verification technique at this level).  Informal specifications traditionally used as the basis for tests are not complete either. And there may be bugs in both the informal specification or in its translation into test cases.</p>
<p>If anything, the current informal specifications leave out more details and contain more bugs, because they are not machine-checked in any way. The static analyzer can help find bugs in a specification in the same way that a good compiler&#8217;s sanity checks and warnings help avoid the stupidest bugs in a program.</p>
<p>In particular, because they are written in a dedicated specification language, formal specifications have better composition properties than, say, C functions. A bug in the specification of one function is usually impossible to overlook when trying to use said specification in the verification of the function&#8217;s callers. Taking an example from the tutorial/library (authored by our colleagues at the applied research institute Fraunhofer FIRST) <a href="http://www.first.fraunhofer.de/owx_download/acslbyexample420.pdf">ACSL by example</a>, the specification of the <code>max_element</code> function is quite long and a bug in this specification may be hard to detect. The function <code>max_element</code> finds the index of the maximum element in an array of integers. The formal version of this specification is complicated by the fact that it specifies that if there are several maximum elements, the function returns the first one.</p>
<p>Next in the document a function <code>max_seq</code> for returning the <em>value</em> of the maximum element in an array is defined. The implementation is straightforward:</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"><span style="color: #993333;">int</span> max_seq<span style="color: #009900;">&#40;</span><span style="color: #993333;">const</span> <span style="color: #993333;">int</span><span style="color: #339933;">*</span> p<span style="color: #339933;">,</span> <span style="color: #993333;">int</span> n<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">return</span> p<span style="color: #009900;">&#91;</span>max_element<span style="color: #009900;">&#40;</span>p<span style="color: #339933;">,</span> n<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>The verification of <code>max_seq</code> builds on the specification for <code>max_element</code>. This provides additional confidence: the fact that <code>max_seq</code> was verified successfully makes a bug in the specification of <code>max_element</code> unlikely. Not only that, but if the (simpler, easier to trust) specification for <code>max_seq</code> were the intended high-level property to verify, it wouldn&#8217;t matter that the low-level specification for <code>max_element</code> was not exactly what the specifier intended (say, if there was an error in the specification of the index returned in case of ties): the complete system still has no choice but to behave as intended in the high-level specification. Unlike a compiler that lets you put together functions with incompatible expectations, the proof system always ensures that the contract used at the call point is the same as the contract that the called function was proved to satisfy.</p>
<p>And this concludes what I have to say on the subject of software verification. The first two parts were rather specific to C, and would only apply to embedded code in medical devices. This last part is more generic — in fact, it is easier to adapt the idea of functional specifications for static verification to high-level languages such as C# or Java than to C. Microsoft is pushing for the adoption of its own proposal in this respect, Code Contracts. Tools are provided for the static verification of these contracts in the premium variants of Visual Studio 2010. And this is a good time to link to <a href="http://bit.ly/9B2ggG">this video</a>. Functional specifications are a high-level and versatile tool, and can help with the informational aspects of medical software as well as for the embedded side of things. I would like to thank again my host Robert Nadler, my colleague Virgile Prevosto and department supervisor Fabrice Derepas for their remarks, and twitter user rgrig for the video link.</p>
]]></content:encoded>
			<wfw:commentRss>http://rdn-consulting.com/blog/2010/03/07/guest-article-static-analysis-in-medical-device-software-part-3-formal-specifications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why Healthcare IT is Not a Game Changer</title>
		<link>http://rdn-consulting.com/blog/2010/02/15/why-healthcare-it-is-not-a-game-changer/</link>
		<comments>http://rdn-consulting.com/blog/2010/02/15/why-healthcare-it-is-not-a-game-changer/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 20:42:55 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[EMR]]></category>
		<category><![CDATA[FDA]]></category>
		<category><![CDATA[Interoperability]]></category>
		<category><![CDATA[CIMIT]]></category>
		<category><![CDATA[Continua]]></category>
		<category><![CDATA[MD PnP]]></category>
		<category><![CDATA[NCHI]]></category>
		<category><![CDATA[Patrick Soon-Shiong]]></category>
		<category><![CDATA[WLSA]]></category>

		<guid isPermaLink="false">http://rdn-consulting.com/blog/?p=360</guid>
		<description><![CDATA[Last week I attended the WLSA/Continua Mobile Healthcare Symposium and the opening day of the Continua Health Alliance Winter Summit 2010.  Also, a couple of weeks ago I attended a few of the FDA Workshop on Medical Device Interoperability: Achieving Safety and Effectiveness sessions via a Webcast*. Since I&#8217;m not going to HIMSS in Atlanta [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I attended the <a href="http://www.wirelesslifesciences.org/" target="_blank">WLSA</a>/Continua Mobile Healthcare Symposium and the opening day of the<a href="http://www.continuaalliance.org/index.html" target="_blank"> Continua Health Alliance</a> Winter Summit 2010.  Also, a couple of weeks ago I attended a few of the <a href="http://mdpnp.org/FDA_Interop_Workshop.php" target="_blank">FDA Workshop on Medical Device Interoperability: Achieving Safety and Effectiveness</a> sessions via a Webcast<strong>*</strong>.</p>
<p>Since I&#8217;m not going to <a href="http://www.himssconference.org/" target="_blank">HIMSS</a> in Atlanta this year (starts Mar. 1) I thought now would be a good time to do some venting.</p>
<p>I&#8217;ve talked about HIT problems before, e.g.<a title="Permanent Link to Healthcare Un-Interoperability" rel="bookmark" href="http://rdn-consulting.com/blog/2007/11/07/healthcare-un-interoperability/" target="_blank"> Healthcare Un-Interoperability</a> and <a href="http://rdn-consulting.com/blog/2007/09/22/the-emr-medical-devices-mess/" target="_blank"> The EMR-Medical Devices Mess</a>. With all of the ARRA/<a href="http://hitechanswers.net/about" target="_blank">HITECH</a> talk along with the National Healthcare debate raging it made me wonder how the issues facing device interoperability, wireless Healthcare, and HIT in general really fit in to the bigger picture.</p>
<p>After sitting though multiple sessions on a wide variety of topics presented by smart people the obvious hit me in the face:  The complexity of the issues are <em>mind numbing</em>. Everybody has good (and even great) ideas, but nobody has real solutions. Why is it that all this good HIT hasn&#8217;t translated into meaningful improvements in Healthcare?</p>
<p>For example. At first I thought the talk by <a href="http://spotlight.vitals.com/2009/11/dr-patrick-soon-shiong-%E2%80%93-billionaire-philanthropist-and-founder-of-abraxis-bioscience/" target="_blank">Dr. Patrick Soon-Shiong</a> might be heading somewhere interesting.  He presented a well structured view of the current Healthcare landscape that seemed to make a lot of sense. Then he plunged into the abyss with an in-depth discussion of transformational technologies (molecular data mining, Visual Evoked Potentials, etc.).  These developments could potentially lead to improvements in people&#8217;s health, but we never got to hear how any of the complex Healthcare<em> </em>delivery issues were going to be addressed.</p>
<p>Among his many endeavors Dr. Soon-Shiong is Chairman of  the National Coalition for Health Integration (<a href="http://www.nchiconnect.org/" target="_blank">NCHI)</a>. I think the &#8220;Zone of Complexity&#8221; point of view (see <a href="http://driveideas.com/nchi12/pdf/overview.pdf" target="_blank">here</a> &#8212; warning PDF) is a good starting point for understanding the position that Healthcare IT is in:</p>
<p><img class="size-full wp-image-361 alignnone" title="zone-of-complexity" src="http://rdn-consulting.com/blog/wp-content/uploads/2010/02/zone-of-complexity.png" alt="" width="407" height="317" /></p>
<p>Also, following the diagram above is this statement:</p>
<blockquote><p>However, currently, even when information is in digital formats, data are not accessible because they reside in different “silos” within and between organizations. In turn, the U.S. health system is hampered by inefficient virtual organizations that lack the mechanisms needed to engage in coordinated action.</p></blockquote>
<p>The NCHI Integrated Health Platform (grid computing) is a good idea, but does it really even begin to provide the solution to these complex problems?</p>
<ol>
<li>They are taking a &#8220;bottom-up&#8221; approach to interoperability (system, data , and process) and trying to leverage existing technologies (like DICOM and HL7).  Makes sense. But other than academic or government institutions what&#8217;s the incentive for private  companies (like EMRs) to participate?</li>
<li>How is an improved underlying infrastructure going to reduce the chaotic nature of the health delivery system (hospitals, insurance companies, Medicare, etc.)? It&#8217;s like putting the cart before the horse.</li>
</ol>
<p>This is the dilemma. We can come up with clever and even ingenious technical solutions in our little IT world, but none of them are going to be game changers.   The availability of a great technologies are <strong>not </strong>enough to change the institutional processes that make an organization inefficient or communication ineffective.</p>
<p><strong>The solution is in the people and the processes they follow. </strong>The best example I can think of is EMR adoption. Everybody knows why the rate of conversion from a paper to a paperless office is so low.  It&#8217;s mostly because of people&#8217;s resistance to change the way they&#8217;ve &#8220;always done it.&#8221;  Change is hard, and in this case HIT <em>is</em> the barrier to adoption, no mater how good the EMR solution is.</p>
<p>At the national level Healthcare IT only enables interoperability and improved data management.  The chaos can only be solved by first changing U.S. Healthcare delivery policies.  Whatever the changes are, they will then determine the incentives and processes that actually drive the system and put HIT to use.</p>
<p>For Healthcare IT, the NCHI is just one example. There are a whole bunch of other technology-driven initiatives that also have high hopes.  I&#8217;m not saying we should stop developing great technologies.  We just shouldn&#8217;t be surprised when they don&#8217;t change the world.</p>
<p>Happy Presidents Day!</p>
<p><strong>*</strong><small>I thought the Webcast was very well done.  It had split screen (speaker and slides) along with multiple camera views that included the audience. The video quality wasn&#8217;t great (it really didn&#8217;t need to be) but the streaming was reliable.  Also, the web participants could chat among themselves and the on-site staff and ask the speaker questions.</small></p>
]]></content:encoded>
			<wfw:commentRss>http://rdn-consulting.com/blog/2010/02/15/why-healthcare-it-is-not-a-game-changer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Challenges of Developing Software for Medical Devices</title>
		<link>http://rdn-consulting.com/blog/2010/02/08/the-challenges-of-developing-software-for-medical-devices/</link>
		<comments>http://rdn-consulting.com/blog/2010/02/08/the-challenges-of-developing-software-for-medical-devices/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 04:34:37 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[FDA]]></category>
		<category><![CDATA[Medical Devices]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software Quality]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Methods-based verification]]></category>
		<category><![CDATA[static analysis]]></category>

		<guid isPermaLink="false">http://rdn-consulting.com/blog/?p=357</guid>
		<description><![CDATA[Developing Software for Medical Devices – Interview with SterlingTech gives a good overview of the challenges that especially face young medical device companies. In particular (my emphasis): Make sure that your company has a good solid Quality System as it applies to software development. Do not put a Quality System into place that you can [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.klocwork.com/blog/2010/01/developing-software-for-medical-devices-interview-with-sterlingtech/" target="_blank"><img class="alignright size-full wp-image-358" title="medical-device-software" src="http://rdn-consulting.com/blog/wp-content/uploads/2010/02/medical-device-software-200x300.jpg" alt="" width="200" height="300" /></a><a href="http://www.klocwork.com/blog/2010/01/developing-software-for-medical-devices-interview-with-sterlingtech/" target="_blank">Developing Software for Medical Devices – Interview with SterlingTech</a> gives a good overview of the challenges that especially face young medical device companies. In particular (my emphasis):</p>
<blockquote><p>Make sure that your company has a good solid Quality System as it applies to software development. <strong>Do not put a Quality System into place that you can not follow.</strong> This is the cause of most audit problems.</p></blockquote>
<p>I couldn&#8217;t have said it better myself, though I think that focusing on the FDA may distract you from why you&#8217;re creating software quality processes in the first place. The real purpose of having software design controls is to produce a high quality, user friendly, robust, and reliable system that meets the intended use of the device.  If your quality system does that, you won&#8217;t have to worry about FDA audits.</p>
<p>Since <a href="http://www.klocwork.com/" target="_blank">Klocwork</a> is a static analysis tool company I also want to point out a recent related article that&#8217;s worth reading &#8212; and trying to fully understand:</p>
<p><a href="http://cacm.acm.org/magazines/2010/2/69354-a-few-billion-lines-of-code-later/fulltext" target="_blank">A Few Billion Lines of Code Later: Using Static Analysis to Find Bugs in the Real World</a></p>
<p>Note the user comment by <a href="http://www2.research.att.com/~bs/" target="_blank">Bjarne Stroustrup</a>.</p>
<p>UPDATE (2/9/10): Here&#8217;s another good code analysis article:</p>
<p><a href="http://www.embedded.com/design/opensource/222700533" target="_blank">A Formal Methods-based verification  approach to medical device software analysis</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rdn-consulting.com/blog/2010/02/08/the-challenges-of-developing-software-for-medical-devices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stackoverflow Overflow Update</title>
		<link>http://rdn-consulting.com/blog/2010/02/07/stackoverflow-overflow-update/</link>
		<comments>http://rdn-consulting.com/blog/2010/02/07/stackoverflow-overflow-update/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 04:01:19 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Stackoverflow]]></category>

		<guid isPermaLink="false">http://rdn-consulting.com/blog/?p=355</guid>
		<description><![CDATA[In Stackoverflow Overflow I predicted 500,000 questions on 2/7/2010 at 5:31. When I checked (after the Superbowl &#8212; congratulations to NO!) at 19:42 this evening: Not bad. Only 14 hours off on a three month linear extrapolation from only two weeks of data!]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://rdn-consulting.com/blog/2009/11/19/stackoverflow-overflow/" target="_blank">Stackoverflow Overflow</a> I predicted 500,000 questions on 2/7/2010 at 5:31. When I checked (after the Superbowl &#8212; congratulations to NO!) at 19:42 this evening:<img class="aligncenter size-full wp-image-356" title="500kquestions" src="http://rdn-consulting.com/blog/wp-content/uploads/2010/02/500kquestions.png" alt="" width="194" height="84" /></p>
<p>Not bad. Only 14 hours off on a three month linear extrapolation from only two weeks of data!</p>
]]></content:encoded>
			<wfw:commentRss>http://rdn-consulting.com/blog/2010/02/07/stackoverflow-overflow-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
