
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@healthcare-interoperability/fhir-query-store
Advanced tools
Abstract base for generating queries from FHIR resources that can be used with any data store.
Lightweight, extensible framework for generating data store–agnostic queries from FHIR resources.
Patient
, Appointment
, Encounter
)FHIRQuery
classnpm install @healthcare-interoperability/fhir-query-store
import { FHIRQuery } from '@healthcare-interoperability/fhir-query-store';
// Sample FHIR resource
const resource = {
resourceType: 'Patient',
id: '123',
name: [{ family: 'Doe', given: ['John'] }],
};
// Create a FHIRQuery instance
const query = new FHIRQuery(resource);
// Optionally set integration ID
query.setIntegrationId('your-integration-id');
// Generate database-ready query structure
const updates = query.query();
console.log(updates);
/*
[
{
resourceType: 'Patient',
query: {
updateOne: {
filter: { id: '123' },
update: { $set: { ... } },
upsert: true
}
}
}
]
*/
FHIRQuery
constructor(resource: object)
.setIntegrationId(id: string)
.query() → Array<{ resourceType, query }>
To add custom logic or support new backends, extend the base class:
class CustomQuery extends FHIRQuery {
query() {
const base = super.query();
// Add custom logic here
return base;
}
}
@healthcare-interoperability/fhir-query-store-mongo
: MongoDB-specific implementation of FHIRQuery
MIT
FAQs
Abstract base for generating queries from FHIR resources that can be used with any data store.
We found that @healthcare-interoperability/fhir-query-store demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.