@medplum/mock 3.0.13 → 3.1.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 +4 -4
- package/dist/cjs/index.cjs.map +4 -4
- package/dist/cjs/index.d.ts +102 -1
- package/dist/esm/index.d.ts +102 -1
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/index.mjs.map +4 -4
- package/package.json +5 -5
package/dist/cjs/index.d.ts
CHANGED
|
@@ -75,6 +75,106 @@ export declare const ExampleStatusValueSet: ValueSet;
|
|
|
75
75
|
|
|
76
76
|
export declare const ExampleSubscription: Subscription;
|
|
77
77
|
|
|
78
|
+
export declare const ExampleThreadHeader: {
|
|
79
|
+
id: string;
|
|
80
|
+
resourceType: "Communication";
|
|
81
|
+
topic: {
|
|
82
|
+
text: string;
|
|
83
|
+
};
|
|
84
|
+
sender: Reference<Practitioner>;
|
|
85
|
+
recipient: (Reference<Patient> | Reference<Practitioner>)[];
|
|
86
|
+
sent: string;
|
|
87
|
+
status: "in-progress";
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export declare const ExampleThreadMessages: ({
|
|
91
|
+
id: string;
|
|
92
|
+
payload: {
|
|
93
|
+
contentString: string;
|
|
94
|
+
}[];
|
|
95
|
+
sent: string;
|
|
96
|
+
received: string;
|
|
97
|
+
sender: Reference<Practitioner>;
|
|
98
|
+
recipient: Reference<Patient>[];
|
|
99
|
+
resourceType: "Communication";
|
|
100
|
+
status: "completed";
|
|
101
|
+
partOf: Reference< {
|
|
102
|
+
id: string;
|
|
103
|
+
resourceType: "Communication";
|
|
104
|
+
topic: {
|
|
105
|
+
text: string;
|
|
106
|
+
};
|
|
107
|
+
sender: Reference<Practitioner>;
|
|
108
|
+
recipient: (Reference<Patient> | Reference<Practitioner>)[];
|
|
109
|
+
sent: string;
|
|
110
|
+
status: "in-progress";
|
|
111
|
+
}>[];
|
|
112
|
+
} | {
|
|
113
|
+
id: string;
|
|
114
|
+
payload: {
|
|
115
|
+
contentString: string;
|
|
116
|
+
}[];
|
|
117
|
+
sent: string;
|
|
118
|
+
received: string;
|
|
119
|
+
sender: Reference<Patient>;
|
|
120
|
+
recipient: Reference<Practitioner>[];
|
|
121
|
+
resourceType: "Communication";
|
|
122
|
+
status: "completed";
|
|
123
|
+
partOf: Reference< {
|
|
124
|
+
id: string;
|
|
125
|
+
resourceType: "Communication";
|
|
126
|
+
topic: {
|
|
127
|
+
text: string;
|
|
128
|
+
};
|
|
129
|
+
sender: Reference<Practitioner>;
|
|
130
|
+
recipient: (Reference<Patient> | Reference<Practitioner>)[];
|
|
131
|
+
sent: string;
|
|
132
|
+
status: "in-progress";
|
|
133
|
+
}>[];
|
|
134
|
+
} | {
|
|
135
|
+
payload: {
|
|
136
|
+
contentString: string;
|
|
137
|
+
}[];
|
|
138
|
+
sent: string;
|
|
139
|
+
received: string;
|
|
140
|
+
sender: Reference<Patient>;
|
|
141
|
+
recipient: Reference<Practitioner>[];
|
|
142
|
+
resourceType: "Communication";
|
|
143
|
+
status: "completed";
|
|
144
|
+
partOf: Reference< {
|
|
145
|
+
id: string;
|
|
146
|
+
resourceType: "Communication";
|
|
147
|
+
topic: {
|
|
148
|
+
text: string;
|
|
149
|
+
};
|
|
150
|
+
sender: Reference<Practitioner>;
|
|
151
|
+
recipient: (Reference<Patient> | Reference<Practitioner>)[];
|
|
152
|
+
sent: string;
|
|
153
|
+
status: "in-progress";
|
|
154
|
+
}>[];
|
|
155
|
+
} | {
|
|
156
|
+
id: string;
|
|
157
|
+
status: "in-progress";
|
|
158
|
+
payload: {
|
|
159
|
+
contentString: string;
|
|
160
|
+
}[];
|
|
161
|
+
sent: string;
|
|
162
|
+
sender: Reference<Patient>;
|
|
163
|
+
recipient: Reference<Practitioner>[];
|
|
164
|
+
resourceType: "Communication";
|
|
165
|
+
partOf: Reference< {
|
|
166
|
+
id: string;
|
|
167
|
+
resourceType: "Communication";
|
|
168
|
+
topic: {
|
|
169
|
+
text: string;
|
|
170
|
+
};
|
|
171
|
+
sender: Reference<Practitioner>;
|
|
172
|
+
recipient: (Reference<Patient> | Reference<Practitioner>)[];
|
|
173
|
+
sent: string;
|
|
174
|
+
status: "in-progress";
|
|
175
|
+
}>[];
|
|
176
|
+
})[];
|
|
177
|
+
|
|
78
178
|
export declare const ExampleUserConfiguration: UserConfiguration;
|
|
79
179
|
|
|
80
180
|
export declare const exampleValueSet: ValueSet;
|
|
@@ -188,10 +288,11 @@ export declare interface MockClientOptions extends MedplumClientOptions {
|
|
|
188
288
|
export declare class MockFetchClient {
|
|
189
289
|
readonly router: FhirRouter;
|
|
190
290
|
readonly repo: MemoryRepository;
|
|
291
|
+
readonly baseUrl: string;
|
|
191
292
|
readonly debug: boolean;
|
|
192
293
|
initialized: boolean;
|
|
193
294
|
initPromise?: Promise<void>;
|
|
194
|
-
constructor(router: FhirRouter, repo: MemoryRepository, debug?: boolean);
|
|
295
|
+
constructor(router: FhirRouter, repo: MemoryRepository, baseUrl: string, debug?: boolean);
|
|
195
296
|
mockFetch(url: string, options: any): Promise<Partial<Response>>;
|
|
196
297
|
mockCreatePdf(docDefinition: TDocumentDefinitions, tableLayouts?: {
|
|
197
298
|
[name: string]: CustomTableLayout;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -75,6 +75,106 @@ export declare const ExampleStatusValueSet: ValueSet;
|
|
|
75
75
|
|
|
76
76
|
export declare const ExampleSubscription: Subscription;
|
|
77
77
|
|
|
78
|
+
export declare const ExampleThreadHeader: {
|
|
79
|
+
id: string;
|
|
80
|
+
resourceType: "Communication";
|
|
81
|
+
topic: {
|
|
82
|
+
text: string;
|
|
83
|
+
};
|
|
84
|
+
sender: Reference<Practitioner>;
|
|
85
|
+
recipient: (Reference<Patient> | Reference<Practitioner>)[];
|
|
86
|
+
sent: string;
|
|
87
|
+
status: "in-progress";
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export declare const ExampleThreadMessages: ({
|
|
91
|
+
id: string;
|
|
92
|
+
payload: {
|
|
93
|
+
contentString: string;
|
|
94
|
+
}[];
|
|
95
|
+
sent: string;
|
|
96
|
+
received: string;
|
|
97
|
+
sender: Reference<Practitioner>;
|
|
98
|
+
recipient: Reference<Patient>[];
|
|
99
|
+
resourceType: "Communication";
|
|
100
|
+
status: "completed";
|
|
101
|
+
partOf: Reference< {
|
|
102
|
+
id: string;
|
|
103
|
+
resourceType: "Communication";
|
|
104
|
+
topic: {
|
|
105
|
+
text: string;
|
|
106
|
+
};
|
|
107
|
+
sender: Reference<Practitioner>;
|
|
108
|
+
recipient: (Reference<Patient> | Reference<Practitioner>)[];
|
|
109
|
+
sent: string;
|
|
110
|
+
status: "in-progress";
|
|
111
|
+
}>[];
|
|
112
|
+
} | {
|
|
113
|
+
id: string;
|
|
114
|
+
payload: {
|
|
115
|
+
contentString: string;
|
|
116
|
+
}[];
|
|
117
|
+
sent: string;
|
|
118
|
+
received: string;
|
|
119
|
+
sender: Reference<Patient>;
|
|
120
|
+
recipient: Reference<Practitioner>[];
|
|
121
|
+
resourceType: "Communication";
|
|
122
|
+
status: "completed";
|
|
123
|
+
partOf: Reference< {
|
|
124
|
+
id: string;
|
|
125
|
+
resourceType: "Communication";
|
|
126
|
+
topic: {
|
|
127
|
+
text: string;
|
|
128
|
+
};
|
|
129
|
+
sender: Reference<Practitioner>;
|
|
130
|
+
recipient: (Reference<Patient> | Reference<Practitioner>)[];
|
|
131
|
+
sent: string;
|
|
132
|
+
status: "in-progress";
|
|
133
|
+
}>[];
|
|
134
|
+
} | {
|
|
135
|
+
payload: {
|
|
136
|
+
contentString: string;
|
|
137
|
+
}[];
|
|
138
|
+
sent: string;
|
|
139
|
+
received: string;
|
|
140
|
+
sender: Reference<Patient>;
|
|
141
|
+
recipient: Reference<Practitioner>[];
|
|
142
|
+
resourceType: "Communication";
|
|
143
|
+
status: "completed";
|
|
144
|
+
partOf: Reference< {
|
|
145
|
+
id: string;
|
|
146
|
+
resourceType: "Communication";
|
|
147
|
+
topic: {
|
|
148
|
+
text: string;
|
|
149
|
+
};
|
|
150
|
+
sender: Reference<Practitioner>;
|
|
151
|
+
recipient: (Reference<Patient> | Reference<Practitioner>)[];
|
|
152
|
+
sent: string;
|
|
153
|
+
status: "in-progress";
|
|
154
|
+
}>[];
|
|
155
|
+
} | {
|
|
156
|
+
id: string;
|
|
157
|
+
status: "in-progress";
|
|
158
|
+
payload: {
|
|
159
|
+
contentString: string;
|
|
160
|
+
}[];
|
|
161
|
+
sent: string;
|
|
162
|
+
sender: Reference<Patient>;
|
|
163
|
+
recipient: Reference<Practitioner>[];
|
|
164
|
+
resourceType: "Communication";
|
|
165
|
+
partOf: Reference< {
|
|
166
|
+
id: string;
|
|
167
|
+
resourceType: "Communication";
|
|
168
|
+
topic: {
|
|
169
|
+
text: string;
|
|
170
|
+
};
|
|
171
|
+
sender: Reference<Practitioner>;
|
|
172
|
+
recipient: (Reference<Patient> | Reference<Practitioner>)[];
|
|
173
|
+
sent: string;
|
|
174
|
+
status: "in-progress";
|
|
175
|
+
}>[];
|
|
176
|
+
})[];
|
|
177
|
+
|
|
78
178
|
export declare const ExampleUserConfiguration: UserConfiguration;
|
|
79
179
|
|
|
80
180
|
export declare const exampleValueSet: ValueSet;
|
|
@@ -188,10 +288,11 @@ export declare interface MockClientOptions extends MedplumClientOptions {
|
|
|
188
288
|
export declare class MockFetchClient {
|
|
189
289
|
readonly router: FhirRouter;
|
|
190
290
|
readonly repo: MemoryRepository;
|
|
291
|
+
readonly baseUrl: string;
|
|
191
292
|
readonly debug: boolean;
|
|
192
293
|
initialized: boolean;
|
|
193
294
|
initPromise?: Promise<void>;
|
|
194
|
-
constructor(router: FhirRouter, repo: MemoryRepository, debug?: boolean);
|
|
295
|
+
constructor(router: FhirRouter, repo: MemoryRepository, baseUrl: string, debug?: boolean);
|
|
195
296
|
mockFetch(url: string, options: any): Promise<Partial<Response>>;
|
|
196
297
|
mockCreatePdf(docDefinition: TDocumentDefinitions, tableLayouts?: {
|
|
197
298
|
[name: string]: CustomTableLayout;
|