@claudebernard/fhir-prescription-mocks 2.2.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +277 -0
- package/dist/index.mjs +276 -0
- package/package.json +1 -1
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,
|
|
@@ -2860,6 +2861,280 @@ var prescription_dosage_list_default = {
|
|
|
2860
2861
|
]
|
|
2861
2862
|
};
|
|
2862
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: "33025",
|
|
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
|
+
};
|
|
3137
|
+
|
|
2863
3138
|
// src/index.ts
|
|
2864
3139
|
var patientMinimal = patient_minimal_default;
|
|
2865
3140
|
var patientComplete = patient_complete_default;
|
|
@@ -2873,8 +3148,10 @@ var prescriptionWithAlternative = prescription_with_alternative_default;
|
|
|
2873
3148
|
var prescriptionSingleMedication = prescription_single_medication_default;
|
|
2874
3149
|
var prescriptionWithDocumentReference = prescription_with_document_reference_default;
|
|
2875
3150
|
var prescriptionPosology = prescription_dosage_list_default;
|
|
3151
|
+
var automedicationComplete = automedication_complete_default;
|
|
2876
3152
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2877
3153
|
0 && (module.exports = {
|
|
3154
|
+
automedicationComplete,
|
|
2878
3155
|
patientComplete,
|
|
2879
3156
|
patientMinimal,
|
|
2880
3157
|
patientMultipleConditions,
|
package/dist/index.mjs
CHANGED
|
@@ -2823,6 +2823,280 @@ var prescription_dosage_list_default = {
|
|
|
2823
2823
|
]
|
|
2824
2824
|
};
|
|
2825
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: "33025",
|
|
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
|
+
};
|
|
3099
|
+
|
|
2826
3100
|
// src/index.ts
|
|
2827
3101
|
var patientMinimal = patient_minimal_default;
|
|
2828
3102
|
var patientComplete = patient_complete_default;
|
|
@@ -2836,7 +3110,9 @@ var prescriptionWithAlternative = prescription_with_alternative_default;
|
|
|
2836
3110
|
var prescriptionSingleMedication = prescription_single_medication_default;
|
|
2837
3111
|
var prescriptionWithDocumentReference = prescription_with_document_reference_default;
|
|
2838
3112
|
var prescriptionPosology = prescription_dosage_list_default;
|
|
3113
|
+
var automedicationComplete = automedication_complete_default;
|
|
2839
3114
|
export {
|
|
3115
|
+
automedicationComplete,
|
|
2840
3116
|
patientComplete,
|
|
2841
3117
|
patientMinimal,
|
|
2842
3118
|
patientMultipleConditions,
|
package/package.json
CHANGED