@medplum/mock 3.3.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/dist/cjs/index.cjs +3 -3
- package/dist/cjs/index.cjs.map +2 -2
- package/dist/cjs/index.d.ts +35 -34
- package/dist/esm/index.d.ts +35 -34
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +6 -6
package/dist/cjs/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ import { TypedEventTarget } from '@medplum/core';
|
|
|
47
47
|
import { UserConfiguration } from '@medplum/fhirtypes';
|
|
48
48
|
import { ValueSet } from '@medplum/fhirtypes';
|
|
49
49
|
import { WebSocketEventMap as WebSocketEventMap_2 } from '@medplum/core';
|
|
50
|
+
import { WithId } from '@medplum/core';
|
|
50
51
|
|
|
51
52
|
export declare const BartSimpson: Patient;
|
|
52
53
|
|
|
@@ -62,15 +63,15 @@ export declare const BlinkyTheFish: Patient;
|
|
|
62
63
|
*/
|
|
63
64
|
export declare function createFakeJwt(claims: Record<string, string | number>): string;
|
|
64
65
|
|
|
65
|
-
export declare const DifferentOrganization: Organization
|
|
66
|
+
export declare const DifferentOrganization: WithId<Organization>;
|
|
66
67
|
|
|
67
|
-
export declare const DrAliceSmith: Practitioner
|
|
68
|
+
export declare const DrAliceSmith: WithId<Practitioner>;
|
|
68
69
|
|
|
69
|
-
export declare const DrAliceSmithPreviousVersion: Practitioner
|
|
70
|
+
export declare const DrAliceSmithPreviousVersion: WithId<Practitioner>;
|
|
70
71
|
|
|
71
|
-
export declare const DrAliceSmithSchedule: Schedule
|
|
72
|
+
export declare const DrAliceSmithSchedule: WithId<Schedule>;
|
|
72
73
|
|
|
73
|
-
export declare const ExampleAccessPolicy: AccessPolicy
|
|
74
|
+
export declare const ExampleAccessPolicy: WithId<AccessPolicy>;
|
|
74
75
|
|
|
75
76
|
export declare const ExampleAuditEvent: AuditEvent;
|
|
76
77
|
|
|
@@ -84,7 +85,7 @@ export declare const ExampleQuestionnaire: Questionnaire;
|
|
|
84
85
|
|
|
85
86
|
export declare const ExampleQuestionnaireResponse: QuestionnaireResponse;
|
|
86
87
|
|
|
87
|
-
export declare const ExampleStatusValueSet: ValueSet
|
|
88
|
+
export declare const ExampleStatusValueSet: WithId<ValueSet>;
|
|
88
89
|
|
|
89
90
|
export declare const ExampleSubscription: Subscription;
|
|
90
91
|
|
|
@@ -94,12 +95,12 @@ export declare const ExampleThreadHeader: {
|
|
|
94
95
|
topic: {
|
|
95
96
|
text: string;
|
|
96
97
|
};
|
|
97
|
-
sender: Reference<Practitioner
|
|
98
|
+
sender: Reference<WithId<Practitioner>> & {
|
|
98
99
|
reference: string;
|
|
99
100
|
};
|
|
100
101
|
recipient: ((Reference<Patient> & {
|
|
101
102
|
reference: string;
|
|
102
|
-
}) | (Reference<Practitioner
|
|
103
|
+
}) | (Reference<WithId<Practitioner>> & {
|
|
103
104
|
reference: string;
|
|
104
105
|
}))[];
|
|
105
106
|
sent: string;
|
|
@@ -113,7 +114,7 @@ export declare const ExampleThreadMessages: ({
|
|
|
113
114
|
}[];
|
|
114
115
|
sent: string;
|
|
115
116
|
received: string;
|
|
116
|
-
sender: Reference<Practitioner
|
|
117
|
+
sender: Reference<WithId<Practitioner>> & {
|
|
117
118
|
reference: string;
|
|
118
119
|
};
|
|
119
120
|
recipient: (Reference<Patient> & {
|
|
@@ -127,12 +128,12 @@ export declare const ExampleThreadMessages: ({
|
|
|
127
128
|
topic: {
|
|
128
129
|
text: string;
|
|
129
130
|
};
|
|
130
|
-
sender: Reference<Practitioner
|
|
131
|
+
sender: Reference<WithId<Practitioner>> & {
|
|
131
132
|
reference: string;
|
|
132
133
|
};
|
|
133
134
|
recipient: ((Reference<Patient> & {
|
|
134
135
|
reference: string;
|
|
135
|
-
}) | (Reference<Practitioner
|
|
136
|
+
}) | (Reference<WithId<Practitioner>> & {
|
|
136
137
|
reference: string;
|
|
137
138
|
}))[];
|
|
138
139
|
sent: string;
|
|
@@ -150,7 +151,7 @@ export declare const ExampleThreadMessages: ({
|
|
|
150
151
|
sender: Reference<Patient> & {
|
|
151
152
|
reference: string;
|
|
152
153
|
};
|
|
153
|
-
recipient: (Reference<Practitioner
|
|
154
|
+
recipient: (Reference<WithId<Practitioner>> & {
|
|
154
155
|
reference: string;
|
|
155
156
|
})[];
|
|
156
157
|
resourceType: "Communication";
|
|
@@ -161,12 +162,12 @@ export declare const ExampleThreadMessages: ({
|
|
|
161
162
|
topic: {
|
|
162
163
|
text: string;
|
|
163
164
|
};
|
|
164
|
-
sender: Reference<Practitioner
|
|
165
|
+
sender: Reference<WithId<Practitioner>> & {
|
|
165
166
|
reference: string;
|
|
166
167
|
};
|
|
167
168
|
recipient: ((Reference<Patient> & {
|
|
168
169
|
reference: string;
|
|
169
|
-
}) | (Reference<Practitioner
|
|
170
|
+
}) | (Reference<WithId<Practitioner>> & {
|
|
170
171
|
reference: string;
|
|
171
172
|
}))[];
|
|
172
173
|
sent: string;
|
|
@@ -183,7 +184,7 @@ export declare const ExampleThreadMessages: ({
|
|
|
183
184
|
sender: Reference<Patient> & {
|
|
184
185
|
reference: string;
|
|
185
186
|
};
|
|
186
|
-
recipient: (Reference<Practitioner
|
|
187
|
+
recipient: (Reference<WithId<Practitioner>> & {
|
|
187
188
|
reference: string;
|
|
188
189
|
})[];
|
|
189
190
|
resourceType: "Communication";
|
|
@@ -194,12 +195,12 @@ export declare const ExampleThreadMessages: ({
|
|
|
194
195
|
topic: {
|
|
195
196
|
text: string;
|
|
196
197
|
};
|
|
197
|
-
sender: Reference<Practitioner
|
|
198
|
+
sender: Reference<WithId<Practitioner>> & {
|
|
198
199
|
reference: string;
|
|
199
200
|
};
|
|
200
201
|
recipient: ((Reference<Patient> & {
|
|
201
202
|
reference: string;
|
|
202
|
-
}) | (Reference<Practitioner
|
|
203
|
+
}) | (Reference<WithId<Practitioner>> & {
|
|
203
204
|
reference: string;
|
|
204
205
|
}))[];
|
|
205
206
|
sent: string;
|
|
@@ -217,7 +218,7 @@ export declare const ExampleThreadMessages: ({
|
|
|
217
218
|
sender: Reference<Patient> & {
|
|
218
219
|
reference: string;
|
|
219
220
|
};
|
|
220
|
-
recipient: (Reference<Practitioner
|
|
221
|
+
recipient: (Reference<WithId<Practitioner>> & {
|
|
221
222
|
reference: string;
|
|
222
223
|
})[];
|
|
223
224
|
resourceType: "Communication";
|
|
@@ -227,12 +228,12 @@ export declare const ExampleThreadMessages: ({
|
|
|
227
228
|
topic: {
|
|
228
229
|
text: string;
|
|
229
230
|
};
|
|
230
|
-
sender: Reference<Practitioner
|
|
231
|
+
sender: Reference<WithId<Practitioner>> & {
|
|
231
232
|
reference: string;
|
|
232
233
|
};
|
|
233
234
|
recipient: ((Reference<Patient> & {
|
|
234
235
|
reference: string;
|
|
235
|
-
}) | (Reference<Practitioner
|
|
236
|
+
}) | (Reference<WithId<Practitioner>> & {
|
|
236
237
|
reference: string;
|
|
237
238
|
}))[];
|
|
238
239
|
sent: string;
|
|
@@ -242,27 +243,27 @@ export declare const ExampleThreadMessages: ({
|
|
|
242
243
|
})[];
|
|
243
244
|
})[];
|
|
244
245
|
|
|
245
|
-
export declare const ExampleUserConfiguration: UserConfiguration
|
|
246
|
+
export declare const ExampleUserConfiguration: WithId<UserConfiguration>;
|
|
246
247
|
|
|
247
248
|
export declare const exampleValueSet: ValueSet;
|
|
248
249
|
|
|
249
|
-
export declare const ExampleWorkflowPlanDefinition: PlanDefinition
|
|
250
|
+
export declare const ExampleWorkflowPlanDefinition: WithId<PlanDefinition>;
|
|
250
251
|
|
|
251
|
-
export declare const ExampleWorkflowQuestionnaire1: Questionnaire
|
|
252
|
+
export declare const ExampleWorkflowQuestionnaire1: WithId<Questionnaire>;
|
|
252
253
|
|
|
253
|
-
export declare const ExampleWorkflowQuestionnaire2: Questionnaire
|
|
254
|
+
export declare const ExampleWorkflowQuestionnaire2: WithId<Questionnaire>;
|
|
254
255
|
|
|
255
|
-
export declare const ExampleWorkflowQuestionnaire3: Questionnaire
|
|
256
|
+
export declare const ExampleWorkflowQuestionnaire3: WithId<Questionnaire>;
|
|
256
257
|
|
|
257
|
-
export declare const ExampleWorkflowQuestionnaireResponse1: QuestionnaireResponse
|
|
258
|
+
export declare const ExampleWorkflowQuestionnaireResponse1: WithId<QuestionnaireResponse>;
|
|
258
259
|
|
|
259
|
-
export declare const ExampleWorkflowRequestGroup: RequestGroup
|
|
260
|
+
export declare const ExampleWorkflowRequestGroup: WithId<RequestGroup>;
|
|
260
261
|
|
|
261
|
-
export declare const ExampleWorkflowTask1: Task
|
|
262
|
+
export declare const ExampleWorkflowTask1: WithId<Task>;
|
|
262
263
|
|
|
263
|
-
export declare const ExampleWorkflowTask2: Task
|
|
264
|
+
export declare const ExampleWorkflowTask2: WithId<Task>;
|
|
264
265
|
|
|
265
|
-
export declare const ExampleWorkflowTask3: Task
|
|
266
|
+
export declare const ExampleWorkflowTask3: WithId<Task>;
|
|
266
267
|
|
|
267
268
|
export declare const FishPatientResources: {
|
|
268
269
|
getFishPatientProfileSD: () => ProfileStructureDefinition;
|
|
@@ -313,7 +314,7 @@ export declare const ImplantableDeviceKnee: Device;
|
|
|
313
314
|
|
|
314
315
|
export declare const LisaSimpson: Patient;
|
|
315
316
|
|
|
316
|
-
export declare const makeDrAliceSmithSlots: () => Slot[];
|
|
317
|
+
export declare const makeDrAliceSmithSlots: () => WithId<Slot>[];
|
|
317
318
|
|
|
318
319
|
export declare const MargeSimpson: Patient;
|
|
319
320
|
|
|
@@ -329,12 +330,12 @@ export declare class MockClient extends MedplumClient {
|
|
|
329
330
|
constructor(clientOptions?: MockClientOptions);
|
|
330
331
|
clear(): void;
|
|
331
332
|
getProfile(): ProfileResource | undefined;
|
|
332
|
-
getUserConfiguration(): UserConfiguration | undefined;
|
|
333
|
+
getUserConfiguration(): WithId<UserConfiguration> | undefined;
|
|
333
334
|
setActiveLoginOverride(activeLoginOverride: LoginState): void;
|
|
334
335
|
setProfile(profile: ProfileResource | undefined): void;
|
|
335
336
|
getActiveLogin(): LoginState | undefined;
|
|
336
337
|
getLogins(): LoginState[];
|
|
337
|
-
createBinary(arg1: BinarySource | CreateBinaryOptions, arg2: string | undefined | MedplumRequestOptions, arg3?: string, arg4?: (e: ProgressEvent) => void): Promise<Binary
|
|
338
|
+
createBinary(arg1: BinarySource | CreateBinaryOptions, arg2: string | undefined | MedplumRequestOptions, arg3?: string, arg4?: (e: ProgressEvent) => void): Promise<WithId<Binary>>;
|
|
338
339
|
pushToAgent(agent: Agent | Reference<Agent>, destination: Device | Reference<Device> | string, body: any, contentType?: string, _waitForResponse?: boolean, _options?: MedplumRequestOptions): Promise<any>;
|
|
339
340
|
setAgentAvailable(value: boolean): void;
|
|
340
341
|
getSubscriptionManager(): MockSubscriptionManager;
|
|
@@ -433,7 +434,7 @@ export declare type ProfileStructureDefinition = StructureDefinition & {
|
|
|
433
434
|
|
|
434
435
|
export declare const SimpsonsFamily: Group;
|
|
435
436
|
|
|
436
|
-
export declare const TestOrganization: Organization
|
|
437
|
+
export declare const TestOrganization: WithId<Organization>;
|
|
437
438
|
|
|
438
439
|
export declare const USCoreStructureDefinitionList: StructureDefinition[];
|
|
439
440
|
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ import { TypedEventTarget } from '@medplum/core';
|
|
|
47
47
|
import { UserConfiguration } from '@medplum/fhirtypes';
|
|
48
48
|
import { ValueSet } from '@medplum/fhirtypes';
|
|
49
49
|
import { WebSocketEventMap as WebSocketEventMap_2 } from '@medplum/core';
|
|
50
|
+
import { WithId } from '@medplum/core';
|
|
50
51
|
|
|
51
52
|
export declare const BartSimpson: Patient;
|
|
52
53
|
|
|
@@ -62,15 +63,15 @@ export declare const BlinkyTheFish: Patient;
|
|
|
62
63
|
*/
|
|
63
64
|
export declare function createFakeJwt(claims: Record<string, string | number>): string;
|
|
64
65
|
|
|
65
|
-
export declare const DifferentOrganization: Organization
|
|
66
|
+
export declare const DifferentOrganization: WithId<Organization>;
|
|
66
67
|
|
|
67
|
-
export declare const DrAliceSmith: Practitioner
|
|
68
|
+
export declare const DrAliceSmith: WithId<Practitioner>;
|
|
68
69
|
|
|
69
|
-
export declare const DrAliceSmithPreviousVersion: Practitioner
|
|
70
|
+
export declare const DrAliceSmithPreviousVersion: WithId<Practitioner>;
|
|
70
71
|
|
|
71
|
-
export declare const DrAliceSmithSchedule: Schedule
|
|
72
|
+
export declare const DrAliceSmithSchedule: WithId<Schedule>;
|
|
72
73
|
|
|
73
|
-
export declare const ExampleAccessPolicy: AccessPolicy
|
|
74
|
+
export declare const ExampleAccessPolicy: WithId<AccessPolicy>;
|
|
74
75
|
|
|
75
76
|
export declare const ExampleAuditEvent: AuditEvent;
|
|
76
77
|
|
|
@@ -84,7 +85,7 @@ export declare const ExampleQuestionnaire: Questionnaire;
|
|
|
84
85
|
|
|
85
86
|
export declare const ExampleQuestionnaireResponse: QuestionnaireResponse;
|
|
86
87
|
|
|
87
|
-
export declare const ExampleStatusValueSet: ValueSet
|
|
88
|
+
export declare const ExampleStatusValueSet: WithId<ValueSet>;
|
|
88
89
|
|
|
89
90
|
export declare const ExampleSubscription: Subscription;
|
|
90
91
|
|
|
@@ -94,12 +95,12 @@ export declare const ExampleThreadHeader: {
|
|
|
94
95
|
topic: {
|
|
95
96
|
text: string;
|
|
96
97
|
};
|
|
97
|
-
sender: Reference<Practitioner
|
|
98
|
+
sender: Reference<WithId<Practitioner>> & {
|
|
98
99
|
reference: string;
|
|
99
100
|
};
|
|
100
101
|
recipient: ((Reference<Patient> & {
|
|
101
102
|
reference: string;
|
|
102
|
-
}) | (Reference<Practitioner
|
|
103
|
+
}) | (Reference<WithId<Practitioner>> & {
|
|
103
104
|
reference: string;
|
|
104
105
|
}))[];
|
|
105
106
|
sent: string;
|
|
@@ -113,7 +114,7 @@ export declare const ExampleThreadMessages: ({
|
|
|
113
114
|
}[];
|
|
114
115
|
sent: string;
|
|
115
116
|
received: string;
|
|
116
|
-
sender: Reference<Practitioner
|
|
117
|
+
sender: Reference<WithId<Practitioner>> & {
|
|
117
118
|
reference: string;
|
|
118
119
|
};
|
|
119
120
|
recipient: (Reference<Patient> & {
|
|
@@ -127,12 +128,12 @@ export declare const ExampleThreadMessages: ({
|
|
|
127
128
|
topic: {
|
|
128
129
|
text: string;
|
|
129
130
|
};
|
|
130
|
-
sender: Reference<Practitioner
|
|
131
|
+
sender: Reference<WithId<Practitioner>> & {
|
|
131
132
|
reference: string;
|
|
132
133
|
};
|
|
133
134
|
recipient: ((Reference<Patient> & {
|
|
134
135
|
reference: string;
|
|
135
|
-
}) | (Reference<Practitioner
|
|
136
|
+
}) | (Reference<WithId<Practitioner>> & {
|
|
136
137
|
reference: string;
|
|
137
138
|
}))[];
|
|
138
139
|
sent: string;
|
|
@@ -150,7 +151,7 @@ export declare const ExampleThreadMessages: ({
|
|
|
150
151
|
sender: Reference<Patient> & {
|
|
151
152
|
reference: string;
|
|
152
153
|
};
|
|
153
|
-
recipient: (Reference<Practitioner
|
|
154
|
+
recipient: (Reference<WithId<Practitioner>> & {
|
|
154
155
|
reference: string;
|
|
155
156
|
})[];
|
|
156
157
|
resourceType: "Communication";
|
|
@@ -161,12 +162,12 @@ export declare const ExampleThreadMessages: ({
|
|
|
161
162
|
topic: {
|
|
162
163
|
text: string;
|
|
163
164
|
};
|
|
164
|
-
sender: Reference<Practitioner
|
|
165
|
+
sender: Reference<WithId<Practitioner>> & {
|
|
165
166
|
reference: string;
|
|
166
167
|
};
|
|
167
168
|
recipient: ((Reference<Patient> & {
|
|
168
169
|
reference: string;
|
|
169
|
-
}) | (Reference<Practitioner
|
|
170
|
+
}) | (Reference<WithId<Practitioner>> & {
|
|
170
171
|
reference: string;
|
|
171
172
|
}))[];
|
|
172
173
|
sent: string;
|
|
@@ -183,7 +184,7 @@ export declare const ExampleThreadMessages: ({
|
|
|
183
184
|
sender: Reference<Patient> & {
|
|
184
185
|
reference: string;
|
|
185
186
|
};
|
|
186
|
-
recipient: (Reference<Practitioner
|
|
187
|
+
recipient: (Reference<WithId<Practitioner>> & {
|
|
187
188
|
reference: string;
|
|
188
189
|
})[];
|
|
189
190
|
resourceType: "Communication";
|
|
@@ -194,12 +195,12 @@ export declare const ExampleThreadMessages: ({
|
|
|
194
195
|
topic: {
|
|
195
196
|
text: string;
|
|
196
197
|
};
|
|
197
|
-
sender: Reference<Practitioner
|
|
198
|
+
sender: Reference<WithId<Practitioner>> & {
|
|
198
199
|
reference: string;
|
|
199
200
|
};
|
|
200
201
|
recipient: ((Reference<Patient> & {
|
|
201
202
|
reference: string;
|
|
202
|
-
}) | (Reference<Practitioner
|
|
203
|
+
}) | (Reference<WithId<Practitioner>> & {
|
|
203
204
|
reference: string;
|
|
204
205
|
}))[];
|
|
205
206
|
sent: string;
|
|
@@ -217,7 +218,7 @@ export declare const ExampleThreadMessages: ({
|
|
|
217
218
|
sender: Reference<Patient> & {
|
|
218
219
|
reference: string;
|
|
219
220
|
};
|
|
220
|
-
recipient: (Reference<Practitioner
|
|
221
|
+
recipient: (Reference<WithId<Practitioner>> & {
|
|
221
222
|
reference: string;
|
|
222
223
|
})[];
|
|
223
224
|
resourceType: "Communication";
|
|
@@ -227,12 +228,12 @@ export declare const ExampleThreadMessages: ({
|
|
|
227
228
|
topic: {
|
|
228
229
|
text: string;
|
|
229
230
|
};
|
|
230
|
-
sender: Reference<Practitioner
|
|
231
|
+
sender: Reference<WithId<Practitioner>> & {
|
|
231
232
|
reference: string;
|
|
232
233
|
};
|
|
233
234
|
recipient: ((Reference<Patient> & {
|
|
234
235
|
reference: string;
|
|
235
|
-
}) | (Reference<Practitioner
|
|
236
|
+
}) | (Reference<WithId<Practitioner>> & {
|
|
236
237
|
reference: string;
|
|
237
238
|
}))[];
|
|
238
239
|
sent: string;
|
|
@@ -242,27 +243,27 @@ export declare const ExampleThreadMessages: ({
|
|
|
242
243
|
})[];
|
|
243
244
|
})[];
|
|
244
245
|
|
|
245
|
-
export declare const ExampleUserConfiguration: UserConfiguration
|
|
246
|
+
export declare const ExampleUserConfiguration: WithId<UserConfiguration>;
|
|
246
247
|
|
|
247
248
|
export declare const exampleValueSet: ValueSet;
|
|
248
249
|
|
|
249
|
-
export declare const ExampleWorkflowPlanDefinition: PlanDefinition
|
|
250
|
+
export declare const ExampleWorkflowPlanDefinition: WithId<PlanDefinition>;
|
|
250
251
|
|
|
251
|
-
export declare const ExampleWorkflowQuestionnaire1: Questionnaire
|
|
252
|
+
export declare const ExampleWorkflowQuestionnaire1: WithId<Questionnaire>;
|
|
252
253
|
|
|
253
|
-
export declare const ExampleWorkflowQuestionnaire2: Questionnaire
|
|
254
|
+
export declare const ExampleWorkflowQuestionnaire2: WithId<Questionnaire>;
|
|
254
255
|
|
|
255
|
-
export declare const ExampleWorkflowQuestionnaire3: Questionnaire
|
|
256
|
+
export declare const ExampleWorkflowQuestionnaire3: WithId<Questionnaire>;
|
|
256
257
|
|
|
257
|
-
export declare const ExampleWorkflowQuestionnaireResponse1: QuestionnaireResponse
|
|
258
|
+
export declare const ExampleWorkflowQuestionnaireResponse1: WithId<QuestionnaireResponse>;
|
|
258
259
|
|
|
259
|
-
export declare const ExampleWorkflowRequestGroup: RequestGroup
|
|
260
|
+
export declare const ExampleWorkflowRequestGroup: WithId<RequestGroup>;
|
|
260
261
|
|
|
261
|
-
export declare const ExampleWorkflowTask1: Task
|
|
262
|
+
export declare const ExampleWorkflowTask1: WithId<Task>;
|
|
262
263
|
|
|
263
|
-
export declare const ExampleWorkflowTask2: Task
|
|
264
|
+
export declare const ExampleWorkflowTask2: WithId<Task>;
|
|
264
265
|
|
|
265
|
-
export declare const ExampleWorkflowTask3: Task
|
|
266
|
+
export declare const ExampleWorkflowTask3: WithId<Task>;
|
|
266
267
|
|
|
267
268
|
export declare const FishPatientResources: {
|
|
268
269
|
getFishPatientProfileSD: () => ProfileStructureDefinition;
|
|
@@ -313,7 +314,7 @@ export declare const ImplantableDeviceKnee: Device;
|
|
|
313
314
|
|
|
314
315
|
export declare const LisaSimpson: Patient;
|
|
315
316
|
|
|
316
|
-
export declare const makeDrAliceSmithSlots: () => Slot[];
|
|
317
|
+
export declare const makeDrAliceSmithSlots: () => WithId<Slot>[];
|
|
317
318
|
|
|
318
319
|
export declare const MargeSimpson: Patient;
|
|
319
320
|
|
|
@@ -329,12 +330,12 @@ export declare class MockClient extends MedplumClient {
|
|
|
329
330
|
constructor(clientOptions?: MockClientOptions);
|
|
330
331
|
clear(): void;
|
|
331
332
|
getProfile(): ProfileResource | undefined;
|
|
332
|
-
getUserConfiguration(): UserConfiguration | undefined;
|
|
333
|
+
getUserConfiguration(): WithId<UserConfiguration> | undefined;
|
|
333
334
|
setActiveLoginOverride(activeLoginOverride: LoginState): void;
|
|
334
335
|
setProfile(profile: ProfileResource | undefined): void;
|
|
335
336
|
getActiveLogin(): LoginState | undefined;
|
|
336
337
|
getLogins(): LoginState[];
|
|
337
|
-
createBinary(arg1: BinarySource | CreateBinaryOptions, arg2: string | undefined | MedplumRequestOptions, arg3?: string, arg4?: (e: ProgressEvent) => void): Promise<Binary
|
|
338
|
+
createBinary(arg1: BinarySource | CreateBinaryOptions, arg2: string | undefined | MedplumRequestOptions, arg3?: string, arg4?: (e: ProgressEvent) => void): Promise<WithId<Binary>>;
|
|
338
339
|
pushToAgent(agent: Agent | Reference<Agent>, destination: Device | Reference<Device> | string, body: any, contentType?: string, _waitForResponse?: boolean, _options?: MedplumRequestOptions): Promise<any>;
|
|
339
340
|
setAgentAvailable(value: boolean): void;
|
|
340
341
|
getSubscriptionManager(): MockSubscriptionManager;
|
|
@@ -433,7 +434,7 @@ export declare type ProfileStructureDefinition = StructureDefinition & {
|
|
|
433
434
|
|
|
434
435
|
export declare const SimpsonsFamily: Group;
|
|
435
436
|
|
|
436
|
-
export declare const TestOrganization: Organization
|
|
437
|
+
export declare const TestOrganization: WithId<Organization>;
|
|
437
438
|
|
|
438
439
|
export declare const USCoreStructureDefinitionList: StructureDefinition[];
|
|
439
440
|
|