Escape html entities in direct reference code Display

Open
#145 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
html
Domain
documentation

Research direction

Start by reading the Liquid templates that escape logic definitions and trace how direct reference code labels and display values are rendered in the Human Readable output. Apply equivalent escaping to those values, and consider ValueSet titles as the issue suggests. Done means HTML entities in these labels no longer break the generated Measure narrative.

Written by the indexing model from the issue text.

Description

Recently, the MADiE team received a HelpDesk ticket for a measure that uses a direct reference code whose label contains an HTML entity. For example:

code "ISUP Grade (Grade Group) 1 (Gleason score <=6)": 'LA30794-4' from "LOINC" display 'ISUP Grade (Grade Group) 1 (Gleason score <=6)'

When the Human Readable (HR) output is generated using the Liquid templates, the HTML entity in the code label/display causes the generated HR to fail to set the Measure narrative correctly.

The Liquid templates already apply escaping for logic definitions. Could similar escaping be extended to direct reference code labels/display values as well?

It may also be worth applying the same handling to ValueSet title, although we are not sure whether ValueSet names can contain HTML entities.

MADiE could potentially handle this sanitization as well, but implementing it at the Liquid template level may provide a more reusable solution for other consumers of these templates.

Dominant language
HTML
Stars
8
Forks
12
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cqframework/sample-content-ig

All issues in cqframework/sample-content-ig

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.