Open Wambere opened 4 months ago
@dubdabasoduba it seems the validator is having an issue validating resources that have the text
field with a div
html value.
According to https://www.hl7.org/fhir/domainresource-definitions.html#DomainResource.text alternative names are narrative; html; xhtml; display
.
If I replace text in the failing resources with any of the alternatives above, the validation works.
Can we work with this modification on the resources or must we use text
?
@Wambere when you say replace does this mean altering the resource itself?
@dubdabasoduba instead of
{
"resourceType": "StructureMap",
"text": {
"status": "additional",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">...</div>"
},
"name": "ImmunizationCarePlan",
....
}
I switched it to
{
"resourceType": "StructureMap",
"narrative": {
"status": "additional",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">...</div>"
},
"name": "ImmunizationCarePlan",
....
}
@Wambere as we discussed earlier we can update the validator to replace text
with narrative
during validation
@dubdabasoduba after thinking about how to go about this, I now think it makes more sense for the validator to "notify" the user that they need to make that change instead of itself trying to make that change, since this would involve making changes to a PR. It could just print it as one of the other errors that the user needs to fix
@Wambere I was thinking of an inconsequential update, where the validator just changes it before validating and does not persist it in memory. Since the servers will most of the time return the resources with this property added.
If the data was copied from the server then it will have this data updated by the server or the resource generator on the tooling repo
Fix the error below source