npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@fincuratech/fuse-sdk-js

v1.1.0

Published

Fuse SDK JS - TypeScript SDK for Patterson Fuse EHR APIs

Readme

@fincuratech/fuse-sdk-js

TypeScript SDK for the Patterson Fuse EHR API.

Installation

pnpm add @fincuratech/fuse-sdk-js

Authentication

The Fuse API requires a JWT access token obtained from the Patterson Fuse login flow. The token must be extracted externally (e.g., via Playwright browser automation or manual login) and passed to the SDK.

The SDK does not handle authentication itself — you must provide a valid token.

Quick Start

import { createFuseClient } from '@fincuratech/fuse-sdk-js';

const fuse = createFuseClient({
  accessToken: 'your-jwt-token',
  practiceId: 'your-practice-id',
  locationId: 'your-location-id',
});

// Search for claims by patient name
const claims = await fuse.claims.search('Smith');

// Get claim details
const claim = await fuse.claims.getById('claim-uuid');

// Get available payment types
const paymentTypes = await fuse.paymentTypes.list();

Token Utilities

import { extractConfigFromToken } from '@fincuratech/fuse-sdk-js';

// Extract practiceId from the JWT token claims
const config = extractConfigFromToken(token);
// config.practiceId => from extension_Fuse_PracticeId claim

API Reference

Claims

  • fuse.claims.search(searchText, options?) — Search claims via the claimsGrid endpoint
  • fuse.claims.searchAll(searchText, options?) — Search both received and non-received claims, deduplicated
  • fuse.claims.getById(claimId) — Get detailed claim information including service line items
  • fuse.claims.close(params) — Close a claim after payment has been posted

Payments

  • fuse.payments.postBulkInsurancePayment(params) — Post a bulk insurance payment
  • fuse.payments.calculateCreditDistribution(serviceLineItems, totalAmount) — Pre-validate payment distribution
  • fuse.payments.validatePaymentAmounts(serviceLineItems, eraPayments, totalAmount) — Validate ERA amounts against Fuse limits

Adjustments

  • fuse.adjustments.getTypes() — Get available adjustment types
  • fuse.adjustments.post(params) — Post an adjustment (e.g., insurance write-offs)

Payment Types

  • fuse.paymentTypes.list() — List available insurance payment types

Appointments

  • fuse.appointments.search({ from, to, appointmentTypeIds? }) — Search appointments across a date range; handles pagination internally and returns all rows

Patients

  • fuse.patients.getDashboard(patientId) — Fetch the patient dashboard including benefit plans (insurance coverage)

Logging

The SDK is silent by default. Enable logging for debugging:

import { setLogger, createConsoleLogger } from '@fincuratech/fuse-sdk-js';

// Enable console logging
setLogger(createConsoleLogger('debug'));

You can also plug in your own logger (e.g., Winston, Pino):

import { setLogger } from '@fincuratech/fuse-sdk-js';

setLogger({
  debug: (msg, meta) => myLogger.debug(msg, meta),
  info: (msg, meta) => myLogger.info(msg, meta),
  warn: (msg, meta) => myLogger.warn(msg, meta),
  error: (msg, meta) => myLogger.error(msg, meta),
});

Contributing

pnpm install
pnpm build
pnpm test
pnpm lint