1.0.0 • Published 3 years ago
@antsa/mock v1.0.0
Antsa Mock Library
Provides the MockClient class and a large number of mocked endpoints and resources.
For example:
GET fhir/R4/Patient/123returns Homer SimpsonGET fhir/R4/Practitioner/123returns Dr. Alice SmithGET fhir/R4/Organization/123returns Test Organization
Installation
Add as a dependency:
npm install @antsa/mockNote 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 AntsaClient in @antsa/core. Please refer to AntsaClient for full documentation on client capabilities.
About Antsa
Antsa is a healthcare platform that helps you quickly develop high-quality compliant applications. Antsa includes a FHIR server, React component library, and developer app.
License
Apache 2.0. Copyright © Antsa 2023
1.0.0
3 years ago