@claudebernard/fhir-prescription-mocks 2.1.5 → 2.3.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/README.md CHANGED
@@ -49,6 +49,12 @@ expect(myValidator.validate(patientComplete)).toBe(true);
49
49
  | `prescriptionWithDocumentReference` | Prescription linked to a document reference |
50
50
  | `prescriptionPosology` | Prescription with detailed dosage instructions |
51
51
 
52
+ ### Automedication bundles
53
+
54
+ | Export | Description |
55
+ |---|---|
56
+ | `automedicationComplete` | Self-reported OTC medication use — `MedicationStatement` resources (paracetamol, aspirin, diclofenac) plus their referenced `Medication` resources |
57
+
52
58
  Only the exports listed above ship with the package (`files: ["dist", "README.md"]`) — the raw JSON
53
59
  of the monorepo's `fhir-mock/data/` is not published. In particular
54
60
  `composite-anonymous-context.json` has no export yet, so it is not reachable from npm.
package/dist/index.d.mts CHANGED
@@ -12,5 +12,6 @@ declare const prescriptionWithAlternative: Bundle;
12
12
  declare const prescriptionSingleMedication: Bundle;
13
13
  declare const prescriptionWithDocumentReference: Bundle;
14
14
  declare const prescriptionPosology: Bundle;
15
+ declare const automedicationComplete: Bundle;
15
16
 
16
- export { patientComplete, patientMinimal, patientMultipleConditions, patientPediatric, patientRenalCreatinineClearance, patientRenalGfrAbsolute, patientRenalGfrNormalized, prescriptionComplete, prescriptionPosology, prescriptionSingleMedication, prescriptionWithAlternative, prescriptionWithDocumentReference };
17
+ export { automedicationComplete, patientComplete, patientMinimal, patientMultipleConditions, patientPediatric, patientRenalCreatinineClearance, patientRenalGfrAbsolute, patientRenalGfrNormalized, prescriptionComplete, prescriptionPosology, prescriptionSingleMedication, prescriptionWithAlternative, prescriptionWithDocumentReference };
package/dist/index.d.ts CHANGED
@@ -12,5 +12,6 @@ declare const prescriptionWithAlternative: Bundle;
12
12
  declare const prescriptionSingleMedication: Bundle;
13
13
  declare const prescriptionWithDocumentReference: Bundle;
14
14
  declare const prescriptionPosology: Bundle;
15
+ declare const automedicationComplete: Bundle;
15
16
 
16
- export { patientComplete, patientMinimal, patientMultipleConditions, patientPediatric, patientRenalCreatinineClearance, patientRenalGfrAbsolute, patientRenalGfrNormalized, prescriptionComplete, prescriptionPosology, prescriptionSingleMedication, prescriptionWithAlternative, prescriptionWithDocumentReference };
17
+ export { automedicationComplete, patientComplete, patientMinimal, patientMultipleConditions, patientPediatric, patientRenalCreatinineClearance, patientRenalGfrAbsolute, patientRenalGfrNormalized, prescriptionComplete, prescriptionPosology, prescriptionSingleMedication, prescriptionWithAlternative, prescriptionWithDocumentReference };
package/dist/index.js CHANGED
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
+ automedicationComplete: () => automedicationComplete,
23
24
  patientComplete: () => patientComplete,
24
25
  patientMinimal: () => patientMinimal,
25
26
  patientMultipleConditions: () => patientMultipleConditions,
@@ -1522,6 +1523,19 @@ var prescription_complete_default = {
1522
1523
  id: "428ed2db-8d77-4c0e-fe99-34b0d802d52e",
1523
1524
  status: "active",
1524
1525
  intent: "order",
1526
+ effectiveDosePeriod: {
1527
+ start: "2020-08-20",
1528
+ end: "2020-08-27"
1529
+ },
1530
+ courseOfTherapyType: {
1531
+ coding: [
1532
+ {
1533
+ system: "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy",
1534
+ code: "acute",
1535
+ display: "Short course (acute) therapy"
1536
+ }
1537
+ ]
1538
+ },
1525
1539
  medication: {
1526
1540
  reference: {
1527
1541
  reference: "Medication/3d37a495-3c1a-5dc5-6218-726adf28d861"
@@ -1566,6 +1580,18 @@ var prescription_complete_default = {
1566
1580
  },
1567
1581
  status: "active",
1568
1582
  intent: "order",
1583
+ effectiveDosePeriod: {
1584
+ start: "2020-08-20"
1585
+ },
1586
+ courseOfTherapyType: {
1587
+ coding: [
1588
+ {
1589
+ system: "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy",
1590
+ code: "continuous",
1591
+ display: "Continuous long term therapy"
1592
+ }
1593
+ ]
1594
+ },
1569
1595
  medication: {
1570
1596
  reference: {
1571
1597
  reference: "Medication/82c3d1d8-3927-890c-eb95-a6ff2c8b03a6"
@@ -2835,6 +2861,411 @@ var prescription_dosage_list_default = {
2835
2861
  ]
2836
2862
  };
2837
2863
 
2864
+ // ../data/bundle/automedication-complete.json
2865
+ var automedication_complete_default = {
2866
+ resourceType: "Bundle",
2867
+ type: "collection",
2868
+ id: "e772104a-525b-429f-ae18-c9b010de6b2f",
2869
+ entry: [
2870
+ {
2871
+ fullUrl: "Medication/6854e7cd-ac9b-4847-937c-0ddbb6642f63",
2872
+ resource: {
2873
+ resourceType: "Medication",
2874
+ id: "6854e7cd-ac9b-4847-937c-0ddbb6642f63",
2875
+ code: {
2876
+ coding: [
2877
+ {
2878
+ code: "N02BE01",
2879
+ display: "Parac\xE9tamol",
2880
+ system: "http://www.whocc.no/atc"
2881
+ },
2882
+ {
2883
+ code: "N02BE",
2884
+ display: "Anilides",
2885
+ system: "http://www.whocc.no/atc"
2886
+ },
2887
+ {
2888
+ code: "N02B",
2889
+ display: "Autres antalgiques et antipyr\xE9tiques",
2890
+ system: "http://www.whocc.no/atc"
2891
+ },
2892
+ {
2893
+ code: "N02",
2894
+ display: "Analg\xE9siques",
2895
+ system: "http://www.whocc.no/atc"
2896
+ },
2897
+ {
2898
+ code: "N",
2899
+ display: "Syst\xE8me nerveux",
2900
+ system: "http://www.whocc.no/atc"
2901
+ },
2902
+ {
2903
+ code: "24466",
2904
+ display: "DOLIPRANE 1000MG CPR 8",
2905
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code"
2906
+ }
2907
+ ],
2908
+ text: "DOLIPRANE 1000MG CPR 8"
2909
+ }
2910
+ }
2911
+ },
2912
+ {
2913
+ fullUrl: "MedicationStatement/05497896-f3be-40aa-894d-01956f1765cf",
2914
+ resource: {
2915
+ resourceType: "MedicationStatement",
2916
+ id: "05497896-f3be-40aa-894d-01956f1765cf",
2917
+ status: "recorded",
2918
+ category: [
2919
+ {
2920
+ coding: [
2921
+ {
2922
+ system: "http://terminology.hl7.org/CodeSystem/medication-statement-category",
2923
+ code: "patientspecified",
2924
+ display: "Patient Specified"
2925
+ }
2926
+ ]
2927
+ }
2928
+ ],
2929
+ medication: {
2930
+ reference: {
2931
+ reference: "Medication/6854e7cd-ac9b-4847-937c-0ddbb6642f63"
2932
+ }
2933
+ },
2934
+ subject: {
2935
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
2936
+ },
2937
+ effectivePeriod: {
2938
+ start: "2026-08-20",
2939
+ end: "2026-08-23"
2940
+ },
2941
+ dateAsserted: "2026-08-27",
2942
+ informationSource: [
2943
+ {
2944
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
2945
+ }
2946
+ ],
2947
+ reason: [
2948
+ {
2949
+ concept: {
2950
+ coding: [
2951
+ {
2952
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/amm-pathologies",
2953
+ code: "1326",
2954
+ display: "C\xE9phal\xE9e"
2955
+ }
2956
+ ],
2957
+ text: "Mal de t\xEAte"
2958
+ }
2959
+ }
2960
+ ],
2961
+ note: [
2962
+ {
2963
+ text: "Autom\xE9dication : prise ponctuelle sans avis m\xE9dical, en cas de douleur"
2964
+ }
2965
+ ],
2966
+ dosage: [
2967
+ {
2968
+ text: "1 comprim\xE9 toutes les 6 heures si douleur, sans d\xE9passer 3 g par jour",
2969
+ route: {
2970
+ coding: [
2971
+ {
2972
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/dosage-routes",
2973
+ code: "13",
2974
+ display: "orale"
2975
+ }
2976
+ ]
2977
+ },
2978
+ timing: {
2979
+ repeat: {
2980
+ frequency: 1,
2981
+ period: 6,
2982
+ periodUnit: "h"
2983
+ }
2984
+ },
2985
+ asNeeded: true,
2986
+ asNeededFor: [
2987
+ {
2988
+ coding: [
2989
+ {
2990
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/amm-pathologies",
2991
+ code: "1326",
2992
+ display: "C\xE9phal\xE9e"
2993
+ }
2994
+ ]
2995
+ }
2996
+ ],
2997
+ doseAndRate: [
2998
+ {
2999
+ doseQuantity: {
3000
+ value: 1,
3001
+ unit: "comprim\xE9",
3002
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/dosage-intake-units",
3003
+ code: "1"
3004
+ }
3005
+ }
3006
+ ],
3007
+ maxDosePerPeriod: [
3008
+ {
3009
+ numerator: {
3010
+ value: 3,
3011
+ unit: "g",
3012
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/dosage-intake-units",
3013
+ code: "9"
3014
+ },
3015
+ denominator: {
3016
+ value: 1,
3017
+ unit: "d",
3018
+ system: "http://unitsofmeasure.org",
3019
+ code: "d"
3020
+ }
3021
+ }
3022
+ ]
3023
+ }
3024
+ ]
3025
+ }
3026
+ },
3027
+ {
3028
+ fullUrl: "Medication/6e08661b-1db2-da07-8d01-a6626b3df347",
3029
+ resource: {
3030
+ resourceType: "Medication",
3031
+ id: "6e08661b-1db2-da07-8d01-a6626b3df347",
3032
+ code: {
3033
+ coding: [
3034
+ {
3035
+ code: "B01AC06",
3036
+ display: "Ac\xE9tylsalicylique, acide",
3037
+ system: "http://www.whocc.no/atc"
3038
+ },
3039
+ {
3040
+ code: "B01AC",
3041
+ display: "Inhibiteurs de l'agr\xE9gation plaquettaire, h\xE9parine exclue",
3042
+ system: "http://www.whocc.no/atc"
3043
+ },
3044
+ {
3045
+ code: "B01A",
3046
+ display: "Antithrombotiques",
3047
+ system: "http://www.whocc.no/atc"
3048
+ },
3049
+ {
3050
+ code: "B01",
3051
+ display: "Antithrombotiques",
3052
+ system: "http://www.whocc.no/atc"
3053
+ },
3054
+ {
3055
+ code: "B",
3056
+ display: "Sang et organes h\xE9matopo\xEF\xE9tiques",
3057
+ system: "http://www.whocc.no/atc"
3058
+ },
3059
+ {
3060
+ code: "29818",
3061
+ display: "KARDEGIC 75MG SACHET 30",
3062
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code"
3063
+ }
3064
+ ],
3065
+ text: "KARDEGIC 75MG SACHET 30"
3066
+ }
3067
+ }
3068
+ },
3069
+ {
3070
+ fullUrl: "MedicationStatement/d1d6b86f-0776-4953-8519-ecbe2863c7f6",
3071
+ resource: {
3072
+ resourceType: "MedicationStatement",
3073
+ id: "d1d6b86f-0776-4953-8519-ecbe2863c7f6",
3074
+ status: "recorded",
3075
+ category: [
3076
+ {
3077
+ coding: [
3078
+ {
3079
+ system: "http://terminology.hl7.org/CodeSystem/medication-statement-category",
3080
+ code: "patientspecified",
3081
+ display: "Patient Specified"
3082
+ }
3083
+ ]
3084
+ }
3085
+ ],
3086
+ medication: {
3087
+ reference: {
3088
+ reference: "Medication/6e08661b-1db2-da07-8d01-a6626b3df347"
3089
+ }
3090
+ },
3091
+ subject: {
3092
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
3093
+ },
3094
+ effectivePeriod: {
3095
+ start: "2026-06-01"
3096
+ },
3097
+ dateAsserted: "2026-08-27",
3098
+ informationSource: [
3099
+ {
3100
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
3101
+ }
3102
+ ],
3103
+ note: [
3104
+ {
3105
+ text: "Autom\xE9dication : prise quotidienne \xE0 vis\xE9e antiagr\xE9gante plaquettaire, non prescrite"
3106
+ }
3107
+ ],
3108
+ dosage: [
3109
+ {
3110
+ text: "1 sachet par jour, le matin",
3111
+ patientInstruction: "1 sachet par jour, le matin",
3112
+ timing: {
3113
+ repeat: {
3114
+ when: [
3115
+ "MORN"
3116
+ ],
3117
+ period: 1,
3118
+ periodUnit: "d"
3119
+ }
3120
+ },
3121
+ doseAndRate: [
3122
+ {
3123
+ doseQuantity: {
3124
+ value: 1,
3125
+ unit: "sachet",
3126
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/dosage-intake-units",
3127
+ code: "13"
3128
+ }
3129
+ }
3130
+ ]
3131
+ }
3132
+ ]
3133
+ }
3134
+ },
3135
+ {
3136
+ fullUrl: "Medication/4241cd43-0163-16c8-7d25-05ef26f8df7f",
3137
+ resource: {
3138
+ resourceType: "Medication",
3139
+ id: "4241cd43-0163-16c8-7d25-05ef26f8df7f",
3140
+ code: {
3141
+ coding: [
3142
+ {
3143
+ code: "M01AB05",
3144
+ display: "Diclof\xE9nac",
3145
+ system: "http://www.whocc.no/atc"
3146
+ },
3147
+ {
3148
+ code: "M01AB",
3149
+ display: "D\xE9riv\xE9s de l'acide ac\xE9tique et substances apparent\xE9es",
3150
+ system: "http://www.whocc.no/atc"
3151
+ },
3152
+ {
3153
+ code: "M01A",
3154
+ display: "Anti-inflammatoires et antirhumatismaux non st\xE9ro\xEFdiens",
3155
+ system: "http://www.whocc.no/atc"
3156
+ },
3157
+ {
3158
+ code: "M01",
3159
+ display: "Anti-inflammatoires et antirhumatismaux",
3160
+ system: "http://www.whocc.no/atc"
3161
+ },
3162
+ {
3163
+ code: "M",
3164
+ display: "Syst\xE8me musculo-squelettique",
3165
+ system: "http://www.whocc.no/atc"
3166
+ },
3167
+ {
3168
+ code: "23614",
3169
+ display: "VOLTARENE 50MG CPR 30",
3170
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code"
3171
+ }
3172
+ ],
3173
+ text: "VOLTARENE 50MG CPR 30"
3174
+ }
3175
+ }
3176
+ },
3177
+ {
3178
+ fullUrl: "MedicationStatement/102608b5-a55a-4433-b1e8-9e169ce23a66",
3179
+ resource: {
3180
+ resourceType: "MedicationStatement",
3181
+ id: "102608b5-a55a-4433-b1e8-9e169ce23a66",
3182
+ status: "recorded",
3183
+ category: [
3184
+ {
3185
+ coding: [
3186
+ {
3187
+ system: "http://terminology.hl7.org/CodeSystem/medication-statement-category",
3188
+ code: "patientspecified",
3189
+ display: "Patient Specified"
3190
+ }
3191
+ ]
3192
+ }
3193
+ ],
3194
+ medication: {
3195
+ reference: {
3196
+ reference: "Medication/4241cd43-0163-16c8-7d25-05ef26f8df7f"
3197
+ }
3198
+ },
3199
+ subject: {
3200
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
3201
+ },
3202
+ effectiveDateTime: "2026-08-25",
3203
+ dateAsserted: "2026-08-27",
3204
+ informationSource: [
3205
+ {
3206
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
3207
+ }
3208
+ ],
3209
+ note: [
3210
+ {
3211
+ text: "Autom\xE9dication : bo\xEEte restante d'une pr\xE9c\xE9dente prescription, reprise sans avis m\xE9dical"
3212
+ }
3213
+ ],
3214
+ dosage: [
3215
+ {
3216
+ text: "1 comprim\xE9 matin et soir en cas de douleur, pendant 3 jours",
3217
+ patientInstruction: "1 comprim\xE9 matin et soir en cas de douleur, pendant 3 jours",
3218
+ route: {
3219
+ coding: [
3220
+ {
3221
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/dosage-routes",
3222
+ code: "13",
3223
+ display: "orale"
3224
+ }
3225
+ ]
3226
+ },
3227
+ timing: {
3228
+ repeat: {
3229
+ when: [
3230
+ "MORN",
3231
+ "EVE"
3232
+ ],
3233
+ frequency: 2,
3234
+ period: 1,
3235
+ periodUnit: "d",
3236
+ duration: 3,
3237
+ durationUnit: "d"
3238
+ }
3239
+ },
3240
+ asNeeded: true,
3241
+ asNeededFor: [
3242
+ {
3243
+ coding: [
3244
+ {
3245
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/amm-pathologies",
3246
+ code: "1909",
3247
+ display: "Douleur"
3248
+ }
3249
+ ]
3250
+ }
3251
+ ],
3252
+ doseAndRate: [
3253
+ {
3254
+ doseQuantity: {
3255
+ value: 1,
3256
+ unit: "comprim\xE9",
3257
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/dosage-intake-units",
3258
+ code: "1"
3259
+ }
3260
+ }
3261
+ ]
3262
+ }
3263
+ ]
3264
+ }
3265
+ }
3266
+ ]
3267
+ };
3268
+
2838
3269
  // src/index.ts
2839
3270
  var patientMinimal = patient_minimal_default;
2840
3271
  var patientComplete = patient_complete_default;
@@ -2848,8 +3279,10 @@ var prescriptionWithAlternative = prescription_with_alternative_default;
2848
3279
  var prescriptionSingleMedication = prescription_single_medication_default;
2849
3280
  var prescriptionWithDocumentReference = prescription_with_document_reference_default;
2850
3281
  var prescriptionPosology = prescription_dosage_list_default;
3282
+ var automedicationComplete = automedication_complete_default;
2851
3283
  // Annotate the CommonJS export names for ESM import in node:
2852
3284
  0 && (module.exports = {
3285
+ automedicationComplete,
2853
3286
  patientComplete,
2854
3287
  patientMinimal,
2855
3288
  patientMultipleConditions,
package/dist/index.mjs CHANGED
@@ -1485,6 +1485,19 @@ var prescription_complete_default = {
1485
1485
  id: "428ed2db-8d77-4c0e-fe99-34b0d802d52e",
1486
1486
  status: "active",
1487
1487
  intent: "order",
1488
+ effectiveDosePeriod: {
1489
+ start: "2020-08-20",
1490
+ end: "2020-08-27"
1491
+ },
1492
+ courseOfTherapyType: {
1493
+ coding: [
1494
+ {
1495
+ system: "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy",
1496
+ code: "acute",
1497
+ display: "Short course (acute) therapy"
1498
+ }
1499
+ ]
1500
+ },
1488
1501
  medication: {
1489
1502
  reference: {
1490
1503
  reference: "Medication/3d37a495-3c1a-5dc5-6218-726adf28d861"
@@ -1529,6 +1542,18 @@ var prescription_complete_default = {
1529
1542
  },
1530
1543
  status: "active",
1531
1544
  intent: "order",
1545
+ effectiveDosePeriod: {
1546
+ start: "2020-08-20"
1547
+ },
1548
+ courseOfTherapyType: {
1549
+ coding: [
1550
+ {
1551
+ system: "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy",
1552
+ code: "continuous",
1553
+ display: "Continuous long term therapy"
1554
+ }
1555
+ ]
1556
+ },
1532
1557
  medication: {
1533
1558
  reference: {
1534
1559
  reference: "Medication/82c3d1d8-3927-890c-eb95-a6ff2c8b03a6"
@@ -2798,6 +2823,411 @@ var prescription_dosage_list_default = {
2798
2823
  ]
2799
2824
  };
2800
2825
 
2826
+ // ../data/bundle/automedication-complete.json
2827
+ var automedication_complete_default = {
2828
+ resourceType: "Bundle",
2829
+ type: "collection",
2830
+ id: "e772104a-525b-429f-ae18-c9b010de6b2f",
2831
+ entry: [
2832
+ {
2833
+ fullUrl: "Medication/6854e7cd-ac9b-4847-937c-0ddbb6642f63",
2834
+ resource: {
2835
+ resourceType: "Medication",
2836
+ id: "6854e7cd-ac9b-4847-937c-0ddbb6642f63",
2837
+ code: {
2838
+ coding: [
2839
+ {
2840
+ code: "N02BE01",
2841
+ display: "Parac\xE9tamol",
2842
+ system: "http://www.whocc.no/atc"
2843
+ },
2844
+ {
2845
+ code: "N02BE",
2846
+ display: "Anilides",
2847
+ system: "http://www.whocc.no/atc"
2848
+ },
2849
+ {
2850
+ code: "N02B",
2851
+ display: "Autres antalgiques et antipyr\xE9tiques",
2852
+ system: "http://www.whocc.no/atc"
2853
+ },
2854
+ {
2855
+ code: "N02",
2856
+ display: "Analg\xE9siques",
2857
+ system: "http://www.whocc.no/atc"
2858
+ },
2859
+ {
2860
+ code: "N",
2861
+ display: "Syst\xE8me nerveux",
2862
+ system: "http://www.whocc.no/atc"
2863
+ },
2864
+ {
2865
+ code: "24466",
2866
+ display: "DOLIPRANE 1000MG CPR 8",
2867
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code"
2868
+ }
2869
+ ],
2870
+ text: "DOLIPRANE 1000MG CPR 8"
2871
+ }
2872
+ }
2873
+ },
2874
+ {
2875
+ fullUrl: "MedicationStatement/05497896-f3be-40aa-894d-01956f1765cf",
2876
+ resource: {
2877
+ resourceType: "MedicationStatement",
2878
+ id: "05497896-f3be-40aa-894d-01956f1765cf",
2879
+ status: "recorded",
2880
+ category: [
2881
+ {
2882
+ coding: [
2883
+ {
2884
+ system: "http://terminology.hl7.org/CodeSystem/medication-statement-category",
2885
+ code: "patientspecified",
2886
+ display: "Patient Specified"
2887
+ }
2888
+ ]
2889
+ }
2890
+ ],
2891
+ medication: {
2892
+ reference: {
2893
+ reference: "Medication/6854e7cd-ac9b-4847-937c-0ddbb6642f63"
2894
+ }
2895
+ },
2896
+ subject: {
2897
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
2898
+ },
2899
+ effectivePeriod: {
2900
+ start: "2026-08-20",
2901
+ end: "2026-08-23"
2902
+ },
2903
+ dateAsserted: "2026-08-27",
2904
+ informationSource: [
2905
+ {
2906
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
2907
+ }
2908
+ ],
2909
+ reason: [
2910
+ {
2911
+ concept: {
2912
+ coding: [
2913
+ {
2914
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/amm-pathologies",
2915
+ code: "1326",
2916
+ display: "C\xE9phal\xE9e"
2917
+ }
2918
+ ],
2919
+ text: "Mal de t\xEAte"
2920
+ }
2921
+ }
2922
+ ],
2923
+ note: [
2924
+ {
2925
+ text: "Autom\xE9dication : prise ponctuelle sans avis m\xE9dical, en cas de douleur"
2926
+ }
2927
+ ],
2928
+ dosage: [
2929
+ {
2930
+ text: "1 comprim\xE9 toutes les 6 heures si douleur, sans d\xE9passer 3 g par jour",
2931
+ route: {
2932
+ coding: [
2933
+ {
2934
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/dosage-routes",
2935
+ code: "13",
2936
+ display: "orale"
2937
+ }
2938
+ ]
2939
+ },
2940
+ timing: {
2941
+ repeat: {
2942
+ frequency: 1,
2943
+ period: 6,
2944
+ periodUnit: "h"
2945
+ }
2946
+ },
2947
+ asNeeded: true,
2948
+ asNeededFor: [
2949
+ {
2950
+ coding: [
2951
+ {
2952
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/amm-pathologies",
2953
+ code: "1326",
2954
+ display: "C\xE9phal\xE9e"
2955
+ }
2956
+ ]
2957
+ }
2958
+ ],
2959
+ doseAndRate: [
2960
+ {
2961
+ doseQuantity: {
2962
+ value: 1,
2963
+ unit: "comprim\xE9",
2964
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/dosage-intake-units",
2965
+ code: "1"
2966
+ }
2967
+ }
2968
+ ],
2969
+ maxDosePerPeriod: [
2970
+ {
2971
+ numerator: {
2972
+ value: 3,
2973
+ unit: "g",
2974
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/dosage-intake-units",
2975
+ code: "9"
2976
+ },
2977
+ denominator: {
2978
+ value: 1,
2979
+ unit: "d",
2980
+ system: "http://unitsofmeasure.org",
2981
+ code: "d"
2982
+ }
2983
+ }
2984
+ ]
2985
+ }
2986
+ ]
2987
+ }
2988
+ },
2989
+ {
2990
+ fullUrl: "Medication/6e08661b-1db2-da07-8d01-a6626b3df347",
2991
+ resource: {
2992
+ resourceType: "Medication",
2993
+ id: "6e08661b-1db2-da07-8d01-a6626b3df347",
2994
+ code: {
2995
+ coding: [
2996
+ {
2997
+ code: "B01AC06",
2998
+ display: "Ac\xE9tylsalicylique, acide",
2999
+ system: "http://www.whocc.no/atc"
3000
+ },
3001
+ {
3002
+ code: "B01AC",
3003
+ display: "Inhibiteurs de l'agr\xE9gation plaquettaire, h\xE9parine exclue",
3004
+ system: "http://www.whocc.no/atc"
3005
+ },
3006
+ {
3007
+ code: "B01A",
3008
+ display: "Antithrombotiques",
3009
+ system: "http://www.whocc.no/atc"
3010
+ },
3011
+ {
3012
+ code: "B01",
3013
+ display: "Antithrombotiques",
3014
+ system: "http://www.whocc.no/atc"
3015
+ },
3016
+ {
3017
+ code: "B",
3018
+ display: "Sang et organes h\xE9matopo\xEF\xE9tiques",
3019
+ system: "http://www.whocc.no/atc"
3020
+ },
3021
+ {
3022
+ code: "29818",
3023
+ display: "KARDEGIC 75MG SACHET 30",
3024
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code"
3025
+ }
3026
+ ],
3027
+ text: "KARDEGIC 75MG SACHET 30"
3028
+ }
3029
+ }
3030
+ },
3031
+ {
3032
+ fullUrl: "MedicationStatement/d1d6b86f-0776-4953-8519-ecbe2863c7f6",
3033
+ resource: {
3034
+ resourceType: "MedicationStatement",
3035
+ id: "d1d6b86f-0776-4953-8519-ecbe2863c7f6",
3036
+ status: "recorded",
3037
+ category: [
3038
+ {
3039
+ coding: [
3040
+ {
3041
+ system: "http://terminology.hl7.org/CodeSystem/medication-statement-category",
3042
+ code: "patientspecified",
3043
+ display: "Patient Specified"
3044
+ }
3045
+ ]
3046
+ }
3047
+ ],
3048
+ medication: {
3049
+ reference: {
3050
+ reference: "Medication/6e08661b-1db2-da07-8d01-a6626b3df347"
3051
+ }
3052
+ },
3053
+ subject: {
3054
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
3055
+ },
3056
+ effectivePeriod: {
3057
+ start: "2026-06-01"
3058
+ },
3059
+ dateAsserted: "2026-08-27",
3060
+ informationSource: [
3061
+ {
3062
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
3063
+ }
3064
+ ],
3065
+ note: [
3066
+ {
3067
+ text: "Autom\xE9dication : prise quotidienne \xE0 vis\xE9e antiagr\xE9gante plaquettaire, non prescrite"
3068
+ }
3069
+ ],
3070
+ dosage: [
3071
+ {
3072
+ text: "1 sachet par jour, le matin",
3073
+ patientInstruction: "1 sachet par jour, le matin",
3074
+ timing: {
3075
+ repeat: {
3076
+ when: [
3077
+ "MORN"
3078
+ ],
3079
+ period: 1,
3080
+ periodUnit: "d"
3081
+ }
3082
+ },
3083
+ doseAndRate: [
3084
+ {
3085
+ doseQuantity: {
3086
+ value: 1,
3087
+ unit: "sachet",
3088
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/dosage-intake-units",
3089
+ code: "13"
3090
+ }
3091
+ }
3092
+ ]
3093
+ }
3094
+ ]
3095
+ }
3096
+ },
3097
+ {
3098
+ fullUrl: "Medication/4241cd43-0163-16c8-7d25-05ef26f8df7f",
3099
+ resource: {
3100
+ resourceType: "Medication",
3101
+ id: "4241cd43-0163-16c8-7d25-05ef26f8df7f",
3102
+ code: {
3103
+ coding: [
3104
+ {
3105
+ code: "M01AB05",
3106
+ display: "Diclof\xE9nac",
3107
+ system: "http://www.whocc.no/atc"
3108
+ },
3109
+ {
3110
+ code: "M01AB",
3111
+ display: "D\xE9riv\xE9s de l'acide ac\xE9tique et substances apparent\xE9es",
3112
+ system: "http://www.whocc.no/atc"
3113
+ },
3114
+ {
3115
+ code: "M01A",
3116
+ display: "Anti-inflammatoires et antirhumatismaux non st\xE9ro\xEFdiens",
3117
+ system: "http://www.whocc.no/atc"
3118
+ },
3119
+ {
3120
+ code: "M01",
3121
+ display: "Anti-inflammatoires et antirhumatismaux",
3122
+ system: "http://www.whocc.no/atc"
3123
+ },
3124
+ {
3125
+ code: "M",
3126
+ display: "Syst\xE8me musculo-squelettique",
3127
+ system: "http://www.whocc.no/atc"
3128
+ },
3129
+ {
3130
+ code: "23614",
3131
+ display: "VOLTARENE 50MG CPR 30",
3132
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code"
3133
+ }
3134
+ ],
3135
+ text: "VOLTARENE 50MG CPR 30"
3136
+ }
3137
+ }
3138
+ },
3139
+ {
3140
+ fullUrl: "MedicationStatement/102608b5-a55a-4433-b1e8-9e169ce23a66",
3141
+ resource: {
3142
+ resourceType: "MedicationStatement",
3143
+ id: "102608b5-a55a-4433-b1e8-9e169ce23a66",
3144
+ status: "recorded",
3145
+ category: [
3146
+ {
3147
+ coding: [
3148
+ {
3149
+ system: "http://terminology.hl7.org/CodeSystem/medication-statement-category",
3150
+ code: "patientspecified",
3151
+ display: "Patient Specified"
3152
+ }
3153
+ ]
3154
+ }
3155
+ ],
3156
+ medication: {
3157
+ reference: {
3158
+ reference: "Medication/4241cd43-0163-16c8-7d25-05ef26f8df7f"
3159
+ }
3160
+ },
3161
+ subject: {
3162
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
3163
+ },
3164
+ effectiveDateTime: "2026-08-25",
3165
+ dateAsserted: "2026-08-27",
3166
+ informationSource: [
3167
+ {
3168
+ reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
3169
+ }
3170
+ ],
3171
+ note: [
3172
+ {
3173
+ text: "Autom\xE9dication : bo\xEEte restante d'une pr\xE9c\xE9dente prescription, reprise sans avis m\xE9dical"
3174
+ }
3175
+ ],
3176
+ dosage: [
3177
+ {
3178
+ text: "1 comprim\xE9 matin et soir en cas de douleur, pendant 3 jours",
3179
+ patientInstruction: "1 comprim\xE9 matin et soir en cas de douleur, pendant 3 jours",
3180
+ route: {
3181
+ coding: [
3182
+ {
3183
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/dosage-routes",
3184
+ code: "13",
3185
+ display: "orale"
3186
+ }
3187
+ ]
3188
+ },
3189
+ timing: {
3190
+ repeat: {
3191
+ when: [
3192
+ "MORN",
3193
+ "EVE"
3194
+ ],
3195
+ frequency: 2,
3196
+ period: 1,
3197
+ periodUnit: "d",
3198
+ duration: 3,
3199
+ durationUnit: "d"
3200
+ }
3201
+ },
3202
+ asNeeded: true,
3203
+ asNeededFor: [
3204
+ {
3205
+ coding: [
3206
+ {
3207
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/amm-pathologies",
3208
+ code: "1909",
3209
+ display: "Douleur"
3210
+ }
3211
+ ]
3212
+ }
3213
+ ],
3214
+ doseAndRate: [
3215
+ {
3216
+ doseQuantity: {
3217
+ value: 1,
3218
+ unit: "comprim\xE9",
3219
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/dosage-intake-units",
3220
+ code: "1"
3221
+ }
3222
+ }
3223
+ ]
3224
+ }
3225
+ ]
3226
+ }
3227
+ }
3228
+ ]
3229
+ };
3230
+
2801
3231
  // src/index.ts
2802
3232
  var patientMinimal = patient_minimal_default;
2803
3233
  var patientComplete = patient_complete_default;
@@ -2811,7 +3241,9 @@ var prescriptionWithAlternative = prescription_with_alternative_default;
2811
3241
  var prescriptionSingleMedication = prescription_single_medication_default;
2812
3242
  var prescriptionWithDocumentReference = prescription_with_document_reference_default;
2813
3243
  var prescriptionPosology = prescription_dosage_list_default;
3244
+ var automedicationComplete = automedication_complete_default;
2814
3245
  export {
3246
+ automedicationComplete,
2815
3247
  patientComplete,
2816
3248
  patientMinimal,
2817
3249
  patientMultipleConditions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudebernard/fhir-prescription-mocks",
3
- "version": "2.1.5",
3
+ "version": "2.3.0",
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",