TypeScript SDK
Install and start using the TypeScript SDK.
Intro
The NexHealth API SDK provides access to the NexHealth API REST APIs.
The NexHealth Synchronizer API gives read and write access to the practice management and EHR systems of dental and medical practices: patients, appointments, availability, providers, insurance, billing and more, through one REST API. v3.0.0 and v20240412 are two names for the same API version; send either in the Nex-Api-Version header.
Installation
The SDK compiles to dist/ before it can be referenced — run its build script once in the SDK folder, then add it to your project by path:
npm install <path-to-sdk>Quick Start
Create one client and reuse it. Configure its behaviour through ClientOptions.
import { NexHealthApiClient } from "nex-health-api";
const client = new NexHealthApiClient({
authorization: "YOUR_API_KEY",
});Nothing in ClientOptions is required — new NexHealthApiClient() compiles — and each option left out falls back to its default. This API declares one environment, so there is no environment to select and no host to state at the construction site.
From CommonJS
The package ships both dialects from a single entry, so require works with full types. In a TypeScript CommonJS file use the import ... = require(...) form — a plain destructuring require runs fine but gives you any.
import sdk = require("nex-health-api");
const client = new sdk.NexHealthApiClient({
authorization: "YOUR_API_KEY",
});