Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@medplum/mock
Advanced tools
Provides the MockClient
class and a large number of mocked endpoints and resources.
For example:
GET fhir/R4/Patient/123
returns Homer SimpsonGET fhir/R4/Practitioner/123
returns Dr. Alice SmithGET fhir/R4/Organization/123
returns Test OrganizationAdd as a dependency:
npm install @medplum/mock
Note the following peer dependencies:
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 MedplumClient
in @medplum/core. Please refer to MedplumClient
for full documentation on client capabilities.
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.
Apache 2.0. Copyright © Medplum 2024
FAQs
Medplum Mock Client
The npm package @medplum/mock receives a total of 2,422 weekly downloads. As such, @medplum/mock popularity was classified as popular.
We found that @medplum/mock demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.