@claudebernard/patient-profile-element 0.5.2 → 0.5.4

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.
@@ -1156,6 +1156,18 @@
1156
1156
  }
1157
1157
  ]
1158
1158
  },
1159
+ {
1160
+ "kind": "javascript-module",
1161
+ "path": "src/shared/interfaces/api-return.interface.ts",
1162
+ "declarations": [],
1163
+ "exports": []
1164
+ },
1165
+ {
1166
+ "kind": "javascript-module",
1167
+ "path": "src/shared/interfaces/patient.ts",
1168
+ "declarations": [],
1169
+ "exports": []
1170
+ },
1159
1171
  {
1160
1172
  "kind": "javascript-module",
1161
1173
  "path": "src/shared/mocks/pathologies.mock.ts",
@@ -1220,142 +1232,6 @@
1220
1232
  }
1221
1233
  ]
1222
1234
  },
1223
- {
1224
- "kind": "javascript-module",
1225
- "path": "src/shared/interfaces/api-return.interface.ts",
1226
- "declarations": [],
1227
- "exports": []
1228
- },
1229
- {
1230
- "kind": "javascript-module",
1231
- "path": "src/shared/interfaces/patient.ts",
1232
- "declarations": [],
1233
- "exports": []
1234
- },
1235
- {
1236
- "kind": "javascript-module",
1237
- "path": "src/shared/services/api-prescription.service.ts",
1238
- "declarations": [
1239
- {
1240
- "kind": "function",
1241
- "name": "convertRenalInsufficiency",
1242
- "parameters": [
1243
- {
1244
- "name": "type",
1245
- "type": {
1246
- "text": "number"
1247
- }
1248
- },
1249
- {
1250
- "name": "value",
1251
- "type": {
1252
- "text": "number"
1253
- }
1254
- },
1255
- {
1256
- "name": "patient",
1257
- "type": {
1258
- "text": "any"
1259
- }
1260
- },
1261
- {
1262
- "name": "apiUrl",
1263
- "type": {
1264
- "text": "string"
1265
- }
1266
- }
1267
- ]
1268
- }
1269
- ],
1270
- "exports": [
1271
- {
1272
- "kind": "js",
1273
- "name": "convertRenalInsufficiency",
1274
- "declaration": {
1275
- "name": "convertRenalInsufficiency",
1276
- "module": "src/shared/services/api-prescription.service.ts"
1277
- }
1278
- }
1279
- ]
1280
- },
1281
- {
1282
- "kind": "javascript-module",
1283
- "path": "src/shared/services/api-search.service.ts",
1284
- "declarations": [
1285
- {
1286
- "kind": "function",
1287
- "name": "fetchPathologiesByTerm",
1288
- "parameters": [
1289
- {
1290
- "name": "term",
1291
- "type": {
1292
- "text": "string"
1293
- }
1294
- },
1295
- {
1296
- "name": "typePathology",
1297
- "type": {
1298
- "text": "\"AMM\" | \"CIM10\" | \"\""
1299
- }
1300
- },
1301
- {
1302
- "name": "params",
1303
- "type": {
1304
- "text": "SearchRequestBody"
1305
- }
1306
- },
1307
- {
1308
- "name": "apiUrl",
1309
- "type": {
1310
- "text": "string"
1311
- }
1312
- }
1313
- ]
1314
- },
1315
- {
1316
- "kind": "function",
1317
- "name": "fetchMoleculesByTerm",
1318
- "parameters": [
1319
- {
1320
- "name": "term",
1321
- "type": {
1322
- "text": "string"
1323
- }
1324
- },
1325
- {
1326
- "name": "params",
1327
- "type": {
1328
- "text": "SearchRequestBody"
1329
- }
1330
- },
1331
- {
1332
- "name": "apiUrl",
1333
- "type": {
1334
- "text": "string"
1335
- }
1336
- }
1337
- ]
1338
- }
1339
- ],
1340
- "exports": [
1341
- {
1342
- "kind": "js",
1343
- "name": "fetchPathologiesByTerm",
1344
- "declaration": {
1345
- "name": "fetchPathologiesByTerm",
1346
- "module": "src/shared/services/api-search.service.ts"
1347
- }
1348
- },
1349
- {
1350
- "kind": "js",
1351
- "name": "fetchMoleculesByTerm",
1352
- "declaration": {
1353
- "name": "fetchMoleculesByTerm",
1354
- "module": "src/shared/services/api-search.service.ts"
1355
- }
1356
- }
1357
- ]
1358
- },
1359
1235
  {
1360
1236
  "kind": "javascript-module",
1361
1237
  "path": "src/shared/utils/formula-utils.ts",
@@ -2864,6 +2740,130 @@
2864
2740
  }
2865
2741
  }
2866
2742
  ]
2743
+ },
2744
+ {
2745
+ "kind": "javascript-module",
2746
+ "path": "src/shared/services/api-prescription.service.ts",
2747
+ "declarations": [
2748
+ {
2749
+ "kind": "function",
2750
+ "name": "convertRenalInsufficiency",
2751
+ "parameters": [
2752
+ {
2753
+ "name": "type",
2754
+ "type": {
2755
+ "text": "number"
2756
+ }
2757
+ },
2758
+ {
2759
+ "name": "value",
2760
+ "type": {
2761
+ "text": "number"
2762
+ }
2763
+ },
2764
+ {
2765
+ "name": "patient",
2766
+ "type": {
2767
+ "text": "any"
2768
+ }
2769
+ },
2770
+ {
2771
+ "name": "apiUrl",
2772
+ "type": {
2773
+ "text": "string"
2774
+ }
2775
+ }
2776
+ ]
2777
+ }
2778
+ ],
2779
+ "exports": [
2780
+ {
2781
+ "kind": "js",
2782
+ "name": "convertRenalInsufficiency",
2783
+ "declaration": {
2784
+ "name": "convertRenalInsufficiency",
2785
+ "module": "src/shared/services/api-prescription.service.ts"
2786
+ }
2787
+ }
2788
+ ]
2789
+ },
2790
+ {
2791
+ "kind": "javascript-module",
2792
+ "path": "src/shared/services/api-search.service.ts",
2793
+ "declarations": [
2794
+ {
2795
+ "kind": "function",
2796
+ "name": "fetchPathologiesByTerm",
2797
+ "parameters": [
2798
+ {
2799
+ "name": "term",
2800
+ "type": {
2801
+ "text": "string"
2802
+ }
2803
+ },
2804
+ {
2805
+ "name": "typePathology",
2806
+ "type": {
2807
+ "text": "\"AMM\" | \"CIM10\" | \"\""
2808
+ }
2809
+ },
2810
+ {
2811
+ "name": "params",
2812
+ "type": {
2813
+ "text": "SearchRequestBody"
2814
+ }
2815
+ },
2816
+ {
2817
+ "name": "apiUrl",
2818
+ "type": {
2819
+ "text": "string"
2820
+ }
2821
+ }
2822
+ ]
2823
+ },
2824
+ {
2825
+ "kind": "function",
2826
+ "name": "fetchMoleculesByTerm",
2827
+ "parameters": [
2828
+ {
2829
+ "name": "term",
2830
+ "type": {
2831
+ "text": "string"
2832
+ }
2833
+ },
2834
+ {
2835
+ "name": "params",
2836
+ "type": {
2837
+ "text": "SearchRequestBody"
2838
+ }
2839
+ },
2840
+ {
2841
+ "name": "apiUrl",
2842
+ "type": {
2843
+ "text": "string"
2844
+ }
2845
+ }
2846
+ ]
2847
+ }
2848
+ ],
2849
+ "exports": [
2850
+ {
2851
+ "kind": "js",
2852
+ "name": "fetchPathologiesByTerm",
2853
+ "declaration": {
2854
+ "name": "fetchPathologiesByTerm",
2855
+ "module": "src/shared/services/api-search.service.ts"
2856
+ }
2857
+ },
2858
+ {
2859
+ "kind": "js",
2860
+ "name": "fetchMoleculesByTerm",
2861
+ "declaration": {
2862
+ "name": "fetchMoleculesByTerm",
2863
+ "module": "src/shared/services/api-search.service.ts"
2864
+ }
2865
+ }
2866
+ ]
2867
2867
  }
2868
2868
  ]
2869
2869
  }
@@ -1498,7 +1498,7 @@ class Z {
1498
1498
  }
1499
1499
  }
1500
1500
  const B = t$1.litHtmlPolyfillSupport;
1501
- B?.(S, k), (t$1.litHtmlVersions ??= []).push("3.3.2");
1501
+ B?.(S, k), (t$1.litHtmlVersions ??= []).push("3.3.3");
1502
1502
  const D = (t2, i2, s2) => {
1503
1503
  const e2 = s2?.renderBefore ?? i2;
1504
1504
  let h2 = e2._$litPart$;
@@ -1579,7 +1579,7 @@ function e(e2, r2) {
1579
1579
  } });
1580
1580
  };
1581
1581
  }
1582
- const patientProfileCSS = '@charset "UTF-8";\n:host {\n container-type: inline-size;\n}\n\n.claudebernard-patient-profile {\n font-family: var(--custom-font-family, "Ubuntu"), sans-serif;\n border: 1px solid var(--bcbd-border-gray-color, #CBD5E1);\n padding: 1rem;\n border-radius: 0.5rem;\n background-color: var(--bcbd-white-color, #FFFFFF);\n container-type: inline-size;\n}\n@container (max-width: 600px) {\n .claudebernard-patient-profile {\n font-size: 0.8rem;\n }\n}\n.claudebernard-patient-profile__no-profile {\n display: flex;\n flex-direction: column;\n gap: 0.3rem;\n}\n.claudebernard-patient-profile__no-profile__first {\n font-weight: bold;\n}\n.claudebernard-patient-profile__no-profile__second {\n color: var(--bcbd-gray-500-color, #64748B);\n font-size: 0.8rem;\n}\n.claudebernard-patient-profile__separator {\n border-right: 1px solid var(--bcbd-border-gray-color, #CBD5E1);\n}\n.claudebernard-patient-profile__first-info-container {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n gap: 0.5rem;\n}\n@container (max-width: 450px) {\n .claudebernard-patient-profile__first-info-container {\n flex-wrap: wrap;\n gap: 1rem;\n align-items: center;\n }\n}\n@container (max-width: 320px) {\n .claudebernard-patient-profile__first-info-container {\n justify-content: center;\n }\n}\n.claudebernard-patient-profile__id-info-container {\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: 0.5rem;\n}\n@container (max-width: 450px) {\n .claudebernard-patient-profile__id-info-container {\n flex: 1;\n }\n}\n@container (max-width: 320px) {\n .claudebernard-patient-profile__id-info-container {\n flex: 0 0 auto;\n align-items: center;\n }\n}\n.claudebernard-patient-profile__name-info {\n font-size: 1rem;\n}\n.claudebernard-patient-profile__id-info {\n width: fit-content;\n border: 1px solid var(--bcbd-border-gray-color, #CBD5E1);\n border-radius: 1rem;\n display: flex;\n flex-direction: row;\n padding: 0 0.8rem;\n gap: 0.5rem;\n}\n.claudebernard-patient-profile__id-info-info {\n padding: 0.2rem 0;\n white-space: nowrap;\n font-size: 1rem;\n}\n.claudebernard-patient-profile__physical-info-container {\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 1rem;\n}\n@container (max-width: 600px) {\n .claudebernard-patient-profile__physical-info-container {\n gap: 0.5rem;\n }\n}\n@container (max-width: 450px) {\n .claudebernard-patient-profile__physical-info-container {\n order: 3;\n width: 100%;\n }\n}\n@container (max-width: 320px) {\n .claudebernard-patient-profile__physical-info-container {\n order: 2;\n }\n}\n.claudebernard-patient-profile__physical-info {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-between;\n padding: 1rem 0;\n font-size: 1rem;\n}\n.claudebernard-patient-profile__physical-info-result {\n white-space: nowrap;\n}\n.claudebernard-patient-profile__physical-info-label {\n color: var(--bcbd-gray-600-color, #475569);\n}\n.claudebernard-patient-profile__action-buttons-container {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-content: center;\n flex-wrap: wrap;\n gap: 1rem;\n}\n@container (max-width: 600px) {\n .claudebernard-patient-profile__action-buttons-container {\n gap: 0.5rem;\n }\n}\n@container (max-width: 450px) {\n .claudebernard-patient-profile__action-buttons-container {\n order: 2;\n margin: 0 auto;\n }\n}\n@container (max-width: 320px) {\n .claudebernard-patient-profile__action-buttons-container {\n order: 3;\n }\n}\n.claudebernard-patient-profile__second-info-container {\n margin-top: 1rem;\n display: none;\n}\n.claudebernard-patient-profile__second-info-container.active {\n display: flex;\n flex-direction: column;\n}\n.claudebernard-patient-profile__second-info {\n margin-top: 1rem;\n}\n.claudebernard-patient-profile__second-info bcbd-tooltip {\n display: inline-block;\n}\n.claudebernard-patient-profile__second-info bcbd-tooltip > span {\n font-size: 1rem;\n}\n.claudebernard-patient-profile__second-info-label {\n padding-right: 0.5rem;\n color: var(--bcbd-primary-color, #0C75AD);\n}\n@container (max-width: 600px) {\n .claudebernard-patient-profile__second-info-label {\n font-size: 0.8rem;\n }\n}\n.claudebernard-patient-profile__second-info-result.sep-dots > * + *::before {\n content: "•";\n margin: 0 0.5rem;\n}';
1582
+ const patientProfileCSS = '@charset "UTF-8";\n.claudebernard-patient-profile {\n font-family: var(--custom-font-family, "Ubuntu"), sans-serif;\n border: 1px solid var(--bcbd-border-gray-color, #CBD5E1);\n padding: 1rem;\n border-radius: 0.5rem;\n background-color: var(--bcbd-white-color, #FFFFFF);\n container-type: inline-size;\n}\n@container (max-width: 600px) {\n .claudebernard-patient-profile {\n font-size: 0.8rem;\n }\n}\n.claudebernard-patient-profile__no-profile {\n display: flex;\n flex-direction: column;\n gap: 0.3rem;\n}\n.claudebernard-patient-profile__no-profile__first {\n font-weight: bold;\n}\n.claudebernard-patient-profile__no-profile__second {\n color: var(--bcbd-gray-500-color, #64748B);\n font-size: 0.8rem;\n}\n.claudebernard-patient-profile__separator {\n border-right: 1px solid var(--bcbd-border-gray-color, #CBD5E1);\n}\n.claudebernard-patient-profile__first-info-container {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n gap: 0.5rem;\n}\n@container (max-width: 450px) {\n .claudebernard-patient-profile__first-info-container {\n flex-wrap: wrap;\n gap: 1rem;\n align-items: center;\n }\n}\n@container (max-width: 320px) {\n .claudebernard-patient-profile__first-info-container {\n justify-content: center;\n }\n}\n.claudebernard-patient-profile__id-info-container {\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: 0.5rem;\n}\n@container (max-width: 450px) {\n .claudebernard-patient-profile__id-info-container {\n flex: 1;\n }\n}\n@container (max-width: 320px) {\n .claudebernard-patient-profile__id-info-container {\n flex: 0 0 auto;\n align-items: center;\n }\n}\n.claudebernard-patient-profile__name-info {\n font-size: 1rem;\n}\n.claudebernard-patient-profile__id-info {\n width: fit-content;\n border: 1px solid var(--bcbd-border-gray-color, #CBD5E1);\n border-radius: 1rem;\n display: flex;\n flex-direction: row;\n padding: 0 0.8rem;\n gap: 0.5rem;\n}\n.claudebernard-patient-profile__id-info-info {\n padding: 0.2rem 0;\n white-space: nowrap;\n font-size: 1rem;\n}\n.claudebernard-patient-profile__physical-info-container {\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 1rem;\n}\n@container (max-width: 600px) {\n .claudebernard-patient-profile__physical-info-container {\n gap: 0.5rem;\n }\n}\n@container (max-width: 450px) {\n .claudebernard-patient-profile__physical-info-container {\n order: 3;\n width: 100%;\n }\n}\n@container (max-width: 320px) {\n .claudebernard-patient-profile__physical-info-container {\n order: 2;\n }\n}\n.claudebernard-patient-profile__physical-info {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-between;\n padding: 1rem 0;\n font-size: 1rem;\n}\n.claudebernard-patient-profile__physical-info-result {\n white-space: nowrap;\n}\n.claudebernard-patient-profile__physical-info-label {\n color: var(--bcbd-gray-600-color, #475569);\n}\n.claudebernard-patient-profile__action-buttons-container {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-content: center;\n flex-wrap: wrap;\n gap: 1rem;\n}\n@container (max-width: 600px) {\n .claudebernard-patient-profile__action-buttons-container {\n gap: 0.5rem;\n }\n}\n@container (max-width: 450px) {\n .claudebernard-patient-profile__action-buttons-container {\n order: 2;\n margin: 0 auto;\n }\n}\n@container (max-width: 320px) {\n .claudebernard-patient-profile__action-buttons-container {\n order: 3;\n }\n}\n.claudebernard-patient-profile__second-info-container {\n margin-top: 1rem;\n display: none;\n}\n.claudebernard-patient-profile__second-info-container.active {\n display: flex;\n flex-direction: column;\n}\n.claudebernard-patient-profile__second-info {\n margin-top: 1rem;\n}\n.claudebernard-patient-profile__second-info bcbd-tooltip {\n display: inline-block;\n}\n.claudebernard-patient-profile__second-info bcbd-tooltip > span {\n font-size: 1rem;\n}\n.claudebernard-patient-profile__second-info-label {\n padding-right: 0.5rem;\n color: var(--bcbd-primary-color, #0C75AD);\n}\n@container (max-width: 600px) {\n .claudebernard-patient-profile__second-info-label {\n font-size: 0.8rem;\n }\n}\n.claudebernard-patient-profile__second-info-result.sep-dots > * + *::before {\n content: "•";\n margin: 0 0.5rem;\n}';
1583
1583
  const sexOptions = [
1584
1584
  { value: "male", label: "Masculin" },
1585
1585
  { value: "female", label: "Féminin" },
@@ -2484,10 +2484,10 @@ let PatientProfile = class extends i {
2484
2484
  ${hepatic}
2485
2485
  ${!hasSecondaryInfo ? b`Aucune information renseignée` : A}
2486
2486
  </div>
2487
- <bcb-patient-profile-edition .patientProfile=${this.patientProfile} .apiUrl=${this.apiUrl} .apiKey=${this.apiKey}
2488
- .preferences=${this.preferences}
2489
- @editPatientProfile=${this.editProfilePatient}></bcb-patient-profile-edition>
2490
2487
  </div>
2488
+ <bcb-patient-profile-edition .patientProfile=${this.patientProfile} .apiUrl=${this.apiUrl} .apiKey=${this.apiKey}
2489
+ .preferences=${this.preferences}
2490
+ @editPatientProfile=${this.editProfilePatient}></bcb-patient-profile-edition>
2491
2491
  `;
2492
2492
  }
2493
2493
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudebernard/patient-profile-element",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "main": "dist/patient-profile.es.js",
5
5
  "module": "dist/patient-profile.es.js",
6
6
  "types": "dist/patient-profile.d.ts",
@@ -86,7 +86,7 @@
86
86
  },
87
87
  "peerDependencies": {
88
88
  "@claudebernard/design-system": "^2.29.6",
89
- "@claudebernard/types": "^0.34.0"
89
+ "@claudebernard/types": "^0.35.0"
90
90
  },
91
91
  "customElements": "dist/custom-elements.json",
92
92
  "publishConfig": {