@asymmetrik/fhir-qb-sql

FHIR query builder for SQL

Usage no npm install needed!

<script type="module">
  import asymmetrikFhirQbSql from 'https://cdn.skypack.dev/@asymmetrik/fhir-qb-sql';
</script>

README

FHIR-Query-Builder-SQL

Utility for building SQL queries based on incoming requests.

Install

yarn add @asymmetrik/fhir-qb-sql

Usage

This module is meant to be imported and used by the fhir-qb. Included are implementations of the following methods:

    assembleSearchQuery,
    buildAndQuery,
    buildComparatorQuery,
    buildContainsQuery,
    buildEndsWithQuery,
    buildEqualToQuery,
    buildExistsQuery,
    buildOrQuery,
    buildInRangeQuery,
    buildStartsWithQuery,

These are used by the fhir-qb to build a query that will work in the sql aggregation pipeline.