4.3.178 • Published 9 months ago

@iehr/mock v4.3.178

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

iEHR Mock Library

Provides the MockClient class and a large number of mocked endpoints and resources.

For example:

  • GET fhir/R4/Patient/123 returns Homer Simpson
  • GET fhir/R4/Practitioner/123 returns Dr. Alice Smith
  • GET fhir/R4/Organization/123 returns Test Organization

Installation

Add as a dependency:

npm install @iehr/mock

Note the following peer dependencies:

Usage

Create a new mock client:

const client = new MockClient();

Read a Patient resource:

const patient = await client.readResource('Patient', '123');

MockClient is API compatible with IEHRClient in @iehr/core. Please refer to IEHRClient for full documentation on client capabilities.

About iEHR

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

License

Apache 2.0.

4.3.176

9 months ago

4.3.177

9 months ago

4.3.178

9 months ago

4.3.175

9 months ago

4.3.174

9 months ago

4.3.151

10 months ago

4.3.170

9 months ago

4.3.150

10 months ago

4.3.160

10 months ago

4.3.141

10 months ago

4.3.110

10 months ago

4.3.91

10 months ago

4.3.90

10 months ago

4.3.140

10 months ago

4.3.120

10 months ago

4.3.82

11 months ago

4.3.81

11 months ago

4.3.80

11 months ago

4.3.84

10 months ago

4.3.83

10 months ago

3.2.2

12 months ago

3.2.1

1 year ago

3.1.11

1 year ago

3.2.0

1 year ago

4.3.60

11 months ago

4.3.70

11 months ago

3.1.10

1 year ago

4.3.63

11 months ago

4.3.52

11 months ago

4.3.62

11 months ago

4.3.51

12 months ago

4.3.40

12 months ago

4.3.61

11 months ago

4.3.50

12 months ago

3.1.3

1 year ago

3.1.1

1 year ago

3.0.8

1 year ago

3.0.7

1 year ago

3.0.4

1 year ago