@medplum/react 2.0.21 → 2.0.23
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 +173 -128
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.min.cjs +1 -1
- package/dist/esm/AttachmentButton/AttachmentButton.mjs +1 -2
- package/dist/esm/AttachmentButton/AttachmentButton.mjs.map +1 -1
- package/dist/esm/DateTimeInput/DateTimeInput.mjs +1 -0
- package/dist/esm/DateTimeInput/DateTimeInput.mjs.map +1 -1
- package/dist/esm/FhirPathTable/FhirPathTable.mjs +2 -0
- package/dist/esm/FhirPathTable/FhirPathTable.mjs.map +1 -1
- package/dist/esm/Form/FormUtils.mjs +2 -1
- package/dist/esm/Form/FormUtils.mjs.map +1 -1
- package/dist/esm/GoogleButton/GoogleButton.mjs +2 -2
- package/dist/esm/GoogleButton/GoogleButton.mjs.map +1 -1
- package/dist/esm/MedplumProvider/MedplumProvider.mjs +4 -0
- package/dist/esm/MedplumProvider/MedplumProvider.mjs.map +1 -1
- package/dist/esm/PlanDefinitionBuilder/PlanDefinitionBuilder.mjs +2 -1
- package/dist/esm/PlanDefinitionBuilder/PlanDefinitionBuilder.mjs.map +1 -1
- package/dist/esm/QuestionnaireBuilder/QuestionnaireBuilder.mjs +3 -2
- package/dist/esm/QuestionnaireBuilder/QuestionnaireBuilder.mjs.map +1 -1
- package/dist/esm/ReferenceRangeEditor/ReferenceRangeEditor.mjs +13 -5
- package/dist/esm/ReferenceRangeEditor/ReferenceRangeEditor.mjs.map +1 -1
- package/dist/esm/ResourceName/ResourceName.mjs +0 -5
- package/dist/esm/ResourceName/ResourceName.mjs.map +1 -1
- package/dist/esm/ResourcePropertyDisplay/ResourcePropertyDisplay.mjs +6 -3
- package/dist/esm/ResourcePropertyDisplay/ResourcePropertyDisplay.mjs.map +1 -1
- package/dist/esm/SearchControl/SearchControl.mjs +2 -1
- package/dist/esm/SearchControl/SearchControl.mjs.map +1 -1
- package/dist/esm/SearchControl/SearchUtils.mjs +77 -54
- package/dist/esm/SearchControl/SearchUtils.mjs.map +1 -1
- package/dist/esm/SearchFieldEditor/SearchFieldEditor.mjs +6 -7
- package/dist/esm/SearchFieldEditor/SearchFieldEditor.mjs.map +1 -1
- package/dist/esm/ValueSetAutocomplete/ValueSetAutocomplete.mjs +3 -0
- package/dist/esm/ValueSetAutocomplete/ValueSetAutocomplete.mjs.map +1 -1
- package/dist/esm/auth/SignInForm.mjs +6 -2
- package/dist/esm/auth/SignInForm.mjs.map +1 -1
- package/dist/esm/index.min.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconAdjustmentsHorizontal.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconAdjustmentsHorizontal.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertCircle.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertCircle.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBleach.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBleach.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBleachOff.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBleachOff.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBoxMultiple.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBoxMultiple.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBracketsContain.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBracketsContain.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBucket.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBucket.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBucketOff.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBucketOff.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCalendar.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCalendar.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCheckbox.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCheckbox.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleMinus.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleMinus.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCirclePlus.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCirclePlus.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCloudUpload.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCloudUpload.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconColumns.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconColumns.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCurrencyDollar.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCurrencyDollar.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconDots.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconDots.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEqual.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEqual.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEqualNot.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEqualNot.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFileAlert.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFileAlert.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFilePlus.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFilePlus.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFilter.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFilter.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconListDetails.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconListDetails.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconLogout.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconLogout.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMathGreater.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMathGreater.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMathLower.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMathLower.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMessage.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMessage.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconPin.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconPin.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconPinnedOff.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconPinnedOff.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSettings.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSettings.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSortAscending.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSortAscending.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSortDescending.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSortDescending.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSquare.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSquare.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSwitchHorizontal.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSwitchHorizontal.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconTableExport.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconTableExport.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.mjs.map +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconX.mjs +1 -1
- package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconX.mjs.map +1 -1
- package/dist/esm/useResource/useResource.mjs +1 -0
- package/dist/esm/useResource/useResource.mjs.map +1 -1
- package/dist/esm/utils/script.mjs +1 -0
- package/dist/esm/utils/script.mjs.map +1 -1
- package/dist/types/FhirPathTable/FhirPathTable.d.ts +2 -0
- package/dist/types/Form/FormUtils.d.ts +1 -0
- package/dist/types/MedplumProvider/MedplumProvider.d.ts +4 -0
- package/dist/types/ResourceName/ResourceName.d.ts +0 -5
- package/dist/types/ResourcePropertyDisplay/ResourcePropertyDisplay.d.ts +4 -2
- package/dist/types/SearchControl/SearchControl.d.ts +2 -0
- package/dist/types/SearchControl/SearchUtils.d.ts +64 -44
- package/dist/types/ValueSetAutocomplete/ValueSetAutocomplete.d.ts +3 -0
- package/dist/types/auth/SignInForm.d.ts +2 -0
- package/dist/types/useResource/useResource.d.ts +1 -0
- package/dist/types/utils/script.d.ts +1 -0
- package/package.json +12 -12
|
@@ -4,123 +4,144 @@ import { Resource, SearchParameter } from '@medplum/fhirtypes';
|
|
|
4
4
|
import { SearchControlField } from './SearchControlField';
|
|
5
5
|
/**
|
|
6
6
|
* Sets the array of filters.
|
|
7
|
-
*
|
|
8
|
-
* @param
|
|
7
|
+
* @param definition The original search request.
|
|
8
|
+
* @param filters The new filters.
|
|
9
|
+
* @returns The updated search request.
|
|
9
10
|
*/
|
|
10
11
|
export declare function setFilters(definition: SearchRequest, filters: Filter[]): SearchRequest;
|
|
11
12
|
/**
|
|
12
13
|
* Clears all of the filters.
|
|
14
|
+
* @param definition The original search request.
|
|
15
|
+
* @returns The updated search request.
|
|
13
16
|
*/
|
|
14
17
|
export declare function clearFilters(definition: SearchRequest): SearchRequest;
|
|
15
18
|
/**
|
|
16
19
|
* Clears all of the filters on a certain field.
|
|
17
|
-
*
|
|
18
|
-
* @param
|
|
20
|
+
* @param definition The original search request.
|
|
21
|
+
* @param code The field key name to clear filters.
|
|
22
|
+
* @returns The updated search request.
|
|
19
23
|
*/
|
|
20
24
|
export declare function clearFiltersOnField(definition: SearchRequest, code: string): SearchRequest;
|
|
21
25
|
/**
|
|
22
26
|
* Adds a filter.
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
25
|
-
* @param
|
|
26
|
-
* @param
|
|
27
|
-
* @param
|
|
27
|
+
* @param definition The original search request.
|
|
28
|
+
* @param field The field key name.
|
|
29
|
+
* @param op The operation key name.
|
|
30
|
+
* @param value The filter value.
|
|
31
|
+
* @param opt_clear Optional flag to clear filters on the field.
|
|
32
|
+
* @returns The updated search request.
|
|
28
33
|
*/
|
|
29
34
|
export declare function addFilter(definition: SearchRequest, field: string, op: Operator, value?: string, opt_clear?: boolean): SearchRequest;
|
|
30
35
|
/**
|
|
31
36
|
* Adds a field.
|
|
32
|
-
*
|
|
33
|
-
* @param
|
|
37
|
+
* @param definition The original search request.
|
|
38
|
+
* @param field The field key name.
|
|
39
|
+
* @returns The updated search request.
|
|
34
40
|
*/
|
|
35
41
|
export declare function addField(definition: SearchRequest, field: string): SearchRequest;
|
|
36
42
|
/**
|
|
37
43
|
* Deletes a filter at the specified index.
|
|
38
|
-
*
|
|
39
|
-
* @param
|
|
44
|
+
* @param definition The original search request.
|
|
45
|
+
* @param index The filter index.
|
|
46
|
+
* @returns The updated search request.
|
|
40
47
|
*/
|
|
41
48
|
export declare function deleteFilter(definition: SearchRequest, index: number): SearchRequest;
|
|
42
49
|
/**
|
|
43
50
|
* Adds a filter that constrains the specified field to "yesterday".
|
|
44
|
-
*
|
|
45
|
-
* @param
|
|
51
|
+
* @param definition The original search request.
|
|
52
|
+
* @param field The field key name.
|
|
53
|
+
* @returns The updated search request.
|
|
46
54
|
*/
|
|
47
55
|
export declare function addYesterdayFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
48
56
|
/**
|
|
49
57
|
* Adds a filter that constrains the specified field to "today".
|
|
50
|
-
*
|
|
51
|
-
* @param
|
|
58
|
+
* @param definition The original search request.
|
|
59
|
+
* @param field The field key name.
|
|
60
|
+
* @returns The updated search request.
|
|
52
61
|
*/
|
|
53
62
|
export declare function addTodayFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
54
63
|
/**
|
|
55
64
|
* Adds a filter that constrains the specified field to "tomorrow".
|
|
56
|
-
*
|
|
57
|
-
* @param
|
|
65
|
+
* @param definition The original search request.
|
|
66
|
+
* @param field The field key name.
|
|
67
|
+
* @returns The updated search request.
|
|
58
68
|
*/
|
|
59
69
|
export declare function addTomorrowFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
60
70
|
/**
|
|
61
71
|
* Adds a filter that constrains the specified field to "last month".
|
|
62
|
-
*
|
|
63
|
-
* @param
|
|
72
|
+
* @param definition The original search request.
|
|
73
|
+
* @param field The field key name.
|
|
74
|
+
* @returns The updated search request.
|
|
64
75
|
*/
|
|
65
76
|
export declare function addLastMonthFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
66
77
|
/**
|
|
67
78
|
* Adds a filter that constrains the specified field to "this month".
|
|
68
|
-
*
|
|
69
|
-
* @param
|
|
79
|
+
* @param definition The original search request.
|
|
80
|
+
* @param field The field key name.
|
|
81
|
+
* @returns The updated search request.
|
|
70
82
|
*/
|
|
71
83
|
export declare function addThisMonthFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
72
84
|
/**
|
|
73
85
|
* Adds a filter that constrains the specified field to "next month".
|
|
74
|
-
*
|
|
75
|
-
* @param
|
|
86
|
+
* @param definition The original search request.
|
|
87
|
+
* @param field The field key name.
|
|
88
|
+
* @returns The updated search request.
|
|
76
89
|
*/
|
|
77
90
|
export declare function addNextMonthFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
78
91
|
/**
|
|
79
92
|
* Adds a filter that constrains the specified field to the year to date.
|
|
80
|
-
*
|
|
81
|
-
* @param
|
|
93
|
+
* @param definition The original search request.
|
|
94
|
+
* @param field The field key name.
|
|
95
|
+
* @returns The updated search request.
|
|
82
96
|
*/
|
|
83
97
|
export declare function addYearToDateFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
84
98
|
/**
|
|
85
99
|
* Adds a filter for a date between two dates (inclusive of both dates).
|
|
86
|
-
*
|
|
87
|
-
* @param
|
|
88
|
-
* @param
|
|
89
|
-
* @param
|
|
100
|
+
* @param definition The original search request.
|
|
101
|
+
* @param field The field key name.
|
|
102
|
+
* @param d1 The start date.
|
|
103
|
+
* @param d2 The end date.
|
|
104
|
+
* @returns The updated search request.
|
|
90
105
|
*/
|
|
91
106
|
export declare function addDateFilterBetween(definition: SearchRequest, field: string, d1: Date, d2: Date): SearchRequest;
|
|
92
107
|
/**
|
|
93
108
|
* Adds a filter that constrains the specified field to "missing".
|
|
94
|
-
*
|
|
95
|
-
* @param
|
|
109
|
+
* @param definition The original search request.
|
|
110
|
+
* @param field The field key name.
|
|
111
|
+
* @param value Optional boolean value. Default is true.
|
|
112
|
+
* @returns The updated search request.
|
|
96
113
|
*/
|
|
97
114
|
export declare function addMissingFilter(definition: SearchRequest, field: string, value?: boolean): SearchRequest;
|
|
98
115
|
/**
|
|
99
116
|
* Sets the offset (starting at zero).
|
|
100
|
-
*
|
|
101
|
-
* @param
|
|
117
|
+
* @param definition The original search request.
|
|
118
|
+
* @param offset The offset number.
|
|
119
|
+
* @returns The updated search request.
|
|
102
120
|
*/
|
|
103
121
|
export declare function setOffset(definition: SearchRequest, offset: number): SearchRequest;
|
|
104
122
|
/**
|
|
105
123
|
* Creates a new search request with the search offset at the specified page.
|
|
106
124
|
* @param definition The search definition.
|
|
107
125
|
* @param page The new page number
|
|
108
|
-
* @
|
|
126
|
+
* @returns The new search definition.
|
|
109
127
|
*/
|
|
110
128
|
export declare function setPage(definition: SearchRequest, page: number): SearchRequest;
|
|
111
129
|
/**
|
|
112
130
|
* Sorts the search by the specified key, and optional direction.
|
|
113
131
|
* Direction defaults to ascending ('asc') if not specified.
|
|
114
|
-
*
|
|
115
|
-
* @param
|
|
132
|
+
* @param definition The original search request.
|
|
133
|
+
* @param sort The sort key.
|
|
134
|
+
* @param desc Optional descending flag. Default is false.
|
|
135
|
+
* @returns The updated search request.
|
|
116
136
|
*/
|
|
117
137
|
export declare function setSort(definition: SearchRequest, sort: string, desc?: boolean): SearchRequest;
|
|
118
138
|
/**
|
|
119
139
|
* Toggles the sort of the search by key.
|
|
120
140
|
* If the search is already sorted by the key, reverses the direction.
|
|
121
141
|
* If the search is not sorted by the key, sort in ascending order.
|
|
122
|
-
*
|
|
123
|
-
* @param
|
|
142
|
+
* @param definition The original search request.
|
|
143
|
+
* @param key The field key name.
|
|
144
|
+
* @returns The updated search request.
|
|
124
145
|
*/
|
|
125
146
|
export declare function toggleSort(definition: SearchRequest, key: string): SearchRequest;
|
|
126
147
|
export declare function getSortField(definition: SearchRequest): string | undefined;
|
|
@@ -133,9 +154,8 @@ export declare function isSortDescending(definition: SearchRequest): boolean;
|
|
|
133
154
|
export declare function getSearchOperators(searchParam: SearchParameter): Operator[] | undefined;
|
|
134
155
|
/**
|
|
135
156
|
* Returns a string representing the operation.
|
|
136
|
-
*
|
|
137
|
-
* @
|
|
138
|
-
* @return {string} A display string for the operation.
|
|
157
|
+
* @param op The operation code.
|
|
158
|
+
* @returns A display string for the operation.
|
|
139
159
|
*/
|
|
140
160
|
export declare function getOpString(op: Operator): string;
|
|
141
161
|
/**
|
|
@@ -147,7 +167,7 @@ export declare function buildFieldNameString(key: string): string;
|
|
|
147
167
|
/**
|
|
148
168
|
* Returns a fragment to be displayed in the search table for the value.
|
|
149
169
|
* @param resource The parent resource.
|
|
150
|
-
* @param
|
|
170
|
+
* @param field The search code or FHIRPath expression.
|
|
151
171
|
* @returns The fragment to display.
|
|
152
172
|
*/
|
|
153
173
|
export declare function renderValue(resource: Resource, field: SearchControlField): string | JSX.Element | null | undefined;
|
|
@@ -8,5 +8,8 @@ export interface ValueSetAutocompleteProps extends Omit<AsyncAutocompleteProps<V
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* A low-level component to autocomplete based on a FHIR Valueset.
|
|
11
|
+
* This is the base component for CodeableConceptInput, CodingInput, and CodeInput.
|
|
12
|
+
* @param props The ValueSetAutocomplete React props.
|
|
13
|
+
* @returns The ValueSetAutocomplete React node.
|
|
11
14
|
*/
|
|
12
15
|
export declare function ValueSetAutocomplete(props: ValueSetAutocompleteProps): JSX.Element;
|
|
@@ -19,5 +19,7 @@ export interface SignInFormProps extends BaseLoginRequest {
|
|
|
19
19
|
* 3) Choose profile - If the user has multiple profiles, prompt to choose one
|
|
20
20
|
* 4) Choose scope - If the user has multiple scopes, prompt to choose one
|
|
21
21
|
* 5) Success - Return to the caller with either a code or a redirect
|
|
22
|
+
* @param props The SignInForm React props.
|
|
23
|
+
* @returns The SignInForm React node.
|
|
22
24
|
*/
|
|
23
25
|
export declare function SignInForm(props: SignInFormProps): JSX.Element;
|
|
@@ -3,6 +3,7 @@ import { OperationOutcome, Reference, Resource } from '@medplum/fhirtypes';
|
|
|
3
3
|
* React Hook to use a FHIR reference.
|
|
4
4
|
* Handles the complexity of resolving references and caching resources.
|
|
5
5
|
* @param value The resource or reference to resource.
|
|
6
|
+
* @param setOutcome Optional callback to set the OperationOutcome.
|
|
6
7
|
* @returns The resolved resource.
|
|
7
8
|
*/
|
|
8
9
|
export declare function useResource<T extends Resource>(value: Reference<T> | T | undefined, setOutcome?: (outcome: OperationOutcome) => void): T | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medplum/react",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.23",
|
|
4
4
|
"description": "Medplum React Component Library",
|
|
5
5
|
"author": "Medplum <hello@medplum.com>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
"@medplum/definitions": "*",
|
|
27
27
|
"@medplum/fhirtypes": "*",
|
|
28
28
|
"@medplum/mock": "*",
|
|
29
|
-
"@storybook/addon-actions": "7.0.
|
|
30
|
-
"@storybook/addon-essentials": "7.0.
|
|
31
|
-
"@storybook/addon-links": "7.0.
|
|
32
|
-
"@storybook/react": "7.0.
|
|
33
|
-
"@storybook/react-webpack5": "7.0.
|
|
29
|
+
"@storybook/addon-actions": "7.0.18",
|
|
30
|
+
"@storybook/addon-essentials": "7.0.18",
|
|
31
|
+
"@storybook/addon-links": "7.0.18",
|
|
32
|
+
"@storybook/react": "7.0.18",
|
|
33
|
+
"@storybook/react-webpack5": "7.0.18",
|
|
34
34
|
"@svgr/rollup": "8.0.1",
|
|
35
|
-
"@tabler/icons-react": "2.
|
|
35
|
+
"@tabler/icons-react": "2.22.0",
|
|
36
36
|
"@testing-library/dom": "9.3.0",
|
|
37
37
|
"@testing-library/jest-dom": "5.16.5",
|
|
38
38
|
"@testing-library/react": "14.0.0",
|
|
39
|
-
"@types/jest": "29.5.
|
|
40
|
-
"@types/node": "20.2.
|
|
41
|
-
"@types/react": "18.2.
|
|
39
|
+
"@types/jest": "29.5.2",
|
|
40
|
+
"@types/node": "20.2.5",
|
|
41
|
+
"@types/react": "18.2.8",
|
|
42
42
|
"@types/react-dom": "18.2.4",
|
|
43
43
|
"dotenv-webpack": "8.0.1",
|
|
44
44
|
"html-webpack-plugin": "5.5.1",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"react": "18.2.0",
|
|
49
49
|
"react-dom": "18.2.0",
|
|
50
50
|
"rimraf": "5.0.1",
|
|
51
|
-
"storybook": "7.0.
|
|
52
|
-
"typescript": "5.
|
|
51
|
+
"storybook": "7.0.18",
|
|
52
|
+
"typescript": "5.1.3"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@emotion/react": "^11.10.4",
|