@medplum/fhirpath
TypeScript icon, indicating that this package has built-in type declarations

0.9.6 • Public • Published

Medplum FHIRPath Library

The Medplum FHIRPath Library is a pure TypeScript library for evaluating FHIRPath expressions.

Installation

Add as a dependency:

npm install @medplum/fhirpath

Basic Usage

import { Patient } from '@medplum/fhirtypes';
import { evalFhirPath } from '@medplum/fhirpath';

const patient: Patient = {
  resourceType: 'Patient',
  name: [
    {
      given: ['John'],
      family: 'Doe',
    },
  ],
  birthDate: '1980-01-01',
};

console.log(evalFhirPath('birthDate', patient));

About Medplum

Medplum is a healthcare platform that helps you quickly develop high-quality compliant applications. Medplum includes a FHIR server, React component library, and developer app.

License

Apache 2.0. Copyright © Medplum 2022

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.9.6
    6
    • latest

Version History

Package Sidebar

Install

npm i @medplum/fhirpath

Weekly Downloads

6

Version

0.9.6

License

Apache-2.0

Unpacked Size

903 kB

Total Files

17

Last publish

Collaborators

  • rahul1
  • reshmakh
  • codyebberson