@claudebernard/therapeutic-alternative-element 1.0.7 → 2.0.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.
@@ -1,24 +1,16 @@
1
1
  import { Bundle } from 'fhir/r5.js';
2
2
  import { CSSResult } from 'lit';
3
3
  import { LitElement } from 'lit';
4
- import { Medication } from 'fhir/r5';
5
- import { MedicationRequest } from 'fhir/r5';
6
4
  import { TemplateResult } from 'lit-html';
7
5
 
8
- /**
9
- * Interface pour représenter un médicament extrait d'un Bundle FHIR
10
- */
11
- declare interface MedicationInfo {
12
- medication: Medication;
13
- medicationRequest: MedicationRequest | null;
14
- idPrescription: string;
15
- }
16
-
17
6
  declare type ProductAtcClassBean = {
18
7
  code?: string;
19
8
  label?: string;
20
9
  };
21
10
 
11
+ /**
12
+ * Products
13
+ */
22
14
  declare type ProductBean = {
23
15
  code?: string;
24
16
  productId?: number;
@@ -151,6 +143,10 @@ declare type ProductExtendedFlagsBean = {
151
143
  drugException?: number;
152
144
  hybridReferent?: number;
153
145
  pregnancyPictogram?: number;
146
+ foodSupplement?: number;
147
+ foodSupplementInfo?: number;
148
+ paraInfo?: number;
149
+ specificDrug?: number;
154
150
  };
155
151
 
156
152
  declare type ProductExtendedPropertiesBean = {
@@ -301,6 +297,14 @@ declare type ProductLppBean = {
301
297
  coefficient?: string;
302
298
  text?: string;
303
299
  qualifying?: string;
300
+ price?: string;
301
+ maxAmount?: string;
302
+ };
303
+
304
+ declare type ProductMatchBean = {
305
+ type?: string;
306
+ code?: string;
307
+ label?: string;
304
308
  };
305
309
 
306
310
  declare type ProductMedicabaseBean = {
@@ -437,6 +441,7 @@ declare type ProductSearchPropertiesBean = {
437
441
  safeDetails?: Array<SafeSearchBean>;
438
442
  samCode?: string;
439
443
  samPatient?: boolean;
444
+ match?: ProductMatchBean;
440
445
  };
441
446
 
442
447
  declare type ProductSegmentationAttributesBean = {
@@ -500,7 +505,7 @@ declare type SafeSearchBean = {
500
505
  */
501
506
  export declare class TherapeuticAlternative extends LitElement {
502
507
  hasTitle: boolean;
503
- medication: MedicationInfo | null;
508
+ medication: Bundle | null;
504
509
  patientProfile: Bundle | null;
505
510
  apiUrl: string;
506
511
  apiKey: string | undefined;
@@ -516,11 +521,15 @@ export declare class TherapeuticAlternative extends LitElement {
516
521
  apiSearchError: string | null;
517
522
  apiSearchLoading: boolean;
518
523
  apiInfoLoading: boolean;
524
+ apiReplaceError: string | null;
525
+ apiReplaceLoading: boolean;
526
+ missingPrescriptionError: string | null;
519
527
  numberTotalOfResults: number | null;
520
528
  currentPage: number;
521
529
  productsList: ProductBean[];
530
+ private get currentMedication();
531
+ private get currentMedicationRequest();
522
532
  updated(changedProperties: Map<string | number | symbol, unknown>): void;
523
- private decodeHtml;
524
533
  private selectIndication;
525
534
  private getIndicationsListForMedication;
526
535
  private searchTherapeuticAlternative;
@@ -533,4 +542,7 @@ export declare class TherapeuticAlternative extends LitElement {
533
542
  static styles: CSSResult;
534
543
  }
535
544
 
545
+
546
+ export * from "@claudebernard/web-component-fhir-utils";
547
+
536
548
  export { }