I have been looking for a best practice to create a major single page application using the excellent Feliz library. I also heavily borrowed ideas from a book by the author of Feliz, Zaid Ajaj. The application in mind is intended to be the Dutch National Pediatric Emergency app used for acute interventions in pediatric medical emergencies. The main purpose of the application is to provide all calculations necessary based on age and weight of the patient.
Het ergste wat een ouder kan overkomen is dat zijn/haar kind kritisch levensbedreigend ziek wordt. De Kinder IC is dan vaak de laatste strohalm. Gelukkig wordt de behandeling steeds beter op de IC, maar daarmee worden ook de uitdagingen steeds groter. Een zeer belangrijke uitdaging daarbij is groeiende complexiteit van zorg die geleverd moet worden aan toenemend complexe patiënten.
What is the problem?
To Err is Human. This is how a landmark paper from 2000 starts, recognizing that “the problem is not bad people in health care–it is that good people are working in bad systems that need to be made safer“*. The consequences of errors can be described by adverse events. Adverse events that are related to medication and or drug/fluid incidents constitute about 20% of all types of adverse events, which makes this the second most common type of adverse event†.
At the PICU (Pediatric Intensive Care Unit) of the University Medical Center Utrecht, we have been working the last years to make the data from our PDMS (Patient Data Management System) available for research. This has resulted in a multilayered system with generic possibilities to extract data and transform those data into a convenient flat table format (as described in a previous post).
Indentation is important in F#, as it defines the code blocks and the separate code elements. Using Feliz to define a view, in a Fable.React application, the indentation matters just as much, and even more.
Fantomas is a beautiful tool that automatically formats your code and ensures consistency, also in indentation. But using code like with the Feliz library, there some serious drawbacks.
The ability to Extract, Transform and Load data to a format that enables data analysis and machine learning is essential to make use of the vast amount of observational data that is nowadays available. F# can be a very efficient tool to achieve these goals.
In a previous post a described an event driven domain design to run a resuscitation protocol. I also mentioned that running this protocol in practice can have some pitfalls. One of these pitfalls is the use of a defibrillator that is required to apply a cardio conversion by delivering a shock. We have to test that this cannot ever occur.
For some time now I have been thinking of writing an app to help with running a resuscitation protocol. The resuscitation protocol as provided by the Dutch Advanced Pediatric Life Support is rather straight forward. Yet to adhere to this protocol in a stressful situation for a patient with a life threatening condition is a challenge to many physicians or health care providers.
The first thing I will trying when using a new framework or library is to start writing code in a script file and see what happens in the interactive. Normally, I am just to stupid to understand the guidelines, but by experimenting and finding it out myself by writing code I manage to get my head around the new framework or library I am using.
Testing a user interface is a challenging task in programming. However, new tools have emerged to make this better feasible. Using the setup of an web app using the SAFE template, canopy is a testing library that enables UI testing in the browser.