FHIR measure validation errors - Swap paragraph elements with div in measure-group-population-single.html

Open Beginner friendly
#144 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
92/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
html
Domain
content

Research direction

Open templates/liquid/measure-group-population-single.html and inspect the paragraph elements at lines 48 and 52. Replace the specified outer paragraph elements with div elements, then verify that rich-text measure group population descriptions no longer produce nested paragraph validation errors.

Written by the indexing model from the issue text.

Description

This may be a little more specific to how MADiE uses the liquid templates, but hopefully it wouldn't impact any other usage.
Since MADiE team completed the implementation of the requested rich text feature for a number of text fields in the app, the narrative content that is added to measures has started to fail validation in some cases.
Any text in the rich text block is wrapped in a paragraph element. When this content is then passed into the liquid engine, in the case of the measure group population description, it gets wrapped by another paragraph element. This is invalid HTML and is being flagged by the FHIR validator.

Image

We're requesting the templates be updated to swap p with div to eliminate this validation error.

https://github.com/cqframework/sample-content-ig/blob/a43af9456319e04485b345a06b37200e286f03bb/templates/liquid/measure-group-population-single.html#L48
https://github.com/cqframework/sample-content-ig/blob/a43af9456319e04485b345a06b37200e286f03bb/templates/liquid/measure-group-population-single.html#L52

Please let us know if any more information is needed, thanks!

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 Content issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.