@smals-belgium-shared/vidis-medication-scheme-list 4.0.0 → 4.0.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 +3 -0
- package/README.md +15 -15
- package/medication-scheme-list.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -40,24 +40,24 @@ The **daily view** is tailored for those who need a more specific, day-to-day br
|
|
|
40
40
|
|
|
41
41
|
## Inputs
|
|
42
42
|
|
|
43
|
-
| Name | Mandatory | Possible values
|
|
44
|
-
|
|
45
|
-
| `
|
|
46
|
-
| `configName` | true | `acc`, `prod`
|
|
47
|
-
| `
|
|
48
|
-
| `professional` |
|
|
49
|
-
| `ssin` |
|
|
50
|
-
| `offlineDataStorageEnabled` |
|
|
51
|
-
| `isOfflineAuthenticated` |
|
|
52
|
-
| `exchangeClientId` | true | N/A
|
|
53
|
-
|
|
43
|
+
| Name | Mandatory | Possible values | Description |
|
|
44
|
+
|-----------------------------|-----------|--------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
45
|
+
| `userLanguage` | 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. |
|
|
46
|
+
| `configName` | true | `acc`, `prod` | Name of the configuration the application and the components are being deployed to. |
|
|
47
|
+
| `authenticationStatus` | true | `unauthenticated`, `online-authenticated`, `offline-authenticated` | Indicates the authentication state of the current user. When `online-authenticated`, the component can access all backend services. When `offline-authenticated`, the component uses cached data. When `unauthenticated`, no token is fetched from the host application. |
|
|
48
|
+
| `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`, the SSIN will be retrieved automatically from the authentication token. Defaults to `false`. |
|
|
49
|
+
| `ssin` | false | N/A | The patient's SSIN. Required when `professional` is `true`. When `professional` is `false`, this value is ignored and the SSIN is extracted from the authentication token. |
|
|
50
|
+
| `offlineDataStorageEnabled` | false | `true`, `false` | A boolean flag indicating whether offline data storage has been enabled by the user. When true, the web component can store and retrieve data locally for offline access. |
|
|
51
|
+
| `isOfflineAuthenticated` | false | `true`, `false` | **Deprecated** since v5.0.2 — use `authenticationStatus` instead. A boolean flag indicating whether the web component is being accessed from an offline state. |
|
|
52
|
+
| `exchangeClientId` | true | N/A | The client ID used for the token exchange. |
|
|
54
53
|
|
|
55
54
|
## Outputs
|
|
56
55
|
|
|
57
|
-
| Name
|
|
58
|
-
|
|
59
|
-
| `
|
|
60
|
-
| `
|
|
56
|
+
| Name | Type | Description |
|
|
57
|
+
|-----------|----------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------|
|
|
58
|
+
| `open` | {componentTag: string, props?: {[key: string]: unknown}} | Emitted when the user navigates to a medication scheme detail. Contains the target component tag and the detail event as a prop. |
|
|
59
|
+
| `refresh` | {status: 'request' \| 'success' \| 'fail'} | Emitted during data refresh cycles to indicate the current refresh status. |
|
|
60
|
+
| `onError` | {reported: boolean} | Emitted after the error dialog closes. `reported` is `true` if the user confirmed reporting the error; otherwise `false`. |
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
## Usage
|
|
@@ -35115,7 +35115,7 @@ var fLe = (() => {
|
|
|
35115
35115
|
console.log("[MedicationScheme prefetch] done");
|
|
35116
35116
|
}).catch((t) => {
|
|
35117
35117
|
console.error("[MedicationScheme prefetch] failed", t);
|
|
35118
|
-
}), yde = { list: { tagName: "vidis-medication-scheme-list", component: fLe } }, vLe = uIe(pn.MEDICATION_SCHEME, [{ tagName: yde.list.tagName, events: [lDe, iS] }]), yLe = RDe(yde, xMe, gLe);
|
|
35118
|
+
}), yde = { list: { tagName: "vidis-medication-scheme-list", component: fLe } }, vLe = uIe(pn.MEDICATION_SCHEME, [{ tagName: yde.list.tagName, events: [lDe, iS, "onError"] }]), yLe = RDe(yde, xMe, gLe);
|
|
35119
35119
|
export {
|
|
35120
35120
|
yLe as bootstrap,
|
|
35121
35121
|
vLe as manifest
|