@claudebernard/fhir-prescription-mocks 0.1.0

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/dist/index.js ADDED
@@ -0,0 +1,2914 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ patientComplete: () => patientComplete,
24
+ patientMinimal: () => patientMinimal,
25
+ patientMultipleConditions: () => patientMultipleConditions,
26
+ patientPediatric: () => patientPediatric,
27
+ patientRenalCreatinineClearance: () => patientRenalCreatinineClearance,
28
+ patientRenalGfrAbsolute: () => patientRenalGfrAbsolute,
29
+ patientRenalGfrNormalized: () => patientRenalGfrNormalized,
30
+ prescriptionComplete: () => prescriptionComplete,
31
+ prescriptionPosology: () => prescriptionPosology,
32
+ prescriptionSingleMedication: () => prescriptionSingleMedication,
33
+ prescriptionWithAlternative: () => prescriptionWithAlternative,
34
+ prescriptionWithDocumentReference: () => prescriptionWithDocumentReference
35
+ });
36
+ module.exports = __toCommonJS(index_exports);
37
+
38
+ // ../data/patient/patient-minimal.json
39
+ var patient_minimal_default = {
40
+ resourceType: "Bundle",
41
+ id: "67fd43d3-7b87-b250-8998-972c307258bd",
42
+ type: "document",
43
+ identifier: {
44
+ system: "urn:ietf:rfc:3986",
45
+ value: "urn:uuid:67fd43d3-7b87-b250-8998-972c307258bd"
46
+ },
47
+ timestamp: "2025-09-02T00:00:00Z",
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
+ {
67
+ fullUrl: "Composition/92d2aac4-731f-1811-ca5d-7c0ef5e26c13",
68
+ resource: {
69
+ resourceType: "Composition",
70
+ id: "92d2aac4-731f-1811-ca5d-7c0ef5e26c13",
71
+ status: "final",
72
+ type: {
73
+ coding: [
74
+ {
75
+ system: "http://loinc.org",
76
+ code: "34133-9",
77
+ display: "Summary of episode note"
78
+ }
79
+ ]
80
+ },
81
+ subject: [
82
+ {
83
+ reference: "Patient/67fd43d3-7b87-b250-8998-972c307258bd"
84
+ }
85
+ ],
86
+ date: "2025-09-02",
87
+ title: "Patient minimal composition",
88
+ author: [
89
+ {
90
+ reference: "Practitioner/46efd1e1-7005-3855-c87e-15a2f5588c48"
91
+ }
92
+ ]
93
+ }
94
+ },
95
+ {
96
+ fullUrl: "Practitioner/46efd1e1-7005-3855-c87e-15a2f5588c48",
97
+ resource: {
98
+ resourceType: "Practitioner",
99
+ id: "46efd1e1-7005-3855-c87e-15a2f5588c48",
100
+ name: [
101
+ {
102
+ family: "Martin",
103
+ given: [
104
+ "Dr. Pierre"
105
+ ],
106
+ prefix: [
107
+ "Dr"
108
+ ]
109
+ }
110
+ ]
111
+ }
112
+ }
113
+ ]
114
+ };
115
+
116
+ // ../data/patient/patient-complete.json
117
+ var patient_complete_default = {
118
+ resourceType: "Bundle",
119
+ id: "a362bb19-6db4-0149-8854-d0230acbb45d",
120
+ type: "document",
121
+ identifier: {
122
+ system: "urn:ietf:rfc:3986",
123
+ value: "urn:uuid:a362bb19-6db4-0149-8854-d0230acbb45d"
124
+ },
125
+ timestamp: "2025-09-02T00:00:00Z",
126
+ entry: [
127
+ {
128
+ fullUrl: "Composition/f3b6022e-89f1-1e6b-522c-3d0f8954fef3",
129
+ resource: {
130
+ resourceType: "Composition",
131
+ id: "f3b6022e-89f1-1e6b-522c-3d0f8954fef3",
132
+ status: "final",
133
+ type: {
134
+ coding: [
135
+ {
136
+ system: "http://loinc.org",
137
+ code: "34133-9",
138
+ display: "Summary of episode note"
139
+ }
140
+ ]
141
+ },
142
+ subject: [
143
+ {
144
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
145
+ }
146
+ ],
147
+ date: "2025-09-02",
148
+ title: "Patient complete composition",
149
+ author: [
150
+ {
151
+ reference: "Practitioner/46efd1e1-7005-3855-c87e-15a2f5588c48"
152
+ }
153
+ ]
154
+ }
155
+ },
156
+ {
157
+ fullUrl: "Practitioner/46efd1e1-7005-3855-c87e-15a2f5588c48",
158
+ resource: {
159
+ resourceType: "Practitioner",
160
+ id: "46efd1e1-7005-3855-c87e-15a2f5588c48",
161
+ name: [
162
+ {
163
+ family: "Martin",
164
+ given: [
165
+ "Dr. Pierre"
166
+ ],
167
+ prefix: [
168
+ "Dr"
169
+ ]
170
+ }
171
+ ]
172
+ }
173
+ },
174
+ {
175
+ fullUrl: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d",
176
+ resource: {
177
+ resourceType: "Patient",
178
+ id: "a362bb19-6db4-0149-8854-d0230acbb45d",
179
+ gender: "female",
180
+ birthDate: "1984-01-01",
181
+ name: [
182
+ {
183
+ family: "Dupont",
184
+ given: [
185
+ "Marie"
186
+ ]
187
+ }
188
+ ]
189
+ }
190
+ },
191
+ {
192
+ fullUrl: "Observation/a0070f53-a7f7-fe19-124d-340d3ef26c96",
193
+ resource: {
194
+ resourceType: "Observation",
195
+ id: "a0070f53-a7f7-fe19-124d-340d3ef26c96",
196
+ status: "final",
197
+ code: {
198
+ coding: [
199
+ {
200
+ system: "http://loinc.org",
201
+ code: "18185-9",
202
+ display: "Gestational age"
203
+ }
204
+ ],
205
+ text: "\u251C\xE9ge gestationnel"
206
+ },
207
+ subject: {
208
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
209
+ },
210
+ valueQuantity: {
211
+ value: 20,
212
+ unit: "weeks",
213
+ system: "http://unitsofmeasure.org",
214
+ code: "wk"
215
+ }
216
+ }
217
+ },
218
+ {
219
+ fullUrl: "Observation/e9c811bf-830f-35eb-289c-beb6c924f6ea",
220
+ resource: {
221
+ resourceType: "Observation",
222
+ id: "e9c811bf-830f-35eb-289c-beb6c924f6ea",
223
+ status: "final",
224
+ code: {
225
+ coding: [
226
+ {
227
+ system: "http://loinc.org",
228
+ code: "2164-2",
229
+ display: "Creatinine renal clearance in 24 hour Urine and Serum or Plasma"
230
+ }
231
+ ],
232
+ text: "Clairance de la cr\u251C\xAEatinine"
233
+ },
234
+ subject: {
235
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
236
+ },
237
+ valueQuantity: {
238
+ value: 60,
239
+ unit: "mL/min",
240
+ system: "http://unitsofmeasure.org",
241
+ code: "mL/min"
242
+ }
243
+ }
244
+ },
245
+ {
246
+ fullUrl: "Observation/a5403e62-6813-27c3-0605-609b5022a3df",
247
+ resource: {
248
+ resourceType: "Observation",
249
+ id: "a5403e62-6813-27c3-0605-609b5022a3df",
250
+ status: "final",
251
+ code: {
252
+ coding: [
253
+ {
254
+ system: "http://loinc.org",
255
+ code: "48643-1",
256
+ display: "Glomerular filtration rate [Volume Rate/Area] in Serum, Plasma or Blood by Creatinine-based formula (MDRD)/1.73 sq M among black population"
257
+ }
258
+ ],
259
+ text: "DFG"
260
+ },
261
+ subject: {
262
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
263
+ },
264
+ valueQuantity: {
265
+ value: 45,
266
+ unit: "mL/min/1.73.m2",
267
+ system: "http://unitsofmeasure.org",
268
+ code: "mL/min/1.73.m2"
269
+ }
270
+ }
271
+ },
272
+ {
273
+ fullUrl: "Observation/9fe6e5bd-aa03-2a1c-de9e-43fac065b5b1",
274
+ resource: {
275
+ resourceType: "Observation",
276
+ id: "9fe6e5bd-aa03-2a1c-de9e-43fac065b5b1",
277
+ status: "final",
278
+ code: {
279
+ coding: [
280
+ {
281
+ system: "http://loinc.org",
282
+ code: "98152-2",
283
+ display: "Total score [Child-Pugh]"
284
+ }
285
+ ],
286
+ text: "Score total Child-Pugh"
287
+ },
288
+ subject: {
289
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
290
+ },
291
+ valueQuantity: {
292
+ value: 7,
293
+ unit: "score",
294
+ system: "http://unitsofmeasure.org",
295
+ code: "{score}"
296
+ },
297
+ valueCodeableConcept: {
298
+ coding: [
299
+ {
300
+ system: "http://snomed.info/sct",
301
+ code: "60621009",
302
+ display: "Child-Pugh class A"
303
+ }
304
+ ],
305
+ text: "Grade A"
306
+ }
307
+ }
308
+ },
309
+ {
310
+ fullUrl: "Observation/87372207-1a1d-1a83-ed43-fb58bc44ad41",
311
+ resource: {
312
+ resourceType: "Observation",
313
+ id: "87372207-1a1d-1a83-ed43-fb58bc44ad41",
314
+ status: "final",
315
+ code: {
316
+ coding: [
317
+ {
318
+ system: "http://loinc.org",
319
+ code: "29463-7",
320
+ display: "Body weight"
321
+ }
322
+ ],
323
+ text: "Poids corporel"
324
+ },
325
+ subject: {
326
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
327
+ },
328
+ valueQuantity: {
329
+ value: 84,
330
+ unit: "kg",
331
+ system: "http://unitsofmeasure.org",
332
+ code: "kg"
333
+ }
334
+ }
335
+ },
336
+ {
337
+ fullUrl: "Observation/d1043a60-bb4c-4f2c-def9-9f5cb708dff0",
338
+ resource: {
339
+ resourceType: "Observation",
340
+ id: "d1043a60-bb4c-4f2c-def9-9f5cb708dff0",
341
+ status: "final",
342
+ code: {
343
+ coding: [
344
+ {
345
+ system: "http://loinc.org",
346
+ code: "8302-2",
347
+ display: "Body height"
348
+ }
349
+ ],
350
+ text: "Taille corporelle"
351
+ },
352
+ subject: {
353
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
354
+ },
355
+ valueQuantity: {
356
+ value: 170,
357
+ unit: "cm",
358
+ system: "http://unitsofmeasure.org",
359
+ code: "cm"
360
+ }
361
+ }
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: "\u251C\xEBruption cutan\u251C\xAEe"
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
+ {
413
+ fullUrl: "Observation/8bef031b-fa54-f2fb-a82a-ae0482d66c5e",
414
+ resource: {
415
+ resourceType: "Observation",
416
+ id: "8bef031b-fa54-f2fb-a82a-ae0482d66c5e",
417
+ status: "final",
418
+ code: {
419
+ coding: [
420
+ {
421
+ system: "http://loinc.org",
422
+ code: "82810-3",
423
+ display: "Pregnancy status"
424
+ }
425
+ ],
426
+ text: "Statut de grossesse"
427
+ },
428
+ subject: {
429
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
430
+ },
431
+ valueCodeableConcept: {
432
+ coding: [
433
+ {
434
+ system: "http://snomed.info/sct",
435
+ code: "77386006",
436
+ display: "Pregnant"
437
+ }
438
+ ],
439
+ text: "Grossesse"
440
+ }
441
+ }
442
+ },
443
+ {
444
+ fullUrl: "Observation/0aca4ecf-c9b6-77f7-bb99-7b8c136708c6",
445
+ resource: {
446
+ resourceType: "Observation",
447
+ id: "0aca4ecf-c9b6-77f7-bb99-7b8c136708c6",
448
+ status: "final",
449
+ code: {
450
+ coding: [
451
+ {
452
+ system: "http://loinc.org",
453
+ code: "63895-7",
454
+ display: "Breastfeeding status"
455
+ }
456
+ ],
457
+ text: "Statut d'allaitement"
458
+ },
459
+ subject: {
460
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
461
+ },
462
+ valueCodeableConcept: {
463
+ coding: [
464
+ {
465
+ system: "http://snomed.info/sct",
466
+ code: "69840006",
467
+ display: "Breastfeeding"
468
+ }
469
+ ],
470
+ text: "Allaitement"
471
+ }
472
+ }
473
+ },
474
+ {
475
+ fullUrl: "Condition/b0f556be-d7dc-1580-4d22-2b7e0a3c0efc",
476
+ resource: {
477
+ resourceType: "Condition",
478
+ id: "b0f556be-d7dc-1580-4d22-2b7e0a3c0efc",
479
+ clinicalStatus: {
480
+ coding: [
481
+ {
482
+ system: "http://terminology.hl7.org/CodeSystem/condition-clinical",
483
+ code: "active"
484
+ }
485
+ ]
486
+ },
487
+ code: {
488
+ coding: [
489
+ {
490
+ system: "http://snomed.info/sct",
491
+ code: "59927004",
492
+ display: "Hepatic failure"
493
+ }
494
+ ],
495
+ text: "Insuffisance h\u251C\xAEpatique"
496
+ },
497
+ subject: {
498
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
499
+ }
500
+ }
501
+ },
502
+ {
503
+ fullUrl: "Condition/401d6d0f-df8d-b13b-9afd-936e0bf983cd",
504
+ resource: {
505
+ resourceType: "Condition",
506
+ id: "401d6d0f-df8d-b13b-9afd-936e0bf983cd",
507
+ clinicalStatus: {
508
+ coding: [
509
+ {
510
+ system: "http://terminology.hl7.org/CodeSystem/condition-clinical",
511
+ code: "active"
512
+ }
513
+ ]
514
+ },
515
+ code: {
516
+ coding: [
517
+ {
518
+ system: "http://snomed.info/sct",
519
+ code: "723189000",
520
+ display: "Insuffisance r\u251C\xAEnale aig\u251C\u255De"
521
+ }
522
+ ],
523
+ text: "Insuffisance r\u251C\xAEnale aig\u251C\u255De"
524
+ },
525
+ subject: {
526
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
527
+ }
528
+ }
529
+ },
530
+ {
531
+ fullUrl: "Condition/ca3df168-3427-59e3-ccea-c8075d55ac57",
532
+ resource: {
533
+ resourceType: "Condition",
534
+ id: "ca3df168-3427-59e3-ccea-c8075d55ac57",
535
+ clinicalStatus: {
536
+ coding: [
537
+ {
538
+ system: "http://terminology.hl7.org/CodeSystem/condition-clinical",
539
+ code: "active"
540
+ }
541
+ ]
542
+ },
543
+ code: {
544
+ coding: [
545
+ {
546
+ system: "http://snomed.info/sct",
547
+ code: "84114007",
548
+ display: "Insuffisance cardiaque"
549
+ }
550
+ ],
551
+ text: "Insuffisance cardiaque"
552
+ },
553
+ subject: {
554
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
555
+ }
556
+ }
557
+ },
558
+ {
559
+ fullUrl: "AllergyIntolerance/b3821eea-343a-ac4d-7ea8-24c9d404d55b",
560
+ resource: {
561
+ resourceType: "AllergyIntolerance",
562
+ id: "b3821eea-343a-ac4d-7ea8-24c9d404d55b",
563
+ clinicalStatus: {
564
+ coding: [
565
+ {
566
+ system: "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
567
+ code: "active"
568
+ }
569
+ ]
570
+ },
571
+ code: {
572
+ coding: [
573
+ {
574
+ system: "http://snomed.info/sct",
575
+ code: "293584003",
576
+ display: "Allergie au parac\u251C\xAEtamol"
577
+ }
578
+ ],
579
+ text: "Allergie au parac\u251C\xAEtamol"
580
+ },
581
+ patient: {
582
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
583
+ }
584
+ }
585
+ }
586
+ ]
587
+ };
588
+
589
+ // ../data/patient/patient-multiple-conditions.json
590
+ var patient_multiple_conditions_default = {
591
+ resourceType: "Bundle",
592
+ id: "de957ac2-dca9-bd0f-b249-e260b7344c6a",
593
+ type: "collection",
594
+ entry: [
595
+ {
596
+ fullUrl: "Patient/de957ac2-dca9-bd0f-b249-e260b7344c6a",
597
+ resource: {
598
+ resourceType: "Patient",
599
+ id: "de957ac2-dca9-bd0f-b249-e260b7344c6a",
600
+ gender: "female",
601
+ birthDate: "1965-03-15",
602
+ name: [
603
+ {
604
+ family: "Bernard",
605
+ given: [
606
+ "Sophie"
607
+ ]
608
+ }
609
+ ]
610
+ }
611
+ },
612
+ {
613
+ fullUrl: "Condition/3d0b96c6-f589-738b-e270-52eca16d8dc6",
614
+ resource: {
615
+ resourceType: "Condition",
616
+ id: "3d0b96c6-f589-738b-e270-52eca16d8dc6",
617
+ clinicalStatus: {
618
+ coding: [
619
+ {
620
+ system: "http://terminology.hl7.org/CodeSystem/condition-clinical",
621
+ code: "active"
622
+ }
623
+ ]
624
+ },
625
+ code: {
626
+ coding: [
627
+ {
628
+ system: "http://snomed.info/sct",
629
+ code: "77386006",
630
+ display: "Pregnant"
631
+ }
632
+ ],
633
+ text: "Grossesse"
634
+ },
635
+ subject: {
636
+ reference: "Patient/de957ac2-dca9-bd0f-b249-e260b7344c6a"
637
+ }
638
+ }
639
+ },
640
+ {
641
+ fullUrl: "Condition/928898af-0310-29c4-c291-cc93975e7cae",
642
+ resource: {
643
+ resourceType: "Condition",
644
+ id: "928898af-0310-29c4-c291-cc93975e7cae",
645
+ clinicalStatus: {
646
+ coding: [
647
+ {
648
+ system: "http://terminology.hl7.org/CodeSystem/condition-clinical",
649
+ code: "active"
650
+ }
651
+ ]
652
+ },
653
+ code: {
654
+ coding: [
655
+ {
656
+ system: "http://snomed.info/sct",
657
+ code: "69840006",
658
+ display: "Breastfeeding"
659
+ }
660
+ ],
661
+ text: "Allaitement"
662
+ },
663
+ subject: {
664
+ reference: "Patient/de957ac2-dca9-bd0f-b249-e260b7344c6a"
665
+ }
666
+ }
667
+ },
668
+ {
669
+ fullUrl: "Observation/2e7583f4-b519-d8e4-d906-f924ec335617",
670
+ resource: {
671
+ resourceType: "Observation",
672
+ id: "2e7583f4-b519-d8e4-d906-f924ec335617",
673
+ status: "final",
674
+ code: {
675
+ coding: [
676
+ {
677
+ system: "http://loinc.org",
678
+ code: "29463-7",
679
+ display: "Body weight"
680
+ }
681
+ ],
682
+ text: "Poids corporel"
683
+ },
684
+ subject: {
685
+ reference: "Patient/de957ac2-dca9-bd0f-b249-e260b7344c6a"
686
+ },
687
+ valueQuantity: {
688
+ value: 70,
689
+ unit: "kg",
690
+ system: "http://unitsofmeasure.org",
691
+ code: "kg"
692
+ }
693
+ }
694
+ },
695
+ {
696
+ fullUrl: "Observation/1db8e2a2-0f12-00fc-151b-04302981c708",
697
+ resource: {
698
+ resourceType: "Observation",
699
+ id: "1db8e2a2-0f12-00fc-151b-04302981c708",
700
+ status: "final",
701
+ code: {
702
+ coding: [
703
+ {
704
+ system: "http://loinc.org",
705
+ code: "8302-2",
706
+ display: "Body height"
707
+ }
708
+ ],
709
+ text: "Taille corporelle"
710
+ },
711
+ subject: {
712
+ reference: "Patient/de957ac2-dca9-bd0f-b249-e260b7344c6a"
713
+ },
714
+ valueQuantity: {
715
+ value: 165,
716
+ unit: "cm",
717
+ system: "http://unitsofmeasure.org",
718
+ code: "cm"
719
+ }
720
+ }
721
+ },
722
+ {
723
+ fullUrl: "Condition/bcbcf68e-d0a6-0db1-e095-b96f2146e052",
724
+ resource: {
725
+ resourceType: "Condition",
726
+ id: "bcbcf68e-d0a6-0db1-e095-b96f2146e052",
727
+ clinicalStatus: {
728
+ coding: [
729
+ {
730
+ system: "http://terminology.hl7.org/CodeSystem/condition-clinical",
731
+ code: "active"
732
+ }
733
+ ]
734
+ },
735
+ code: {
736
+ coding: [
737
+ {
738
+ system: "http://snomed.info/sct",
739
+ code: "44054006",
740
+ display: "Diab\u251C\xBFte de type 2"
741
+ }
742
+ ],
743
+ text: "Diab\u251C\xBFte de type 2"
744
+ },
745
+ subject: {
746
+ reference: "Patient/de957ac2-dca9-bd0f-b249-e260b7344c6a"
747
+ }
748
+ }
749
+ },
750
+ {
751
+ fullUrl: "Condition/9a1c93be-24e1-003f-61e5-7fffe6e124a9",
752
+ resource: {
753
+ resourceType: "Condition",
754
+ id: "9a1c93be-24e1-003f-61e5-7fffe6e124a9",
755
+ clinicalStatus: {
756
+ coding: [
757
+ {
758
+ system: "http://terminology.hl7.org/CodeSystem/condition-clinical",
759
+ code: "active"
760
+ }
761
+ ]
762
+ },
763
+ code: {
764
+ coding: [
765
+ {
766
+ system: "http://snomed.info/sct",
767
+ code: "38341003",
768
+ display: "Hypertension art\u251C\xAErielle"
769
+ }
770
+ ],
771
+ text: "Hypertension art\u251C\xAErielle"
772
+ },
773
+ subject: {
774
+ reference: "Patient/de957ac2-dca9-bd0f-b249-e260b7344c6a"
775
+ }
776
+ }
777
+ },
778
+ {
779
+ fullUrl: "Condition/17db3ec3-92f5-3669-c554-4f10b5a7e8b4",
780
+ resource: {
781
+ resourceType: "Condition",
782
+ id: "17db3ec3-92f5-3669-c554-4f10b5a7e8b4",
783
+ clinicalStatus: {
784
+ coding: [
785
+ {
786
+ system: "http://terminology.hl7.org/CodeSystem/condition-clinical",
787
+ code: "active"
788
+ }
789
+ ]
790
+ },
791
+ code: {
792
+ coding: [
793
+ {
794
+ system: "http://snomed.info/sct",
795
+ code: "13644009",
796
+ display: "Hypercholest\u251C\xAErol\u251C\xAEmie"
797
+ }
798
+ ],
799
+ text: "Hypercholest\u251C\xAErol\u251C\xAEmie"
800
+ },
801
+ subject: {
802
+ reference: "Patient/de957ac2-dca9-bd0f-b249-e260b7344c6a"
803
+ }
804
+ }
805
+ },
806
+ {
807
+ fullUrl: "AllergyIntolerance/e24a0915-093c-77ff-9647-f3f870f90bec",
808
+ resource: {
809
+ resourceType: "AllergyIntolerance",
810
+ id: "e24a0915-093c-77ff-9647-f3f870f90bec",
811
+ clinicalStatus: {
812
+ coding: [
813
+ {
814
+ system: "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
815
+ code: "active"
816
+ }
817
+ ]
818
+ },
819
+ code: {
820
+ coding: [
821
+ {
822
+ system: "http://snomed.info/sct",
823
+ code: "91936005",
824
+ display: "Allergie \u251C\xE1 la p\u251C\xAEnicilline"
825
+ }
826
+ ],
827
+ text: "Allergie \u251C\xE1 la p\u251C\xAEnicilline"
828
+ },
829
+ patient: {
830
+ reference: "Patient/de957ac2-dca9-bd0f-b249-e260b7344c6a"
831
+ }
832
+ }
833
+ },
834
+ {
835
+ fullUrl: "AllergyIntolerance/aeebb7d0-36d0-4032-5ca7-7917807dbc03",
836
+ resource: {
837
+ resourceType: "AllergyIntolerance",
838
+ id: "aeebb7d0-36d0-4032-5ca7-7917807dbc03",
839
+ clinicalStatus: {
840
+ coding: [
841
+ {
842
+ system: "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
843
+ code: "active"
844
+ }
845
+ ]
846
+ },
847
+ code: {
848
+ coding: [
849
+ {
850
+ system: "http://snomed.info/sct",
851
+ code: "293586001",
852
+ display: "Allergie \u251C\xE1 l'aspirine"
853
+ }
854
+ ],
855
+ text: "Allergie \u251C\xE1 l'aspirine"
856
+ },
857
+ patient: {
858
+ reference: "Patient/de957ac2-dca9-bd0f-b249-e260b7344c6a"
859
+ }
860
+ }
861
+ },
862
+ {
863
+ fullUrl: "AllergyIntolerance/08544279-dbc1-141d-618b-915dab5d4c19",
864
+ resource: {
865
+ resourceType: "AllergyIntolerance",
866
+ id: "08544279-dbc1-141d-618b-915dab5d4c19",
867
+ clinicalStatus: {
868
+ coding: [
869
+ {
870
+ system: "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
871
+ code: "active"
872
+ }
873
+ ]
874
+ },
875
+ code: {
876
+ coding: [
877
+ {
878
+ system: "http://snomed.info/sct",
879
+ code: "300913006",
880
+ display: "Allergie aux fruits de mer"
881
+ }
882
+ ],
883
+ text: "Allergie aux fruits de mer"
884
+ },
885
+ patient: {
886
+ reference: "Patient/de957ac2-dca9-bd0f-b249-e260b7344c6a"
887
+ }
888
+ }
889
+ }
890
+ ]
891
+ };
892
+
893
+ // ../data/patient/patient-pediatric.json
894
+ var patient_pediatric_default = {
895
+ resourceType: "Bundle",
896
+ id: "c26512ba-59c9-7e21-e4e3-9c3d3c0d9ca0",
897
+ type: "collection",
898
+ entry: [
899
+ {
900
+ fullUrl: "Patient/c26512ba-59c9-7e21-e4e3-9c3d3c0d9ca0",
901
+ resource: {
902
+ resourceType: "Patient",
903
+ id: "c26512ba-59c9-7e21-e4e3-9c3d3c0d9ca0",
904
+ gender: "male",
905
+ birthDate: "2015-06-10",
906
+ name: [
907
+ {
908
+ family: "Petit",
909
+ given: [
910
+ "Lucas"
911
+ ]
912
+ }
913
+ ]
914
+ }
915
+ },
916
+ {
917
+ fullUrl: "Observation/6b76a55e-35ce-0b67-27bd-e650d32e6b06",
918
+ resource: {
919
+ resourceType: "Observation",
920
+ id: "6b76a55e-35ce-0b67-27bd-e650d32e6b06",
921
+ status: "final",
922
+ code: {
923
+ coding: [
924
+ {
925
+ system: "http://loinc.org",
926
+ code: "29463-7",
927
+ display: "Body weight"
928
+ }
929
+ ],
930
+ text: "Poids corporel"
931
+ },
932
+ subject: {
933
+ reference: "Patient/c26512ba-59c9-7e21-e4e3-9c3d3c0d9ca0"
934
+ },
935
+ valueQuantity: {
936
+ value: 25,
937
+ unit: "kg",
938
+ system: "http://unitsofmeasure.org",
939
+ code: "kg"
940
+ }
941
+ }
942
+ },
943
+ {
944
+ fullUrl: "Observation/93f4e68b-db02-b6de-3fb2-c0979bc21032",
945
+ resource: {
946
+ resourceType: "Observation",
947
+ id: "93f4e68b-db02-b6de-3fb2-c0979bc21032",
948
+ status: "final",
949
+ code: {
950
+ coding: [
951
+ {
952
+ system: "http://loinc.org",
953
+ code: "8302-2",
954
+ display: "Body height"
955
+ }
956
+ ],
957
+ text: "Taille corporelle"
958
+ },
959
+ subject: {
960
+ reference: "Patient/c26512ba-59c9-7e21-e4e3-9c3d3c0d9ca0"
961
+ },
962
+ valueQuantity: {
963
+ value: 125,
964
+ unit: "cm",
965
+ system: "http://unitsofmeasure.org",
966
+ code: "cm"
967
+ }
968
+ }
969
+ },
970
+ {
971
+ fullUrl: "AllergyIntolerance/5cfb09d9-ce07-076e-ab80-0a4b90d2e050",
972
+ resource: {
973
+ resourceType: "AllergyIntolerance",
974
+ id: "5cfb09d9-ce07-076e-ab80-0a4b90d2e050",
975
+ clinicalStatus: {
976
+ coding: [
977
+ {
978
+ system: "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
979
+ code: "active"
980
+ }
981
+ ]
982
+ },
983
+ code: {
984
+ coding: [
985
+ {
986
+ system: "http://snomed.info/sct",
987
+ code: "91935009",
988
+ display: "Allergie aux arachides"
989
+ }
990
+ ],
991
+ text: "Allergie aux arachides"
992
+ },
993
+ patient: {
994
+ reference: "Patient/c26512ba-59c9-7e21-e4e3-9c3d3c0d9ca0"
995
+ }
996
+ }
997
+ }
998
+ ]
999
+ };
1000
+
1001
+ // ../data/patient/patient-renal-creatinine-clearance.json
1002
+ var patient_renal_creatinine_clearance_default = {
1003
+ resourceType: "Bundle",
1004
+ id: "e2ad250a-2ab3-b625-3de4-12cc494080f7",
1005
+ type: "collection",
1006
+ entry: [
1007
+ {
1008
+ fullUrl: "Patient/f781e38d-a7ad-b8d9-00f6-206580a726af",
1009
+ resource: {
1010
+ resourceType: "Patient",
1011
+ id: "f781e38d-a7ad-b8d9-00f6-206580a726af",
1012
+ gender: "male",
1013
+ birthDate: "1980-01-01",
1014
+ name: [
1015
+ {
1016
+ family: "Dupont",
1017
+ given: [
1018
+ "Jean"
1019
+ ]
1020
+ }
1021
+ ]
1022
+ }
1023
+ },
1024
+ {
1025
+ fullUrl: "Observation/e9c811bf-830f-35eb-289c-beb6c924f6ea",
1026
+ resource: {
1027
+ resourceType: "Observation",
1028
+ id: "e9c811bf-830f-35eb-289c-beb6c924f6ea",
1029
+ status: "final",
1030
+ code: {
1031
+ coding: [
1032
+ {
1033
+ system: "http://loinc.org",
1034
+ code: "2164-2",
1035
+ display: "Creatinine renal clearance in 24 hour Urine and Serum or Plasma"
1036
+ }
1037
+ ],
1038
+ text: "Clairance de la cr\u251C\xAEatinine"
1039
+ },
1040
+ subject: {
1041
+ reference: "Patient/f781e38d-a7ad-b8d9-00f6-206580a726af"
1042
+ },
1043
+ valueQuantity: {
1044
+ value: 60,
1045
+ unit: "mL/min",
1046
+ system: "http://unitsofmeasure.org",
1047
+ code: "mL/min"
1048
+ }
1049
+ }
1050
+ }
1051
+ ]
1052
+ };
1053
+
1054
+ // ../data/patient/patient-renal-gfr-absolute.json
1055
+ var patient_renal_gfr_absolute_default = {
1056
+ resourceType: "Bundle",
1057
+ id: "ab1cab9d-5ebd-00bf-da0d-758ad26b5ed5",
1058
+ type: "collection",
1059
+ entry: [
1060
+ {
1061
+ fullUrl: "Patient/ab1cab9d-5ebd-00bf-da0d-758ad26b5ed5",
1062
+ resource: {
1063
+ resourceType: "Patient",
1064
+ id: "ab1cab9d-5ebd-00bf-da0d-758ad26b5ed5",
1065
+ gender: "female",
1066
+ birthDate: "1980-01-01",
1067
+ name: [
1068
+ {
1069
+ family: "Dupont",
1070
+ given: [
1071
+ "Jeanne"
1072
+ ]
1073
+ }
1074
+ ]
1075
+ }
1076
+ },
1077
+ {
1078
+ fullUrl: "Observation/a5403e62-6813-27c3-0605-609b5022a3df",
1079
+ resource: {
1080
+ resourceType: "Observation",
1081
+ id: "a5403e62-6813-27c3-0605-609b5022a3df",
1082
+ status: "final",
1083
+ code: {
1084
+ coding: [
1085
+ {
1086
+ system: "http://loinc.org",
1087
+ code: "69405-9",
1088
+ display: "Glomerular filtration rate [Volume Rate/Area] in Serum, Plasma or Blood by based on 1.73 sq M"
1089
+ }
1090
+ ],
1091
+ text: "DFG"
1092
+ },
1093
+ subject: {
1094
+ reference: "Patient/ab1cab9d-5ebd-00bf-da0d-758ad26b5ed5"
1095
+ },
1096
+ valueQuantity: {
1097
+ value: 52,
1098
+ unit: "mL/min",
1099
+ system: "http://unitsofmeasure.org",
1100
+ code: "mL/min"
1101
+ }
1102
+ }
1103
+ }
1104
+ ]
1105
+ };
1106
+
1107
+ // ../data/patient/patient-renal-gfr-normalized.json
1108
+ var patient_renal_gfr_normalized_default = {
1109
+ resourceType: "Bundle",
1110
+ id: "b23a85e3-8eeb-3d27-fdba-19712c9cd5c9",
1111
+ type: "collection",
1112
+ entry: [
1113
+ {
1114
+ fullUrl: "Patient/b23a85e3-8eeb-3d27-fdba-19712c9cd5c9",
1115
+ resource: {
1116
+ resourceType: "Patient",
1117
+ id: "b23a85e3-8eeb-3d27-fdba-19712c9cd5c9",
1118
+ gender: "female",
1119
+ birthDate: "1980-01-01",
1120
+ name: [
1121
+ {
1122
+ family: "Dupont",
1123
+ given: [
1124
+ "Jeanne"
1125
+ ]
1126
+ }
1127
+ ]
1128
+ }
1129
+ },
1130
+ {
1131
+ fullUrl: "Observation/6b76a55e-35ce-0b67-27bd-e650d32e6b06",
1132
+ resource: {
1133
+ resourceType: "Observation",
1134
+ id: "6b76a55e-35ce-0b67-27bd-e650d32e6b06",
1135
+ status: "final",
1136
+ code: {
1137
+ coding: [
1138
+ {
1139
+ system: "http://loinc.org",
1140
+ code: "29463-7",
1141
+ display: "Body weight"
1142
+ }
1143
+ ],
1144
+ text: "Poids corporel"
1145
+ },
1146
+ subject: {
1147
+ reference: "Patient/b23a85e3-8eeb-3d27-fdba-19712c9cd5c9"
1148
+ },
1149
+ valueQuantity: {
1150
+ value: 72,
1151
+ unit: "kg",
1152
+ system: "http://unitsofmeasure.org",
1153
+ code: "kg"
1154
+ }
1155
+ }
1156
+ },
1157
+ {
1158
+ fullUrl: "Observation/93f4e68b-db02-b6de-3fb2-c0979bc21032",
1159
+ resource: {
1160
+ resourceType: "Observation",
1161
+ id: "93f4e68b-db02-b6de-3fb2-c0979bc21032",
1162
+ status: "final",
1163
+ code: {
1164
+ coding: [
1165
+ {
1166
+ system: "http://loinc.org",
1167
+ code: "8302-2",
1168
+ display: "Body height"
1169
+ }
1170
+ ],
1171
+ text: "Taille corporelle"
1172
+ },
1173
+ subject: {
1174
+ reference: "Patient/c26512ba-59c9-7e21-e4e3-9c3d3c0d9ca0"
1175
+ },
1176
+ valueQuantity: {
1177
+ value: 183,
1178
+ unit: "cm",
1179
+ system: "http://unitsofmeasure.org",
1180
+ code: "cm"
1181
+ }
1182
+ }
1183
+ },
1184
+ {
1185
+ fullUrl: "Observation/a5403e62-6813-27c3-0605-609b5022a3df",
1186
+ resource: {
1187
+ resourceType: "Observation",
1188
+ id: "a5403e62-6813-27c3-0605-609b5022a3df",
1189
+ status: "final",
1190
+ code: {
1191
+ coding: [
1192
+ {
1193
+ system: "http://loinc.org",
1194
+ code: "48643-1",
1195
+ display: "Glomerular filtration rate [Volume Rate/Area] in Serum, Plasma or Blood by Creatinine-based formula (MDRD)/1.73 sq M among black population"
1196
+ }
1197
+ ],
1198
+ text: "DFG"
1199
+ },
1200
+ subject: {
1201
+ reference: "Patient/b23a85e3-8eeb-3d27-fdba-19712c9cd5c9"
1202
+ },
1203
+ valueQuantity: {
1204
+ value: 45,
1205
+ unit: "mL/min/1.73.m2",
1206
+ system: "http://unitsofmeasure.org",
1207
+ code: "mL/min/1.73.m2"
1208
+ }
1209
+ }
1210
+ }
1211
+ ]
1212
+ };
1213
+
1214
+ // ../data/prescription/prescription-complete.json
1215
+ var prescription_complete_default = {
1216
+ resourceType: "Bundle",
1217
+ type: "document",
1218
+ id: "45aabe01-f128-51f6-448c-fe314c872e56",
1219
+ identifier: {
1220
+ system: "urn:ietf:rfc:3986",
1221
+ value: "urn:uuid:45aabe01-f128-51f6-448c-fe314c872e56"
1222
+ },
1223
+ timestamp: "2024-01-20T10:00:00Z",
1224
+ entry: [
1225
+ {
1226
+ fullUrl: "Composition/a91c103e-d965-841b-1cdf-a74b9cc73e9c",
1227
+ resource: {
1228
+ resourceType: "Composition",
1229
+ id: "a91c103e-d965-841b-1cdf-a74b9cc73e9c",
1230
+ status: "final",
1231
+ type: {
1232
+ coding: [
1233
+ {
1234
+ system: "http://loinc.org",
1235
+ code: "57833-6",
1236
+ display: "Prescription for medication"
1237
+ }
1238
+ ]
1239
+ },
1240
+ subject: [
1241
+ {
1242
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
1243
+ }
1244
+ ],
1245
+ date: "2024-01-20",
1246
+ author: [
1247
+ {
1248
+ reference: "Practitioner/c41d0317-e472-8f83-cc2b-bae5819dc42b"
1249
+ }
1250
+ ],
1251
+ title: "Ordonnance compl\u251C\xBFte",
1252
+ section: [
1253
+ {
1254
+ entry: [
1255
+ {
1256
+ reference: "Medication/6e08661b-1db2-da07-8d01-a6626b3df347"
1257
+ },
1258
+ {
1259
+ reference: "MedicationRequest/327b7ee8-47a8-a6c3-e0ae-e5ba3e400c82"
1260
+ },
1261
+ {
1262
+ reference: "Observation/dc0e92d6-0fb3-e6d0-f12d-609c234e720a"
1263
+ },
1264
+ {
1265
+ reference: "Observation/e94ca969-710c-bbbd-c10e-9272e25302de"
1266
+ },
1267
+ {
1268
+ reference: "MedicationRequest/428ed2db-8d77-4c0e-fe99-34b0d802d52e"
1269
+ },
1270
+ {
1271
+ reference: "MedicationRequest/a3dc2473-80d0-e03c-cefe-7a84671f86cd"
1272
+ },
1273
+ {
1274
+ reference: "MedicationRequest/2dfec081-b516-c355-db0f-77feb84df726"
1275
+ },
1276
+ {
1277
+ reference: "MedicationRequest/218955f2-eefc-c04c-e161-0ff872d96ac8"
1278
+ },
1279
+ {
1280
+ reference: "MedicationRequest/662de544-d3ee-da02-fef1-32be4bb975e8"
1281
+ }
1282
+ ]
1283
+ }
1284
+ ]
1285
+ }
1286
+ },
1287
+ {
1288
+ fullUrl: "Provenance/f5400b80-936c-cf6e-5e12-b9226c9c107a",
1289
+ resource: {
1290
+ resourceType: "Provenance",
1291
+ id: "f5400b80-936c-cf6e-5e12-b9226c9c107a",
1292
+ target: [
1293
+ {
1294
+ reference: "Composition/a91c103e-d965-841b-1cdf-a74b9cc73e9c"
1295
+ }
1296
+ ],
1297
+ activity: {
1298
+ coding: [
1299
+ {
1300
+ system: "https://platform.claudebernard.fr/medical-documents/provenance",
1301
+ code: "scanned",
1302
+ display: "Claude Bernard & Phealing Scan"
1303
+ }
1304
+ ]
1305
+ },
1306
+ recorded: "2024-01-20T10:00:00Z",
1307
+ agent: [
1308
+ {
1309
+ who: {
1310
+ reference: "Practitioner/46efd1e1-7005-3855-c87e-15a2f5588c48"
1311
+ }
1312
+ }
1313
+ ]
1314
+ }
1315
+ },
1316
+ {
1317
+ fullUrl: "Practitioner/c41d0317-e472-8f83-cc2b-bae5819dc42b",
1318
+ resource: {
1319
+ resourceType: "Practitioner",
1320
+ id: "c41d0317-e472-8f83-cc2b-bae5819dc42b",
1321
+ name: [
1322
+ {
1323
+ family: "Bernard",
1324
+ given: [
1325
+ "Dr. Claude"
1326
+ ],
1327
+ prefix: [
1328
+ "Dr"
1329
+ ]
1330
+ }
1331
+ ]
1332
+ }
1333
+ },
1334
+ {
1335
+ fullUrl: "Medication/6e08661b-1db2-da07-8d01-a6626b3df347",
1336
+ resource: {
1337
+ resourceType: "Medication",
1338
+ id: "6e08661b-1db2-da07-8d01-a6626b3df347",
1339
+ code: {
1340
+ coding: [
1341
+ {
1342
+ code: "B01AC06",
1343
+ display: "Ac\u251C\xAEtylsalicylique, acide",
1344
+ system: "http://www.whocc.no/atc"
1345
+ },
1346
+ {
1347
+ code: "B01AC",
1348
+ display: "Inhibiteurs de l'agr\u251C\xAEgation plaquettaire, h\u251C\xAEparine exclue",
1349
+ system: "http://www.whocc.no/atc"
1350
+ },
1351
+ {
1352
+ code: "B01A",
1353
+ display: "Antithrombotiques",
1354
+ system: "http://www.whocc.no/atc"
1355
+ },
1356
+ {
1357
+ code: "B01",
1358
+ display: "Antithrombotiques",
1359
+ system: "http://www.whocc.no/atc"
1360
+ },
1361
+ {
1362
+ code: "B",
1363
+ display: "Sang et organes h\u251C\xAEmatopo\u251C\xBB\u251C\xAEtiques",
1364
+ system: "http://www.whocc.no/atc"
1365
+ },
1366
+ {
1367
+ code: "29818",
1368
+ display: "KARDEGIC 75MG SACHET 30",
1369
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code"
1370
+ }
1371
+ ],
1372
+ text: "KARDEGIC 75MG SACHET 30"
1373
+ }
1374
+ }
1375
+ },
1376
+ {
1377
+ fullUrl: "Medication/7caaa527-38a9-bc63-86e7-6da2044460c7",
1378
+ resource: {
1379
+ resourceType: "Medication",
1380
+ id: "7caaa527-38a9-bc63-86e7-6da2044460c7",
1381
+ code: {
1382
+ coding: [
1383
+ {
1384
+ code: "M01AE02",
1385
+ display: "Acide niflumique",
1386
+ system: "http://www.whocc.no/atc"
1387
+ },
1388
+ {
1389
+ code: "M01AE",
1390
+ display: "D\u251C\xAEriv\u251C\xAEs de l'acide propionique",
1391
+ system: "http://www.whocc.no/atc"
1392
+ },
1393
+ {
1394
+ code: "M01A",
1395
+ display: "Anti-inflammatoires et antirhumatismaux non st\u251C\xAEro\u251C\xBBdiens",
1396
+ system: "http://www.whocc.no/atc"
1397
+ },
1398
+ {
1399
+ code: "M01",
1400
+ display: "Anti-inflammatoires et antirhumatismaux",
1401
+ system: "http://www.whocc.no/atc"
1402
+ },
1403
+ {
1404
+ code: "M",
1405
+ display: "Syst\u251C\xBFme musculo-squelettique",
1406
+ system: "http://www.whocc.no/atc"
1407
+ },
1408
+ {
1409
+ code: "21089",
1410
+ display: "NIFLURIL 250MG GELULE 30",
1411
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code"
1412
+ }
1413
+ ],
1414
+ text: "NIFLURIL 250MG GELULE 30"
1415
+ }
1416
+ }
1417
+ },
1418
+ {
1419
+ fullUrl: "MedicationRequest/327b7ee8-47a8-a6c3-e0ae-e5ba3e400c82",
1420
+ resource: {
1421
+ resourceType: "MedicationRequest",
1422
+ id: "327b7ee8-47a8-a6c3-e0ae-e5ba3e400c82",
1423
+ status: "active",
1424
+ intent: "order",
1425
+ medication: {
1426
+ reference: {
1427
+ reference: "Medication/7caaa527-38a9-bc63-86e7-6da2044460c7"
1428
+ }
1429
+ },
1430
+ subject: {
1431
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
1432
+ },
1433
+ authoredOn: "2024-01-20",
1434
+ note: [
1435
+ {
1436
+ text: "\u251C\xC7\xD4\xE9\xBC prendre avec un grand verre d'eau"
1437
+ }
1438
+ ],
1439
+ dosageInstruction: [
1440
+ {
1441
+ additionalInstruction: [
1442
+ {
1443
+ text: "\u251C\xE1 prendre apr\u251C\xBFs le petit-d\u251C\xAEjeuner"
1444
+ }
1445
+ ],
1446
+ patientInstruction: "1 g\u251C\xAElule(s), matin, pendant 10 jour(s).",
1447
+ doseAndRate: [
1448
+ {
1449
+ doseQuantity: {
1450
+ value: 1,
1451
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/dosage-intake-units",
1452
+ code: "31",
1453
+ unit: "g\u251C\xAElule"
1454
+ }
1455
+ }
1456
+ ],
1457
+ timing: {
1458
+ repeat: {
1459
+ when: [
1460
+ "MORN"
1461
+ ],
1462
+ duration: 10,
1463
+ durationUnit: "d"
1464
+ }
1465
+ },
1466
+ maxDosePerPeriod: []
1467
+ }
1468
+ ]
1469
+ }
1470
+ },
1471
+ {
1472
+ fullUrl: "Observation/dc0e92d6-0fb3-e6d0-f12d-609c234e720a",
1473
+ resource: {
1474
+ resourceType: "Observation",
1475
+ id: "dc0e92d6-0fb3-e6d0-f12d-609c234e720a",
1476
+ status: "final",
1477
+ code: {
1478
+ coding: [
1479
+ {
1480
+ system: "http://loinc.org",
1481
+ code: "75479-6",
1482
+ display: "Notes du m\u251C\xAEdecin traitant"
1483
+ }
1484
+ ]
1485
+ },
1486
+ focus: [
1487
+ {
1488
+ reference: "Medication/7caaa527-38a9-bc63-86e7-6da2044460c7"
1489
+ }
1490
+ ],
1491
+ note: [
1492
+ {
1493
+ text: "Notes du m\u251C\xAEdecin traitant : 1 comprim\u251C\xAE 1 fois par jour"
1494
+ }
1495
+ ]
1496
+ }
1497
+ },
1498
+ {
1499
+ fullUrl: "Observation/e94ca969-710c-bbbd-c10e-9272e25302de",
1500
+ resource: {
1501
+ resourceType: "Observation",
1502
+ id: "e94ca969-710c-bbbd-c10e-9272e25302de",
1503
+ status: "final",
1504
+ code: {
1505
+ coding: [
1506
+ {
1507
+ system: "http://loinc.org",
1508
+ code: "55753-8",
1509
+ display: "Remarques li\u251C\xAEes \u251C\xE1 l'analyse"
1510
+ }
1511
+ ]
1512
+ },
1513
+ focus: [
1514
+ {
1515
+ reference: "Medication/7caaa527-38a9-bc63-86e7-6da2044460c7"
1516
+ }
1517
+ ],
1518
+ note: [
1519
+ {
1520
+ text: "Remarques li\u251C\xAEes \u251C\xE1 l'analyse : Adapter la posologie"
1521
+ }
1522
+ ]
1523
+ }
1524
+ },
1525
+ {
1526
+ fullUrl: "Medication/3d37a495-3c1a-5dc5-6218-726adf28d861",
1527
+ resource: {
1528
+ resourceType: "Medication",
1529
+ id: "3d37a495-3c1a-5dc5-6218-726adf28d861",
1530
+ code: {
1531
+ coding: [
1532
+ {
1533
+ code: "C05CA03",
1534
+ display: "Diosmina",
1535
+ system: "http://www.whocc.no/atc"
1536
+ },
1537
+ {
1538
+ code: "C05CA",
1539
+ display: "Bioflavono\u251C\xBBdes",
1540
+ system: "http://www.whocc.no/atc"
1541
+ },
1542
+ {
1543
+ code: "C05C",
1544
+ display: "Veinotoniques",
1545
+ system: "http://www.whocc.no/atc"
1546
+ },
1547
+ {
1548
+ code: "C05",
1549
+ display: "Vasoprotecteurs",
1550
+ system: "http://www.whocc.no/atc"
1551
+ },
1552
+ {
1553
+ code: "C",
1554
+ display: "Syst\u251C\xBFme cardiovasculaire",
1555
+ system: "http://www.whocc.no/atc"
1556
+ },
1557
+ {
1558
+ code: "24745",
1559
+ display: "DAFLON 500MG CPR 30",
1560
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code"
1561
+ }
1562
+ ],
1563
+ text: "DAFLON 500MG CPR 30"
1564
+ }
1565
+ }
1566
+ },
1567
+ {
1568
+ fullUrl: "MedicationRequest/428ed2db-8d77-4c0e-fe99-34b0d802d52e",
1569
+ resource: {
1570
+ resourceType: "MedicationRequest",
1571
+ id: "428ed2db-8d77-4c0e-fe99-34b0d802d52e",
1572
+ status: "active",
1573
+ intent: "order",
1574
+ medication: {
1575
+ reference: {
1576
+ reference: "Medication/3d37a495-3c1a-5dc5-6218-726adf28d861"
1577
+ }
1578
+ },
1579
+ subject: {
1580
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
1581
+ },
1582
+ authoredOn: "2024-01-20"
1583
+ }
1584
+ },
1585
+ {
1586
+ fullUrl: "Medication/82c3d1d8-3927-890c-eb95-a6ff2c8b03a6",
1587
+ resource: {
1588
+ resourceType: "Medication",
1589
+ id: "82c3d1d8-3927-890c-eb95-a6ff2c8b03a6",
1590
+ code: {
1591
+ coding: [
1592
+ {
1593
+ code: "N06AA09",
1594
+ display: "Amitriptyline",
1595
+ system: "http://www.whocc.no/atc"
1596
+ },
1597
+ {
1598
+ code: "20804",
1599
+ display: "LAROXYL 40MG/ML SOL BUV 20ML",
1600
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code"
1601
+ }
1602
+ ],
1603
+ text: "LAROXYL 40MG/ML SOL BUV 20ML"
1604
+ }
1605
+ }
1606
+ },
1607
+ {
1608
+ fullUrl: "MedicationRequest/a3dc2473-80d0-e03c-cefe-7a84671f86cd",
1609
+ resource: {
1610
+ resourceType: "MedicationRequest",
1611
+ id: "a3dc2473-80d0-e03c-cefe-7a84671f86cd",
1612
+ meta: {
1613
+ versionId: "1",
1614
+ lastUpdated: "2026-04-14T17:28:46.514+02:00"
1615
+ },
1616
+ status: "active",
1617
+ intent: "order",
1618
+ medication: {
1619
+ reference: {
1620
+ reference: "Medication/82c3d1d8-3927-890c-eb95-a6ff2c8b03a6"
1621
+ }
1622
+ },
1623
+ subject: {
1624
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
1625
+ },
1626
+ authoredOn: "2026-04-14T17:28:46+02:00",
1627
+ note: [
1628
+ {
1629
+ text: "Adulte de 18 ans à 65 ans. Traitement initial. (Implicite)"
1630
+ }
1631
+ ],
1632
+ dosageInstruction: [
1633
+ {
1634
+ extension: [
1635
+ {
1636
+ url: "https://platform.claudebernard.fr/fhir/StructureDefinition/dosage-patient-ground",
1637
+ extension: [
1638
+ {
1639
+ url: "patientGround",
1640
+ valueString: "A"
1641
+ },
1642
+ {
1643
+ url: "patientGroundLabel",
1644
+ valueString: "Adulte de 18 ans \u251C\xE1 65 ans"
1645
+ },
1646
+ {
1647
+ url: "patientAdequationScore",
1648
+ valueInteger: 1
1649
+ }
1650
+ ]
1651
+ }
1652
+ ],
1653
+ sequence: 1,
1654
+ patientInstruction: "3 \u251C\xE1 25 mg(s) par jour(s), le soir. \nou 3 \u251C\xE1 25 goutte(s) par jour(s), le soir. ",
1655
+ timing: {
1656
+ repeat: {
1657
+ when: [
1658
+ "EVE"
1659
+ ],
1660
+ period: 1,
1661
+ periodUnit: "d"
1662
+ }
1663
+ },
1664
+ doseAndRate: [
1665
+ {
1666
+ doseRange: {
1667
+ low: {
1668
+ value: 2,
1669
+ unit: "mg",
1670
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/dosage-intake-units",
1671
+ code: "48"
1672
+ },
1673
+ high: {
1674
+ value: 15,
1675
+ unit: "mg",
1676
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/dosage-intake-units",
1677
+ code: "48"
1678
+ }
1679
+ }
1680
+ }
1681
+ ]
1682
+ }
1683
+ ]
1684
+ }
1685
+ },
1686
+ {
1687
+ fullUrl: "Medication/a215a54e-aead-c38f-f917-1d09858daa0d",
1688
+ resource: {
1689
+ resourceType: "Medication",
1690
+ id: "a215a54e-aead-c38f-f917-1d09858daa0d",
1691
+ code: {
1692
+ coding: [
1693
+ {
1694
+ code: "C10AA07",
1695
+ display: "Rosuvastatine",
1696
+ system: "http://www.whocc.no/atc"
1697
+ },
1698
+ {
1699
+ code: "C10AA",
1700
+ display: "Inhibiteurs de HMG CoA r\u251C\xAEductase",
1701
+ system: "http://www.whocc.no/atc"
1702
+ },
1703
+ {
1704
+ code: "C10A",
1705
+ display: "Hypolip\u251C\xAEmiants",
1706
+ system: "http://www.whocc.no/atc"
1707
+ },
1708
+ {
1709
+ code: "C10",
1710
+ display: "Hypolip\u251C\xAEmiants",
1711
+ system: "http://www.whocc.no/atc"
1712
+ },
1713
+ {
1714
+ code: "C",
1715
+ display: "Syst\u251C\xBFme cardiovasculaire",
1716
+ system: "http://www.whocc.no/atc"
1717
+ },
1718
+ {
1719
+ code: "39783",
1720
+ display: "CRESTOR 20MG CPR 30",
1721
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code"
1722
+ }
1723
+ ],
1724
+ text: "CRESTOR 20MG CPR 30"
1725
+ }
1726
+ }
1727
+ },
1728
+ {
1729
+ fullUrl: "MedicationRequest/2dfec081-b516-c355-db0f-77feb84df726",
1730
+ resource: {
1731
+ resourceType: "MedicationRequest",
1732
+ id: "2dfec081-b516-c355-db0f-77feb84df726",
1733
+ status: "active",
1734
+ intent: "order",
1735
+ medication: {
1736
+ reference: {
1737
+ reference: "Medication/a215a54e-aead-c38f-f917-1d09858daa0d"
1738
+ }
1739
+ },
1740
+ subject: {
1741
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
1742
+ },
1743
+ authoredOn: "2024-01-20"
1744
+ }
1745
+ },
1746
+ {
1747
+ fullUrl: "Medication/fe929807-9419-8511-864f-02be89e8cae6",
1748
+ resource: {
1749
+ resourceType: "Medication",
1750
+ id: "fe929807-9419-8511-864f-02be89e8cae6",
1751
+ code: {
1752
+ coding: [
1753
+ {
1754
+ code: "C08CA01",
1755
+ display: "Amlodipine",
1756
+ system: "http://www.whocc.no/atc"
1757
+ },
1758
+ {
1759
+ code: "C08CA",
1760
+ display: "D\u251C\xAEriv\u251C\xAEs de la dihydropyridine",
1761
+ system: "http://www.whocc.no/atc"
1762
+ },
1763
+ {
1764
+ code: "C08C",
1765
+ display: "Inhibiteurs s\u251C\xAElectifs des canaux calciques avec effet principalement vasculaire",
1766
+ system: "http://www.whocc.no/atc"
1767
+ },
1768
+ {
1769
+ code: "C08",
1770
+ display: "Inhibiteurs des canaux calciques",
1771
+ system: "http://www.whocc.no/atc"
1772
+ },
1773
+ {
1774
+ code: "C",
1775
+ display: "Syst\u251C\xBFme cardiovasculaire",
1776
+ system: "http://www.whocc.no/atc"
1777
+ },
1778
+ {
1779
+ code: "36463",
1780
+ display: "AMLOR 5MG GELULE 90",
1781
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code"
1782
+ }
1783
+ ],
1784
+ text: "AMLOR 5MG GELULE 90"
1785
+ }
1786
+ }
1787
+ },
1788
+ {
1789
+ fullUrl: "MedicationRequest/218955f2-eefc-c04c-e161-0ff872d96ac8",
1790
+ resource: {
1791
+ resourceType: "MedicationRequest",
1792
+ id: "218955f2-eefc-c04c-e161-0ff872d96ac8",
1793
+ status: "active",
1794
+ intent: "order",
1795
+ medication: {
1796
+ reference: {
1797
+ reference: "Medication/fe929807-9419-8511-864f-02be89e8cae6"
1798
+ }
1799
+ },
1800
+ subject: {
1801
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
1802
+ },
1803
+ authoredOn: "2024-01-20",
1804
+ dosageInstruction: [
1805
+ {
1806
+ patientInstruction: "1 g\u251C\xAElule le matin apr\u251C\xBFs le petit-d\u251C\xAEjeuner, pendant 10 jours"
1807
+ }
1808
+ ]
1809
+ }
1810
+ },
1811
+ {
1812
+ fullUrl: "Medication/4241cd43-0163-16c8-7d25-05ef26f8df7f",
1813
+ resource: {
1814
+ resourceType: "Medication",
1815
+ id: "4241cd43-0163-16c8-7d25-05ef26f8df7f",
1816
+ code: {
1817
+ coding: [
1818
+ {
1819
+ code: "M01AB05",
1820
+ display: "Diclof\u251C\xAEnac",
1821
+ system: "http://www.whocc.no/atc"
1822
+ },
1823
+ {
1824
+ code: "M01AB",
1825
+ display: "D\u251C\xAEriv\u251C\xAEs de l'acide ac\u251C\xAEtique et substances apparent\u251C\xAEes",
1826
+ system: "http://www.whocc.no/atc"
1827
+ },
1828
+ {
1829
+ code: "M01A",
1830
+ display: "Anti-inflammatoires et antirhumatismaux non st\u251C\xAEro\u251C\xBBdiens",
1831
+ system: "http://www.whocc.no/atc"
1832
+ },
1833
+ {
1834
+ code: "M01",
1835
+ display: "Anti-inflammatoires et antirhumatismaux",
1836
+ system: "http://www.whocc.no/atc"
1837
+ },
1838
+ {
1839
+ code: "M",
1840
+ display: "Syst\u251C\xBFme musculo-squelettique",
1841
+ system: "http://www.whocc.no/atc"
1842
+ },
1843
+ {
1844
+ code: "23614",
1845
+ display: "VOLTARENE 50MG CPR 30",
1846
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code"
1847
+ }
1848
+ ],
1849
+ text: "VOLTARENE 50MG CPR 30"
1850
+ }
1851
+ }
1852
+ },
1853
+ {
1854
+ fullUrl: "MedicationRequest/662de544-d3ee-da02-fef1-32be4bb975e8",
1855
+ resource: {
1856
+ resourceType: "MedicationRequest",
1857
+ id: "662de544-d3ee-da02-fef1-32be4bb975e8",
1858
+ status: "active",
1859
+ intent: "order",
1860
+ medication: {
1861
+ reference: {
1862
+ reference: "Medication/4241cd43-0163-16c8-7d25-05ef26f8df7f"
1863
+ }
1864
+ },
1865
+ subject: {
1866
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
1867
+ },
1868
+ authoredOn: "2024-01-20",
1869
+ dosageInstruction: [
1870
+ {
1871
+ patientInstruction: "1 g\u251C\xAElule le matin apr\u251C\xBFs le petit-d\u251C\xAEjeuner, pendant 10 jours"
1872
+ }
1873
+ ]
1874
+ }
1875
+ },
1876
+ {
1877
+ fullUrl: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d",
1878
+ resource: {
1879
+ resourceType: "Patient",
1880
+ id: "a362bb19-6db4-0149-8854-d0230acbb45d",
1881
+ gender: "female",
1882
+ birthDate: "1984-01-01",
1883
+ name: [
1884
+ {
1885
+ family: "Dupont",
1886
+ given: [
1887
+ "Marie"
1888
+ ]
1889
+ }
1890
+ ]
1891
+ }
1892
+ },
1893
+ {
1894
+ fullUrl: "Practitioner/46efd1e1-7005-3855-c87e-15a2f5588c48",
1895
+ resource: {
1896
+ resourceType: "Practitioner",
1897
+ id: "46efd1e1-7005-3855-c87e-15a2f5588c48",
1898
+ name: [
1899
+ {
1900
+ family: "Martin",
1901
+ given: [
1902
+ "Dr. Pierre"
1903
+ ],
1904
+ prefix: [
1905
+ "Dr"
1906
+ ]
1907
+ }
1908
+ ]
1909
+ }
1910
+ }
1911
+ ]
1912
+ };
1913
+
1914
+ // ../data/prescription/prescription-with-alternative.json
1915
+ var prescription_with_alternative_default = {
1916
+ resourceType: "Bundle",
1917
+ type: "collection",
1918
+ id: "8b628860-8950-f554-478f-ae4431b70547",
1919
+ entry: [
1920
+ {
1921
+ fullUrl: "Composition/a772ddc7-1a29-8ba5-5a8d-eef16f9c17e4",
1922
+ resource: {
1923
+ resourceType: "Composition",
1924
+ id: "a772ddc7-1a29-8ba5-5a8d-eef16f9c17e4",
1925
+ status: "final",
1926
+ type: {
1927
+ coding: [
1928
+ {
1929
+ system: "http://loinc.org",
1930
+ code: "57833-6",
1931
+ display: "Prescription for medication"
1932
+ }
1933
+ ]
1934
+ },
1935
+ subject: [
1936
+ {
1937
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
1938
+ }
1939
+ ],
1940
+ date: "2024-01-15",
1941
+ author: [
1942
+ {
1943
+ reference: "Practitioner/46efd1e1-7005-3855-c87e-15a2f5588c48"
1944
+ }
1945
+ ],
1946
+ title: "Ordonnance du 15 janvier 2024"
1947
+ }
1948
+ },
1949
+ {
1950
+ fullUrl: "Provenance/df4ea0bf-7234-7094-8d36-7f78ceee603d",
1951
+ resource: {
1952
+ resourceType: "Provenance",
1953
+ id: "df4ea0bf-7234-7094-8d36-7f78ceee603d",
1954
+ target: [
1955
+ {
1956
+ reference: "Composition/a772ddc7-1a29-8ba5-5a8d-eef16f9c17e4"
1957
+ }
1958
+ ],
1959
+ activity: {
1960
+ coding: [
1961
+ {
1962
+ system: "http://terminology.hl7.org/CodeSystem/provenance-activity-type",
1963
+ code: "numeric-prescription",
1964
+ display: "Numeric Prescription"
1965
+ }
1966
+ ]
1967
+ },
1968
+ recorded: "2024-01-15T09:00:00Z",
1969
+ agent: [
1970
+ {
1971
+ who: {
1972
+ reference: "Practitioner/46efd1e1-7005-3855-c87e-15a2f5588c48"
1973
+ }
1974
+ }
1975
+ ]
1976
+ }
1977
+ },
1978
+ {
1979
+ fullUrl: "Practitioner/46efd1e1-7005-3855-c87e-15a2f5588c48",
1980
+ resource: {
1981
+ resourceType: "Practitioner",
1982
+ id: "46efd1e1-7005-3855-c87e-15a2f5588c48",
1983
+ name: [
1984
+ {
1985
+ family: "Martin",
1986
+ given: [
1987
+ "Dr. Pierre"
1988
+ ],
1989
+ prefix: [
1990
+ "Dr"
1991
+ ]
1992
+ }
1993
+ ],
1994
+ telecom: [
1995
+ {
1996
+ system: "phone",
1997
+ value: "01.23.45.67.89"
1998
+ }
1999
+ ]
2000
+ }
2001
+ },
2002
+ {
2003
+ fullUrl: "urn:uuid:765bbe82-3e26-1bb6-8a97-7e459f43a209",
2004
+ resource: {
2005
+ resourceType: "Medication",
2006
+ id: "765bbe82-3e26-1bb6-8a97-7e459f43a209",
2007
+ code: {
2008
+ coding: [
2009
+ {
2010
+ code: "C07AB07",
2011
+ display: "Bisoprolol",
2012
+ system: "http://www.whocc.no/atc"
2013
+ },
2014
+ {
2015
+ code: "31172",
2016
+ display: "CARDENSIEL 2,5 mg, comprim\u251C\xAE pellicul\u251C\xAE s\u251C\xAEcable",
2017
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code"
2018
+ },
2019
+ {
2020
+ code: "60077574",
2021
+ display: "CARDENSIEL 2,5 mg, comprim\u251C\xAE pellicul\u251C\xAE s\u251C\xAEcable",
2022
+ system: "http://terminology.hl7.org/CodeSystem/cis-code"
2023
+ },
2024
+ {
2025
+ code: "3400935297068",
2026
+ display: "CARDENSIEL 2,5MG CPR SECABLE 30",
2027
+ system: "http://terminology.hl7.org/CodeSystem/cip13-code"
2028
+ }
2029
+ ],
2030
+ text: "CARDENSIEL 2,5 mg, comprim\u251C\xAE pellicul\u251C\xAE s\u251C\xAEcable, bo\u251C\xABte de 30"
2031
+ },
2032
+ doseForm: {
2033
+ coding: [
2034
+ {
2035
+ system: "http://snomed.info/sct",
2036
+ code: "385055001",
2037
+ display: "Tablet"
2038
+ }
2039
+ ]
2040
+ }
2041
+ }
2042
+ },
2043
+ {
2044
+ fullUrl: "MedicationRequest/f91e0bdd-3e3d-9b6a-0485-5165f47f66f1",
2045
+ resource: {
2046
+ resourceType: "MedicationRequest",
2047
+ id: "f91e0bdd-3e3d-9b6a-0485-5165f47f66f1",
2048
+ status: "active",
2049
+ intent: "order",
2050
+ medication: {
2051
+ reference: {
2052
+ reference: "Medication/765bbe82-3e26-1bb6-8a97-7e459f43a209"
2053
+ }
2054
+ },
2055
+ subject: {
2056
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
2057
+ },
2058
+ authoredOn: "2024-01-15",
2059
+ requester: {
2060
+ reference: "Practitioner/46efd1e1-7005-3855-c87e-15a2f5588c48"
2061
+ },
2062
+ dosageInstruction: [
2063
+ {
2064
+ patientInstruction: "1 comprim\u251C\xAE matin et soir",
2065
+ timing: {
2066
+ repeat: {
2067
+ frequency: 2,
2068
+ period: 1,
2069
+ periodUnit: "d"
2070
+ }
2071
+ }
2072
+ }
2073
+ ],
2074
+ dispenseRequest: {
2075
+ validityPeriod: {
2076
+ start: "2024-01-15",
2077
+ end: "2024-04-15"
2078
+ },
2079
+ quantity: {
2080
+ value: 30,
2081
+ unit: "comprim\u251C\xAEs"
2082
+ }
2083
+ }
2084
+ }
2085
+ },
2086
+ {
2087
+ fullUrl: "Medication/b18252e6-c0e2-c00e-f5cd-7c9b385bbb91",
2088
+ resource: {
2089
+ resourceType: "Medication",
2090
+ id: "b18252e6-c0e2-c00e-f5cd-7c9b385bbb91",
2091
+ code: {
2092
+ coding: [
2093
+ {
2094
+ code: "12345",
2095
+ display: "BISOPROLOL TEVA 2,5MG CPR 30",
2096
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code"
2097
+ }
2098
+ ],
2099
+ text: "BISOPROLOL TEVA 2,5MG CPR 30"
2100
+ }
2101
+ }
2102
+ },
2103
+ {
2104
+ fullUrl: "MedicationRequest/14b8f2ae-9527-0116-1e25-6792895d2c11",
2105
+ resource: {
2106
+ resourceType: "MedicationRequest",
2107
+ id: "14b8f2ae-9527-0116-1e25-6792895d2c11",
2108
+ status: "draft",
2109
+ intent: "order",
2110
+ medication: {
2111
+ reference: {
2112
+ reference: "Medication/b18252e6-c0e2-c00e-f5cd-7c9b385bbb91"
2113
+ }
2114
+ },
2115
+ subject: {
2116
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
2117
+ },
2118
+ priorPrescription: {
2119
+ reference: "MedicationRequest/f91e0bdd-3e3d-9b6a-0485-5165f47f66f1"
2120
+ },
2121
+ dosageInstruction: [
2122
+ {
2123
+ text: "1 comprim\u251C\xAE le matin",
2124
+ patientInstruction: "1 comprim\u251C\xAE le matin au r\u251C\xAEveil"
2125
+ }
2126
+ ]
2127
+ }
2128
+ }
2129
+ ]
2130
+ };
2131
+
2132
+ // ../data/prescription/prescription-single-medication.json
2133
+ var prescription_single_medication_default = {
2134
+ resourceType: "Bundle",
2135
+ type: "collection",
2136
+ id: "18d635cc-22e0-bad0-cf8b-558a9083790c",
2137
+ entry: [
2138
+ {
2139
+ fullUrl: "Composition/a772ddc7-1a29-8ba5-5a8d-eef16f9c17e4",
2140
+ resource: {
2141
+ resourceType: "Composition",
2142
+ id: "a772ddc7-1a29-8ba5-5a8d-eef16f9c17e4",
2143
+ status: "final",
2144
+ type: {
2145
+ coding: [
2146
+ {
2147
+ system: "http://loinc.org",
2148
+ code: "57833-6",
2149
+ display: "Prescription for medication"
2150
+ }
2151
+ ]
2152
+ },
2153
+ subject: [
2154
+ {
2155
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
2156
+ }
2157
+ ],
2158
+ date: "2024-01-15",
2159
+ author: [
2160
+ {
2161
+ reference: "Practitioner/46efd1e1-7005-3855-c87e-15a2f5588c48"
2162
+ }
2163
+ ],
2164
+ title: "Ordonnance du 15 janvier 2024"
2165
+ }
2166
+ },
2167
+ {
2168
+ fullUrl: "Provenance/df4ea0bf-7234-7094-8d36-7f78ceee603d",
2169
+ resource: {
2170
+ resourceType: "Provenance",
2171
+ id: "df4ea0bf-7234-7094-8d36-7f78ceee603d",
2172
+ target: [
2173
+ {
2174
+ reference: "Composition/a772ddc7-1a29-8ba5-5a8d-eef16f9c17e4"
2175
+ }
2176
+ ],
2177
+ activity: {
2178
+ coding: [
2179
+ {
2180
+ system: "http://terminology.hl7.org/CodeSystem/provenance-activity-type",
2181
+ code: "numeric-prescription",
2182
+ display: "Numeric Prescription"
2183
+ }
2184
+ ]
2185
+ },
2186
+ recorded: "2024-01-15T09:00:00Z",
2187
+ agent: [
2188
+ {
2189
+ who: {
2190
+ reference: "Practitioner/46efd1e1-7005-3855-c87e-15a2f5588c48"
2191
+ }
2192
+ }
2193
+ ]
2194
+ }
2195
+ },
2196
+ {
2197
+ fullUrl: "Practitioner/46efd1e1-7005-3855-c87e-15a2f5588c48",
2198
+ resource: {
2199
+ resourceType: "Practitioner",
2200
+ id: "46efd1e1-7005-3855-c87e-15a2f5588c48",
2201
+ name: [
2202
+ {
2203
+ family: "Martin",
2204
+ given: [
2205
+ "Dr. Pierre"
2206
+ ],
2207
+ prefix: [
2208
+ "Dr"
2209
+ ]
2210
+ }
2211
+ ],
2212
+ telecom: [
2213
+ {
2214
+ system: "phone",
2215
+ value: "01.23.45.67.89"
2216
+ }
2217
+ ]
2218
+ }
2219
+ },
2220
+ {
2221
+ fullUrl: "urn:uuid:765bbe82-3e26-1bb6-8a97-7e459f43a209",
2222
+ resource: {
2223
+ resourceType: "Medication",
2224
+ id: "765bbe82-3e26-1bb6-8a97-7e459f43a209",
2225
+ code: {
2226
+ coding: [
2227
+ {
2228
+ code: "C07AB07",
2229
+ display: "Bisoprolol",
2230
+ system: "http://www.whocc.no/atc"
2231
+ },
2232
+ {
2233
+ code: "31172",
2234
+ display: "CARDENSIEL 2,5 mg, comprim\u251C\xAE pellicul\u251C\xAE s\u251C\xAEcable",
2235
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code"
2236
+ },
2237
+ {
2238
+ code: "60077574",
2239
+ display: "CARDENSIEL 2,5 mg, comprim\u251C\xAE pellicul\u251C\xAE s\u251C\xAEcable",
2240
+ system: "http://terminology.hl7.org/CodeSystem/cis-code"
2241
+ },
2242
+ {
2243
+ code: "3400935297068",
2244
+ display: "CARDENSIEL 2,5MG CPR SECABLE 30",
2245
+ system: "http://terminology.hl7.org/CodeSystem/cip13-code"
2246
+ }
2247
+ ],
2248
+ text: "CARDENSIEL 2,5 mg, comprim\u251C\xAE pellicul\u251C\xAE s\u251C\xAEcable, bo\u251C\xABte de 30"
2249
+ },
2250
+ doseForm: {
2251
+ coding: [
2252
+ {
2253
+ system: "http://snomed.info/sct",
2254
+ code: "385055001",
2255
+ display: "Tablet"
2256
+ }
2257
+ ]
2258
+ }
2259
+ }
2260
+ },
2261
+ {
2262
+ fullUrl: "MedicationRequest/f91e0bdd-3e3d-9b6a-0485-5165f47f66f1",
2263
+ resource: {
2264
+ resourceType: "MedicationRequest",
2265
+ id: "f91e0bdd-3e3d-9b6a-0485-5165f47f66f1",
2266
+ status: "active",
2267
+ intent: "order",
2268
+ medication: {
2269
+ reference: {
2270
+ reference: "Medication/765bbe82-3e26-1bb6-8a97-7e459f43a209"
2271
+ }
2272
+ },
2273
+ subject: {
2274
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
2275
+ },
2276
+ authoredOn: "2024-01-15",
2277
+ requester: {
2278
+ reference: "Practitioner/46efd1e1-7005-3855-c87e-15a2f5588c48"
2279
+ },
2280
+ dosageInstruction: [
2281
+ {
2282
+ patientInstruction: "1 comprim\u251C\xAE matin et soir",
2283
+ timing: {
2284
+ repeat: {
2285
+ frequency: 2,
2286
+ period: 1,
2287
+ periodUnit: "d"
2288
+ }
2289
+ }
2290
+ }
2291
+ ],
2292
+ dispenseRequest: {
2293
+ validityPeriod: {
2294
+ start: "2024-01-15",
2295
+ end: "2024-04-15"
2296
+ },
2297
+ quantity: {
2298
+ value: 30,
2299
+ unit: "comprim\u251C\xAEs"
2300
+ }
2301
+ }
2302
+ }
2303
+ }
2304
+ ]
2305
+ };
2306
+
2307
+ // ../data/prescription/prescription-with-document-reference.json
2308
+ var prescription_with_document_reference_default = {
2309
+ resourceType: "Bundle",
2310
+ id: "e58d7377-7233-38f7-8984-edc8094cb1d8",
2311
+ type: "document",
2312
+ identifier: {
2313
+ system: "urn:ietf:rfc:3986",
2314
+ value: "urn:uuid:e58d7377-7233-38f7-8984-edc8094cb1d8"
2315
+ },
2316
+ timestamp: "2025-09-10T12:31:45Z",
2317
+ entry: [
2318
+ {
2319
+ fullUrl: "Composition/4337d81f-9887-4e9e-9c53-2d5d38d1d44e",
2320
+ resource: {
2321
+ resourceType: "Composition",
2322
+ id: "4337d81f-9887-4e9e-9c53-2d5d38d1d44e",
2323
+ author: [
2324
+ {
2325
+ reference: "Organization/d0954666-2a6c-43fc-a032-9b14eab7f7d0"
2326
+ }
2327
+ ],
2328
+ title: "Medical prescription from file 'prescription-example-4.pdf'",
2329
+ status: "partial",
2330
+ type: {
2331
+ coding: [
2332
+ {
2333
+ code: "16076005",
2334
+ display: "Prescription",
2335
+ system: "http://snomed.info/sct"
2336
+ }
2337
+ ]
2338
+ },
2339
+ date: "2025-09-10T12:31:45Z"
2340
+ }
2341
+ },
2342
+ {
2343
+ fullUrl: "Medication/95175bcb-f3cf-4eb8-83be-7956554cd0b8",
2344
+ resource: {
2345
+ resourceType: "Medication",
2346
+ id: "95175bcb-f3cf-4eb8-83be-7956554cd0b8",
2347
+ code: {
2348
+ text: "JANUMET 50 mg/1000 mg, comprim\u251C\xAE pellicul\u251C\xAE",
2349
+ coding: [
2350
+ {
2351
+ code: "A10BD07",
2352
+ display: "Sitagliptine + Metformine",
2353
+ system: "http://www.whocc.no/atc"
2354
+ },
2355
+ {
2356
+ code: "76461",
2357
+ display: "JANUMET 50 mg/1000 mg, comprim\u251C\xAE pellicul\u251C\xAE",
2358
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code"
2359
+ },
2360
+ {
2361
+ code: "66010671",
2362
+ display: "JANUMET 50 mg/1000 mg, comprim\u251C\xAE pellicul\u251C\xAE",
2363
+ system: "http://terminology.hl7.org/CodeSystem/cis-code"
2364
+ },
2365
+ {
2366
+ code: "3400957312114",
2367
+ display: "JANUMET 50MG/1 000MG CPR 50X1",
2368
+ system: "http://terminology.hl7.org/CodeSystem/cip13-code"
2369
+ }
2370
+ ]
2371
+ },
2372
+ extension: [
2373
+ {
2374
+ url: "http://fhir.phealing.fr/terminology/drugDefinitionLevel",
2375
+ valueString: "SPECIALITE",
2376
+ extension: []
2377
+ },
2378
+ {
2379
+ url: "http://fhir.phealing.fr/terminology/productName",
2380
+ valueString: "JANUMET",
2381
+ extension: []
2382
+ },
2383
+ {
2384
+ url: "http://fhir.phealing.fr/terminology/productDosage",
2385
+ valueString: "50 mg/1 000 mg",
2386
+ extension: []
2387
+ },
2388
+ {
2389
+ url: "http://fhir.phealing.fr/terminology/productForm",
2390
+ valueString: "Comprim\u251C\xAE pellicul\u251C\xAE",
2391
+ extension: []
2392
+ },
2393
+ {
2394
+ url: "http://fhir.phealing.fr/terminology/boundingBox",
2395
+ extension: [
2396
+ {
2397
+ url: "http://fhir.phealing.fr/terminology/boundingBox/page",
2398
+ valueInteger: 1
2399
+ },
2400
+ {
2401
+ url: "http://fhir.phealing.fr/terminology/boundingBox/height",
2402
+ valueDecimal: 0.01409
2403
+ },
2404
+ {
2405
+ url: "http://fhir.phealing.fr/terminology/boundingBox/left",
2406
+ valueDecimal: 0.09553
2407
+ },
2408
+ {
2409
+ url: "http://fhir.phealing.fr/terminology/boundingBox/top",
2410
+ valueDecimal: 0.30373
2411
+ },
2412
+ {
2413
+ url: "http://fhir.phealing.fr/terminology/boundingBox/width",
2414
+ valueDecimal: 0.23888
2415
+ }
2416
+ ]
2417
+ }
2418
+ ]
2419
+ }
2420
+ },
2421
+ {
2422
+ fullUrl: "MedicationRequest/09e3c8a5-8060-46ad-b643-927fc3637177",
2423
+ resource: {
2424
+ resourceType: "MedicationRequest",
2425
+ id: "09e3c8a5-8060-46ad-b643-927fc3637177",
2426
+ status: "unknown",
2427
+ intent: "order",
2428
+ subject: {
2429
+ display: "Unknown",
2430
+ reference: "Patient/unknown",
2431
+ type: "Patient"
2432
+ },
2433
+ medication: {
2434
+ reference: {
2435
+ reference: "Medication/95175bcb-f3cf-4eb8-83be-7956554cd0b8",
2436
+ type: "Medication"
2437
+ }
2438
+ },
2439
+ dosageInstruction: [
2440
+ {
2441
+ sequence: 1,
2442
+ timing: {
2443
+ repeat: {
2444
+ dayOfWeek: [],
2445
+ extension: [],
2446
+ frequency: 2,
2447
+ period: 1,
2448
+ periodUnit: "d",
2449
+ timeOfDay: [],
2450
+ when: [
2451
+ "EVE",
2452
+ "MORN"
2453
+ ]
2454
+ }
2455
+ },
2456
+ doseAndRate: [
2457
+ {
2458
+ doseQuantity: {
2459
+ code: "1",
2460
+ system: "https://platform.claudebernard.fr/fhir/ValueSet/intake-units",
2461
+ unit: "comprim\u251C\xAE",
2462
+ value: 1
2463
+ },
2464
+ type: {
2465
+ coding: [
2466
+ {
2467
+ code: "ordered",
2468
+ display: "Ordered",
2469
+ system: "http://terminology.hl7.org/CodeSystem/dose-rate-type"
2470
+ }
2471
+ ]
2472
+ }
2473
+ }
2474
+ ],
2475
+ asNeeded: false,
2476
+ asNeededFor: [],
2477
+ maxDosePerPeriod: []
2478
+ }
2479
+ ],
2480
+ reason: []
2481
+ }
2482
+ },
2483
+ {
2484
+ fullUrl: "Medication/66344539-0b56-4b9c-b52b-d12902514a47",
2485
+ resource: {
2486
+ resourceType: "Medication",
2487
+ id: "66344539-0b56-4b9c-b52b-d12902514a47",
2488
+ code: {
2489
+ text: "Atorvastatine 10 mg comprim\u251C\xAE",
2490
+ coding: [
2491
+ {
2492
+ code: "C10AA05",
2493
+ display: "Atorvastatine",
2494
+ system: "http://www.whocc.no/atc"
2495
+ },
2496
+ {
2497
+ code: "173681",
2498
+ display: "Atorvastatine 10 mg comprim\u251C\xAE",
2499
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code"
2500
+ }
2501
+ ]
2502
+ },
2503
+ extension: [
2504
+ {
2505
+ url: "http://fhir.phealing.fr/terminology/drugDefinitionLevel",
2506
+ valueString: "GENERIC",
2507
+ extension: []
2508
+ },
2509
+ {
2510
+ url: "http://fhir.phealing.fr/terminology/productName",
2511
+ valueString: "Atorvastatine",
2512
+ extension: []
2513
+ },
2514
+ {
2515
+ url: "http://fhir.phealing.fr/terminology/productDosage",
2516
+ valueString: "10 mg",
2517
+ extension: []
2518
+ },
2519
+ {
2520
+ url: "http://fhir.phealing.fr/terminology/productForm",
2521
+ valueString: "Comprim\u251C\xAE pellicul\u251C\xAE",
2522
+ extension: []
2523
+ },
2524
+ {
2525
+ url: "http://fhir.phealing.fr/terminology/boundingBox",
2526
+ extension: [
2527
+ {
2528
+ url: "http://fhir.phealing.fr/terminology/boundingBox/page",
2529
+ valueInteger: 1
2530
+ },
2531
+ {
2532
+ url: "http://fhir.phealing.fr/terminology/boundingBox/height",
2533
+ valueDecimal: 0.01517
2534
+ },
2535
+ {
2536
+ url: "http://fhir.phealing.fr/terminology/boundingBox/left",
2537
+ valueDecimal: 0.09725
2538
+ },
2539
+ {
2540
+ url: "http://fhir.phealing.fr/terminology/boundingBox/top",
2541
+ valueDecimal: 0.34851
2542
+ },
2543
+ {
2544
+ url: "http://fhir.phealing.fr/terminology/boundingBox/width",
2545
+ valueDecimal: 0.28109
2546
+ }
2547
+ ]
2548
+ }
2549
+ ]
2550
+ }
2551
+ },
2552
+ {
2553
+ fullUrl: "MedicationRequest/b19d9d6a-995c-4e60-be96-32e28d5720f9",
2554
+ resource: {
2555
+ resourceType: "MedicationRequest",
2556
+ id: "b19d9d6a-995c-4e60-be96-32e28d5720f9",
2557
+ status: "unknown",
2558
+ intent: "order",
2559
+ subject: {
2560
+ display: "Unknown",
2561
+ reference: "Patient/unknown"
2562
+ },
2563
+ medication: {
2564
+ reference: {
2565
+ reference: "Medication/66344539-0b56-4b9c-b52b-d12902514a47",
2566
+ type: "Medication"
2567
+ }
2568
+ },
2569
+ dosageInstruction: [
2570
+ {
2571
+ sequence: 1,
2572
+ timing: {
2573
+ code: {
2574
+ coding: [
2575
+ {
2576
+ code: "QD",
2577
+ system: "http://hl7.org/fhir/ValueSet/timing-abbreviation"
2578
+ }
2579
+ ]
2580
+ },
2581
+ repeat: {
2582
+ boundsDuration: {
2583
+ code: "mo",
2584
+ system: "http://unitsofmeasure.org",
2585
+ unit: "MOIS",
2586
+ value: 6
2587
+ },
2588
+ dayOfWeek: [],
2589
+ extension: [],
2590
+ frequency: 1,
2591
+ period: 1,
2592
+ periodUnit: "d",
2593
+ timeOfDay: [],
2594
+ when: []
2595
+ }
2596
+ },
2597
+ doseAndRate: [
2598
+ {
2599
+ doseQuantity: {
2600
+ code: "1",
2601
+ system: "https://platform.claudebernard.fr/fhir/ValueSet/intake-units",
2602
+ unit: "comprim\u251C\xAE",
2603
+ value: 1
2604
+ },
2605
+ type: {
2606
+ coding: [
2607
+ {
2608
+ code: "ordered",
2609
+ display: "Ordered",
2610
+ system: "http://terminology.hl7.org/CodeSystem/dose-rate-type"
2611
+ }
2612
+ ]
2613
+ }
2614
+ }
2615
+ ],
2616
+ asNeeded: false,
2617
+ asNeededFor: [],
2618
+ maxDosePerPeriod: []
2619
+ }
2620
+ ],
2621
+ reason: []
2622
+ }
2623
+ },
2624
+ {
2625
+ fullUrl: "Medication/8875b52d-70e6-432f-9ec0-36f552f0ecc7",
2626
+ resource: {
2627
+ resourceType: "Medication",
2628
+ id: "8875b52d-70e6-432f-9ec0-36f552f0ecc7",
2629
+ code: {
2630
+ text: "P\u251C\xAErindopril t-butylamine 4 mg comprim\u251C\xAE",
2631
+ coding: [
2632
+ {
2633
+ code: "C09AA04",
2634
+ display: "P\u251C\xAErindopril",
2635
+ system: "http://www.whocc.no/atc"
2636
+ },
2637
+ {
2638
+ code: "173714",
2639
+ display: "P\u251C\xAErindopril t-butylamine 4 mg comprim\u251C\xAE",
2640
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code"
2641
+ }
2642
+ ]
2643
+ },
2644
+ extension: [
2645
+ {
2646
+ url: "http://fhir.phealing.fr/terminology/drugDefinitionLevel",
2647
+ valueString: "GENERIC",
2648
+ extension: []
2649
+ },
2650
+ {
2651
+ url: "http://fhir.phealing.fr/terminology/productName",
2652
+ valueString: "P\u251C\xAErindopril tert-butylamine",
2653
+ extension: []
2654
+ },
2655
+ {
2656
+ url: "http://fhir.phealing.fr/terminology/productDosage",
2657
+ valueString: "4 mg",
2658
+ extension: []
2659
+ },
2660
+ {
2661
+ url: "http://fhir.phealing.fr/terminology/productForm",
2662
+ valueString: "Comprim\u251C\xAE s\u251C\xAEcable",
2663
+ extension: []
2664
+ },
2665
+ {
2666
+ url: "http://fhir.phealing.fr/terminology/boundingBox",
2667
+ extension: [
2668
+ {
2669
+ url: "http://fhir.phealing.fr/terminology/boundingBox/page",
2670
+ valueInteger: 1
2671
+ },
2672
+ {
2673
+ url: "http://fhir.phealing.fr/terminology/boundingBox/height",
2674
+ valueDecimal: 0.01536
2675
+ },
2676
+ {
2677
+ url: "http://fhir.phealing.fr/terminology/boundingBox/left",
2678
+ valueDecimal: 0.0996
2679
+ },
2680
+ {
2681
+ url: "http://fhir.phealing.fr/terminology/boundingBox/top",
2682
+ valueDecimal: 0.39359
2683
+ },
2684
+ {
2685
+ url: "http://fhir.phealing.fr/terminology/boundingBox/width",
2686
+ valueDecimal: 0.29727
2687
+ }
2688
+ ]
2689
+ }
2690
+ ]
2691
+ }
2692
+ },
2693
+ {
2694
+ fullUrl: "MedicationRequest/a96b2a6e-7a60-43f3-a322-2e50ea6f9daa",
2695
+ resource: {
2696
+ resourceType: "MedicationRequest",
2697
+ id: "a96b2a6e-7a60-43f3-a322-2e50ea6f9daa",
2698
+ status: "unknown",
2699
+ intent: "order",
2700
+ subject: {
2701
+ display: "Unknown",
2702
+ reference: "Patient/unknown"
2703
+ },
2704
+ medication: {
2705
+ reference: {
2706
+ reference: "Medication/8875b52d-70e6-432f-9ec0-36f552f0ecc7",
2707
+ type: "Medication"
2708
+ }
2709
+ },
2710
+ dosageInstruction: [
2711
+ {
2712
+ sequence: 1,
2713
+ timing: {
2714
+ code: {
2715
+ coding: [
2716
+ {
2717
+ code: "AM",
2718
+ system: "http://hl7.org/fhir/ValueSet/timing-abbreviation"
2719
+ }
2720
+ ]
2721
+ },
2722
+ repeat: {
2723
+ dayOfWeek: [],
2724
+ extension: [],
2725
+ frequency: 1,
2726
+ period: 1,
2727
+ periodUnit: "d",
2728
+ timeOfDay: [],
2729
+ when: [
2730
+ "MORN"
2731
+ ]
2732
+ }
2733
+ },
2734
+ doseAndRate: [
2735
+ {
2736
+ doseQuantity: {
2737
+ code: "1",
2738
+ system: "https://platform.claudebernard.fr/fhir/ValueSet/intake-units",
2739
+ unit: "comprim\u251C\xAE",
2740
+ value: 1
2741
+ },
2742
+ type: {
2743
+ coding: [
2744
+ {
2745
+ code: "ordered",
2746
+ display: "Ordered",
2747
+ system: "http://terminology.hl7.org/CodeSystem/dose-rate-type"
2748
+ }
2749
+ ]
2750
+ }
2751
+ }
2752
+ ],
2753
+ asNeeded: false,
2754
+ asNeededFor: [],
2755
+ maxDosePerPeriod: []
2756
+ }
2757
+ ],
2758
+ reason: []
2759
+ }
2760
+ },
2761
+ {
2762
+ fullUrl: "DocumentReference/2225c84c-d955-cd6a-3617-64b4318e6a7a",
2763
+ resource: {
2764
+ resourceType: "DocumentReference",
2765
+ id: "2225c84c-d955-cd6a-3617-64b4318e6a7a",
2766
+ status: "current",
2767
+ type: {
2768
+ coding: [
2769
+ {
2770
+ system: "http://loinc.org",
2771
+ code: "57833-6",
2772
+ display: "Prescription for medication"
2773
+ }
2774
+ ],
2775
+ text: "Ordonnance du 10 septembre 2025"
2776
+ },
2777
+ subject: {
2778
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
2779
+ },
2780
+ date: "2025-09-10T12:31:45Z",
2781
+ content: [
2782
+ {
2783
+ attachment: {
2784
+ contentType: "application/pdf",
2785
+ title: "prescription-exemple-4.pdf",
2786
+ hash: ""
2787
+ }
2788
+ }
2789
+ ],
2790
+ context: [
2791
+ {
2792
+ reference: "Encounter/encounter-1"
2793
+ }
2794
+ ]
2795
+ }
2796
+ }
2797
+ ]
2798
+ };
2799
+
2800
+ // ../data/prescription/prescription-dosage-list.json
2801
+ var prescription_dosage_list_default = {
2802
+ resourceType: "Bundle",
2803
+ id: "cf560efa-8411-4b4b-9171-9fab0bab1d9c",
2804
+ meta: {
2805
+ versionId: "1",
2806
+ lastUpdated: "2026-01-09T16:42:36.618+01:00"
2807
+ },
2808
+ type: "collection",
2809
+ entry: [
2810
+ {
2811
+ fullUrl: "Medication/f5fd4686-872b-63a5-840c-c1113450801e",
2812
+ resource: {
2813
+ resourceType: "Medication",
2814
+ id: "f5fd4686-872b-63a5-840c-c1113450801e",
2815
+ meta: {
2816
+ versionId: "1",
2817
+ lastUpdated: "2026-01-09T16:42:36.618+01:00"
2818
+ },
2819
+ code: {
2820
+ coding: [
2821
+ {
2822
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code",
2823
+ code: "29818"
2824
+ }
2825
+ ]
2826
+ },
2827
+ status: "active"
2828
+ }
2829
+ },
2830
+ {
2831
+ fullUrl: "MedicationRequest/00e8dab9-9f14-4298-9d9c-94119984a563",
2832
+ resource: {
2833
+ resourceType: "MedicationRequest",
2834
+ id: "00e8dab9-9f14-4298-9d9c-94119984a563",
2835
+ meta: {
2836
+ versionId: "1",
2837
+ lastUpdated: "2026-01-09T16:42:36.618+01:00"
2838
+ },
2839
+ status: "active",
2840
+ intent: "order",
2841
+ medication: {
2842
+ reference: {
2843
+ reference: "Medication/f5fd4686-872b-63a5-840c-c1113450801e"
2844
+ }
2845
+ },
2846
+ subject: {
2847
+ reference: "Patient/example"
2848
+ },
2849
+ authoredOn: "2026-01-09T16:42:36+01:00",
2850
+ note: [
2851
+ {
2852
+ text: "Adulte de plus de 18 ans. Traitement d'entretien. (Implicite)"
2853
+ }
2854
+ ],
2855
+ dosageInstruction: [
2856
+ {
2857
+ sequence: 3,
2858
+ additionalInstruction: [
2859
+ {
2860
+ text: "à dissoudre dans un grand verre d'eau"
2861
+ }
2862
+ ],
2863
+ patientInstruction: "1 sachet par jour à dissoudre dans un grand verre d'eau. ",
2864
+ timing: {
2865
+ repeat: {
2866
+ period: 1,
2867
+ periodUnit: "d"
2868
+ }
2869
+ },
2870
+ doseAndRate: [
2871
+ {
2872
+ doseQuantity: {
2873
+ value: 1,
2874
+ unit: "sachet",
2875
+ system: "https://platform.claudebernard.fr/fhir/ImplementationGuides/ValueSet/intake-units",
2876
+ code: "13"
2877
+ }
2878
+ }
2879
+ ]
2880
+ }
2881
+ ]
2882
+ }
2883
+ }
2884
+ ]
2885
+ };
2886
+
2887
+ // src/index.ts
2888
+ var patientMinimal = patient_minimal_default;
2889
+ var patientComplete = patient_complete_default;
2890
+ var patientMultipleConditions = patient_multiple_conditions_default;
2891
+ var patientPediatric = patient_pediatric_default;
2892
+ var patientRenalCreatinineClearance = patient_renal_creatinine_clearance_default;
2893
+ var patientRenalGfrAbsolute = patient_renal_gfr_absolute_default;
2894
+ var patientRenalGfrNormalized = patient_renal_gfr_normalized_default;
2895
+ var prescriptionComplete = prescription_complete_default;
2896
+ var prescriptionWithAlternative = prescription_with_alternative_default;
2897
+ var prescriptionSingleMedication = prescription_single_medication_default;
2898
+ var prescriptionWithDocumentReference = prescription_with_document_reference_default;
2899
+ var prescriptionPosology = prescription_dosage_list_default;
2900
+ // Annotate the CommonJS export names for ESM import in node:
2901
+ 0 && (module.exports = {
2902
+ patientComplete,
2903
+ patientMinimal,
2904
+ patientMultipleConditions,
2905
+ patientPediatric,
2906
+ patientRenalCreatinineClearance,
2907
+ patientRenalGfrAbsolute,
2908
+ patientRenalGfrNormalized,
2909
+ prescriptionComplete,
2910
+ prescriptionPosology,
2911
+ prescriptionSingleMedication,
2912
+ prescriptionWithAlternative,
2913
+ prescriptionWithDocumentReference
2914
+ });