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

@oxygenui-design/fhir

v0.1.1

Published

Narrow FHIR R4 type contracts and pure read helpers for healthcare UI. Zero runtime dependencies.

Readme

@oxygenui-design/fhir

FHIR R4 type contracts and pure read helpers for healthcare UI.

Zero runtime dependencies. This package is the data layer behind Oxygen UI — the components are installed as source through the shadcn CLI, and they import their types and read helpers from here.

npm install @oxygenui-design/fhir

What it is

Narrow TypeScript types for the FHIR R4 resources a user interface actually renders, plus the read helpers that get the awkward cases right:

import { resolvePatientName, getInterpretation, resolveAbsentReason } from "@oxygenui-design/fhir";

// Prefers official/usual over nicknames, skips `old` names, undefined when
// there is no name at all — never "Unknown".
resolvePatientName(patient);

// "unknown" unless the payload states an interpretation — never "normal".
getInterpretation(observation);

// The dataAbsentReason taxonomy, grouped by what a reader must do about it.
resolveAbsentReason(observation.dataAbsentReason);

The types are deliberately narrower than the full R4 specification. They cover the elements a component reads, so that a missing element is a compile error rather than a runtime blank.

Design rules

Absence is a value. Helpers return undefined for missing data rather than a placeholder string. A component decides how to render absence; a helper never decides it for them.

Nothing clinical is inferred. An interpretation stated in the payload always wins. Where none is stated, it is derived only by comparing a value against its own stated reference range. An uninterpreted result reads as uninterpreted — never as normal.

Comparators are preserved. <0.01 is not 0.01. Helpers that format quantities keep the comparator attached to the value.

Partial dates stay partial. A FHIR date of 2026 is not 2026-01-01. Precision is carried through so a component can render what was actually recorded.

Scope

This package is types and pure functions only. No React, no rendering, no network, no side effects — it is safe on a server, in a worker, or in a test.

It is not a compliance boundary. Using it does not make an application HIPAA, GDPR, or DPDP compliant, and it is not a medical device or clinical decision support. Access control, audit, data residency, and clinical validation remain yours.

License

MIT — see LICENSE. Built by Zowork.