Abstract
A medical prescription is a set of health care instructions that govern the plan of care for an individual patient, which may include orders for drug therapy, diet, clinical assessment, and laboratory testing. Clinicians have long used algorithmic thinking to describe and implement prescriptions but without the benefit of a formal programming language. Instead, medical algorithms are expressed using a natural language patois, flowcharts, or as structured data in an electronic medical record system. The lack of a prescription programming language inhibits expressiveness; results in prescriptions that are difficult to understand, hard to debug, and awkward to reuse; and increases the risk of fatal medical error.
This article reports on the design and evaluation of Patient-Oriented Prescription Programming Language (POP-PL), a domain-specific programming language designed for expressing prescriptions. The language is based around the idea that programs and humans have complementary strengths that, when combined properly, can make for safer, more accurate performance of prescriptions. Use of POP-PL facilitates automation of certain low-level vigilance tasks, freeing up human cognition for abstract thinking, compassion, and human communication.
We implemented this language and evaluated its design attempting to write prescriptions in the new language and evaluated its usability by assessing whether clinicians can understand and modify prescriptions written in the language. We found that some medical prescriptions can be expressed in a formal domain-specific programming language, and we determined that medical professionals can understand and correctly modify programs written in POP-PL. We also discuss opportunities for refining and further developing POP-PL.
- Apple Computer, Inc. 1988. Hypercard Script Language Guide: The Hypertalk Language. Addison-Wesley. Google Scholar
Digital Library
- S. M. Belknap, H. Moore, S. A. Lanzotti, P. R. Yarnold, M. Getz, D. L. Deitrick, A. Peterson, J. Akeson, T. Maurer, R. C. Soltysik, G. A. Storm, and I. Brooks. 2008. Application of software design principles and debugging methods to an analgesia prescription reduces risk of severe injury from medical use of opioids. Nature Clin. Pharmacol. Therapeut. 84, 3 (2008), 385--392.Google Scholar
Cross Ref
- Steven M. Belknap. 1991. The Chicago Kinetic Simulator. Math. J. 1, 4 (1991), 68--86.Google Scholar
- A. F. Blackwell, C. Britton, A. Cox, T. R. G. Green, C. Curr, G. Kadoda, M. S. Kutar, C. L. Nehaniv, M. Petre, C. Roast, C. Roes, A. Wong, and R. M. Young. 2001. Cognitive Dimensions of Notations: Design Tools for Cognitive Technology. In Proceedings of Cognitive Technology: Instruments of Mind. Google Scholar
Digital Library
- Alan F. Blackwell and Thomas R. G. Green. 2000. A cognitive dimensions questionnaire optimised for users. In Proceedings of the 12th Workshop of the Psychology of Programming Interest Group.Google Scholar
- Frederic Boussinot and Robert De Simone. 1991. The Esterel language. In Proceedings of the Institute of Electrical and Electronics Engineers.Google Scholar
Cross Ref
- T. Brus, M. C. J. D. van Eekelen, M. van Leer, and M. J. Plasmeijer. 1987. CLEAN—A language for functional graph rewriting. In Proceedings Conference on Functional Programming Languages and Computer Architecture (FPCA’87), pp. 364--384. Google Scholar
Digital Library
- Chrisian J. Callsen and Gul Agha. 1994. Open heterogeneous computing in ActorSpace. J. Parallel Distrib. Comput. 21 (1994), 289--300. Google Scholar
Digital Library
- Bin Chen, George S. Avrunin, Lori A. Clarke, and Leon J. Osterweil. 2006. Automatic fault tree derivation from Little-JIL process definitions. In Proceedings of the Conference on Software Process Change (SPW’06). Google Scholar
Digital Library
- Carlo Combi, Mauro Gambini, Sara Migliorini, and Roberto Posenato. 2012. Modeling temporal, data-centric medical processes. In Proceedings of the SIGHIT International Health Informatics Symposium. 141--150. Google Scholar
Digital Library
- Committee on Identifying and Preventing Medication Errors. 2007. Preventing Medication Errors: Quality Chasm Series. National Academies Press.Google Scholar
- Maria Cvach. 2012. Monitor alarm fatigue: An integrative review. Biomed. Instrum. Technol. 46, 4 (2012), 268--277.Google Scholar
Cross Ref
- Division of Endocrinology, Department of Medicine and Multidisciplinary ICU Committee. 2004. Guideline for Intravenous Insulin Infusion in the Adult ICU Patient. Retrieved from http://www.hospitalmedicine.org/CMDownload.aspx?ContentKey=046c625a-839f-4731-beb8-5149c4c8f9788ContentItemKey=262ad349-0970-45ce-89d7-37de88728c7c.Google Scholar
- R. Filik, K. Purdy, A. Gale, and D. Gerret. 2006. Labeling of medicines and patient safety: Evaluating methods of reducing drug name confusion. Hum. Factors 48, 1 (2006), 39--47.Google Scholar
Cross Ref
- Matthew Flatt and PLT. 2010. Reference: Racket. PLT, TR-1. Retrieved from http://racket-lang.org/tr1/.Google Scholar
- George W. Furnas. 2000. Future Design Mindful of the MoRAS. Hum.-Comput. Interact. 15, 2--3 (2000), 205--261. Google Scholar
Digital Library
- David M. Gaba, Mary Maxwell, and Abe DeAnda. 1987. Anesthetic mishaps: Breaking the chain of accident evolution. Anesthesiology 66, 5 (1987), 670--676.Google Scholar
Cross Ref
- Tony Garnock-Jones, Sam Tobin-Hochstadt, and Matthias Felleisen. 2014. The network as a language construct. In Proceedings of the European Symposium on Programming (ESOP’14). Google Scholar
Digital Library
- David Gerrett, Alastair G. Gale, Iain T. Darker, Ruth Filik, and Kevin J. Purdy. 2009. Tall Man Lettering: Final report of the use of tall man lettering to minimise selection errors of medicine names in computer prescribing and dispensing systems. Retrieved from http://www.connectingforhealth.nhs.uk/systemsandservices/eprescribing/refdocs/tallman.pdf.Google Scholar
- Adele Goldberg and David Robson. 1983. Smalltalk-80: The Language and Its Implementation. Addison-Wesley Longman Publishing Co., Inc. Google Scholar
Digital Library
- T. R. G. Green and M. Petre. 1996. Usability analysis of visual programming environments: A ‘cognitive dimensions’ framework. J. Vis. Lang. Comput. 7 (1996), 131--174.Google Scholar
Cross Ref
- T. R. G. Green and M. Petre. 1992. When Visual Programs are Harder to Read than Textual Programs. In Proceedings of the 6th European Conference on Cognitive Ergonomics, Human-Computer Interaction: Tasks and Organisation.Google Scholar
- Thomas R. G. Green. 1989. Cognitive Dimensions of Notations. People and Computers V. 433--460. Google Scholar
Digital Library
- Yehuda Handelsman, Jeffrey I. Mechanick, Lawrence Blonde, George Grunberger, Zachary T. Bloomgarden, George A. Bray, Samuel Dagogo-Jack, Jaime A. Davidson, Daniel Einhorn, On Ganda, Alan J. Garber, Irl B. Hirsch, Edward S. Horton, Faramarz Ismail-Beigi, Paul S. Jellinger, Kenneth L. Jones, Lios Jovanovič, Harold Lebovitz, Philip Levy, Etie S. Moghissi, Eric A. Orzeck, Aaron I. Vinik, and Kathleen L. Wyne. 2011. American Association of Clinical Endocrinologists medical guidelines for clinical practice for developing a diabetes mellitus comprehensive care plan. Endocr. Pract. 17, 5 (2011), 826--831.Google Scholar
- Kathleen A. Harder, John R. Bloomfield, Sue E. Sendelbach, Michele F. Shepherd, Pam S. Rush, Jamie S. Sinclair, Mark Kirschbaum, and Durand E. Burns. 2005. Improving the Safety of Heparin Administration by Implementing a Human Factors Process Analysis. Agency for Healthcare Research and Quality.Google Scholar
- Patrice M. Healey and Edwin J. Jacobson. 1994. Common Medical Diagnoses: An Algorithmic Approach. Saunders.Google Scholar
- Carl Hewitt, Peter Bishop, and Richard Steiger. 1973. A universal modular ACTOR formalism for artificial intelligence. In Proceedings of the International Joint Conference on Artificial intelligence (IJCAI’73). 235--245. Google Scholar
Digital Library
- Richard Hillestad, James Bigelow, Anthony Bower, Federico Girosi, Robin Meili, Richard Scoville, and Roger Taylor. 2005. Can electronic medical record systems transform health care? Potential health benefits, savings, and costs. Health Affairs 24, 5 (2005), 1103--1117.Google Scholar
Cross Ref
- John T. James. 2013. A new, evidence-based estimate of patient harms associated with hospital care. J. Patient Safety 9, 3 (2013), 122--8.Google Scholar
Cross Ref
- Jan Martin Jansen, Rinus Plasmeijer, Pieter Koopman, and Peter Achten. 2010. Embedding a web-based workflow management system in a functional language. In Proceedings of the Language Descriptions, Tools and Applications Conference (LDTA’10), 2010. Google Scholar
Digital Library
- Spencer S. Jones, Robert S. Rudin, Tanja Perry, and Paul G. Shekelle. 2014. Health information technology: An updated systematic review with a focus on meaningful use. Ann. Intern. Med. 60, 1 (2014), 48--54.Google Scholar
- Denis Kilmov and Yuval Shahar. 2013. iALARM: An intelligent alert language for activation, response, and monitoring of medical alerts. In Proceedings of the Revised Selected Papers of the AIME 2013 Joint Workshop on Process Support and Knowledge Representation in Health Care. Google Scholar
Digital Library
- David A. Kindig. 1971. Some implications of patient-oriented health care. In Proceedings of the Health Conference of the New York Academy of Medicine.Google Scholar
- Andrew J. Ko, Robin Abraham, Laura Beckwith, Alan Blackwell, Margaret Burnett, Martin Erwig, Chris Scaffidi, Brad Myers, Mary Beth Rosson, Gregg Rothermel, and Susan Wiedenbeck. 2011. The state of the art in enduser software engineering. ACM Comput. Surv. 43, 3 (2011), Article No. 21. Google Scholar
Digital Library
- Ross Koppel, Metlay Cohen, Brian Abaluck, Russell Localio, Stephen E. Kimmel, and Brian L. Strom. 2005. Role of computerized physician order entry systems in facilitating medication errors. J. Am. Med. Assoc. 293, 10 (2005), 1197--1203.Google Scholar
Cross Ref
- Christopher P. Landrigan, Gareth J. Parry, Catherine B. Bones, Andrew D. Hackbarth, Donald A. Goldmann, and Paul J. Sharek. 2010. Temporal trends in rates of Ppatient harm resulting from medical care. New Engl. J. Med. 363 (2010), 2124--2134.Google Scholar
Cross Ref
- Lucian L. Leape. 1994. Error in medicine. J. Am. Med. Assoc. 272, 23 (1994), 1851--1857.Google Scholar
Digital Library
- Lucian L. Leape, Ann G. Lawthers, Troyen A. Brennan, and William G. Johnson. 1993. Preventing medical injury. Qual. Rev. Bull. 19, 5 (1993), 144--149.Google Scholar
Cross Ref
- Tita Alissa Listyowardojo, Raoul E. Nap, and Addie Johnson. 2011. Variations in hospital worker perceptions of safety culture. Int. J. Qual. Health Care 24, 1 (2011), 9--15.Google Scholar
Cross Ref
- Greg Little, Lydia B. Chilton, Max Goldman, and Robert C. Miller. 2010. TurKit: Human Computation Algorithms on Mechanical Turk. In Proceedings of the 23rd Annual ACM Symposium on User Interface Software and Technology. Google Scholar
Digital Library
- Laurence E. Mather and Christopher J. Glynn. 1982. The minimum effective analgetic blood concentration of pethidine in patients with intractable pain. Br. J. Clin. Pharmacol. 14, 3 (1982), 385--390.Google Scholar
Cross Ref
- Wilson C. Mertens, Stefan C. Christov, George S. Avrunin, Lori A. Clarke, Leon J. Osterweil, Lucinda J. Cassells, and Jenna L. Marquard. 2012. Using process elicitation and validation to understand and improve chemotherapy ordering and delivery. Joint Commis. J. Qual. Patient Safety 38, 11 (2012), 497--505.Google Scholar
Cross Ref
- Gianpaolo Molino, Paolo Terenziani, Stefania Montani, Alessio Bottrighi, and Mauro Torchio. 2006. GLARE: A Domain-Independent System for Acquiring, Representing and Executing Clinical Guidelines. In Proceedings of the American Medical Informatics Association Annual Proceedings (AMIA’06).Google Scholar
- Stuart B. Mushlin and Harry L. Greene II. 2010. Decision Making in Medicine (3rd ed.). Mosby.Google Scholar
- Bonnie A. Nardi. 1993. A Small Matter of Programming: Perspectives on End User Computing. MIT Press, Cambridge, MA. Google Scholar
Digital Library
- John F. Pane, Brad A. Myers, and Leah B. Miller. 2002. Using HCI Techniques to Design a More Usable Programming System. In Proceedings Symposia on Human Centric Computing Languages and Environments. Google Scholar
Digital Library
- John F. Pane, Chotirat Ann Ratanamahatana, and Brad A. Myers. 2001. Studying the language and structure in nonprogrammers’ solutions to programming problems. Int. J. Hum.-Comput. Stud. 54, 2 (2001), 237--264. Google Scholar
Digital Library
- Mor Peleg, Aziz A. Boxwala, Omolola Ogunyemi, Qin Zeng, Samson Tu, Ronilda Lacson, Elmer Bernstam, Nachman Ash, Peter Mork, Lucila Ohno-Machado, Edward H. Shortliff, and Robert A. Greenes. 2000. GLIF3: The evolution of a guideline representation format. In Proceedings American Medical Informatics Association (AMIA’00). 645--649.Google Scholar
- Donald D. Prince, Francis M. Bush, Stephen Long, and Stephen W. Harkins. 1994. A comparison of pain measurement characteristics of mechanical visual analogue and simple numerical rating scales. Pain 56, 2 (1994), 217--226.Google Scholar
Cross Ref
- Donald D. Prince, Patricia A. McGarth, Amir Rafii, and Barbara Buckingham. 1983. The validation of visual analogue scales as ratio scale measurments for chronic and experimental pain. Pain 17, 1 (1983), 45--56.Google Scholar
Cross Ref
- Gruia-Catalin Roman. 1985. A taxonomy of current issues in requirements engineering. Computer 4. Google Scholar
Digital Library
- Massimo Ruffolo, Rosario Curia, and Lorenzo Gallucci. 2005. Process Management in Health Care: A System for Preventing Risks and Medical Errors. In Proceedings of the Business Process Management. 334--343. Google Scholar
Digital Library
- Arvind Satyanarayan, Kanit Wongsuphasawat, and Jeffrey Heer. 2014. Declarative Interaction Design for Data Visualization. In Proceedings of the 27th Annual ACM Symposium on User Interface Software and Technology. Google Scholar
Digital Library
- E. M. Schimmel. 1964. The hazards of hospitalization. Ann. Intern. Med. 60, 1 (1964), 100--110.Google Scholar
Cross Ref
- Yuval Sharar, Silvia Miksch, and Peter Johnson. 1998. The Asgaard project: a task-specific framework for the application and critiquing of time-oriented clinical guidelines. Artif. Intell. Med. 14, 1--2 (1998), 29--51.Google Scholar
- M. E. Sime, T. R. G. Green, and D. J. Guest. 1972. Psychological evaluation of two conditional constructs used in computer languages. Int. J. Hum.-Comput. Stud. 5, 1 (1973), 105--113. Google Scholar
Digital Library
- Sara J. Singer, David M. Gaba, Alyson Falwell, Shoutzu Lin, Jennifer Hayes, and Laurence Baker. 2009. Patient safety climate in 92 US hospitals: Differences by work area and discipline. Medical Care 47, 1 (2009), 23--31.Google Scholar
Cross Ref
- Hardeep Singh, Shrinidi Mani, Donna Espadas, Nancy Petersen, Veronica Franklin, and Laura A. Petersen. 2009. Prescription errors and outcomes related to inconsistent information transmitted through computerized order entry: A prospective study. Arch. Intern. Med. 169, 10 (2009), 982--989.Google Scholar
Cross Ref
- Andreas Stefik, Susanna Siebert, Melissa Stefik, and Kim Slattery. 2011. An empirical comparison of the accuracy rates of novices using the Quorum, Perl, and Randomo programming languages. In Proceedings of the 3rd ACM SIGPLAN Workshop on Evaluation and Usability of Programming Languages and Tools. Google Scholar
Digital Library
- Ian G. Stiell, R. Douglas McKnight, Gary H. Greenberg, Ian McDowell, Rama C. Nair, George A. Wells, Cristine Johns, and James R. Worthington. 1994. Implementation of the ottawa ankle rules. J. Am. Med. Assoc. 271, 11 (1994), 827--832.Google Scholar
Cross Ref
- The SPRINT Research Group. 2015. A randomized trial of intensive versus standard blood-pressure control. New Engl. J. Med. 373, 22 (2015), 2103--2116.Google Scholar
Cross Ref
- Samson W. Tu and Mark A. Musen. 1999. A flexible approach to guideline modeling. In Proceedings of the American Medical Informatics Association Conference (AMIA’99). 420--424.Google Scholar
- W. M. P. van der Aalst, M. Pesic, and H. Schonenberg. 2009. Declarative workflows: Balancing between flexibility and support. Comput. Sci.-Res. Dev. 23, 2 (2009), 99--113.Google Scholar
Cross Ref
- Wil M. P. van der Aalst, Arthur H. M. ter Hofstede, and Mathias Weske. 2003. Busisness Process Management: A Survey. In Proceedings of the 2003 International Conference on Business Process Management. Google Scholar
Digital Library
- Washington Adventist Hospital. 2009. Weight-Based beparin orders. Retrieved from https://extranet.adventisthealthcare.com/LinkClick.aspx?fileticket=rroECsjCLnY%3D8tabid=6498mid=1813.Google Scholar
- K. N. Whitley. 1997. Visual Programming Languages and the Empirical Evidence For and Against. J. Vis. Lang. Comput. 8, 1 (1997), 109--142.Google Scholar
Cross Ref
- Paul R. Yarnold and Robert C. Soltysik. 2004. Optimal Data Analysis: A Guidebook With Software for Windows. APA Books. Google Scholar
Digital Library
- Paul R. Yarnold and Robert C. Soltysik. 2016. Maximizing Predictive Accuracy. ODA Books.Google Scholar
Index Terms
POP-PL: A Patient-Oriented Prescription Programming Language
Recommendations
POP-PL: a patient-oriented prescription programming language
GPCE '15Medical professionals have long used algorithmic thinking to describe and implement health care processes without the benefit of the conceptual framework provided by a programming language. Instead, medical algorithms are expressed using English, ...
POP-PL: a patient-oriented prescription programming language
GPCE 2015: Proceedings of the 2015 ACM SIGPLAN International Conference on Generative Programming: Concepts and ExperiencesMedical professionals have long used algorithmic thinking to describe and implement health care processes without the benefit of the conceptual framework provided by a programming language. Instead, medical algorithms are expressed using English, ...
Extracting structured information from free-text medication prescriptions using dependencies
DTMBIO '12: Proceedings of the ACM sixth international workshop on Data and text mining in biomedical informaticsWe explore an information extraction task where the goal is to determine the correct values for fields which are relevant to prescription drug administration such as dosage amount, frequency and route. The data set is a collection of prescriptions from ...






Comments