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

@healthcloudai/hc-dependents-connector

v0.0.3

Published

Healthcheck Dependents connector for authenticated patient dependent persons flows.

Downloads

204

Readme

Healthcheck Dependents Connector

This library provides a client for authenticated patient dependent persons flows in Healthcheck. It is built on top of the shared Healthcheck HTTP and Login connectors.


Features

  1. Retrieve dependent persons for the authenticated patient
  2. Update dependent persons for the authenticated patient
  3. Built on the shared Healthcheck HttpClient and authentication layer

Installation

npm install @healthcloudai/hc-dependents-connector \
@healthcloudai/hc-login-connector \
@healthcloudai/hc-http

Import

import { HCDependentsClient } from "@healthcloudai/hc-dependents-connector";
import { HCLoginClient } from "@healthcloudai/hc-login-connector";
import { FetchClient } from "@healthcloudai/hc-http";

Usage

Configuration

const httpClient = new FetchClient();
const authClient = new HCLoginClient(httpClient);

authClient.configure("demo-tenant", "dev");
await authClient.login("[email protected]", "ExamplePassword123!");

const dependentsClient = new HCDependentsClient(
  httpClient,
  authClient
);

API Key

Use setApiKey(...) to attach an API key header to requests from HCDependentsClient.

const apiKey = process.env.HEALTHCLOUD_API_KEY;

if (!apiKey) {
  throw new Error("HEALTHCLOUD_API_KEY is required.");
}

dependentsClient.setApiKey("x-api-key", apiKey);
  • Header name should be x-api-key.

Methods

The Dependents connector includes two authenticated patient methods:

  1. getDependents()
  2. updateDepentents(dependents)

Dependents methods

getDependents

Returns dependent persons for the authenticated patient.

const dependents = await dependentsClient.getDependents();

API response

Status:

200
{
  "Data": [
    {
      "FirstName": "Jane",
      "LastName": "Doe",
      "BirthDate": "01/01/2015",
      "Relationship": "Child"
    }
  ],
  "IsOK": true,
  "ErrorMessage": null
}

updateDepentents

Updates dependent persons for the authenticated patient.

const updated = await dependentsClient.updateDepentents([
  {
    FirstName: "Jane",
    LastName: "Doe",
    BirthDate: "01/01/2015",
    Relationship: "Child"
  }
]);

Request body

{
  "Data": [
    {
      "FirstName": "Jane",
      "LastName": "Doe",
      "BirthDate": "01/01/2015",
      "Relationship": "Child"
    }
  ]
}

API response

Status:

200
{
  "Data": true,
  "IsOK": true,
  "ErrorMessage": null
}

How It Works

  • HCLoginClient handles tenant configuration, authentication, and authenticated headers.
  • HCDependentsClient uses the authenticated login client for the base API URL and authenticated request headers.
  • If configured through setApiKey(...), HCDependentsClient also includes its configured API key header with Dependents connector requests.
  • getDependents() retrieves dependent persons through the authenticated patient session and does not send a request body.
  • updateDepentents() wraps the provided dependent persons array inside the backend Data request wrapper.

Notes

  • HCLoginClient must be configured and logged in before calling Dependents connector methods.
  • The connector uses the authenticated patient context from the login client.
  • getDependents() returns the backend response containing dependent persons in Data.