@medplum/react 2.2.6 → 2.2.7
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.d.ts +20 -16
- package/dist/esm/index.d.ts +20 -16
- package/dist/esm/index.mjs +6 -6
- package/dist/esm/index.mjs.map +4 -4
- package/package.json +2 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { Attachment } from '@medplum/fhirtypes';
|
|
|
7
7
|
import { AvatarProps } from '@mantine/core';
|
|
8
8
|
import { BaseLoginRequest } from '@medplum/core';
|
|
9
9
|
import { Bundle } from '@medplum/fhirtypes';
|
|
10
|
+
import { CardProps } from '@mantine/core';
|
|
10
11
|
import { ClientApplication } from '@medplum/fhirtypes';
|
|
11
12
|
import { CodeableConcept } from '@medplum/fhirtypes';
|
|
12
13
|
import { Coding } from '@medplum/fhirtypes';
|
|
@@ -72,6 +73,8 @@ import { TextProps } from '@mantine/core';
|
|
|
72
73
|
import { Timing } from '@medplum/fhirtypes';
|
|
73
74
|
import { TypedValue } from '@medplum/core';
|
|
74
75
|
import { UserConfiguration } from '@medplum/fhirtypes';
|
|
76
|
+
import { ValueSetExpandParams } from '@medplum/core';
|
|
77
|
+
import { ValueSetExpansionContains } from '@medplum/fhirtypes';
|
|
75
78
|
|
|
76
79
|
/**
|
|
77
80
|
* Adds a filter for a date between two dates (inclusive of both dates).
|
|
@@ -337,26 +340,16 @@ export declare interface CodeableConceptDisplayProps {
|
|
|
337
340
|
|
|
338
341
|
export declare function CodeableConceptInput(props: CodeableConceptInputProps): JSX.Element;
|
|
339
342
|
|
|
340
|
-
export declare interface CodeableConceptInputProps {
|
|
341
|
-
binding: string | undefined;
|
|
342
|
-
name: string;
|
|
343
|
-
placeholder?: string;
|
|
343
|
+
export declare interface CodeableConceptInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
344
344
|
defaultValue?: CodeableConcept;
|
|
345
345
|
onChange?: (value: CodeableConcept | undefined) => void;
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
export declare function CodeInput(props: CodeInputProps): JSX.Element;
|
|
349
349
|
|
|
350
|
-
export declare interface CodeInputProps {
|
|
351
|
-
binding: string | undefined;
|
|
352
|
-
name: string;
|
|
353
|
-
placeholder?: string;
|
|
350
|
+
export declare interface CodeInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
354
351
|
defaultValue?: string;
|
|
355
352
|
onChange?: (value: string | undefined) => void;
|
|
356
|
-
creatable?: boolean;
|
|
357
|
-
maxSelectedValues?: number;
|
|
358
|
-
clearSearchOnChange?: boolean;
|
|
359
|
-
clearable?: boolean;
|
|
360
353
|
}
|
|
361
354
|
|
|
362
355
|
export declare function CodingDisplay(props: CodingDisplayProps): JSX.Element;
|
|
@@ -367,10 +360,7 @@ export declare interface CodingDisplayProps {
|
|
|
367
360
|
|
|
368
361
|
export declare function CodingInput(props: CodingInputProps): JSX.Element;
|
|
369
362
|
|
|
370
|
-
export declare interface CodingInputProps {
|
|
371
|
-
binding: string | undefined;
|
|
372
|
-
name: string;
|
|
373
|
-
placeholder?: string;
|
|
363
|
+
export declare interface CodingInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
374
364
|
defaultValue?: Coding;
|
|
375
365
|
onChange?: (value: Coding | undefined) => void;
|
|
376
366
|
}
|
|
@@ -826,6 +816,13 @@ export declare interface PanelStylesParams {
|
|
|
826
816
|
*/
|
|
827
817
|
export declare function parseForm(form: HTMLFormElement): Record<string, string>;
|
|
828
818
|
|
|
819
|
+
export declare function PatientSummary(props: PatientSummaryProps): JSX.Element | null;
|
|
820
|
+
|
|
821
|
+
export declare interface PatientSummaryProps extends Omit<CardProps, 'children'> {
|
|
822
|
+
readonly patient: Patient | Reference<Patient>;
|
|
823
|
+
readonly background?: string;
|
|
824
|
+
}
|
|
825
|
+
|
|
829
826
|
export declare function PatientTimeline(props: PatientTimelineProps): JSX.Element;
|
|
830
827
|
|
|
831
828
|
export declare interface PatientTimelineProps {
|
|
@@ -1444,4 +1441,11 @@ export declare function useSearchOne<K extends ResourceType>(resourceType: K, qu
|
|
|
1444
1441
|
*/
|
|
1445
1442
|
export declare function useSearchResources<K extends ResourceType>(resourceType: K, query?: QueryTypes): [ResourceArray<ExtractResource<K>> | undefined, boolean, OperationOutcome | undefined];
|
|
1446
1443
|
|
|
1444
|
+
declare interface ValueSetAutocompleteProps extends Omit<AsyncAutocompleteProps<ValueSetExpansionContains>, 'loadOptions' | 'toKey' | 'toOption'> {
|
|
1445
|
+
binding: string | undefined;
|
|
1446
|
+
creatable?: boolean;
|
|
1447
|
+
clearable?: boolean;
|
|
1448
|
+
expandParams?: Partial<ValueSetExpandParams>;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1447
1451
|
export { }
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { Attachment } from '@medplum/fhirtypes';
|
|
|
7
7
|
import { AvatarProps } from '@mantine/core';
|
|
8
8
|
import { BaseLoginRequest } from '@medplum/core';
|
|
9
9
|
import { Bundle } from '@medplum/fhirtypes';
|
|
10
|
+
import { CardProps } from '@mantine/core';
|
|
10
11
|
import { ClientApplication } from '@medplum/fhirtypes';
|
|
11
12
|
import { CodeableConcept } from '@medplum/fhirtypes';
|
|
12
13
|
import { Coding } from '@medplum/fhirtypes';
|
|
@@ -72,6 +73,8 @@ import { TextProps } from '@mantine/core';
|
|
|
72
73
|
import { Timing } from '@medplum/fhirtypes';
|
|
73
74
|
import { TypedValue } from '@medplum/core';
|
|
74
75
|
import { UserConfiguration } from '@medplum/fhirtypes';
|
|
76
|
+
import { ValueSetExpandParams } from '@medplum/core';
|
|
77
|
+
import { ValueSetExpansionContains } from '@medplum/fhirtypes';
|
|
75
78
|
|
|
76
79
|
/**
|
|
77
80
|
* Adds a filter for a date between two dates (inclusive of both dates).
|
|
@@ -337,26 +340,16 @@ export declare interface CodeableConceptDisplayProps {
|
|
|
337
340
|
|
|
338
341
|
export declare function CodeableConceptInput(props: CodeableConceptInputProps): JSX.Element;
|
|
339
342
|
|
|
340
|
-
export declare interface CodeableConceptInputProps {
|
|
341
|
-
binding: string | undefined;
|
|
342
|
-
name: string;
|
|
343
|
-
placeholder?: string;
|
|
343
|
+
export declare interface CodeableConceptInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
344
344
|
defaultValue?: CodeableConcept;
|
|
345
345
|
onChange?: (value: CodeableConcept | undefined) => void;
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
export declare function CodeInput(props: CodeInputProps): JSX.Element;
|
|
349
349
|
|
|
350
|
-
export declare interface CodeInputProps {
|
|
351
|
-
binding: string | undefined;
|
|
352
|
-
name: string;
|
|
353
|
-
placeholder?: string;
|
|
350
|
+
export declare interface CodeInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
354
351
|
defaultValue?: string;
|
|
355
352
|
onChange?: (value: string | undefined) => void;
|
|
356
|
-
creatable?: boolean;
|
|
357
|
-
maxSelectedValues?: number;
|
|
358
|
-
clearSearchOnChange?: boolean;
|
|
359
|
-
clearable?: boolean;
|
|
360
353
|
}
|
|
361
354
|
|
|
362
355
|
export declare function CodingDisplay(props: CodingDisplayProps): JSX.Element;
|
|
@@ -367,10 +360,7 @@ export declare interface CodingDisplayProps {
|
|
|
367
360
|
|
|
368
361
|
export declare function CodingInput(props: CodingInputProps): JSX.Element;
|
|
369
362
|
|
|
370
|
-
export declare interface CodingInputProps {
|
|
371
|
-
binding: string | undefined;
|
|
372
|
-
name: string;
|
|
373
|
-
placeholder?: string;
|
|
363
|
+
export declare interface CodingInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
374
364
|
defaultValue?: Coding;
|
|
375
365
|
onChange?: (value: Coding | undefined) => void;
|
|
376
366
|
}
|
|
@@ -826,6 +816,13 @@ export declare interface PanelStylesParams {
|
|
|
826
816
|
*/
|
|
827
817
|
export declare function parseForm(form: HTMLFormElement): Record<string, string>;
|
|
828
818
|
|
|
819
|
+
export declare function PatientSummary(props: PatientSummaryProps): JSX.Element | null;
|
|
820
|
+
|
|
821
|
+
export declare interface PatientSummaryProps extends Omit<CardProps, 'children'> {
|
|
822
|
+
readonly patient: Patient | Reference<Patient>;
|
|
823
|
+
readonly background?: string;
|
|
824
|
+
}
|
|
825
|
+
|
|
829
826
|
export declare function PatientTimeline(props: PatientTimelineProps): JSX.Element;
|
|
830
827
|
|
|
831
828
|
export declare interface PatientTimelineProps {
|
|
@@ -1444,4 +1441,11 @@ export declare function useSearchOne<K extends ResourceType>(resourceType: K, qu
|
|
|
1444
1441
|
*/
|
|
1445
1442
|
export declare function useSearchResources<K extends ResourceType>(resourceType: K, query?: QueryTypes): [ResourceArray<ExtractResource<K>> | undefined, boolean, OperationOutcome | undefined];
|
|
1446
1443
|
|
|
1444
|
+
declare interface ValueSetAutocompleteProps extends Omit<AsyncAutocompleteProps<ValueSetExpansionContains>, 'loadOptions' | 'toKey' | 'toOption'> {
|
|
1445
|
+
binding: string | undefined;
|
|
1446
|
+
creatable?: boolean;
|
|
1447
|
+
clearable?: boolean;
|
|
1448
|
+
expandParams?: Partial<ValueSetExpandParams>;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1447
1451
|
export { }
|