@medplum/react 3.0.1 → 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 +297 -299
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.css.map +2 -2
- package/dist/esm/index.d.ts +297 -299
- package/dist/esm/index.mjs +5 -5
- package/dist/esm/index.mjs.map +4 -4
- package/package.json +8 -7
package/dist/esm/index.d.ts
CHANGED
|
@@ -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,29 +182,29 @@ 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
210
|
export declare interface AsyncAutocompleteProps<T> extends Omit<ComboboxProps, 'data' | 'defaultValue' | 'loadOptions' | 'onChange' | 'onCreate' | 'searchable'> {
|
|
@@ -231,26 +230,26 @@ export declare interface AsyncAutocompleteProps<T> extends Omit<ComboboxProps, '
|
|
|
231
230
|
export declare function AttachmentArrayDisplay(props: AttachmentArrayDisplayProps): JSX.Element;
|
|
232
231
|
|
|
233
232
|
export declare interface AttachmentArrayDisplayProps {
|
|
234
|
-
values?: Attachment[];
|
|
235
|
-
maxWidth?: number;
|
|
233
|
+
readonly values?: Attachment[];
|
|
234
|
+
readonly maxWidth?: number;
|
|
236
235
|
}
|
|
237
236
|
|
|
238
237
|
export declare function AttachmentArrayInput(props: AttachmentArrayInputProps): JSX.Element;
|
|
239
238
|
|
|
240
239
|
export declare interface AttachmentArrayInputProps {
|
|
241
|
-
name: string;
|
|
242
|
-
defaultValue?: Attachment[];
|
|
243
|
-
arrayElement?: boolean;
|
|
244
|
-
onChange?: (value: Attachment[]) => void;
|
|
240
|
+
readonly name: string;
|
|
241
|
+
readonly defaultValue?: Attachment[];
|
|
242
|
+
readonly arrayElement?: boolean;
|
|
243
|
+
readonly onChange?: (value: Attachment[]) => void;
|
|
245
244
|
}
|
|
246
245
|
|
|
247
246
|
export declare function AttachmentButton(props: AttachmentButtonProps): JSX.Element;
|
|
248
247
|
|
|
249
248
|
export declare interface AttachmentButtonProps {
|
|
250
|
-
onUpload: (attachment: Attachment) => void;
|
|
251
|
-
onUploadStart?: () => void;
|
|
252
|
-
onUploadProgress?: (e: ProgressEvent) => void;
|
|
253
|
-
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;
|
|
254
253
|
children(props: {
|
|
255
254
|
onClick(e: MouseEvent_2): void;
|
|
256
255
|
}): ReactNode;
|
|
@@ -259,41 +258,41 @@ export declare interface AttachmentButtonProps {
|
|
|
259
258
|
export declare function AttachmentDisplay(props: AttachmentDisplayProps): JSX.Element | null;
|
|
260
259
|
|
|
261
260
|
export declare interface AttachmentDisplayProps {
|
|
262
|
-
value?: Attachment;
|
|
263
|
-
maxWidth?: number;
|
|
261
|
+
readonly value?: Attachment;
|
|
262
|
+
readonly maxWidth?: number;
|
|
264
263
|
}
|
|
265
264
|
|
|
266
265
|
export declare function AttachmentInput(props: AttachmentInputProps): JSX.Element;
|
|
267
266
|
|
|
268
267
|
export declare interface AttachmentInputProps {
|
|
269
|
-
name: string;
|
|
270
|
-
defaultValue?: Attachment;
|
|
271
|
-
arrayElement?: boolean;
|
|
272
|
-
onChange?: (value: Attachment | undefined) => void;
|
|
268
|
+
readonly name: string;
|
|
269
|
+
readonly defaultValue?: Attachment;
|
|
270
|
+
readonly arrayElement?: boolean;
|
|
271
|
+
readonly onChange?: (value: Attachment | undefined) => void;
|
|
273
272
|
}
|
|
274
273
|
|
|
275
274
|
export declare function BackboneElementDisplay(props: BackboneElementDisplayProps): JSX.Element | null;
|
|
276
275
|
|
|
277
276
|
export declare interface BackboneElementDisplayProps {
|
|
278
|
-
value: TypedValue;
|
|
279
|
-
compact?: boolean;
|
|
280
|
-
ignoreMissingValues?: boolean;
|
|
281
|
-
link?: boolean;
|
|
277
|
+
readonly value: TypedValue;
|
|
278
|
+
readonly compact?: boolean;
|
|
279
|
+
readonly ignoreMissingValues?: boolean;
|
|
280
|
+
readonly link?: boolean;
|
|
282
281
|
}
|
|
283
282
|
|
|
284
283
|
export declare function BackboneElementInput(props: BackboneElementInputProps): JSX.Element;
|
|
285
284
|
|
|
286
285
|
export declare interface BackboneElementInputProps {
|
|
287
286
|
/** Type name the backbone element represents */
|
|
288
|
-
typeName: string;
|
|
287
|
+
readonly typeName: string;
|
|
289
288
|
/** (optional) The contents of the resource represented by the backbone element */
|
|
290
|
-
defaultValue?: any;
|
|
289
|
+
readonly defaultValue?: any;
|
|
291
290
|
/** (optional) OperationOutcome from the last attempted system action*/
|
|
292
|
-
outcome?: OperationOutcome;
|
|
291
|
+
readonly outcome?: OperationOutcome;
|
|
293
292
|
/** (optional) callback function that is called when the value of the backbone element changes */
|
|
294
|
-
onChange?: (value: any) => void;
|
|
293
|
+
readonly onChange?: (value: any) => void;
|
|
295
294
|
/** (optional) Profile URL of the structure definition represented by the backbone element */
|
|
296
|
-
profileUrl?: string;
|
|
295
|
+
readonly profileUrl?: string;
|
|
297
296
|
}
|
|
298
297
|
|
|
299
298
|
/**
|
|
@@ -310,21 +309,21 @@ export declare function buildInitialResponseItem(item: QuestionnaireItem): Quest
|
|
|
310
309
|
export declare function CalendarInput(props: CalendarInputProps): JSX.Element;
|
|
311
310
|
|
|
312
311
|
export declare interface CalendarInputProps {
|
|
313
|
-
slots: Slot[];
|
|
314
|
-
onChangeMonth: (date: Date) => void;
|
|
315
|
-
onClick: (date: Date) => void;
|
|
312
|
+
readonly slots: Slot[];
|
|
313
|
+
readonly onChangeMonth: (date: Date) => void;
|
|
314
|
+
readonly onClick: (date: Date) => void;
|
|
316
315
|
}
|
|
317
316
|
|
|
318
317
|
export declare function CheckboxFormSection(props: CheckboxFormSectionProps): JSX.Element;
|
|
319
318
|
|
|
320
319
|
export declare interface CheckboxFormSectionProps {
|
|
321
|
-
htmlFor?: string;
|
|
322
|
-
title?: string;
|
|
323
|
-
description?: string;
|
|
324
|
-
withAsterisk?: boolean;
|
|
325
|
-
children?: ReactNode;
|
|
326
|
-
testId?: string;
|
|
327
|
-
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;
|
|
328
327
|
}
|
|
329
328
|
|
|
330
329
|
/**
|
|
@@ -345,34 +344,34 @@ export declare function clearFiltersOnField(definition: SearchRequest, code: str
|
|
|
345
344
|
export declare function CodeableConceptDisplay(props: CodeableConceptDisplayProps): JSX.Element;
|
|
346
345
|
|
|
347
346
|
export declare interface CodeableConceptDisplayProps {
|
|
348
|
-
value?: CodeableConcept;
|
|
347
|
+
readonly value?: CodeableConcept;
|
|
349
348
|
}
|
|
350
349
|
|
|
351
350
|
export declare function CodeableConceptInput(props: CodeableConceptInputProps): JSX.Element;
|
|
352
351
|
|
|
353
352
|
export declare interface CodeableConceptInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
354
|
-
defaultValue?: CodeableConcept;
|
|
355
|
-
onChange?: (value: CodeableConcept | undefined) => void;
|
|
353
|
+
readonly defaultValue?: CodeableConcept;
|
|
354
|
+
readonly onChange?: (value: CodeableConcept | undefined) => void;
|
|
356
355
|
}
|
|
357
356
|
|
|
358
357
|
export declare function CodeInput(props: CodeInputProps): JSX.Element;
|
|
359
358
|
|
|
360
359
|
export declare interface CodeInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
361
|
-
defaultValue?: string;
|
|
362
|
-
onChange?: (value: string | undefined) => void;
|
|
360
|
+
readonly defaultValue?: string;
|
|
361
|
+
readonly onChange?: (value: string | undefined) => void;
|
|
363
362
|
}
|
|
364
363
|
|
|
365
364
|
export declare function CodingDisplay(props: CodingDisplayProps): JSX.Element;
|
|
366
365
|
|
|
367
366
|
export declare interface CodingDisplayProps {
|
|
368
|
-
value?: Coding;
|
|
367
|
+
readonly value?: Coding;
|
|
369
368
|
}
|
|
370
369
|
|
|
371
370
|
export declare function CodingInput(props: CodingInputProps): JSX.Element;
|
|
372
371
|
|
|
373
372
|
export declare interface CodingInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
374
|
-
defaultValue?: Coding;
|
|
375
|
-
onChange?: (value: Coding | undefined) => void;
|
|
373
|
+
readonly defaultValue?: Coding;
|
|
374
|
+
readonly onChange?: (value: Coding | undefined) => void;
|
|
376
375
|
}
|
|
377
376
|
|
|
378
377
|
export declare interface ComplexTypeInputProps<ValueType> {
|
|
@@ -386,7 +385,7 @@ export declare interface ComplexTypeInputProps<ValueType> {
|
|
|
386
385
|
export declare function ContactDetailDisplay(props: ContactDetailDisplayProps): JSX.Element | null;
|
|
387
386
|
|
|
388
387
|
export declare interface ContactDetailDisplayProps {
|
|
389
|
-
value?: ContactDetail;
|
|
388
|
+
readonly value?: ContactDetail;
|
|
390
389
|
}
|
|
391
390
|
|
|
392
391
|
export declare function ContactDetailInput(props: ContactDetailInputProps): JSX.Element;
|
|
@@ -396,13 +395,13 @@ export declare type ContactDetailInputProps = ComplexTypeInputProps<ContactDetai
|
|
|
396
395
|
export declare function ContactPointDisplay(props: ContactPointDisplayProps): JSX.Element | null;
|
|
397
396
|
|
|
398
397
|
export declare interface ContactPointDisplayProps {
|
|
399
|
-
value?: ContactPoint;
|
|
398
|
+
readonly value?: ContactPoint;
|
|
400
399
|
}
|
|
401
400
|
|
|
402
401
|
export declare function ContactPointInput(props: ContactPointInputProps): JSX.Element;
|
|
403
402
|
|
|
404
403
|
export declare type ContactPointInputProps = ComplexTypeInputProps<ContactPoint> & {
|
|
405
|
-
onChange: ((value: ContactPoint | undefined) => void) | undefined;
|
|
404
|
+
readonly onChange: ((value: ContactPoint | undefined) => void) | undefined;
|
|
406
405
|
};
|
|
407
406
|
|
|
408
407
|
export declare function Container(props: ContainerProps): JSX.Element;
|
|
@@ -439,19 +438,19 @@ export declare function createScriptTag(src: string, onload?: () => void): void;
|
|
|
439
438
|
export declare function DateTimeInput(props: DateTimeInputProps): JSX.Element;
|
|
440
439
|
|
|
441
440
|
export declare interface DateTimeInputProps {
|
|
442
|
-
name?: string;
|
|
443
|
-
placeholder?: string;
|
|
444
|
-
defaultValue?: string;
|
|
445
|
-
autoFocus?: boolean;
|
|
446
|
-
required?: boolean;
|
|
447
|
-
outcome?: OperationOutcome;
|
|
448
|
-
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;
|
|
449
448
|
}
|
|
450
449
|
|
|
451
450
|
export declare function DefaultResourceTimeline(props: DefaultResourceTimelineProps): JSX.Element;
|
|
452
451
|
|
|
453
452
|
export declare interface DefaultResourceTimelineProps {
|
|
454
|
-
resource: Resource | Reference;
|
|
453
|
+
readonly resource: Resource | Reference;
|
|
455
454
|
}
|
|
456
455
|
|
|
457
456
|
/**
|
|
@@ -467,13 +466,13 @@ export declare function DescriptionList(props: DescriptionListProps): JSX.Elemen
|
|
|
467
466
|
export declare function DescriptionListEntry(props: DescriptionListEntryProps): JSX.Element;
|
|
468
467
|
|
|
469
468
|
export declare interface DescriptionListEntryProps {
|
|
470
|
-
term: string;
|
|
471
|
-
children: ReactNode;
|
|
469
|
+
readonly term: string;
|
|
470
|
+
readonly children: ReactNode;
|
|
472
471
|
}
|
|
473
472
|
|
|
474
473
|
export declare interface DescriptionListProps {
|
|
475
|
-
children: ReactNode;
|
|
476
|
-
compact?: boolean;
|
|
474
|
+
readonly children: ReactNode;
|
|
475
|
+
readonly compact?: boolean;
|
|
477
476
|
}
|
|
478
477
|
|
|
479
478
|
export declare function DiagnosticReportDisplay(props: DiagnosticReportDisplayProps): JSX.Element | null;
|
|
@@ -483,9 +482,9 @@ export declare namespace DiagnosticReportDisplay {
|
|
|
483
482
|
}
|
|
484
483
|
|
|
485
484
|
export declare interface DiagnosticReportDisplayProps {
|
|
486
|
-
value?: DiagnosticReport | Reference<DiagnosticReport>;
|
|
487
|
-
hideObservationNotes?: boolean;
|
|
488
|
-
hideSpecimenInfo?: boolean;
|
|
485
|
+
readonly value?: DiagnosticReport | Reference<DiagnosticReport>;
|
|
486
|
+
readonly hideObservationNotes?: boolean;
|
|
487
|
+
readonly hideSpecimenInfo?: boolean;
|
|
489
488
|
}
|
|
490
489
|
|
|
491
490
|
declare function Document_2(props: PanelProps): JSX.Element;
|
|
@@ -494,27 +493,27 @@ export { Document_2 as Document }
|
|
|
494
493
|
export declare function ElementDefinitionInputSelector(props: ElementDefinitionSelectorProps): JSX.Element;
|
|
495
494
|
|
|
496
495
|
export declare interface ElementDefinitionSelectorProps extends ResourcePropertyInputProps {
|
|
497
|
-
elementDefinitionTypes: ElementDefinitionType[];
|
|
496
|
+
readonly elementDefinitionTypes: ElementDefinitionType[];
|
|
498
497
|
}
|
|
499
498
|
|
|
500
499
|
export declare function ElementDefinitionTypeInput(props: ElementDefinitionTypeInputProps): JSX.Element;
|
|
501
500
|
|
|
502
501
|
export declare type ElementDefinitionTypeInputProps = {
|
|
503
|
-
name: ResourcePropertyInputProps['name'];
|
|
504
|
-
path: string;
|
|
505
|
-
defaultValue: ResourcePropertyInputProps['defaultValue'];
|
|
506
|
-
onChange: ResourcePropertyInputProps['onChange'];
|
|
507
|
-
outcome: ResourcePropertyInputProps['outcome'];
|
|
508
|
-
elementDefinitionType: ElementDefinitionType;
|
|
509
|
-
min: number;
|
|
510
|
-
max: number;
|
|
511
|
-
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;
|
|
512
511
|
};
|
|
513
512
|
|
|
514
513
|
export declare function EncounterTimeline(props: EncounterTimelineProps): JSX.Element;
|
|
515
514
|
|
|
516
515
|
export declare interface EncounterTimelineProps {
|
|
517
|
-
encounter: Encounter | Reference<Encounter>;
|
|
516
|
+
readonly encounter: Encounter | Reference<Encounter>;
|
|
518
517
|
}
|
|
519
518
|
|
|
520
519
|
/**
|
|
@@ -522,22 +521,22 @@ export declare interface EncounterTimelineProps {
|
|
|
522
521
|
* See: https://reactjs.org/docs/error-boundaries.html
|
|
523
522
|
*/
|
|
524
523
|
export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
525
|
-
state: ErrorBoundaryState;
|
|
524
|
+
readonly state: ErrorBoundaryState;
|
|
526
525
|
constructor(props: ErrorBoundaryProps);
|
|
527
526
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
528
|
-
componentDidUpdate(_prevProps:
|
|
529
|
-
shouldComponentUpdate(nextProps:
|
|
527
|
+
componentDidUpdate(_prevProps: ErrorBoundaryProps, _prevState: ErrorBoundaryState): void;
|
|
528
|
+
shouldComponentUpdate(nextProps: ErrorBoundaryProps, nextState: ErrorBoundaryState): boolean;
|
|
530
529
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
531
530
|
render(): ReactNode;
|
|
532
531
|
}
|
|
533
532
|
|
|
534
533
|
export declare interface ErrorBoundaryProps {
|
|
535
|
-
children: ReactNode;
|
|
534
|
+
readonly children: ReactNode;
|
|
536
535
|
}
|
|
537
536
|
|
|
538
537
|
export declare interface ErrorBoundaryState {
|
|
539
|
-
error?: Error;
|
|
540
|
-
lastLocation: string;
|
|
538
|
+
readonly error?: Error;
|
|
539
|
+
readonly lastLocation: string;
|
|
541
540
|
}
|
|
542
541
|
|
|
543
542
|
/**
|
|
@@ -554,13 +553,13 @@ export declare interface FhirPathTableField {
|
|
|
554
553
|
}
|
|
555
554
|
|
|
556
555
|
export declare interface FhirPathTableProps {
|
|
557
|
-
resourceType: string;
|
|
558
|
-
query: string;
|
|
559
|
-
fields: FhirPathTableField[];
|
|
560
|
-
checkboxesEnabled?: boolean;
|
|
561
|
-
onClick?: (e: SearchClickEvent) => void;
|
|
562
|
-
onAuxClick?: (e: SearchClickEvent) => void;
|
|
563
|
-
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;
|
|
564
563
|
}
|
|
565
564
|
|
|
566
565
|
export declare function Form(props: FormProps): JSX.Element;
|
|
@@ -568,23 +567,23 @@ export declare function Form(props: FormProps): JSX.Element;
|
|
|
568
567
|
export declare function formatReferenceString(typedValue: TypedValue): string;
|
|
569
568
|
|
|
570
569
|
export declare interface FormProps {
|
|
571
|
-
onSubmit?: (formData: Record<string, string>) => void;
|
|
572
|
-
style?: CSSProperties;
|
|
573
|
-
children?: ReactNode;
|
|
574
|
-
testid?: string;
|
|
570
|
+
readonly onSubmit?: (formData: Record<string, string>) => void;
|
|
571
|
+
readonly style?: CSSProperties;
|
|
572
|
+
readonly children?: ReactNode;
|
|
573
|
+
readonly testid?: string;
|
|
575
574
|
}
|
|
576
575
|
|
|
577
576
|
export declare function FormSection(props: FormSectionProps): JSX.Element;
|
|
578
577
|
|
|
579
578
|
export declare interface FormSectionProps {
|
|
580
|
-
title?: string;
|
|
581
|
-
htmlFor?: string;
|
|
582
|
-
description?: string;
|
|
583
|
-
withAsterisk?: boolean;
|
|
584
|
-
outcome?: OperationOutcome;
|
|
585
|
-
children?: ReactNode;
|
|
586
|
-
testId?: string;
|
|
587
|
-
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;
|
|
588
587
|
}
|
|
589
588
|
|
|
590
589
|
export declare function getErrorsForInput(outcome: OperationOutcome | undefined, expression: string | undefined): string | undefined;
|
|
@@ -652,19 +651,19 @@ export declare function getSortField(definition: SearchRequest): string | undefi
|
|
|
652
651
|
export declare function Header(props: HeaderProps): JSX.Element;
|
|
653
652
|
|
|
654
653
|
export declare interface HeaderProps {
|
|
655
|
-
pathname?: string;
|
|
656
|
-
searchParams?: URLSearchParams;
|
|
657
|
-
headerSearchDisabled?: boolean;
|
|
658
|
-
logo: ReactNode;
|
|
659
|
-
version?: string;
|
|
660
|
-
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;
|
|
661
660
|
}
|
|
662
661
|
|
|
663
662
|
export declare function HumanNameDisplay(props: HumanNameDisplayProps): JSX.Element | null;
|
|
664
663
|
|
|
665
664
|
export declare interface HumanNameDisplayProps {
|
|
666
|
-
value?: HumanName;
|
|
667
|
-
options?: HumanNameFormatOptions;
|
|
665
|
+
readonly value?: HumanName;
|
|
666
|
+
readonly options?: HumanNameFormatOptions;
|
|
668
667
|
}
|
|
669
668
|
|
|
670
669
|
export declare function HumanNameInput(props: HumanNameInputProps): JSX.Element;
|
|
@@ -674,7 +673,7 @@ export declare type HumanNameInputProps = ComplexTypeInputProps<HumanName>;
|
|
|
674
673
|
export declare function IdentifierDisplay(props: IdentifierDisplayProps): JSX.Element;
|
|
675
674
|
|
|
676
675
|
export declare interface IdentifierDisplayProps {
|
|
677
|
-
value?: Identifier;
|
|
676
|
+
readonly value?: Identifier;
|
|
678
677
|
}
|
|
679
678
|
|
|
680
679
|
export declare function IdentifierInput(props: IdentifierInputProps): JSX.Element;
|
|
@@ -707,8 +706,8 @@ export declare function Loading(): JSX.Element;
|
|
|
707
706
|
export declare function Logo(props: LogoProps): JSX.Element;
|
|
708
707
|
|
|
709
708
|
export declare interface LogoProps {
|
|
710
|
-
size: number;
|
|
711
|
-
fill?: string;
|
|
709
|
+
readonly size: number;
|
|
710
|
+
readonly fill?: string;
|
|
712
711
|
}
|
|
713
712
|
|
|
714
713
|
export declare function MeasureReportDisplay(props: MeasureReportDisplayProps): JSX.Element | null;
|
|
@@ -727,11 +726,11 @@ export declare interface MedplumContext {
|
|
|
727
726
|
export declare function MedplumLink(props: MedplumLinkProps): JSX.Element;
|
|
728
727
|
|
|
729
728
|
export declare interface MedplumLinkProps extends TextProps {
|
|
730
|
-
to?: Resource | Reference | string;
|
|
731
|
-
suffix?: string;
|
|
732
|
-
label?: string;
|
|
733
|
-
onClick?: MouseEventHandler;
|
|
734
|
-
children: ReactNode;
|
|
729
|
+
readonly to?: Resource | Reference | string;
|
|
730
|
+
readonly suffix?: string;
|
|
731
|
+
readonly label?: string;
|
|
732
|
+
readonly onClick?: MouseEventHandler;
|
|
733
|
+
readonly children: ReactNode;
|
|
735
734
|
}
|
|
736
735
|
|
|
737
736
|
/**
|
|
@@ -746,9 +745,9 @@ export declare interface MedplumLinkProps extends TextProps {
|
|
|
746
745
|
export declare function MedplumProvider(props: MedplumProviderProps): JSX.Element;
|
|
747
746
|
|
|
748
747
|
export declare interface MedplumProviderProps {
|
|
749
|
-
medplum: MedplumClient;
|
|
750
|
-
navigate?: MepdlumNavigateFunction;
|
|
751
|
-
children: ReactNode;
|
|
748
|
+
readonly medplum: MedplumClient;
|
|
749
|
+
readonly navigate?: MepdlumNavigateFunction;
|
|
750
|
+
readonly children: ReactNode;
|
|
752
751
|
}
|
|
753
752
|
|
|
754
753
|
export declare const MemoizedFhirPathTable: MemoExoticComponent<typeof FhirPathTable>;
|
|
@@ -760,73 +759,73 @@ export declare type MepdlumNavigateFunction = (path: string) => void;
|
|
|
760
759
|
export declare function MoneyDisplay(props: MoneyDisplayProps): JSX.Element | null;
|
|
761
760
|
|
|
762
761
|
export declare interface MoneyDisplayProps {
|
|
763
|
-
value?: Money;
|
|
762
|
+
readonly value?: Money;
|
|
764
763
|
}
|
|
765
764
|
|
|
766
765
|
export declare function MoneyInput(props: MoneyInputProps): JSX.Element;
|
|
767
766
|
|
|
768
767
|
export declare interface MoneyInputProps {
|
|
769
|
-
name: string;
|
|
770
|
-
label?: string;
|
|
771
|
-
placeholder?: string;
|
|
772
|
-
defaultValue?: Money;
|
|
773
|
-
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;
|
|
774
773
|
}
|
|
775
774
|
|
|
776
775
|
export declare function Navbar(props: NavbarProps): JSX.Element;
|
|
777
776
|
|
|
778
777
|
export declare interface NavbarLink {
|
|
779
|
-
icon?: JSX.Element;
|
|
780
|
-
label?: string;
|
|
781
|
-
href: string;
|
|
778
|
+
readonly icon?: JSX.Element;
|
|
779
|
+
readonly label?: string;
|
|
780
|
+
readonly href: string;
|
|
782
781
|
}
|
|
783
782
|
|
|
784
783
|
export declare interface NavbarMenu {
|
|
785
|
-
title?: string;
|
|
786
|
-
links?: NavbarLink[];
|
|
784
|
+
readonly title?: string;
|
|
785
|
+
readonly links?: NavbarLink[];
|
|
787
786
|
}
|
|
788
787
|
|
|
789
788
|
export declare interface NavbarProps {
|
|
790
|
-
pathname?: string;
|
|
791
|
-
searchParams?: URLSearchParams;
|
|
792
|
-
menus?: NavbarMenu[];
|
|
793
|
-
closeNavbar: () => void;
|
|
794
|
-
displayAddBookmark?: boolean;
|
|
795
|
-
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;
|
|
796
795
|
}
|
|
797
796
|
|
|
798
797
|
export declare function NoteDisplay({ value }: NoteDisplayProps): JSX.Element | null;
|
|
799
798
|
|
|
800
799
|
export declare interface NoteDisplayProps {
|
|
801
|
-
value?: Annotation[];
|
|
800
|
+
readonly value?: Annotation[];
|
|
802
801
|
}
|
|
803
802
|
|
|
804
803
|
export declare function ObservationTable(props: ObservationTableProps): JSX.Element;
|
|
805
804
|
|
|
806
805
|
export declare interface ObservationTableProps {
|
|
807
|
-
value?: Observation[] | Reference<Observation>[];
|
|
808
|
-
ancestorIds?: string[];
|
|
809
|
-
hideObservationNotes?: boolean;
|
|
806
|
+
readonly value?: Observation[] | Reference<Observation>[];
|
|
807
|
+
readonly ancestorIds?: string[];
|
|
808
|
+
readonly hideObservationNotes?: boolean;
|
|
810
809
|
}
|
|
811
810
|
|
|
812
811
|
export declare function OperationOutcomeAlert(props: OperationOutcomeAlertProps): JSX.Element | null;
|
|
813
812
|
|
|
814
813
|
export declare interface OperationOutcomeAlertProps {
|
|
815
|
-
outcome?: OperationOutcome;
|
|
816
|
-
issues?: OperationOutcomeIssue[];
|
|
814
|
+
readonly outcome?: OperationOutcome;
|
|
815
|
+
readonly issues?: OperationOutcomeIssue[];
|
|
817
816
|
}
|
|
818
817
|
|
|
819
818
|
export declare function Panel(props: PanelProps): JSX.Element;
|
|
820
819
|
|
|
821
820
|
export declare interface PanelProps extends PaperProps {
|
|
822
|
-
width?: number;
|
|
823
|
-
fill?: boolean;
|
|
824
|
-
children?: React.ReactNode;
|
|
821
|
+
readonly width?: number;
|
|
822
|
+
readonly fill?: boolean;
|
|
823
|
+
readonly children?: React.ReactNode;
|
|
825
824
|
}
|
|
826
825
|
|
|
827
826
|
export declare interface PanelStylesParams {
|
|
828
|
-
width?: number;
|
|
829
|
-
fill?: boolean;
|
|
827
|
+
readonly width?: number;
|
|
828
|
+
readonly fill?: boolean;
|
|
830
829
|
}
|
|
831
830
|
|
|
832
831
|
/**
|
|
@@ -846,49 +845,49 @@ export declare interface PatientSummaryProps extends Omit<CardProps, 'children'>
|
|
|
846
845
|
export declare function PatientTimeline(props: PatientTimelineProps): JSX.Element;
|
|
847
846
|
|
|
848
847
|
export declare interface PatientTimelineProps {
|
|
849
|
-
patient: Patient | Reference<Patient>;
|
|
848
|
+
readonly patient: Patient | Reference<Patient>;
|
|
850
849
|
}
|
|
851
850
|
|
|
852
851
|
export declare function PlanDefinitionBuilder(props: PlanDefinitionBuilderProps): JSX.Element | null;
|
|
853
852
|
|
|
854
853
|
export declare interface PlanDefinitionBuilderProps {
|
|
855
|
-
value: Partial<PlanDefinition> | Reference<PlanDefinition>;
|
|
856
|
-
onSubmit: (result: PlanDefinition) => void;
|
|
854
|
+
readonly value: Partial<PlanDefinition> | Reference<PlanDefinition>;
|
|
855
|
+
readonly onSubmit: (result: PlanDefinition) => void;
|
|
857
856
|
}
|
|
858
857
|
|
|
859
858
|
export declare function QuantityDisplay(props: QuantityDisplayProps): JSX.Element | null;
|
|
860
859
|
|
|
861
860
|
export declare interface QuantityDisplayProps {
|
|
862
|
-
value?: Quantity;
|
|
861
|
+
readonly value?: Quantity;
|
|
863
862
|
}
|
|
864
863
|
|
|
865
864
|
export declare function QuantityInput(props: QuantityInputProps): JSX.Element;
|
|
866
865
|
|
|
867
866
|
export declare interface QuantityInputProps {
|
|
868
|
-
name: string;
|
|
869
|
-
defaultValue?: Quantity;
|
|
870
|
-
autoFocus?: boolean;
|
|
871
|
-
required?: boolean;
|
|
872
|
-
onChange?: (value: Quantity) => void;
|
|
873
|
-
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;
|
|
874
873
|
}
|
|
875
874
|
|
|
876
875
|
export declare function QuestionnaireBuilder(props: QuestionnaireBuilderProps): JSX.Element | null;
|
|
877
876
|
|
|
878
877
|
export declare interface QuestionnaireBuilderProps {
|
|
879
|
-
questionnaire: Partial<Questionnaire> | Reference<Questionnaire>;
|
|
880
|
-
onSubmit: (result: Questionnaire) => void;
|
|
881
|
-
autoSave?: boolean;
|
|
878
|
+
readonly questionnaire: Partial<Questionnaire> | Reference<Questionnaire>;
|
|
879
|
+
readonly onSubmit: (result: Questionnaire) => void;
|
|
880
|
+
readonly autoSave?: boolean;
|
|
882
881
|
}
|
|
883
882
|
|
|
884
883
|
export declare function QuestionnaireForm(props: QuestionnaireFormProps): JSX.Element | null;
|
|
885
884
|
|
|
886
885
|
export declare interface QuestionnaireFormProps {
|
|
887
|
-
questionnaire: Questionnaire | Reference<Questionnaire>;
|
|
888
|
-
subject?: Reference;
|
|
889
|
-
encounter?: Reference<Encounter>;
|
|
890
|
-
submitButtonText?: string;
|
|
891
|
-
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;
|
|
892
891
|
}
|
|
893
892
|
|
|
894
893
|
export declare enum QuestionnaireItemType {
|
|
@@ -914,7 +913,7 @@ export declare enum QuestionnaireItemType {
|
|
|
914
913
|
export declare function RangeDisplay(props: RangeDisplayProps): JSX.Element | null;
|
|
915
914
|
|
|
916
915
|
export declare interface RangeDisplayProps {
|
|
917
|
-
value?: Range_2;
|
|
916
|
+
readonly value?: Range_2;
|
|
918
917
|
}
|
|
919
918
|
|
|
920
919
|
/**
|
|
@@ -926,9 +925,9 @@ export declare interface RangeDisplayProps {
|
|
|
926
925
|
export declare function RangeInput(props: RangeInputProps): JSX.Element;
|
|
927
926
|
|
|
928
927
|
export declare interface RangeInputProps {
|
|
929
|
-
name: string;
|
|
930
|
-
defaultValue?: Range_2;
|
|
931
|
-
onChange?: (value: Range_2) => void;
|
|
928
|
+
readonly name: string;
|
|
929
|
+
readonly defaultValue?: Range_2;
|
|
930
|
+
readonly onChange?: (value: Range_2) => void;
|
|
932
931
|
}
|
|
933
932
|
|
|
934
933
|
export declare const reactContext: Context<MedplumContext | undefined>;
|
|
@@ -936,28 +935,28 @@ export declare const reactContext: Context<MedplumContext | undefined>;
|
|
|
936
935
|
export declare function ReferenceDisplay(props: ReferenceDisplayProps): JSX.Element | null;
|
|
937
936
|
|
|
938
937
|
export declare interface ReferenceDisplayProps {
|
|
939
|
-
value?: Reference;
|
|
940
|
-
link?: boolean;
|
|
938
|
+
readonly value?: Reference;
|
|
939
|
+
readonly link?: boolean;
|
|
941
940
|
}
|
|
942
941
|
|
|
943
942
|
export declare function ReferenceInput(props: ReferenceInputProps): JSX.Element;
|
|
944
943
|
|
|
945
944
|
export declare interface ReferenceInputProps {
|
|
946
|
-
name: string;
|
|
947
|
-
placeholder?: string;
|
|
948
|
-
defaultValue?: Reference;
|
|
949
|
-
targetTypes?: string[];
|
|
950
|
-
searchCriteria?: Record<string, string>;
|
|
951
|
-
autoFocus?: boolean;
|
|
952
|
-
required?: boolean;
|
|
953
|
-
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;
|
|
954
953
|
}
|
|
955
954
|
|
|
956
955
|
export declare function ReferenceRangeEditor(props: ReferenceRangeEditorProps): JSX.Element;
|
|
957
956
|
|
|
958
957
|
export declare interface ReferenceRangeEditorProps {
|
|
959
|
-
definition: ObservationDefinition;
|
|
960
|
-
onSubmit: (result: ObservationDefinition) => void;
|
|
958
|
+
readonly definition: ObservationDefinition;
|
|
959
|
+
readonly onSubmit: (result: ObservationDefinition) => void;
|
|
961
960
|
}
|
|
962
961
|
|
|
963
962
|
export declare function ReferenceRangeGroupEditor(props: ReferenceRangeGroupEditorProps): JSX.Element;
|
|
@@ -967,12 +966,12 @@ export declare function ReferenceRangeGroupEditor(props: ReferenceRangeGroupEdit
|
|
|
967
966
|
* that have the same filter values
|
|
968
967
|
*/
|
|
969
968
|
export declare interface ReferenceRangeGroupEditorProps {
|
|
970
|
-
intervalGroup: IntervalGroup;
|
|
971
|
-
unit: string | undefined;
|
|
972
|
-
onChange: (groupId: string, changed: ObservationDefinitionQualifiedInterval) => void;
|
|
973
|
-
onAdd: (groupId: string, added: ObservationDefinitionQualifiedInterval) => void;
|
|
974
|
-
onRemove: (groupId: string, removed: ObservationDefinitionQualifiedInterval) => void;
|
|
975
|
-
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;
|
|
976
975
|
}
|
|
977
976
|
|
|
978
977
|
export declare function RegisterForm(props: RegisterFormProps): JSX.Element;
|
|
@@ -998,82 +997,81 @@ export declare function renderValue(resource: Resource, field: SearchControlFiel
|
|
|
998
997
|
export declare function RequestGroupDisplay(props: RequestGroupDisplayProps): JSX.Element | null;
|
|
999
998
|
|
|
1000
999
|
export declare interface RequestGroupDisplayProps {
|
|
1001
|
-
value?: RequestGroup | Reference<RequestGroup>;
|
|
1002
|
-
onStart: (task: Task, input: Reference) => void;
|
|
1003
|
-
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;
|
|
1004
1003
|
}
|
|
1005
1004
|
|
|
1006
1005
|
export declare function ResourceArrayDisplay(props: ResourceArrayDisplayProps): JSX.Element;
|
|
1007
1006
|
|
|
1008
1007
|
export declare interface ResourceArrayDisplayProps {
|
|
1009
|
-
property: InternalSchemaElement;
|
|
1010
|
-
values: any[];
|
|
1011
|
-
arrayElement?: boolean;
|
|
1012
|
-
ignoreMissingValues?: boolean;
|
|
1013
|
-
link?: boolean;
|
|
1008
|
+
readonly property: InternalSchemaElement;
|
|
1009
|
+
readonly values: any[];
|
|
1010
|
+
readonly arrayElement?: boolean;
|
|
1011
|
+
readonly ignoreMissingValues?: boolean;
|
|
1012
|
+
readonly link?: boolean;
|
|
1014
1013
|
}
|
|
1015
1014
|
|
|
1016
|
-
export declare function ResourceArrayInput(props:
|
|
1015
|
+
export declare function ResourceArrayInput(props: ResourceArrayInputProps): JSX.Element;
|
|
1017
1016
|
|
|
1018
1017
|
export declare interface ResourceArrayInputProps {
|
|
1019
|
-
property: InternalSchemaElement;
|
|
1020
|
-
name: string;
|
|
1021
|
-
defaultValue?: any[];
|
|
1022
|
-
indent?: boolean;
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
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;
|
|
1027
1025
|
}
|
|
1028
1026
|
|
|
1029
1027
|
export declare function ResourceAvatar(props: ResourceAvatarProps): JSX.Element;
|
|
1030
1028
|
|
|
1031
1029
|
export declare interface ResourceAvatarProps extends AvatarProps {
|
|
1032
|
-
value?: Reference | Resource;
|
|
1033
|
-
link?: boolean;
|
|
1030
|
+
readonly value?: Reference | Resource;
|
|
1031
|
+
readonly link?: boolean;
|
|
1034
1032
|
}
|
|
1035
1033
|
|
|
1036
1034
|
export declare function ResourceBadge(props: ResourceBadgeProps): JSX.Element;
|
|
1037
1035
|
|
|
1038
1036
|
export declare interface ResourceBadgeProps {
|
|
1039
|
-
value?: Reference | Resource;
|
|
1040
|
-
link?: boolean;
|
|
1037
|
+
readonly value?: Reference | Resource;
|
|
1038
|
+
readonly link?: boolean;
|
|
1041
1039
|
}
|
|
1042
1040
|
|
|
1043
1041
|
export declare function ResourceBlame(props: ResourceBlameProps): JSX.Element | null;
|
|
1044
1042
|
|
|
1045
1043
|
export declare interface ResourceBlameProps {
|
|
1046
|
-
history?: Bundle;
|
|
1047
|
-
resourceType?: ResourceType;
|
|
1048
|
-
id?: string;
|
|
1044
|
+
readonly history?: Bundle;
|
|
1045
|
+
readonly resourceType?: ResourceType;
|
|
1046
|
+
readonly id?: string;
|
|
1049
1047
|
}
|
|
1050
1048
|
|
|
1051
1049
|
export declare function ResourceDiff(props: ResourceDiffProps): JSX.Element;
|
|
1052
1050
|
|
|
1053
1051
|
export declare interface ResourceDiffProps {
|
|
1054
|
-
original: Resource;
|
|
1055
|
-
revised: Resource;
|
|
1056
|
-
ignoreMeta?: boolean;
|
|
1052
|
+
readonly original: Resource;
|
|
1053
|
+
readonly revised: Resource;
|
|
1054
|
+
readonly ignoreMeta?: boolean;
|
|
1057
1055
|
}
|
|
1058
1056
|
|
|
1059
1057
|
export declare function ResourceForm(props: ResourceFormProps): JSX.Element;
|
|
1060
1058
|
|
|
1061
1059
|
export declare interface ResourceFormProps {
|
|
1062
|
-
defaultValue: Partial<Resource> | Reference;
|
|
1063
|
-
outcome?: OperationOutcome;
|
|
1064
|
-
onSubmit: (resource: Resource) => void;
|
|
1065
|
-
onDelete?: (resource: Resource) => void;
|
|
1066
|
-
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;
|
|
1067
1065
|
/** (optional) URL of the resource profile used to display the form. Takes priority over schemaName. */
|
|
1068
|
-
profileUrl?: string;
|
|
1066
|
+
readonly profileUrl?: string;
|
|
1069
1067
|
}
|
|
1070
1068
|
|
|
1071
1069
|
export declare function ResourceHistoryTable(props: ResourceHistoryTableProps): JSX.Element;
|
|
1072
1070
|
|
|
1073
1071
|
export declare interface ResourceHistoryTableProps {
|
|
1074
|
-
history?: Bundle;
|
|
1075
|
-
resourceType?: string;
|
|
1076
|
-
id?: string;
|
|
1072
|
+
readonly history?: Bundle;
|
|
1073
|
+
readonly resourceType?: string;
|
|
1074
|
+
readonly id?: string;
|
|
1077
1075
|
}
|
|
1078
1076
|
|
|
1079
1077
|
export declare function ResourceInput<T extends Resource = Resource>(props: ResourceInputProps<T>): JSX.Element | null;
|
|
@@ -1092,8 +1090,8 @@ export declare interface ResourceInputProps<T extends Resource = Resource> {
|
|
|
1092
1090
|
export declare function ResourceName(props: ResourceNameProps): JSX.Element | null;
|
|
1093
1091
|
|
|
1094
1092
|
export declare interface ResourceNameProps extends TextProps {
|
|
1095
|
-
value?: Reference | Resource;
|
|
1096
|
-
link?: boolean;
|
|
1093
|
+
readonly value?: Reference | Resource;
|
|
1094
|
+
readonly link?: boolean;
|
|
1097
1095
|
}
|
|
1098
1096
|
|
|
1099
1097
|
/**
|
|
@@ -1104,25 +1102,25 @@ export declare interface ResourceNameProps extends TextProps {
|
|
|
1104
1102
|
export declare function ResourcePropertyDisplay(props: ResourcePropertyDisplayProps): JSX.Element;
|
|
1105
1103
|
|
|
1106
1104
|
export declare interface ResourcePropertyDisplayProps {
|
|
1107
|
-
property?: InternalSchemaElement;
|
|
1108
|
-
propertyType: string;
|
|
1109
|
-
value: any;
|
|
1110
|
-
arrayElement?: boolean;
|
|
1111
|
-
maxWidth?: number;
|
|
1112
|
-
ignoreMissingValues?: boolean;
|
|
1113
|
-
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;
|
|
1114
1112
|
}
|
|
1115
1113
|
|
|
1116
1114
|
export declare function ResourcePropertyInput(props: ResourcePropertyInputProps): JSX.Element;
|
|
1117
1115
|
|
|
1118
1116
|
export declare interface ResourcePropertyInputProps {
|
|
1119
|
-
property: InternalSchemaElement;
|
|
1120
|
-
name: string;
|
|
1121
|
-
defaultPropertyType?: string | undefined;
|
|
1122
|
-
defaultValue: any;
|
|
1123
|
-
arrayElement?: boolean | undefined;
|
|
1124
|
-
onChange: ((value: any, propName?: string) => void) | undefined;
|
|
1125
|
-
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;
|
|
1126
1124
|
}
|
|
1127
1125
|
|
|
1128
1126
|
export declare function ResourceTable(props: ResourceTableProps): JSX.Element | null;
|
|
@@ -1131,34 +1129,34 @@ export declare interface ResourceTableProps {
|
|
|
1131
1129
|
/**
|
|
1132
1130
|
* The input value either as a resource or a reference.
|
|
1133
1131
|
*/
|
|
1134
|
-
value: Resource | Reference;
|
|
1132
|
+
readonly value: Resource | Reference;
|
|
1135
1133
|
/**
|
|
1136
1134
|
* Optional flag to ignore missing values.
|
|
1137
1135
|
* By default, missing values are displayed as empty strings.
|
|
1138
1136
|
*/
|
|
1139
|
-
ignoreMissingValues?: boolean;
|
|
1137
|
+
readonly ignoreMissingValues?: boolean;
|
|
1140
1138
|
/**
|
|
1141
1139
|
* Optional flag to force use the input value.
|
|
1142
1140
|
* This is useful when you want to display a specific version of the resource,
|
|
1143
1141
|
* and not use the latest version.
|
|
1144
1142
|
*/
|
|
1145
|
-
forceUseInput?: boolean;
|
|
1143
|
+
readonly forceUseInput?: boolean;
|
|
1146
1144
|
}
|
|
1147
1145
|
|
|
1148
1146
|
export declare function ResourceTimeline<T extends Resource>(props: ResourceTimelineProps<T>): JSX.Element;
|
|
1149
1147
|
|
|
1150
1148
|
export declare interface ResourceTimelineProps<T extends Resource> {
|
|
1151
|
-
value: T | Reference<T>;
|
|
1152
|
-
loadTimelineResources: (medplum: MedplumClient, resourceType: ResourceType, id: string) => Promise<PromiseSettledResult<Bundle>[]>;
|
|
1153
|
-
createCommunication?: (resource: T, sender: ProfileResource, text: string) => Communication;
|
|
1154
|
-
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;
|
|
1155
1153
|
}
|
|
1156
1154
|
|
|
1157
1155
|
export declare function Scheduler(props: SchedulerProps): JSX.Element | null;
|
|
1158
1156
|
|
|
1159
1157
|
export declare interface SchedulerProps {
|
|
1160
|
-
schedule: Schedule | Reference<Schedule>;
|
|
1161
|
-
questionnaire: Questionnaire | Reference<Questionnaire>;
|
|
1158
|
+
readonly schedule: Schedule | Reference<Schedule>;
|
|
1159
|
+
readonly questionnaire: Questionnaire | Reference<Questionnaire>;
|
|
1162
1160
|
}
|
|
1163
1161
|
|
|
1164
1162
|
export declare class SearchChangeEvent extends Event {
|
|
@@ -1215,40 +1213,38 @@ export declare interface SearchControlField {
|
|
|
1215
1213
|
}
|
|
1216
1214
|
|
|
1217
1215
|
export declare interface SearchControlProps {
|
|
1218
|
-
search: SearchRequest;
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
onPatch?: (ids: string[]) => void;
|
|
1233
|
-
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;
|
|
1234
1230
|
}
|
|
1235
1231
|
|
|
1236
1232
|
export declare function SearchFieldEditor(props: SearchFieldEditorProps): JSX.Element | null;
|
|
1237
1233
|
|
|
1238
1234
|
export declare interface SearchFieldEditorProps {
|
|
1239
|
-
visible: boolean;
|
|
1240
|
-
search: SearchRequest;
|
|
1241
|
-
onOk: (search: SearchRequest) => void;
|
|
1242
|
-
onCancel: () => void;
|
|
1235
|
+
readonly visible: boolean;
|
|
1236
|
+
readonly search: SearchRequest;
|
|
1237
|
+
readonly onOk: (search: SearchRequest) => void;
|
|
1238
|
+
readonly onCancel: () => void;
|
|
1243
1239
|
}
|
|
1244
1240
|
|
|
1245
1241
|
export declare function SearchFilterEditor(props: SearchFilterEditorProps): JSX.Element | null;
|
|
1246
1242
|
|
|
1247
1243
|
export declare interface SearchFilterEditorProps {
|
|
1248
|
-
visible: boolean;
|
|
1249
|
-
search: SearchRequest;
|
|
1250
|
-
onOk: (search: SearchRequest) => void;
|
|
1251
|
-
onCancel: () => void;
|
|
1244
|
+
readonly visible: boolean;
|
|
1245
|
+
readonly search: SearchRequest;
|
|
1246
|
+
readonly onOk: (search: SearchRequest) => void;
|
|
1247
|
+
readonly onCancel: () => void;
|
|
1252
1248
|
}
|
|
1253
1249
|
|
|
1254
1250
|
export declare class SearchLoadEvent extends Event {
|
|
@@ -1259,7 +1255,7 @@ export declare class SearchLoadEvent extends Event {
|
|
|
1259
1255
|
export declare function ServiceRequestTimeline(props: ServiceRequestTimelineProps): JSX.Element;
|
|
1260
1256
|
|
|
1261
1257
|
export declare interface ServiceRequestTimelineProps {
|
|
1262
|
-
serviceRequest: ServiceRequest | Reference<ServiceRequest>;
|
|
1258
|
+
readonly serviceRequest: ServiceRequest | Reference<ServiceRequest>;
|
|
1263
1259
|
}
|
|
1264
1260
|
|
|
1265
1261
|
/**
|
|
@@ -1336,7 +1332,7 @@ export declare interface SmartAppLaunchLinkProps extends AnchorProps {
|
|
|
1336
1332
|
}
|
|
1337
1333
|
|
|
1338
1334
|
export declare interface SmartSearchResponse {
|
|
1339
|
-
data: {
|
|
1335
|
+
readonly data: {
|
|
1340
1336
|
ResourceList: Resource[];
|
|
1341
1337
|
};
|
|
1342
1338
|
}
|
|
@@ -1364,23 +1360,23 @@ export declare function Timeline(props: TimelineProps): JSX.Element;
|
|
|
1364
1360
|
export declare function TimelineItem(props: TimelineItemProps): JSX.Element;
|
|
1365
1361
|
|
|
1366
1362
|
export declare interface TimelineItemProps extends PanelProps {
|
|
1367
|
-
resource: Resource;
|
|
1368
|
-
profile?: Reference;
|
|
1369
|
-
dateTime?: string;
|
|
1370
|
-
padding?: boolean;
|
|
1371
|
-
popupMenuItems?: ReactNode;
|
|
1363
|
+
readonly resource: Resource;
|
|
1364
|
+
readonly profile?: Reference;
|
|
1365
|
+
readonly dateTime?: string;
|
|
1366
|
+
readonly padding?: boolean;
|
|
1367
|
+
readonly popupMenuItems?: ReactNode;
|
|
1372
1368
|
}
|
|
1373
1369
|
|
|
1374
1370
|
export declare interface TimelineProps {
|
|
1375
|
-
children?: ReactNode;
|
|
1371
|
+
readonly children?: ReactNode;
|
|
1376
1372
|
}
|
|
1377
1373
|
|
|
1378
1374
|
export declare function TimingInput(props: TimingInputProps): JSX.Element;
|
|
1379
1375
|
|
|
1380
1376
|
export declare interface TimingInputProps {
|
|
1381
|
-
name: string;
|
|
1382
|
-
defaultValue?: Timing;
|
|
1383
|
-
onChange?: (newValue: Timing) => void;
|
|
1377
|
+
readonly name: string;
|
|
1378
|
+
readonly defaultValue?: Timing;
|
|
1379
|
+
readonly onChange?: (newValue: Timing) => void;
|
|
1384
1380
|
}
|
|
1385
1381
|
|
|
1386
1382
|
/**
|
|
@@ -1393,6 +1389,8 @@ export declare interface TimingInputProps {
|
|
|
1393
1389
|
*/
|
|
1394
1390
|
export declare function toggleSort(definition: SearchRequest, key: string): SearchRequest;
|
|
1395
1391
|
|
|
1392
|
+
export declare const useCachedBinaryUrl: (binaryUrl: string | undefined) => string | undefined;
|
|
1393
|
+
|
|
1396
1394
|
/**
|
|
1397
1395
|
* Returns the MedplumClient instance.
|
|
1398
1396
|
* This is a shortcut for useMedplumContext().medplum.
|
|
@@ -1470,10 +1468,10 @@ export declare function useSearchResources<K extends ResourceType>(resourceType:
|
|
|
1470
1468
|
export declare function ValueSetAutocomplete(props: ValueSetAutocompleteProps): JSX.Element;
|
|
1471
1469
|
|
|
1472
1470
|
export declare interface ValueSetAutocompleteProps extends Omit<AsyncAutocompleteProps<ValueSetExpansionContains>, 'loadOptions' | 'toKey' | 'toOption'> {
|
|
1473
|
-
binding: string | undefined;
|
|
1474
|
-
creatable?: boolean;
|
|
1475
|
-
clearable?: boolean;
|
|
1476
|
-
expandParams?: Partial<ValueSetExpandParams>;
|
|
1471
|
+
readonly binding: string | undefined;
|
|
1472
|
+
readonly creatable?: boolean;
|
|
1473
|
+
readonly clearable?: boolean;
|
|
1474
|
+
readonly expandParams?: Partial<ValueSetExpandParams>;
|
|
1477
1475
|
}
|
|
1478
1476
|
|
|
1479
1477
|
export { }
|