@medplum/react 3.0.1 → 3.0.3
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 +6 -6
- 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 +300 -302
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.css.map +2 -2
- package/dist/esm/index.d.ts +300 -302
- package/dist/esm/index.mjs +6 -6
- package/dist/esm/index.mjs.map +4 -4
- package/package.json +20 -19
package/dist/cjs/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,43 @@ 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;
|
|
288
|
+
/** The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension. */
|
|
289
|
+
readonly path: string;
|
|
289
290
|
/** (optional) The contents of the resource represented by the backbone element */
|
|
290
|
-
defaultValue?: any;
|
|
291
|
+
readonly defaultValue?: any;
|
|
291
292
|
/** (optional) OperationOutcome from the last attempted system action*/
|
|
292
|
-
outcome?: OperationOutcome;
|
|
293
|
+
readonly outcome?: OperationOutcome;
|
|
293
294
|
/** (optional) callback function that is called when the value of the backbone element changes */
|
|
294
|
-
onChange?: (value: any) => void;
|
|
295
|
+
readonly onChange?: (value: any) => void;
|
|
295
296
|
/** (optional) Profile URL of the structure definition represented by the backbone element */
|
|
296
|
-
profileUrl?: string;
|
|
297
|
+
readonly profileUrl?: string;
|
|
297
298
|
}
|
|
298
299
|
|
|
299
300
|
/**
|
|
@@ -310,21 +311,21 @@ export declare function buildInitialResponseItem(item: QuestionnaireItem): Quest
|
|
|
310
311
|
export declare function CalendarInput(props: CalendarInputProps): JSX.Element;
|
|
311
312
|
|
|
312
313
|
export declare interface CalendarInputProps {
|
|
313
|
-
slots: Slot[];
|
|
314
|
-
onChangeMonth: (date: Date) => void;
|
|
315
|
-
onClick: (date: Date) => void;
|
|
314
|
+
readonly slots: Slot[];
|
|
315
|
+
readonly onChangeMonth: (date: Date) => void;
|
|
316
|
+
readonly onClick: (date: Date) => void;
|
|
316
317
|
}
|
|
317
318
|
|
|
318
319
|
export declare function CheckboxFormSection(props: CheckboxFormSectionProps): JSX.Element;
|
|
319
320
|
|
|
320
321
|
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;
|
|
322
|
+
readonly htmlFor?: string;
|
|
323
|
+
readonly title?: string;
|
|
324
|
+
readonly description?: string;
|
|
325
|
+
readonly withAsterisk?: boolean;
|
|
326
|
+
readonly children?: ReactNode;
|
|
327
|
+
readonly testId?: string;
|
|
328
|
+
readonly fhirPath?: string;
|
|
328
329
|
}
|
|
329
330
|
|
|
330
331
|
/**
|
|
@@ -345,38 +346,38 @@ export declare function clearFiltersOnField(definition: SearchRequest, code: str
|
|
|
345
346
|
export declare function CodeableConceptDisplay(props: CodeableConceptDisplayProps): JSX.Element;
|
|
346
347
|
|
|
347
348
|
export declare interface CodeableConceptDisplayProps {
|
|
348
|
-
value?: CodeableConcept;
|
|
349
|
+
readonly value?: CodeableConcept;
|
|
349
350
|
}
|
|
350
351
|
|
|
351
352
|
export declare function CodeableConceptInput(props: CodeableConceptInputProps): JSX.Element;
|
|
352
353
|
|
|
353
|
-
export declare interface CodeableConceptInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
354
|
-
|
|
355
|
-
onChange?: (value: CodeableConcept | undefined) => void;
|
|
354
|
+
export declare interface CodeableConceptInputProps extends Omit<ValueSetAutocompleteProps, 'name' | 'defaultValue' | 'onChange'>, ComplexTypeInputProps<CodeableConcept> {
|
|
355
|
+
readonly onChange: ((value: CodeableConcept | undefined) => void) | undefined;
|
|
356
356
|
}
|
|
357
357
|
|
|
358
358
|
export declare function CodeInput(props: CodeInputProps): JSX.Element;
|
|
359
359
|
|
|
360
360
|
export declare interface CodeInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
361
|
-
defaultValue?: string;
|
|
362
|
-
onChange?: (value: string | undefined) => void;
|
|
361
|
+
readonly defaultValue?: string;
|
|
362
|
+
readonly onChange?: (value: string | undefined) => void;
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
export declare function CodingDisplay(props: CodingDisplayProps): JSX.Element;
|
|
366
366
|
|
|
367
367
|
export declare interface CodingDisplayProps {
|
|
368
|
-
value?: Coding;
|
|
368
|
+
readonly value?: Coding;
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
export declare function CodingInput(props: CodingInputProps): JSX.Element;
|
|
372
372
|
|
|
373
373
|
export declare interface CodingInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
374
|
-
defaultValue?: Coding;
|
|
375
|
-
onChange?: (value: Coding | undefined) => void;
|
|
374
|
+
readonly defaultValue?: Coding;
|
|
375
|
+
readonly onChange?: (value: Coding | undefined) => void;
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
export declare interface ComplexTypeInputProps<ValueType> {
|
|
379
379
|
name: string;
|
|
380
|
+
/** The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension. */
|
|
380
381
|
path: string;
|
|
381
382
|
defaultValue?: ValueType;
|
|
382
383
|
onChange: ((value: ValueType, propName?: string) => void) | undefined;
|
|
@@ -386,7 +387,7 @@ export declare interface ComplexTypeInputProps<ValueType> {
|
|
|
386
387
|
export declare function ContactDetailDisplay(props: ContactDetailDisplayProps): JSX.Element | null;
|
|
387
388
|
|
|
388
389
|
export declare interface ContactDetailDisplayProps {
|
|
389
|
-
value?: ContactDetail;
|
|
390
|
+
readonly value?: ContactDetail;
|
|
390
391
|
}
|
|
391
392
|
|
|
392
393
|
export declare function ContactDetailInput(props: ContactDetailInputProps): JSX.Element;
|
|
@@ -396,13 +397,13 @@ export declare type ContactDetailInputProps = ComplexTypeInputProps<ContactDetai
|
|
|
396
397
|
export declare function ContactPointDisplay(props: ContactPointDisplayProps): JSX.Element | null;
|
|
397
398
|
|
|
398
399
|
export declare interface ContactPointDisplayProps {
|
|
399
|
-
value?: ContactPoint;
|
|
400
|
+
readonly value?: ContactPoint;
|
|
400
401
|
}
|
|
401
402
|
|
|
402
403
|
export declare function ContactPointInput(props: ContactPointInputProps): JSX.Element;
|
|
403
404
|
|
|
404
405
|
export declare type ContactPointInputProps = ComplexTypeInputProps<ContactPoint> & {
|
|
405
|
-
onChange: ((value: ContactPoint | undefined) => void) | undefined;
|
|
406
|
+
readonly onChange: ((value: ContactPoint | undefined) => void) | undefined;
|
|
406
407
|
};
|
|
407
408
|
|
|
408
409
|
export declare function Container(props: ContainerProps): JSX.Element;
|
|
@@ -439,19 +440,19 @@ export declare function createScriptTag(src: string, onload?: () => void): void;
|
|
|
439
440
|
export declare function DateTimeInput(props: DateTimeInputProps): JSX.Element;
|
|
440
441
|
|
|
441
442
|
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;
|
|
443
|
+
readonly name?: string;
|
|
444
|
+
readonly placeholder?: string;
|
|
445
|
+
readonly defaultValue?: string;
|
|
446
|
+
readonly autoFocus?: boolean;
|
|
447
|
+
readonly required?: boolean;
|
|
448
|
+
readonly outcome?: OperationOutcome;
|
|
449
|
+
readonly onChange?: (value: string) => void;
|
|
449
450
|
}
|
|
450
451
|
|
|
451
452
|
export declare function DefaultResourceTimeline(props: DefaultResourceTimelineProps): JSX.Element;
|
|
452
453
|
|
|
453
454
|
export declare interface DefaultResourceTimelineProps {
|
|
454
|
-
resource: Resource | Reference;
|
|
455
|
+
readonly resource: Resource | Reference;
|
|
455
456
|
}
|
|
456
457
|
|
|
457
458
|
/**
|
|
@@ -467,13 +468,13 @@ export declare function DescriptionList(props: DescriptionListProps): JSX.Elemen
|
|
|
467
468
|
export declare function DescriptionListEntry(props: DescriptionListEntryProps): JSX.Element;
|
|
468
469
|
|
|
469
470
|
export declare interface DescriptionListEntryProps {
|
|
470
|
-
term: string;
|
|
471
|
-
children: ReactNode;
|
|
471
|
+
readonly term: string;
|
|
472
|
+
readonly children: ReactNode;
|
|
472
473
|
}
|
|
473
474
|
|
|
474
475
|
export declare interface DescriptionListProps {
|
|
475
|
-
children: ReactNode;
|
|
476
|
-
compact?: boolean;
|
|
476
|
+
readonly children: ReactNode;
|
|
477
|
+
readonly compact?: boolean;
|
|
477
478
|
}
|
|
478
479
|
|
|
479
480
|
export declare function DiagnosticReportDisplay(props: DiagnosticReportDisplayProps): JSX.Element | null;
|
|
@@ -483,9 +484,9 @@ export declare namespace DiagnosticReportDisplay {
|
|
|
483
484
|
}
|
|
484
485
|
|
|
485
486
|
export declare interface DiagnosticReportDisplayProps {
|
|
486
|
-
value?: DiagnosticReport | Reference<DiagnosticReport>;
|
|
487
|
-
hideObservationNotes?: boolean;
|
|
488
|
-
hideSpecimenInfo?: boolean;
|
|
487
|
+
readonly value?: DiagnosticReport | Reference<DiagnosticReport>;
|
|
488
|
+
readonly hideObservationNotes?: boolean;
|
|
489
|
+
readonly hideSpecimenInfo?: boolean;
|
|
489
490
|
}
|
|
490
491
|
|
|
491
492
|
declare function Document_2(props: PanelProps): JSX.Element;
|
|
@@ -494,27 +495,22 @@ export { Document_2 as Document }
|
|
|
494
495
|
export declare function ElementDefinitionInputSelector(props: ElementDefinitionSelectorProps): JSX.Element;
|
|
495
496
|
|
|
496
497
|
export declare interface ElementDefinitionSelectorProps extends ResourcePropertyInputProps {
|
|
497
|
-
elementDefinitionTypes: ElementDefinitionType[];
|
|
498
|
+
readonly elementDefinitionTypes: ElementDefinitionType[];
|
|
498
499
|
}
|
|
499
500
|
|
|
500
501
|
export declare function ElementDefinitionTypeInput(props: ElementDefinitionTypeInputProps): JSX.Element;
|
|
501
502
|
|
|
502
|
-
export declare
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
elementDefinitionType: ElementDefinitionType;
|
|
509
|
-
min: number;
|
|
510
|
-
max: number;
|
|
511
|
-
binding: ElementDefinitionBinding | undefined;
|
|
512
|
-
};
|
|
503
|
+
export declare interface ElementDefinitionTypeInputProps extends Pick<ResourcePropertyInputProps, 'name' | 'path' | 'defaultValue' | 'onChange' | 'outcome'> {
|
|
504
|
+
readonly elementDefinitionType: ElementDefinitionType;
|
|
505
|
+
readonly min: number;
|
|
506
|
+
readonly max: number;
|
|
507
|
+
readonly binding: ElementDefinitionBinding | undefined;
|
|
508
|
+
}
|
|
513
509
|
|
|
514
510
|
export declare function EncounterTimeline(props: EncounterTimelineProps): JSX.Element;
|
|
515
511
|
|
|
516
512
|
export declare interface EncounterTimelineProps {
|
|
517
|
-
encounter: Encounter | Reference<Encounter>;
|
|
513
|
+
readonly encounter: Encounter | Reference<Encounter>;
|
|
518
514
|
}
|
|
519
515
|
|
|
520
516
|
/**
|
|
@@ -522,22 +518,22 @@ export declare interface EncounterTimelineProps {
|
|
|
522
518
|
* See: https://reactjs.org/docs/error-boundaries.html
|
|
523
519
|
*/
|
|
524
520
|
export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
525
|
-
state: ErrorBoundaryState;
|
|
521
|
+
readonly state: ErrorBoundaryState;
|
|
526
522
|
constructor(props: ErrorBoundaryProps);
|
|
527
523
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
528
|
-
componentDidUpdate(_prevProps:
|
|
529
|
-
shouldComponentUpdate(nextProps:
|
|
524
|
+
componentDidUpdate(_prevProps: ErrorBoundaryProps, _prevState: ErrorBoundaryState): void;
|
|
525
|
+
shouldComponentUpdate(nextProps: ErrorBoundaryProps, nextState: ErrorBoundaryState): boolean;
|
|
530
526
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
531
527
|
render(): ReactNode;
|
|
532
528
|
}
|
|
533
529
|
|
|
534
530
|
export declare interface ErrorBoundaryProps {
|
|
535
|
-
children: ReactNode;
|
|
531
|
+
readonly children: ReactNode;
|
|
536
532
|
}
|
|
537
533
|
|
|
538
534
|
export declare interface ErrorBoundaryState {
|
|
539
|
-
error?: Error;
|
|
540
|
-
lastLocation: string;
|
|
535
|
+
readonly error?: Error;
|
|
536
|
+
readonly lastLocation: string;
|
|
541
537
|
}
|
|
542
538
|
|
|
543
539
|
/**
|
|
@@ -554,13 +550,13 @@ export declare interface FhirPathTableField {
|
|
|
554
550
|
}
|
|
555
551
|
|
|
556
552
|
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;
|
|
553
|
+
readonly resourceType: string;
|
|
554
|
+
readonly query: string;
|
|
555
|
+
readonly fields: FhirPathTableField[];
|
|
556
|
+
readonly checkboxesEnabled?: boolean;
|
|
557
|
+
readonly onClick?: (e: SearchClickEvent) => void;
|
|
558
|
+
readonly onAuxClick?: (e: SearchClickEvent) => void;
|
|
559
|
+
readonly onBulk?: (ids: string[]) => void;
|
|
564
560
|
}
|
|
565
561
|
|
|
566
562
|
export declare function Form(props: FormProps): JSX.Element;
|
|
@@ -568,23 +564,23 @@ export declare function Form(props: FormProps): JSX.Element;
|
|
|
568
564
|
export declare function formatReferenceString(typedValue: TypedValue): string;
|
|
569
565
|
|
|
570
566
|
export declare interface FormProps {
|
|
571
|
-
onSubmit?: (formData: Record<string, string>) => void;
|
|
572
|
-
style?: CSSProperties;
|
|
573
|
-
children?: ReactNode;
|
|
574
|
-
testid?: string;
|
|
567
|
+
readonly onSubmit?: (formData: Record<string, string>) => void;
|
|
568
|
+
readonly style?: CSSProperties;
|
|
569
|
+
readonly children?: ReactNode;
|
|
570
|
+
readonly testid?: string;
|
|
575
571
|
}
|
|
576
572
|
|
|
577
573
|
export declare function FormSection(props: FormSectionProps): JSX.Element;
|
|
578
574
|
|
|
579
575
|
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;
|
|
576
|
+
readonly title?: string;
|
|
577
|
+
readonly htmlFor?: string;
|
|
578
|
+
readonly description?: string;
|
|
579
|
+
readonly withAsterisk?: boolean;
|
|
580
|
+
readonly outcome?: OperationOutcome;
|
|
581
|
+
readonly children?: ReactNode;
|
|
582
|
+
readonly testId?: string;
|
|
583
|
+
readonly fhirPath?: string;
|
|
588
584
|
}
|
|
589
585
|
|
|
590
586
|
export declare function getErrorsForInput(outcome: OperationOutcome | undefined, expression: string | undefined): string | undefined;
|
|
@@ -652,19 +648,19 @@ export declare function getSortField(definition: SearchRequest): string | undefi
|
|
|
652
648
|
export declare function Header(props: HeaderProps): JSX.Element;
|
|
653
649
|
|
|
654
650
|
export declare interface HeaderProps {
|
|
655
|
-
pathname?: string;
|
|
656
|
-
searchParams?: URLSearchParams;
|
|
657
|
-
headerSearchDisabled?: boolean;
|
|
658
|
-
logo: ReactNode;
|
|
659
|
-
version?: string;
|
|
660
|
-
navbarToggle: () => void;
|
|
651
|
+
readonly pathname?: string;
|
|
652
|
+
readonly searchParams?: URLSearchParams;
|
|
653
|
+
readonly headerSearchDisabled?: boolean;
|
|
654
|
+
readonly logo: ReactNode;
|
|
655
|
+
readonly version?: string;
|
|
656
|
+
readonly navbarToggle: () => void;
|
|
661
657
|
}
|
|
662
658
|
|
|
663
659
|
export declare function HumanNameDisplay(props: HumanNameDisplayProps): JSX.Element | null;
|
|
664
660
|
|
|
665
661
|
export declare interface HumanNameDisplayProps {
|
|
666
|
-
value?: HumanName;
|
|
667
|
-
options?: HumanNameFormatOptions;
|
|
662
|
+
readonly value?: HumanName;
|
|
663
|
+
readonly options?: HumanNameFormatOptions;
|
|
668
664
|
}
|
|
669
665
|
|
|
670
666
|
export declare function HumanNameInput(props: HumanNameInputProps): JSX.Element;
|
|
@@ -674,7 +670,7 @@ export declare type HumanNameInputProps = ComplexTypeInputProps<HumanName>;
|
|
|
674
670
|
export declare function IdentifierDisplay(props: IdentifierDisplayProps): JSX.Element;
|
|
675
671
|
|
|
676
672
|
export declare interface IdentifierDisplayProps {
|
|
677
|
-
value?: Identifier;
|
|
673
|
+
readonly value?: Identifier;
|
|
678
674
|
}
|
|
679
675
|
|
|
680
676
|
export declare function IdentifierInput(props: IdentifierInputProps): JSX.Element;
|
|
@@ -707,8 +703,8 @@ export declare function Loading(): JSX.Element;
|
|
|
707
703
|
export declare function Logo(props: LogoProps): JSX.Element;
|
|
708
704
|
|
|
709
705
|
export declare interface LogoProps {
|
|
710
|
-
size: number;
|
|
711
|
-
fill?: string;
|
|
706
|
+
readonly size: number;
|
|
707
|
+
readonly fill?: string;
|
|
712
708
|
}
|
|
713
709
|
|
|
714
710
|
export declare function MeasureReportDisplay(props: MeasureReportDisplayProps): JSX.Element | null;
|
|
@@ -727,11 +723,11 @@ export declare interface MedplumContext {
|
|
|
727
723
|
export declare function MedplumLink(props: MedplumLinkProps): JSX.Element;
|
|
728
724
|
|
|
729
725
|
export declare interface MedplumLinkProps extends TextProps {
|
|
730
|
-
to?: Resource | Reference | string;
|
|
731
|
-
suffix?: string;
|
|
732
|
-
label?: string;
|
|
733
|
-
onClick?: MouseEventHandler;
|
|
734
|
-
children: ReactNode;
|
|
726
|
+
readonly to?: Resource | Reference | string;
|
|
727
|
+
readonly suffix?: string;
|
|
728
|
+
readonly label?: string;
|
|
729
|
+
readonly onClick?: MouseEventHandler;
|
|
730
|
+
readonly children: ReactNode;
|
|
735
731
|
}
|
|
736
732
|
|
|
737
733
|
/**
|
|
@@ -746,9 +742,9 @@ export declare interface MedplumLinkProps extends TextProps {
|
|
|
746
742
|
export declare function MedplumProvider(props: MedplumProviderProps): JSX.Element;
|
|
747
743
|
|
|
748
744
|
export declare interface MedplumProviderProps {
|
|
749
|
-
medplum: MedplumClient;
|
|
750
|
-
navigate?: MepdlumNavigateFunction;
|
|
751
|
-
children: ReactNode;
|
|
745
|
+
readonly medplum: MedplumClient;
|
|
746
|
+
readonly navigate?: MepdlumNavigateFunction;
|
|
747
|
+
readonly children: ReactNode;
|
|
752
748
|
}
|
|
753
749
|
|
|
754
750
|
export declare const MemoizedFhirPathTable: MemoExoticComponent<typeof FhirPathTable>;
|
|
@@ -760,73 +756,73 @@ export declare type MepdlumNavigateFunction = (path: string) => void;
|
|
|
760
756
|
export declare function MoneyDisplay(props: MoneyDisplayProps): JSX.Element | null;
|
|
761
757
|
|
|
762
758
|
export declare interface MoneyDisplayProps {
|
|
763
|
-
value?: Money;
|
|
759
|
+
readonly value?: Money;
|
|
764
760
|
}
|
|
765
761
|
|
|
766
762
|
export declare function MoneyInput(props: MoneyInputProps): JSX.Element;
|
|
767
763
|
|
|
768
764
|
export declare interface MoneyInputProps {
|
|
769
|
-
name: string;
|
|
770
|
-
label?: string;
|
|
771
|
-
placeholder?: string;
|
|
772
|
-
defaultValue?: Money;
|
|
773
|
-
onChange?: (value: Money) => void;
|
|
765
|
+
readonly name: string;
|
|
766
|
+
readonly label?: string;
|
|
767
|
+
readonly placeholder?: string;
|
|
768
|
+
readonly defaultValue?: Money;
|
|
769
|
+
readonly onChange?: (value: Money) => void;
|
|
774
770
|
}
|
|
775
771
|
|
|
776
772
|
export declare function Navbar(props: NavbarProps): JSX.Element;
|
|
777
773
|
|
|
778
774
|
export declare interface NavbarLink {
|
|
779
|
-
icon?: JSX.Element;
|
|
780
|
-
label?: string;
|
|
781
|
-
href: string;
|
|
775
|
+
readonly icon?: JSX.Element;
|
|
776
|
+
readonly label?: string;
|
|
777
|
+
readonly href: string;
|
|
782
778
|
}
|
|
783
779
|
|
|
784
780
|
export declare interface NavbarMenu {
|
|
785
|
-
title?: string;
|
|
786
|
-
links?: NavbarLink[];
|
|
781
|
+
readonly title?: string;
|
|
782
|
+
readonly links?: NavbarLink[];
|
|
787
783
|
}
|
|
788
784
|
|
|
789
785
|
export declare interface NavbarProps {
|
|
790
|
-
pathname?: string;
|
|
791
|
-
searchParams?: URLSearchParams;
|
|
792
|
-
menus?: NavbarMenu[];
|
|
793
|
-
closeNavbar: () => void;
|
|
794
|
-
displayAddBookmark?: boolean;
|
|
795
|
-
resourceTypeSearchDisabled?: boolean;
|
|
786
|
+
readonly pathname?: string;
|
|
787
|
+
readonly searchParams?: URLSearchParams;
|
|
788
|
+
readonly menus?: NavbarMenu[];
|
|
789
|
+
readonly closeNavbar: () => void;
|
|
790
|
+
readonly displayAddBookmark?: boolean;
|
|
791
|
+
readonly resourceTypeSearchDisabled?: boolean;
|
|
796
792
|
}
|
|
797
793
|
|
|
798
794
|
export declare function NoteDisplay({ value }: NoteDisplayProps): JSX.Element | null;
|
|
799
795
|
|
|
800
796
|
export declare interface NoteDisplayProps {
|
|
801
|
-
value?: Annotation[];
|
|
797
|
+
readonly value?: Annotation[];
|
|
802
798
|
}
|
|
803
799
|
|
|
804
800
|
export declare function ObservationTable(props: ObservationTableProps): JSX.Element;
|
|
805
801
|
|
|
806
802
|
export declare interface ObservationTableProps {
|
|
807
|
-
value?: Observation[] | Reference<Observation>[];
|
|
808
|
-
ancestorIds?: string[];
|
|
809
|
-
hideObservationNotes?: boolean;
|
|
803
|
+
readonly value?: Observation[] | Reference<Observation>[];
|
|
804
|
+
readonly ancestorIds?: string[];
|
|
805
|
+
readonly hideObservationNotes?: boolean;
|
|
810
806
|
}
|
|
811
807
|
|
|
812
808
|
export declare function OperationOutcomeAlert(props: OperationOutcomeAlertProps): JSX.Element | null;
|
|
813
809
|
|
|
814
810
|
export declare interface OperationOutcomeAlertProps {
|
|
815
|
-
outcome?: OperationOutcome;
|
|
816
|
-
issues?: OperationOutcomeIssue[];
|
|
811
|
+
readonly outcome?: OperationOutcome;
|
|
812
|
+
readonly issues?: OperationOutcomeIssue[];
|
|
817
813
|
}
|
|
818
814
|
|
|
819
815
|
export declare function Panel(props: PanelProps): JSX.Element;
|
|
820
816
|
|
|
821
817
|
export declare interface PanelProps extends PaperProps {
|
|
822
|
-
width?: number;
|
|
823
|
-
fill?: boolean;
|
|
824
|
-
children?: React.ReactNode;
|
|
818
|
+
readonly width?: number;
|
|
819
|
+
readonly fill?: boolean;
|
|
820
|
+
readonly children?: React.ReactNode;
|
|
825
821
|
}
|
|
826
822
|
|
|
827
823
|
export declare interface PanelStylesParams {
|
|
828
|
-
width?: number;
|
|
829
|
-
fill?: boolean;
|
|
824
|
+
readonly width?: number;
|
|
825
|
+
readonly fill?: boolean;
|
|
830
826
|
}
|
|
831
827
|
|
|
832
828
|
/**
|
|
@@ -846,49 +842,49 @@ export declare interface PatientSummaryProps extends Omit<CardProps, 'children'>
|
|
|
846
842
|
export declare function PatientTimeline(props: PatientTimelineProps): JSX.Element;
|
|
847
843
|
|
|
848
844
|
export declare interface PatientTimelineProps {
|
|
849
|
-
patient: Patient | Reference<Patient>;
|
|
845
|
+
readonly patient: Patient | Reference<Patient>;
|
|
850
846
|
}
|
|
851
847
|
|
|
852
848
|
export declare function PlanDefinitionBuilder(props: PlanDefinitionBuilderProps): JSX.Element | null;
|
|
853
849
|
|
|
854
850
|
export declare interface PlanDefinitionBuilderProps {
|
|
855
|
-
value: Partial<PlanDefinition> | Reference<PlanDefinition>;
|
|
856
|
-
onSubmit: (result: PlanDefinition) => void;
|
|
851
|
+
readonly value: Partial<PlanDefinition> | Reference<PlanDefinition>;
|
|
852
|
+
readonly onSubmit: (result: PlanDefinition) => void;
|
|
857
853
|
}
|
|
858
854
|
|
|
859
855
|
export declare function QuantityDisplay(props: QuantityDisplayProps): JSX.Element | null;
|
|
860
856
|
|
|
861
857
|
export declare interface QuantityDisplayProps {
|
|
862
|
-
value?: Quantity;
|
|
858
|
+
readonly value?: Quantity;
|
|
863
859
|
}
|
|
864
860
|
|
|
865
861
|
export declare function QuantityInput(props: QuantityInputProps): JSX.Element;
|
|
866
862
|
|
|
867
863
|
export declare interface QuantityInputProps {
|
|
868
|
-
name: string;
|
|
869
|
-
defaultValue?: Quantity;
|
|
870
|
-
autoFocus?: boolean;
|
|
871
|
-
required?: boolean;
|
|
872
|
-
onChange?: (value: Quantity) => void;
|
|
873
|
-
disableWheel?: boolean;
|
|
864
|
+
readonly name: string;
|
|
865
|
+
readonly defaultValue?: Quantity;
|
|
866
|
+
readonly autoFocus?: boolean;
|
|
867
|
+
readonly required?: boolean;
|
|
868
|
+
readonly onChange?: (value: Quantity) => void;
|
|
869
|
+
readonly disableWheel?: boolean;
|
|
874
870
|
}
|
|
875
871
|
|
|
876
872
|
export declare function QuestionnaireBuilder(props: QuestionnaireBuilderProps): JSX.Element | null;
|
|
877
873
|
|
|
878
874
|
export declare interface QuestionnaireBuilderProps {
|
|
879
|
-
questionnaire: Partial<Questionnaire> | Reference<Questionnaire>;
|
|
880
|
-
onSubmit: (result: Questionnaire) => void;
|
|
881
|
-
autoSave?: boolean;
|
|
875
|
+
readonly questionnaire: Partial<Questionnaire> | Reference<Questionnaire>;
|
|
876
|
+
readonly onSubmit: (result: Questionnaire) => void;
|
|
877
|
+
readonly autoSave?: boolean;
|
|
882
878
|
}
|
|
883
879
|
|
|
884
880
|
export declare function QuestionnaireForm(props: QuestionnaireFormProps): JSX.Element | null;
|
|
885
881
|
|
|
886
882
|
export declare interface QuestionnaireFormProps {
|
|
887
|
-
questionnaire: Questionnaire | Reference<Questionnaire>;
|
|
888
|
-
subject?: Reference;
|
|
889
|
-
encounter?: Reference<Encounter>;
|
|
890
|
-
submitButtonText?: string;
|
|
891
|
-
onSubmit: (response: QuestionnaireResponse) => void;
|
|
883
|
+
readonly questionnaire: Questionnaire | Reference<Questionnaire>;
|
|
884
|
+
readonly subject?: Reference;
|
|
885
|
+
readonly encounter?: Reference<Encounter>;
|
|
886
|
+
readonly submitButtonText?: string;
|
|
887
|
+
readonly onSubmit: (response: QuestionnaireResponse) => void;
|
|
892
888
|
}
|
|
893
889
|
|
|
894
890
|
export declare enum QuestionnaireItemType {
|
|
@@ -914,7 +910,7 @@ export declare enum QuestionnaireItemType {
|
|
|
914
910
|
export declare function RangeDisplay(props: RangeDisplayProps): JSX.Element | null;
|
|
915
911
|
|
|
916
912
|
export declare interface RangeDisplayProps {
|
|
917
|
-
value?: Range_2;
|
|
913
|
+
readonly value?: Range_2;
|
|
918
914
|
}
|
|
919
915
|
|
|
920
916
|
/**
|
|
@@ -926,9 +922,9 @@ export declare interface RangeDisplayProps {
|
|
|
926
922
|
export declare function RangeInput(props: RangeInputProps): JSX.Element;
|
|
927
923
|
|
|
928
924
|
export declare interface RangeInputProps {
|
|
929
|
-
name: string;
|
|
930
|
-
defaultValue?: Range_2;
|
|
931
|
-
onChange?: (value: Range_2) => void;
|
|
925
|
+
readonly name: string;
|
|
926
|
+
readonly defaultValue?: Range_2;
|
|
927
|
+
readonly onChange?: (value: Range_2) => void;
|
|
932
928
|
}
|
|
933
929
|
|
|
934
930
|
export declare const reactContext: Context<MedplumContext | undefined>;
|
|
@@ -936,28 +932,28 @@ export declare const reactContext: Context<MedplumContext | undefined>;
|
|
|
936
932
|
export declare function ReferenceDisplay(props: ReferenceDisplayProps): JSX.Element | null;
|
|
937
933
|
|
|
938
934
|
export declare interface ReferenceDisplayProps {
|
|
939
|
-
value?: Reference;
|
|
940
|
-
link?: boolean;
|
|
935
|
+
readonly value?: Reference;
|
|
936
|
+
readonly link?: boolean;
|
|
941
937
|
}
|
|
942
938
|
|
|
943
939
|
export declare function ReferenceInput(props: ReferenceInputProps): JSX.Element;
|
|
944
940
|
|
|
945
941
|
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;
|
|
942
|
+
readonly name: string;
|
|
943
|
+
readonly placeholder?: string;
|
|
944
|
+
readonly defaultValue?: Reference;
|
|
945
|
+
readonly targetTypes?: string[];
|
|
946
|
+
readonly searchCriteria?: Record<string, string>;
|
|
947
|
+
readonly autoFocus?: boolean;
|
|
948
|
+
readonly required?: boolean;
|
|
949
|
+
readonly onChange?: (value: Reference | undefined) => void;
|
|
954
950
|
}
|
|
955
951
|
|
|
956
952
|
export declare function ReferenceRangeEditor(props: ReferenceRangeEditorProps): JSX.Element;
|
|
957
953
|
|
|
958
954
|
export declare interface ReferenceRangeEditorProps {
|
|
959
|
-
definition: ObservationDefinition;
|
|
960
|
-
onSubmit: (result: ObservationDefinition) => void;
|
|
955
|
+
readonly definition: ObservationDefinition;
|
|
956
|
+
readonly onSubmit: (result: ObservationDefinition) => void;
|
|
961
957
|
}
|
|
962
958
|
|
|
963
959
|
export declare function ReferenceRangeGroupEditor(props: ReferenceRangeGroupEditorProps): JSX.Element;
|
|
@@ -967,12 +963,12 @@ export declare function ReferenceRangeGroupEditor(props: ReferenceRangeGroupEdit
|
|
|
967
963
|
* that have the same filter values
|
|
968
964
|
*/
|
|
969
965
|
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;
|
|
966
|
+
readonly intervalGroup: IntervalGroup;
|
|
967
|
+
readonly unit: string | undefined;
|
|
968
|
+
readonly onChange: (groupId: string, changed: ObservationDefinitionQualifiedInterval) => void;
|
|
969
|
+
readonly onAdd: (groupId: string, added: ObservationDefinitionQualifiedInterval) => void;
|
|
970
|
+
readonly onRemove: (groupId: string, removed: ObservationDefinitionQualifiedInterval) => void;
|
|
971
|
+
readonly onRemoveGroup: (removedGroup: IntervalGroup) => void;
|
|
976
972
|
}
|
|
977
973
|
|
|
978
974
|
export declare function RegisterForm(props: RegisterFormProps): JSX.Element;
|
|
@@ -998,82 +994,82 @@ export declare function renderValue(resource: Resource, field: SearchControlFiel
|
|
|
998
994
|
export declare function RequestGroupDisplay(props: RequestGroupDisplayProps): JSX.Element | null;
|
|
999
995
|
|
|
1000
996
|
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;
|
|
997
|
+
readonly value?: RequestGroup | Reference<RequestGroup>;
|
|
998
|
+
readonly onStart: (task: Task, input: Reference) => void;
|
|
999
|
+
readonly onEdit: (task: Task, input: Reference, output: Reference) => void;
|
|
1004
1000
|
}
|
|
1005
1001
|
|
|
1006
1002
|
export declare function ResourceArrayDisplay(props: ResourceArrayDisplayProps): JSX.Element;
|
|
1007
1003
|
|
|
1008
1004
|
export declare interface ResourceArrayDisplayProps {
|
|
1009
|
-
property: InternalSchemaElement;
|
|
1010
|
-
values: any[];
|
|
1011
|
-
arrayElement?: boolean;
|
|
1012
|
-
ignoreMissingValues?: boolean;
|
|
1013
|
-
link?: boolean;
|
|
1005
|
+
readonly property: InternalSchemaElement;
|
|
1006
|
+
readonly values: any[];
|
|
1007
|
+
readonly arrayElement?: boolean;
|
|
1008
|
+
readonly ignoreMissingValues?: boolean;
|
|
1009
|
+
readonly link?: boolean;
|
|
1014
1010
|
}
|
|
1015
1011
|
|
|
1016
|
-
export declare function ResourceArrayInput(props:
|
|
1012
|
+
export declare function ResourceArrayInput(props: ResourceArrayInputProps): JSX.Element;
|
|
1017
1013
|
|
|
1018
1014
|
export declare interface ResourceArrayInputProps {
|
|
1019
|
-
property: InternalSchemaElement;
|
|
1020
|
-
name: string;
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
outcome: OperationOutcome | undefined;
|
|
1025
|
-
onChange?: (value: any[]) => void;
|
|
1026
|
-
hideNonSliceValues?: boolean;
|
|
1015
|
+
readonly property: InternalSchemaElement;
|
|
1016
|
+
readonly name: string;
|
|
1017
|
+
readonly path: string;
|
|
1018
|
+
readonly defaultValue?: any[];
|
|
1019
|
+
readonly indent?: boolean;
|
|
1020
|
+
readonly outcome: OperationOutcome | undefined;
|
|
1021
|
+
readonly onChange?: (value: any[]) => void;
|
|
1022
|
+
readonly hideNonSliceValues?: boolean;
|
|
1027
1023
|
}
|
|
1028
1024
|
|
|
1029
1025
|
export declare function ResourceAvatar(props: ResourceAvatarProps): JSX.Element;
|
|
1030
1026
|
|
|
1031
1027
|
export declare interface ResourceAvatarProps extends AvatarProps {
|
|
1032
|
-
value?: Reference | Resource;
|
|
1033
|
-
link?: boolean;
|
|
1028
|
+
readonly value?: Reference | Resource;
|
|
1029
|
+
readonly link?: boolean;
|
|
1034
1030
|
}
|
|
1035
1031
|
|
|
1036
1032
|
export declare function ResourceBadge(props: ResourceBadgeProps): JSX.Element;
|
|
1037
1033
|
|
|
1038
1034
|
export declare interface ResourceBadgeProps {
|
|
1039
|
-
value?: Reference | Resource;
|
|
1040
|
-
link?: boolean;
|
|
1035
|
+
readonly value?: Reference | Resource;
|
|
1036
|
+
readonly link?: boolean;
|
|
1041
1037
|
}
|
|
1042
1038
|
|
|
1043
1039
|
export declare function ResourceBlame(props: ResourceBlameProps): JSX.Element | null;
|
|
1044
1040
|
|
|
1045
1041
|
export declare interface ResourceBlameProps {
|
|
1046
|
-
history?: Bundle;
|
|
1047
|
-
resourceType?: ResourceType;
|
|
1048
|
-
id?: string;
|
|
1042
|
+
readonly history?: Bundle;
|
|
1043
|
+
readonly resourceType?: ResourceType;
|
|
1044
|
+
readonly id?: string;
|
|
1049
1045
|
}
|
|
1050
1046
|
|
|
1051
1047
|
export declare function ResourceDiff(props: ResourceDiffProps): JSX.Element;
|
|
1052
1048
|
|
|
1053
1049
|
export declare interface ResourceDiffProps {
|
|
1054
|
-
original: Resource;
|
|
1055
|
-
revised: Resource;
|
|
1056
|
-
ignoreMeta?: boolean;
|
|
1050
|
+
readonly original: Resource;
|
|
1051
|
+
readonly revised: Resource;
|
|
1052
|
+
readonly ignoreMeta?: boolean;
|
|
1057
1053
|
}
|
|
1058
1054
|
|
|
1059
1055
|
export declare function ResourceForm(props: ResourceFormProps): JSX.Element;
|
|
1060
1056
|
|
|
1061
1057
|
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;
|
|
1058
|
+
readonly defaultValue: Partial<Resource> | Reference;
|
|
1059
|
+
readonly outcome?: OperationOutcome;
|
|
1060
|
+
readonly onSubmit: (resource: Resource) => void;
|
|
1061
|
+
readonly onDelete?: (resource: Resource) => void;
|
|
1062
|
+
readonly schemaName?: string;
|
|
1067
1063
|
/** (optional) URL of the resource profile used to display the form. Takes priority over schemaName. */
|
|
1068
|
-
profileUrl?: string;
|
|
1064
|
+
readonly profileUrl?: string;
|
|
1069
1065
|
}
|
|
1070
1066
|
|
|
1071
1067
|
export declare function ResourceHistoryTable(props: ResourceHistoryTableProps): JSX.Element;
|
|
1072
1068
|
|
|
1073
1069
|
export declare interface ResourceHistoryTableProps {
|
|
1074
|
-
history?: Bundle;
|
|
1075
|
-
resourceType?: string;
|
|
1076
|
-
id?: string;
|
|
1070
|
+
readonly history?: Bundle;
|
|
1071
|
+
readonly resourceType?: string;
|
|
1072
|
+
readonly id?: string;
|
|
1077
1073
|
}
|
|
1078
1074
|
|
|
1079
1075
|
export declare function ResourceInput<T extends Resource = Resource>(props: ResourceInputProps<T>): JSX.Element | null;
|
|
@@ -1092,8 +1088,8 @@ export declare interface ResourceInputProps<T extends Resource = Resource> {
|
|
|
1092
1088
|
export declare function ResourceName(props: ResourceNameProps): JSX.Element | null;
|
|
1093
1089
|
|
|
1094
1090
|
export declare interface ResourceNameProps extends TextProps {
|
|
1095
|
-
value?: Reference | Resource;
|
|
1096
|
-
link?: boolean;
|
|
1091
|
+
readonly value?: Reference | Resource;
|
|
1092
|
+
readonly link?: boolean;
|
|
1097
1093
|
}
|
|
1098
1094
|
|
|
1099
1095
|
/**
|
|
@@ -1104,25 +1100,27 @@ export declare interface ResourceNameProps extends TextProps {
|
|
|
1104
1100
|
export declare function ResourcePropertyDisplay(props: ResourcePropertyDisplayProps): JSX.Element;
|
|
1105
1101
|
|
|
1106
1102
|
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;
|
|
1103
|
+
readonly property?: InternalSchemaElement;
|
|
1104
|
+
readonly propertyType: string;
|
|
1105
|
+
readonly value: any;
|
|
1106
|
+
readonly arrayElement?: boolean;
|
|
1107
|
+
readonly maxWidth?: number;
|
|
1108
|
+
readonly ignoreMissingValues?: boolean;
|
|
1109
|
+
readonly link?: boolean;
|
|
1114
1110
|
}
|
|
1115
1111
|
|
|
1116
1112
|
export declare function ResourcePropertyInput(props: ResourcePropertyInputProps): JSX.Element;
|
|
1117
1113
|
|
|
1118
1114
|
export declare interface ResourcePropertyInputProps {
|
|
1119
|
-
property: InternalSchemaElement;
|
|
1120
|
-
name: string;
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1115
|
+
readonly property: InternalSchemaElement;
|
|
1116
|
+
readonly name: string;
|
|
1117
|
+
/** The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension. */
|
|
1118
|
+
readonly path: 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 { }
|