@claudebernard/fhir-prescription-mocks
v1.2.6
Published
FHIR R5 mock data for prescription control — shared test fixtures
Maintainers
Keywords
Readme
@claudebernard/fhir-prescription-mocks
FHIR R5 mock bundles for prescription control — ready-to-use typed test fixtures for patient and prescription scenarios.
Installation
npm install --save-dev @claudebernard/fhir-prescription-mocksUsage
All exports are typed as Bundle from fhir/r5.
import {
patientComplete,
prescriptionComplete,
} from "@claudebernard/fhir-prescription-mocks";
// patientComplete is a Bundle — use it directly in your tests
expect(myValidator.validate(patientComplete)).toBe(true);Available mocks
Patient bundles
| Export | Description |
|---|---|
| patientMinimal | Minimal patient with required fields only |
| patientComplete | Fully populated patient |
| patientPediatric | Pediatric patient |
| patientMultipleConditions | Patient with several active conditions |
| patientRenalCreatinineClearance | Renal patient — creatinine clearance observation |
| patientRenalGfrAbsolute | Renal patient — absolute GFR observation |
| patientRenalGfrNormalized | Renal patient — normalized GFR observation |
Prescription bundles
| Export | Description |
|---|---|
| prescriptionComplete | Complete prescription with multiple medications |
| prescriptionSingleMedication | Prescription with a single medication line |
| prescriptionWithAlternative | Prescription including a therapeutic alternative |
| prescriptionWithDocumentReference | Prescription linked to a document reference |
| prescriptionPosology | Prescription with detailed dosage instructions |
FHIR profile
All bundles conform to FHIR R5 and use French pharmaceutical coding systems (ATC, BCB, CIS, CIP13).
Changelog
1.2.6 (2026-07-09)
Bug Fixes
- try adding the changelog to the npm readme (123efd3)
