@claudebernard/therapeutic-alternative-element 1.1.0 → 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,19 +1,8 @@
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;
@@ -516,7 +505,7 @@ declare type SafeSearchBean = {
516
505
  */
517
506
  export declare class TherapeuticAlternative extends LitElement {
518
507
  hasTitle: boolean;
519
- medication: MedicationInfo | null;
508
+ medication: Bundle | null;
520
509
  patientProfile: Bundle | null;
521
510
  apiUrl: string;
522
511
  apiKey: string | undefined;
@@ -532,11 +521,15 @@ export declare class TherapeuticAlternative extends LitElement {
532
521
  apiSearchError: string | null;
533
522
  apiSearchLoading: boolean;
534
523
  apiInfoLoading: boolean;
524
+ apiReplaceError: string | null;
525
+ apiReplaceLoading: boolean;
526
+ missingPrescriptionError: string | null;
535
527
  numberTotalOfResults: number | null;
536
528
  currentPage: number;
537
529
  productsList: ProductBean[];
530
+ private get currentMedication();
531
+ private get currentMedicationRequest();
538
532
  updated(changedProperties: Map<string | number | symbol, unknown>): void;
539
- private decodeHtml;
540
533
  private selectIndication;
541
534
  private getIndicationsListForMedication;
542
535
  private searchTherapeuticAlternative;
@@ -549,4 +542,7 @@ export declare class TherapeuticAlternative extends LitElement {
549
542
  static styles: CSSResult;
550
543
  }
551
544
 
545
+
546
+ export * from "@claudebernard/web-component-fhir-utils";
547
+
552
548
  export { }