FHIR / FHIR/GoFSH

GoFSH incorrectly converts decimal types to strings

未关闭
#260 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
TypeScript
星标
40
派生
7
PR 合并指标
30 天内没有已合并 PR

描述

I ran GoFSH on a Location instance that was in XML format using the -f xml-only option, and the result looked like this:

Instance: orgloc
InstanceOf: Location
Usage: #inline
* position.longitude = "-97.7047386"
* position.latitude = "30.4159542"

When I ran Sushi on this I got the following error:

Sushi: error Cannot assign string value: -97.7047386. Value does not match element type: decimal (00:00.011 / 00:07.834, 46Mb)

Sushi: error Cannot assign string value: 30.4159542. Value does not match element type: decimal (00:00.000 / 00:07.837, 46Mb)

When I manually removed the quotes in the output, Sushi compiled it fine. Here is the correct output:

Instance: orgloc
InstanceOf: Location
Usage: #inline
* position.longitude = -97.7047386
* position.latitude = 30.4159542

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。