@icure/cardinal-sdk 2.7.0 → 2.8.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/api/CalendarItemApi.d.mts +36 -0
- package/api/CalendarItemBasicApi.d.mts +36 -0
- package/api/CalendarItemBasicInGroupApi.d.mts +16 -0
- package/api/CalendarItemInGroupApi.d.mts +16 -0
- package/cardinal-sdk-ts.mjs +40167 -39221
- package/cardinal-sdk.mjs +75186 -73956
- package/kotlin-kotlin-stdlib.mjs +6 -6
- package/kotlinx-coroutines-core.mjs +7 -7
- package/model/CalendarItemOccupancy.d.mts +25 -0
- package/model/CalendarItemOccupancy.mjs +39 -0
- package/model/Document.d.mts +12 -0
- package/model/Document.mjs +8 -0
- package/model/Group.d.mts +7 -3
- package/model/Group.mjs +7 -3
- package/model/HealthElement.d.mts +12 -12
- package/model/HealthElement.mjs +8 -8
- package/model/Receipt.d.mts +24 -0
- package/model/Receipt.mjs +16 -0
- package/model/User.d.mts +3 -3
- package/model/User.mjs +3 -3
- package/model/base/CodeStub.d.mts +3 -3
- package/model/base/CodeStub.mjs +3 -3
- package/model/base/Identifier.d.mts +5 -0
- package/model/base/Identifier.mjs +5 -0
- package/model/embed/DataAttachment.d.mts +2 -2
- package/model/embed/DataAttachment.mjs +2 -2
- package/model/embed/Partnership.d.mts +8 -0
- package/model/embed/Partnership.mjs +8 -0
- package/model/embed/Service.d.mts +30 -0
- package/model/embed/Service.mjs +20 -0
- package/model.d.mts +1 -0
- package/model.mjs +1 -0
- package/package.json +1 -1
package/kotlin-kotlin-stdlib.mjs
CHANGED
|
@@ -48,12 +48,6 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
48
48
|
};
|
|
49
49
|
}(Math.log, Math.LN2);
|
|
50
50
|
}
|
|
51
|
-
if (typeof String.prototype.startsWith === 'undefined') {
|
|
52
|
-
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
53
|
-
position = position || 0;
|
|
54
|
-
return this.lastIndexOf(searchString, position) === position;
|
|
55
|
-
}});
|
|
56
|
-
}
|
|
57
51
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
58
52
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
59
53
|
var subjectString = this.toString();
|
|
@@ -65,6 +59,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
65
59
|
return lastIndex !== -1 && lastIndex === position;
|
|
66
60
|
}});
|
|
67
61
|
}
|
|
62
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
63
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
64
|
+
position = position || 0;
|
|
65
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
66
|
+
}});
|
|
67
|
+
}
|
|
68
68
|
//endregion
|
|
69
69
|
//region block: imports
|
|
70
70
|
var imul_0 = Math.imul;
|
|
@@ -235,6 +235,11 @@ initMetadataForClass(BufferedChannelIterator, 'BufferedChannelIterator', VOID, V
|
|
|
235
235
|
initMetadataForCoroutine($sendCOROUTINE$, CoroutineImpl);
|
|
236
236
|
initMetadataForCoroutine($receiveCOROUTINE$, CoroutineImpl);
|
|
237
237
|
initMetadataForCoroutine($receiveCatchingCOROUTINE$, CoroutineImpl);
|
|
238
|
+
function close$default(cause, $super) {
|
|
239
|
+
cause = cause === VOID ? null : cause;
|
|
240
|
+
return $super === VOID ? this.s1d(cause) : $super.s1d.call(this, cause);
|
|
241
|
+
}
|
|
242
|
+
initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
|
|
238
243
|
function cancel$default_0(cause, $super) {
|
|
239
244
|
cause = cause === VOID ? null : cause;
|
|
240
245
|
var tmp;
|
|
@@ -247,12 +252,7 @@ function cancel$default_0(cause, $super) {
|
|
|
247
252
|
return tmp;
|
|
248
253
|
}
|
|
249
254
|
initMetadataForInterface(ReceiveChannel, 'ReceiveChannel', VOID, VOID, VOID, [0]);
|
|
250
|
-
|
|
251
|
-
cause = cause === VOID ? null : cause;
|
|
252
|
-
return $super === VOID ? this.s1d(cause) : $super.s1d.call(this, cause);
|
|
253
|
-
}
|
|
254
|
-
initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
|
|
255
|
-
initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [ReceiveChannel, SendChannel], [1, 4, 0, 3]);
|
|
255
|
+
initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [SendChannel, ReceiveChannel], [1, 4, 0, 3]);
|
|
256
256
|
initMetadataForClass(WaiterEB, 'WaiterEB');
|
|
257
257
|
initMetadataForClass(ReceiveCatching, 'ReceiveCatching', VOID, VOID, [Waiter]);
|
|
258
258
|
initMetadataForObject(Factory, 'Factory');
|
|
@@ -262,7 +262,7 @@ initMetadataForCompanion(Companion);
|
|
|
262
262
|
initMetadataForClass(ChannelResult, 'ChannelResult');
|
|
263
263
|
initMetadataForClass(ClosedReceiveChannelException, 'ClosedReceiveChannelException', VOID, NoSuchElementException);
|
|
264
264
|
initMetadataForClass(ClosedSendChannelException, 'ClosedSendChannelException', VOID, IllegalStateException);
|
|
265
|
-
initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [
|
|
265
|
+
initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [SendChannel, ReceiveChannel], [1, 0]);
|
|
266
266
|
initMetadataForClass(ConflatedBufferedChannel, 'ConflatedBufferedChannel', VOID, BufferedChannel, VOID, [1, 0]);
|
|
267
267
|
initMetadataForInterface(ProducerScope, 'ProducerScope', VOID, VOID, [CoroutineScope, SendChannel], [1]);
|
|
268
268
|
initMetadataForClass(ProducerCoroutine, 'ProducerCoroutine', VOID, ChannelCoroutine, [ProducerScope], [1, 0]);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* One point of a concurrent-occupancy step function for a period of calendar items.
|
|
4
|
+
*
|
|
5
|
+
* The occupancy of a period is emitted as a sequence of these points, ordered by [timestamp]: each
|
|
6
|
+
* point
|
|
7
|
+
* indicates that, starting from [timestamp], the number of overlapping (busy) calendar items
|
|
8
|
+
* becomes [occupancy].
|
|
9
|
+
* /
|
|
10
|
+
*/
|
|
11
|
+
export declare class CalendarItemOccupancy {
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* A fuzzy date-time at which the occupancy changes.
|
|
15
|
+
*/
|
|
16
|
+
timestamp: number;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* The number of calendar items that are concurrently busy starting from [timestamp].
|
|
20
|
+
*/
|
|
21
|
+
occupancy: number;
|
|
22
|
+
constructor(partial: Partial<CalendarItemOccupancy> & Pick<CalendarItemOccupancy, "timestamp" | "occupancy">);
|
|
23
|
+
toJSON(): object;
|
|
24
|
+
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): CalendarItemOccupancy;
|
|
25
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// auto-generated file
|
|
2
|
+
import { expectNumber, extractEntry } from '../internal/JsonDecodeUtils.mjs';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* One point of a concurrent-occupancy step function for a period of calendar items.
|
|
6
|
+
*
|
|
7
|
+
* The occupancy of a period is emitted as a sequence of these points, ordered by [timestamp]: each
|
|
8
|
+
* point
|
|
9
|
+
* indicates that, starting from [timestamp], the number of overlapping (busy) calendar items
|
|
10
|
+
* becomes [occupancy].
|
|
11
|
+
* /
|
|
12
|
+
*/
|
|
13
|
+
export class CalendarItemOccupancy {
|
|
14
|
+
constructor(partial) {
|
|
15
|
+
this.timestamp = partial.timestamp;
|
|
16
|
+
this.occupancy = partial.occupancy;
|
|
17
|
+
}
|
|
18
|
+
toJSON() {
|
|
19
|
+
const res = {};
|
|
20
|
+
res['timestamp'] = this.timestamp;
|
|
21
|
+
res['occupancy'] = this.occupancy;
|
|
22
|
+
return res;
|
|
23
|
+
}
|
|
24
|
+
static fromJSON(json, ignoreUnknownKeys = false, path = ['CalendarItemOccupancy']) {
|
|
25
|
+
if (typeof json != 'object')
|
|
26
|
+
throw new Error(`Expected json object at path ${path.join("")}`);
|
|
27
|
+
const jCpy = Object.assign({}, json);
|
|
28
|
+
const res = new CalendarItemOccupancy({
|
|
29
|
+
timestamp: expectNumber(extractEntry(jCpy, 'timestamp', true, path), false, true, [...path, ".timestamp"]),
|
|
30
|
+
occupancy: expectNumber(extractEntry(jCpy, 'occupancy', true, path), false, true, [...path, ".occupancy"]),
|
|
31
|
+
});
|
|
32
|
+
if (!ignoreUnknownKeys) {
|
|
33
|
+
const unused = Object.keys(jCpy);
|
|
34
|
+
if (unused.length > 0)
|
|
35
|
+
throw new Error(`Unexpected key(s) for json object CalendarItemOccupancy at path ${path.join("")}: ${unused}`);
|
|
36
|
+
}
|
|
37
|
+
return res;
|
|
38
|
+
}
|
|
39
|
+
}
|
package/model/Document.d.mts
CHANGED
|
@@ -84,6 +84,10 @@ export interface Document extends StoredDocument, ICureDocument<string>, HasEncr
|
|
|
84
84
|
* Extra Uniform Type Identifiers for the main attachment.
|
|
85
85
|
*/
|
|
86
86
|
mainAttachmentStoredDataSize: number | undefined;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* Extra Uniform Type Identifiers for the main attachment.
|
|
90
|
+
*/
|
|
87
91
|
extraMainAttachmentInfo: Document.ExtraMainAttachmentInfo | undefined;
|
|
88
92
|
/**
|
|
89
93
|
*
|
|
@@ -218,6 +222,10 @@ export declare class DecryptedDocument {
|
|
|
218
222
|
* Extra Uniform Type Identifiers for the main attachment.
|
|
219
223
|
*/
|
|
220
224
|
mainAttachmentStoredDataSize: number | undefined;
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* Extra Uniform Type Identifiers for the main attachment.
|
|
228
|
+
*/
|
|
221
229
|
extraMainAttachmentInfo: Document_.ExtraMainAttachmentInfo | undefined;
|
|
222
230
|
/**
|
|
223
231
|
*
|
|
@@ -390,6 +398,10 @@ export declare class EncryptedDocument {
|
|
|
390
398
|
* Extra Uniform Type Identifiers for the main attachment.
|
|
391
399
|
*/
|
|
392
400
|
mainAttachmentStoredDataSize: number | undefined;
|
|
401
|
+
/**
|
|
402
|
+
*
|
|
403
|
+
* Extra Uniform Type Identifiers for the main attachment.
|
|
404
|
+
*/
|
|
393
405
|
extraMainAttachmentInfo: Document_.ExtraMainAttachmentInfo | undefined;
|
|
394
406
|
/**
|
|
395
407
|
*
|
package/model/Document.mjs
CHANGED
|
@@ -124,6 +124,10 @@ export class DecryptedDocument {
|
|
|
124
124
|
* Extra Uniform Type Identifiers for the main attachment.
|
|
125
125
|
*/
|
|
126
126
|
this.mainAttachmentStoredDataSize = undefined;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* Extra Uniform Type Identifiers for the main attachment.
|
|
130
|
+
*/
|
|
127
131
|
this.extraMainAttachmentInfo = undefined;
|
|
128
132
|
/**
|
|
129
133
|
*
|
|
@@ -449,6 +453,10 @@ export class EncryptedDocument {
|
|
|
449
453
|
* Extra Uniform Type Identifiers for the main attachment.
|
|
450
454
|
*/
|
|
451
455
|
this.mainAttachmentStoredDataSize = undefined;
|
|
456
|
+
/**
|
|
457
|
+
*
|
|
458
|
+
* Extra Uniform Type Identifiers for the main attachment.
|
|
459
|
+
*/
|
|
452
460
|
this.extraMainAttachmentInfo = undefined;
|
|
453
461
|
/**
|
|
454
462
|
*
|
package/model/Group.d.mts
CHANGED
|
@@ -8,10 +8,10 @@ import { ExternalJwtConfig } from './security/ExternalJwtConfig.mjs';
|
|
|
8
8
|
import { OperationToken } from './security/OperationToken.mjs';
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
*
|
|
12
|
+
* Represents a group in the iCure platform. A group corresponds to a practice, hospital, or
|
|
12
13
|
* organization
|
|
13
|
-
*
|
|
14
|
-
* /
|
|
14
|
+
* that contains its own set of databases and users.
|
|
15
15
|
*/
|
|
16
16
|
export declare class Group implements StoredDocument, HasTags {
|
|
17
17
|
/**
|
|
@@ -112,6 +112,10 @@ export declare class Group implements StoredDocument, HasTags {
|
|
|
112
112
|
* A user-chosen identifier for the applications for which this group holds data.
|
|
113
113
|
*/
|
|
114
114
|
projectId: string | undefined;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* A user-chosen identifier for the applications for which this group holds data.
|
|
118
|
+
*/
|
|
115
119
|
templates: Group.TemplatesConfiguration | undefined;
|
|
116
120
|
/**
|
|
117
121
|
*
|
package/model/Group.mjs
CHANGED
|
@@ -9,10 +9,10 @@ import { ExternalJwtConfig } from './security/ExternalJwtConfig.mjs';
|
|
|
9
9
|
import { OperationToken } from './security/OperationToken.mjs';
|
|
10
10
|
/**
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
*
|
|
13
|
+
* Represents a group in the iCure platform. A group corresponds to a practice, hospital, or
|
|
13
14
|
* organization
|
|
14
|
-
*
|
|
15
|
-
* /
|
|
15
|
+
* that contains its own set of databases and users.
|
|
16
16
|
*/
|
|
17
17
|
export class Group {
|
|
18
18
|
constructor(partial) {
|
|
@@ -97,6 +97,10 @@ export class Group {
|
|
|
97
97
|
* A user-chosen identifier for the applications for which this group holds data.
|
|
98
98
|
*/
|
|
99
99
|
this.projectId = undefined;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* A user-chosen identifier for the applications for which this group holds data.
|
|
103
|
+
*/
|
|
100
104
|
this.templates = undefined;
|
|
101
105
|
/**
|
|
102
106
|
*
|
|
@@ -15,12 +15,12 @@ import { SecurityMetadata } from './embed/SecurityMetadata.mjs';
|
|
|
15
15
|
import { Base64String } from './specializations/Base64String.mjs';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
|
-
*
|
|
18
|
+
*
|
|
19
|
+
* Represents a healthcare element. A healthcare element is a patient-centric representation of a
|
|
19
20
|
* healthcare problem
|
|
20
|
-
*
|
|
21
|
+
* that evolves over time in its name/label and characteristics. It is a central element in the
|
|
21
22
|
* organisation of the
|
|
22
|
-
*
|
|
23
|
-
* /
|
|
23
|
+
* electronic health record, used to filter and link medical data in a meaningful way.
|
|
24
24
|
*/
|
|
25
25
|
export interface HealthElement extends StoredDocument, ICureDocument<string>, HasEncryptionMetadata, Encryptable, HasEndOfLife {
|
|
26
26
|
/**
|
|
@@ -110,12 +110,12 @@ export interface HealthElement extends StoredDocument, ICureDocument<string>, Ha
|
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
112
|
*
|
|
113
|
-
*
|
|
113
|
+
*
|
|
114
|
+
* Represents a healthcare element. A healthcare element is a patient-centric representation of a
|
|
114
115
|
* healthcare problem
|
|
115
|
-
*
|
|
116
|
+
* that evolves over time in its name/label and characteristics. It is a central element in the
|
|
116
117
|
* organisation of the
|
|
117
|
-
*
|
|
118
|
-
* /
|
|
118
|
+
* electronic health record, used to filter and link medical data in a meaningful way.
|
|
119
119
|
*/
|
|
120
120
|
export declare class DecryptedHealthElement {
|
|
121
121
|
/**
|
|
@@ -294,12 +294,12 @@ export declare class DecryptedHealthElement {
|
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
296
296
|
*
|
|
297
|
-
*
|
|
297
|
+
*
|
|
298
|
+
* Represents a healthcare element. A healthcare element is a patient-centric representation of a
|
|
298
299
|
* healthcare problem
|
|
299
|
-
*
|
|
300
|
+
* that evolves over time in its name/label and characteristics. It is a central element in the
|
|
300
301
|
* organisation of the
|
|
301
|
-
*
|
|
302
|
-
* /
|
|
302
|
+
* electronic health record, used to filter and link medical data in a meaningful way.
|
|
303
303
|
*/
|
|
304
304
|
export declare class EncryptedHealthElement {
|
|
305
305
|
/**
|
package/model/HealthElement.mjs
CHANGED
|
@@ -12,12 +12,12 @@ import { DecryptedPlanOfAction, EncryptedPlanOfAction } from './embed/PlanOfActi
|
|
|
12
12
|
import { SecurityMetadata } from './embed/SecurityMetadata.mjs';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
|
-
*
|
|
15
|
+
*
|
|
16
|
+
* Represents a healthcare element. A healthcare element is a patient-centric representation of a
|
|
16
17
|
* healthcare problem
|
|
17
|
-
*
|
|
18
|
+
* that evolves over time in its name/label and characteristics. It is a central element in the
|
|
18
19
|
* organisation of the
|
|
19
|
-
*
|
|
20
|
-
* /
|
|
20
|
+
* electronic health record, used to filter and link medical data in a meaningful way.
|
|
21
21
|
*/
|
|
22
22
|
export class DecryptedHealthElement {
|
|
23
23
|
constructor(partial) {
|
|
@@ -353,12 +353,12 @@ export class DecryptedHealthElement {
|
|
|
353
353
|
}
|
|
354
354
|
/**
|
|
355
355
|
*
|
|
356
|
-
*
|
|
356
|
+
*
|
|
357
|
+
* Represents a healthcare element. A healthcare element is a patient-centric representation of a
|
|
357
358
|
* healthcare problem
|
|
358
|
-
*
|
|
359
|
+
* that evolves over time in its name/label and characteristics. It is a central element in the
|
|
359
360
|
* organisation of the
|
|
360
|
-
*
|
|
361
|
-
* /
|
|
361
|
+
* electronic health record, used to filter and link medical data in a meaningful way.
|
|
362
362
|
*/
|
|
363
363
|
export class EncryptedHealthElement {
|
|
364
364
|
constructor(partial) {
|
package/model/Receipt.d.mts
CHANGED
|
@@ -26,9 +26,17 @@ export interface Receipt extends StoredDocument, ICureDocument<string>, HasEncry
|
|
|
26
26
|
attachmentIds: {
|
|
27
27
|
[key in ReceiptBlobType]?: string;
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* Map of blob type to attachment id for the receipt.
|
|
32
|
+
*/
|
|
29
33
|
attachmentInfos: {
|
|
30
34
|
[key in ReceiptBlobType]?: DataAttachment;
|
|
31
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* Map of blob type to attachment id for the receipt.
|
|
39
|
+
*/
|
|
32
40
|
deletedAttachments: Array<DeletedAttachment>;
|
|
33
41
|
/**
|
|
34
42
|
*
|
|
@@ -115,9 +123,17 @@ export declare class DecryptedReceipt {
|
|
|
115
123
|
attachmentIds: {
|
|
116
124
|
[key in ReceiptBlobType]?: string;
|
|
117
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* Map of blob type to attachment id for the receipt.
|
|
129
|
+
*/
|
|
118
130
|
attachmentInfos: {
|
|
119
131
|
[key in ReceiptBlobType]?: DataAttachment;
|
|
120
132
|
};
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* Map of blob type to attachment id for the receipt.
|
|
136
|
+
*/
|
|
121
137
|
deletedAttachments: Array<DeletedAttachment>;
|
|
122
138
|
/**
|
|
123
139
|
*
|
|
@@ -242,9 +258,17 @@ export declare class EncryptedReceipt {
|
|
|
242
258
|
attachmentIds: {
|
|
243
259
|
[key in ReceiptBlobType]?: string;
|
|
244
260
|
};
|
|
261
|
+
/**
|
|
262
|
+
*
|
|
263
|
+
* Map of blob type to attachment id for the receipt.
|
|
264
|
+
*/
|
|
245
265
|
attachmentInfos: {
|
|
246
266
|
[key in ReceiptBlobType]?: DataAttachment;
|
|
247
267
|
};
|
|
268
|
+
/**
|
|
269
|
+
*
|
|
270
|
+
* Map of blob type to attachment id for the receipt.
|
|
271
|
+
*/
|
|
248
272
|
deletedAttachments: Array<DeletedAttachment>;
|
|
249
273
|
/**
|
|
250
274
|
*
|
package/model/Receipt.mjs
CHANGED
|
@@ -64,7 +64,15 @@ export class DecryptedReceipt {
|
|
|
64
64
|
* Map of blob type to attachment id for the receipt.
|
|
65
65
|
*/
|
|
66
66
|
this.attachmentIds = {};
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* Map of blob type to attachment id for the receipt.
|
|
70
|
+
*/
|
|
67
71
|
this.attachmentInfos = {};
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* Map of blob type to attachment id for the receipt.
|
|
75
|
+
*/
|
|
68
76
|
this.deletedAttachments = [];
|
|
69
77
|
/**
|
|
70
78
|
*
|
|
@@ -296,7 +304,15 @@ export class EncryptedReceipt {
|
|
|
296
304
|
* Map of blob type to attachment id for the receipt.
|
|
297
305
|
*/
|
|
298
306
|
this.attachmentIds = {};
|
|
307
|
+
/**
|
|
308
|
+
*
|
|
309
|
+
* Map of blob type to attachment id for the receipt.
|
|
310
|
+
*/
|
|
299
311
|
this.attachmentInfos = {};
|
|
312
|
+
/**
|
|
313
|
+
*
|
|
314
|
+
* Map of blob type to attachment id for the receipt.
|
|
315
|
+
*/
|
|
300
316
|
this.deletedAttachments = [];
|
|
301
317
|
/**
|
|
302
318
|
*
|
package/model/User.d.mts
CHANGED
|
@@ -8,10 +8,10 @@ import { LoginIdentifier } from './security/LoginIdentifier.mjs';
|
|
|
8
8
|
import { Permission } from './security/Permission.mjs';
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
*
|
|
12
|
+
* Represents a user that can log in to the iCure platform. A user can be linked to a healthcare
|
|
12
13
|
* party,
|
|
13
|
-
*
|
|
14
|
-
* /
|
|
14
|
+
* a patient, or a device, and holds authentication credentials, roles, and permissions.
|
|
15
15
|
*/
|
|
16
16
|
export declare class User implements StoredDocument {
|
|
17
17
|
/**
|
package/model/User.mjs
CHANGED
|
@@ -10,10 +10,10 @@ import { LoginIdentifier } from './security/LoginIdentifier.mjs';
|
|
|
10
10
|
import { Permission } from './security/Permission.mjs';
|
|
11
11
|
/**
|
|
12
12
|
*
|
|
13
|
-
*
|
|
13
|
+
*
|
|
14
|
+
* Represents a user that can log in to the iCure platform. A user can be linked to a healthcare
|
|
14
15
|
* party,
|
|
15
|
-
*
|
|
16
|
-
* /
|
|
16
|
+
* a patient, or a device, and holds authentication credentials, roles, and permissions.
|
|
17
17
|
*/
|
|
18
18
|
export class User {
|
|
19
19
|
constructor(partial) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CodeIdentification } from './CodeIdentification.mjs';
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
*
|
|
5
|
+
* A lightweight reference to a code from a codification system, used as a stub in entities that
|
|
5
6
|
* reference codes
|
|
6
|
-
*
|
|
7
|
-
* /
|
|
7
|
+
* without embedding the full code definition. The id is typically formatted as type|code|version.
|
|
8
8
|
*/
|
|
9
9
|
export declare class CodeStub implements CodeIdentification<string | undefined> {
|
|
10
10
|
/**
|
package/model/base/CodeStub.mjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { expectString, extractEntry } from '../../internal/JsonDecodeUtils.mjs';
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
*
|
|
6
|
+
* A lightweight reference to a code from a codification system, used as a stub in entities that
|
|
6
7
|
* reference codes
|
|
7
|
-
*
|
|
8
|
-
* /
|
|
8
|
+
* without embedding the full code definition. The id is typically formatted as type|code|version.
|
|
9
9
|
*/
|
|
10
10
|
export class CodeStub {
|
|
11
11
|
constructor(partial) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
*
|
|
3
|
-
*
|
|
3
|
+
*
|
|
4
|
+
* Represents a data attachment that can be stored either as a CouchDB attachment or via object
|
|
4
5
|
* storage.
|
|
5
|
-
* /
|
|
6
6
|
*/
|
|
7
7
|
export declare class DataAttachment {
|
|
8
8
|
/**
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { expectArray, expectNumber, expectString, extractEntry } from '../../internal/JsonDecodeUtils.mjs';
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
*
|
|
6
|
+
* Represents a data attachment that can be stored either as a CouchDB attachment or via object
|
|
6
7
|
* storage.
|
|
7
|
-
* /
|
|
8
8
|
*/
|
|
9
9
|
export class DataAttachment {
|
|
10
10
|
constructor(partial) {
|
|
@@ -49,6 +49,10 @@ export declare class DecryptedPartnership {
|
|
|
49
49
|
* The UUID of the contact person or patient in this relationship.
|
|
50
50
|
*/
|
|
51
51
|
partnerId: string | undefined;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* Deprecated. Description of the relationship from the other person to this patient.
|
|
55
|
+
*/
|
|
52
56
|
encryptedSelf: Base64String | undefined;
|
|
53
57
|
readonly isEncrypted: false;
|
|
54
58
|
constructor(partial: Partial<DecryptedPartnership>);
|
|
@@ -77,6 +81,10 @@ export declare class EncryptedPartnership {
|
|
|
77
81
|
* The UUID of the contact person or patient in this relationship.
|
|
78
82
|
*/
|
|
79
83
|
partnerId: string | undefined;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* Deprecated. Description of the relationship from the other person to this patient.
|
|
87
|
+
*/
|
|
80
88
|
encryptedSelf: Base64String | undefined;
|
|
81
89
|
readonly isEncrypted: true;
|
|
82
90
|
constructor(partial: Partial<EncryptedPartnership>);
|
|
@@ -25,6 +25,10 @@ export class DecryptedPartnership {
|
|
|
25
25
|
* The UUID of the contact person or patient in this relationship.
|
|
26
26
|
*/
|
|
27
27
|
this.partnerId = undefined;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* Deprecated. Description of the relationship from the other person to this patient.
|
|
31
|
+
*/
|
|
28
32
|
this.encryptedSelf = undefined;
|
|
29
33
|
this.isEncrypted = false;
|
|
30
34
|
if (partial.isEncrypted !== undefined && partial.isEncrypted !== false)
|
|
@@ -94,6 +98,10 @@ export class EncryptedPartnership {
|
|
|
94
98
|
* The UUID of the contact person or patient in this relationship.
|
|
95
99
|
*/
|
|
96
100
|
this.partnerId = undefined;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* Deprecated. Description of the relationship from the other person to this patient.
|
|
104
|
+
*/
|
|
97
105
|
this.encryptedSelf = undefined;
|
|
98
106
|
this.isEncrypted = true;
|
|
99
107
|
if (partial.isEncrypted !== undefined && partial.isEncrypted !== true)
|
|
@@ -16,6 +16,11 @@ export interface Service extends Encryptable, ICureDocument<string>, HasEndOfLif
|
|
|
16
16
|
* reasons. Several services with the same non null transaction id form one single service
|
|
17
17
|
*/
|
|
18
18
|
transactionId: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* The transactionId is used when a single service had to be split into parts for technical
|
|
22
|
+
* reasons. Several services with the same non null transaction id form one single service
|
|
23
|
+
*/
|
|
19
24
|
identifier: Array<Identifier>;
|
|
20
25
|
/**
|
|
21
26
|
*
|
|
@@ -42,6 +47,11 @@ export interface Service extends Encryptable, ICureDocument<string>, HasEndOfLif
|
|
|
42
47
|
* its contact.
|
|
43
48
|
*/
|
|
44
49
|
formIds: Array<string> | undefined;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* List of Ids of all forms linked to the Service. Only used when the Service is emitted outside of
|
|
53
|
+
* its contact.
|
|
54
|
+
*/
|
|
45
55
|
secretForeignKeys: Array<string> | undefined;
|
|
46
56
|
/**
|
|
47
57
|
*
|
|
@@ -146,6 +156,11 @@ export declare class DecryptedService {
|
|
|
146
156
|
* reasons. Several services with the same non null transaction id form one single service
|
|
147
157
|
*/
|
|
148
158
|
transactionId: string | undefined;
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* The transactionId is used when a single service had to be split into parts for technical
|
|
162
|
+
* reasons. Several services with the same non null transaction id form one single service
|
|
163
|
+
*/
|
|
149
164
|
identifier: Array<Identifier>;
|
|
150
165
|
/**
|
|
151
166
|
*
|
|
@@ -172,6 +187,11 @@ export declare class DecryptedService {
|
|
|
172
187
|
* its contact.
|
|
173
188
|
*/
|
|
174
189
|
formIds: Array<string> | undefined;
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* List of Ids of all forms linked to the Service. Only used when the Service is emitted outside of
|
|
193
|
+
* its contact.
|
|
194
|
+
*/
|
|
175
195
|
secretForeignKeys: Array<string> | undefined;
|
|
176
196
|
/**
|
|
177
197
|
*
|
|
@@ -309,6 +329,11 @@ export declare class EncryptedService {
|
|
|
309
329
|
* reasons. Several services with the same non null transaction id form one single service
|
|
310
330
|
*/
|
|
311
331
|
transactionId: string | undefined;
|
|
332
|
+
/**
|
|
333
|
+
*
|
|
334
|
+
* The transactionId is used when a single service had to be split into parts for technical
|
|
335
|
+
* reasons. Several services with the same non null transaction id form one single service
|
|
336
|
+
*/
|
|
312
337
|
identifier: Array<Identifier>;
|
|
313
338
|
/**
|
|
314
339
|
*
|
|
@@ -335,6 +360,11 @@ export declare class EncryptedService {
|
|
|
335
360
|
* its contact.
|
|
336
361
|
*/
|
|
337
362
|
formIds: Array<string> | undefined;
|
|
363
|
+
/**
|
|
364
|
+
*
|
|
365
|
+
* List of Ids of all forms linked to the Service. Only used when the Service is emitted outside of
|
|
366
|
+
* its contact.
|
|
367
|
+
*/
|
|
338
368
|
secretForeignKeys: Array<string> | undefined;
|
|
339
369
|
/**
|
|
340
370
|
*
|