
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@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 2025
FAQs
Medplum Mock Client
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 3 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.