@medplum/react 3.0.0 → 3.0.2
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 +5 -5
- package/dist/cjs/index.cjs.map +4 -4
- package/dist/cjs/index.css +1 -1
- package/dist/cjs/index.css.map +2 -2
- package/dist/cjs/index.d.ts +314 -300
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.css.map +2 -2
- package/dist/esm/index.d.ts +314 -300
- package/dist/esm/index.mjs +5 -5
- package/dist/esm/index.mjs.map +4 -4
- package/package.json +22 -21
package/dist/cjs/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { ClientApplication } from '@medplum/fhirtypes';
|
|
|
12
12
|
import { CodeableConcept } from '@medplum/fhirtypes';
|
|
13
13
|
import { Coding } from '@medplum/fhirtypes';
|
|
14
14
|
import { ComboboxItem } from '@mantine/core';
|
|
15
|
+
import { ComboboxProps } from '@mantine/core';
|
|
15
16
|
import { Communication } from '@medplum/fhirtypes';
|
|
16
17
|
import { Component } from 'react';
|
|
17
18
|
import { ContactDetail } from '@medplum/fhirtypes';
|
|
@@ -37,7 +38,6 @@ import { MemoExoticComponent } from 'react';
|
|
|
37
38
|
import { Money } from '@medplum/fhirtypes';
|
|
38
39
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
39
40
|
import { MouseEventHandler } from 'react';
|
|
40
|
-
import { MultiSelectProps } from '@mantine/core';
|
|
41
41
|
import { Observation } from '@medplum/fhirtypes';
|
|
42
42
|
import { ObservationDefinition } from '@medplum/fhirtypes';
|
|
43
43
|
import { ObservationDefinitionQualifiedInterval } from '@medplum/fhirtypes';
|
|
@@ -72,7 +72,6 @@ import { Task } from '@medplum/fhirtypes';
|
|
|
72
72
|
import { TextProps } from '@mantine/core';
|
|
73
73
|
import { Timing } from '@medplum/fhirtypes';
|
|
74
74
|
import { TypedValue } from '@medplum/core';
|
|
75
|
-
import { UserConfiguration } from '@medplum/fhirtypes';
|
|
76
75
|
import { ValueSetExpandParams } from '@medplum/core';
|
|
77
76
|
import { ValueSetExpansionContains } from '@medplum/fhirtypes';
|
|
78
77
|
|
|
@@ -133,7 +132,7 @@ export declare function addNextMonthFilter(definition: SearchRequest, field: str
|
|
|
133
132
|
export declare function AddressDisplay(props: AddressDisplayProps): JSX.Element | null;
|
|
134
133
|
|
|
135
134
|
export declare interface AddressDisplayProps {
|
|
136
|
-
value?: Address;
|
|
135
|
+
readonly value?: Address;
|
|
137
136
|
}
|
|
138
137
|
|
|
139
138
|
export declare function AddressInput(props: AddressInputProps): JSX.Element;
|
|
@@ -183,32 +182,36 @@ export declare function addYesterdayFilter(definition: SearchRequest, field: str
|
|
|
183
182
|
export declare function AnnotationInput(props: AnnotationInputProps): JSX.Element;
|
|
184
183
|
|
|
185
184
|
export declare interface AnnotationInputProps {
|
|
186
|
-
name: string;
|
|
187
|
-
defaultValue?: Annotation;
|
|
188
|
-
onChange?: (value: Annotation) => void;
|
|
185
|
+
readonly name: string;
|
|
186
|
+
readonly defaultValue?: Annotation;
|
|
187
|
+
readonly onChange?: (value: Annotation) => void;
|
|
189
188
|
}
|
|
190
189
|
|
|
191
190
|
export declare function AppShell(props: AppShellProps): JSX.Element;
|
|
192
191
|
|
|
193
192
|
export declare interface AppShellProps {
|
|
194
|
-
logo: ReactNode;
|
|
195
|
-
pathname?: string;
|
|
196
|
-
searchParams?: URLSearchParams;
|
|
197
|
-
headerSearchDisabled?: boolean;
|
|
198
|
-
version?: string;
|
|
199
|
-
menus?: NavbarMenu[];
|
|
200
|
-
children: ReactNode;
|
|
201
|
-
displayAddBookmark?: boolean;
|
|
202
|
-
resourceTypeSearchDisabled?: boolean;
|
|
193
|
+
readonly logo: ReactNode;
|
|
194
|
+
readonly pathname?: string;
|
|
195
|
+
readonly searchParams?: URLSearchParams;
|
|
196
|
+
readonly headerSearchDisabled?: boolean;
|
|
197
|
+
readonly version?: string;
|
|
198
|
+
readonly menus?: NavbarMenu[];
|
|
199
|
+
readonly children: ReactNode;
|
|
200
|
+
readonly displayAddBookmark?: boolean;
|
|
201
|
+
readonly resourceTypeSearchDisabled?: boolean;
|
|
203
202
|
}
|
|
204
203
|
|
|
205
204
|
export declare function AsyncAutocomplete<T>(props: AsyncAutocompleteProps<T>): JSX.Element;
|
|
206
205
|
|
|
207
206
|
export declare interface AsyncAutocompleteOption<T> extends ComboboxItem {
|
|
208
|
-
resource: T;
|
|
207
|
+
readonly resource: T;
|
|
209
208
|
}
|
|
210
209
|
|
|
211
|
-
export declare interface AsyncAutocompleteProps<T> extends Omit<
|
|
210
|
+
export declare interface AsyncAutocompleteProps<T> extends Omit<ComboboxProps, 'data' | 'defaultValue' | 'loadOptions' | 'onChange' | 'onCreate' | 'searchable'> {
|
|
211
|
+
readonly name?: string;
|
|
212
|
+
readonly label?: ReactNode;
|
|
213
|
+
readonly description?: ReactNode;
|
|
214
|
+
readonly error?: ReactNode;
|
|
212
215
|
readonly defaultValue?: T | T[];
|
|
213
216
|
readonly toOption: (item: T) => AsyncAutocompleteOption<T>;
|
|
214
217
|
readonly loadOptions: (input: string, signal: AbortSignal) => Promise<T[]>;
|
|
@@ -216,31 +219,37 @@ export declare interface AsyncAutocompleteProps<T> extends Omit<MultiSelectProps
|
|
|
216
219
|
readonly onChange: (item: T[]) => void;
|
|
217
220
|
readonly onCreate?: (input: string) => T;
|
|
218
221
|
readonly creatable?: boolean;
|
|
222
|
+
readonly clearable?: boolean;
|
|
223
|
+
readonly required?: boolean;
|
|
224
|
+
readonly className?: string;
|
|
225
|
+
readonly placeholder?: string;
|
|
226
|
+
readonly leftSection?: ReactNode;
|
|
227
|
+
readonly maxValues?: number;
|
|
219
228
|
}
|
|
220
229
|
|
|
221
230
|
export declare function AttachmentArrayDisplay(props: AttachmentArrayDisplayProps): JSX.Element;
|
|
222
231
|
|
|
223
232
|
export declare interface AttachmentArrayDisplayProps {
|
|
224
|
-
values?: Attachment[];
|
|
225
|
-
maxWidth?: number;
|
|
233
|
+
readonly values?: Attachment[];
|
|
234
|
+
readonly maxWidth?: number;
|
|
226
235
|
}
|
|
227
236
|
|
|
228
237
|
export declare function AttachmentArrayInput(props: AttachmentArrayInputProps): JSX.Element;
|
|
229
238
|
|
|
230
239
|
export declare interface AttachmentArrayInputProps {
|
|
231
|
-
name: string;
|
|
232
|
-
defaultValue?: Attachment[];
|
|
233
|
-
arrayElement?: boolean;
|
|
234
|
-
onChange?: (value: Attachment[]) => void;
|
|
240
|
+
readonly name: string;
|
|
241
|
+
readonly defaultValue?: Attachment[];
|
|
242
|
+
readonly arrayElement?: boolean;
|
|
243
|
+
readonly onChange?: (value: Attachment[]) => void;
|
|
235
244
|
}
|
|
236
245
|
|
|
237
246
|
export declare function AttachmentButton(props: AttachmentButtonProps): JSX.Element;
|
|
238
247
|
|
|
239
248
|
export declare interface AttachmentButtonProps {
|
|
240
|
-
onUpload: (attachment: Attachment) => void;
|
|
241
|
-
onUploadStart?: () => void;
|
|
242
|
-
onUploadProgress?: (e: ProgressEvent) => void;
|
|
243
|
-
onUploadError?: (outcome: OperationOutcome) => void;
|
|
249
|
+
readonly onUpload: (attachment: Attachment) => void;
|
|
250
|
+
readonly onUploadStart?: () => void;
|
|
251
|
+
readonly onUploadProgress?: (e: ProgressEvent) => void;
|
|
252
|
+
readonly onUploadError?: (outcome: OperationOutcome) => void;
|
|
244
253
|
children(props: {
|
|
245
254
|
onClick(e: MouseEvent_2): void;
|
|
246
255
|
}): ReactNode;
|
|
@@ -249,41 +258,41 @@ export declare interface AttachmentButtonProps {
|
|
|
249
258
|
export declare function AttachmentDisplay(props: AttachmentDisplayProps): JSX.Element | null;
|
|
250
259
|
|
|
251
260
|
export declare interface AttachmentDisplayProps {
|
|
252
|
-
value?: Attachment;
|
|
253
|
-
maxWidth?: number;
|
|
261
|
+
readonly value?: Attachment;
|
|
262
|
+
readonly maxWidth?: number;
|
|
254
263
|
}
|
|
255
264
|
|
|
256
265
|
export declare function AttachmentInput(props: AttachmentInputProps): JSX.Element;
|
|
257
266
|
|
|
258
267
|
export declare interface AttachmentInputProps {
|
|
259
|
-
name: string;
|
|
260
|
-
defaultValue?: Attachment;
|
|
261
|
-
arrayElement?: boolean;
|
|
262
|
-
onChange?: (value: Attachment | undefined) => void;
|
|
268
|
+
readonly name: string;
|
|
269
|
+
readonly defaultValue?: Attachment;
|
|
270
|
+
readonly arrayElement?: boolean;
|
|
271
|
+
readonly onChange?: (value: Attachment | undefined) => void;
|
|
263
272
|
}
|
|
264
273
|
|
|
265
274
|
export declare function BackboneElementDisplay(props: BackboneElementDisplayProps): JSX.Element | null;
|
|
266
275
|
|
|
267
276
|
export declare interface BackboneElementDisplayProps {
|
|
268
|
-
value: TypedValue;
|
|
269
|
-
compact?: boolean;
|
|
270
|
-
ignoreMissingValues?: boolean;
|
|
271
|
-
link?: boolean;
|
|
277
|
+
readonly value: TypedValue;
|
|
278
|
+
readonly compact?: boolean;
|
|
279
|
+
readonly ignoreMissingValues?: boolean;
|
|
280
|
+
readonly link?: boolean;
|
|
272
281
|
}
|
|
273
282
|
|
|
274
283
|
export declare function BackboneElementInput(props: BackboneElementInputProps): JSX.Element;
|
|
275
284
|
|
|
276
285
|
export declare interface BackboneElementInputProps {
|
|
277
286
|
/** Type name the backbone element represents */
|
|
278
|
-
typeName: string;
|
|
287
|
+
readonly typeName: string;
|
|
279
288
|
/** (optional) The contents of the resource represented by the backbone element */
|
|
280
|
-
defaultValue?: any;
|
|
289
|
+
readonly defaultValue?: any;
|
|
281
290
|
/** (optional) OperationOutcome from the last attempted system action*/
|
|
282
|
-
outcome?: OperationOutcome;
|
|
291
|
+
readonly outcome?: OperationOutcome;
|
|
283
292
|
/** (optional) callback function that is called when the value of the backbone element changes */
|
|
284
|
-
onChange?: (value: any) => void;
|
|
293
|
+
readonly onChange?: (value: any) => void;
|
|
285
294
|
/** (optional) Profile URL of the structure definition represented by the backbone element */
|
|
286
|
-
profileUrl?: string;
|
|
295
|
+
readonly profileUrl?: string;
|
|
287
296
|
}
|
|
288
297
|
|
|
289
298
|
/**
|
|
@@ -300,21 +309,21 @@ export declare function buildInitialResponseItem(item: QuestionnaireItem): Quest
|
|
|
300
309
|
export declare function CalendarInput(props: CalendarInputProps): JSX.Element;
|
|
301
310
|
|
|
302
311
|
export declare interface CalendarInputProps {
|
|
303
|
-
slots: Slot[];
|
|
304
|
-
onChangeMonth: (date: Date) => void;
|
|
305
|
-
onClick: (date: Date) => void;
|
|
312
|
+
readonly slots: Slot[];
|
|
313
|
+
readonly onChangeMonth: (date: Date) => void;
|
|
314
|
+
readonly onClick: (date: Date) => void;
|
|
306
315
|
}
|
|
307
316
|
|
|
308
317
|
export declare function CheckboxFormSection(props: CheckboxFormSectionProps): JSX.Element;
|
|
309
318
|
|
|
310
319
|
export declare interface CheckboxFormSectionProps {
|
|
311
|
-
htmlFor?: string;
|
|
312
|
-
title?: string;
|
|
313
|
-
description?: string;
|
|
314
|
-
withAsterisk?: boolean;
|
|
315
|
-
children?: ReactNode;
|
|
316
|
-
testId?: string;
|
|
317
|
-
fhirPath?: string;
|
|
320
|
+
readonly htmlFor?: string;
|
|
321
|
+
readonly title?: string;
|
|
322
|
+
readonly description?: string;
|
|
323
|
+
readonly withAsterisk?: boolean;
|
|
324
|
+
readonly children?: ReactNode;
|
|
325
|
+
readonly testId?: string;
|
|
326
|
+
readonly fhirPath?: string;
|
|
318
327
|
}
|
|
319
328
|
|
|
320
329
|
/**
|
|
@@ -335,34 +344,34 @@ export declare function clearFiltersOnField(definition: SearchRequest, code: str
|
|
|
335
344
|
export declare function CodeableConceptDisplay(props: CodeableConceptDisplayProps): JSX.Element;
|
|
336
345
|
|
|
337
346
|
export declare interface CodeableConceptDisplayProps {
|
|
338
|
-
value?: CodeableConcept;
|
|
347
|
+
readonly value?: CodeableConcept;
|
|
339
348
|
}
|
|
340
349
|
|
|
341
350
|
export declare function CodeableConceptInput(props: CodeableConceptInputProps): JSX.Element;
|
|
342
351
|
|
|
343
352
|
export declare interface CodeableConceptInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
344
|
-
defaultValue?: CodeableConcept;
|
|
345
|
-
onChange?: (value: CodeableConcept | undefined) => void;
|
|
353
|
+
readonly defaultValue?: CodeableConcept;
|
|
354
|
+
readonly onChange?: (value: CodeableConcept | undefined) => void;
|
|
346
355
|
}
|
|
347
356
|
|
|
348
357
|
export declare function CodeInput(props: CodeInputProps): JSX.Element;
|
|
349
358
|
|
|
350
359
|
export declare interface CodeInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
351
|
-
defaultValue?: string;
|
|
352
|
-
onChange?: (value: string | undefined) => void;
|
|
360
|
+
readonly defaultValue?: string;
|
|
361
|
+
readonly onChange?: (value: string | undefined) => void;
|
|
353
362
|
}
|
|
354
363
|
|
|
355
364
|
export declare function CodingDisplay(props: CodingDisplayProps): JSX.Element;
|
|
356
365
|
|
|
357
366
|
export declare interface CodingDisplayProps {
|
|
358
|
-
value?: Coding;
|
|
367
|
+
readonly value?: Coding;
|
|
359
368
|
}
|
|
360
369
|
|
|
361
370
|
export declare function CodingInput(props: CodingInputProps): JSX.Element;
|
|
362
371
|
|
|
363
372
|
export declare interface CodingInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
364
|
-
defaultValue?: Coding;
|
|
365
|
-
onChange?: (value: Coding | undefined) => void;
|
|
373
|
+
readonly defaultValue?: Coding;
|
|
374
|
+
readonly onChange?: (value: Coding | undefined) => void;
|
|
366
375
|
}
|
|
367
376
|
|
|
368
377
|
export declare interface ComplexTypeInputProps<ValueType> {
|
|
@@ -376,7 +385,7 @@ export declare interface ComplexTypeInputProps<ValueType> {
|
|
|
376
385
|
export declare function ContactDetailDisplay(props: ContactDetailDisplayProps): JSX.Element | null;
|
|
377
386
|
|
|
378
387
|
export declare interface ContactDetailDisplayProps {
|
|
379
|
-
value?: ContactDetail;
|
|
388
|
+
readonly value?: ContactDetail;
|
|
380
389
|
}
|
|
381
390
|
|
|
382
391
|
export declare function ContactDetailInput(props: ContactDetailInputProps): JSX.Element;
|
|
@@ -386,13 +395,13 @@ export declare type ContactDetailInputProps = ComplexTypeInputProps<ContactDetai
|
|
|
386
395
|
export declare function ContactPointDisplay(props: ContactPointDisplayProps): JSX.Element | null;
|
|
387
396
|
|
|
388
397
|
export declare interface ContactPointDisplayProps {
|
|
389
|
-
value?: ContactPoint;
|
|
398
|
+
readonly value?: ContactPoint;
|
|
390
399
|
}
|
|
391
400
|
|
|
392
401
|
export declare function ContactPointInput(props: ContactPointInputProps): JSX.Element;
|
|
393
402
|
|
|
394
403
|
export declare type ContactPointInputProps = ComplexTypeInputProps<ContactPoint> & {
|
|
395
|
-
onChange: ((value: ContactPoint | undefined) => void) | undefined;
|
|
404
|
+
readonly onChange: ((value: ContactPoint | undefined) => void) | undefined;
|
|
396
405
|
};
|
|
397
406
|
|
|
398
407
|
export declare function Container(props: ContainerProps): JSX.Element;
|
|
@@ -429,19 +438,19 @@ export declare function createScriptTag(src: string, onload?: () => void): void;
|
|
|
429
438
|
export declare function DateTimeInput(props: DateTimeInputProps): JSX.Element;
|
|
430
439
|
|
|
431
440
|
export declare interface DateTimeInputProps {
|
|
432
|
-
name?: string;
|
|
433
|
-
placeholder?: string;
|
|
434
|
-
defaultValue?: string;
|
|
435
|
-
autoFocus?: boolean;
|
|
436
|
-
required?: boolean;
|
|
437
|
-
outcome?: OperationOutcome;
|
|
438
|
-
onChange?: (value: string) => void;
|
|
441
|
+
readonly name?: string;
|
|
442
|
+
readonly placeholder?: string;
|
|
443
|
+
readonly defaultValue?: string;
|
|
444
|
+
readonly autoFocus?: boolean;
|
|
445
|
+
readonly required?: boolean;
|
|
446
|
+
readonly outcome?: OperationOutcome;
|
|
447
|
+
readonly onChange?: (value: string) => void;
|
|
439
448
|
}
|
|
440
449
|
|
|
441
450
|
export declare function DefaultResourceTimeline(props: DefaultResourceTimelineProps): JSX.Element;
|
|
442
451
|
|
|
443
452
|
export declare interface DefaultResourceTimelineProps {
|
|
444
|
-
resource: Resource | Reference;
|
|
453
|
+
readonly resource: Resource | Reference;
|
|
445
454
|
}
|
|
446
455
|
|
|
447
456
|
/**
|
|
@@ -457,13 +466,13 @@ export declare function DescriptionList(props: DescriptionListProps): JSX.Elemen
|
|
|
457
466
|
export declare function DescriptionListEntry(props: DescriptionListEntryProps): JSX.Element;
|
|
458
467
|
|
|
459
468
|
export declare interface DescriptionListEntryProps {
|
|
460
|
-
term: string;
|
|
461
|
-
children: ReactNode;
|
|
469
|
+
readonly term: string;
|
|
470
|
+
readonly children: ReactNode;
|
|
462
471
|
}
|
|
463
472
|
|
|
464
473
|
export declare interface DescriptionListProps {
|
|
465
|
-
children: ReactNode;
|
|
466
|
-
compact?: boolean;
|
|
474
|
+
readonly children: ReactNode;
|
|
475
|
+
readonly compact?: boolean;
|
|
467
476
|
}
|
|
468
477
|
|
|
469
478
|
export declare function DiagnosticReportDisplay(props: DiagnosticReportDisplayProps): JSX.Element | null;
|
|
@@ -473,9 +482,9 @@ export declare namespace DiagnosticReportDisplay {
|
|
|
473
482
|
}
|
|
474
483
|
|
|
475
484
|
export declare interface DiagnosticReportDisplayProps {
|
|
476
|
-
value?: DiagnosticReport | Reference<DiagnosticReport>;
|
|
477
|
-
hideObservationNotes?: boolean;
|
|
478
|
-
hideSpecimenInfo?: boolean;
|
|
485
|
+
readonly value?: DiagnosticReport | Reference<DiagnosticReport>;
|
|
486
|
+
readonly hideObservationNotes?: boolean;
|
|
487
|
+
readonly hideSpecimenInfo?: boolean;
|
|
479
488
|
}
|
|
480
489
|
|
|
481
490
|
declare function Document_2(props: PanelProps): JSX.Element;
|
|
@@ -484,27 +493,27 @@ export { Document_2 as Document }
|
|
|
484
493
|
export declare function ElementDefinitionInputSelector(props: ElementDefinitionSelectorProps): JSX.Element;
|
|
485
494
|
|
|
486
495
|
export declare interface ElementDefinitionSelectorProps extends ResourcePropertyInputProps {
|
|
487
|
-
elementDefinitionTypes: ElementDefinitionType[];
|
|
496
|
+
readonly elementDefinitionTypes: ElementDefinitionType[];
|
|
488
497
|
}
|
|
489
498
|
|
|
490
499
|
export declare function ElementDefinitionTypeInput(props: ElementDefinitionTypeInputProps): JSX.Element;
|
|
491
500
|
|
|
492
501
|
export declare type ElementDefinitionTypeInputProps = {
|
|
493
|
-
name: ResourcePropertyInputProps['name'];
|
|
494
|
-
path: string;
|
|
495
|
-
defaultValue: ResourcePropertyInputProps['defaultValue'];
|
|
496
|
-
onChange: ResourcePropertyInputProps['onChange'];
|
|
497
|
-
outcome: ResourcePropertyInputProps['outcome'];
|
|
498
|
-
elementDefinitionType: ElementDefinitionType;
|
|
499
|
-
min: number;
|
|
500
|
-
max: number;
|
|
501
|
-
binding: ElementDefinitionBinding | undefined;
|
|
502
|
+
readonly name: ResourcePropertyInputProps['name'];
|
|
503
|
+
readonly path: string;
|
|
504
|
+
readonly defaultValue: ResourcePropertyInputProps['defaultValue'];
|
|
505
|
+
readonly onChange: ResourcePropertyInputProps['onChange'];
|
|
506
|
+
readonly outcome: ResourcePropertyInputProps['outcome'];
|
|
507
|
+
readonly elementDefinitionType: ElementDefinitionType;
|
|
508
|
+
readonly min: number;
|
|
509
|
+
readonly max: number;
|
|
510
|
+
readonly binding: ElementDefinitionBinding | undefined;
|
|
502
511
|
};
|
|
503
512
|
|
|
504
513
|
export declare function EncounterTimeline(props: EncounterTimelineProps): JSX.Element;
|
|
505
514
|
|
|
506
515
|
export declare interface EncounterTimelineProps {
|
|
507
|
-
encounter: Encounter | Reference<Encounter>;
|
|
516
|
+
readonly encounter: Encounter | Reference<Encounter>;
|
|
508
517
|
}
|
|
509
518
|
|
|
510
519
|
/**
|
|
@@ -512,22 +521,22 @@ export declare interface EncounterTimelineProps {
|
|
|
512
521
|
* See: https://reactjs.org/docs/error-boundaries.html
|
|
513
522
|
*/
|
|
514
523
|
export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
515
|
-
state: ErrorBoundaryState;
|
|
524
|
+
readonly state: ErrorBoundaryState;
|
|
516
525
|
constructor(props: ErrorBoundaryProps);
|
|
517
526
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
518
|
-
componentDidUpdate(_prevProps:
|
|
519
|
-
shouldComponentUpdate(nextProps:
|
|
527
|
+
componentDidUpdate(_prevProps: ErrorBoundaryProps, _prevState: ErrorBoundaryState): void;
|
|
528
|
+
shouldComponentUpdate(nextProps: ErrorBoundaryProps, nextState: ErrorBoundaryState): boolean;
|
|
520
529
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
521
530
|
render(): ReactNode;
|
|
522
531
|
}
|
|
523
532
|
|
|
524
533
|
export declare interface ErrorBoundaryProps {
|
|
525
|
-
children: ReactNode;
|
|
534
|
+
readonly children: ReactNode;
|
|
526
535
|
}
|
|
527
536
|
|
|
528
537
|
export declare interface ErrorBoundaryState {
|
|
529
|
-
error?: Error;
|
|
530
|
-
lastLocation: string;
|
|
538
|
+
readonly error?: Error;
|
|
539
|
+
readonly lastLocation: string;
|
|
531
540
|
}
|
|
532
541
|
|
|
533
542
|
/**
|
|
@@ -544,13 +553,13 @@ export declare interface FhirPathTableField {
|
|
|
544
553
|
}
|
|
545
554
|
|
|
546
555
|
export declare interface FhirPathTableProps {
|
|
547
|
-
resourceType: string;
|
|
548
|
-
query: string;
|
|
549
|
-
fields: FhirPathTableField[];
|
|
550
|
-
checkboxesEnabled?: boolean;
|
|
551
|
-
onClick?: (e: SearchClickEvent) => void;
|
|
552
|
-
onAuxClick?: (e: SearchClickEvent) => void;
|
|
553
|
-
onBulk?: (ids: string[]) => void;
|
|
556
|
+
readonly resourceType: string;
|
|
557
|
+
readonly query: string;
|
|
558
|
+
readonly fields: FhirPathTableField[];
|
|
559
|
+
readonly checkboxesEnabled?: boolean;
|
|
560
|
+
readonly onClick?: (e: SearchClickEvent) => void;
|
|
561
|
+
readonly onAuxClick?: (e: SearchClickEvent) => void;
|
|
562
|
+
readonly onBulk?: (ids: string[]) => void;
|
|
554
563
|
}
|
|
555
564
|
|
|
556
565
|
export declare function Form(props: FormProps): JSX.Element;
|
|
@@ -558,23 +567,23 @@ export declare function Form(props: FormProps): JSX.Element;
|
|
|
558
567
|
export declare function formatReferenceString(typedValue: TypedValue): string;
|
|
559
568
|
|
|
560
569
|
export declare interface FormProps {
|
|
561
|
-
onSubmit?: (formData: Record<string, string>) => void;
|
|
562
|
-
style?: CSSProperties;
|
|
563
|
-
children?: ReactNode;
|
|
564
|
-
testid?: string;
|
|
570
|
+
readonly onSubmit?: (formData: Record<string, string>) => void;
|
|
571
|
+
readonly style?: CSSProperties;
|
|
572
|
+
readonly children?: ReactNode;
|
|
573
|
+
readonly testid?: string;
|
|
565
574
|
}
|
|
566
575
|
|
|
567
576
|
export declare function FormSection(props: FormSectionProps): JSX.Element;
|
|
568
577
|
|
|
569
578
|
export declare interface FormSectionProps {
|
|
570
|
-
title?: string;
|
|
571
|
-
htmlFor?: string;
|
|
572
|
-
description?: string;
|
|
573
|
-
withAsterisk?: boolean;
|
|
574
|
-
outcome?: OperationOutcome;
|
|
575
|
-
children?: ReactNode;
|
|
576
|
-
testId?: string;
|
|
577
|
-
fhirPath?: string;
|
|
579
|
+
readonly title?: string;
|
|
580
|
+
readonly htmlFor?: string;
|
|
581
|
+
readonly description?: string;
|
|
582
|
+
readonly withAsterisk?: boolean;
|
|
583
|
+
readonly outcome?: OperationOutcome;
|
|
584
|
+
readonly children?: ReactNode;
|
|
585
|
+
readonly testId?: string;
|
|
586
|
+
readonly fhirPath?: string;
|
|
578
587
|
}
|
|
579
588
|
|
|
580
589
|
export declare function getErrorsForInput(outcome: OperationOutcome | undefined, expression: string | undefined): string | undefined;
|
|
@@ -642,19 +651,19 @@ export declare function getSortField(definition: SearchRequest): string | undefi
|
|
|
642
651
|
export declare function Header(props: HeaderProps): JSX.Element;
|
|
643
652
|
|
|
644
653
|
export declare interface HeaderProps {
|
|
645
|
-
pathname?: string;
|
|
646
|
-
searchParams?: URLSearchParams;
|
|
647
|
-
headerSearchDisabled?: boolean;
|
|
648
|
-
logo: ReactNode;
|
|
649
|
-
version?: string;
|
|
650
|
-
navbarToggle: () => void;
|
|
654
|
+
readonly pathname?: string;
|
|
655
|
+
readonly searchParams?: URLSearchParams;
|
|
656
|
+
readonly headerSearchDisabled?: boolean;
|
|
657
|
+
readonly logo: ReactNode;
|
|
658
|
+
readonly version?: string;
|
|
659
|
+
readonly navbarToggle: () => void;
|
|
651
660
|
}
|
|
652
661
|
|
|
653
662
|
export declare function HumanNameDisplay(props: HumanNameDisplayProps): JSX.Element | null;
|
|
654
663
|
|
|
655
664
|
export declare interface HumanNameDisplayProps {
|
|
656
|
-
value?: HumanName;
|
|
657
|
-
options?: HumanNameFormatOptions;
|
|
665
|
+
readonly value?: HumanName;
|
|
666
|
+
readonly options?: HumanNameFormatOptions;
|
|
658
667
|
}
|
|
659
668
|
|
|
660
669
|
export declare function HumanNameInput(props: HumanNameInputProps): JSX.Element;
|
|
@@ -664,7 +673,7 @@ export declare type HumanNameInputProps = ComplexTypeInputProps<HumanName>;
|
|
|
664
673
|
export declare function IdentifierDisplay(props: IdentifierDisplayProps): JSX.Element;
|
|
665
674
|
|
|
666
675
|
export declare interface IdentifierDisplayProps {
|
|
667
|
-
value?: Identifier;
|
|
676
|
+
readonly value?: Identifier;
|
|
668
677
|
}
|
|
669
678
|
|
|
670
679
|
export declare function IdentifierInput(props: IdentifierInputProps): JSX.Element;
|
|
@@ -697,8 +706,8 @@ export declare function Loading(): JSX.Element;
|
|
|
697
706
|
export declare function Logo(props: LogoProps): JSX.Element;
|
|
698
707
|
|
|
699
708
|
export declare interface LogoProps {
|
|
700
|
-
size: number;
|
|
701
|
-
fill?: string;
|
|
709
|
+
readonly size: number;
|
|
710
|
+
readonly fill?: string;
|
|
702
711
|
}
|
|
703
712
|
|
|
704
713
|
export declare function MeasureReportDisplay(props: MeasureReportDisplayProps): JSX.Element | null;
|
|
@@ -717,11 +726,11 @@ export declare interface MedplumContext {
|
|
|
717
726
|
export declare function MedplumLink(props: MedplumLinkProps): JSX.Element;
|
|
718
727
|
|
|
719
728
|
export declare interface MedplumLinkProps extends TextProps {
|
|
720
|
-
to?: Resource | Reference | string;
|
|
721
|
-
suffix?: string;
|
|
722
|
-
label?: string;
|
|
723
|
-
onClick?: MouseEventHandler;
|
|
724
|
-
children: ReactNode;
|
|
729
|
+
readonly to?: Resource | Reference | string;
|
|
730
|
+
readonly suffix?: string;
|
|
731
|
+
readonly label?: string;
|
|
732
|
+
readonly onClick?: MouseEventHandler;
|
|
733
|
+
readonly children: ReactNode;
|
|
725
734
|
}
|
|
726
735
|
|
|
727
736
|
/**
|
|
@@ -736,9 +745,9 @@ export declare interface MedplumLinkProps extends TextProps {
|
|
|
736
745
|
export declare function MedplumProvider(props: MedplumProviderProps): JSX.Element;
|
|
737
746
|
|
|
738
747
|
export declare interface MedplumProviderProps {
|
|
739
|
-
medplum: MedplumClient;
|
|
740
|
-
navigate?: MepdlumNavigateFunction;
|
|
741
|
-
children: ReactNode;
|
|
748
|
+
readonly medplum: MedplumClient;
|
|
749
|
+
readonly navigate?: MepdlumNavigateFunction;
|
|
750
|
+
readonly children: ReactNode;
|
|
742
751
|
}
|
|
743
752
|
|
|
744
753
|
export declare const MemoizedFhirPathTable: MemoExoticComponent<typeof FhirPathTable>;
|
|
@@ -750,67 +759,73 @@ export declare type MepdlumNavigateFunction = (path: string) => void;
|
|
|
750
759
|
export declare function MoneyDisplay(props: MoneyDisplayProps): JSX.Element | null;
|
|
751
760
|
|
|
752
761
|
export declare interface MoneyDisplayProps {
|
|
753
|
-
value?: Money;
|
|
762
|
+
readonly value?: Money;
|
|
754
763
|
}
|
|
755
764
|
|
|
756
765
|
export declare function MoneyInput(props: MoneyInputProps): JSX.Element;
|
|
757
766
|
|
|
758
767
|
export declare interface MoneyInputProps {
|
|
759
|
-
name: string;
|
|
760
|
-
label?: string;
|
|
761
|
-
placeholder?: string;
|
|
762
|
-
defaultValue?: Money;
|
|
763
|
-
onChange?: (value: Money) => void;
|
|
768
|
+
readonly name: string;
|
|
769
|
+
readonly label?: string;
|
|
770
|
+
readonly placeholder?: string;
|
|
771
|
+
readonly defaultValue?: Money;
|
|
772
|
+
readonly onChange?: (value: Money) => void;
|
|
764
773
|
}
|
|
765
774
|
|
|
766
775
|
export declare function Navbar(props: NavbarProps): JSX.Element;
|
|
767
776
|
|
|
768
777
|
export declare interface NavbarLink {
|
|
769
|
-
icon?: JSX.Element;
|
|
770
|
-
label?: string;
|
|
771
|
-
href: string;
|
|
778
|
+
readonly icon?: JSX.Element;
|
|
779
|
+
readonly label?: string;
|
|
780
|
+
readonly href: string;
|
|
772
781
|
}
|
|
773
782
|
|
|
774
783
|
export declare interface NavbarMenu {
|
|
775
|
-
title?: string;
|
|
776
|
-
links?: NavbarLink[];
|
|
784
|
+
readonly title?: string;
|
|
785
|
+
readonly links?: NavbarLink[];
|
|
777
786
|
}
|
|
778
787
|
|
|
779
788
|
export declare interface NavbarProps {
|
|
780
|
-
pathname?: string;
|
|
781
|
-
searchParams?: URLSearchParams;
|
|
782
|
-
menus?: NavbarMenu[];
|
|
783
|
-
closeNavbar: () => void;
|
|
784
|
-
displayAddBookmark?: boolean;
|
|
785
|
-
resourceTypeSearchDisabled?: boolean;
|
|
789
|
+
readonly pathname?: string;
|
|
790
|
+
readonly searchParams?: URLSearchParams;
|
|
791
|
+
readonly menus?: NavbarMenu[];
|
|
792
|
+
readonly closeNavbar: () => void;
|
|
793
|
+
readonly displayAddBookmark?: boolean;
|
|
794
|
+
readonly resourceTypeSearchDisabled?: boolean;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
export declare function NoteDisplay({ value }: NoteDisplayProps): JSX.Element | null;
|
|
798
|
+
|
|
799
|
+
export declare interface NoteDisplayProps {
|
|
800
|
+
readonly value?: Annotation[];
|
|
786
801
|
}
|
|
787
802
|
|
|
788
803
|
export declare function ObservationTable(props: ObservationTableProps): JSX.Element;
|
|
789
804
|
|
|
790
805
|
export declare interface ObservationTableProps {
|
|
791
|
-
value?: Observation[] | Reference<Observation>[];
|
|
792
|
-
ancestorIds?: string[];
|
|
793
|
-
hideObservationNotes?: boolean;
|
|
806
|
+
readonly value?: Observation[] | Reference<Observation>[];
|
|
807
|
+
readonly ancestorIds?: string[];
|
|
808
|
+
readonly hideObservationNotes?: boolean;
|
|
794
809
|
}
|
|
795
810
|
|
|
796
811
|
export declare function OperationOutcomeAlert(props: OperationOutcomeAlertProps): JSX.Element | null;
|
|
797
812
|
|
|
798
813
|
export declare interface OperationOutcomeAlertProps {
|
|
799
|
-
outcome?: OperationOutcome;
|
|
800
|
-
issues?: OperationOutcomeIssue[];
|
|
814
|
+
readonly outcome?: OperationOutcome;
|
|
815
|
+
readonly issues?: OperationOutcomeIssue[];
|
|
801
816
|
}
|
|
802
817
|
|
|
803
818
|
export declare function Panel(props: PanelProps): JSX.Element;
|
|
804
819
|
|
|
805
820
|
export declare interface PanelProps extends PaperProps {
|
|
806
|
-
width?: number;
|
|
807
|
-
fill?: boolean;
|
|
808
|
-
children?: React.ReactNode;
|
|
821
|
+
readonly width?: number;
|
|
822
|
+
readonly fill?: boolean;
|
|
823
|
+
readonly children?: React.ReactNode;
|
|
809
824
|
}
|
|
810
825
|
|
|
811
826
|
export declare interface PanelStylesParams {
|
|
812
|
-
width?: number;
|
|
813
|
-
fill?: boolean;
|
|
827
|
+
readonly width?: number;
|
|
828
|
+
readonly fill?: boolean;
|
|
814
829
|
}
|
|
815
830
|
|
|
816
831
|
/**
|
|
@@ -830,49 +845,49 @@ export declare interface PatientSummaryProps extends Omit<CardProps, 'children'>
|
|
|
830
845
|
export declare function PatientTimeline(props: PatientTimelineProps): JSX.Element;
|
|
831
846
|
|
|
832
847
|
export declare interface PatientTimelineProps {
|
|
833
|
-
patient: Patient | Reference<Patient>;
|
|
848
|
+
readonly patient: Patient | Reference<Patient>;
|
|
834
849
|
}
|
|
835
850
|
|
|
836
851
|
export declare function PlanDefinitionBuilder(props: PlanDefinitionBuilderProps): JSX.Element | null;
|
|
837
852
|
|
|
838
853
|
export declare interface PlanDefinitionBuilderProps {
|
|
839
|
-
value: Partial<PlanDefinition> | Reference<PlanDefinition>;
|
|
840
|
-
onSubmit: (result: PlanDefinition) => void;
|
|
854
|
+
readonly value: Partial<PlanDefinition> | Reference<PlanDefinition>;
|
|
855
|
+
readonly onSubmit: (result: PlanDefinition) => void;
|
|
841
856
|
}
|
|
842
857
|
|
|
843
858
|
export declare function QuantityDisplay(props: QuantityDisplayProps): JSX.Element | null;
|
|
844
859
|
|
|
845
860
|
export declare interface QuantityDisplayProps {
|
|
846
|
-
value?: Quantity;
|
|
861
|
+
readonly value?: Quantity;
|
|
847
862
|
}
|
|
848
863
|
|
|
849
864
|
export declare function QuantityInput(props: QuantityInputProps): JSX.Element;
|
|
850
865
|
|
|
851
866
|
export declare interface QuantityInputProps {
|
|
852
|
-
name: string;
|
|
853
|
-
defaultValue?: Quantity;
|
|
854
|
-
autoFocus?: boolean;
|
|
855
|
-
required?: boolean;
|
|
856
|
-
onChange?: (value: Quantity) => void;
|
|
857
|
-
disableWheel?: boolean;
|
|
867
|
+
readonly name: string;
|
|
868
|
+
readonly defaultValue?: Quantity;
|
|
869
|
+
readonly autoFocus?: boolean;
|
|
870
|
+
readonly required?: boolean;
|
|
871
|
+
readonly onChange?: (value: Quantity) => void;
|
|
872
|
+
readonly disableWheel?: boolean;
|
|
858
873
|
}
|
|
859
874
|
|
|
860
875
|
export declare function QuestionnaireBuilder(props: QuestionnaireBuilderProps): JSX.Element | null;
|
|
861
876
|
|
|
862
877
|
export declare interface QuestionnaireBuilderProps {
|
|
863
|
-
questionnaire: Partial<Questionnaire> | Reference<Questionnaire>;
|
|
864
|
-
onSubmit: (result: Questionnaire) => void;
|
|
865
|
-
autoSave?: boolean;
|
|
878
|
+
readonly questionnaire: Partial<Questionnaire> | Reference<Questionnaire>;
|
|
879
|
+
readonly onSubmit: (result: Questionnaire) => void;
|
|
880
|
+
readonly autoSave?: boolean;
|
|
866
881
|
}
|
|
867
882
|
|
|
868
883
|
export declare function QuestionnaireForm(props: QuestionnaireFormProps): JSX.Element | null;
|
|
869
884
|
|
|
870
885
|
export declare interface QuestionnaireFormProps {
|
|
871
|
-
questionnaire: Questionnaire | Reference<Questionnaire>;
|
|
872
|
-
subject?: Reference;
|
|
873
|
-
encounter?: Reference<Encounter>;
|
|
874
|
-
submitButtonText?: string;
|
|
875
|
-
onSubmit: (response: QuestionnaireResponse) => void;
|
|
886
|
+
readonly questionnaire: Questionnaire | Reference<Questionnaire>;
|
|
887
|
+
readonly subject?: Reference;
|
|
888
|
+
readonly encounter?: Reference<Encounter>;
|
|
889
|
+
readonly submitButtonText?: string;
|
|
890
|
+
readonly onSubmit: (response: QuestionnaireResponse) => void;
|
|
876
891
|
}
|
|
877
892
|
|
|
878
893
|
export declare enum QuestionnaireItemType {
|
|
@@ -898,7 +913,7 @@ export declare enum QuestionnaireItemType {
|
|
|
898
913
|
export declare function RangeDisplay(props: RangeDisplayProps): JSX.Element | null;
|
|
899
914
|
|
|
900
915
|
export declare interface RangeDisplayProps {
|
|
901
|
-
value?: Range_2;
|
|
916
|
+
readonly value?: Range_2;
|
|
902
917
|
}
|
|
903
918
|
|
|
904
919
|
/**
|
|
@@ -910,9 +925,9 @@ export declare interface RangeDisplayProps {
|
|
|
910
925
|
export declare function RangeInput(props: RangeInputProps): JSX.Element;
|
|
911
926
|
|
|
912
927
|
export declare interface RangeInputProps {
|
|
913
|
-
name: string;
|
|
914
|
-
defaultValue?: Range_2;
|
|
915
|
-
onChange?: (value: Range_2) => void;
|
|
928
|
+
readonly name: string;
|
|
929
|
+
readonly defaultValue?: Range_2;
|
|
930
|
+
readonly onChange?: (value: Range_2) => void;
|
|
916
931
|
}
|
|
917
932
|
|
|
918
933
|
export declare const reactContext: Context<MedplumContext | undefined>;
|
|
@@ -920,28 +935,28 @@ export declare const reactContext: Context<MedplumContext | undefined>;
|
|
|
920
935
|
export declare function ReferenceDisplay(props: ReferenceDisplayProps): JSX.Element | null;
|
|
921
936
|
|
|
922
937
|
export declare interface ReferenceDisplayProps {
|
|
923
|
-
value?: Reference;
|
|
924
|
-
link?: boolean;
|
|
938
|
+
readonly value?: Reference;
|
|
939
|
+
readonly link?: boolean;
|
|
925
940
|
}
|
|
926
941
|
|
|
927
942
|
export declare function ReferenceInput(props: ReferenceInputProps): JSX.Element;
|
|
928
943
|
|
|
929
944
|
export declare interface ReferenceInputProps {
|
|
930
|
-
name: string;
|
|
931
|
-
placeholder?: string;
|
|
932
|
-
defaultValue?: Reference;
|
|
933
|
-
targetTypes?: string[];
|
|
934
|
-
searchCriteria?: Record<string, string>;
|
|
935
|
-
autoFocus?: boolean;
|
|
936
|
-
required?: boolean;
|
|
937
|
-
onChange?: (value: Reference | undefined) => void;
|
|
945
|
+
readonly name: string;
|
|
946
|
+
readonly placeholder?: string;
|
|
947
|
+
readonly defaultValue?: Reference;
|
|
948
|
+
readonly targetTypes?: string[];
|
|
949
|
+
readonly searchCriteria?: Record<string, string>;
|
|
950
|
+
readonly autoFocus?: boolean;
|
|
951
|
+
readonly required?: boolean;
|
|
952
|
+
readonly onChange?: (value: Reference | undefined) => void;
|
|
938
953
|
}
|
|
939
954
|
|
|
940
955
|
export declare function ReferenceRangeEditor(props: ReferenceRangeEditorProps): JSX.Element;
|
|
941
956
|
|
|
942
957
|
export declare interface ReferenceRangeEditorProps {
|
|
943
|
-
definition: ObservationDefinition;
|
|
944
|
-
onSubmit: (result: ObservationDefinition) => void;
|
|
958
|
+
readonly definition: ObservationDefinition;
|
|
959
|
+
readonly onSubmit: (result: ObservationDefinition) => void;
|
|
945
960
|
}
|
|
946
961
|
|
|
947
962
|
export declare function ReferenceRangeGroupEditor(props: ReferenceRangeGroupEditorProps): JSX.Element;
|
|
@@ -951,12 +966,12 @@ export declare function ReferenceRangeGroupEditor(props: ReferenceRangeGroupEdit
|
|
|
951
966
|
* that have the same filter values
|
|
952
967
|
*/
|
|
953
968
|
export declare interface ReferenceRangeGroupEditorProps {
|
|
954
|
-
intervalGroup: IntervalGroup;
|
|
955
|
-
unit: string | undefined;
|
|
956
|
-
onChange: (groupId: string, changed: ObservationDefinitionQualifiedInterval) => void;
|
|
957
|
-
onAdd: (groupId: string, added: ObservationDefinitionQualifiedInterval) => void;
|
|
958
|
-
onRemove: (groupId: string, removed: ObservationDefinitionQualifiedInterval) => void;
|
|
959
|
-
onRemoveGroup: (removedGroup: IntervalGroup) => void;
|
|
969
|
+
readonly intervalGroup: IntervalGroup;
|
|
970
|
+
readonly unit: string | undefined;
|
|
971
|
+
readonly onChange: (groupId: string, changed: ObservationDefinitionQualifiedInterval) => void;
|
|
972
|
+
readonly onAdd: (groupId: string, added: ObservationDefinitionQualifiedInterval) => void;
|
|
973
|
+
readonly onRemove: (groupId: string, removed: ObservationDefinitionQualifiedInterval) => void;
|
|
974
|
+
readonly onRemoveGroup: (removedGroup: IntervalGroup) => void;
|
|
960
975
|
}
|
|
961
976
|
|
|
962
977
|
export declare function RegisterForm(props: RegisterFormProps): JSX.Element;
|
|
@@ -982,82 +997,81 @@ export declare function renderValue(resource: Resource, field: SearchControlFiel
|
|
|
982
997
|
export declare function RequestGroupDisplay(props: RequestGroupDisplayProps): JSX.Element | null;
|
|
983
998
|
|
|
984
999
|
export declare interface RequestGroupDisplayProps {
|
|
985
|
-
value?: RequestGroup | Reference<RequestGroup>;
|
|
986
|
-
onStart: (task: Task, input: Reference) => void;
|
|
987
|
-
onEdit: (task: Task, input: Reference, output: Reference) => void;
|
|
1000
|
+
readonly value?: RequestGroup | Reference<RequestGroup>;
|
|
1001
|
+
readonly onStart: (task: Task, input: Reference) => void;
|
|
1002
|
+
readonly onEdit: (task: Task, input: Reference, output: Reference) => void;
|
|
988
1003
|
}
|
|
989
1004
|
|
|
990
1005
|
export declare function ResourceArrayDisplay(props: ResourceArrayDisplayProps): JSX.Element;
|
|
991
1006
|
|
|
992
1007
|
export declare interface ResourceArrayDisplayProps {
|
|
993
|
-
property: InternalSchemaElement;
|
|
994
|
-
values: any[];
|
|
995
|
-
arrayElement?: boolean;
|
|
996
|
-
ignoreMissingValues?: boolean;
|
|
997
|
-
link?: boolean;
|
|
1008
|
+
readonly property: InternalSchemaElement;
|
|
1009
|
+
readonly values: any[];
|
|
1010
|
+
readonly arrayElement?: boolean;
|
|
1011
|
+
readonly ignoreMissingValues?: boolean;
|
|
1012
|
+
readonly link?: boolean;
|
|
998
1013
|
}
|
|
999
1014
|
|
|
1000
|
-
export declare function ResourceArrayInput(props:
|
|
1015
|
+
export declare function ResourceArrayInput(props: ResourceArrayInputProps): JSX.Element;
|
|
1001
1016
|
|
|
1002
1017
|
export declare interface ResourceArrayInputProps {
|
|
1003
|
-
property: InternalSchemaElement;
|
|
1004
|
-
name: string;
|
|
1005
|
-
defaultValue?: any[];
|
|
1006
|
-
indent?: boolean;
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
hideNonSliceValues?: boolean;
|
|
1018
|
+
readonly property: InternalSchemaElement;
|
|
1019
|
+
readonly name: string;
|
|
1020
|
+
readonly defaultValue?: any[];
|
|
1021
|
+
readonly indent?: boolean;
|
|
1022
|
+
readonly outcome: OperationOutcome | undefined;
|
|
1023
|
+
readonly onChange?: (value: any[]) => void;
|
|
1024
|
+
readonly hideNonSliceValues?: boolean;
|
|
1011
1025
|
}
|
|
1012
1026
|
|
|
1013
1027
|
export declare function ResourceAvatar(props: ResourceAvatarProps): JSX.Element;
|
|
1014
1028
|
|
|
1015
1029
|
export declare interface ResourceAvatarProps extends AvatarProps {
|
|
1016
|
-
value?: Reference | Resource;
|
|
1017
|
-
link?: boolean;
|
|
1030
|
+
readonly value?: Reference | Resource;
|
|
1031
|
+
readonly link?: boolean;
|
|
1018
1032
|
}
|
|
1019
1033
|
|
|
1020
1034
|
export declare function ResourceBadge(props: ResourceBadgeProps): JSX.Element;
|
|
1021
1035
|
|
|
1022
1036
|
export declare interface ResourceBadgeProps {
|
|
1023
|
-
value?: Reference | Resource;
|
|
1024
|
-
link?: boolean;
|
|
1037
|
+
readonly value?: Reference | Resource;
|
|
1038
|
+
readonly link?: boolean;
|
|
1025
1039
|
}
|
|
1026
1040
|
|
|
1027
1041
|
export declare function ResourceBlame(props: ResourceBlameProps): JSX.Element | null;
|
|
1028
1042
|
|
|
1029
1043
|
export declare interface ResourceBlameProps {
|
|
1030
|
-
history?: Bundle;
|
|
1031
|
-
resourceType?: ResourceType;
|
|
1032
|
-
id?: string;
|
|
1044
|
+
readonly history?: Bundle;
|
|
1045
|
+
readonly resourceType?: ResourceType;
|
|
1046
|
+
readonly id?: string;
|
|
1033
1047
|
}
|
|
1034
1048
|
|
|
1035
1049
|
export declare function ResourceDiff(props: ResourceDiffProps): JSX.Element;
|
|
1036
1050
|
|
|
1037
1051
|
export declare interface ResourceDiffProps {
|
|
1038
|
-
original: Resource;
|
|
1039
|
-
revised: Resource;
|
|
1040
|
-
ignoreMeta?: boolean;
|
|
1052
|
+
readonly original: Resource;
|
|
1053
|
+
readonly revised: Resource;
|
|
1054
|
+
readonly ignoreMeta?: boolean;
|
|
1041
1055
|
}
|
|
1042
1056
|
|
|
1043
1057
|
export declare function ResourceForm(props: ResourceFormProps): JSX.Element;
|
|
1044
1058
|
|
|
1045
1059
|
export declare interface ResourceFormProps {
|
|
1046
|
-
defaultValue: Partial<Resource> | Reference;
|
|
1047
|
-
outcome?: OperationOutcome;
|
|
1048
|
-
onSubmit: (resource: Resource) => void;
|
|
1049
|
-
onDelete?: (resource: Resource) => void;
|
|
1050
|
-
schemaName?: string;
|
|
1060
|
+
readonly defaultValue: Partial<Resource> | Reference;
|
|
1061
|
+
readonly outcome?: OperationOutcome;
|
|
1062
|
+
readonly onSubmit: (resource: Resource) => void;
|
|
1063
|
+
readonly onDelete?: (resource: Resource) => void;
|
|
1064
|
+
readonly schemaName?: string;
|
|
1051
1065
|
/** (optional) URL of the resource profile used to display the form. Takes priority over schemaName. */
|
|
1052
|
-
profileUrl?: string;
|
|
1066
|
+
readonly profileUrl?: string;
|
|
1053
1067
|
}
|
|
1054
1068
|
|
|
1055
1069
|
export declare function ResourceHistoryTable(props: ResourceHistoryTableProps): JSX.Element;
|
|
1056
1070
|
|
|
1057
1071
|
export declare interface ResourceHistoryTableProps {
|
|
1058
|
-
history?: Bundle;
|
|
1059
|
-
resourceType?: string;
|
|
1060
|
-
id?: string;
|
|
1072
|
+
readonly history?: Bundle;
|
|
1073
|
+
readonly resourceType?: string;
|
|
1074
|
+
readonly id?: string;
|
|
1061
1075
|
}
|
|
1062
1076
|
|
|
1063
1077
|
export declare function ResourceInput<T extends Resource = Resource>(props: ResourceInputProps<T>): JSX.Element | null;
|
|
@@ -1076,8 +1090,8 @@ export declare interface ResourceInputProps<T extends Resource = Resource> {
|
|
|
1076
1090
|
export declare function ResourceName(props: ResourceNameProps): JSX.Element | null;
|
|
1077
1091
|
|
|
1078
1092
|
export declare interface ResourceNameProps extends TextProps {
|
|
1079
|
-
value?: Reference | Resource;
|
|
1080
|
-
link?: boolean;
|
|
1093
|
+
readonly value?: Reference | Resource;
|
|
1094
|
+
readonly link?: boolean;
|
|
1081
1095
|
}
|
|
1082
1096
|
|
|
1083
1097
|
/**
|
|
@@ -1088,25 +1102,25 @@ export declare interface ResourceNameProps extends TextProps {
|
|
|
1088
1102
|
export declare function ResourcePropertyDisplay(props: ResourcePropertyDisplayProps): JSX.Element;
|
|
1089
1103
|
|
|
1090
1104
|
export declare interface ResourcePropertyDisplayProps {
|
|
1091
|
-
property?: InternalSchemaElement;
|
|
1092
|
-
propertyType: string;
|
|
1093
|
-
value: any;
|
|
1094
|
-
arrayElement?: boolean;
|
|
1095
|
-
maxWidth?: number;
|
|
1096
|
-
ignoreMissingValues?: boolean;
|
|
1097
|
-
link?: boolean;
|
|
1105
|
+
readonly property?: InternalSchemaElement;
|
|
1106
|
+
readonly propertyType: string;
|
|
1107
|
+
readonly value: any;
|
|
1108
|
+
readonly arrayElement?: boolean;
|
|
1109
|
+
readonly maxWidth?: number;
|
|
1110
|
+
readonly ignoreMissingValues?: boolean;
|
|
1111
|
+
readonly link?: boolean;
|
|
1098
1112
|
}
|
|
1099
1113
|
|
|
1100
1114
|
export declare function ResourcePropertyInput(props: ResourcePropertyInputProps): JSX.Element;
|
|
1101
1115
|
|
|
1102
1116
|
export declare interface ResourcePropertyInputProps {
|
|
1103
|
-
property: InternalSchemaElement;
|
|
1104
|
-
name: string;
|
|
1105
|
-
defaultPropertyType?: string | undefined;
|
|
1106
|
-
defaultValue: any;
|
|
1107
|
-
arrayElement?: boolean | undefined;
|
|
1108
|
-
onChange: ((value: any, propName?: string) => void) | undefined;
|
|
1109
|
-
outcome: OperationOutcome | undefined;
|
|
1117
|
+
readonly property: InternalSchemaElement;
|
|
1118
|
+
readonly name: string;
|
|
1119
|
+
readonly defaultPropertyType?: string | undefined;
|
|
1120
|
+
readonly defaultValue: any;
|
|
1121
|
+
readonly arrayElement?: boolean | undefined;
|
|
1122
|
+
readonly onChange: ((value: any, propName?: string) => void) | undefined;
|
|
1123
|
+
readonly outcome: OperationOutcome | undefined;
|
|
1110
1124
|
}
|
|
1111
1125
|
|
|
1112
1126
|
export declare function ResourceTable(props: ResourceTableProps): JSX.Element | null;
|
|
@@ -1115,34 +1129,34 @@ export declare interface ResourceTableProps {
|
|
|
1115
1129
|
/**
|
|
1116
1130
|
* The input value either as a resource or a reference.
|
|
1117
1131
|
*/
|
|
1118
|
-
value: Resource | Reference;
|
|
1132
|
+
readonly value: Resource | Reference;
|
|
1119
1133
|
/**
|
|
1120
1134
|
* Optional flag to ignore missing values.
|
|
1121
1135
|
* By default, missing values are displayed as empty strings.
|
|
1122
1136
|
*/
|
|
1123
|
-
ignoreMissingValues?: boolean;
|
|
1137
|
+
readonly ignoreMissingValues?: boolean;
|
|
1124
1138
|
/**
|
|
1125
1139
|
* Optional flag to force use the input value.
|
|
1126
1140
|
* This is useful when you want to display a specific version of the resource,
|
|
1127
1141
|
* and not use the latest version.
|
|
1128
1142
|
*/
|
|
1129
|
-
forceUseInput?: boolean;
|
|
1143
|
+
readonly forceUseInput?: boolean;
|
|
1130
1144
|
}
|
|
1131
1145
|
|
|
1132
1146
|
export declare function ResourceTimeline<T extends Resource>(props: ResourceTimelineProps<T>): JSX.Element;
|
|
1133
1147
|
|
|
1134
1148
|
export declare interface ResourceTimelineProps<T extends Resource> {
|
|
1135
|
-
value: T | Reference<T>;
|
|
1136
|
-
loadTimelineResources: (medplum: MedplumClient, resourceType: ResourceType, id: string) => Promise<PromiseSettledResult<Bundle>[]>;
|
|
1137
|
-
createCommunication?: (resource: T, sender: ProfileResource, text: string) => Communication;
|
|
1138
|
-
createMedia?: (resource: T, operator: ProfileResource, attachment: Attachment) => Media;
|
|
1149
|
+
readonly value: T | Reference<T>;
|
|
1150
|
+
readonly loadTimelineResources: (medplum: MedplumClient, resourceType: ResourceType, id: string) => Promise<PromiseSettledResult<Bundle>[]>;
|
|
1151
|
+
readonly createCommunication?: (resource: T, sender: ProfileResource, text: string) => Communication;
|
|
1152
|
+
readonly createMedia?: (resource: T, operator: ProfileResource, attachment: Attachment) => Media;
|
|
1139
1153
|
}
|
|
1140
1154
|
|
|
1141
1155
|
export declare function Scheduler(props: SchedulerProps): JSX.Element | null;
|
|
1142
1156
|
|
|
1143
1157
|
export declare interface SchedulerProps {
|
|
1144
|
-
schedule: Schedule | Reference<Schedule>;
|
|
1145
|
-
questionnaire: Questionnaire | Reference<Questionnaire>;
|
|
1158
|
+
readonly schedule: Schedule | Reference<Schedule>;
|
|
1159
|
+
readonly questionnaire: Questionnaire | Reference<Questionnaire>;
|
|
1146
1160
|
}
|
|
1147
1161
|
|
|
1148
1162
|
export declare class SearchChangeEvent extends Event {
|
|
@@ -1199,40 +1213,38 @@ export declare interface SearchControlField {
|
|
|
1199
1213
|
}
|
|
1200
1214
|
|
|
1201
1215
|
export declare interface SearchControlProps {
|
|
1202
|
-
search: SearchRequest;
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
onPatch?: (ids: string[]) => void;
|
|
1217
|
-
onBulk?: (ids: string[]) => void;
|
|
1216
|
+
readonly search: SearchRequest;
|
|
1217
|
+
readonly checkboxesEnabled?: boolean;
|
|
1218
|
+
readonly hideToolbar?: boolean;
|
|
1219
|
+
readonly hideFilters?: boolean;
|
|
1220
|
+
readonly onLoad?: (e: SearchLoadEvent) => void;
|
|
1221
|
+
readonly onChange?: (e: SearchChangeEvent) => void;
|
|
1222
|
+
readonly onClick?: (e: SearchClickEvent) => void;
|
|
1223
|
+
readonly onAuxClick?: (e: SearchClickEvent) => void;
|
|
1224
|
+
readonly onNew?: () => void;
|
|
1225
|
+
readonly onExport?: () => void;
|
|
1226
|
+
readonly onExportCsv?: () => void;
|
|
1227
|
+
readonly onExportTransactionBundle?: () => void;
|
|
1228
|
+
readonly onDelete?: (ids: string[]) => void;
|
|
1229
|
+
readonly onBulk?: (ids: string[]) => void;
|
|
1218
1230
|
}
|
|
1219
1231
|
|
|
1220
1232
|
export declare function SearchFieldEditor(props: SearchFieldEditorProps): JSX.Element | null;
|
|
1221
1233
|
|
|
1222
1234
|
export declare interface SearchFieldEditorProps {
|
|
1223
|
-
visible: boolean;
|
|
1224
|
-
search: SearchRequest;
|
|
1225
|
-
onOk: (search: SearchRequest) => void;
|
|
1226
|
-
onCancel: () => void;
|
|
1235
|
+
readonly visible: boolean;
|
|
1236
|
+
readonly search: SearchRequest;
|
|
1237
|
+
readonly onOk: (search: SearchRequest) => void;
|
|
1238
|
+
readonly onCancel: () => void;
|
|
1227
1239
|
}
|
|
1228
1240
|
|
|
1229
1241
|
export declare function SearchFilterEditor(props: SearchFilterEditorProps): JSX.Element | null;
|
|
1230
1242
|
|
|
1231
1243
|
export declare interface SearchFilterEditorProps {
|
|
1232
|
-
visible: boolean;
|
|
1233
|
-
search: SearchRequest;
|
|
1234
|
-
onOk: (search: SearchRequest) => void;
|
|
1235
|
-
onCancel: () => void;
|
|
1244
|
+
readonly visible: boolean;
|
|
1245
|
+
readonly search: SearchRequest;
|
|
1246
|
+
readonly onOk: (search: SearchRequest) => void;
|
|
1247
|
+
readonly onCancel: () => void;
|
|
1236
1248
|
}
|
|
1237
1249
|
|
|
1238
1250
|
export declare class SearchLoadEvent extends Event {
|
|
@@ -1243,7 +1255,7 @@ export declare class SearchLoadEvent extends Event {
|
|
|
1243
1255
|
export declare function ServiceRequestTimeline(props: ServiceRequestTimelineProps): JSX.Element;
|
|
1244
1256
|
|
|
1245
1257
|
export declare interface ServiceRequestTimelineProps {
|
|
1246
|
-
serviceRequest: ServiceRequest | Reference<ServiceRequest>;
|
|
1258
|
+
readonly serviceRequest: ServiceRequest | Reference<ServiceRequest>;
|
|
1247
1259
|
}
|
|
1248
1260
|
|
|
1249
1261
|
/**
|
|
@@ -1320,7 +1332,7 @@ export declare interface SmartAppLaunchLinkProps extends AnchorProps {
|
|
|
1320
1332
|
}
|
|
1321
1333
|
|
|
1322
1334
|
export declare interface SmartSearchResponse {
|
|
1323
|
-
data: {
|
|
1335
|
+
readonly data: {
|
|
1324
1336
|
ResourceList: Resource[];
|
|
1325
1337
|
};
|
|
1326
1338
|
}
|
|
@@ -1348,23 +1360,23 @@ export declare function Timeline(props: TimelineProps): JSX.Element;
|
|
|
1348
1360
|
export declare function TimelineItem(props: TimelineItemProps): JSX.Element;
|
|
1349
1361
|
|
|
1350
1362
|
export declare interface TimelineItemProps extends PanelProps {
|
|
1351
|
-
resource: Resource;
|
|
1352
|
-
profile?: Reference;
|
|
1353
|
-
dateTime?: string;
|
|
1354
|
-
padding?: boolean;
|
|
1355
|
-
popupMenuItems?: ReactNode;
|
|
1363
|
+
readonly resource: Resource;
|
|
1364
|
+
readonly profile?: Reference;
|
|
1365
|
+
readonly dateTime?: string;
|
|
1366
|
+
readonly padding?: boolean;
|
|
1367
|
+
readonly popupMenuItems?: ReactNode;
|
|
1356
1368
|
}
|
|
1357
1369
|
|
|
1358
1370
|
export declare interface TimelineProps {
|
|
1359
|
-
children?: ReactNode;
|
|
1371
|
+
readonly children?: ReactNode;
|
|
1360
1372
|
}
|
|
1361
1373
|
|
|
1362
1374
|
export declare function TimingInput(props: TimingInputProps): JSX.Element;
|
|
1363
1375
|
|
|
1364
1376
|
export declare interface TimingInputProps {
|
|
1365
|
-
name: string;
|
|
1366
|
-
defaultValue?: Timing;
|
|
1367
|
-
onChange?: (newValue: Timing) => void;
|
|
1377
|
+
readonly name: string;
|
|
1378
|
+
readonly defaultValue?: Timing;
|
|
1379
|
+
readonly onChange?: (newValue: Timing) => void;
|
|
1368
1380
|
}
|
|
1369
1381
|
|
|
1370
1382
|
/**
|
|
@@ -1377,6 +1389,8 @@ export declare interface TimingInputProps {
|
|
|
1377
1389
|
*/
|
|
1378
1390
|
export declare function toggleSort(definition: SearchRequest, key: string): SearchRequest;
|
|
1379
1391
|
|
|
1392
|
+
export declare const useCachedBinaryUrl: (binaryUrl: string | undefined) => string | undefined;
|
|
1393
|
+
|
|
1380
1394
|
/**
|
|
1381
1395
|
* Returns the MedplumClient instance.
|
|
1382
1396
|
* This is a shortcut for useMedplumContext().medplum.
|
|
@@ -1454,10 +1468,10 @@ export declare function useSearchResources<K extends ResourceType>(resourceType:
|
|
|
1454
1468
|
export declare function ValueSetAutocomplete(props: ValueSetAutocompleteProps): JSX.Element;
|
|
1455
1469
|
|
|
1456
1470
|
export declare interface ValueSetAutocompleteProps extends Omit<AsyncAutocompleteProps<ValueSetExpansionContains>, 'loadOptions' | 'toKey' | 'toOption'> {
|
|
1457
|
-
binding: string | undefined;
|
|
1458
|
-
creatable?: boolean;
|
|
1459
|
-
clearable?: boolean;
|
|
1460
|
-
expandParams?: Partial<ValueSetExpandParams>;
|
|
1471
|
+
readonly binding: string | undefined;
|
|
1472
|
+
readonly creatable?: boolean;
|
|
1473
|
+
readonly clearable?: boolean;
|
|
1474
|
+
readonly expandParams?: Partial<ValueSetExpandParams>;
|
|
1461
1475
|
}
|
|
1462
1476
|
|
|
1463
1477
|
export { }
|