@myhealth-belgium/webcomponent-vaccinations 1.0.4 → 1.2.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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # 1.2.0
2
+
3
+ **New features:**
4
+
5
+ - Added an optional `isLegacy` input, which by default is set to `true`. Turning legacy mode off will render the vaccinations web component with FHIR and KMEHR instead of only KMEHR data.
6
+
7
+ # 1.1.0
8
+
9
+ **New features:**
10
+
11
+ - Added an optional `full-name` input, where the user's full name can be passed and will be displayed in the PDF on the top right side if it is provided.
12
+
1
13
  # 1.0.4
2
14
 
3
15
  **Bug fixes:**
package/README.md CHANGED
@@ -42,11 +42,12 @@ The manifest can be viewed to see the component(s) inside the package, as well a
42
42
 
43
43
  `tagName`: `<mh-web-component-vaccinations />`
44
44
 
45
- | Property | Type | Required | Description |
46
- | ------------------------ | -------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
47
- | `user-language` | `UserLanguage` | No | The language for the webcomponent interface. Automatically updates the translation service when changed. |
48
- | `config-name` | `ConfigName` | No | The configuration name that determines the environment and API endpoints. Set to `"demo"` to use mock data instead of API calls. |
49
- | `cdk-scroll-view-height` | `string` | No | The height of the CDK scroll with cards that is displayed on mobile. Injected as CSS and should thus be a number followed by any [CSS size unit](https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Styling_basics/Values_and_units). F.e.: `500px`. |
45
+ | Property | Type | Required | Description |
46
+ | --------------- | ------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
47
+ | `user-language` | `UserLanguage` | No | The language for the webcomponent interface. Automatically updates the translation service when changed. |
48
+ | `config-name` | `ConfigName` | No | The configuration name that determines the environment and API endpoints. Set to `"demo"` to use mock data instead of API calls. |
49
+ | `full-name` | `string` | No | The user's full name, will be displayed in the PDF on the top right side if it is provided. |
50
+ | `isLegacy` | `boolean`, `string` | No | Turning legacy mode `false` will render the vaccinations web component with FHIR and KMEHR data. Turning legacy mode `true` will render the vaccinations web component with only KMEHR data. Using a string would expect `"true"` or `"false"`. |
50
51
 
51
52
  | Event | Type | Required | Description |
52
53
  | --------- | ------------ | -------- | --------------------------------------- |
@@ -3,8 +3,12 @@ import { BaseWebComponent } from '@myhealth-belgium/web-component-utils';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class VaccinationsWebComponent extends BaseWebComponent implements OnInit {
5
5
  private readonly vaccinationsService;
6
+ private readonly isLegacyDefault;
7
+ readonly fullName: import("@angular/core").InputSignal<string>;
8
+ readonly isLegacy: import("@angular/core").InputSignal<string | boolean>;
9
+ readonly useLegacyMode: import("@angular/core").Signal<boolean>;
6
10
  ngOnInit(): void;
7
11
  printVaccinations(content: string): Promise<void>;
8
12
  static ɵfac: i0.ɵɵFactoryDeclaration<VaccinationsWebComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<VaccinationsWebComponent, "mh-web-component-vaccinations", never, {}, {}, never, never, true, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<VaccinationsWebComponent, "mh-web-component-vaccinations", never, { "fullName": { "alias": "fullName"; "required": false; "isSignal": true; }; "isLegacy": { "alias": "isLegacy"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
10
14
  }
@@ -1,2 +1,3 @@
1
1
  import { Vaccinations } from '@myhealth-belgium/api';
2
- export declare const vaccinationsMock: Vaccinations;
2
+ export declare const kmehrMock: Vaccinations;
3
+ export declare const fhirMock: Vaccinations;
@@ -8,7 +8,9 @@ export declare class VaccinationsWebcomponentService implements AbstractVaccinat
8
8
  configuration: ConfigName;
9
9
  constructor(vacinationService: VaccinationService);
10
10
  setConfigName(configName: ConfigName): void;
11
- getVaccinations(): Observable<Vaccinations>;
11
+ getVaccinations(params?: {
12
+ legacy: boolean;
13
+ }): Observable<Vaccinations>;
12
14
  static ɵfac: i0.ɵɵFactoryDeclaration<VaccinationsWebcomponentService, never>;
13
15
  static ɵprov: i0.ɵɵInjectableDeclaration<VaccinationsWebcomponentService>;
14
16
  }