The clinic asks for a button that says “Patient arrived.” It sounds like a small screen. Making it work means finding the right appointment, checking which location it belongs to, verifying who can check the patient in, and reflecting the change on the waiting list. Then you have to test what happens when the system takes too long to respond or two people work on the same record.
That’s where healthcare software gets expensive. Even a small feature takes several layers of work before it reaches the front desk. Start a second project and much of that work comes back.
Esus Developer Kit changes where you start. The CLI sets up the integration in your project. The server SDK connects your code to Esus data and operations. Together they give you a project where you can verify that your first integration works. Both packages are available under the MIT license for JavaScript and TypeScript. Explore the Developer Kit
Two ways to try it
npx @esushealth/cli init
- Try the HTML demo without credentials. Choose static HTML in a new directory and open the demo the CLI generates. It runs with fictional data and works without an Esus account.
- Connect your test organization. Choose an integration template, select the resources you need, and configure your staging credential. You can verify the connection to your organization and check which operations the credential allows.
Your first connection has a clear path
In the CLI, choose the pieces your first integration needs. For an internal schedule, choose the appointment resource, a server API key, and a staging organization with fictional data. The wizard previews the files it will touch and installs dependencies once you confirm. If you already have an application, you can integrate the kit into that project or add the SDK directly to your server.
In Next.js you get an interactive workspace where you can check the connection, inspect the credential’s permissions, and try searches, history, and writes according to the access available. You can make sure you’re connected to the right organization before spending time on the screen. For Astro, SvelteKit, and Node.js, the starting point is a guide and a runnable server example. What the CLI generates for each project
Access follows your product’s workflow. An internal app can use an API key on the server and apply its own access rules. A delegated integration can use SMART on FHIR and work within the scope it received at launch. For apps with user accounts managed in Esus, the SDK offers an experimental user session client. How to choose an access method
From showing an appointment to running the front desk
With the server client configured, here’s how you ask for confirmed appointments:
const { resources: appointments } = await esus.fhir.search("Appointment", {
status: "booked",
_count: 5,
})
The SDK knows the filters and response type for FHIR R4’s Appointment resource, part of the standard Esus uses to represent clinical resources. Your code receives typed appointment records. If a request fails, the error preserves the HTTP status and the FHIR details when available. That gives the front desk a way to tell an empty schedule from a failed request that left part of the picture unknown.
Then you can add the check-in button. The same server client has operations to register an arrival and view the queue for a location. Your app decides who can check a patient in, and the API key needs the corresponding permission. As the interface adds a resource or an operation, you keep working with the same client and SDK contracts. SDK operations · Queue operations and permissions
What happens when two clinicians edit the same record
Two clinicians open the same blood pressure observation. One corrects the recorded value and saves it. The other corrects the measurement time in the version they still have open. The second write sends the ETag from the original read, which identifies that version of the record. Esus detects that there’s a newer version and responds with HTTP 412. The app can reload the observation and ask the second clinician to review their edit before saving again. The corrected value stays intact. How to save with version checks
Work your team can reuse
If the product needs attachments or incoming events from another app, the SDK already includes file operations and webhook signature verification. In the Next.js Quickstart, the generated hooks refresh the relevant queries after a successful write. Each tool handles concrete work your team can reuse for the next workflow.
The next step we want to explore
Imagine starting with this request: “I want a front-desk schedule and a waiting list for each location. Receptionists should only see their own location.”
A project generation platform built on the Developer Kit could ask a few questions about users, resources, and permissions, then give your team a project it can open, test, and edit. The CLI could set up the project from reproducible templates. The SDK would connect it to Esus through the contracts already in place. AI could help turn the description into screens and test cases, such as checking that a receptionist from another location is denied access. The team would review the application using fictional data before using it with real records.
That platform is a direction we’re exploring. The CLI and SDK are already available. Tell us what you want to build.