@icure/cardinal-sdk 2.4.4 → 2.6.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/Kotlin-DateTime-library-kotlinx-datetime.mjs +1 -1
- package/api/RoleApi.d.mts +6 -4
- package/cardinal-sdk-ts.d.mts +78 -78
- package/cardinal-sdk-ts.mjs +39335 -39225
- package/cardinal-sdk.mjs +68660 -69414
- package/filters/ContactFilters.d.mts +9 -26
- package/filters/DocumentFilters.d.mts +6 -12
- package/filters/HealthElementFilters.d.mts +15 -41
- package/filters/MaintenanceTaskFilters.d.mts +2 -8
- package/filters/MessageFilters.d.mts +8 -22
- package/filters/PatientFilters.d.mts +24 -62
- package/filters/ServiceFilters.d.mts +19 -52
- package/kotlin-kotlin-stdlib.mjs +10 -10
- package/model/Agenda.d.mts +4 -4
- package/model/Agenda.mjs +4 -4
- package/model/CalendarItem.d.mts +9 -9
- package/model/CalendarItem.mjs +6 -6
- package/model/Group.d.mts +1 -1
- package/model/Group.mjs +1 -1
- package/model/Patient.d.mts +3 -3
- package/model/Patient.mjs +3 -3
- package/model/Role.d.mts +16 -6
- package/model/Role.mjs +20 -5
- package/model/User.d.mts +6 -0
- package/model/User.mjs +11 -0
- package/model/base/CryptoActor.mjs +3 -3
- package/model/embed/Partnership.d.mts +60 -3
- package/model/embed/Partnership.mjs +85 -4
- package/model/embed/Service.d.mts +306 -0
- package/model/embed/Service.mjs +214 -0
- package/model/embed/form/template/Field.d.mts +1 -1
- package/model/embed/form/template/StructureElement.mjs +6 -6
- package/model/filter/predicate/Predicate.d.mts +1 -1
- package/model/filter/predicate/Predicate.mjs +3 -3
- package/model/security/Enable2faRequest.d.mts +20 -1
- package/model/security/Enable2faRequest.mjs +23 -1
- package/package.json +1 -1
|
@@ -10,37 +10,121 @@ import { Delegation } from './Delegation.mjs';
|
|
|
10
10
|
import { Encryptable } from './Encryptable.mjs';
|
|
11
11
|
import { SecurityMetadata } from './SecurityMetadata.mjs';
|
|
12
12
|
export interface Service extends Encryptable, ICureDocument<string>, HasEndOfLife {
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* The transactionId is used when a single service had to be split into parts for technical
|
|
16
|
+
* reasons. Several services with the same non null transaction id form one single service
|
|
17
|
+
*/
|
|
13
18
|
transactionId: string | undefined;
|
|
14
19
|
identifier: Array<Identifier>;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* Id of the contact during which the service is provided. Only used when the Service is emitted
|
|
23
|
+
* outside of its contact
|
|
24
|
+
*/
|
|
15
25
|
contactId: string | undefined;
|
|
16
26
|
subContactIds: Array<string> | undefined;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* List of IDs of all plans of actions (healthcare approaches) as a part of which the Service is
|
|
30
|
+
* provided. Only used when the Service is emitted outside of its contact
|
|
31
|
+
*/
|
|
17
32
|
plansOfActionIds: Array<string> | undefined;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* List of IDs of all healthcare elements for which the service is provided. Only used when the
|
|
36
|
+
* Service is emitted outside of its contact
|
|
37
|
+
*/
|
|
18
38
|
healthElementsIds: Array<string> | undefined;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* List of Ids of all forms linked to the Service. Only used when the Service is emitted outside of
|
|
42
|
+
* its contact.
|
|
43
|
+
*/
|
|
19
44
|
formIds: Array<string> | undefined;
|
|
20
45
|
secretForeignKeys: Array<string> | undefined;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* The public patient key, encrypted here for separate Crypto Actors.
|
|
49
|
+
*/
|
|
21
50
|
cryptedForeignKeys: {
|
|
22
51
|
[key: string]: Array<Delegation>;
|
|
23
52
|
};
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* The delegations giving access to connected healthcare information.
|
|
56
|
+
*/
|
|
24
57
|
delegations: {
|
|
25
58
|
[key: string]: Array<Delegation>;
|
|
26
59
|
};
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* The contact secret encryption key used to encrypt the secured properties (like services for
|
|
63
|
+
* example), encrypted for separate Crypto Actors.
|
|
64
|
+
*/
|
|
27
65
|
encryptionKeys: {
|
|
28
66
|
[key: string]: Array<Delegation>;
|
|
29
67
|
};
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* Description / Unambiguous qualification (LOINC code) of the type of information contained in the
|
|
71
|
+
* service. Could be a code to qualify temperature, complaint, diagnostic, ...
|
|
72
|
+
*/
|
|
30
73
|
label: string | undefined;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* Used for sorting services inside an upper object (A contact, a transaction, a FHIR bundle, ...)
|
|
77
|
+
*/
|
|
31
78
|
index: number | undefined;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* Information contained in the service. Content is localized, using ISO language code as key
|
|
82
|
+
*/
|
|
32
83
|
content: {
|
|
33
84
|
[key: string]: Content;
|
|
34
85
|
};
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* Information contained in the service. Content is localized, using ISO language code as key
|
|
89
|
+
*/
|
|
35
90
|
textIndexes: {
|
|
36
91
|
[key: string]: string;
|
|
37
92
|
};
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* The date (YYYYMMDDhhmmss) when the Service is noted to have started and also closes on the same
|
|
96
|
+
* date
|
|
97
|
+
*/
|
|
38
98
|
valueDate: number | undefined;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* The date (YYYYMMDDhhmmss) of the start of the Service
|
|
102
|
+
*/
|
|
39
103
|
openingDate: number | undefined;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* The date (YYYYMMDDhhmmss) marking the end of the Service
|
|
107
|
+
*/
|
|
40
108
|
closingDate: number | undefined;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* Text, comments on the Service provided
|
|
112
|
+
*/
|
|
41
113
|
comment: string | undefined;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* List of invoicing codes
|
|
117
|
+
*/
|
|
42
118
|
invoicingCodes: Array<string>;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* Comments - Notes recorded by a HCP about this service
|
|
122
|
+
*/
|
|
43
123
|
notes: Array<Annotation>;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* Links towards related services (possibly in other contacts)
|
|
127
|
+
*/
|
|
44
128
|
qualifiedLinks: {
|
|
45
129
|
[key in LinkQualification]?: {
|
|
46
130
|
[key: string]: string;
|
|
@@ -51,48 +135,159 @@ export interface Service extends Encryptable, ICureDocument<string>, HasEndOfLif
|
|
|
51
135
|
toJSON(): object;
|
|
52
136
|
}
|
|
53
137
|
export declare class DecryptedService {
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* The Id of the Service. We encourage using either a v4 UUID or a HL7 Id.
|
|
141
|
+
*/
|
|
54
142
|
id: string;
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* The transactionId is used when a single service had to be split into parts for technical
|
|
146
|
+
* reasons. Several services with the same non null transaction id form one single service
|
|
147
|
+
*/
|
|
55
148
|
transactionId: string | undefined;
|
|
56
149
|
identifier: Array<Identifier>;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* Id of the contact during which the service is provided. Only used when the Service is emitted
|
|
153
|
+
* outside of its contact
|
|
154
|
+
*/
|
|
57
155
|
contactId: string | undefined;
|
|
58
156
|
subContactIds: Array<string> | undefined;
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* List of IDs of all plans of actions (healthcare approaches) as a part of which the Service is
|
|
160
|
+
* provided. Only used when the Service is emitted outside of its contact
|
|
161
|
+
*/
|
|
59
162
|
plansOfActionIds: Array<string> | undefined;
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* List of IDs of all healthcare elements for which the service is provided. Only used when the
|
|
166
|
+
* Service is emitted outside of its contact
|
|
167
|
+
*/
|
|
60
168
|
healthElementsIds: Array<string> | undefined;
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* List of Ids of all forms linked to the Service. Only used when the Service is emitted outside of
|
|
172
|
+
* its contact.
|
|
173
|
+
*/
|
|
61
174
|
formIds: Array<string> | undefined;
|
|
62
175
|
secretForeignKeys: Array<string> | undefined;
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* The public patient key, encrypted here for separate Crypto Actors.
|
|
179
|
+
*/
|
|
63
180
|
cryptedForeignKeys: {
|
|
64
181
|
[key: string]: Array<Delegation>;
|
|
65
182
|
};
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* The delegations giving access to connected healthcare information.
|
|
186
|
+
*/
|
|
66
187
|
delegations: {
|
|
67
188
|
[key: string]: Array<Delegation>;
|
|
68
189
|
};
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* The contact secret encryption key used to encrypt the secured properties (like services for
|
|
193
|
+
* example), encrypted for separate Crypto Actors.
|
|
194
|
+
*/
|
|
69
195
|
encryptionKeys: {
|
|
70
196
|
[key: string]: Array<Delegation>;
|
|
71
197
|
};
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
* Description / Unambiguous qualification (LOINC code) of the type of information contained in the
|
|
201
|
+
* service. Could be a code to qualify temperature, complaint, diagnostic, ...
|
|
202
|
+
*/
|
|
72
203
|
label: string | undefined;
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* Used for sorting services inside an upper object (A contact, a transaction, a FHIR bundle, ...)
|
|
207
|
+
*/
|
|
73
208
|
index: number | undefined;
|
|
209
|
+
/**
|
|
210
|
+
*
|
|
211
|
+
* Information contained in the service. Content is localized, using ISO language code as key
|
|
212
|
+
*/
|
|
74
213
|
content: {
|
|
75
214
|
[key: string]: DecryptedContent;
|
|
76
215
|
};
|
|
216
|
+
/**
|
|
217
|
+
*
|
|
218
|
+
* Information contained in the service. Content is localized, using ISO language code as key
|
|
219
|
+
*/
|
|
77
220
|
textIndexes: {
|
|
78
221
|
[key: string]: string;
|
|
79
222
|
};
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
* The date (YYYYMMDDhhmmss) when the Service is noted to have started and also closes on the same
|
|
226
|
+
* date
|
|
227
|
+
*/
|
|
80
228
|
valueDate: number | undefined;
|
|
229
|
+
/**
|
|
230
|
+
*
|
|
231
|
+
* The date (YYYYMMDDhhmmss) of the start of the Service
|
|
232
|
+
*/
|
|
81
233
|
openingDate: number | undefined;
|
|
234
|
+
/**
|
|
235
|
+
*
|
|
236
|
+
* The date (YYYYMMDDhhmmss) marking the end of the Service
|
|
237
|
+
*/
|
|
82
238
|
closingDate: number | undefined;
|
|
239
|
+
/**
|
|
240
|
+
*
|
|
241
|
+
* The timestamp (unix epoch in ms) of creation of the service, will be filled automatically if
|
|
242
|
+
* missing. Not enforced by the application server.
|
|
243
|
+
*/
|
|
83
244
|
created: number | undefined;
|
|
245
|
+
/**
|
|
246
|
+
*
|
|
247
|
+
* The date (unix epoch in ms) of the latest modification of the service, will be filled
|
|
248
|
+
* automatically if missing. Not enforced by the application server.
|
|
249
|
+
*/
|
|
84
250
|
modified: number | undefined;
|
|
85
251
|
endOfLife: number | undefined;
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* The id of the User that has created this service, if absent, falls back on the contact's author
|
|
255
|
+
*/
|
|
86
256
|
author: string | undefined;
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
* The id of the HealthcareParty that is responsible for this service, if absent, falls back on the
|
|
260
|
+
* contact's responsible
|
|
261
|
+
*/
|
|
87
262
|
responsible: string | undefined;
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* Text, comments on the Service provided
|
|
266
|
+
*/
|
|
88
267
|
comment: string | undefined;
|
|
268
|
+
/**
|
|
269
|
+
*
|
|
270
|
+
* List of invoicing codes
|
|
271
|
+
*/
|
|
89
272
|
invoicingCodes: Array<string>;
|
|
273
|
+
/**
|
|
274
|
+
*
|
|
275
|
+
* Comments - Notes recorded by a HCP about this service
|
|
276
|
+
*/
|
|
90
277
|
notes: Array<Annotation>;
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
* Links towards related services (possibly in other contacts)
|
|
281
|
+
*/
|
|
91
282
|
qualifiedLinks: {
|
|
92
283
|
[key in LinkQualification]?: {
|
|
93
284
|
[key: string]: string;
|
|
94
285
|
};
|
|
95
286
|
};
|
|
287
|
+
/**
|
|
288
|
+
*
|
|
289
|
+
* Links towards related services (possibly in other contacts)
|
|
290
|
+
*/
|
|
96
291
|
codes: Array<CodeStub>;
|
|
97
292
|
tags: Array<CodeStub>;
|
|
98
293
|
encryptedSelf: Base64String | undefined;
|
|
@@ -103,48 +298,159 @@ export declare class DecryptedService {
|
|
|
103
298
|
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): DecryptedService;
|
|
104
299
|
}
|
|
105
300
|
export declare class EncryptedService {
|
|
301
|
+
/**
|
|
302
|
+
*
|
|
303
|
+
* The Id of the Service. We encourage using either a v4 UUID or a HL7 Id.
|
|
304
|
+
*/
|
|
106
305
|
id: string;
|
|
306
|
+
/**
|
|
307
|
+
*
|
|
308
|
+
* The transactionId is used when a single service had to be split into parts for technical
|
|
309
|
+
* reasons. Several services with the same non null transaction id form one single service
|
|
310
|
+
*/
|
|
107
311
|
transactionId: string | undefined;
|
|
108
312
|
identifier: Array<Identifier>;
|
|
313
|
+
/**
|
|
314
|
+
*
|
|
315
|
+
* Id of the contact during which the service is provided. Only used when the Service is emitted
|
|
316
|
+
* outside of its contact
|
|
317
|
+
*/
|
|
109
318
|
contactId: string | undefined;
|
|
110
319
|
subContactIds: Array<string> | undefined;
|
|
320
|
+
/**
|
|
321
|
+
*
|
|
322
|
+
* List of IDs of all plans of actions (healthcare approaches) as a part of which the Service is
|
|
323
|
+
* provided. Only used when the Service is emitted outside of its contact
|
|
324
|
+
*/
|
|
111
325
|
plansOfActionIds: Array<string> | undefined;
|
|
326
|
+
/**
|
|
327
|
+
*
|
|
328
|
+
* List of IDs of all healthcare elements for which the service is provided. Only used when the
|
|
329
|
+
* Service is emitted outside of its contact
|
|
330
|
+
*/
|
|
112
331
|
healthElementsIds: Array<string> | undefined;
|
|
332
|
+
/**
|
|
333
|
+
*
|
|
334
|
+
* List of Ids of all forms linked to the Service. Only used when the Service is emitted outside of
|
|
335
|
+
* its contact.
|
|
336
|
+
*/
|
|
113
337
|
formIds: Array<string> | undefined;
|
|
114
338
|
secretForeignKeys: Array<string> | undefined;
|
|
339
|
+
/**
|
|
340
|
+
*
|
|
341
|
+
* The public patient key, encrypted here for separate Crypto Actors.
|
|
342
|
+
*/
|
|
115
343
|
cryptedForeignKeys: {
|
|
116
344
|
[key: string]: Array<Delegation>;
|
|
117
345
|
};
|
|
346
|
+
/**
|
|
347
|
+
*
|
|
348
|
+
* The delegations giving access to connected healthcare information.
|
|
349
|
+
*/
|
|
118
350
|
delegations: {
|
|
119
351
|
[key: string]: Array<Delegation>;
|
|
120
352
|
};
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
* The contact secret encryption key used to encrypt the secured properties (like services for
|
|
356
|
+
* example), encrypted for separate Crypto Actors.
|
|
357
|
+
*/
|
|
121
358
|
encryptionKeys: {
|
|
122
359
|
[key: string]: Array<Delegation>;
|
|
123
360
|
};
|
|
361
|
+
/**
|
|
362
|
+
*
|
|
363
|
+
* Description / Unambiguous qualification (LOINC code) of the type of information contained in the
|
|
364
|
+
* service. Could be a code to qualify temperature, complaint, diagnostic, ...
|
|
365
|
+
*/
|
|
124
366
|
label: string | undefined;
|
|
367
|
+
/**
|
|
368
|
+
*
|
|
369
|
+
* Used for sorting services inside an upper object (A contact, a transaction, a FHIR bundle, ...)
|
|
370
|
+
*/
|
|
125
371
|
index: number | undefined;
|
|
372
|
+
/**
|
|
373
|
+
*
|
|
374
|
+
* Information contained in the service. Content is localized, using ISO language code as key
|
|
375
|
+
*/
|
|
126
376
|
content: {
|
|
127
377
|
[key: string]: EncryptedContent;
|
|
128
378
|
};
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
* Information contained in the service. Content is localized, using ISO language code as key
|
|
382
|
+
*/
|
|
129
383
|
textIndexes: {
|
|
130
384
|
[key: string]: string;
|
|
131
385
|
};
|
|
386
|
+
/**
|
|
387
|
+
*
|
|
388
|
+
* The date (YYYYMMDDhhmmss) when the Service is noted to have started and also closes on the same
|
|
389
|
+
* date
|
|
390
|
+
*/
|
|
132
391
|
valueDate: number | undefined;
|
|
392
|
+
/**
|
|
393
|
+
*
|
|
394
|
+
* The date (YYYYMMDDhhmmss) of the start of the Service
|
|
395
|
+
*/
|
|
133
396
|
openingDate: number | undefined;
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* The date (YYYYMMDDhhmmss) marking the end of the Service
|
|
400
|
+
*/
|
|
134
401
|
closingDate: number | undefined;
|
|
402
|
+
/**
|
|
403
|
+
*
|
|
404
|
+
* The timestamp (unix epoch in ms) of creation of the service, will be filled automatically if
|
|
405
|
+
* missing. Not enforced by the application server.
|
|
406
|
+
*/
|
|
135
407
|
created: number | undefined;
|
|
408
|
+
/**
|
|
409
|
+
*
|
|
410
|
+
* The date (unix epoch in ms) of the latest modification of the service, will be filled
|
|
411
|
+
* automatically if missing. Not enforced by the application server.
|
|
412
|
+
*/
|
|
136
413
|
modified: number | undefined;
|
|
137
414
|
endOfLife: number | undefined;
|
|
415
|
+
/**
|
|
416
|
+
*
|
|
417
|
+
* The id of the User that has created this service, if absent, falls back on the contact's author
|
|
418
|
+
*/
|
|
138
419
|
author: string | undefined;
|
|
420
|
+
/**
|
|
421
|
+
*
|
|
422
|
+
* The id of the HealthcareParty that is responsible for this service, if absent, falls back on the
|
|
423
|
+
* contact's responsible
|
|
424
|
+
*/
|
|
139
425
|
responsible: string | undefined;
|
|
426
|
+
/**
|
|
427
|
+
*
|
|
428
|
+
* Text, comments on the Service provided
|
|
429
|
+
*/
|
|
140
430
|
comment: string | undefined;
|
|
431
|
+
/**
|
|
432
|
+
*
|
|
433
|
+
* List of invoicing codes
|
|
434
|
+
*/
|
|
141
435
|
invoicingCodes: Array<string>;
|
|
436
|
+
/**
|
|
437
|
+
*
|
|
438
|
+
* Comments - Notes recorded by a HCP about this service
|
|
439
|
+
*/
|
|
142
440
|
notes: Array<Annotation>;
|
|
441
|
+
/**
|
|
442
|
+
*
|
|
443
|
+
* Links towards related services (possibly in other contacts)
|
|
444
|
+
*/
|
|
143
445
|
qualifiedLinks: {
|
|
144
446
|
[key in LinkQualification]?: {
|
|
145
447
|
[key: string]: string;
|
|
146
448
|
};
|
|
147
449
|
};
|
|
450
|
+
/**
|
|
451
|
+
*
|
|
452
|
+
* Links towards related services (possibly in other contacts)
|
|
453
|
+
*/
|
|
148
454
|
codes: Array<CodeStub>;
|
|
149
455
|
tags: Array<CodeStub>;
|
|
150
456
|
encryptedSelf: Base64String | undefined;
|