open-index/open-npm huggingface dataset:
npm package: @fhg-test/core
Description: Domain Entity
Author: Phat Pham
Latest version: 0.3.0

<div align="center">
  <h1>core</h1>
  <p>Domain Entity</p>

  <div>
    <a href="https://github.com/fhg-test/core/commits" aria-label="Commitizen Friendly">
      <img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square">
    </a>
    <a href="https://github.com/fhg-test/core" aria-label="Prettier Code Style">
      <img src="https://img.shields.io/badge/code_style-prettier-brightgreen?style=flat-square">
    </a>
    <a href="https://github.com/fhg-test/core/actions" aria-label="Lint Status">
      <img src="https://img.shields.io/github/workflow/status/fhg-test/core/lint-source?style=flat-square&label=lint">
    </a>
    <a href="https://github.com/fhg-test/core/actions" aria-label="Build Status">
      <img src="https://img.shields.io/github/workflow/status/fhg-test/core/build-source?style=flat-square">
    </a>
    <a href="https://david-dm.org/fhg-test/core" aria-label="Dependencies Status">
      <img src="https://img.shields.io/david/fhg-test/core?style=flat-square">
    </a>
    <a href="https://www.npmjs.com/package/@fhg-test/core" aria-label="NPM Version">
      <img src="https://img.shields.io/npm/v/@fhg-test/core?color=brightgreen&style=flat-square">
    </a>
    <a href="https://www.npmjs.com/package/@fhg-test/core" aria-label="NPM Downloads">
      <img src="https://img.shields.io/npm/dm/@fhg-test/core?style=flat-square">
    </a>
    <a href="https://github.com/fhg-test/core/blob/master/LICENSE" aria-label="MIT License">
      <img src="https://img.shields.io/github/license/fhg-test/core?color=brightgreen&style=flat-square">
    </a>
  </div>
</div>

## Installation

Use the package manager to install @fhg-test/core

```bash
yarn add @fhg-test/core
```

## Usage

```javascript
import { Booking } from '@fhg-test/core';
```

## Authors

[Phat Pham](https://github.com/phatpham9)

## License

[MIT](https://github.com/fhg-test/core/blob/master/LICENSE)
npm package: @fhg-test/rest
Description: API Client
Author: Phat Pham
Latest version: 0.5.1

<div align="center">
  <h1>rest</h1>
  <p>API Client</p>

  <div>
    <a href="https://github.com/fhg-test/rest/commits" aria-label="Commitizen Friendly">
      <img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square">
    </a>
    <a href="https://github.com/fhg-test/rest" aria-label="Prettier Code Style">
      <img src="https://img.shields.io/badge/code_style-prettier-brightgreen?style=flat-square">
    </a>
    <a href="https://github.com/fhg-test/rest/actions" aria-label="Lint Status">
      <img src="https://img.shields.io/github/workflow/status/fhg-test/rest/lint-source?style=flat-square&label=lint">
    </a>
    <a href="https://github.com/fhg-test/rest/actions" aria-label="Build Status">
      <img src="https://img.shields.io/github/workflow/status/fhg-test/rest/build-source?style=flat-square">
    </a>
    <a href="https://david-dm.org/fhg-test/rest" aria-label="Dependencies Status">
      <img src="https://img.shields.io/david/fhg-test/rest?style=flat-square">
    </a>
    <a href="https://www.npmjs.com/package/@fhg-test/rest" aria-label="NPM Version">
      <img src="https://img.shields.io/npm/v/@fhg-test/rest?color=brightgreen&style=flat-square">
    </a>
    <a href="https://www.npmjs.com/package/@fhg-test/rest" aria-label="NPM Downloads">
      <img src="https://img.shields.io/npm/dm/@fhg-test/rest?style=flat-square">
    </a>
    <a href="https://github.com/fhg-test/rest/blob/master/LICENSE" aria-label="MIT License">
      <img src="https://img.shields.io/github/license/fhg-test/rest?color=brightgreen&style=flat-square">
    </a>
  </div>
</div>

## Installation

Use the package manager to install @fhg-test/rest

```bash
yarn add @fhg-test/rest
```

## Usage

```javascript
// initialize API Client
import rest from '@fhg-test/rest';
rest.init('http://localhost:9000/api');

// make a request
import * as rest from '@fhg-test/rest';
(async () => {
  const booking = await rest.bookings.get('123');
})();
```

## Authors

[Phat Pham](https://github.com/phatpham9)

## License

[MIT](https://github.com/fhg-test/rest/blob/master/LICENSE)
npm package: @fhir-toolkit/cli
Description: CLI tool for FHIR validation and resource generation
Author: Roberto Araneda
Latest version: 0.1.8

# @fhir-toolkit/cli

Command-line interface for FHIR toolkit operations.

## Installation

```bash
npm install -g @fhir-toolkit/cli
```

## Usage

```bash
# Validate a FHIR resource
fhir-toolkit validate --version R4 patient.json

# Validate with a specific profile
fhir-toolkit validate --version R4 --profile http://example.org/Profile patient.json

# Validate all JSON files in a directory
fhir-toolkit validate --version R4 ./resources/*.json
```

## Commands

### validate

Validate FHIR resources against the specification or a profile.

```bash
fhir-toolkit validate [options] <files...>

Options:
  --version, -v   FHIR version (R4, R4B, R5)
  --profile, -p   Profile URL to validate against
  --output, -o    Output format (json, text)
```

## Related Packages

- [@fhir-toolkit/yafv](https://www.npmjs.com/package/@fhir-toolkit/yafv) - FHIR validator (used internally)

## License

MIT
npm package: @fhir-toolkit/r4-models
Description: FHIR R4 models and builders for TypeScript
Author: Roberto Araneda
Latest version: 2.0.0

# @fhir-toolkit/r4-models

Immutable models and fluent builders for FHIR R4 (4.0.1) resources.

## Installation

```bash
npm install @fhir-toolkit/r4-models
```

## Usage

### Builders

```typescript
import { PatientBuilder, ObservationBuilder } from '@fhir-toolkit/r4-models';

const patient = new PatientBuilder()
  .setId('123')
  .addName({ given: ['John'], family: 'Doe' })
  .setGender('male')
  .setBirthDate('1990-01-01')
  .build();

const observation = new ObservationBuilder()
  .setStatus('final')
  .setCode({
    coding: [{ system: 'http://loinc.org', code: '8867-4', display: 'Heart rate' }]
  })
  .setValue('Quantity', { value: 72, unit: 'beats/min' })
  .build();
```

### Models

```typescript
import { Patient, Observation } from '@fhir-toolkit/r4-models';

// Create from JSON
const patient = new Patient({
  resourceType: 'Patient',
  id: '123',
  name: [{ given: ['John'], family: 'Doe' }]
});

// Immutable updates
const updated = patient.clone({ gender: 'male' });

// Serialize
const json = patient.toJSON();
```

### Type Guards

```typescript
import { isPatient, isObservation } from '@fhir-toolkit/r4-models';

if (isPatient(resource)) {
  console.log(resource.name);
}
```

## Features

- Fluent builder pattern for all resources
- Immutable model classes with `clone()` and `toJSON()`
- Choice types support (`value[x]`)
- Type guards for runtime type checking
- Full TypeScript support

## Related Packages

- [@fhir-toolkit/r4-types](https://www.npmjs.com/package/@fhir-toolkit/r4-types) - Type definitions
- [@fhir-toolkit/r4-specs](https://www.npmjs.com/package/@fhir-toolkit/r4-specs) - StructureDefinitions for validation
- [@fhir-toolkit/yafv](https://www.npmjs.com/package/@fhir-toolkit/yafv) - FHIR validator

## License

MIT
npm package: @fhir-toolkit/r4-types
Description: FHIR R4 TypeScript type definitions and valuesets
Author: Roberto Araneda
Latest version: 0.1.1

# @fhir-toolkit/r4-types

TypeScript type definitions for FHIR R4 (4.0.1) resources and data types.

## Installation

```bash
npm install @fhir-toolkit/r4-types
```

## Usage

```typescript
import type { Patient, Observation, Bundle } from '@fhir-toolkit/r4-types';

const patient: Patient = {
  resourceType: 'Patient',
  id: '123',
  name: [{ given: ['John'], family: 'Doe' }],
  gender: 'male',
  birthDate: '1990-01-01'
};

const observation: Observation = {
  resourceType: 'Observation',
  status: 'final',
  code: {
    coding: [{ system: 'http://loinc.org', code: '8867-4' }]
  }
};
```

## Features

- Complete type definitions for all FHIR R4 resources
- All data types (primitives, complex types, backbone elements)
- Choice types support (`value[x]`)
- Strict TypeScript typing with proper optionality

## Related Packages

- [@fhir-toolkit/r4-models](https://www.npmjs.com/package/@fhir-toolkit/r4-models) - Models and builders
- [@fhir-toolkit/r4-specs](https://www.npmjs.com/package/@fhir-toolkit/r4-specs) - StructureDefinitions for validation
- [@fhir-toolkit/yafv](https://www.npmjs.com/package/@fhir-toolkit/yafv) - FHIR validator

## License

MIT
npm package: @fhir-toolkit/r4b-models
Description: FHIR R4B models and builders for TypeScript
Author: Roberto Araneda
Latest version: 2.0.0

# @fhir-toolkit/r4b-models

Immutable models and fluent builders for FHIR R4B (4.3.0) resources.

## Installation

```bash
npm install @fhir-toolkit/r4b-models
```

## Usage

### Builders

```typescript
import { PatientBuilder, ObservationBuilder } from '@fhir-toolkit/r4b-models';

const patient = new PatientBuilder()
  .setId('123')
  .addName({ given: ['John'], family: 'Doe' })
  .setGender('male')
  .setBirthDate('1990-01-01')
  .build();
```

### Models

```typescript
import { Patient } from '@fhir-toolkit/r4b-models';

const patient = new Patient({
  resourceType: 'Patient',
  id: '123',
  name: [{ given: ['John'], family: 'Doe' }]
});

// Immutable updates
const updated = patient.clone({ gender: 'male' });
```

### Type Guards

```typescript
import { isPatient } from '@fhir-toolkit/r4b-models';

if (isPatient(resource)) {
  console.log(resource.name);
}
```

## Features

- Fluent builder pattern for all resources
- Immutable model classes with `clone()` and `toJSON()`
- Choice types support (`value[x]`)
- Type guards for runtime type checking

## Related Packages

- [@fhir-toolkit/r4b-types](https://www.npmjs.com/package/@fhir-toolkit/r4b-types) - Type definitions
- [@fhir-toolkit/r4b-specs](https://www.npmjs.com/package/@fhir-toolkit/r4b-specs) - StructureDefinitions for validation
- [@fhir-toolkit/yafv](https://www.npmjs.com/package/@fhir-toolkit/yafv) - FHIR validator

## License

MIT
npm package: @fhir-toolkit/r4b-types
Description: FHIR R4B TypeScript type definitions and valuesets
Author: Roberto Araneda
Latest version: 0.1.1

# @fhir-toolkit/r4b-types

TypeScript type definitions for FHIR R4B (4.3.0) resources and data types.

## Installation

```bash
npm install @fhir-toolkit/r4b-types
```

## Usage

```typescript
import type { Patient, Observation, Bundle } from '@fhir-toolkit/r4b-types';

const patient: Patient = {
  resourceType: 'Patient',
  id: '123',
  name: [{ given: ['John'], family: 'Doe' }],
  gender: 'male',
  birthDate: '1990-01-01'
};
```

## Features

- Complete type definitions for all FHIR R4B resources
- All data types (primitives, complex types, backbone elements)
- Choice types support (`value[x]`)
- Strict TypeScript typing with proper optionality

## Related Packages

- [@fhir-toolkit/r4b-models](https://www.npmjs.com/package/@fhir-toolkit/r4b-models) - Models and builders
- [@fhir-toolkit/r4b-specs](https://www.npmjs.com/package/@fhir-toolkit/r4b-specs) - StructureDefinitions for validation
- [@fhir-toolkit/yafv](https://www.npmjs.com/package/@fhir-toolkit/yafv) - FHIR validator

## License

MIT
npm package: @fhir-toolkit/r5-models
Description: FHIR R5 models and builders for TypeScript
Author: Roberto Araneda
Latest version: 2.0.0

# @fhir-toolkit/r5-models

Immutable models and fluent builders for FHIR R5 (5.0.0) resources.

## Installation

```bash
npm install @fhir-toolkit/r5-models
```

## Usage

### Builders

```typescript
import { PatientBuilder, ObservationBuilder, ServiceRequestBuilder } from '@fhir-toolkit/r5-models';

const patient = new PatientBuilder()
  .setId('123')
  .addName({ given: ['John'], family: 'Doe' })
  .setGender('male')
  .setBirthDate('1990-01-01')
  .build();

const serviceRequest = new ServiceRequestBuilder()
  .setStatus('active')
  .setIntent('order')
  .setSubject({ reference: 'Patient/123' })
  .build();
```

### Models

```typescript
import { Patient } from '@fhir-toolkit/r5-models';

const patient = new Patient({
  resourceType: 'Patient',
  id: '123',
  name: [{ given: ['John'], family: 'Doe' }]
});

// Immutable updates
const updated = patient.clone({ gender: 'male' });
```

### Type Guards

```typescript
import { isPatient, isServiceRequest } from '@fhir-toolkit/r5-models';

if (isPatient(resource)) {
  console.log(resource.name);
}
```

## R5 Specific Features

Includes builders and models for R5-specific resources:
- `ActorDefinition`
- `Requirements`
- `SubscriptionTopic`
- Enhanced `Subscription`

## Features

- Fluent builder pattern for all resources
- Immutable model classes with `clone()` and `toJSON()`
- Choice types support (`value[x]`)
- Type guards for runtime type checking

## Related Packages

- [@fhir-toolkit/r5-types](https://www.npmjs.com/package/@fhir-toolkit/r5-types) - Type definitions
- [@fhir-toolkit/r5-specs](https://www.npmjs.com/package/@fhir-toolkit/r5-specs) - StructureDefinitions for validation
- [@fhir-toolkit/yafv](https://www.npmjs.com/package/@fhir-toolkit/yafv) - FHIR validator

## License

MIT
npm package: @fhir-toolkit/r5-specs
Description: FHIR R5 StructureDefinitions, ValueSets, and CodeSystems for validation
Author: Roberto Araneda
Latest version: 0.1.0

# @fhir-toolkit/r5-specs

FHIR R5 (5.0.0) StructureDefinitions, ValueSets, and CodeSystems for validation.

## Installation

```bash
npm install @fhir-toolkit/r5-specs
```

## Usage

```typescript
import { specsPath, FHIR_VERSION } from '@fhir-toolkit/r5-specs';

console.log(FHIR_VERSION);  // 'R5'
console.log(specsPath);     // Path to specs directory
```

### With yafv validator

```typescript
import { FhirValidator } from '@fhir-toolkit/yafv';
import { specsPath } from '@fhir-toolkit/r5-specs';

const validator = new FhirValidator({
  fhirVersion: 'R5',
  specsPath: specsPath
});

const result = await validator.validate(patient);
```

## Contents

- **StructureDefinitions**: All R5 resource and datatype definitions
- **ValueSets**: Standard FHIR value sets
- **CodeSystems**: Standard FHIR code systems

## Related Packages

- [@fhir-toolkit/r5-types](https://www.npmjs.com/package/@fhir-toolkit/r5-types) - Type definitions
- [@fhir-toolkit/r5-models](https://www.npmjs.com/package/@fhir-toolkit/r5-models) - Models and builders
- [@fhir-toolkit/yafv](https://www.npmjs.com/package/@fhir-toolkit/yafv) - FHIR validator

## License

MIT
npm package: @fhir-toolkit/r5-types
Description: FHIR R5 TypeScript type definitions and valuesets
Author: Roberto Araneda
Latest version: 0.1.1

# @fhir-toolkit/r5-types

TypeScript type definitions for FHIR R5 (5.0.0) resources and data types.

## Installation

```bash
npm install @fhir-toolkit/r5-types
```

## Usage

```typescript
import type { Patient, Observation, Bundle } from '@fhir-toolkit/r5-types';

const patient: Patient = {
  resourceType: 'Patient',
  id: '123',
  name: [{ given: ['John'], family: 'Doe' }],
  gender: 'male',
  birthDate: '1990-01-01'
};
```

## R5 Specific Features

FHIR R5 introduces several new features:

- New resources (e.g., `ActorDefinition`, `Requirements`, `SubscriptionTopic`)
- Enhanced `Subscription` resource
- Improved `CapabilityStatement`
- New data types

## Features

- Complete type definitions for all FHIR R5 resources
- All data types (primitives, complex types, backbone elements)
- Choice types support (`value[x]`)
- Strict TypeScript typing with proper optionality

## Related Packages

- [@fhir-toolkit/r5-models](https://www.npmjs.com/package/@fhir-toolkit/r5-models) - Models and builders
- [@fhir-toolkit/r5-specs](https://www.npmjs.com/package/@fhir-toolkit/r5-specs) - StructureDefinitions for validation
- [@fhir-toolkit/yafv](https://www.npmjs.com/package/@fhir-toolkit/yafv) - FHIR validator

## License

MIT
npm package: @fhir-toolkit/yafv
Description: Yet Another FHIR Validator - FHIR validator with FHIRPath, terminology, and profile support
Author: Roberto Araneda
Latest version: 2.0.0

# @fhir-toolkit/yafv

Yet Another FHIR Validator - A comprehensive FHIR validator with FHIRPath, terminology, and profile support.

## Installation

```bash
npm install @fhir-toolkit/yafv

# Install specs for your FHIR version (at least one required)
npm install @fhir-toolkit/r4-specs   # For R4
npm install @fhir-toolkit/r4b-specs  # For R4B
npm install @fhir-toolkit/r5-specs   # For R5
```

## Usage

### Basic Validation

```typescript
import { FhirValidator } from '@fhir-toolkit/yafv';
import { specsPath } from '@fhir-toolkit/r4-specs';

const validator = new FhirValidator({
  fhirVersion: 'R4',
  specsPath: specsPath
});

const patient = {
  resourceType: 'Patient',
  id: '123',
  name: [{ given: ['John'], family: 'Doe' }]
};

const result = await validator.validate(patient);

if (result.valid) {
  console.log('Resource is valid!');
} else {
  console.log('Validation errors:', result.issues);
}
```

### Profile Validation

```typescript
const result = await validator.validate(patient, {
  profile: 'http://hl7.org/fhir/StructureDefinition/Patient'
});
```

### With Implementation Guide

```typescript
const validator = new FhirValidator({
  fhirVersion: 'R4',
  specsPath: specsPath,
  implementationGuides: ['/path/to/ig/package']
});
```

## CLI Usage

```bash
# Validate a file
npx fhir-validate --version R4 patient.json

# Validate against a profile
npx fhir-validate --version R4 --profile http://example.org/Profile patient.json

# Validate multiple files
npx fhir-validate --version R4 *.json
```

## Features

- Multi-version support (R4, R4B, R5)
- FHIRPath constraint evaluation
- Terminology validation (ValueSets, CodeSystems)
- Profile/StructureDefinition validation
- Slicing validation
- Extension validation
- Reference validation
- Implementation Guide support
- CLI tool included

## Validation Output

```typescript
interface ValidationResult {
  valid: boolean;
  issues: OperationOutcomeIssue[];
}
```

Each issue contains:
- `severity`: `error` | `warning` | `information`
- `code`: Issue type code
- `diagnostics`: Human-readable description
- `expression`: FHIRPath to the element

## Related Packages

- [@fhir-toolkit/r4-specs](https://www.npmjs.com/package/@fhir-toolkit/r4-specs) - R4 specifications
- [@fhir-toolkit/r4b-specs](https://www.npmjs.com/package/@fhir-toolkit/r4b-specs) - R4B specifications
- [@fhir-toolkit/r5-specs](https://www.npmjs.com/package/@fhir-toolkit/r5-specs) - R5 specifications

## License

MIT
npm package: @fhir-typescript/r2-core
Description: A FHIR TypeScript SDK
Author: Gino Canessa
Latest version: 0.0.12-beta.18

# fhir-typescript r2-core

This project is part of a set of libraries to work with the HL7 FHIR standard in TypeScript.

This project contains the core classes and definitions to work with FHIR DSTU2.

## Docmunetation

### Project Goals

Generally, this project aims to improve the Developer Experience of working with FHIR in TypeScript and JavaScript.

* A generic FHIR SDK that operates at runtime
* Separation of concerns
  * Repeated ‘boiler-plate’ code
  * Basic (non-terminology) validation
  * Utility functions
  * Take care of the "tricky spots"

### Development Status

Please note that we have not yet achieved a '1.0' milestone.

## Usage

For information on usage, please see the examples in [GitHub](https://github.com/fhir-typescript/fhir-typescript).
npm package: @fhir-typescript/r3-core
Description: A FHIR TypeScript SDK
Author: Gino Canessa
Latest version: 0.0.12-beta.18

# fhir-typescript r3-core

This project is part of a set of libraries to work with the HL7 FHIR standard in TypeScript.

This project contains the core classes and definitions to work with FHIR R4B.

## Docmunetation

### Project Goals

Generally, this project aims to improve the Developer Experience of working with FHIR in TypeScript and JavaScript.

* A generic FHIR SDK that operates at runtime
* Separation of concerns
  * Repeated ‘boiler-plate’ code
  * Basic (non-terminology) validation
  * Utility functions
  * Take care of the "tricky spots"

### Development Status

Please note that we have not yet achieved a '1.0' milestone.

## Usage

For information on usage, please see the examples in [GitHub](https://github.com/fhir-typescript/fhir-typescript).
npm package: @fhir-typescript/r4-core
Description: A FHIR TypeScript SDK
Author: Gino Canessa
Latest version: 0.0.12-beta.18

# fhir-typescript r4-core

This project is part of a set of libraries to work with the HL7 FHIR standard in TypeScript.

This project contains the core classes and definitions to work with FHIR R4.

## Docmunetation

### Project Goals

Generally, this project aims to improve the Developer Experience of working with FHIR in TypeScript and JavaScript.

* A generic FHIR SDK that operates at runtime
* Separation of concerns
  * Repeated ‘boiler-plate’ code
  * Basic (non-terminology) validation
  * Utility functions
  * Take care of the "tricky spots"

### Development Status

Please note that we have not yet achieved a '1.0' milestone.

## Usage

For information on usage, please see the examples in [GitHub](https://github.com/fhir-typescript/fhir-typescript).
npm package: @fhir-typescript/r4b-core
Description: A FHIR TypeScript SDK
Author: Gino Canessa
Latest version: 0.0.12-beta.18

# fhir-typescript r4b-core

This project is part of a set of libraries to work with the HL7 FHIR standard in TypeScript.

This project contains the core classes and definitions to work with FHIR R4B.

## Docmunetation

### Project Goals

Generally, this project aims to improve the Developer Experience of working with FHIR in TypeScript and JavaScript.

* A generic FHIR SDK that operates at runtime
* Separation of concerns
  * Repeated ‘boiler-plate’ code
  * Basic (non-terminology) validation
  * Utility functions
  * Take care of the "tricky spots"

### Development Status

Please note that we have not yet achieved a '1.0' milestone.

## Usage

For information on usage, please see the examples in [GitHub](https://github.com/fhir-typescript/fhir-typescript).