@medplum/react 0.9.28 → 0.9.31
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/AddressDisplay.d.ts +6 -0
- package/dist/cjs/AddressInput.d.ts +8 -0
- package/dist/cjs/AnnotationInput.d.ts +8 -0
- package/dist/cjs/AttachmentArrayDisplay.d.ts +7 -0
- package/dist/cjs/AttachmentArrayInput.d.ts +9 -0
- package/dist/cjs/AttachmentDisplay.d.ts +7 -0
- package/dist/cjs/AttachmentInput.d.ts +9 -0
- package/dist/cjs/Autocomplete.d.ts +20 -0
- package/dist/cjs/Avatar.d.ts +12 -0
- package/dist/cjs/BackboneElementDisplay.d.ts +9 -0
- package/dist/cjs/BackboneElementInput.d.ts +9 -0
- package/dist/cjs/Button.d.ts +15 -0
- package/dist/cjs/CalendarInput.d.ts +16 -0
- package/dist/cjs/Checkbox.d.ts +12 -0
- package/dist/cjs/CheckboxFormSection.d.ts +9 -0
- package/dist/cjs/CodeInput.d.ts +9 -0
- package/dist/cjs/CodeableConceptDisplay.d.ts +6 -0
- package/dist/cjs/CodeableConceptInput.d.ts +9 -0
- package/dist/cjs/CodingDisplay.d.ts +6 -0
- package/dist/cjs/CodingInput.d.ts +9 -0
- package/dist/cjs/ContactDetailDisplay.d.ts +6 -0
- package/dist/cjs/ContactDetailInput.d.ts +8 -0
- package/dist/cjs/ContactPointDisplay.d.ts +6 -0
- package/dist/cjs/ContactPointInput.d.ts +8 -0
- package/dist/cjs/DateTimeInput.d.ts +23 -0
- package/dist/cjs/DefaultResourceTimeline.d.ts +6 -0
- package/dist/cjs/DescriptionList.d.ts +12 -0
- package/dist/cjs/DiagnosticReportDisplay.d.ts +12 -0
- package/dist/cjs/Dialog.d.ts +10 -0
- package/dist/cjs/Document.d.ts +7 -0
- package/dist/cjs/EncounterTimeline.d.ts +6 -0
- package/dist/cjs/ErrorBoundary.d.ts +18 -0
- package/dist/cjs/ExtensionInput.d.ts +8 -0
- package/dist/cjs/FhirPathDisplay.d.ts +9 -0
- package/dist/cjs/FhirPathTable.d.ts +29 -0
- package/dist/cjs/FooterLinks.d.ts +6 -0
- package/dist/cjs/Form.d.ts +8 -0
- package/dist/cjs/FormSection.d.ts +11 -0
- package/dist/cjs/FormUtils.d.ts +5 -0
- package/dist/cjs/GoogleButton.d.ts +8 -0
- package/dist/cjs/Header.d.ts +12 -0
- package/dist/cjs/HeaderSearchInput.d.ts +10 -0
- package/dist/cjs/HumanNameDisplay.d.ts +8 -0
- package/dist/cjs/HumanNameInput.d.ts +8 -0
- package/dist/cjs/IdentifierDisplay.d.ts +6 -0
- package/dist/cjs/IdentifierInput.d.ts +8 -0
- package/dist/cjs/Input.d.ts +22 -0
- package/dist/cjs/InputRow.d.ts +7 -0
- package/dist/cjs/Loading.d.ts +3 -0
- package/dist/cjs/Logo.d.ts +6 -0
- package/dist/cjs/MedplumLink.d.ts +13 -0
- package/dist/cjs/MedplumProvider.d.ts +34 -0
- package/dist/cjs/MenuItem.d.ts +9 -0
- package/dist/cjs/MenuSeparator.d.ts +3 -0
- package/dist/cjs/PatientTimeline.d.ts +6 -0
- package/dist/cjs/PeriodInput.d.ts +8 -0
- package/dist/cjs/PlanDefinitionBuilder.d.ts +7 -0
- package/dist/cjs/Popup.d.ts +14 -0
- package/dist/cjs/QuantityDisplay.d.ts +7 -0
- package/dist/cjs/QuantityInput.d.ts +8 -0
- package/dist/cjs/QuestionnaireBuilder.d.ts +8 -0
- package/dist/cjs/QuestionnaireForm.d.ts +14 -0
- package/dist/cjs/QuestionnaireUtils.d.ts +30 -0
- package/dist/cjs/RangeDisplay.d.ts +7 -0
- package/dist/cjs/RangeInput.d.ts +14 -0
- package/dist/cjs/RatioDisplay.d.ts +6 -0
- package/dist/cjs/RatioInput.d.ts +14 -0
- package/dist/cjs/ReferenceDisplay.d.ts +7 -0
- package/dist/cjs/ReferenceInput.d.ts +9 -0
- package/dist/cjs/RequestGroupDisplay.d.ts +9 -0
- package/dist/cjs/ResourceArrayDisplay.d.ts +11 -0
- package/dist/cjs/ResourceArrayInput.d.ts +11 -0
- package/dist/cjs/ResourceBadge.d.ts +9 -0
- package/dist/cjs/ResourceBlame.d.ts +10 -0
- package/dist/cjs/ResourceDiff.d.ts +9 -0
- package/dist/cjs/ResourceDiffTable.d.ts +9 -0
- package/dist/cjs/ResourceForm.d.ts +10 -0
- package/dist/cjs/ResourceHistoryTable.d.ts +9 -0
- package/dist/cjs/ResourceInput.d.ts +12 -0
- package/dist/cjs/ResourceName.d.ts +7 -0
- package/dist/cjs/ResourcePropertyDisplay.d.ts +24 -0
- package/dist/cjs/ResourcePropertyInput.d.ts +21 -0
- package/dist/cjs/ResourceTable.d.ts +7 -0
- package/dist/cjs/ResourceTimeline.d.ts +11 -0
- package/dist/cjs/Scheduler.d.ts +7 -0
- package/dist/cjs/Scrollable.d.ts +9 -0
- package/dist/cjs/SearchControl.d.ts +40 -0
- package/dist/cjs/SearchControlField.d.ts +41 -0
- package/dist/cjs/SearchFieldEditor.d.ts +11 -0
- package/dist/cjs/SearchFilterEditor.d.ts +11 -0
- package/dist/cjs/SearchFilterValueDialog.d.ts +15 -0
- package/dist/cjs/SearchFilterValueDisplay.d.ts +7 -0
- package/dist/cjs/SearchFilterValueInput.d.ts +12 -0
- package/dist/cjs/SearchPopupMenu.d.ts +15 -0
- package/dist/cjs/SearchUtils.d.ts +174 -0
- package/dist/cjs/Select.d.ts +16 -0
- package/dist/cjs/ServiceRequestTimeline.d.ts +6 -0
- package/dist/cjs/StatusBadge.d.ts +6 -0
- package/dist/cjs/SubMenu.d.ts +7 -0
- package/dist/cjs/Tab.d.ts +12 -0
- package/dist/cjs/TabList.d.ts +10 -0
- package/dist/cjs/TabPanel.d.ts +6 -0
- package/dist/cjs/TabSwitch.d.ts +6 -0
- package/dist/cjs/TextArea.d.ts +18 -0
- package/dist/cjs/Timeline.d.ts +17 -0
- package/dist/cjs/TimingInput.d.ts +8 -0
- package/dist/cjs/TitleBar.d.ts +6 -0
- package/dist/cjs/UploadButton.d.ts +7 -0
- package/dist/cjs/auth/AuthenticationForm.d.ts +14 -0
- package/dist/cjs/auth/ChooseProfileForm.d.ts +8 -0
- package/dist/cjs/auth/NewProjectForm.d.ts +7 -0
- package/dist/cjs/auth/NewUserForm.d.ts +10 -0
- package/dist/cjs/auth/RegisterForm.d.ts +12 -0
- package/dist/{esm → cjs/auth}/SignInForm.d.ts +1 -1
- package/dist/cjs/constants.d.ts +1 -0
- package/dist/cjs/index.d.ts +87 -0
- package/dist/cjs/index.js +660 -565
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.min.js +1 -1
- package/dist/cjs/index.min.js.map +1 -1
- package/dist/cjs/stories/AddressInput.stories.d.ts +6 -0
- package/dist/cjs/stories/AttachmentArrayInput.stories.d.ts +6 -0
- package/dist/cjs/stories/AttachmentInput.stories.d.ts +6 -0
- package/dist/cjs/stories/Autocomplete.stories.d.ts +9 -0
- package/dist/cjs/stories/Avatar.stories.d.ts +10 -0
- package/dist/cjs/stories/Button.stories.d.ts +9 -0
- package/dist/cjs/stories/CodeableConceptDisplay.stories.d.ts +8 -0
- package/dist/cjs/stories/DiagnosticReportDisplay.stories.d.ts +5 -0
- package/dist/cjs/stories/Dialog.stories.d.ts +5 -0
- package/dist/cjs/stories/EncounterTimeline.stories.d.ts +5 -0
- package/dist/cjs/stories/FhirPathDisplay.stories.d.ts +7 -0
- package/dist/cjs/stories/FormSection.stories.d.ts +6 -0
- package/dist/cjs/stories/Header.stories.d.ts +8 -0
- package/dist/cjs/stories/Input.stories.d.ts +6 -0
- package/dist/cjs/stories/Loading.stories.d.ts +5 -0
- package/dist/cjs/stories/Logo.stories.d.ts +5 -0
- package/dist/cjs/stories/PatientTimeline.stories.d.ts +5 -0
- package/dist/cjs/stories/PlanDefinitionBuilder.stories.d.ts +5 -0
- package/dist/cjs/stories/QuestionnaireBuilder.stories.d.ts +7 -0
- package/dist/cjs/stories/QuestionnaireForm.stories.d.ts +11 -0
- package/dist/cjs/stories/ReferenceInput.stories.d.ts +6 -0
- package/dist/cjs/stories/RegisterForm.stories.d.ts +7 -0
- package/dist/cjs/stories/RequestGroupDisplay.stories.d.ts +5 -0
- package/dist/cjs/stories/ResourceBlame.stories.d.ts +5 -0
- package/dist/cjs/stories/ResourceForm.stories.d.ts +12 -0
- package/dist/cjs/stories/ResourceHistoryTable.stories.d.ts +5 -0
- package/dist/cjs/stories/ResourceTable.stories.d.ts +7 -0
- package/dist/cjs/stories/Scheduler.stories.d.ts +5 -0
- package/dist/cjs/stories/SearchControl.stories.d.ts +13 -0
- package/dist/cjs/stories/Select.stories.d.ts +6 -0
- package/dist/cjs/stories/SignInForm.stories.d.ts +8 -0
- package/dist/cjs/stories/StatusBadge.stories.d.ts +5 -0
- package/dist/cjs/stories/Tabs.stories.d.ts +6 -0
- package/dist/cjs/stories/Timeline.stories.d.ts +5 -0
- package/dist/cjs/stories/TimingInput.stories.d.ts +6 -0
- package/dist/cjs/stories/UploadButton.stories.d.ts +6 -0
- package/dist/cjs/styles.css +248 -247
- package/dist/cjs/test.setup.d.ts +1 -0
- package/dist/cjs/useResource.d.ts +8 -0
- package/dist/cjs/utils/blame.d.ts +8 -0
- package/dist/cjs/utils/date.d.ts +6 -0
- package/dist/cjs/utils/diff.d.ts +16 -0
- package/dist/cjs/utils/dom.d.ts +15 -0
- package/dist/cjs/utils/outcomes.d.ts +2 -0
- package/dist/cjs/utils/recaptcha.d.ts +12 -0
- package/dist/cjs/utils.d.ts +5 -0
- package/dist/esm/Autocomplete.js +1 -0
- package/dist/esm/Autocomplete.js.map +1 -1
- package/dist/esm/CalendarInput.d.ts +1 -0
- package/dist/esm/CalendarInput.js +6 -5
- package/dist/esm/CalendarInput.js.map +1 -1
- package/dist/esm/CodeInput.js +1 -1
- package/dist/esm/CodeInput.js.map +1 -1
- package/dist/esm/CodeableConceptInput.js +1 -1
- package/dist/esm/CodeableConceptInput.js.map +1 -1
- package/dist/esm/CodingInput.js +1 -1
- package/dist/esm/CodingInput.js.map +1 -1
- package/dist/esm/FhirPathTable.js +5 -2
- package/dist/esm/FhirPathTable.js.map +1 -1
- package/dist/esm/GoogleButton.js +1 -1
- package/dist/esm/GoogleButton.js.map +1 -1
- package/dist/esm/Header.js +7 -3
- package/dist/esm/Header.js.map +1 -1
- package/dist/esm/MedplumLink.js +29 -14
- package/dist/esm/MedplumLink.js.map +1 -1
- package/dist/esm/PlanDefinitionBuilder.js +1 -1
- package/dist/esm/PlanDefinitionBuilder.js.map +1 -1
- package/dist/esm/QuestionnaireBuilder.js +1 -1
- package/dist/esm/QuestionnaireBuilder.js.map +1 -1
- package/dist/esm/QuestionnaireForm.js +2 -1
- package/dist/esm/QuestionnaireForm.js.map +1 -1
- package/dist/esm/RequestGroupDisplay.js +1 -1
- package/dist/esm/RequestGroupDisplay.js.map +1 -1
- package/dist/esm/ResourceBlame.js +1 -1
- package/dist/esm/ResourceBlame.js.map +1 -1
- package/dist/esm/ResourceDiffTable.js +1 -1
- package/dist/esm/ResourceDiffTable.js.map +1 -1
- package/dist/esm/ResourceForm.js +1 -1
- package/dist/esm/ResourceForm.js.map +1 -1
- package/dist/esm/ResourceHistoryTable.js +19 -12
- package/dist/esm/ResourceHistoryTable.js.map +1 -1
- package/dist/esm/ResourceTable.js +1 -1
- package/dist/esm/ResourceTable.js.map +1 -1
- package/dist/esm/ResourceTimeline.js +16 -8
- package/dist/esm/ResourceTimeline.js.map +1 -1
- package/dist/esm/Scheduler.js +13 -6
- package/dist/esm/Scheduler.js.map +1 -1
- package/dist/esm/SearchControl.js +5 -2
- package/dist/esm/SearchControl.js.map +1 -1
- package/dist/esm/auth/AuthenticationForm.d.ts +14 -0
- package/dist/esm/{SignInForm.js → auth/AuthenticationForm.js} +12 -75
- package/dist/esm/auth/AuthenticationForm.js.map +1 -0
- package/dist/esm/auth/ChooseProfileForm.d.ts +8 -0
- package/dist/esm/auth/ChooseProfileForm.js +32 -0
- package/dist/esm/auth/ChooseProfileForm.js.map +1 -0
- package/dist/esm/auth/NewProjectForm.d.ts +7 -0
- package/dist/esm/auth/NewProjectForm.js +42 -0
- package/dist/esm/auth/NewProjectForm.js.map +1 -0
- package/dist/esm/auth/NewUserForm.d.ts +10 -0
- package/dist/esm/auth/NewUserForm.js +87 -0
- package/dist/esm/auth/NewUserForm.js.map +1 -0
- package/dist/esm/auth/RegisterForm.d.ts +12 -0
- package/dist/esm/auth/RegisterForm.js +39 -0
- package/dist/esm/auth/RegisterForm.js.map +1 -0
- package/dist/esm/auth/SignInForm.d.ts +17 -0
- package/dist/esm/auth/SignInForm.js +52 -0
- package/dist/esm/auth/SignInForm.js.map +1 -0
- package/dist/esm/index.d.ts +3 -2
- package/dist/esm/index.js +3 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/styles.css +248 -247
- package/dist/esm/utils/recaptcha.js +10 -4
- package/dist/esm/utils/recaptcha.js.map +1 -1
- package/package.json +16 -18
- package/dist/esm/RegisterForm.d.ts +0 -18
- package/dist/esm/RegisterForm.js +0 -121
- package/dist/esm/RegisterForm.js.map +0 -1
- package/dist/esm/SignInForm.js.map +0 -1
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Filter, Operator, SearchRequest } from '@medplum/core';
|
|
3
|
+
import { Resource, SearchParameter } from '@medplum/fhirtypes';
|
|
4
|
+
import { SearchControlField } from './SearchControlField';
|
|
5
|
+
/**
|
|
6
|
+
* Sets the array of filters.
|
|
7
|
+
*
|
|
8
|
+
* @param {Array} filters The new filters.
|
|
9
|
+
*/
|
|
10
|
+
export declare function setFilters(definition: SearchRequest, filters: Filter[]): SearchRequest;
|
|
11
|
+
/**
|
|
12
|
+
* Clears all of the filters.
|
|
13
|
+
*/
|
|
14
|
+
export declare function clearFilters(definition: SearchRequest): SearchRequest;
|
|
15
|
+
/**
|
|
16
|
+
* Clears all of the filters on a certain field.
|
|
17
|
+
*
|
|
18
|
+
* @param {string} code The field key name to clear filters.
|
|
19
|
+
*/
|
|
20
|
+
export declare function clearFiltersOnField(definition: SearchRequest, code: string): SearchRequest;
|
|
21
|
+
/**
|
|
22
|
+
* Adds a filter.
|
|
23
|
+
*
|
|
24
|
+
* @param {string} field The field key name.
|
|
25
|
+
* @param {Operator} op The operation key name.
|
|
26
|
+
* @param {?string} value The filter value.
|
|
27
|
+
* @param {boolean=} opt_clear Optional flag to clear filters on the field.
|
|
28
|
+
*/
|
|
29
|
+
export declare function addFilter(definition: SearchRequest, field: string, op: Operator, value?: string, opt_clear?: boolean): SearchRequest;
|
|
30
|
+
/**
|
|
31
|
+
* Adds a field.
|
|
32
|
+
*
|
|
33
|
+
* @param {string} field The field key name.
|
|
34
|
+
*/
|
|
35
|
+
export declare function addField(definition: SearchRequest, field: string): SearchRequest;
|
|
36
|
+
/**
|
|
37
|
+
* Deletes a filter at the specified index.
|
|
38
|
+
*
|
|
39
|
+
* @param {number} index The filter index.
|
|
40
|
+
*/
|
|
41
|
+
export declare function deleteFilter(definition: SearchRequest, index: number): SearchRequest;
|
|
42
|
+
/**
|
|
43
|
+
* Adds a filter that constrains the specified field to "yesterday".
|
|
44
|
+
*
|
|
45
|
+
* @param {string} field The field key name.
|
|
46
|
+
*/
|
|
47
|
+
export declare function addYesterdayFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
48
|
+
/**
|
|
49
|
+
* Adds a filter that constrains the specified field to "today".
|
|
50
|
+
*
|
|
51
|
+
* @param {string} field The field key name.
|
|
52
|
+
*/
|
|
53
|
+
export declare function addTodayFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
54
|
+
/**
|
|
55
|
+
* Adds a filter that constrains the specified field to "tomorrow".
|
|
56
|
+
*
|
|
57
|
+
* @param {string} field The field key name.
|
|
58
|
+
*/
|
|
59
|
+
export declare function addTomorrowFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
60
|
+
/**
|
|
61
|
+
* Adds a filter that constrains the specified field to "last month".
|
|
62
|
+
*
|
|
63
|
+
* @param {string} field The field key name.
|
|
64
|
+
*/
|
|
65
|
+
export declare function addLastMonthFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
66
|
+
/**
|
|
67
|
+
* Adds a filter that constrains the specified field to "this month".
|
|
68
|
+
*
|
|
69
|
+
* @param {string} field The field key name.
|
|
70
|
+
*/
|
|
71
|
+
export declare function addThisMonthFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
72
|
+
/**
|
|
73
|
+
* Adds a filter that constrains the specified field to "next month".
|
|
74
|
+
*
|
|
75
|
+
* @param {string} field The field key name.
|
|
76
|
+
*/
|
|
77
|
+
export declare function addNextMonthFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
78
|
+
/**
|
|
79
|
+
* Adds a filter that constrains the specified field to the year to date.
|
|
80
|
+
*
|
|
81
|
+
* @param {string} field The field key name.
|
|
82
|
+
*/
|
|
83
|
+
export declare function addYearToDateFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
84
|
+
/**
|
|
85
|
+
* Adds a filter for a field equaling a specified date.
|
|
86
|
+
*
|
|
87
|
+
* @param {string} field The field key name.
|
|
88
|
+
* @param {Date} value The date.
|
|
89
|
+
*/
|
|
90
|
+
export declare function addDateEqualsFilter(definition: SearchRequest, field: string, value: Date): SearchRequest;
|
|
91
|
+
/**
|
|
92
|
+
* Adds a filter for a date before a certain date/time.
|
|
93
|
+
*
|
|
94
|
+
* @param {string} field The field key name.
|
|
95
|
+
* @param {Operator} op The date/time operation.
|
|
96
|
+
* @param {Date} value The date.
|
|
97
|
+
*/
|
|
98
|
+
export declare function addDateFilter(definition: SearchRequest, field: string, op: Operator, value: Date): SearchRequest;
|
|
99
|
+
/**
|
|
100
|
+
* Adds a filter for a date between two dates (inclusive of both dates).
|
|
101
|
+
*
|
|
102
|
+
* @param {string} field The field key name.
|
|
103
|
+
* @param {Date} d1 The start date.
|
|
104
|
+
* @param {Date} d2 The end date.
|
|
105
|
+
*/
|
|
106
|
+
export declare function addDateFilterBetween(definition: SearchRequest, field: string, d1: Date, d2: Date): SearchRequest;
|
|
107
|
+
/**
|
|
108
|
+
* Adds a filter that constrains the specified field to "missing".
|
|
109
|
+
*
|
|
110
|
+
* @param {string} field The field key name.
|
|
111
|
+
*/
|
|
112
|
+
export declare function addMissingFilter(definition: SearchRequest, field: string, value?: boolean): SearchRequest;
|
|
113
|
+
/**
|
|
114
|
+
* Returns true if the search has any filters on the specified field.
|
|
115
|
+
*
|
|
116
|
+
* @param {string} code The field key name.
|
|
117
|
+
*/
|
|
118
|
+
export declare function hasFilterOnField(definition: SearchRequest, code: string): boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Sets the offset (starting at zero).
|
|
121
|
+
*
|
|
122
|
+
* @param {number} offset The offset number.
|
|
123
|
+
*/
|
|
124
|
+
export declare function setOffset(definition: SearchRequest, offset: number): SearchRequest;
|
|
125
|
+
/**
|
|
126
|
+
* Moves the page forward or backward.
|
|
127
|
+
*
|
|
128
|
+
* @param {number} delta The delta to the page number.
|
|
129
|
+
* @return {boolean} True if the page actually moved; false otherwise.
|
|
130
|
+
*/
|
|
131
|
+
export declare function movePage(definition: SearchRequest, delta: number): SearchRequest;
|
|
132
|
+
/**
|
|
133
|
+
* Sorts the search by the specified key, and optional direction.
|
|
134
|
+
* Direction defaults to ascending ('asc') if not specified.
|
|
135
|
+
*
|
|
136
|
+
* @param {string} sortField The sort key.
|
|
137
|
+
*/
|
|
138
|
+
export declare function setSort(definition: SearchRequest, sort: string, desc?: boolean): SearchRequest;
|
|
139
|
+
/**
|
|
140
|
+
* Toggles the sort of the search by key.
|
|
141
|
+
* If the search is already sorted by the key, reverses the direction.
|
|
142
|
+
* If the search is not sorted by the key, sort in ascending order.
|
|
143
|
+
*
|
|
144
|
+
* @param {string} key The field key name.
|
|
145
|
+
*/
|
|
146
|
+
export declare function toggleSort(definition: SearchRequest, key: string): SearchRequest;
|
|
147
|
+
export declare function getSortField(definition: SearchRequest): string | undefined;
|
|
148
|
+
export declare function isSortDescending(definition: SearchRequest): boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Returns a list of operators for a search parameter.
|
|
151
|
+
* @param searchParam The search parameter.
|
|
152
|
+
* @returns The list of operators that can be used for the search parameter.
|
|
153
|
+
*/
|
|
154
|
+
export declare function getSearchOperators(searchParam: SearchParameter): Operator[] | undefined;
|
|
155
|
+
/**
|
|
156
|
+
* Returns a string representing the operation.
|
|
157
|
+
*
|
|
158
|
+
* @param {string} op The operation code.
|
|
159
|
+
* @return {string} A display string for the operation.
|
|
160
|
+
*/
|
|
161
|
+
export declare function getOpString(op: Operator): string;
|
|
162
|
+
/**
|
|
163
|
+
* Returns a field display name.
|
|
164
|
+
* @param key The field key.
|
|
165
|
+
* @returns The field display name.
|
|
166
|
+
*/
|
|
167
|
+
export declare function buildFieldNameString(key: string): string;
|
|
168
|
+
/**
|
|
169
|
+
* Returns a fragment to be displayed in the search table for the value.
|
|
170
|
+
* @param resource The parent resource.
|
|
171
|
+
* @param key The search code or FHIRPath expression.
|
|
172
|
+
* @returns The fragment to display.
|
|
173
|
+
*/
|
|
174
|
+
export declare function renderValue(resource: Resource, field: SearchControlField): string | JSX.Element | null | undefined;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OperationOutcome } from '@medplum/fhirtypes';
|
|
2
|
+
import React, { RefObject } from 'react';
|
|
3
|
+
import './Select.css';
|
|
4
|
+
export interface SelectProps {
|
|
5
|
+
name?: string;
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
autoFocus?: boolean;
|
|
9
|
+
inputRef?: RefObject<HTMLSelectElement>;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
outcome?: OperationOutcome;
|
|
12
|
+
testid?: string;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
onChange?: (newValue: string) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare function Select(props: SelectProps): JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Reference, ServiceRequest } from '@medplum/fhirtypes';
|
|
3
|
+
export interface ServiceRequestTimelineProps {
|
|
4
|
+
serviceRequest: ServiceRequest | Reference<ServiceRequest>;
|
|
5
|
+
}
|
|
6
|
+
export declare function ServiceRequestTimeline(props: ServiceRequestTimelineProps): JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './Tab.css';
|
|
3
|
+
export interface TabClickHandler {
|
|
4
|
+
(name: string, button: number): void;
|
|
5
|
+
}
|
|
6
|
+
export interface TabProps {
|
|
7
|
+
name: string;
|
|
8
|
+
label: string;
|
|
9
|
+
selected?: boolean;
|
|
10
|
+
onClick?: TabClickHandler;
|
|
11
|
+
}
|
|
12
|
+
export declare function Tab(props: TabProps): JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TabClickHandler } from './Tab';
|
|
3
|
+
import './Surface.css';
|
|
4
|
+
import './TabList.css';
|
|
5
|
+
export interface TabListProps {
|
|
6
|
+
value?: string;
|
|
7
|
+
onChange: TabClickHandler;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare function TabList(props: TabListProps): JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OperationOutcome } from '@medplum/fhirtypes';
|
|
2
|
+
import React, { RefObject } from 'react';
|
|
3
|
+
import './TextArea.css';
|
|
4
|
+
export interface TextAreaProps {
|
|
5
|
+
name?: string;
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
autoComplete?: string;
|
|
9
|
+
autoFocus?: boolean;
|
|
10
|
+
inputRef?: RefObject<HTMLTextAreaElement>;
|
|
11
|
+
outcome?: OperationOutcome;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
testid?: string;
|
|
14
|
+
monospace?: boolean;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
onChange?: (newValue: string) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function TextArea(props: TextAreaProps): JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Reference, Resource } from '@medplum/fhirtypes';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import './Timeline.css';
|
|
4
|
+
export interface TimelineProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function Timeline(props: TimelineProps): JSX.Element;
|
|
8
|
+
export interface TimelineItemProps {
|
|
9
|
+
resource: Resource;
|
|
10
|
+
profile?: Reference;
|
|
11
|
+
socialEnabled?: boolean;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
padding?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
popupMenuItems?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare function TimelineItem(props: TimelineItemProps): JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Timing } from '@medplum/fhirtypes';
|
|
3
|
+
export interface TimingInputProps {
|
|
4
|
+
name: string;
|
|
5
|
+
defaultValue?: Timing;
|
|
6
|
+
onChange?: (newValue: Timing) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function TimingInput(props: TimingInputProps): JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Attachment } from '@medplum/fhirtypes';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface UploadButtonProps {
|
|
4
|
+
onUpload: (attachment: Attachment) => void;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function UploadButton(props: UploadButtonProps): JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LoginAuthenticationResponse } from '@medplum/core';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface AuthenticationFormProps {
|
|
4
|
+
readonly projectId?: string;
|
|
5
|
+
readonly clientId?: string;
|
|
6
|
+
readonly scope?: string;
|
|
7
|
+
readonly nonce?: string;
|
|
8
|
+
readonly googleClientId?: string;
|
|
9
|
+
readonly onForgotPassword?: () => void;
|
|
10
|
+
readonly onRegister?: () => void;
|
|
11
|
+
readonly handleAuthResponse: (response: LoginAuthenticationResponse) => void;
|
|
12
|
+
readonly children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare function AuthenticationForm(props: AuthenticationFormProps): JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ProjectMembership } from '@medplum/fhirtypes';
|
|
3
|
+
export interface ChooseProfileFormProps {
|
|
4
|
+
login: string;
|
|
5
|
+
memberships: ProjectMembership[];
|
|
6
|
+
handleAuthResponse: (response: any) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function ChooseProfileForm(props: ChooseProfileFormProps): JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LoginAuthenticationResponse } from '@medplum/core';
|
|
3
|
+
export interface NewProjectFormProps {
|
|
4
|
+
login: string;
|
|
5
|
+
handleAuthResponse: (response: LoginAuthenticationResponse) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function NewProjectForm(props: NewProjectFormProps): JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LoginAuthenticationResponse } from '@medplum/core';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface NewUserFormProps {
|
|
4
|
+
readonly projectId: string;
|
|
5
|
+
readonly googleClientId?: string;
|
|
6
|
+
readonly recaptchaSiteKey: string;
|
|
7
|
+
readonly children?: React.ReactNode;
|
|
8
|
+
readonly handleAuthResponse: (response: LoginAuthenticationResponse) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function NewUserForm(props: NewUserFormProps): JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './SignInForm.css';
|
|
3
|
+
import '../util.css';
|
|
4
|
+
export interface RegisterFormProps {
|
|
5
|
+
readonly type: 'patient' | 'project';
|
|
6
|
+
readonly projectId?: string;
|
|
7
|
+
readonly googleClientId?: string;
|
|
8
|
+
readonly recaptchaSiteKey: string;
|
|
9
|
+
readonly children?: React.ReactNode;
|
|
10
|
+
readonly onSuccess: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function RegisterForm(props: RegisterFormProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_IGNORED_PROPERTIES: string[];
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export * from './AddressDisplay';
|
|
2
|
+
export * from './AddressInput';
|
|
3
|
+
export * from './AttachmentArrayDisplay';
|
|
4
|
+
export * from './AttachmentArrayInput';
|
|
5
|
+
export * from './AttachmentInput';
|
|
6
|
+
export * from './auth/RegisterForm';
|
|
7
|
+
export * from './auth/SignInForm';
|
|
8
|
+
export * from './Autocomplete';
|
|
9
|
+
export * from './Avatar';
|
|
10
|
+
export * from './BackboneElementInput';
|
|
11
|
+
export * from './Button';
|
|
12
|
+
export * from './Checkbox';
|
|
13
|
+
export * from './CheckboxFormSection';
|
|
14
|
+
export * from './CodeableConceptDisplay';
|
|
15
|
+
export * from './CodeableConceptInput';
|
|
16
|
+
export * from './CodeInput';
|
|
17
|
+
export * from './ContactDetailDisplay';
|
|
18
|
+
export * from './ContactDetailInput';
|
|
19
|
+
export * from './ContactPointDisplay';
|
|
20
|
+
export * from './ContactPointInput';
|
|
21
|
+
export * from './DateTimeInput';
|
|
22
|
+
export * from './DefaultResourceTimeline';
|
|
23
|
+
export * from './DescriptionList';
|
|
24
|
+
export * from './DiagnosticReportDisplay';
|
|
25
|
+
export * from './Document';
|
|
26
|
+
export * from './EncounterTimeline';
|
|
27
|
+
export * from './ErrorBoundary';
|
|
28
|
+
export * from './FhirPathTable';
|
|
29
|
+
export * from './FooterLinks';
|
|
30
|
+
export * from './Form';
|
|
31
|
+
export * from './FormSection';
|
|
32
|
+
export * from './FormUtils';
|
|
33
|
+
export * from './Header';
|
|
34
|
+
export * from './HumanNameDisplay';
|
|
35
|
+
export * from './HumanNameInput';
|
|
36
|
+
export * from './IdentifierInput';
|
|
37
|
+
export * from './Input';
|
|
38
|
+
export * from './InputRow';
|
|
39
|
+
export * from './Loading';
|
|
40
|
+
export * from './Logo';
|
|
41
|
+
export * from './MedplumLink';
|
|
42
|
+
export * from './MedplumProvider';
|
|
43
|
+
export * from './MenuItem';
|
|
44
|
+
export * from './PatientTimeline';
|
|
45
|
+
export * from './PlanDefinitionBuilder';
|
|
46
|
+
export * from './Popup';
|
|
47
|
+
export * from './QuestionnaireBuilder';
|
|
48
|
+
export * from './QuestionnaireForm';
|
|
49
|
+
export * from './QuestionnaireUtils';
|
|
50
|
+
export * from './RangeDisplay';
|
|
51
|
+
export * from './RangeInput';
|
|
52
|
+
export * from './ReferenceInput';
|
|
53
|
+
export * from './RequestGroupDisplay';
|
|
54
|
+
export * from './ResourceArrayDisplay';
|
|
55
|
+
export * from './ResourceArrayInput';
|
|
56
|
+
export * from './ResourceBadge';
|
|
57
|
+
export * from './ResourceBlame';
|
|
58
|
+
export * from './ResourceDiff';
|
|
59
|
+
export * from './ResourceForm';
|
|
60
|
+
export * from './ResourceHistoryTable';
|
|
61
|
+
export * from './ResourceInput';
|
|
62
|
+
export * from './ResourceName';
|
|
63
|
+
export * from './ResourcePropertyDisplay';
|
|
64
|
+
export * from './ResourcePropertyInput';
|
|
65
|
+
export * from './ResourceTable';
|
|
66
|
+
export * from './ResourceTimeline';
|
|
67
|
+
export * from './Scheduler';
|
|
68
|
+
export * from './Scrollable';
|
|
69
|
+
export * from './SearchControl';
|
|
70
|
+
export * from './SearchFieldEditor';
|
|
71
|
+
export * from './SearchFilterEditor';
|
|
72
|
+
export * from './SearchUtils';
|
|
73
|
+
export * from './Select';
|
|
74
|
+
export * from './ServiceRequestTimeline';
|
|
75
|
+
export * from './StatusBadge';
|
|
76
|
+
export * from './Tab';
|
|
77
|
+
export * from './TabList';
|
|
78
|
+
export * from './TabPanel';
|
|
79
|
+
export * from './TabSwitch';
|
|
80
|
+
export * from './TextArea';
|
|
81
|
+
export * from './Timeline';
|
|
82
|
+
export * from './TitleBar';
|
|
83
|
+
export * from './UploadButton';
|
|
84
|
+
export * from './useResource';
|
|
85
|
+
export * from './utils';
|
|
86
|
+
export * from './utils/date';
|
|
87
|
+
export * from './utils/recaptcha';
|