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
92 stars 26 forks source link

Where test has incorrect expectation #218

Closed johngrimes closed 5 months ago

johngrimes commented 6 months ago

This is one of the tests within the "basic" test suite:

    {
      "title": "where returns non-boolean for some cases",
      "view": {
        "resource": "Patient",
        "status": "active",
        "select": [
          {
            "column": [
              {
                "name": "id",
                "path": "id"
              }
            ]
          }
        ],
        "where": [
          {
            "path": "active"
          }
        ]
      },
      "expectError": true
    },

This is not correct, the view should not throw an error. It should merely filter out any resources for which active does not evaluate to true.

This is the correct result for this test:

      "expect": [
        {
          "id": "pt1"
        }
      ]