You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation calls out 'is_nan' as a filter. The example given is:
After doing some testing with this it seems to actually use the filter in liquid you would have to write the filter as 'in_na_n'. Using 'is_nan' results in the variable you are checking being returned as the result since it doesn't seem to be recognized as a valid filter.
I'm not sure what is converting the dotnet method to a filter, but it seems to key off of casing. Since the method is named 'IsNaN' I think that's resulting in the liquid filter being named 'is_na_n'. If the method were named 'IsNan' I think the filter would then match the documentation.
Also the result of the filter seems to be reversed, things that are numbers are returning 'true' and things that are not numbers are returning 'false'. Below is the code I used to test, and the output.
Liquid code:
Json output:
The text was updated successfully, but these errors were encountered:
JSpinks93
added a commit
to JSpinks93/FHIR-Converter
that referenced
this issue
Mar 17, 2023
The documentation calls out 'is_nan' as a filter. The example given is:
After doing some testing with this it seems to actually use the filter in liquid you would have to write the filter as 'in_na_n'. Using 'is_nan' results in the variable you are checking being returned as the result since it doesn't seem to be recognized as a valid filter.
I'm not sure what is converting the dotnet method to a filter, but it seems to key off of casing. Since the method is named 'IsNaN' I think that's resulting in the liquid filter being named 'is_na_n'. If the method were named 'IsNan' I think the filter would then match the documentation.
Also the result of the filter seems to be reversed, things that are numbers are returning 'true' and things that are not numbers are returning 'false'. Below is the code I used to test, and the output.
Liquid code:
Json output:
The text was updated successfully, but these errors were encountered: