FHIR / FHIR/GoFSH

GoFSH incorrectly converts decimal types to strings

Đang mở
#260 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
TypeScript
Star
40
Fork
7
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.