FHIR / FHIR/GoFSH

GoFSH incorrectly converts decimal types to strings

Abierto
#260 1 comentario 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
TypeScript
Estrellas
40
Forks
7
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.