<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Joe Hunter on Medium]]></title>
        <description><![CDATA[Stories by Joe Hunter on Medium]]></description>
        <link>https://medium.com/@fhir?source=rss-4f0f5bf9f349------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*358kTzVjQH15RA0p8Ciw3A@2x.jpeg</url>
            <title>Stories by Joe Hunter on Medium</title>
            <link>https://medium.com/@fhir?source=rss-4f0f5bf9f349------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 08:57:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fhir/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Nature of Natural Language Processing]]></title>
            <link>https://fhir.medium.com/the-nature-of-natural-language-processing-bb02065246e8?source=rss-4f0f5bf9f349------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb02065246e8</guid>
            <category><![CDATA[spacy-nlp]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Joe Hunter]]></dc:creator>
            <pubDate>Sun, 23 Mar 2025 21:11:15 GMT</pubDate>
            <atom:updated>2025-03-23T21:11:15.242Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*8NDR_QdjtO86kh2mj40-Eg.jpeg" /></figure><p>Picture the scene: you as a junior doctor are combing through the electronic health record (EHR) of a very sick elderly patient. This patients EHR extends back decades and includes unstructured medical data. The patient is currently presenting with a new complaint, one that at first (human) glance of their EHR lacks precedent. What to do? Answer the call of Natural language Processing (NLP) of course!</p><p>Natural Language Processing (NLP) is a branch of artificial intelligence that enables computers to understand, interpret, and generate human language. It can be employed to analyze patient records, extract critical medical information, and aid in diagnostics. An excellent product that does just that is <a href="https://aws.amazon.com/comprehend/">Amazon Comprehend</a></p><p>So back to our junior doctor, how do we get from a corpus of unstructured medical data to a diagnosis for our poor patient? In reality this is a multi-step process and involves a number of processing operations to get to an accurate diagnosis. But in our example, purely for illustrative purposes, the NLP lifecycle could follow this path.</p><p><strong>Pre-processing the unstructured text</strong></p><p>We start with tokenization: breaking the text in the EHR into its constituent words or tokens. Then converting each word to lower case.</p><p>Next stage of pre-processing involves removing stop words. These are words frequently used that add little or no context. Examples include “the”, “and”, “is” etc.</p><p>Finally the text is standardized using stemming and lemmatization. Though functionally equivalent, stemming applies a rule-based approach to chop off word endings. Whereas lemmatization considers the context and converts words to their dictionary form or lemma.</p><p>So our text is now ready for extracting key diagnoses for this patient. How do we do this? Named entity recognition of course!</p><p>Sounds complicated, but don’t worry there is an app for that! To do the heavy lifting we use a Python module called medspaCy (<a href="https://spacy.io/universe/project/medspacy">https://spacy.io/universe/project/medspacy</a>). This package is derived from an excellent natural language processing package called spaCy. MedSpaCy uses a rule-based system to identify medical concepts in the text. It automatically recognizes common medical terms and their variations, assigning them appropriate labels such as “PROBLEM” for diagnoses.</p><p>This is demonstrated next:</p><pre>import medspacy<br><br># Load the default medspaCy model<br>nlp = medspacy.load()<br><br># Sample text containing patient diagnosis history<br>text = &quot;Patient has a history of hypertension and type 2 diabetes. Recently diagnosed with stage II breast cancer.&quot;<br><br># Process the text<br>doc = nlp(text)<br><br># Extract the entities (diagnoses)<br>for ent in doc.ents:<br>    print(f&quot;Diagnosis: {ent.text}, Label: {ent.label_}&quot;)</pre><p>The output is shown next:</p><pre>Diagnosis: hypertension, Label: PROBLEM<br>Diagnosis: type 2 diabetes, Label: PROBLEM<br>Diagnosis: stage II breast cancer, Label: PROBLEM</pre><p>For more complex scenarios, you can customize the entity extraction process using target rules and the on_match function to disambiguate terms based on context.</p><p>This was a healthcare use case of NLP, so what are the other applications of NLP? Well there are several but these are some of the main use cases:</p><p>- Text Generation in a generative AI product</p><p>- Text Classification for spam filtering</p><p>- Machine Translation for allowing different native speakers to communicate</p><p>- Sentiment Analysis to determine product review consensus</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb02065246e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oracle’s Cloud Vision For The Future of Healthcare IT]]></title>
            <link>https://fhir.medium.com/oracles-cloud-vision-for-the-future-of-healthcare-it-8b2539299b9b?source=rss-4f0f5bf9f349------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b2539299b9b</guid>
            <category><![CDATA[oracle-cloud]]></category>
            <category><![CDATA[emr]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[ehr]]></category>
            <category><![CDATA[fhir]]></category>
            <dc:creator><![CDATA[Joe Hunter]]></dc:creator>
            <pubDate>Sat, 02 Jul 2022 18:01:49 GMT</pubDate>
            <atom:updated>2022-07-02T18:11:23.724Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TUu-SSMdhcMavQTkl2ePkg.png" /></figure><h4>Oracle’s “moonshot” of creating a unified national EHR is very ambitious but its benefits are manifold. Having watched their <a href="https://blogs.oracle.com/connect/post/larry-ellison-oracle-shape-future-healthcare?source=:em:nw:mt::::RC_WWMK200429P00044C0107:NSL400242499&amp;elq_mid=227306&amp;sh=171222190613072209312106163036&amp;cmid=WWMK200429P00044C0107">recent keynotes</a>, I am not entirely sure how they propose to do this?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*V6_GbA2yudbeXfqyq-mxDA.png" /></figure><p><a href="https://blogs.oracle.com/healthcare/post/oracle-acquisition-of-cerner-the-future-of-healthcare?source=:em:nw:mt::::RC_WWMK200429P00044C0107:NSL400242499">The acquisition of Cerner</a> makes a lot more sense now but extracting these data from disparate databases is a mammoth task before they even start to perform patient matching. The skills and tech they acquired from Cerner will undoubtedly help. The Cerner Millenium model is well established and if this can be populated with the nations health data then the sky is the limit.</p><p>However as anyone who has worked on patient matching within a single hospital can attest to, it is no mean feat. To scale up and do this at a national level is a huge undertaking. As Larry Ellison discusses in the video below, a single patients data can be dispersed in so many different hospitals databases:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FYpnUI9FJwMc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DYpnUI9FJwMc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FYpnUI9FJwMc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/422b4601d5b978225c18e8d58fc8935d/href">https://medium.com/media/422b4601d5b978225c18e8d58fc8935d/href</a></iframe><p><a href="https://blogs.oracle.com/connect/post/larry-ellison-oracle-shape-future-healthcare?source=:em:nw:mt::::RC_WWMK200429P00044C0107:NSL400242499&amp;elq_mid=227306&amp;sh=171222190613072209312106163036&amp;cmid=WWMK200429P00044C0107">From reading through Oracles release notes</a> it is clear they see the benefits of having a unified cloud EHR far outweigh the difficulties in obtaining one. Once a national EHR is established Oracle can start to deploy the many area’s of database expertise they have developed down through the years. Not least of these are AI/Machine learning. One example cited is Oracle partner Ronin who worked with MD Anderson Cancer Center, one of the world’s top centers devoted to cancer patient care and research, to develop an AI module that monitors patients as they work through their treatment plans to reduce hospitalization.</p><p>Another use case for a national EHR is to better inform public health policymaking. Being able to monitor trends for instance post vaccination in a timely and accurate way is obviously very desirable for public health institutions. For example, during the COVID-19 pandemic, Oracle worked with the University of Oxford on a system that helps identify variants early on, so that healthcare providers can learn whether current vaccines are working against those strains and public health officials can determine if hospitals will be overrun with new patients. A national cloud with anonymized patient data could provide this facility very easily.</p><p>One final promise from Oracle is an improved user experience. This has been a personal bug bear for me for a long time and Cerner’s UI for the Millenium EHR leaves a lot to be desired. Oracle will introduce voice interaction to allow clinicians to more easily access information and hopefully record it too. This could end the days where a clinician makes zero eye-contact with their patient as the ferociously type notes whilst listening.</p><p>I am looking forward to seeing how Oracle undertakes and achieves this herculean task, if their previous track record is anything to go by then Health IT is in for a huge shake up. Here’s hoping it will sound the death knell for the fax machine in the doctors office…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b2539299b9b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[mCODE: A lingua franca for cancer data]]></title>
            <link>https://fhir.medium.com/mcode-a-lingua-franca-for-cancer-48939de18add?source=rss-4f0f5bf9f349------2</link>
            <guid isPermaLink="false">https://medium.com/p/48939de18add</guid>
            <category><![CDATA[fhir]]></category>
            <category><![CDATA[oncology]]></category>
            <category><![CDATA[healthtech]]></category>
            <category><![CDATA[medtech]]></category>
            <category><![CDATA[cancer]]></category>
            <dc:creator><![CDATA[Joe Hunter]]></dc:creator>
            <pubDate>Fri, 01 Jul 2022 19:18:51 GMT</pubDate>
            <atom:updated>2022-07-02T18:02:41.140Z</atom:updated>
            <content:encoded><![CDATA[<p>Whilst listening to <a href="https://podcasts.apple.com/us/podcast/hl7-codex-transforming-cancer-care-research/id1507452183?i=1000494160623">this episode</a> from the “DISH on Health IT” podcast, I first encountered <strong>mCODE (Minimal Common Oncology Data Elements)</strong>. Having worked on the collection of oncology data in Ireland. From this work I was well aware of the significant challenges in having these data in a suitable format for ease of sharing and extraction. The development of mCODE and it’s HL7 FHIR extension Codex are incredible breakthroughs and well help immensely in providing a relevant and standardised oncology dataset.</p><h3>The need for mCODE: Patient Safety &amp; Research Quality Data</h3><p>Like a lot of legacy of health data pre-mCODE a lot of the patient data was and sadly still is, paper based. In the video below clinicians cite some patients having 90 page PDF documents that they have to review when the patient first presents! Sub-optimal as one clinician describes it but this still understates it. There is a patient safety issue here where some patients oncology data can be mis-represented or under-represented.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fd6h7g8mhFtM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dd6h7g8mhFtM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fd6h7g8mhFtM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/fb829ae69e372bcc6bef63eb886b326f/href">https://medium.com/media/fb829ae69e372bcc6bef63eb886b326f/href</a></iframe><p><strong>So it is anticipated mCODE will become a lingua franca for cancer allowing the sharing of patient oncology data in a standard format.</strong> Importantly it includes the minimal data required to effectively care for an oncology patient.</p><p><strong>Another spin-off from mCODE is research.</strong> The statistics regarding cancer are horrific: According to the National Cancer Institute, in the United States, 39.5% of men and women will be diagnosed with cancer at some point during their lifetimes. In 2020, an estimated 1,806,590 new cases of cancer will be diagnosed in the United States and 606,520 people will die from the disease. The response to this is to be able to learn as much as possible from these patients. Effective research data requires effective data technologies, capture and modelling. This is where mCODE will be leveraged to bridge the current gap in the quality of these data.</p><h3>What is mCODE?</h3><p>Put simply, <strong>the Minimal Common Oncology Data Elements (mCODE) project is a consensus data standard created to facilitate transmission of data of patients with cancer. </strong>mCODE is being developed by a multidisciplinary group of subject-matter experts, including oncology clinicians, informaticists, health services researchers, experts in data standards and interoperability, and others under the auspices of MITRE and the American Society of Clinical Oncology (ASCO).</p><p>Since data standardisation and interoperability are at the heart of mCODE, FHIR is used to implement it. To get started there is a HL7 FHIR implementation guide <a href="http://hl7.org/fhir/us/mcode/">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FgpANfSmrEegbiottVfPCw.png" /><figcaption>The overall scope of mCODE and the relationships between mCODE profiles is illustrated in the diagram above</figcaption></figure><p>For me the best starting point was to look <a href="http://hl7.org/fhir/us/mcode/data-dictionary/mCODEDataDictionary-STU2.xlsx">through the current data dictionary</a> available in Excel format and work from there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XnAsyoNWQj7b1vweV0BckA.png" /><figcaption><a href="http://hl7.org/fhir/us/mcode/data-dictionary/mCODEDataDictionary-STU2.xlsx">Current mCODE Data Dictionary — STU 2</a></figcaption></figure><h3>The Future</h3><p>The mCODE project has the potential to offer tremendous benefits to cancer care delivery and research by creating an infrastructure to better share patient data. But its success will hinge on its adoption in the health community. Potential use-case applications that use the standard or extend it to improve care and discovery, include matching patients to clinical trials, cancer registry reporting, and facilitating the use of oncology clinical pathways. However as already discussed better cancer data interoperability stands to benefit patients the most including those being treated now and in the future.</p><h3>References</h3><p><a href="https://ascopubs.org/doi/10.1200/CCI.20.00059#:~:text=The%20Minimal%20Common%20Oncology%20Data%20Elements%20(mCODE)%20project%20is%20a,data%20of%20patients%20with%20cancer.">- Improving Cancer Data Interoperability: The Promise of the Minimal Common Oncology Data Elements (mCODE) Initiative</a></p><ul><li><a href="https://confluence.hl7.org/display/COD/mCODE/">mCODE</a></li><li><a href="http://hl7.org/fhir/us/mcode/"><strong>Minimal Common Oncology Data Elements (mCODE) Implementation Guide</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48939de18add" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 5 Digital Health Podcasts]]></title>
            <link>https://fhir.medium.com/health-informatics-podcasts-ad7d6c7d9779?source=rss-4f0f5bf9f349------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad7d6c7d9779</guid>
            <category><![CDATA[fhir]]></category>
            <category><![CDATA[podcasts-worth-mention]]></category>
            <category><![CDATA[health-technology]]></category>
            <category><![CDATA[podcasts-and-videos]]></category>
            <category><![CDATA[interoperability]]></category>
            <dc:creator><![CDATA[Joe Hunter]]></dc:creator>
            <pubDate>Tue, 14 Jun 2022 20:37:26 GMT</pubDate>
            <atom:updated>2022-06-22T21:52:39.879Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>A personally curated list of health tech podcasts I frequently listen to. </strong>In no particular order they represent the podcasts I have gained the most information from on existing health tech and emerging technologies in healthcare.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/1*p4DBJMgePUHZoUZSkPBipw.png" /></figure><ol><li><a href="https://podcasts.apple.com/us/podcast/the-dish-on-health-it/id1507452183"><strong>The Dish on Health IT</strong></a></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*H83LMMpeeyRqU1NDMkDGJw.png" /></figure><p><strong>This is an excellent podcast featuring Gary Austin, Ken Kleinberg, Jocelyn Keegan.</strong> It’s very US centric but there are many parallels with the issues we are facing in Europe surrounding interoperability. <a href="https://podcasts.apple.com/us/podcast/hl7-codex-transforming-cancer-care-research/id1507452183?i=1000494160623">This episode</a> on HL7 Codex and the integration of minimal common oncology data elements (mCODE) was incredibly insightful and I have gone onto investigate the inclusion of mCODE for oncology patients in Ireland.</p><p><strong>2.</strong><a href="https://podcasts.apple.com/us/podcast/perspectives-on-health-and-tech/id1450841795"><strong> Cerner | Persepectives on Health &amp; tech</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*UnMyiTEMKtd0nnTAvIzg4g.png" /></figure><p>Having worked with them on a laboratory information system I can appreciate the colossus that is Cerner and the multitude of applications they offer. Their podcast is no less modest coming in at 230 episodes and counting.</p><p><a href="https://podcasts.apple.com/au/podcast/talking-healthtech/id1451558982"><strong>3. Talking Healthtech</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*zu1ykk2TDUX5TM76jS95hA.png" /></figure><p>Heading down to beautiful Australia next for Peter Birch’s fantastic podcast on all things health tech. He frequently includes clinicians in the podcast so it is really interesting to view the HIT issues from their side of the ward. Episode #245 on AI in healthcare is a very useful introduction to the state of this groundbreaking technology in health.</p><p><a href="https://podcasts.apple.com/us/podcast/interopnow-podcast/id1604441722">4. <strong>InteropNow! Podcast</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*QBdqDBMVOSo66nZrRh4b_A.png" /></figure><p>This podcast does exactly what it says on the tin and features discussion on interoperability in healthcare. InteropNow! is a live demonstration at the ViVE Event where the brightest minds and best solutions in healthcare interoperability will show you how to take your business to the next level by creating maximum data availability.</p><p><a href="https://podcasts.apple.com/ie/podcast/ipposi-podcasts/id1608330301">5. IPPOSI Podcast</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/397/1*hVPvdyXEHGf47y-EJsy_5A.png" /></figure><p>Last on my list but definitely not least. This podcast is presented by <strong>IPPOSI — The Irish Platform for Patient Organisations, Science and Industry. </strong>There are only a few episodes at present but hopefully they can provide more soon. <a href="https://bit.ly/3LaY03I">Their first episode</a> is on Irelands Covid-19 tracker app is fascinating and provides some useful insights on lessons learned.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad7d6c7d9779" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Profiling Data Using T-SQL]]></title>
            <link>https://fhir.medium.com/profiling-data-using-t-sql-2d52cac96c33?source=rss-4f0f5bf9f349------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d52cac96c33</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[t-sql]]></category>
            <dc:creator><![CDATA[Joe Hunter]]></dc:creator>
            <pubDate>Thu, 09 Jun 2022 17:21:06 GMT</pubDate>
            <atom:updated>2022-06-09T17:29:35.675Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*W_QxM3lXBKhG5Vx8PYLiPg.png" /></figure><p><strong>When working with a new dataset, one of the most important initial steps is to get a grasp of the spread of the data.</strong> This can easily be done with a simple “group by” statement for each pertinent column. But there is a more comprehensive means of doing this by leveraging some of the more recent <a href="https://docs.microsoft.com/en-us/sql/t-sql/functions/analytic-functions-transact-sql?view=sql-server-ver16">analytical extensions to the T-SQL language.</a> <strong>Please note this code requires SQL Server version 2012 or higher.</strong></p><p><strong>The first of these functions is </strong><a href="https://docs.microsoft.com/en-us/sql/t-sql/functions/percent-rank-transact-sql?view=sql-server-ver16"><strong>PERCENT_RANK()</strong></a><strong>. </strong>As best described by the Microsoft documentation it “…c<em>alculates the relative rank of a row within a group of rows in SQL Server. Use PERCENT_RANK to evaluate the relative standing of a value within a query result set or partition.</em>”</p><p><strong>The second function used is </strong><a href="https://docs.microsoft.com/en-us/sql/t-sql/functions/cume-dist-transact-sql?view=sql-server-ver16"><strong>CUME_DIST() </strong></a><strong>and it is very similar to PERCENT_RANK(). </strong>Referring to the Microsoft documentation again: “<em>…this function calculates the cumulative distribution of a value within a group of values. In other words, </em><em>CUME_DIST calculates the relative position of a specified value in a group of values. Assuming ascending ordering, the </em><em>CUME_DIST of a value in row r is defined as the number of rows with values less than or equal to that value in row r, divided by the number of rows evaluated in the partition or query result set</em>”</p><p><strong>So armed with both these functions we can analyse one or more columns in a SQL Server database table and determine how the data values are distributed.</strong> I often have to do this to understand how a new variable introduced into a dataset is being used by end users. It can help to learn if the variable is being used, is being understood and properly represents what it is supposed to be recording.</p><p>First things first we need some data, so run script below to create a table in tempDB with the data used in this example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/774ed2e45b01487cff12ce22765c24ad/href">https://medium.com/media/774ed2e45b01487cff12ce22765c24ad/href</a></iframe><p>Now that the dummy data is available we can run the analytical code against it and get an idea of the data distribution:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e04ffe9126cd4ed749883146b86a524d/href">https://medium.com/media/e04ffe9126cd4ed749883146b86a524d/href</a></iframe><p>Et voila! This produces the following output. If there is a large number of columns and values I copy the output to Excel and dice and slice it there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZFqc34kndRKgqeC4iqALHw.png" /><figcaption>Output generated</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d52cac96c33" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Doctors without corridors: the Rise of the Digital Hospital]]></title>
            <link>https://fhir.medium.com/doctors-without-corridors-the-rise-of-the-digital-hospital-38193daedc35?source=rss-4f0f5bf9f349------2</link>
            <guid isPermaLink="false">https://medium.com/p/38193daedc35</guid>
            <category><![CDATA[hospitality-management]]></category>
            <category><![CDATA[digital]]></category>
            <category><![CDATA[fhir]]></category>
            <category><![CDATA[hospital]]></category>
            <category><![CDATA[health-informatics]]></category>
            <dc:creator><![CDATA[Joe Hunter]]></dc:creator>
            <pubDate>Fri, 03 Jun 2022 14:26:31 GMT</pubDate>
            <atom:updated>2022-06-03T14:26:31.969Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*TLpDgH_yNN7QGJ4cigsrQQ.jpeg" /></figure><h3>Introduction</h3><p>The Covid pandemic has changed so many facets of our lives especially in the way we work with the advent of remote working. Allied to this were the requirements during the pandemic to keep non-Covid patients away from hospital as much as possible lest they too succumb to the virus. The intersection of the ability to work remotely and treat patients remotely heralded a paradigm shift in how hospitals treat patients. No longer confined to the walled garden of the hospital, many patients can be treated and monitored remotely in the comfort of their own homes.</p><h3>Hospitals without walls</h3><p>The pandemic has been a catalyst in advancing the concept of the “hospital without walls”. A hospital connected to its patients in a digital ecosystem of “internet of things” (IOT) smart devices, electronic medical records (EMR) and telehealth. These advances have encountered many obstacles and unfortunately still do. The lack of an EMR in every hospital is the most significant hurdle. Its nigh on impossible to offer a telemedicine consultation to a patient in their home when their paper chart is buried in medical records in the hospital. Digital poverty whereby some patients have no access to or skills in IOT enabled devices or smartphones is another barrier to mass adoption. And finally the ever present and increasing threat of cybersecurity breaches. A stark case of this was a cyber attack in Germany in September 2020 <a href="https://www.wired.co.uk/article/ransomware-hospital-death-germany">that sadly resulted in the death of a patient.</a></p><h3>Overcoming Obstacles</h3><p>Despite so many obstacles in its way the concept of the digital hospital is still gaining traction. The pandemic forced the hand of a lot of healthcare institutions. Overnight, clinicians went from face-to-face consultations to phone, text or video-call consultations. Patients loved it because they could remain in the comfort of their home. A survey of 10,000 patients in London conducted by Imperial College London found patients wanted more not less digital health. The entire digital consultation lends itself well to the EMR, since all artefacts from the consultation are inherently digital being in a text, voice or video format.</p><h3>The Next Advances: The Doctor Will Zoom You Now</h3><p>IOT devices will become more prevalent. Some analysts predict that there will be <a href="https://iot-analytics.com/number-connected-iot-devices">27 billion IOT devices by 2025.</a> Hospitals and health care providers will move towards exploiting these devices where appropriate and available for the patients treatment. Ireland has already taken nascent steps in this direction with the policy of <a href="https://www.ehealthireland.ie/news-media/news-archive/2018/stay-left-shift-left.html">“Stay Left — Shift Left” indoctrinated by Martin Curley</a> in the HSE.</p><p>Another interesting aspect is that the hospital can scale out in the number of clinicians it has available. These clinicians do not necessarily have to be in the hospital or even employed directly by the hospital. <a href="https://www.itij.com/latest/news/middle-east-welcome-its-first-digital-hospital">Consider Mulk Healthcare in the Middle East,</a> an E-Hospital that allows patients to present via a downloadable app. The patients can be anywhere in the world and so too can the clinicians. Granted there are some limits to type of treatments that will be available here but it does herald a significant departure from traditional in-person medicine.</p><p>Patients have a part to play too in advancing this paradigm shift. Incentivised by being able to remain at home during their convalescence they will become more and more tech savvy.</p><h3>Conclusion</h3><p>So does this sound the death knell for the hospital as we know it? In a word no. For complex patients and procedures — may still require hands-on human expertise. However as a more efficient means to run an effective hospital it could be a panacea for waiting lists. The number of bed days and the staff that support these bed days could be reduced dramatically if the majority of patients could be monitored and supported from their home.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38193daedc35" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Export from SQL Server to Fixed Width format]]></title>
            <link>https://fhir.medium.com/export-from-sql-server-to-fixed-width-format-7ea68619dd21?source=rss-4f0f5bf9f349------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ea68619dd21</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[numpy]]></category>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[fixed-width-format]]></category>
            <dc:creator><![CDATA[Joe Hunter]]></dc:creator>
            <pubDate>Wed, 01 Jun 2022 16:46:02 GMT</pubDate>
            <atom:updated>2022-06-03T11:31:45.018Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dhL_76AF7HARDjn0AHhDQQ.png" /></figure><p><strong>I know, it’s 2022, why would you want to do this? </strong>Recently I had a requirement to export a very large SQL Server table to fixed width format (FWF) for a legacy application. For the uninitiated FWF files are those where the <strong>format</strong> is specified by column <strong>widths</strong>, pad character and left/right alignment. The advantages of this format is their low space consumption but the trade-off being they can be very tedious to export or import. <a href="https://stackoverflow.com/questions/7666780/why-are-fixed-width-file-formats-still-in-use">This StackOverFlow </a>discussion is interesting to gauge the continued popularity of FWF.</p><p>Drivers to import and export FWF files are few and far between. The only exception being the <a href="https://pandas.pydata.org/docs/reference/api/pandas.read_fwf.html">Pandas read.fwf method</a> in Python which can help import these files. This is the jumping off point for this article, knowing there was a Pandas read.fwf function I went looking for documentation on the write.fwf? And there isn’t one! So below are steps I followed to export from SQL Server to FWF. All code and files are available on my Github if you want to use it.</p><ol><li><strong>First thing is to garner what the layout of the FWF file should be?</strong> Hopefully this is available to you. In this example, purely illustrative, I am going to export the SQL Server System view that provides the list of tables in a database. This view has 4 columns so I will need 4 fixed widths in the file. They are all text and again for this example I am going to make them character length 20. Based on this I need to create a Schema.ini file first.</li><li>Create a Schema.ini file to represent the layout of the final FWF file. Below is what is required in this example. Follow this format.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sNUxsUnaq6bzZxkLktwkZA.png" /><figcaption>Schema.ini</figcaption></figure><p>3. Next move over to SQL Server and for the table you want to export, select into a new table in the format and column layout as per the Schema.ini. So in this example I use this SQL to do this:</p><pre>DROP TABLE IF EXISTS [TEMPDB].[DBO].[FWF_FORMAT];</pre><pre>SELECT [TABLE_CATALOG] = COALESCE(CAST(TABLE_CATALOG AS CHAR(20)), SPACE(20))</pre><pre>,[TABLE_SCHEMA] = COALESCE(CAST(TABLE_SCHEMA AS CHAR(20)), SPACE(20))</pre><pre>,[TABLE_NAME] = COALESCE(CAST(TABLE_NAME AS CHAR(20)), SPACE(20))</pre><pre>,[TABLE_TYPE] = COALESCE(CAST(TABLE_TYPE AS CHAR(20)), SPACE(20))</pre><pre>INTO [TEMPDB].[DBO].[FWF_FORMAT]</pre><pre>FROM [TEMPDB].[INFORMATION_SCHEMA].[TABLES];</pre><p>4. So this is the table that will be exported from. Now in Python we need some code to read the schema.ini file, create a format object, connect to SQL Server and then dump the data into a FWF file. Sounds easy right? Well the Numpy “savetxt” function does a lot of the heavy lifting for us.</p><p>5. Read in the Schema.ini file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*3Oy5gGFU6Y5txbBDlABWng.png" /></figure><p>6. Connect to SQL Server using pyodbc</p><p>7. Finally dump the data from a dataframe using numpy:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8A4_TjySs1Weml9MqCSsbg.png" /><figcaption>Connect to SQL Server and export to FWF file</figcaption></figure><p>And that is it! It can take a little bit of time to write the SQL query to copy the data into a separate table but as long as the layout is clearly defined this should be very straightforward.</p><h4><strong>References:</strong></h4><p><a href="https://numpy.org/devdocs/reference/generated/numpy.savetxt.html">https://numpy.org/devdocs/reference/generated/numpy.savetxt.html</a></p><p><a href="https://docs.python.org/3/library/string.html#format-specification-mini-language">https://docs.python.org/3/library/string.html#format-specification-mini-language</a></p><p><a href="https://stackoverflow.com/questions/64826735/pandas-write-dataframe-in-fixed-width-formatted-lines-to-a-file">https://stackoverflow.com/questions/64826735/pandas-write-dataframe-in-fixed-width-formatted-lines-to-a-file</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ea68619dd21" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fully Homomorphic Encryption: Cutting the Gordian Knot of querying health data without accessing it]]></title>
            <link>https://fhir.medium.com/fully-homomorphic-encryption-cutting-the-gordian-knot-of-querying-health-data-without-accessing-it-e2d67524964?source=rss-4f0f5bf9f349------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2d67524964</guid>
            <category><![CDATA[health-data]]></category>
            <category><![CDATA[homomorphic-encryption]]></category>
            <category><![CDATA[pii-data]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[cloud-sovereignty]]></category>
            <dc:creator><![CDATA[Joe Hunter]]></dc:creator>
            <pubDate>Fri, 27 May 2022 15:04:46 GMT</pubDate>
            <atom:updated>2022-05-27T15:05:55.536Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*mP9eqp_G-nV3EEdxQTdFXw.jpeg" /><figcaption>The Gordian Knot is an Ancient Greek legend of Phrygian Gordium associated with Alexander the Great.</figcaption></figure><p><strong>Imagine you are the steward of a database of sensitive, patient identifying health information.</strong> You are tasked with giving access to data scientists so they can run queries on these data. However the rub is, the data scientists cannot have access to the source data but can only access the data in an encrypted form? Sounds impossible right? Well not if <strong><em>Fully Homomorphic Encryption (FHE) </em></strong>is used!</p><h3>What is FHE?</h3><p>FHE refers to a special type of encryption technique that allows for computations to be done on encrypted data, without requiring access to a secret (decryption) key. The results of the computations are encrypted, and can be revealed only by the owner of the secret key. The image below illustrates what FHE’s inventor Craig Gentry described it as “one of those boxes with the gloves that are used to handle toxic chemicals… All the manipulation happens inside the box, and the chemicals are never exposed to the outside world.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*PaNOyv1046ExjkZiOC7Fgw.gif" /><figcaption>IBM considers fully homomorphic encryption is now on the verge of making its way out of the labs and into the hands of early adopters after a long gestation period.</figcaption></figure><h3><strong>Early Limitations</strong></h3><p>In 2009 Gentry invented the first fully homomorphic encryption algorithm. The main limitation back then and for a time after was the length of time it took to compute on encrypted data: in 2011, it took 30 minutes to process a single bit using FHE. Fast forward to 2015 and researchers could compare two entire human genomes using FHE in less than an hour.</p><h3>What are the FHE use cases?</h3><p>The use cases are many and growing all the time as data privacy, rightfully so, becomes ever more important. FHE offers much better cyber security resilience by allowing data owners to not just store encrypted data at rest or in transit but also when being queried.</p><p>Having a professional stake in this<strong> I believe health informatics will be the biggest beneficiary of FHE</strong>. As things stand moving healthcare data into the cloud faces many barriers despite the many perceived benefits. Some of the main arguments in opposition to cloud adoption are:</p><ul><li>Who has access to the data?</li><li>Where is it stored?</li><li>and how do I know it is not being copied?</li></ul><p>These of course are legitimate concerns for the data owners. Having the data on-premise on servers that they can control and administer is a lot more re-assuring. However with FHE data owners can feel confident that storing the data on cloud in an encrypted form does not violate its privacy. For instance the data can be made available to third parties to run machine learning algorithms on it without revealing the underlying elements of the data.</p><h3>FHE Adoption</h3><p>Barriers to adoption are the perceived complexity in implementing FHE. It is still early days and as of yet there is not a fully commercial application available to allow organisations to easily transfer their data into a FHE environment. That being said IBM have done huge work on FHE over the past decade and provide a toolkit on Linux to allow developers to dip their toes into FHE. The <a href="https://github.com/IBM/fhe-toolkit-linux">Github repo is here</a></p><h3><strong>Finally…the data sovereignty cloud</strong></h3><p>Cloud data sovereignty is the concept that data stored in the cloud is subject to the laws and regulations of the country that has jurisdiction of the physical servers and premises being used. In some circles 2022 has been touted as the<a href="https://www.information-age.com/why-2022-will-be-year-of-data-sovereignty-cloud-123497990/"> year of the data sovereignty cloud.</a> The current cloud regulatory environment will become more complex. But FHE can offer a way for cloud providers and data owners to assure their users and the regulators that their data is always encrypted on-cloud. A huge win for everyone</p><h3>References</h3><ul><li><a href="https://www.darkreading.com/edge-articles/homomorphic-encryption-the-golden-age-of-cryptography">Homomorphic Encryption: The &#39;Golden Age&#39; of Cryptography</a></li><li><a href="https://ibm-research.medium.com/the-future-of-crypto-ibm-makes-a-new-leap-with-fully-homomorphic-encryption-68e98f35af14">The Future of Crypto: IBM Makes a New leap with Fully Homomorphic Encryption</a></li><li><a href="https://www.microsoft.com/en-us/research/project/homomorphic-encryption/">Homomorphic Encryption - Microsoft Research</a></li><li><a href="https://github.com/IBM/fhe-toolkit-linux">GitHub - IBM/fhe-toolkit-linux: IBM Fully Homomorphic Encryption Toolkit For Linux. This toolkit is a Linux based Docker container that demonstrates computing on encrypted data without decrypting it! The toolkit ships with two demos including a fully encrypted Machine Learning inference with a Neural Network and a Privacy-Preserving key-value search.</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2d67524964" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How AI Will Change Our World]]></title>
            <link>https://fhir.medium.com/how-ai-will-change-our-world-3a856ee94518?source=rss-4f0f5bf9f349------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a856ee94518</guid>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Joe Hunter]]></dc:creator>
            <pubDate>Sat, 15 Jan 2022 10:08:52 GMT</pubDate>
            <atom:updated>2022-01-15T10:13:39.515Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CNUjuxVFdP62tJR-G5T4UQ.jpeg" /><figcaption>Is an AI Powered future at hand?</figcaption></figure><p><strong>Introduction</strong></p><p>Is 2022 going to be the year where we finally witness the mass adoption of AI in all facets of our life? Will humanity be in thrall to a modern version of HAL 9000 by years end? Or has AI still got a long way to go before we experience any deep disruption in our daily lives?</p><p><strong>10) Home</strong></p><p>Alexa, increase the kitchen temperature by 2 degrees. The speed with which virtual assistant technology has invaded our homes and become part of our everyday lives is truly astonishing! Remember that Amazon Alexa is not even 10 years old. With competing products from Google Home to Apple Siri this technology will become more and more prevalent over the next 10 years.</p><p>Armed with AI and the Internet of Things (IOT) it will undoubtedly enhance our current virtual assistant user experience. So much so that a fridge that replenishes itself and works out the best deals in nearby stores before re-ordering is not a million years away!</p><p>The concept of the “always-on” home, at one time an abstract idea in science fiction, could soon come to fruition. Devices like Google Nest have shown what is possible with this technology. By leveraging AI technologies to monitor thermostats, they could ensure a smaller carbon footprint per home and help with the impending climate crisis.</p><p><strong>09) Shopping</strong></p><p>AI will transform shopping over the coming decade. From the seller’s perspective they can now deploy sophisticated machine learning algorithms to maintain their supply chain. What was once an incredibly complex task: getting the right product to the right customer at the right time may become trivial with the advent of AI.</p><p>From a consumer’s perspective, recommendation algorithms will guide them in many shopping experiences. Intelligent product searches will help customers find items online. By taking a picture of the item and submitting it to an online machine learning algorithm it will help customers look for retailers.</p><p>This personalized shopping experience will be extended from the online world to the physical world. Biometric scanning and facial recognition will present a tailored list of products to any customer who walks through their doors. We are already seeing new innovations in this space with the launch of the Amazon Go and Just Walk Out stores. They have introduced new concepts such as responding with information each time a customer lifts an item off the shelf.</p><p><strong>08) Advertising and Marketing</strong></p><p>A scene from the movie Minority Report, starring Tom Cruise, involves him getting on a subway train and all of the digital advertising screens he looks at changing in unison to reflect his demographic. At the time of the movie’s release in 2002, retina scanning individuals to show targeted advertising seemed like pure science fiction. However, AI may make this fiction a reality in the coming years.</p><p>The impact of AI on advertising cannot be understated. As IBM has recently stated: “if advertisers are not currently implementing AI Tools into their strategy, it’s probably time they started considering it”.</p><p>Personalization is the watchword for deploying AI in advertising. Using AI powered algorithms, companies can create a unique experience or communication for consumers using any data they hold or can discern from them. This personalization has a much better conversion rate than traditional advertising. So not only are companies driving more sales from their AI-powered advertising they are not wasting money on ad copy that does not convert.</p><p><strong>07) Cybersecurity</strong></p><p>AI and data have a symbiotic relationship. AI needs data to drive machine learning decisions and conversely data on possible outcomes is created by AI after a prediction has been reached. All these data need securing. The data may represent sensitive information like healthcare or financial information on customers. AI will undoubtedly have an impact here.</p><p>For instance, being able to deploy a machine learning algorithm against user interaction data will allow so called bad actors to be identified. Hopefully this can be done in advance of any malicious attack being deployed! AI can also be trained to detect ransomware and malware before they breach a system.</p><p>Sadly, it is not all good news. AI is a double-edged sword when it comes to cybersecurity. According to a recent EU report AI will be leveraged by hackers to expand the threat landscape, introduce new threats and alter the traditional characteristics of threats.</p><p><strong>06) Military and Defense</strong></p><p>A dystopian future of killer AI robots is arguably the vision that scares people most about AI. A future military composed of AI powered killing machines, feeds this narrative. Both military and as previously mentioned cybersecurity are the areas that AI could have the most negative impact on our daily lives.</p><p>Thankfully there is regulation in place to limit the development of autonomous weapons systems. But in the event of a future arms race, much like the nuclear arms race, these limits could soon be exceeded as nation states seek to dominate in a new world order. This is such a concern that in 2017 an open letter was sent to the UN signed by 116 founders of robotics and AI companies warning of the dangers of autonomous weapons. It was the first time that AI and robotics companies took a joint stance on this issue.</p><p>It’s not all doom and gloom there is some reason for optimism here too. Facial recognition could be harnessed to detect identified terrorists when in the general populace. Phone and network traffic could be monitored and analyzed to sniff out any terrorist threats at the planning stage.</p><p><strong>05) Transportation and Logistics</strong></p><p>Due to a lot of media hype in the last few years, self-driving cars are at the forefront of people’s minds when they think of the impact of AI on our everyday lives. Tesla and Google have proven that autonomous vehicles are a viable product for future transportation. Will we be driven around in AI-powered autonomous vehicles in the near future? It certainly looks so from this standpoint.</p><p>Tesla have also moved the needle on semi-autonomous trucks. Their Tesla Semi truck has safety features installed that can determine if a collision is imminent. This AI feature uses image processing algorithms to detect the speed and distance of other vehicles on the road. Further advancements in these self-driving trucks will enable quicker and cheaper deliveries. If driven purely by AI, delivering products will be quicker and cheaper. When passed onto the consumer it will result in cheaper products for all.</p><p><strong>04) Customer Services</strong></p><p>The science fiction writers of the 1960’s had a different robot in mind when describing a future full of ubiquitous bots. Microsoft CEO Satya Nadella claimed in 2016 that chatbots “will fundamentally revolutionize how computing is experienced by everybody.” This prediction is now coming to pass. By using AI-powered natural language processing (NLP), chatbots have moved from directing customer service calls to solving them.</p><p>As NLP develops more and more it will have a direct impact on diagnosing health problems. A patient could describe their symptoms to a chatbot via a virtual assistant like Alexa. The AI behind the bot could look up a health repository before directing you to the appropriate human clinician. Back-office services like complicated insurance claims could be parsed, filtered and processed by a chatbot. This would speed up such claims and reduce administrative fees for consumers.</p><p><strong>03) Banking and finance</strong></p><p>Machine learning is already being used by many banks to automate small loan approval. It is now possible to apply online 24/7 for a loan from your bank. AI will help to automate other banking customer services that previously were only available from 9 to 5 on a weekday. Chatbots will take the heavy lifting out of lengthy application forms.</p><p>AI will provide many time saving and cost saving opportunities in banking operations. Banking and finance are rife with paperwork. AI can streamline this process and provide a more efficient service to their customers. Some financial institutions already use predictive analytics to target tailored products to specific customers.</p><p>Cryptocurrencies pose some very interesting challenges for banks and financial institutions. At present some traditional banks are dipping their toes into cryptocurrencies. As recently as March 2021 Morgan Stanley offered their clients access to bitcoin funds. An AI powered cryptocurrency may become the “killer app” that is impossible for traditional banking to ignore. This may herald a mass adoption of digital currencies in some shape of form across the globe.</p><p><strong>02) Healthcare</strong></p><p>Is there any current industry that is more ripe for AI disruption than healthcare? Fitbits and smart watches have created what has been termed the “connected self”. This personal digital exhaust is continually contributing health data to the cloud. Doctors could use AI machine learning algorithms that utilise these data to allow for early detection of disease in their patients.</p><p>A genome is the complete set of genetic information for a living organism. Running predictive analysis on our genome to detect any genetic anomalies will be game changing. If we have access to our own genome, via cloud computing, we could even run our own analysis to find out more about ourselves and our health.</p><p>A harbinger of what AI can truly achieve in medicine is the story of Google’s AlphaFold solution to a 50-year old scientific problem. The “protein folding problem” involves trying to predict which shapes proteins fold into. This shape determines the protein’s function so it is important to know. In July 2021 Google’s AlphaFold used deep learning and finally solved this problem.</p><p><strong>01)</strong> <strong>The World of Work</strong></p><p>There is a common thread joining each item we listed from ten to two. In each item an area of work that is now being performed by a human being will be supplanted by an AI of some shape or form!</p><p>Shopping will have virtual shopping assistants. Advertisers will no longer need human copywriters. In the military, drones are already taking over the roles previously held by pilots. Will AI robots replace soldiers? Bus drivers replaced by self-driving vehicles? Even the highly-skilled work performed by doctors can be replaced by machine learning algorithms performing a deep learning diagnosis. According to the World Economic Forum AI could replace 85 million jobs globally by 2025! As per all things AI related, there is a flipside and some good news on the jobs front. The same report from the World Economic Forum cites that AI could create 97 million new jobs in the future.</p><p>One recurring theme I discovered compiling this top 10 is the ability of AI to free up time for people. For example, if AI can respond to our queries virtually 24/7 then we no longer have to spend time queuing at the bank or doctor’s. This additional time means we get more done in less time. Which could have the knock on-effect for our work and could lead to the introduction of the 4-day working week. This idea has already been introduced in Iceland and has been lauded as a huge success.</p><p><strong>Conclusion</strong></p><p>In the 4th industrial revolution is AI going to present more problems than solutions when it invades every facet of our lives? Or as the poet Richard Brautigan described, are we entering an AI-powered utopian society “all watched over by machines of loving grace”? The future will tell.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a856ee94518" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transport Layer Security (TLS)]]></title>
            <link>https://fhir.medium.com/transport-layer-security-tls-5a285e4faa33?source=rss-4f0f5bf9f349------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a285e4faa33</guid>
            <category><![CDATA[tls]]></category>
            <category><![CDATA[tls-handshake]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Joe Hunter]]></dc:creator>
            <pubDate>Thu, 04 Feb 2021 18:52:33 GMT</pubDate>
            <atom:updated>2021-02-04T18:52:33.721Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Transport Layer Security(TLS)</em></strong> is a means of guaranteeing the confidentiality, integrity and authenticity of messaging between two parties on the web. From its inception in 1999 it has evolved to version 1.3 at the time of writing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tsMmW2P9UM6UnD34mmMm0g.png" /></figure><h3><strong>How does TLS 1.2 Work?</strong></h3><p>Establishing a secure channel between the server and the supplicant (client) requires a <strong>TLS handshake</strong>. The aim of this handshake is to firm up a secure channel so both parties can communicate in confidence. So to begin:</p><ol><li>The client sends Client-Hello to the server</li><li>On receipt the server sends an acknowledging Server-Hello and its public certificate to the client</li><li>At this point the client chooses at <strong>random </strong>a <strong>symmetric key</strong> that they both can use to encrypt all messages</li><li>To send this key to the server, the client encrypts it using the public certificate sent in step 2. above</li><li>All going well, both client and server <strong>send finish messages</strong> to indicate a secure channel has been initiated</li><li>Now both parties can start communicating via a process called TLS record encryption.</li></ol><p>So far so secure? Not quite. In TLS 1.2 there is a security flaw on how the cleartext data is encrypted during TLS record encryption, which is explained next.</p><h3><strong>MAC-then-Encrypt or Encrypt-Then-MAC?</strong></h3><p>In cryptography, a <a href="https://searchsecurity.techtarget.com/definition/message-authentication-code-MAC"><strong>message authentication code (MAC)</strong></a> is a cryptographic checksum on data that uses a session key to detect both accidental and intentional modifications of the data. So in TLS when encrypting the message from plaintext to ciphertext, an integrity tag (MAC) is appended to the plaintext message and it is then encrypted into the ciphertext.</p><p>However this is a vulnerability because any attacker who intercepts the ciphertext can exploit the integrity of the message which is guaranteed by the MAC code. So that when the server comes to decrypt the message, it is only afterwards that it checks the integrity. This exploit was used in a number of attacks including <strong>BEAST, Lukcy13 and Poodle.</strong></p><p>So what’s the solution? Very simple, Encrypt-Then-MAC.</p><h3><strong>Enter TLS 1.3</strong></h3><p>Released in 2017, 1.3 solves a lot of the problems inherent in earlier versions of TLS. One of these problems related to the record protocol mentioned above. <strong>1.3 has mandatory record encryption using AES128-GCM</strong>. On top of this encrypted ciphertext it computes a MAC.</p><p><strong>Forward secrecy</strong> is a concept where if an attacker obtains a servers secret signing key and has access to a series of encrypted messages sent between the server and a client in the past, they cannot decrypt the contents of the messages. This was available in 1.2 but was not made mandatory. However in 1.3 this is now required in all communications.</p><p><strong>Zero-round trip setup option </strong>helps to reduce the number of round trips needed to establish a session. If the client has previously spoken to the server then a connection can be established after the client-hello.</p><p><strong>Server certificate is sent encrypted </strong>instead of in the clear with the Server-Hello.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a285e4faa33" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>