@medplum/react 2.2.5 → 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 +31 -16
- package/dist/esm/index.d.ts +31 -16
- package/dist/esm/index.mjs +6 -6
- package/dist/esm/index.mjs.map +4 -4
- package/package.json +4 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
|
|
3
3
|
import { Address } from '@medplum/fhirtypes';
|
|
4
|
+
import { AnchorProps } from '@mantine/core';
|
|
4
5
|
import { Annotation } from '@medplum/fhirtypes';
|
|
5
6
|
import { Attachment } from '@medplum/fhirtypes';
|
|
6
7
|
import { AvatarProps } from '@mantine/core';
|
|
7
8
|
import { BaseLoginRequest } from '@medplum/core';
|
|
8
9
|
import { Bundle } from '@medplum/fhirtypes';
|
|
10
|
+
import { CardProps } from '@mantine/core';
|
|
11
|
+
import { ClientApplication } from '@medplum/fhirtypes';
|
|
9
12
|
import { CodeableConcept } from '@medplum/fhirtypes';
|
|
10
13
|
import { Coding } from '@medplum/fhirtypes';
|
|
11
14
|
import { Communication } from '@medplum/fhirtypes';
|
|
@@ -70,6 +73,8 @@ import { TextProps } from '@mantine/core';
|
|
|
70
73
|
import { Timing } from '@medplum/fhirtypes';
|
|
71
74
|
import { TypedValue } from '@medplum/core';
|
|
72
75
|
import { UserConfiguration } from '@medplum/fhirtypes';
|
|
76
|
+
import { ValueSetExpandParams } from '@medplum/core';
|
|
77
|
+
import { ValueSetExpansionContains } from '@medplum/fhirtypes';
|
|
73
78
|
|
|
74
79
|
/**
|
|
75
80
|
* Adds a filter for a date between two dates (inclusive of both dates).
|
|
@@ -335,26 +340,16 @@ export declare interface CodeableConceptDisplayProps {
|
|
|
335
340
|
|
|
336
341
|
export declare function CodeableConceptInput(props: CodeableConceptInputProps): JSX.Element;
|
|
337
342
|
|
|
338
|
-
export declare interface CodeableConceptInputProps {
|
|
339
|
-
binding: string | undefined;
|
|
340
|
-
name: string;
|
|
341
|
-
placeholder?: string;
|
|
343
|
+
export declare interface CodeableConceptInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
342
344
|
defaultValue?: CodeableConcept;
|
|
343
345
|
onChange?: (value: CodeableConcept | undefined) => void;
|
|
344
346
|
}
|
|
345
347
|
|
|
346
348
|
export declare function CodeInput(props: CodeInputProps): JSX.Element;
|
|
347
349
|
|
|
348
|
-
export declare interface CodeInputProps {
|
|
349
|
-
binding: string | undefined;
|
|
350
|
-
name: string;
|
|
351
|
-
placeholder?: string;
|
|
350
|
+
export declare interface CodeInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
352
351
|
defaultValue?: string;
|
|
353
352
|
onChange?: (value: string | undefined) => void;
|
|
354
|
-
creatable?: boolean;
|
|
355
|
-
maxSelectedValues?: number;
|
|
356
|
-
clearSearchOnChange?: boolean;
|
|
357
|
-
clearable?: boolean;
|
|
358
353
|
}
|
|
359
354
|
|
|
360
355
|
export declare function CodingDisplay(props: CodingDisplayProps): JSX.Element;
|
|
@@ -365,10 +360,7 @@ export declare interface CodingDisplayProps {
|
|
|
365
360
|
|
|
366
361
|
export declare function CodingInput(props: CodingInputProps): JSX.Element;
|
|
367
362
|
|
|
368
|
-
export declare interface CodingInputProps {
|
|
369
|
-
binding: string | undefined;
|
|
370
|
-
name: string;
|
|
371
|
-
placeholder?: string;
|
|
363
|
+
export declare interface CodingInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
372
364
|
defaultValue?: Coding;
|
|
373
365
|
onChange?: (value: Coding | undefined) => void;
|
|
374
366
|
}
|
|
@@ -824,6 +816,13 @@ export declare interface PanelStylesParams {
|
|
|
824
816
|
*/
|
|
825
817
|
export declare function parseForm(form: HTMLFormElement): Record<string, string>;
|
|
826
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
|
+
|
|
827
826
|
export declare function PatientTimeline(props: PatientTimelineProps): JSX.Element;
|
|
828
827
|
|
|
829
828
|
export declare interface PatientTimelineProps {
|
|
@@ -1307,6 +1306,15 @@ export declare interface SignInFormProps extends BaseLoginRequest {
|
|
|
1307
1306
|
readonly children?: ReactNode;
|
|
1308
1307
|
}
|
|
1309
1308
|
|
|
1309
|
+
export declare function SmartAppLaunchLink(props: SmartAppLaunchLinkProps): JSX.Element | null;
|
|
1310
|
+
|
|
1311
|
+
export declare interface SmartAppLaunchLinkProps extends AnchorProps {
|
|
1312
|
+
readonly client: ClientApplication;
|
|
1313
|
+
readonly patient?: Reference<Patient>;
|
|
1314
|
+
readonly encounter?: Reference<Encounter>;
|
|
1315
|
+
readonly children?: ReactNode;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1310
1318
|
export declare interface SmartSearchResponse {
|
|
1311
1319
|
data: {
|
|
1312
1320
|
ResourceList: Resource[];
|
|
@@ -1433,4 +1441,11 @@ export declare function useSearchOne<K extends ResourceType>(resourceType: K, qu
|
|
|
1433
1441
|
*/
|
|
1434
1442
|
export declare function useSearchResources<K extends ResourceType>(resourceType: K, query?: QueryTypes): [ResourceArray<ExtractResource<K>> | undefined, boolean, OperationOutcome | undefined];
|
|
1435
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
|
+
|
|
1436
1451
|
export { }
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
|
|
3
3
|
import { Address } from '@medplum/fhirtypes';
|
|
4
|
+
import { AnchorProps } from '@mantine/core';
|
|
4
5
|
import { Annotation } from '@medplum/fhirtypes';
|
|
5
6
|
import { Attachment } from '@medplum/fhirtypes';
|
|
6
7
|
import { AvatarProps } from '@mantine/core';
|
|
7
8
|
import { BaseLoginRequest } from '@medplum/core';
|
|
8
9
|
import { Bundle } from '@medplum/fhirtypes';
|
|
10
|
+
import { CardProps } from '@mantine/core';
|
|
11
|
+
import { ClientApplication } from '@medplum/fhirtypes';
|
|
9
12
|
import { CodeableConcept } from '@medplum/fhirtypes';
|
|
10
13
|
import { Coding } from '@medplum/fhirtypes';
|
|
11
14
|
import { Communication } from '@medplum/fhirtypes';
|
|
@@ -70,6 +73,8 @@ import { TextProps } from '@mantine/core';
|
|
|
70
73
|
import { Timing } from '@medplum/fhirtypes';
|
|
71
74
|
import { TypedValue } from '@medplum/core';
|
|
72
75
|
import { UserConfiguration } from '@medplum/fhirtypes';
|
|
76
|
+
import { ValueSetExpandParams } from '@medplum/core';
|
|
77
|
+
import { ValueSetExpansionContains } from '@medplum/fhirtypes';
|
|
73
78
|
|
|
74
79
|
/**
|
|
75
80
|
* Adds a filter for a date between two dates (inclusive of both dates).
|
|
@@ -335,26 +340,16 @@ export declare interface CodeableConceptDisplayProps {
|
|
|
335
340
|
|
|
336
341
|
export declare function CodeableConceptInput(props: CodeableConceptInputProps): JSX.Element;
|
|
337
342
|
|
|
338
|
-
export declare interface CodeableConceptInputProps {
|
|
339
|
-
binding: string | undefined;
|
|
340
|
-
name: string;
|
|
341
|
-
placeholder?: string;
|
|
343
|
+
export declare interface CodeableConceptInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
342
344
|
defaultValue?: CodeableConcept;
|
|
343
345
|
onChange?: (value: CodeableConcept | undefined) => void;
|
|
344
346
|
}
|
|
345
347
|
|
|
346
348
|
export declare function CodeInput(props: CodeInputProps): JSX.Element;
|
|
347
349
|
|
|
348
|
-
export declare interface CodeInputProps {
|
|
349
|
-
binding: string | undefined;
|
|
350
|
-
name: string;
|
|
351
|
-
placeholder?: string;
|
|
350
|
+
export declare interface CodeInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
352
351
|
defaultValue?: string;
|
|
353
352
|
onChange?: (value: string | undefined) => void;
|
|
354
|
-
creatable?: boolean;
|
|
355
|
-
maxSelectedValues?: number;
|
|
356
|
-
clearSearchOnChange?: boolean;
|
|
357
|
-
clearable?: boolean;
|
|
358
353
|
}
|
|
359
354
|
|
|
360
355
|
export declare function CodingDisplay(props: CodingDisplayProps): JSX.Element;
|
|
@@ -365,10 +360,7 @@ export declare interface CodingDisplayProps {
|
|
|
365
360
|
|
|
366
361
|
export declare function CodingInput(props: CodingInputProps): JSX.Element;
|
|
367
362
|
|
|
368
|
-
export declare interface CodingInputProps {
|
|
369
|
-
binding: string | undefined;
|
|
370
|
-
name: string;
|
|
371
|
-
placeholder?: string;
|
|
363
|
+
export declare interface CodingInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
372
364
|
defaultValue?: Coding;
|
|
373
365
|
onChange?: (value: Coding | undefined) => void;
|
|
374
366
|
}
|
|
@@ -824,6 +816,13 @@ export declare interface PanelStylesParams {
|
|
|
824
816
|
*/
|
|
825
817
|
export declare function parseForm(form: HTMLFormElement): Record<string, string>;
|
|
826
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
|
+
|
|
827
826
|
export declare function PatientTimeline(props: PatientTimelineProps): JSX.Element;
|
|
828
827
|
|
|
829
828
|
export declare interface PatientTimelineProps {
|
|
@@ -1307,6 +1306,15 @@ export declare interface SignInFormProps extends BaseLoginRequest {
|
|
|
1307
1306
|
readonly children?: ReactNode;
|
|
1308
1307
|
}
|
|
1309
1308
|
|
|
1309
|
+
export declare function SmartAppLaunchLink(props: SmartAppLaunchLinkProps): JSX.Element | null;
|
|
1310
|
+
|
|
1311
|
+
export declare interface SmartAppLaunchLinkProps extends AnchorProps {
|
|
1312
|
+
readonly client: ClientApplication;
|
|
1313
|
+
readonly patient?: Reference<Patient>;
|
|
1314
|
+
readonly encounter?: Reference<Encounter>;
|
|
1315
|
+
readonly children?: ReactNode;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1310
1318
|
export declare interface SmartSearchResponse {
|
|
1311
1319
|
data: {
|
|
1312
1320
|
ResourceList: Resource[];
|
|
@@ -1433,4 +1441,11 @@ export declare function useSearchOne<K extends ResourceType>(resourceType: K, qu
|
|
|
1433
1441
|
*/
|
|
1434
1442
|
export declare function useSearchResources<K extends ResourceType>(resourceType: K, query?: QueryTypes): [ResourceArray<ExtractResource<K>> | undefined, boolean, OperationOutcome | undefined];
|
|
1435
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
|
+
|
|
1436
1451
|
export { }
|