npm.io
0.13.12 • Published 1 year ago

@clinify19/fhir-qb-mongo

Licence
MIT
Version
0.13.12
Deps
1
Size
28 kB
Vulns
0
Weekly
0

FHIR-Query-Builder-Mongo

Utility for building Mongo DB queries based on incoming requests.

Install

yarn add @clinify19/fhir-qb-mongo

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 mongo aggregation pipeline.