Escape html entities in direct reference code Display
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cqframework/sample-content-ig
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
cqframework/sample-content-ig#144 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
cqframework/sample-content-ig#146 ·
-
Empty fields in liquid template for measuresMay be free again @brynrhodes claimed this 104 days ago, and no pull request is open. Openenhancement
cqframework/sample-content-ig#138 · 3 comments · 1 assignee ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 45/100
cqframework/sample-content-ig#136 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
cqframework/sample-content-ig#7 · 1 comment ·
All issues in cqframework/sample-content-ig
Similar issues
-
follow-up
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
ChurchCRM/docs.churchcrm.io#320 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
SSWConsulting/SSW.Rules.Content#13826 ·
Maintainers usually reply within 1 day
-
sync-en
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
Перевод устарел
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day