@smals-belgium-shared/vidis-delivered-medication-detail 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 +45 -0
- package/MatSymbols-Rounded.woff2 +0 -0
- package/OpenSans-Bold.ttf +0 -0
- package/OpenSans-ExtraBold.ttf +0 -0
- package/OpenSans-Italic.ttf +0 -0
- package/OpenSans-Light.ttf +0 -0
- package/OpenSans-Medium.ttf +0 -0
- package/OpenSans-Regular.ttf +0 -0
- package/OpenSans-SemiBold.ttf +0 -0
- package/README.md +57 -38
- package/assets/main-BtphuQrf.js +37 -0
- package/assets/polyfills-CGYnV-49.js +2 -0
- package/delivered-medication-detail.css +1 -1
- package/delivered-medication-detail.js +1 -1
- package/package.json +1 -1
- package/assets/main-Ym9qB9rp.js +0 -266
- package/assets/polyfills-C4iAblqc.js +0 -2
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
|
|
|
@@ -47,44 +50,59 @@ This web component provides users with a comprehensive prescription details. The
|
|
|
47
50
|
```html
|
|
48
51
|
<!DOCTYPE html>
|
|
49
52
|
<html>
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
53
|
+
<head>
|
|
54
|
+
<meta charset="utf-8">
|
|
55
|
+
<title>Vidis delivered medications detail web component</title>
|
|
56
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
57
|
+
<script type="module" src="delivered-medication-detail/delivered-medication-detail.js"></script>
|
|
58
|
+
<link rel="stylesheet" href="delivered-medication-detail/delivered-medication-detail.css">
|
|
59
|
+
</head>
|
|
60
|
+
<body>
|
|
61
|
+
<script>
|
|
62
|
+
const wc = document.createElement("vidis-delivered-medication-detail");
|
|
63
|
+
|
|
64
|
+
// Common inputs for all VIDIS web components
|
|
65
|
+
// Refer to https://www.npmjs.com/package/@smals-belgium/myhealth-wc-integration for more details
|
|
66
|
+
wc.language = 'en'
|
|
67
|
+
wc.configName = 'acc';
|
|
68
|
+
wc.services = {
|
|
69
|
+
cache: {
|
|
70
|
+
get: (key) => (undefined),
|
|
71
|
+
set: (key, value) => {
|
|
72
|
+
},
|
|
73
|
+
remove: (key) => {
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
getAccessToken: async (audience) => "TODO : the eHealth OAuth2 JWT token.",
|
|
77
|
+
registerRefreshCallback: () => {
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Example on how to provide extra input parameter(s), if needed / requested by the component
|
|
82
|
+
// wc["attributeName"] = "myValue"
|
|
83
|
+
|
|
84
|
+
// Example on how to listen to output parameter(s)
|
|
85
|
+
wc.addEventListener("eventName", (event) => {
|
|
86
|
+
console.log(`event:`, event)
|
|
87
|
+
const params = event.detail;
|
|
88
|
+
console.log('param:', params);
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
// Example on how to listen to output parameter(s), for printing
|
|
92
|
+
wc.addEventListener("onPrint", (event) => {
|
|
93
|
+
console.log(`event:`, event)
|
|
94
|
+
const params = event.detail;
|
|
95
|
+
console.log('param:', params);
|
|
96
|
+
|
|
97
|
+
const byteArray = new Uint8Array(atob(params.content).split('').map(char => char.charCodeAt(0)))
|
|
98
|
+
const blob = new Blob([byteArray], {type: 'application/pdf'})
|
|
99
|
+
const url = window.URL.createObjectURL(blob)
|
|
100
|
+
window.open(url, '_blank').print()
|
|
101
|
+
})
|
|
102
|
+
|
|
103
|
+
document.body.append(wc);
|
|
104
|
+
</script>
|
|
105
|
+
</body>
|
|
88
106
|
</html>
|
|
89
107
|
```
|
|
90
108
|
|
|
@@ -111,6 +129,7 @@ If you encounter issues while using the web components :
|
|
|
111
129
|
- Ensure that your token is valid and hasn't expired. For assistance, contact [eHealth][eHealth IAM].
|
|
112
130
|
- Ensure you are using the latest version of the web components
|
|
113
131
|
- Ensure you are using a supported browser and that you have cleared your cache if issues persist.
|
|
132
|
+
- Ensure your organization, browser or device don't block calls to VIDIS API by any way.
|
|
114
133
|
- If none of the above, please contact mijngeneesmiddelen@riziv-inami.fgov.be / mesmedicaments@riziv-inami.fgov.be
|
|
115
134
|
|
|
116
135
|
## License
|