Dismantling Head-of-Line Blocking in Polypharmacy Adjudica-tion: Distributed Concurrency and Domain-Driven Design in Clinical Workflows

Main Article Content

Neeraj Gaddam

Abstract

A prescription order that contains several medications is usually adjudicated as one unit, so a single line that raises a clinical alert holds every other line behind it, including the maintenance medications that need no review. This is head-of-line blocking in the sense of switching and queueing theory, and it also asks the reviewing pharmacist to carry the whole order and its context at once. We describe a design that removes the coupling. Two bounded contexts, one for fulfillment and one for clinical verification, communicate through events. A splitter forms review groups, the connected components of the interaction graph over flagged lines, releases clean lines at once, and scatters the groups to a parallel review pool, where each group arrives with the patient data that its alerts call for. An idempotent, monotone join re-aggregates line states into the order status. In a synthetic discrete-event study, the clean lines of flagged orders, 17.9% of all lines in the default order mix, waited 21.2 minutes on average under order-level review and 0.6 minutes under the decomposed design. The wait under order-level review grew with load, and the decomposed wait did not. Reviewer time per flagged order fell from 14.5 to 7.1 minutes. Decomposition and the automated context bundle each contribute, and their effects overlap. The join was correct in every trial of every delivery regime, while a count-based aggregator failed in up to 90% of them. The study uses no real data, its parameters are illustrative, and it makes no clinical safety claim.

Article Details

How to Cite
Gaddam, N. (2023). Dismantling Head-of-Line Blocking in Polypharmacy Adjudica-tion: Distributed Concurrency and Domain-Driven Design in Clinical Workflows. The Eastasouth Journal of Information System and Computer Science, 1(01), 306–334. https://doi.org/10.58812/esiscs.v1i01.1327
Section
Articles

References

[1] D. Holdford and K. Saxena, “Impact of appointment-based medication synchronization on existing users of chronic medications,” J. Manag. Care Spec. Pharm., vol. 21, no. 8, pp. 662–669, 2015, doi: 10.18553/jmcp.2015.21.8.662.

[2] N. Masnoon, S. Shakib, L. Kalisch-Ellett, and G. E. Caughey, “What is polypharmacy? A systematic review of definitions,” BMC Geriatr., vol. 17, no. 1, p. 230, 2017, doi: 10.1186/s12877-017-0621-2.

[3] E. D. Kantor, C. D. Rehm, J. S. Haas, A. T. Chan, and E. L. Giovannucci, “Trends in prescription drug use among adults in the United States from 1999–2012,” JAMA, vol. 314, no. 17, pp. 1818–1830, 1999, doi: 10.1001/jama.2015.13766.

[4] R. L. Maher, J. Hanlon, and E. R. Hajjar, “Clinical consequences of polypharmacy in elderly,” Expert Opin. Drug Saf., vol. 13, no. 1, pp. 57–65, 2014, doi: 10.1517/14740338.2013.827660.

[5] M. Karol, M. Hluchyj, and S. Morgan, “Input versus output queueing on a space-division packet switch,” IEEE Trans. Commun., vol. 35, no. 12, pp. 1347–1356, 1987, doi: 10.1109/TCOM.1987.1096719.

[6] N. McKeown, “The iSLIP scheduling algorithm for input-queued switches,” IEEE/ACM Trans. Netw., vol. 7, no. 2, pp. 188–201, 1999, doi: 10.1109/90.769767.

[7] M. Belshe, R. Peon, and E. M. Thomson, “Hypertext transfer protocol version 2 (HTTP/2),” 2015. doi: 10.17487/RFC7540.

[8] J. Iyengar and E. M. Thomson, “QUIC: A UDP-based multiplexed and secure transport,” 2021. doi: 10.17487/RFC9000.

[9] M. Harchol-Balter, “Task assignment with unknown duration,” J. ACM, vol. 49, no. 2, pp. 260–288, 2002, doi: 10.1145/506147.506154.

[10] J. Sweller, “Cognitive load during problem solving: Effects on learning,” Cogn. Sci., vol. 12, no. 2, pp. 257–285, 1988, doi: 10.1207/s15516709cog1202_4.

[11] G. A. Miller, “The magical number seven, plus or minus two: Some limits on our capacity for processing information,” Psychol. Rev., vol. 63, no. 2, pp. 81–97, 1956, doi: 10.1037/h0043158.

[12] H. van der Sijs, J. Aarts, A. Vulto, and M. Berg, “Overriding of drug safety alerts in computerized physician order entry,” J. Am. Med. Inform. Assoc., vol. 13, no. 2, pp. 138–147, 2006, doi: 10.1197/jamia.M1809.

[13] J. S. Ancker, A. Edwards, S. Nosal, D. Hauser, E. Mauer, and R. Kaushal, “Effects of workload, work complexity, and repeated alerts on alert fatigue in a clinical decision support system,” MC Med. informatics Decis. Mak., vol. 17, no. 1, p. 36, 2017, doi: 10.1186/s12911-017-0430-8.

[14] P. Helland, “Idempotence is not a medical condition,” Commun. ACM, vol. 55, no. 5, pp. 56–65, 2012, doi: 10.1145/2160718.2160734.

[15] E. Evans, Domain-Driven Design: Tackling Complexity in the Heart of Software. Addison-Wesley, 2003.

[16] V. Vernon, Implementing Domain-Driven Design. Addison-Wesley, 2013.

[17] P. J. Xu, R. Allgor, and S. C. Graves, “Benefits of reevaluating real-time order fulfillment decisions,” Manuf. Serv. Oper. Manag., vol. 11, no. 2, pp. 340–355, 2009, doi: 10.1287/msom.1080.0222.

[18] J. Acimovic and S. C. Graves, “Making better fulfillment decisions on the fly in an online retail environment,” Manuf. Serv. Oper. Manag., vol. 17, no. 1, pp. 34–51, 2015, doi: 10.1287/msom.2014.0505.

[19] L. Flatto and S. Hahn, “Two parallel queues created by arrivals with two demands I,” SIAM J. Appl. Math., vol. 44, no. 5, pp. 1041–1053, 1984, doi: 10.1137/0144074.

[20] R. Nelson and A. N. Tantawi, “Approximate analysis of fork/join synchronization in parallel queues,” IEEE Trans. Comput., vol. 37, no. 6, pp. 739–743, 1988, doi: 10.1109/12.2213.

[21] J. Dean and L. A. Barroso, “The tail at scale,” Commun. ACM, vol. 56, no. 2, pp. 74–80, 2013, doi: 10.1145/2408776.2408794.

[22] L. Kleinrock, Queueing Systems, Volume I: Theory. Wiley-interscience, 1975.

[23] M. Harchol-Balter, Performance Modeling and Design of Computer Systems: Queueing Theory in Action. Cambridge University Press, 2013.

[24] D. L. Parnas, “On the criteria to be used in decomposing systems into modules,” Commun. ACM, vol. 15, no. 12, pp. 1053–1058, 1972, doi: 10.1145/361598.361623.

[25] M. E. Conway, “How do committees invent?,” Datamation, vol. 14, no. 4, pp. 28–31, 1968.

[26] S. Newman, Building Microservices: Designing Fine-Grained Systems. O’Reilly Media, 2015.

[27] C. Richardson, Microservices Patterns. Manning Publications, 2018. [Online]. Available: https://microservices.io/patterns/data/saga.html

[28] G. Hohpe and B. Woolf, Enterprise Integration Patterns: Designing, Building, and Deploying Messaging Solutions. Addison-Wesley, 2003.

[29] H. Garcia-Molina and K. Salem, “Sagas,” in Proc. ACM SIGMOD Int. Conf. Manage. Data, 1987, pp. 249–259. doi: 10.1145/38713.38742.

[30] J. Kreps, N. Narkhede, and J. Rao, “Kafka: A distributed messaging system for log processing,” in Proceedings of the 6th International Workshop on Networking Meets Databases (NetDB ’11), Athens, Greece, 2011, pp. 1–7.

[31] M. Kleppmann, Designing data-intensive applications. O’Reilly Media, 2017.

[32] L. Lamport, “Time, clocks, and the ordering of events in a distributed system,” Commun. ACM, vol. 21, no. 7, pp. 558–565, 1978, doi: 10.1145/359545.359563.

[33] M. Shapiro, N. Preguiça, C. Baquero, and M. Zawirski, “Conflict-free replicated data types,” in Symposium on Self-Stabilizing Systems, Springer, 2011, pp. 386–400. doi: 10.1007/978-3-642-24550-3_29.

[34] B. A. Davey and H. A. Priestley, Introduction to Lattices and Order, 2nd ed. Cambridge University Press, 2002. doi: 10.1017/CBO9780511809088.

[35] G. J. Kuperman, “Medication-related clinical decision support in computerized provider order entry systems: A review,” J. Am. Med. Inform. Assoc., vol. 14, no. 1, pp. 29–40, 2007, doi: 10.1197/jamia.M2170.

[36] K. C. Nanji, “Overrides of medication-related clinical decision support alerts in outpatients,” J. Am. Med. Inform. Assoc., vol. 21, no. 3, pp. 487–491, 2014, doi: 10.1136/amiajnl-2013-001813.

[37] S. Phansalkar, “High-priority drug–drug interactions for use in electronic health records,” J. Am. Med. Inform. Assoc., vol. 19, no. 5, pp. 735–743, 2012, doi: 10.1136/amiajnl-2011-000612.

[38] D. W. Bates, “Ten commandments for effective clinical decision support: Making the practice of evidence-based medicine a reality,” J. Am. Med. Inform. Assoc., vol. 10, no. 6, pp. 523–530, 2003, doi: 10.1197/jamia.M1370.

[39] P. Carayon, “Work system design for patient safety: the SEIPS model,” Qual. Saf. Heal. Care, vol. 15, no. suppl 1, pp. i50–i58, 2006, doi: 10.1136/qshc.2005.015842.

[40] V. C. Tam, “Frequency, type and clinical importance of medication history errors at admission to hospital: a systematic review,” Can. Med. Assoc. J., vol. 173, no. 5, pp. 510–515, 2005, doi: 10.1503/cmaj.045311.

[41] HL7 International, “FHIR Release 4 (v4.0.1),” 2019. [Online]. Available: https://hl7.org/fhir/R4/

[42] U.S. Department of Health and Human Services, “Privacy of individually identifiable health information (45 C.F.R. pt. 164, subpt. E).”

[43] R. E. Tarjan, “Efficiency of a good but not linear set union algorithm,” J. ACM, vol. 22, no. 2, pp. 215–225, 1975, doi: 10.1145/321879.321884.

[44] U.S. Department of Health and Human Services, “Security standards for the protection of electronic protected health information (45 C.F.R. pt. 164, subpt. C).”

[45] A. M. Law, Simulation Modeling and Analysis. McGraw-Hill, 2015.

[46] C. J. Clopper and E. S. Pearson, “The use of confidence or fiducial limits illustrated in the case of the binomial,” Biometrika, vol. 26, no. 4, pp. 404–413, 1934, doi: 10.1093/biomet/26.4.404.

[47] B. Bollobás, Random Graphs, 2nd ed. Cambridge University Press, 2001. doi: 10.1017/CBO9780511814068.

[48] A. M. Lee and P. A. Longton, “Queueing processes associated with airline passenger check-in,” Oper. Res. Quart., vol. 10, no. 1, pp. 56–71, 1959, doi: 10.1057/jors.1959.5.