FHIR / FHIR/GoFSH

GoFSH incorrectly converts decimal types to strings

オープン
#260 コメント 1 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。