@icure/cardinal-sdk 2.7.0 → 2.8.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/api/CalendarItemBasicApi.d.mts +36 -0
- package/api/CalendarItemBasicInGroupApi.d.mts +16 -0
- package/cardinal-sdk-ts.mjs +39690 -39214
- package/cardinal-sdk.mjs +74319 -73376
- package/kotlinx-coroutines-core.mjs +1 -1
- 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/Medication.d.mts +85 -0
- package/model/embed/Medication.mjs +85 -0
- 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
|
@@ -294,7 +294,7 @@ initMetadataForClass(ContextScope, 'ContextScope', VOID, VOID, [CoroutineScope])
|
|
|
294
294
|
initMetadataForClass(Symbol, 'Symbol');
|
|
295
295
|
initMetadataForInterface(SelectInstance, 'SelectInstance');
|
|
296
296
|
initMetadataForClass(ClauseData, 'ClauseData', VOID, VOID, VOID, [1]);
|
|
297
|
-
initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler,
|
|
297
|
+
initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler, Waiter, SelectInstance], [0, 2]);
|
|
298
298
|
initMetadataForClass(TrySelectDetailedResult, 'TrySelectDetailedResult', VOID, Enum);
|
|
299
299
|
initMetadataForClass(CancellableContinuationWithOwner, 'CancellableContinuationWithOwner', VOID, VOID, [CancellableContinuation, Waiter]);
|
|
300
300
|
initMetadataForClass(SemaphoreAndMutexImpl, 'SemaphoreAndMutexImpl', VOID, VOID, VOID, [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) {
|
|
@@ -17,22 +17,107 @@ export declare class Medication {
|
|
|
17
17
|
* The expiration date of the medication. Format: yyyyMMdd
|
|
18
18
|
*/
|
|
19
19
|
expirationDate: number | undefined;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
23
|
+
* /
|
|
24
|
+
*/
|
|
20
25
|
instructionForPatient: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
29
|
+
* /
|
|
30
|
+
*/
|
|
21
31
|
instructionForReimbursement: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
35
|
+
* /
|
|
36
|
+
*/
|
|
22
37
|
commentForDelivery: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
41
|
+
* /
|
|
42
|
+
*/
|
|
23
43
|
drugRoute: string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
47
|
+
* /
|
|
48
|
+
*/
|
|
24
49
|
temporality: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
53
|
+
* /
|
|
54
|
+
*/
|
|
25
55
|
frequency: CodeStub | undefined;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
59
|
+
* /
|
|
60
|
+
*/
|
|
26
61
|
reimbursementReason: CodeStub | undefined;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
65
|
+
* /
|
|
66
|
+
*/
|
|
27
67
|
substitutionAllowed: boolean | undefined;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
71
|
+
* /
|
|
72
|
+
*/
|
|
28
73
|
beginMoment: number | undefined;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
77
|
+
* /
|
|
78
|
+
*/
|
|
29
79
|
endMoment: number | undefined;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
83
|
+
* /
|
|
84
|
+
*/
|
|
30
85
|
deliveryMoment: number | undefined;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
89
|
+
* /
|
|
90
|
+
*/
|
|
31
91
|
endExecutionMoment: number | undefined;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
95
|
+
* /
|
|
96
|
+
*/
|
|
32
97
|
duration: Duration | undefined;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
101
|
+
* /
|
|
102
|
+
*/
|
|
33
103
|
renewal: Renewal | undefined;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
107
|
+
* /
|
|
108
|
+
*/
|
|
34
109
|
knownUsage: boolean | undefined;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
113
|
+
* /
|
|
114
|
+
*/
|
|
35
115
|
regimen: Array<RegimenItem> | undefined;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
119
|
+
* /
|
|
120
|
+
*/
|
|
36
121
|
posology: string | undefined;
|
|
37
122
|
stockLocation: DecryptedAddress | undefined;
|
|
38
123
|
constructor(partial: Partial<Medication>);
|
|
@@ -20,22 +20,107 @@ export class Medication {
|
|
|
20
20
|
* The expiration date of the medication. Format: yyyyMMdd
|
|
21
21
|
*/
|
|
22
22
|
this.expirationDate = undefined;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
26
|
+
* /
|
|
27
|
+
*/
|
|
23
28
|
this.instructionForPatient = undefined;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
32
|
+
* /
|
|
33
|
+
*/
|
|
24
34
|
this.instructionForReimbursement = undefined;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
38
|
+
* /
|
|
39
|
+
*/
|
|
25
40
|
this.commentForDelivery = undefined;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
44
|
+
* /
|
|
45
|
+
*/
|
|
26
46
|
this.drugRoute = undefined;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
50
|
+
* /
|
|
51
|
+
*/
|
|
27
52
|
this.temporality = undefined;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
56
|
+
* /
|
|
57
|
+
*/
|
|
28
58
|
this.frequency = undefined;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
62
|
+
* /
|
|
63
|
+
*/
|
|
29
64
|
this.reimbursementReason = undefined;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
68
|
+
* /
|
|
69
|
+
*/
|
|
30
70
|
this.substitutionAllowed = undefined;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
74
|
+
* /
|
|
75
|
+
*/
|
|
31
76
|
this.beginMoment = undefined;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
80
|
+
* /
|
|
81
|
+
*/
|
|
32
82
|
this.endMoment = undefined;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
86
|
+
* /
|
|
87
|
+
*/
|
|
33
88
|
this.deliveryMoment = undefined;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
92
|
+
* /
|
|
93
|
+
*/
|
|
34
94
|
this.endExecutionMoment = undefined;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
98
|
+
* /
|
|
99
|
+
*/
|
|
35
100
|
this.duration = undefined;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
104
|
+
* /
|
|
105
|
+
*/
|
|
36
106
|
this.renewal = undefined;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
110
|
+
* /
|
|
111
|
+
*/
|
|
37
112
|
this.knownUsage = undefined;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
116
|
+
* /
|
|
117
|
+
*/
|
|
38
118
|
this.regimen = undefined;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* The expiration date of the medication. Format: yyyyMMdd
|
|
122
|
+
* /
|
|
123
|
+
*/
|
|
39
124
|
this.posology = undefined;
|
|
40
125
|
this.stockLocation = undefined;
|
|
41
126
|
if ('compoundPrescription' in partial)
|