@smals-belgium-shared/vidis-delivered-medication-detail 1.1.3 → 2.0.1-snapshot.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/CHANGELOG.md CHANGED
@@ -35,4 +35,37 @@
35
35
  ## v1.1.3 (2025-05-16)
36
36
  * Bugfixes
37
37
 
38
+ ## v2.0.0 (2025-06-06)
39
+ * Update to Angular v19
40
+ * Update Design Kit to v2.5
41
+ * Remove title and back button
42
+
43
+ ### vidis-medication-scheme-list:
44
+ * Label correction
45
+ * Your filtering is saved when you go back from an other component
46
+
47
+ ### vidis-diarynote-list
48
+ * Add getTotalItems output
49
+
50
+ ### vidis-prescription-list
51
+ * Add getTotalItems output
52
+ * Change `onPrintPrescriptions` output to `onPrint` and type from `{base64Pdf: string, printOptions: {filename: string, orientation: 'portrait'}}` to `{title: string, content: string}`
53
+
54
+ ### vidis-prescription-detail
55
+ * Change `onPrintDetail` output to `onPrint` and type from `{base64Pdf: string, printOptions: {filename: string, orientation: 'portrait'}}` to `{title: string, content: string}`
56
+
57
+ ## v2.1.0
58
+
59
+ ### vidis-delivered-medication-list:
60
+ * Support professional. If professional add 2 params : key 'professional' = 'true' and 'ssin'= ssinPatient
61
+
62
+ ### vidis-delivered-medication-detail:
63
+ * Support professional. If professional add 2 params : key 'professional' = 'true' and 'ssin'= ssinPatient
64
+
65
+ ## v2.0.1-snapshot.0 (2025-06-20)
66
+ * BugFix
67
+
68
+ ## v2.0.1-snapshot.1 (2025-06-20)
69
+ * BugFix
70
+
38
71
  ## __RELEASE_VERSION__ (__RELEASE_DATE__)
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/README.md CHANGED
@@ -14,6 +14,9 @@ The container application will have to provide the input parameters to provision
14
14
 
15
15
  - A supported browser [by our Web Components](https://angular.dev/reference/versions#browser-support) AND [by eHealth][Supported browsers]
16
16
  - A valid VIDIS token. It could be obtained from [eHealth Token eXchange][eHealth IAM] service. This token must be refreshed periodically in order to be used by VIDIS
17
+ - Notify partners that are using REST APIs so your VIDIS tokens & clients will be trusted :
18
+ - [Vitalink][Vitalink] & their Apigee service – Contact: vitalink-support@smals.be
19
+ - [Farmaflux][Farmaflux] – Contact: vidis@farmaflux.be
17
20
 
18
21
  ⚠️ IE (internet explorer) is not supported. You can include [polyfill scripts ("polyfills")](https://www.webcomponents.org/polyfills) for the browsers that you must support.
19
22
 
@@ -31,12 +34,14 @@ This web component provides users with a comprehensive prescription details. The
31
34
 
32
35
  ## Inputs
33
36
 
34
- | Name | Mandatory | Possible values | Description |
35
- |--------------|-----------|------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
36
- | `language` | true | `en`, `de`, `fr`, `nl` | The language holds the current language as a value, which means it can change over time if the user changes his/her preferred language. The web component adapts the translations based on the value set. The values of the language property are defined in the Language enum. |
37
- | `configName` | true | `acc`, `prod` | Name of the configuration the application and the components are being deployed to. |
38
- | `services` | true | N/A | Set of services to be consumed by the component. see [USAGE](#Usage). |
39
- | `dguid` | true | N/A | Delivered medication dguid to display. |
37
+ | Name | Mandatory | Possible values | Description |
38
+ |----------------|-----------|------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
39
+ | `language` | true | `en`, `de`, `fr`, `nl` | The language holds the current language as a value, which means it can change over time if the user changes his/her preferred language. The web component adapts the translations based on the value set. The values of the language property are defined in the Language enum. |
40
+ | `configName` | true | `acc`, `prod` | Name of the configuration the application and the components are being deployed to. |
41
+ | `services` | true | N/A | Set of services to be consumed by the component. see [USAGE](#Usage). |
42
+ | `dguid` | true | N/A | Delivered medication dguid to display. |
43
+ | `professional` | false | `true`, `false` | Indicates whether the component is being used in a professional context. If set to `true`, the `ssin` input must be provided and will be used to identify the patient. If `false` or not set, the SSIN will be retrieved automatically from the authentication token. |
44
+ | `ssin` | true | N/A | The patient's SSIN. Required **only** if `professional` is set to `true`. When `professional` is `false`, this value is ignored and the SSIN is extracted from the authentication token. |
40
45
 
41
46
 
42
47
 
@@ -86,12 +91,12 @@ This web component provides users with a comprehensive prescription details. The
86
91
  })
87
92
 
88
93
  // Example on how to listen to output parameter(s), for printing
89
- wc.addEventListener("eventPrintName", (event) => {
94
+ wc.addEventListener("onPrint", (event) => {
90
95
  console.log(`event:`, event)
91
96
  const params = event.detail;
92
97
  console.log('param:', params);
93
98
 
94
- const byteArray = new Uint8Array(atob(params.base64Pdf).split('').map(char => char.charCodeAt(0)))
99
+ const byteArray = new Uint8Array(atob(params.content).split('').map(char => char.charCodeAt(0)))
95
100
  const blob = new Blob([byteArray], {type: 'application/pdf'})
96
101
  const url = window.URL.createObjectURL(blob)
97
102
  window.open(url, '_blank').print()