Incorrect password
Back to top

Apervita: Medical Algorithm Editors

Central to the Aperita platform is its reusable, distributable compute engine, which is capable of being run against any data type. The medical algorithm editor is the interface to that engine.

Overview

The following work shows the evolution of a set of tools between 2013 and 2019. I was the first Product Designer at Apervita, a company of about eight people in 2013. I started with a basic prototype and evolved it into an enterprise-class tool with a robust set of features for hospital quality measures, pathways and other clinical decision support tools. As Apervita grew, my time was split between hands-on design, research, and design team leadership. By 2019, our team consisted of seven user experience designers, including me in my role as Director of User Experience and Design.

Prototyping to Learn

Algorithm Editor Beginnings

Our first iteration of the editor was basically a prototype in our proprietary sandbox, based on the Python programming language. The first goal was to test different examples, typically an algorithm that outputs a score.

This interface is designed with an Informatics Specialist in mind. Her goal at this part of the process is to take an established medical white paper and translate it into code and test it.

My Contribution

Product Designer, usually joined at the hip with a developer to work in real time.

Team

CTO, 2-3 Platform Engineers, 1 Full-stack Developer, 1 Product Designer

The first algorithm editor lived in a single web page with minimal error handling.

Testing the idea of a computer interface against a broad range of  algorithm types:

  • Is this a viable concept?
  • Do we have enough syntax?
  • Do we have the right interface for different sorts of inputs?

Moving Beyond a Prototype

After the underlying computational engine had been proven out, adaptations were made to the editor to accommodate a more complex set of parameters, enabled more error states, and implemented a more refined way to switch between modes.

As the functionality evolved, we better understood the modes of working, and could begin to refine the user interface.

Was it successful?

Somewhat.

How did we know?

For the prototype, we created a library of viable, executable algorithms and introduced a set of tools and interfaces that served as the basis of our medical algorithm editor moving forward.

This was used as a tool for 6-12 months to build the first clinical decision support product on the Apervita platform. Early stages, plenty of room for improvement, as we will see later in this use case.

Our challenge continued to be keeping up with the pace of feature requests from our internal medical engineering team, and trying to anticipate when we needed to redesign our interface.

Iterations on the Real Thing

Better Layout and Increased Flexibility

Once we felt we had proven out the model, we sought out to do two things: 1. test our model with external parties and, 2. improve the interface in order to stand next to modern software interfaces.

We sought out external user feedback via an alpha trial with informaticians and other medical professionals involved in the authoring and implementation of digital medical knowledge. We conducted user interviews that revealed the need to chain algorithms together; updating our design allowed for more complex algorithms. The platform also needed the ability to use shaper algorithms in order to get the incoming data into the right format for a particular algorithm.

My Contribution

Lead Product Designer and researcher

Team

2 Product Designers 1-2 Platform Engineers, 1-2 FE Engineers

The Problem While a single panel served us during our trial phases, we realized that we needed a better way for users to manage their workflow.

Using contextual inquiry and user observation, we found a common set of tasks that users needed to accomplish. Not every user did them in the same order, and not every algorithm needed the same emphasis on a particular task. The main tasks we found were: 1. Writing the initial logic and testing syntax. 2. Adding parameters and power tools, and testing them with the logic. 3. Unit testing the whole. 4. Testing against a wider data set and comparing to expected results. 5. Testing against synthetic clinical data.

We considered a few approaches, but ultimately landed on a system of panels that could be shown and hid by the user as they performed their tasks. We shared sketches, paper prototypes and mock ups with internal stakeholders and user base as we evolved our designs.

The Process As the Design team came up with concepts, we would meet with our internal Informatics Engineers to share ideas and gather feedback. We would work iteratively with the target user, product stakeholders and the engineering team, from sketches to detailed design artifacts.

The Solution The end result was our first delivery of mature software. We created the beginnings of a design system, and workspace hierarchy and a flexible authoring tool.

Was it successful?

Yes.

How did we know?

Aside from the big uptick in visual appeal, and the foundations of a design system, we introduced some major functionality that improved code reusability and general flexibility:

  • The ability to embed algorithms, code sets and value sets
  • Introduced panel management
  • Introduced the ability to adapt to different workflows

The Next Evolutionary Step

Clinical Quality Language

Our customers' successes were achieved largely in collaboration with and support from our internal customer success engineers. To reach a larger audience, the editor needed to be less intimidating to clinical subject matter experts, many of whom feel daunted by the coding environment.

At the same time, the Clinical Quality Language was being developed to help bridge this issue.

Clinical Quality Language (CQL) is a Health Level Seven International (HL7) authoring language standard that’s intended to be human readable. It is part of the effort to harmonize standards used for electronic clinical quality measures (eCQMs) and clinical decision support (CDS). CQL provides the ability to express logic that is human readable yet structured enough for processing a query electronically.

We extended our editor framework to accommodate this new authoring language, and became the first platform to execute clinical quality measures using this new language.

My Contribution

Lead Product Designer and researcher

Team

1 Product Designer, 1 Platform Engineer, 1 FE Engineer

Was it successful?

Apervita adopting and being a pioneer in CQL was a great success. On the other hand, we did not acquire a wider audience with this more user friendly language.  

How did we know?

We were the first platform to run CQL in a real world environment. Apervita runs CQL measures for over 3,000 hospitals in the United States.

But the human readable thing? It hasn’t moved the bar enough. Healthcare moves at a snail’s pace.

Improving the CQL Editor

Syntax Auto Complete

Though the CQL language is much more human readable, feedback from and observations of early users of  this new editor moved us to design some improvements.

Problem
‍
While CQL used clinical terminology, a user still had to know the expected structure and syntax.

Solution
In-line autocomplete of critical terms, phrases and code snippets.

Was it successful?

Not really. The code autocomplete UI works exactly as expected, but this feature did little in terms of acquiring greater adoption.

How did we know?

We expected wider adoption of the algorithm editor, but it wasn’t enough to move the needle. 

People who are afraid of code aren’t moved much by this feature.

Import Standard Measures

Standard measures written in CQL use a common set of included CQL files that contain common functions. In addition to manually pasting code from the source of the main CQL file, the logic of each include must be manually pasted by a measure implementer.

Problem
The implementation of pre-defined measures is a repetitive process that’s prone to human error. The process involves cutting and pasting from a vetted curator, such as the National Committee for Quality Assurance. In addition to the main CQL file, the user must repeat the same process for the shared include files.

Solution
We designed a method for importing a zipped CQL package, that would pull in the main CQL logic, and also import and create its associated CQL include files.

Was it successful?

Yes

How did we know?

This is a huge time saver. We received overwhelming applause from our Informatics team when this was made available.

Reduced the number of steps from about 25 steps to four.

Automatic Mapping of Required Value Sets

Value sets are a collection of codes used to point to specific information in patient data (e.g., a diagnosis of chronic kidney disease). Libraries of Value Sets are maintained and curated by the Value Set Authority (VSAC) at the National Library of Medicine (NLM).

Problem
Value Sets often number in the dozens for a particular measure. Manually locating and connecting to Value Sets is a time-consuming, repetitive task.

Solution
We designed and implemented a way to auto detect and map Value Sets locally. If any Value Sets are not present locally, the platform will connect to the VSAC, using the user’s credentials, and download, create and automatically map to the algorithm.

Was it successful?

Yes

How did we know?

This solution was another huge time saver, this time by an order of magnitude. 

From 70-84 steps to four.