@claudebernard/fhir-prescription-mocks 1.3.0 → 2.0.1
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.
- package/README.md +26 -0
- package/dist/index.js +27 -76
- package/dist/index.mjs +27 -76
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
FHIR R5 mock bundles for prescription control — ready-to-use typed test fixtures for patient and prescription scenarios.
|
|
4
4
|
|
|
5
|
+
Published from the `fhir-monorepo` repository, whose version this package carries. Versions are
|
|
6
|
+
therefore sparse: a release only reaches npm when the mock data or the package itself changed.
|
|
7
|
+
|
|
5
8
|
## Installation
|
|
6
9
|
|
|
7
10
|
```sh
|
|
@@ -46,12 +49,35 @@ expect(myValidator.validate(patientComplete)).toBe(true);
|
|
|
46
49
|
| `prescriptionWithDocumentReference` | Prescription linked to a document reference |
|
|
47
50
|
| `prescriptionPosology` | Prescription with detailed dosage instructions |
|
|
48
51
|
|
|
52
|
+
Only the exports listed above ship with the package (`files: ["dist", "README.md"]`) — the raw JSON
|
|
53
|
+
of the monorepo's `fhir-mock/data/` is not published. In particular
|
|
54
|
+
`composite-anonymous-context.json` has no export yet, so it is not reachable from npm.
|
|
55
|
+
|
|
49
56
|
## FHIR profile
|
|
50
57
|
|
|
51
58
|
All bundles conform to FHIR R5 and use French pharmaceutical coding systems (ATC, BCB, CIS, CIP13).
|
|
52
59
|
|
|
53
60
|
## Changelog
|
|
54
61
|
|
|
62
|
+
## [1.3.1](https://gitlab.cegedim-sante.com/resip/pim/shared/mocks/fhir/prescription-control/compare/1.3.0...1.3.1) (2026-07-22)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### Bug Fixes
|
|
66
|
+
|
|
67
|
+
* only trigger implementation-guides when data/ actually changes ([374f820](https://gitlab.cegedim-sante.com/resip/pim/shared/mocks/fhir/prescription-control/commit/374f820ddaabdbbc72915f6a1feaa73fc24209b4))
|
|
68
|
+
|
|
69
|
+
# [1.3.0](https://gitlab.cegedim-sante.com/resip/pim/shared/mocks/fhir/prescription-control/compare/1.2.6...1.3.0) (2026-07-22)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Bug Fixes
|
|
73
|
+
|
|
74
|
+
* repair mojibake encoding and use semantic example filenames ([c84b690](https://gitlab.cegedim-sante.com/resip/pim/shared/mocks/fhir/prescription-control/commit/c84b6900861b74cc71189897925c36579d2f0cfe)), closes [#224](https://gitlab.cegedim-sante.com/resip/pim/shared/mocks/fhir/prescription-control/issues/224)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### Features
|
|
78
|
+
|
|
79
|
+
* decompose mock bundles by FHIR resource type ([09ba754](https://gitlab.cegedim-sante.com/resip/pim/shared/mocks/fhir/prescription-control/commit/09ba754bd6705f590ebdf7a572f65ec4daed41b2))
|
|
80
|
+
|
|
55
81
|
|
|
56
82
|
## Changelog
|
|
57
83
|
|
package/dist/index.js
CHANGED
|
@@ -46,23 +46,6 @@ var patient_minimal_default = {
|
|
|
46
46
|
},
|
|
47
47
|
timestamp: "2025-09-02T00:00:00Z",
|
|
48
48
|
entry: [
|
|
49
|
-
{
|
|
50
|
-
fullUrl: "Patient/67fd43d3-7b87-b250-8998-972c307258bd",
|
|
51
|
-
resource: {
|
|
52
|
-
resourceType: "Patient",
|
|
53
|
-
id: "67fd43d3-7b87-b250-8998-972c307258bd",
|
|
54
|
-
gender: "male",
|
|
55
|
-
birthDate: "1958-01-01",
|
|
56
|
-
name: [
|
|
57
|
-
{
|
|
58
|
-
family: "Martin",
|
|
59
|
-
given: [
|
|
60
|
-
"Jean"
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
49
|
{
|
|
67
50
|
fullUrl: "Composition/92d2aac4-731f-1811-ca5d-7c0ef5e26c13",
|
|
68
51
|
resource: {
|
|
@@ -92,6 +75,23 @@ var patient_minimal_default = {
|
|
|
92
75
|
]
|
|
93
76
|
}
|
|
94
77
|
},
|
|
78
|
+
{
|
|
79
|
+
fullUrl: "Patient/67fd43d3-7b87-b250-8998-972c307258bd",
|
|
80
|
+
resource: {
|
|
81
|
+
resourceType: "Patient",
|
|
82
|
+
id: "67fd43d3-7b87-b250-8998-972c307258bd",
|
|
83
|
+
gender: "male",
|
|
84
|
+
birthDate: "1958-01-01",
|
|
85
|
+
name: [
|
|
86
|
+
{
|
|
87
|
+
family: "Martin",
|
|
88
|
+
given: [
|
|
89
|
+
"Jean"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
95
|
{
|
|
96
96
|
fullUrl: "Practitioner/46efd1e1-7005-3855-c87e-15a2f5588c48",
|
|
97
97
|
resource: {
|
|
@@ -360,55 +360,6 @@ var patient_complete_default = {
|
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
},
|
|
363
|
-
{
|
|
364
|
-
fullUrl: "AdverseEvent/6d2c2df3-d1f2-2c29-3fb3-86a45ae5f425",
|
|
365
|
-
resource: {
|
|
366
|
-
resourceType: "AdverseEvent",
|
|
367
|
-
id: "6d2c2df3-d1f2-2c29-3fb3-86a45ae5f425",
|
|
368
|
-
actuality: "actual",
|
|
369
|
-
subject: {
|
|
370
|
-
reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
|
|
371
|
-
},
|
|
372
|
-
status: "unknown",
|
|
373
|
-
code: {
|
|
374
|
-
coding: [
|
|
375
|
-
{
|
|
376
|
-
system: "http://snomed.info/sct",
|
|
377
|
-
code: "271807003",
|
|
378
|
-
display: "Rash"
|
|
379
|
-
}
|
|
380
|
-
],
|
|
381
|
-
text: "\xC9ruption cutan\xE9e"
|
|
382
|
-
},
|
|
383
|
-
suspectEntity: [
|
|
384
|
-
{
|
|
385
|
-
instanceReference: {
|
|
386
|
-
reference: "MedicationRequest/f91e0bdd-3e3d-9b6a-0485-5165f47f66f1"
|
|
387
|
-
},
|
|
388
|
-
causality: {
|
|
389
|
-
assessmentMethod: {
|
|
390
|
-
coding: [
|
|
391
|
-
{
|
|
392
|
-
system: "http://terminology.hl7.org/CodeSystem/adverse-event-causality-assess",
|
|
393
|
-
code: "certain",
|
|
394
|
-
display: "Certain"
|
|
395
|
-
}
|
|
396
|
-
]
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
],
|
|
401
|
-
seriousness: {
|
|
402
|
-
coding: [
|
|
403
|
-
{
|
|
404
|
-
system: "http://terminology.hl7.org/CodeSystem/adverse-event-seriousness",
|
|
405
|
-
code: "non-serious",
|
|
406
|
-
display: "Non-serious"
|
|
407
|
-
}
|
|
408
|
-
]
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
},
|
|
412
363
|
{
|
|
413
364
|
fullUrl: "Observation/8bef031b-fa54-f2fb-a82a-ae0482d66c5e",
|
|
414
365
|
resource: {
|
|
@@ -1022,10 +973,10 @@ var patient_renal_creatinine_clearance_default = {
|
|
|
1022
973
|
}
|
|
1023
974
|
},
|
|
1024
975
|
{
|
|
1025
|
-
fullUrl: "Observation/
|
|
976
|
+
fullUrl: "Observation/31d9f1ce-6907-4368-b5b5-e9026f5426a7",
|
|
1026
977
|
resource: {
|
|
1027
978
|
resourceType: "Observation",
|
|
1028
|
-
id: "
|
|
979
|
+
id: "31d9f1ce-6907-4368-b5b5-e9026f5426a7",
|
|
1029
980
|
status: "final",
|
|
1030
981
|
code: {
|
|
1031
982
|
coding: [
|
|
@@ -1075,10 +1026,10 @@ var patient_renal_gfr_absolute_default = {
|
|
|
1075
1026
|
}
|
|
1076
1027
|
},
|
|
1077
1028
|
{
|
|
1078
|
-
fullUrl: "Observation/
|
|
1029
|
+
fullUrl: "Observation/d3e57524-c063-4f45-929a-ce687e7823df",
|
|
1079
1030
|
resource: {
|
|
1080
1031
|
resourceType: "Observation",
|
|
1081
|
-
id: "
|
|
1032
|
+
id: "d3e57524-c063-4f45-929a-ce687e7823df",
|
|
1082
1033
|
status: "final",
|
|
1083
1034
|
code: {
|
|
1084
1035
|
coding: [
|
|
@@ -1128,10 +1079,10 @@ var patient_renal_gfr_normalized_default = {
|
|
|
1128
1079
|
}
|
|
1129
1080
|
},
|
|
1130
1081
|
{
|
|
1131
|
-
fullUrl: "Observation/
|
|
1082
|
+
fullUrl: "Observation/eed5960c-3903-4eec-a95b-f7dc02170467",
|
|
1132
1083
|
resource: {
|
|
1133
1084
|
resourceType: "Observation",
|
|
1134
|
-
id: "
|
|
1085
|
+
id: "eed5960c-3903-4eec-a95b-f7dc02170467",
|
|
1135
1086
|
status: "final",
|
|
1136
1087
|
code: {
|
|
1137
1088
|
coding: [
|
|
@@ -1155,10 +1106,10 @@ var patient_renal_gfr_normalized_default = {
|
|
|
1155
1106
|
}
|
|
1156
1107
|
},
|
|
1157
1108
|
{
|
|
1158
|
-
fullUrl: "Observation/
|
|
1109
|
+
fullUrl: "Observation/7ee7a1d3-c8f4-45b2-90d6-29a34f2271b3",
|
|
1159
1110
|
resource: {
|
|
1160
1111
|
resourceType: "Observation",
|
|
1161
|
-
id: "
|
|
1112
|
+
id: "7ee7a1d3-c8f4-45b2-90d6-29a34f2271b3",
|
|
1162
1113
|
status: "final",
|
|
1163
1114
|
code: {
|
|
1164
1115
|
coding: [
|
|
@@ -1182,10 +1133,10 @@ var patient_renal_gfr_normalized_default = {
|
|
|
1182
1133
|
}
|
|
1183
1134
|
},
|
|
1184
1135
|
{
|
|
1185
|
-
fullUrl: "Observation/
|
|
1136
|
+
fullUrl: "Observation/be5d8b29-d151-4c0f-bb0e-3641e31c0341",
|
|
1186
1137
|
resource: {
|
|
1187
1138
|
resourceType: "Observation",
|
|
1188
|
-
id: "
|
|
1139
|
+
id: "be5d8b29-d151-4c0f-bb0e-3641e31c0341",
|
|
1189
1140
|
status: "final",
|
|
1190
1141
|
code: {
|
|
1191
1142
|
coding: [
|
package/dist/index.mjs
CHANGED
|
@@ -9,23 +9,6 @@ var patient_minimal_default = {
|
|
|
9
9
|
},
|
|
10
10
|
timestamp: "2025-09-02T00:00:00Z",
|
|
11
11
|
entry: [
|
|
12
|
-
{
|
|
13
|
-
fullUrl: "Patient/67fd43d3-7b87-b250-8998-972c307258bd",
|
|
14
|
-
resource: {
|
|
15
|
-
resourceType: "Patient",
|
|
16
|
-
id: "67fd43d3-7b87-b250-8998-972c307258bd",
|
|
17
|
-
gender: "male",
|
|
18
|
-
birthDate: "1958-01-01",
|
|
19
|
-
name: [
|
|
20
|
-
{
|
|
21
|
-
family: "Martin",
|
|
22
|
-
given: [
|
|
23
|
-
"Jean"
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
12
|
{
|
|
30
13
|
fullUrl: "Composition/92d2aac4-731f-1811-ca5d-7c0ef5e26c13",
|
|
31
14
|
resource: {
|
|
@@ -55,6 +38,23 @@ var patient_minimal_default = {
|
|
|
55
38
|
]
|
|
56
39
|
}
|
|
57
40
|
},
|
|
41
|
+
{
|
|
42
|
+
fullUrl: "Patient/67fd43d3-7b87-b250-8998-972c307258bd",
|
|
43
|
+
resource: {
|
|
44
|
+
resourceType: "Patient",
|
|
45
|
+
id: "67fd43d3-7b87-b250-8998-972c307258bd",
|
|
46
|
+
gender: "male",
|
|
47
|
+
birthDate: "1958-01-01",
|
|
48
|
+
name: [
|
|
49
|
+
{
|
|
50
|
+
family: "Martin",
|
|
51
|
+
given: [
|
|
52
|
+
"Jean"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
58
|
{
|
|
59
59
|
fullUrl: "Practitioner/46efd1e1-7005-3855-c87e-15a2f5588c48",
|
|
60
60
|
resource: {
|
|
@@ -323,55 +323,6 @@ var patient_complete_default = {
|
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
},
|
|
326
|
-
{
|
|
327
|
-
fullUrl: "AdverseEvent/6d2c2df3-d1f2-2c29-3fb3-86a45ae5f425",
|
|
328
|
-
resource: {
|
|
329
|
-
resourceType: "AdverseEvent",
|
|
330
|
-
id: "6d2c2df3-d1f2-2c29-3fb3-86a45ae5f425",
|
|
331
|
-
actuality: "actual",
|
|
332
|
-
subject: {
|
|
333
|
-
reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
|
|
334
|
-
},
|
|
335
|
-
status: "unknown",
|
|
336
|
-
code: {
|
|
337
|
-
coding: [
|
|
338
|
-
{
|
|
339
|
-
system: "http://snomed.info/sct",
|
|
340
|
-
code: "271807003",
|
|
341
|
-
display: "Rash"
|
|
342
|
-
}
|
|
343
|
-
],
|
|
344
|
-
text: "\xC9ruption cutan\xE9e"
|
|
345
|
-
},
|
|
346
|
-
suspectEntity: [
|
|
347
|
-
{
|
|
348
|
-
instanceReference: {
|
|
349
|
-
reference: "MedicationRequest/f91e0bdd-3e3d-9b6a-0485-5165f47f66f1"
|
|
350
|
-
},
|
|
351
|
-
causality: {
|
|
352
|
-
assessmentMethod: {
|
|
353
|
-
coding: [
|
|
354
|
-
{
|
|
355
|
-
system: "http://terminology.hl7.org/CodeSystem/adverse-event-causality-assess",
|
|
356
|
-
code: "certain",
|
|
357
|
-
display: "Certain"
|
|
358
|
-
}
|
|
359
|
-
]
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
],
|
|
364
|
-
seriousness: {
|
|
365
|
-
coding: [
|
|
366
|
-
{
|
|
367
|
-
system: "http://terminology.hl7.org/CodeSystem/adverse-event-seriousness",
|
|
368
|
-
code: "non-serious",
|
|
369
|
-
display: "Non-serious"
|
|
370
|
-
}
|
|
371
|
-
]
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
},
|
|
375
326
|
{
|
|
376
327
|
fullUrl: "Observation/8bef031b-fa54-f2fb-a82a-ae0482d66c5e",
|
|
377
328
|
resource: {
|
|
@@ -985,10 +936,10 @@ var patient_renal_creatinine_clearance_default = {
|
|
|
985
936
|
}
|
|
986
937
|
},
|
|
987
938
|
{
|
|
988
|
-
fullUrl: "Observation/
|
|
939
|
+
fullUrl: "Observation/31d9f1ce-6907-4368-b5b5-e9026f5426a7",
|
|
989
940
|
resource: {
|
|
990
941
|
resourceType: "Observation",
|
|
991
|
-
id: "
|
|
942
|
+
id: "31d9f1ce-6907-4368-b5b5-e9026f5426a7",
|
|
992
943
|
status: "final",
|
|
993
944
|
code: {
|
|
994
945
|
coding: [
|
|
@@ -1038,10 +989,10 @@ var patient_renal_gfr_absolute_default = {
|
|
|
1038
989
|
}
|
|
1039
990
|
},
|
|
1040
991
|
{
|
|
1041
|
-
fullUrl: "Observation/
|
|
992
|
+
fullUrl: "Observation/d3e57524-c063-4f45-929a-ce687e7823df",
|
|
1042
993
|
resource: {
|
|
1043
994
|
resourceType: "Observation",
|
|
1044
|
-
id: "
|
|
995
|
+
id: "d3e57524-c063-4f45-929a-ce687e7823df",
|
|
1045
996
|
status: "final",
|
|
1046
997
|
code: {
|
|
1047
998
|
coding: [
|
|
@@ -1091,10 +1042,10 @@ var patient_renal_gfr_normalized_default = {
|
|
|
1091
1042
|
}
|
|
1092
1043
|
},
|
|
1093
1044
|
{
|
|
1094
|
-
fullUrl: "Observation/
|
|
1045
|
+
fullUrl: "Observation/eed5960c-3903-4eec-a95b-f7dc02170467",
|
|
1095
1046
|
resource: {
|
|
1096
1047
|
resourceType: "Observation",
|
|
1097
|
-
id: "
|
|
1048
|
+
id: "eed5960c-3903-4eec-a95b-f7dc02170467",
|
|
1098
1049
|
status: "final",
|
|
1099
1050
|
code: {
|
|
1100
1051
|
coding: [
|
|
@@ -1118,10 +1069,10 @@ var patient_renal_gfr_normalized_default = {
|
|
|
1118
1069
|
}
|
|
1119
1070
|
},
|
|
1120
1071
|
{
|
|
1121
|
-
fullUrl: "Observation/
|
|
1072
|
+
fullUrl: "Observation/7ee7a1d3-c8f4-45b2-90d6-29a34f2271b3",
|
|
1122
1073
|
resource: {
|
|
1123
1074
|
resourceType: "Observation",
|
|
1124
|
-
id: "
|
|
1075
|
+
id: "7ee7a1d3-c8f4-45b2-90d6-29a34f2271b3",
|
|
1125
1076
|
status: "final",
|
|
1126
1077
|
code: {
|
|
1127
1078
|
coding: [
|
|
@@ -1145,10 +1096,10 @@ var patient_renal_gfr_normalized_default = {
|
|
|
1145
1096
|
}
|
|
1146
1097
|
},
|
|
1147
1098
|
{
|
|
1148
|
-
fullUrl: "Observation/
|
|
1099
|
+
fullUrl: "Observation/be5d8b29-d151-4c0f-bb0e-3641e31c0341",
|
|
1149
1100
|
resource: {
|
|
1150
1101
|
resourceType: "Observation",
|
|
1151
|
-
id: "
|
|
1102
|
+
id: "be5d8b29-d151-4c0f-bb0e-3641e31c0341",
|
|
1152
1103
|
status: "final",
|
|
1153
1104
|
code: {
|
|
1154
1105
|
coding: [
|
package/package.json
CHANGED