@d4l/collect-lib 1.11.0 → 1.13.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/README.md +9 -8
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -48,14 +48,15 @@ Update the types by running `yarn run readme:update`.
|
|
|
48
48
|
|
|
49
49
|
#### ProgramFeatured
|
|
50
50
|
|
|
51
|
-
| Properties | Required | Type
|
|
52
|
-
| ---------------------- | -------- |
|
|
53
|
-
| enabled | true | boolean
|
|
54
|
-
| showProgramImage | false | boolean
|
|
55
|
-
| showInstituteImage | false | boolean
|
|
56
|
-
| showContactInformation | false | boolean
|
|
57
|
-
| showSensors | false | boolean
|
|
58
|
-
| estimatedEffort | false | object
|
|
51
|
+
| Properties | Required | Type | Description |
|
|
52
|
+
| ---------------------- | -------- | ---------------- | -------------------------------------------------------------------------------- |
|
|
53
|
+
| enabled | true | boolean | Denotes if the program is featured |
|
|
54
|
+
| showProgramImage | false | boolean | Denotes if the program image should be shown |
|
|
55
|
+
| showInstituteImage | false | boolean | Denotes if the institute image should be shown |
|
|
56
|
+
| showContactInformation | false | boolean | Denotes if the contact information should be shown |
|
|
57
|
+
| showSensors | false | boolean | Denotes if the sensors should be shown |
|
|
58
|
+
| estimatedEffort | false | object | The estimated effort for the program |
|
|
59
|
+
| description | false | TranslatedString | Shown as short description in featured listing (required if featured is enabled) |
|
|
59
60
|
|
|
60
61
|
### ProgramSteps
|
|
61
62
|
|
package/dist/index.d.mts
CHANGED
|
@@ -107,6 +107,10 @@ interface SeenDisplay {
|
|
|
107
107
|
* Date at which the display was seen by the user
|
|
108
108
|
*/
|
|
109
109
|
seenAt: string;
|
|
110
|
+
/**
|
|
111
|
+
* Date the display was created
|
|
112
|
+
*/
|
|
113
|
+
effectiveDate: string;
|
|
110
114
|
/**
|
|
111
115
|
* The app language at the point at which the user has seen the display
|
|
112
116
|
*/
|
|
@@ -168,6 +172,7 @@ type ProgramFeatured = {
|
|
|
168
172
|
unit: 'minutes' | 'hours' | 'days' | 'weeks' | 'months' | 'years';
|
|
169
173
|
per: 'day' | 'week' | 'month' | 'year';
|
|
170
174
|
};
|
|
175
|
+
description?: TranslatedString;
|
|
171
176
|
};
|
|
172
177
|
type ProgramType = 'study' | 'sensor';
|
|
173
178
|
type ProgramStepBase = {
|
package/dist/index.d.ts
CHANGED
|
@@ -107,6 +107,10 @@ interface SeenDisplay {
|
|
|
107
107
|
* Date at which the display was seen by the user
|
|
108
108
|
*/
|
|
109
109
|
seenAt: string;
|
|
110
|
+
/**
|
|
111
|
+
* Date the display was created
|
|
112
|
+
*/
|
|
113
|
+
effectiveDate: string;
|
|
110
114
|
/**
|
|
111
115
|
* The app language at the point at which the user has seen the display
|
|
112
116
|
*/
|
|
@@ -168,6 +172,7 @@ type ProgramFeatured = {
|
|
|
168
172
|
unit: 'minutes' | 'hours' | 'days' | 'weeks' | 'months' | 'years';
|
|
169
173
|
per: 'day' | 'week' | 'month' | 'year';
|
|
170
174
|
};
|
|
175
|
+
description?: TranslatedString;
|
|
171
176
|
};
|
|
172
177
|
type ProgramType = 'study' | 'sensor';
|
|
173
178
|
type ProgramStepBase = {
|
package/dist/index.js
CHANGED
|
@@ -5155,6 +5155,7 @@ function generateFHIRSeenDisplay(id, seenDisplay) {
|
|
|
5155
5155
|
id,
|
|
5156
5156
|
resourceType: "Communication",
|
|
5157
5157
|
status: "completed",
|
|
5158
|
+
sent: seenDisplay.effectiveDate,
|
|
5158
5159
|
received: seenDisplay.seenAt,
|
|
5159
5160
|
basedOn: [{ reference: seenDisplay.name }],
|
|
5160
5161
|
payload
|