<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom">
 

 <title>LYMPHAblog</title>
 <link href="https://rickardhultgren.github.io/atom.xml" rel="self"/>
 <link href="https://rickardhultgren.github.io/"/>
 <updated>2022-02-10T13:42:13+00:00</updated>
 <id>/lymphablog/</id>
 <author>
   <name>author's name</name>
   <email>email@ something</email>
 </author>

  
  <entry>
    <id>https://rickardhultgren.github.io/2022/02/10/goals</id>
    <link href="https://rickardhultgren.github.io/2022/02/10/goals.html"/>
    <title>Goals</title>
    <published>2022-02-10T00:00:00+00:00</published>
    <updated>2022-02-10T00:00:00+00:00</updated>
    <content type="html">&lt;h2 id=&quot;goalsto-do-list&quot;&gt;Goals/To-do-list&lt;/h2&gt;

&lt;p&gt;Before any further develpment of lymphaonline or the lymphaapp, the CLI-interpreter has to be improved:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Debugging.&lt;/li&gt;
  &lt;li&gt;Making every kind of patient-data-evalution work.&lt;/li&gt;
  &lt;li&gt;Rewrite the regex-recognition and update the lexer function.&lt;/li&gt;
  &lt;li&gt;Developing example scripts for stroke and myocardial infarction. Making sure that they work without bugs both on the CLI and web project.&lt;/li&gt;
  &lt;li&gt;Update the pip-version.&lt;/li&gt;
  &lt;li&gt;Improve how userfriendly the CLI-project is.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is due to that the CLI-interpreter is the core of every other application.&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <id>https://rickardhultgren.github.io/2022/02/03/AI</id>
    <link href="https://rickardhultgren.github.io/2022/02/03/AI.html"/>
    <title>On communication between healthcare professionals and computers</title>
    <published>2022-02-03T00:00:00+00:00</published>
    <updated>2022-02-03T00:00:00+00:00</updated>
    <content type="html">&lt;h2 id=&quot;lympha-app&quot;&gt;LYMPHA app&lt;/h2&gt;

&lt;p&gt;Machine learning is usually seen as a future magic solution where data is inserted into a computer. Somehow this will cause the patient to become healthy. Exactly how machine learning can benefit the patient is a difficult question. Some important experimental areas of use are currently the elaboration of new algorithms in the form of flowcharts as well as radiology. In order for machine learning to be used in the day-to-day work of healthcare, a language is needed that is used in the communication from computer to the healthcare professional. Therefore, I also plan to develop LYMPHA in the direction of computers being able to build AI scripts in the language.&lt;/p&gt;

&lt;p&gt;References:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://pubmed.ncbi.nlm.nih.gov/35055347/&quot;&gt;https://pubmed.ncbi.nlm.nih.gov/35055347/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://pubmed.ncbi.nlm.nih.gov/35071556/&quot;&gt;https://pubmed.ncbi.nlm.nih.gov/35055347/&lt;/a&gt;&lt;/p&gt;

</content>
  </entry>
  
  <entry>
    <id>https://rickardhultgren.github.io/2022/02/01/lymphaapp</id>
    <link href="https://rickardhultgren.github.io/2022/02/01/lymphaapp.html"/>
    <title>LYMPHA App</title>
    <published>2022-02-01T00:00:00+00:00</published>
    <updated>2022-02-01T00:00:00+00:00</updated>
    <content type="html">&lt;h2 id=&quot;lympha-app&quot;&gt;LYMPHA app&lt;/h2&gt;

&lt;p&gt;The shortage of health care professionals that I have mentioned previously (&lt;a href=&quot;https://rickardhultgren.github.io/lymphablog/2021/12/09/Patient_autonomy_and_medical_algorithms.html&quot;&gt;Patient autonomy and medical algorithms&lt;/a&gt;) affects mainly the low-middle income countries. One of the key concerns is severe skills shortages, where technology can be used to help empower lesser tiered workers. In these settings, low-cost phones and tablets, typically Android, are the platforms of choice. Therefore I develop an Android app for that shows what procedure would be appropriate to execute in a certain situation:
&lt;a href=&quot;https://github.com/RickardHultgren/lymphaapp&quot;&gt;https://github.com/RickardHultgren/lymphaapp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The app is in a rough alpha stage, but I hope you can get an idea of how the final app should work. The app loads a LYMPHA script. Then each node from the script is displayed as a screen, one at a time. In order to go to the next screen you have to click &lt;em&gt;OK&lt;/em&gt;. There is an examle script inside the program with two nodes: &lt;em&gt;crepitation&lt;/em&gt; and &lt;em&gt;antibiotics&lt;/em&gt;. When you start the app reads the script and then this will be shown on your screen:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://raw.githubusercontent.com/RickardHultgren/lymphablog/gh-pages/_posts/images/lymphaapp1.png&quot; alt=&quot;&amp;lt;img src=&amp;quot;https://raw.githubusercontent.com/RickardHultgren/lymphablog/gh-pages/_posts/images/lymphaapp1.png&amp;quot;&amp;gt;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The second screen:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://raw.githubusercontent.com/RickardHultgren/lymphablog/gh-pages/_posts/images/lymphaapp2.png&quot; alt=&quot;&amp;lt;img src=&amp;quot;https://raw.githubusercontent.com/RickardHultgren/lymphablog/gh-pages/_posts/images/lymphaapp2.png&amp;quot;&amp;gt;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Do you want to test the current version? Then just download Kivy: 
&lt;a href=&quot;https://kivy.org/#home&quot;&gt;https://kivy.org/#home&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <id>https://rickardhultgren.github.io/2021/12/15/usage</id>
    <link href="https://rickardhultgren.github.io/2021/12/15/usage.html"/>
    <title>At this time, how can LYMPHA be used?</title>
    <published>2021-12-15T00:00:00+00:00</published>
    <updated>2021-12-15T00:00:00+00:00</updated>
    <content type="html">&lt;p&gt;Nowadays, medical decisions are often based on medical algorithms. LYMPHA is a programming language designed specifically to handle medical algorithms. The scripts written in the language have the ending “.lympha”. The interpreter for the language is written in Python and runs via prompt. Everything in LYMPHA is represented as &lt;em&gt;constants&lt;/em&gt; and &lt;em&gt;variables&lt;/em&gt;, but they are called &lt;em&gt;procedures&lt;/em&gt; and &lt;em&gt;factors&lt;/em&gt;. A common name for these data types is &lt;em&gt;statements&lt;/em&gt;. Each statement is represented as a node in the flowchart that the interpreter can produce. The user can choose from different outputs of the interpreter:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;As nodes become activated, call an external application via prompt command.&lt;/li&gt;
  &lt;li&gt;Draw a flowchart through Graphviz where activated nodes are marked.&lt;/li&gt;
  &lt;li&gt;Print activated nodes’ names&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I have also created a web-based variant of the interpreter. Currently, the web version of the interpreter is more advanced. The web variant allows users to create preview-flowcharts and then input patient data that activates the corresponding nodes of the flowchart. Types of nodes that currently the web-based interpreter can handle are procedures, binary factors and binary evaluations. Here is an example for interpartal CTG at term:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;CTG. -&amp;gt; CTG_110_160_spm? ; 
CTG. -&amp;gt; CTG_100_or_under_110_spm? ; 
CTG. -&amp;gt; CTG_under_100_spm? ; 
CTG_100_or_under_110_spm? -&amp;gt; corrigate_reversible_causes. ; 
CTG_100_or_under_110_spm? -&amp;gt; consider_stimulation_test. ; 
CTG_under_100_spm? -&amp;gt; corrigate_reversible_causes. ; 
CTG_under_100_spm? -&amp;gt; consider_stimulation_test. ; 
CTG_under_100_spm? -&amp;gt; consider_labour ; 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The script above will produce the following preview-flowchart:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://raw.githubusercontent.com/RickardHultgren/lymphablog/gh-pages/_posts/images/CTG1.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;With data from a normal labour the following flowchart will be produced:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://raw.githubusercontent.com/RickardHultgren/lymphablog/gh-pages/_posts/images/CTG2.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Although the development of lympha programs is far from finished, LYMPHA can at least be used as a forework for medical reasoning.&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <id>https://rickardhultgren.github.io/2021/12/09/Patient_autonomy_and_medical_algorithms</id>
    <link href="https://rickardhultgren.github.io/2021/12/09/Patient_autonomy_and_medical_algorithms.html"/>
    <title>Patient autonomy and medical algorithms</title>
    <published>2021-12-09T00:00:00+00:00</published>
    <updated>2021-12-09T00:00:00+00:00</updated>
    <content type="html">&lt;p&gt;Of course, the patient is the chairman of his own “Health Ltd”.  But does he also serve as CEO? In the case of a rather acute condition, there are perhaps not many options to choose from. Usually, the physician takes the position of CEO in those situations. But there is an increasing number of chronically ill people. They have to step up and be the CEO since it is up to them to find strategies to live with their condition.&lt;/p&gt;

&lt;p&gt;Yet, why not use a machine-learning program that will come up with a suitable solution for most health problems? Machine learning can automate a great deal of medical care. Problems arise where there are no clear, binary answers, e.g. the bus driver, who had to stop working because his hypertension medication caused him to urinate very often. According to the WHO, we have a shortage of health care professionals. But if the workforce increases, what tasks would the staff do? Probably a lot of paperwork. In healthcare today, administrative work is essential, since documentation is the backbone of how it makes money. Machine learning programs could probably handle a lot of that workload. This means that tasks that belong to “soft skilled” work will most likely be more in demand in the future.  But a bridge between machine thinking and human thinking is needed. A tool for healthcare professionals that helps them understand the suggestions that the machine learning engine gives. As an example, a doctor explains results from an AI program for a patient. The results suggest a specific path of procedures that should be undertaken. This could be one field where LYMPHA could be used.&lt;/p&gt;

&lt;p&gt;The programming language LYMPHA explains medical reasoning. For patients who want to be involved in the decision-making process, the reasoning is crucial. But if the patient thinks that it is up to the doctor to make a proper decision, then the patient is usually not very interested in the reasoning. Future development of LYMPHA will therefore not be focused on applications where the patient is the end-user.&lt;/p&gt;

&lt;p&gt;References
&lt;a href=&quot;https://www.who.int/workforcealliance/about/hrh_crisis/en/&quot;&gt;https://www.who.int/workforcealliance/about/hrh_crisis/en/&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <id>https://rickardhultgren.github.io/2019/06/21/preeclampsia</id>
    <link href="https://rickardhultgren.github.io/2019/06/21/preeclampsia.html"/>
    <title>A first attempt to write a LYMPHA script for preeclampsia and employing it on LYMPHAonline</title>
    <published>2019-06-21T00:00:00+00:00</published>
    <updated>2019-06-21T00:00:00+00:00</updated>
    <content type="html">&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Preeclampsia affects 2 to 8% of all pregnancies and is a leading cause of maternal and perinatal morbidity worldwide. Obesity, which is increasing at an alarming rate, is a risk factor for preeclampsia. Hence preparedness for patients with preeclampsia is of great importance.&lt;/p&gt;

&lt;p&gt;One vulnerable population that has a greater risk of preeclampsia is young adolescents. Sometimes the patient might not be aware of the pregnancy. An effective screening strategy could be developed for preeclampsia through the LYMPHA language. Such a tool could even benefit the follow-ups of known pregnancies.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://rickardhultgren.github.io/lymphaonline/index&quot;&gt;LYMPHAonline&lt;/a&gt; is an online interpreter of the LYMPHA language. It is a beta-version, but could be tested as in desicion making support. A LYMPHA script for preeclampsia could be found on:
&lt;a href=&quot;https://github.com/RickardHultgren/LYMPHA-scripts/blob/master/preeclampsia.lympha&quot;&gt;https://github.com/RickardHultgren/LYMPHA-scripts/blob/master/preeclampsia.lympha&lt;/a&gt;
The script is based on the guidelines of the &lt;a href=&quot;https://sfai.se/riktlinje/medicinska-rad-och-riktlinjer/.anestesi/preklampsi/&quot;&gt;swedish anestesiologist society&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;instructions&quot;&gt;Instructions&lt;/h2&gt;
&lt;p&gt;Go to the &lt;a href=&quot;http://rickardhultgren.github.io/lymphaonline/index&quot;&gt;LYMPHAonline&lt;/a&gt; webpage. It takes a while until the entire page is loaded. The screen is loaded when the home-button is orange. In the first box write&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;https://raw.githubusercontent.com/RickardHultgren/LYMPHA-scripts/master/preeclampsia.lympha
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Depending on the situation a healthcare professional could use the script in different ways. If the script should be employed as a screening tool before a visit to the healthcare professional then write in the second box:&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;screening.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;If on the other hand the script should be employed in connection with a visit, then write in the second box:&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;meeting.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In the third box write how many steps you want to go ahead in the script. If you just want to know what to do next, then write&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;2
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;https://raw.githubusercontent.com/RickardHultgren/lymphablog/gh-pages/_posts/images/preeclampsia1.png&quot; alt=&quot;&amp;lt;img src=&amp;quot;https://raw.githubusercontent.com/RickardHultgren/lymphablog/gh-pages/_posts/images/preeclampsia1.png&amp;quot;&amp;gt;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Then click on &lt;em&gt;Check for varialbe factors&lt;/em&gt; and wait. After a while new boxes will appear. There is one box for each parameter that should go into the algorithm of the LYMPHA script.&lt;/p&gt;

&lt;p&gt;After clicking &lt;em&gt;Implement variables in script&lt;/em&gt;, the script will be executed and a list of action should be shown.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://raw.githubusercontent.com/RickardHultgren/lymphablog/gh-pages/_posts/images/preeclampsia2.png&quot; alt=&quot;&amp;lt;img src=&amp;quot;https://raw.githubusercontent.com/RickardHultgren/lymphablog/gh-pages/_posts/images/preeclampsia2.png&amp;quot;&amp;gt;&quot; /&gt;&lt;/p&gt;
</content>
  </entry>
  
</feed>
