@smals-belgium-shared/vidis-diarynote 1.0.6 → 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.
package/CHANGELOG.md CHANGED
@@ -10,4 +10,49 @@
10
10
  ### vidis-diarynote:
11
11
  * Hide filters when there aren't any data
12
12
 
13
+ ## v1.1.0 (2025-05-07)
14
+ * Implementing the demo mode
15
+ ### vidis-medication-scheme:
16
+ * Redesign of the vidis medication scheme web component
17
+ * Split up vidis-medication-scheme into a list and detail web component
18
+ * Add full list of medication on list view, with filters for 'full list', 'current' and 'future'
19
+ ### vidis-prescription-list
20
+ * Add onPrintPrescriptions output, with parameters:
21
+ * base64Pdf: this is a base64 version of the pdf that needs to be printed
22
+ * printerOptions: this is an object with `name` this is the file name and `orientation` this is the orientation the printing should happen
23
+ ### vidis-prescription-detail
24
+ * Add onPrintDetail output, with parameters:
25
+ * base64Pdf: this is a base64 version of the pdf that needs to be printed
26
+ * printerOptions: this is an object with `name` this is the file name and `orientation` this is the orientation the printing should happen
27
+
28
+ ## v1.1.1 (2025-05-07)
29
+ * Technical release. No new features or bug fixes.
30
+
31
+ ## v1.1.2 (2025-05-07)
32
+ ### vidis-medication-scheme-list:
33
+ * Bugfix package.json
34
+
35
+ ## v1.1.3 (2025-05-16)
36
+ * Bugfixes
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
+
13
58
  ## __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
 
@@ -52,7 +55,11 @@ The main view displays a list of all diary notes that have been created by the p
52
55
  | `configName` | true | `acc`, `prod` | Name of the configuration the application and the components are being deployed to. |
53
56
  | `services` | true | N/A | Set of services to be consumed by the component. see [USAGE](#Usage). |
54
57
 
58
+ ## Outputs
55
59
 
60
+ | Name | Type | Description |
61
+ |-----------------|--------|----------------------------------------------|
62
+ | `getTotalItems` | number | Gets the number of total diary notes |
56
63
 
57
64
 
58
65
  ## Usage
@@ -60,44 +67,59 @@ The main view displays a list of all diary notes that have been created by the p
60
67
  ```html
61
68
  <!DOCTYPE html>
62
69
  <html>
63
- <head>
64
- <meta charset="utf-8">
65
- <title>Vidis diary notes web component</title>
66
- <meta name="viewport" content="width=device-width, initial-scale=1">
67
- <script type="module" src="vidis-diarynote/diarynote.js"></script>
68
- <link rel="stylesheet" href="vidis-diarynote/diarynote.css">
69
- </head>
70
- <body>
71
- <script>
72
- const wc = document.createElement("vidis-diarynote");
73
-
74
- // Common inputs for all VIDIS web components
75
- // Refer to https://www.npmjs.com/package/@smals-belgium/myhealth-wc-integration for more details
76
- wc.language = 'en'
77
- wc.configName = 'acc';
78
- wc.services = {
79
- cache: {
80
- get: (key) => (undefined),
81
- set: (key, value) => {},
82
- remove: (key) => {}
83
- } ,
84
- getAccessToken: async (audience) => "TODO : the eHealth OAuth2 JWT token.",
85
- registerRefreshCallback: () => { }
86
- }
87
-
88
- // Example on how to provide extra input parameter(s), if needed / requested by the component
89
- // wc["attributeName"] = "myValue"
90
-
91
- // Example on how to listen to output parameter(s)
92
- wc.addEventListener("eventName", (event) => {
93
- console.log(`event:`, event)
94
- const params = event.detail;
95
- console.log('param:', params);
96
- })
97
-
98
- document.body.append(wc);
99
- </script>
100
- </body>
70
+ <head>
71
+ <meta charset="utf-8">
72
+ <title>Vidis diary notes web component</title>
73
+ <meta name="viewport" content="width=device-width, initial-scale=1">
74
+ <script type="module" src="vidis-diarynote/diarynote.js"></script>
75
+ <link rel="stylesheet" href="vidis-diarynote/diarynote.css">
76
+ </head>
77
+ <body>
78
+ <script>
79
+ const wc = document.createElement("vidis-diarynote");
80
+
81
+ // Common inputs for all VIDIS web components
82
+ // Refer to https://www.npmjs.com/package/@smals-belgium/myhealth-wc-integration for more details
83
+ wc.language = 'en'
84
+ wc.configName = 'acc';
85
+ wc.services = {
86
+ cache: {
87
+ get: (key) => (undefined),
88
+ set: (key, value) => {
89
+ },
90
+ remove: (key) => {
91
+ }
92
+ },
93
+ getAccessToken: async (audience) => "TODO : the eHealth OAuth2 JWT token.",
94
+ registerRefreshCallback: () => {
95
+ }
96
+ }
97
+
98
+ // Example on how to provide extra input parameter(s), if needed / requested by the component
99
+ // wc["attributeName"] = "myValue"
100
+
101
+ // Example on how to listen to output parameter(s)
102
+ wc.addEventListener("eventName", (event) => {
103
+ console.log(`event:`, event)
104
+ const params = event.detail;
105
+ console.log('param:', params);
106
+ })
107
+
108
+ // Example on how to listen to output parameter(s), for printing
109
+ wc.addEventListener("onPrint", (event) => {
110
+ console.log(`event:`, event)
111
+ const params = event.detail;
112
+ console.log('param:', params);
113
+
114
+ const byteArray = new Uint8Array(atob(params.content).split('').map(char => char.charCodeAt(0)))
115
+ const blob = new Blob([byteArray], {type: 'application/pdf'})
116
+ const url = window.URL.createObjectURL(blob)
117
+ window.open(url, '_blank').print()
118
+ })
119
+
120
+ document.body.append(wc);
121
+ </script>
122
+ </body>
101
123
  </html>
102
124
  ```
103
125
 
@@ -124,6 +146,7 @@ If you encounter issues while using the web components :
124
146
  - Ensure that your token is valid and hasn't expired. For assistance, contact [eHealth][eHealth IAM].
125
147
  - Ensure you are using the latest version of the web components
126
148
  - Ensure you are using a supported browser and that you have cleared your cache if issues persist.
149
+ - Ensure your organization, browser or device don't block calls to VIDIS API by any way.
127
150
  - If none of the above, please contact mijngeneesmiddelen@riziv-inami.fgov.be / mesmedicaments@riziv-inami.fgov.be
128
151
 
129
152
  ## License