FHIR / sql-on-fhir-v2

This project provides the source for the SQL on FHIR v2.0 Implementation Guide
https://build.fhir.org/ig/FHIR/sql-on-fhir-v2/
MIT License
100 stars 27 forks source link

Incorrect decimal input value in boundary tests #201

Closed johngrimes closed 6 months ago

johngrimes commented 8 months ago

In the boundary tests, the test resources look like this:

{
  "resourceType": "Observation",
  "id": "o1",
  "code": {
    "text": "code"
  },
  "status": "final",
  "valueQuantity": {
    "value": 1
  }
}

It should be:

{
  "resourceType": "Observation",
  "id": "o1",
  "code": {
    "text": "code"
  },
  "status": "final",
  "valueQuantity": {
    "value": 1.0
  }
}
Yngwarr commented 8 months ago

Thank you for surfacing this. Unfortunately, we're unable to set numbers' format when generating JSONs from JavaScript. We have a plan to go JSON-first though, so we'll have to wait for it to happen.