Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle xhtml when validating FHIR resources #298

Closed
Wambere opened this issue Oct 16, 2024 · 1 comment · Fixed by #304
Closed

Handle xhtml when validating FHIR resources #298

Wambere opened this issue Oct 16, 2024 · 1 comment · Fixed by #304
Assignees
Labels
efsity FCT features

Comments

@Wambere
Copy link
Contributor

Wambere commented Oct 16, 2024

Ref: https://onaio.slack.com/archives/C07NVDFENS0/p1729073384102089
Ref: https://github.com/onaio/fhir-resources/actions/runs/11353530934/job/31578753433?pr=3494#step:7:2

Error occurs if we have something like this on the resource

      "text": {
        "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Application Config</div>"
      }

Error:

error

@Wambere Wambere added the efsity FCT features label Oct 16, 2024
@sharon2719 sharon2719 self-assigned this Oct 17, 2024
@sharon2719 sharon2719 removed a link to a pull request Oct 18, 2024
2 tasks
@sharon2719
Copy link
Contributor

@dubdabasoduba @ndegwamartin @Wambere I did a bit of debugging and noticed that a missing HTML tag caused the issue. If the text section is necessary then this is the format it should have

"text": {
		  "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">{{ 2dbb3571e8c151bb27742165beb7358d }}</div>"
		}

This will ensure that the error will not be experienced cc @pld

@pld pld closed this as completed in #304 Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
efsity FCT features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants