@claudebernard/fhir-prescription-mocks 1.2.3 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +51 -0
  2. package/package.json +3 -2
package/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # @claudebernard/fhir-prescription-mocks
2
+
3
+ FHIR R5 mock bundles for prescription control — ready-to-use typed test fixtures for patient and prescription scenarios.
4
+
5
+ ## Installation
6
+
7
+ ```sh
8
+ npm install --save-dev @claudebernard/fhir-prescription-mocks
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ All exports are typed as `Bundle` from `fhir/r5`.
14
+
15
+ ```ts
16
+ import {
17
+ patientComplete,
18
+ prescriptionComplete,
19
+ } from "@claudebernard/fhir-prescription-mocks";
20
+
21
+ // patientComplete is a Bundle — use it directly in your tests
22
+ expect(myValidator.validate(patientComplete)).toBe(true);
23
+ ```
24
+
25
+ ## Available mocks
26
+
27
+ ### Patient bundles
28
+
29
+ | Export | Description |
30
+ |---|---|
31
+ | `patientMinimal` | Minimal patient with required fields only |
32
+ | `patientComplete` | Fully populated patient |
33
+ | `patientPediatric` | Pediatric patient |
34
+ | `patientMultipleConditions` | Patient with several active conditions |
35
+ | `patientRenalCreatinineClearance` | Renal patient — creatinine clearance observation |
36
+ | `patientRenalGfrAbsolute` | Renal patient — absolute GFR observation |
37
+ | `patientRenalGfrNormalized` | Renal patient — normalized GFR observation |
38
+
39
+ ### Prescription bundles
40
+
41
+ | Export | Description |
42
+ |---|---|
43
+ | `prescriptionComplete` | Complete prescription with multiple medications |
44
+ | `prescriptionSingleMedication` | Prescription with a single medication line |
45
+ | `prescriptionWithAlternative` | Prescription including a therapeutic alternative |
46
+ | `prescriptionWithDocumentReference` | Prescription linked to a document reference |
47
+ | `prescriptionPosology` | Prescription with detailed dosage instructions |
48
+
49
+ ## FHIR profile
50
+
51
+ All bundles conform to FHIR R5 and use French pharmaceutical coding systems (ATC, BCB, CIS, CIP13).
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@claudebernard/fhir-prescription-mocks",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
4
4
  "description": "FHIR R5 mock data for prescription control — shared test fixtures",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
8
8
  "files": [
9
- "dist"
9
+ "dist",
10
+ "README.md"
10
11
  ],
11
12
  "publishConfig": {
12
13
  "access": "public"