Open jgriesemer-ndsc opened 1 year ago
Similar problem with: \" and Microsoft.Health.Fhir.Liquid.Converter.Tool 5.0.4.3.
<value code=""text"" displayName=""text"">
<originalText>
<reference value="text"/>
</originalText>
</value>
Output:
Process failed: Invalid JSON generated: line 845:18 no viable alternative at input: ...
Preprocessing also works for me.
Hi,
you can use string filter: 'escape' in CCDA templates which will return string with special chars escaped.
e.g.
"div":"\<div>{{ component.section.title.displayName| escape }}\</div>",
Thanks.
@jgriesemer-ndsc were you able to try out the escape string filter? Did that help with the issue?
Conversion fails and throws a
PostprocessException
becauseCcdaDataParser.cs
does not escape double quote characters inside of XText nodes from the incoming xml document.Example problematic xml:
Using Ccda Processor with DischargeSummary template. I've added a step to the parser locally to replace
"
->\"
and the fix works.