@medplum/react 2.1.9 → 2.1.10
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/api-extractor.json +3 -0
- package/dist/types.d.ts +1371 -0
- package/package.json +4 -4
- package/dist/types/AddressDisplay/AddressDisplay.d.ts +0 -6
- package/dist/types/AddressInput/AddressInput.d.ts +0 -8
- package/dist/types/AnnotationInput/AnnotationInput.d.ts +0 -8
- package/dist/types/AppShell/AppShell.d.ts +0 -14
- package/dist/types/AppShell/Header.d.ts +0 -11
- package/dist/types/AppShell/HeaderSearchInput.d.ts +0 -8
- package/dist/types/AppShell/Navbar.d.ts +0 -19
- package/dist/types/AsyncAutocomplete/AsyncAutocomplete.d.ts +0 -15
- package/dist/types/AttachmentArrayDisplay/AttachmentArrayDisplay.d.ts +0 -7
- package/dist/types/AttachmentArrayInput/AttachmentArrayInput.d.ts +0 -9
- package/dist/types/AttachmentButton/AttachmentButton.d.ts +0 -12
- package/dist/types/AttachmentDisplay/AttachmentDisplay.d.ts +0 -7
- package/dist/types/AttachmentInput/AttachmentInput.d.ts +0 -9
- package/dist/types/BackboneElementDisplay/BackboneElementDisplay.d.ts +0 -9
- package/dist/types/BackboneElementInput/BackboneElementInput.d.ts +0 -9
- package/dist/types/BookmarkDialog/BookmarkDialog.d.ts +0 -11
- package/dist/types/CalendarInput/CalendarInput.d.ts +0 -8
- package/dist/types/CalendarInput/CalendarInput.utils.d.ts +0 -7
- package/dist/types/CheckboxFormSection/CheckboxFormSection.d.ts +0 -9
- package/dist/types/CodeInput/CodeInput.d.ts +0 -13
- package/dist/types/CodeableConceptDisplay/CodeableConceptDisplay.d.ts +0 -6
- package/dist/types/CodeableConceptInput/CodeableConceptInput.d.ts +0 -10
- package/dist/types/CodingDisplay/CodingDisplay.d.ts +0 -6
- package/dist/types/CodingInput/CodingInput.d.ts +0 -10
- package/dist/types/ContactDetailDisplay/ContactDetailDisplay.d.ts +0 -6
- package/dist/types/ContactDetailInput/ContactDetailInput.d.ts +0 -8
- package/dist/types/ContactPointDisplay/ContactPointDisplay.d.ts +0 -6
- package/dist/types/ContactPointInput/ContactPointInput.d.ts +0 -8
- package/dist/types/Container/Container.d.ts +0 -3
- package/dist/types/DateTimeInput/DateTimeInput.d.ts +0 -20
- package/dist/types/DateTimeInput/DateTimeInput.utils.d.ts +0 -12
- package/dist/types/DefaultResourceTimeline/DefaultResourceTimeline.d.ts +0 -6
- package/dist/types/DescriptionList/DescriptionList.d.ts +0 -11
- package/dist/types/DiagnosticReportDisplay/DiagnosticReportDisplay.d.ts +0 -17
- package/dist/types/Document/Document.d.ts +0 -3
- package/dist/types/EncounterTimeline/EncounterTimeline.d.ts +0 -6
- package/dist/types/ErrorBoundary/ErrorBoundary.d.ts +0 -18
- package/dist/types/ExtensionInput/ExtensionInput.d.ts +0 -8
- package/dist/types/FhirPathDisplay/FhirPathDisplay.d.ts +0 -8
- package/dist/types/FhirPathTable/FhirPathTable.d.ts +0 -29
- package/dist/types/Form/Form.d.ts +0 -8
- package/dist/types/Form/FormUtils.d.ts +0 -6
- package/dist/types/FormSection/FormSection.d.ts +0 -11
- package/dist/types/GoogleButton/GoogleButton.d.ts +0 -7
- package/dist/types/GoogleButton/GoogleButton.utils.d.ts +0 -1
- package/dist/types/HumanNameDisplay/HumanNameDisplay.d.ts +0 -8
- package/dist/types/HumanNameInput/HumanNameInput.d.ts +0 -8
- package/dist/types/IdentifierDisplay/IdentifierDisplay.d.ts +0 -6
- package/dist/types/IdentifierInput/IdentifierInput.d.ts +0 -8
- package/dist/types/Loading/Loading.d.ts +0 -2
- package/dist/types/Logo/Logo.d.ts +0 -6
- package/dist/types/MedplumLink/MedplumLink.d.ts +0 -11
- package/dist/types/MoneyDisplay/MoneyDisplay.d.ts +0 -6
- package/dist/types/MoneyInput/MoneyInput.d.ts +0 -10
- package/dist/types/NoteDisplay/NoteDisplay.d.ts +0 -6
- package/dist/types/OperationOutcomeAlert/OperationOutcomeAlert.d.ts +0 -7
- package/dist/types/Panel/Panel.d.ts +0 -11
- package/dist/types/PatientTimeline/PatientTimeline.d.ts +0 -6
- package/dist/types/PeriodInput/PeriodInput.d.ts +0 -8
- package/dist/types/PlanDefinitionBuilder/PlanDefinitionBuilder.d.ts +0 -7
- package/dist/types/QuantityDisplay/QuantityDisplay.d.ts +0 -6
- package/dist/types/QuantityInput/QuantityInput.d.ts +0 -11
- package/dist/types/QuestionnaireBuilder/QuestionnaireBuilder.d.ts +0 -7
- package/dist/types/QuestionnaireForm/QuestionnaireForm.d.ts +0 -17
- package/dist/types/QuestionnaireForm/QuestionnaireFormItem/QuestionnaireFormItem.d.ts +0 -11
- package/dist/types/RangeDisplay/RangeDisplay.d.ts +0 -6
- package/dist/types/RangeInput/RangeInput.d.ts +0 -14
- package/dist/types/RatioDisplay/RatioDisplay.d.ts +0 -6
- package/dist/types/RatioInput/RatioInput.d.ts +0 -14
- package/dist/types/ReferenceDisplay/ReferenceDisplay.d.ts +0 -7
- package/dist/types/ReferenceInput/ReferenceInput.d.ts +0 -12
- package/dist/types/ReferenceRangeEditor/ReferenceRangeEditor.d.ts +0 -26
- package/dist/types/RequestGroupDisplay/RequestGroupDisplay.d.ts +0 -8
- package/dist/types/ResourceArrayDisplay/ResourceArrayDisplay.d.ts +0 -11
- package/dist/types/ResourceArrayInput/ResourceArrayInput.d.ts +0 -11
- package/dist/types/ResourceAvatar/ResourceAvatar.d.ts +0 -8
- package/dist/types/ResourceBadge/ResourceBadge.d.ts +0 -7
- package/dist/types/ResourceBlame/ResourceBlame.d.ts +0 -8
- package/dist/types/ResourceBlame/ResourceBlame.utils.d.ts +0 -3
- package/dist/types/ResourceDiff/ResourceDiff.d.ts +0 -8
- package/dist/types/ResourceDiffTable/ResourceDiffTable.d.ts +0 -7
- package/dist/types/ResourceForm/ResourceForm.d.ts +0 -9
- package/dist/types/ResourceForm/ResourceForm.utils.d.ts +0 -2
- package/dist/types/ResourceHistoryTable/ResourceHistoryTable.d.ts +0 -8
- package/dist/types/ResourceInput/ResourceInput.d.ts +0 -12
- package/dist/types/ResourceName/ResourceName.d.ts +0 -8
- package/dist/types/ResourcePropertyDisplay/ResourcePropertyDisplay.d.ts +0 -17
- package/dist/types/ResourcePropertyDisplay/ResourcePropertyDisplay.utils.d.ts +0 -12
- package/dist/types/ResourcePropertyInput/ResourcePropertyInput.d.ts +0 -21
- package/dist/types/ResourceTable/ResourceTable.d.ts +0 -20
- package/dist/types/ResourceTimeline/ResourceTimeline.d.ts +0 -10
- package/dist/types/ResourceTypeInput/ResourceTypeInput.d.ts +0 -12
- package/dist/types/Scheduler/Scheduler.d.ts +0 -7
- package/dist/types/SearchControl/SearchControl.d.ts +0 -43
- package/dist/types/SearchControl/SearchControlField.d.ts +0 -40
- package/dist/types/SearchControl/SearchUtils.d.ts +0 -173
- package/dist/types/SearchExportDialog/SearchExportDialog.d.ts +0 -15
- package/dist/types/SearchFieldEditor/SearchFieldEditor.d.ts +0 -10
- package/dist/types/SearchFilterEditor/SearchFilterEditor.d.ts +0 -9
- package/dist/types/SearchFilterValueDialog/SearchFilterValueDialog.d.ts +0 -14
- package/dist/types/SearchFilterValueDisplay/SearchFilterValueDisplay.d.ts +0 -7
- package/dist/types/SearchFilterValueInput/SearchFilterValueInput.d.ts +0 -10
- package/dist/types/SearchPopupMenu/SearchPopupMenu.d.ts +0 -10
- package/dist/types/ServiceRequestTimeline/ServiceRequestTimeline.d.ts +0 -6
- package/dist/types/StatusBadge/StatusBadge.d.ts +0 -5
- package/dist/types/Timeline/Timeline.d.ts +0 -15
- package/dist/types/TimingInput/TimingInput.d.ts +0 -8
- package/dist/types/ValueSetAutocomplete/ValueSetAutocomplete.d.ts +0 -15
- package/dist/types/auth/AuthenticationForm.d.ts +0 -27
- package/dist/types/auth/ChooseProfileForm.d.ts +0 -9
- package/dist/types/auth/ChooseScopeForm.d.ts +0 -8
- package/dist/types/auth/MfaForm.d.ts +0 -7
- package/dist/types/auth/NewProjectForm.d.ts +0 -7
- package/dist/types/auth/NewUserForm.d.ts +0 -11
- package/dist/types/auth/RegisterForm.d.ts +0 -11
- package/dist/types/auth/SignInForm.d.ts +0 -26
- package/dist/types/constants.d.ts +0 -1
- package/dist/types/index.d.ts +0 -92
- package/dist/types/stories/covid19.d.ts +0 -15
- package/dist/types/stories/healthgorilla.d.ts +0 -6
- package/dist/types/stories/referenceLab.d.ts +0 -6
- package/dist/types/test.setup.d.ts +0 -1
- package/dist/types/utils/blame.d.ts +0 -8
- package/dist/types/utils/date.d.ts +0 -7
- package/dist/types/utils/diff.d.ts +0 -16
- package/dist/types/utils/dom.d.ts +0 -15
- package/dist/types/utils/outcomes.d.ts +0 -3
- package/dist/types/utils/questionnaire.d.ts +0 -25
- package/dist/types/utils/recaptcha.d.ts +0 -12
- package/dist/types/utils/script.d.ts +0 -6
|
@@ -1,173 +0,0 @@
|
|
|
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
|
-
* @param definition The original search request.
|
|
8
|
-
* @param filters The new filters.
|
|
9
|
-
* @returns The updated search request.
|
|
10
|
-
*/
|
|
11
|
-
export declare function setFilters(definition: SearchRequest, filters: Filter[]): SearchRequest;
|
|
12
|
-
/**
|
|
13
|
-
* Clears all of the filters.
|
|
14
|
-
* @param definition The original search request.
|
|
15
|
-
* @returns The updated search request.
|
|
16
|
-
*/
|
|
17
|
-
export declare function clearFilters(definition: SearchRequest): SearchRequest;
|
|
18
|
-
/**
|
|
19
|
-
* Clears all of the filters on a certain field.
|
|
20
|
-
* @param definition The original search request.
|
|
21
|
-
* @param code The field key name to clear filters.
|
|
22
|
-
* @returns The updated search request.
|
|
23
|
-
*/
|
|
24
|
-
export declare function clearFiltersOnField(definition: SearchRequest, code: string): SearchRequest;
|
|
25
|
-
/**
|
|
26
|
-
* Adds a filter.
|
|
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.
|
|
33
|
-
*/
|
|
34
|
-
export declare function addFilter(definition: SearchRequest, field: string, op: Operator, value?: string, opt_clear?: boolean): SearchRequest;
|
|
35
|
-
/**
|
|
36
|
-
* Adds a field.
|
|
37
|
-
* @param definition The original search request.
|
|
38
|
-
* @param field The field key name.
|
|
39
|
-
* @returns The updated search request.
|
|
40
|
-
*/
|
|
41
|
-
export declare function addField(definition: SearchRequest, field: string): SearchRequest;
|
|
42
|
-
/**
|
|
43
|
-
* Deletes a filter at the specified index.
|
|
44
|
-
* @param definition The original search request.
|
|
45
|
-
* @param index The filter index.
|
|
46
|
-
* @returns The updated search request.
|
|
47
|
-
*/
|
|
48
|
-
export declare function deleteFilter(definition: SearchRequest, index: number): SearchRequest;
|
|
49
|
-
/**
|
|
50
|
-
* Adds a filter that constrains the specified field to "yesterday".
|
|
51
|
-
* @param definition The original search request.
|
|
52
|
-
* @param field The field key name.
|
|
53
|
-
* @returns The updated search request.
|
|
54
|
-
*/
|
|
55
|
-
export declare function addYesterdayFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
56
|
-
/**
|
|
57
|
-
* Adds a filter that constrains the specified field to "today".
|
|
58
|
-
* @param definition The original search request.
|
|
59
|
-
* @param field The field key name.
|
|
60
|
-
* @returns The updated search request.
|
|
61
|
-
*/
|
|
62
|
-
export declare function addTodayFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
63
|
-
/**
|
|
64
|
-
* Adds a filter that constrains the specified field to "tomorrow".
|
|
65
|
-
* @param definition The original search request.
|
|
66
|
-
* @param field The field key name.
|
|
67
|
-
* @returns The updated search request.
|
|
68
|
-
*/
|
|
69
|
-
export declare function addTomorrowFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
70
|
-
/**
|
|
71
|
-
* Adds a filter that constrains the specified field to "last month".
|
|
72
|
-
* @param definition The original search request.
|
|
73
|
-
* @param field The field key name.
|
|
74
|
-
* @returns The updated search request.
|
|
75
|
-
*/
|
|
76
|
-
export declare function addLastMonthFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
77
|
-
/**
|
|
78
|
-
* Adds a filter that constrains the specified field to "this month".
|
|
79
|
-
* @param definition The original search request.
|
|
80
|
-
* @param field The field key name.
|
|
81
|
-
* @returns The updated search request.
|
|
82
|
-
*/
|
|
83
|
-
export declare function addThisMonthFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
84
|
-
/**
|
|
85
|
-
* Adds a filter that constrains the specified field to "next month".
|
|
86
|
-
* @param definition The original search request.
|
|
87
|
-
* @param field The field key name.
|
|
88
|
-
* @returns The updated search request.
|
|
89
|
-
*/
|
|
90
|
-
export declare function addNextMonthFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
91
|
-
/**
|
|
92
|
-
* Adds a filter that constrains the specified field to the year to date.
|
|
93
|
-
* @param definition The original search request.
|
|
94
|
-
* @param field The field key name.
|
|
95
|
-
* @returns The updated search request.
|
|
96
|
-
*/
|
|
97
|
-
export declare function addYearToDateFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
98
|
-
/**
|
|
99
|
-
* Adds a filter for a date between two dates (inclusive of both dates).
|
|
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.
|
|
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
|
-
* @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.
|
|
113
|
-
*/
|
|
114
|
-
export declare function addMissingFilter(definition: SearchRequest, field: string, value?: boolean): SearchRequest;
|
|
115
|
-
/**
|
|
116
|
-
* Sets the offset (starting at zero).
|
|
117
|
-
* @param definition The original search request.
|
|
118
|
-
* @param offset The offset number.
|
|
119
|
-
* @returns The updated search request.
|
|
120
|
-
*/
|
|
121
|
-
export declare function setOffset(definition: SearchRequest, offset: number): SearchRequest;
|
|
122
|
-
/**
|
|
123
|
-
* Creates a new search request with the search offset at the specified page.
|
|
124
|
-
* @param definition The search definition.
|
|
125
|
-
* @param page The new page number
|
|
126
|
-
* @returns The new search definition.
|
|
127
|
-
*/
|
|
128
|
-
export declare function setPage(definition: SearchRequest, page: number): SearchRequest;
|
|
129
|
-
/**
|
|
130
|
-
* Sorts the search by the specified key, and optional direction.
|
|
131
|
-
* Direction defaults to ascending ('asc') if not specified.
|
|
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.
|
|
136
|
-
*/
|
|
137
|
-
export declare function setSort(definition: SearchRequest, sort: string, desc?: boolean): SearchRequest;
|
|
138
|
-
/**
|
|
139
|
-
* Toggles the sort of the search by key.
|
|
140
|
-
* If the search is already sorted by the key, reverses the direction.
|
|
141
|
-
* If the search is not sorted by the key, sort in ascending order.
|
|
142
|
-
* @param definition The original search request.
|
|
143
|
-
* @param key The field key name.
|
|
144
|
-
* @returns The updated search request.
|
|
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
|
-
* @param op The operation code.
|
|
158
|
-
* @returns A display string for the operation.
|
|
159
|
-
*/
|
|
160
|
-
export declare function getOpString(op: Operator): string;
|
|
161
|
-
/**
|
|
162
|
-
* Returns a field display name.
|
|
163
|
-
* @param key The field key.
|
|
164
|
-
* @returns The field display name.
|
|
165
|
-
*/
|
|
166
|
-
export declare function buildFieldNameString(key: string): string;
|
|
167
|
-
/**
|
|
168
|
-
* Returns a fragment to be displayed in the search table for the value.
|
|
169
|
-
* @param resource The parent resource.
|
|
170
|
-
* @param field The search code or FHIRPath expression.
|
|
171
|
-
* @returns The fragment to display.
|
|
172
|
-
*/
|
|
173
|
-
export declare function renderValue(resource: Resource, field: SearchControlField): string | JSX.Element | null | undefined;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface SearchExportDialogProps {
|
|
3
|
-
visible: boolean;
|
|
4
|
-
exportCsv?: () => void;
|
|
5
|
-
exportTransactionBundle?: () => void;
|
|
6
|
-
onCancel: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare function SearchExportDialog(props: SearchExportDialogProps): JSX.Element | null;
|
|
9
|
-
interface ExportButtonProps {
|
|
10
|
-
text: string;
|
|
11
|
-
exportLogic: () => void;
|
|
12
|
-
onCancel: () => void;
|
|
13
|
-
}
|
|
14
|
-
export declare function ExportButton(props: ExportButtonProps): JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SearchRequest } from '@medplum/core';
|
|
3
|
-
interface SearchFieldEditorProps {
|
|
4
|
-
visible: boolean;
|
|
5
|
-
search: SearchRequest;
|
|
6
|
-
onOk: (search: SearchRequest) => void;
|
|
7
|
-
onCancel: () => void;
|
|
8
|
-
}
|
|
9
|
-
export declare function SearchFieldEditor(props: SearchFieldEditorProps): JSX.Element | null;
|
|
10
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SearchRequest } from '@medplum/core';
|
|
3
|
-
export interface SearchFilterEditorProps {
|
|
4
|
-
visible: boolean;
|
|
5
|
-
search: SearchRequest;
|
|
6
|
-
onOk: (search: SearchRequest) => void;
|
|
7
|
-
onCancel: () => void;
|
|
8
|
-
}
|
|
9
|
-
export declare function SearchFilterEditor(props: SearchFilterEditorProps): JSX.Element | null;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Filter } from '@medplum/core';
|
|
3
|
-
import { SearchParameter } from '@medplum/fhirtypes';
|
|
4
|
-
export interface SearchFilterValueDialogProps {
|
|
5
|
-
title: string;
|
|
6
|
-
visible: boolean;
|
|
7
|
-
resourceType: string;
|
|
8
|
-
searchParam?: SearchParameter;
|
|
9
|
-
filter?: Filter;
|
|
10
|
-
defaultValue?: string;
|
|
11
|
-
onOk: (filter: Filter) => void;
|
|
12
|
-
onCancel: () => void;
|
|
13
|
-
}
|
|
14
|
-
export declare function SearchFilterValueDialog(props: SearchFilterValueDialogProps): JSX.Element | null;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Filter } from '@medplum/core';
|
|
3
|
-
export interface SearchFilterValueDisplayProps {
|
|
4
|
-
readonly resourceType: string;
|
|
5
|
-
readonly filter: Filter;
|
|
6
|
-
}
|
|
7
|
-
export declare function SearchFilterValueDisplay(props: SearchFilterValueDisplayProps): JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SearchParameter } from '@medplum/fhirtypes';
|
|
3
|
-
export interface SearchFilterValueInputProps {
|
|
4
|
-
resourceType: string;
|
|
5
|
-
searchParam: SearchParameter;
|
|
6
|
-
defaultValue?: string;
|
|
7
|
-
autoFocus?: boolean;
|
|
8
|
-
onChange: (value: string) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare function SearchFilterValueInput(props: SearchFilterValueInputProps): JSX.Element | null;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Filter, SearchRequest } from '@medplum/core';
|
|
3
|
-
import { SearchParameter } from '@medplum/fhirtypes';
|
|
4
|
-
export interface SearchPopupMenuProps {
|
|
5
|
-
search: SearchRequest;
|
|
6
|
-
searchParams?: SearchParameter[];
|
|
7
|
-
onPrompt: (searchParam: SearchParameter, filter: Filter) => void;
|
|
8
|
-
onChange: (definition: SearchRequest) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare function SearchPopupMenu(props: SearchPopupMenuProps): JSX.Element | null;
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Reference, Resource } from '@medplum/fhirtypes';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { PanelProps } from '../Panel/Panel';
|
|
4
|
-
export interface TimelineProps {
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare function Timeline(props: TimelineProps): JSX.Element;
|
|
8
|
-
export interface TimelineItemProps extends PanelProps {
|
|
9
|
-
resource: Resource;
|
|
10
|
-
profile?: Reference;
|
|
11
|
-
dateTime?: string;
|
|
12
|
-
padding?: boolean;
|
|
13
|
-
popupMenuItems?: React.ReactNode;
|
|
14
|
-
}
|
|
15
|
-
export declare function TimelineItem(props: TimelineItemProps): JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ValueSetExpansionContains } from '@medplum/fhirtypes';
|
|
3
|
-
import { AsyncAutocompleteProps } from '../AsyncAutocomplete/AsyncAutocomplete';
|
|
4
|
-
export interface ValueSetAutocompleteProps extends Omit<AsyncAutocompleteProps<ValueSetExpansionContains>, 'loadOptions' | 'toKey' | 'toOption'> {
|
|
5
|
-
binding: string | undefined;
|
|
6
|
-
creatable?: boolean;
|
|
7
|
-
clearable?: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
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.
|
|
14
|
-
*/
|
|
15
|
-
export declare function ValueSetAutocomplete(props: ValueSetAutocompleteProps): JSX.Element;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { BaseLoginRequest, LoginAuthenticationResponse } from '@medplum/core';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface AuthenticationFormProps extends BaseLoginRequest {
|
|
4
|
-
readonly disableEmailAuth?: boolean;
|
|
5
|
-
readonly disableGoogleAuth?: boolean;
|
|
6
|
-
readonly onForgotPassword?: () => void;
|
|
7
|
-
readonly onRegister?: () => void;
|
|
8
|
-
readonly handleAuthResponse: (response: LoginAuthenticationResponse) => void;
|
|
9
|
-
readonly children?: React.ReactNode;
|
|
10
|
-
}
|
|
11
|
-
export declare function AuthenticationForm(props: AuthenticationFormProps): JSX.Element;
|
|
12
|
-
export interface EmailFormProps extends BaseLoginRequest {
|
|
13
|
-
readonly disableEmailAuth?: boolean;
|
|
14
|
-
readonly disableGoogleAuth?: boolean;
|
|
15
|
-
readonly onRegister?: () => void;
|
|
16
|
-
readonly handleAuthResponse: (response: LoginAuthenticationResponse) => void;
|
|
17
|
-
readonly setEmail: (email: string) => void;
|
|
18
|
-
readonly children?: React.ReactNode;
|
|
19
|
-
}
|
|
20
|
-
export declare function EmailForm(props: EmailFormProps): JSX.Element;
|
|
21
|
-
export interface PasswordFormProps extends BaseLoginRequest {
|
|
22
|
-
readonly email: string;
|
|
23
|
-
readonly onForgotPassword?: () => void;
|
|
24
|
-
readonly handleAuthResponse: (response: LoginAuthenticationResponse) => void;
|
|
25
|
-
readonly children?: React.ReactNode;
|
|
26
|
-
}
|
|
27
|
-
export declare function PasswordForm(props: PasswordFormProps): JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { LoginAuthenticationResponse } from '@medplum/core';
|
|
3
|
-
import { ProjectMembership } from '@medplum/fhirtypes';
|
|
4
|
-
export interface ChooseProfileFormProps {
|
|
5
|
-
login: string;
|
|
6
|
-
memberships: ProjectMembership[];
|
|
7
|
-
handleAuthResponse: (response: LoginAuthenticationResponse) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare function ChooseProfileForm(props: ChooseProfileFormProps): JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { LoginAuthenticationResponse } from '@medplum/core';
|
|
3
|
-
export interface ChooseScopeFormProps {
|
|
4
|
-
login: string;
|
|
5
|
-
scope: string | undefined;
|
|
6
|
-
handleAuthResponse: (response: LoginAuthenticationResponse) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare function ChooseScopeForm(props: ChooseScopeFormProps): JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { LoginAuthenticationResponse } from '@medplum/core';
|
|
3
|
-
export interface MfaFormProps {
|
|
4
|
-
login: string;
|
|
5
|
-
handleAuthResponse: (response: LoginAuthenticationResponse) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare function MfaForm(props: MfaFormProps): JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { LoginAuthenticationResponse } from '@medplum/core';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface NewUserFormProps {
|
|
4
|
-
readonly projectId: string;
|
|
5
|
-
readonly clientId?: string;
|
|
6
|
-
readonly googleClientId?: string;
|
|
7
|
-
readonly recaptchaSiteKey?: string;
|
|
8
|
-
readonly children?: React.ReactNode;
|
|
9
|
-
readonly handleAuthResponse: (response: LoginAuthenticationResponse) => void;
|
|
10
|
-
}
|
|
11
|
-
export declare function NewUserForm(props: NewUserFormProps): JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface RegisterFormProps {
|
|
3
|
-
readonly type: 'patient' | 'project';
|
|
4
|
-
readonly projectId?: string;
|
|
5
|
-
readonly clientId?: string;
|
|
6
|
-
readonly googleClientId?: string;
|
|
7
|
-
readonly recaptchaSiteKey?: string;
|
|
8
|
-
readonly children?: React.ReactNode;
|
|
9
|
-
readonly onSuccess: () => void;
|
|
10
|
-
}
|
|
11
|
-
export declare function RegisterForm(props: RegisterFormProps): JSX.Element;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { BaseLoginRequest } from '@medplum/core';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface SignInFormProps extends BaseLoginRequest {
|
|
4
|
-
readonly login?: string;
|
|
5
|
-
readonly chooseScopes?: boolean;
|
|
6
|
-
readonly disableEmailAuth?: boolean;
|
|
7
|
-
readonly disableGoogleAuth?: boolean;
|
|
8
|
-
readonly onSuccess?: () => void;
|
|
9
|
-
readonly onForgotPassword?: () => void;
|
|
10
|
-
readonly onRegister?: () => void;
|
|
11
|
-
readonly onCode?: (code: string) => void;
|
|
12
|
-
readonly children?: React.ReactNode;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* The SignInForm component allows users to sign in to Medplum.
|
|
16
|
-
*
|
|
17
|
-
* "Signing in" is a multi-step process:
|
|
18
|
-
* 1) Authentication - identify the user
|
|
19
|
-
* 2) MFA - If MFA is enabled, prompt for MFA code
|
|
20
|
-
* 3) Choose profile - If the user has multiple profiles, prompt to choose one
|
|
21
|
-
* 4) Choose scope - If the user has multiple scopes, prompt to choose one
|
|
22
|
-
* 5) Success - Return to the caller with either a code or a redirect
|
|
23
|
-
* @param props The SignInForm React props.
|
|
24
|
-
* @returns The SignInForm React node.
|
|
25
|
-
*/
|
|
26
|
-
export declare function SignInForm(props: SignInFormProps): JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_IGNORED_PROPERTIES: string[];
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
export * from '@medplum/react-hooks';
|
|
2
|
-
export * from './AddressDisplay/AddressDisplay';
|
|
3
|
-
export * from './AddressInput/AddressInput';
|
|
4
|
-
export * from './AnnotationInput/AnnotationInput';
|
|
5
|
-
export * from './AppShell/AppShell';
|
|
6
|
-
export * from './AppShell/Header';
|
|
7
|
-
export * from './AppShell/Navbar';
|
|
8
|
-
export * from './AsyncAutocomplete/AsyncAutocomplete';
|
|
9
|
-
export * from './AttachmentArrayDisplay/AttachmentArrayDisplay';
|
|
10
|
-
export * from './AttachmentArrayInput/AttachmentArrayInput';
|
|
11
|
-
export * from './AttachmentButton/AttachmentButton';
|
|
12
|
-
export * from './AttachmentDisplay/AttachmentDisplay';
|
|
13
|
-
export * from './AttachmentInput/AttachmentInput';
|
|
14
|
-
export * from './auth/RegisterForm';
|
|
15
|
-
export * from './auth/SignInForm';
|
|
16
|
-
export * from './BackboneElementDisplay/BackboneElementDisplay';
|
|
17
|
-
export * from './BackboneElementInput/BackboneElementInput';
|
|
18
|
-
export * from './CalendarInput/CalendarInput';
|
|
19
|
-
export * from './CheckboxFormSection/CheckboxFormSection';
|
|
20
|
-
export * from './CodeableConceptDisplay/CodeableConceptDisplay';
|
|
21
|
-
export * from './CodeableConceptInput/CodeableConceptInput';
|
|
22
|
-
export * from './CodeInput/CodeInput';
|
|
23
|
-
export * from './CodingDisplay/CodingDisplay';
|
|
24
|
-
export * from './CodingInput/CodingInput';
|
|
25
|
-
export * from './ContactDetailDisplay/ContactDetailDisplay';
|
|
26
|
-
export * from './ContactDetailInput/ContactDetailInput';
|
|
27
|
-
export * from './ContactPointDisplay/ContactPointDisplay';
|
|
28
|
-
export * from './ContactPointInput/ContactPointInput';
|
|
29
|
-
export * from './Container/Container';
|
|
30
|
-
export * from './DateTimeInput/DateTimeInput';
|
|
31
|
-
export * from './DateTimeInput/DateTimeInput.utils';
|
|
32
|
-
export * from './DefaultResourceTimeline/DefaultResourceTimeline';
|
|
33
|
-
export * from './DescriptionList/DescriptionList';
|
|
34
|
-
export * from './DiagnosticReportDisplay/DiagnosticReportDisplay';
|
|
35
|
-
export * from './Document/Document';
|
|
36
|
-
export * from './EncounterTimeline/EncounterTimeline';
|
|
37
|
-
export * from './ErrorBoundary/ErrorBoundary';
|
|
38
|
-
export * from './FhirPathTable/FhirPathTable';
|
|
39
|
-
export * from './Form/Form';
|
|
40
|
-
export * from './Form/FormUtils';
|
|
41
|
-
export * from './FormSection/FormSection';
|
|
42
|
-
export * from './HumanNameDisplay/HumanNameDisplay';
|
|
43
|
-
export * from './HumanNameInput/HumanNameInput';
|
|
44
|
-
export * from './IdentifierDisplay/IdentifierDisplay';
|
|
45
|
-
export * from './IdentifierInput/IdentifierInput';
|
|
46
|
-
export * from './Loading/Loading';
|
|
47
|
-
export * from './Logo/Logo';
|
|
48
|
-
export * from './MedplumLink/MedplumLink';
|
|
49
|
-
export * from './MoneyDisplay/MoneyDisplay';
|
|
50
|
-
export * from './MoneyInput/MoneyInput';
|
|
51
|
-
export * from './OperationOutcomeAlert/OperationOutcomeAlert';
|
|
52
|
-
export * from './Panel/Panel';
|
|
53
|
-
export * from './PatientTimeline/PatientTimeline';
|
|
54
|
-
export * from './PlanDefinitionBuilder/PlanDefinitionBuilder';
|
|
55
|
-
export * from './QuantityDisplay/QuantityDisplay';
|
|
56
|
-
export * from './QuantityInput/QuantityInput';
|
|
57
|
-
export * from './QuestionnaireBuilder/QuestionnaireBuilder';
|
|
58
|
-
export * from './QuestionnaireForm/QuestionnaireForm';
|
|
59
|
-
export * from './RangeDisplay/RangeDisplay';
|
|
60
|
-
export * from './RangeInput/RangeInput';
|
|
61
|
-
export * from './ReferenceDisplay/ReferenceDisplay';
|
|
62
|
-
export * from './ReferenceInput/ReferenceInput';
|
|
63
|
-
export * from './ReferenceRangeEditor/ReferenceRangeEditor';
|
|
64
|
-
export * from './RequestGroupDisplay/RequestGroupDisplay';
|
|
65
|
-
export * from './ResourceArrayDisplay/ResourceArrayDisplay';
|
|
66
|
-
export * from './ResourceArrayInput/ResourceArrayInput';
|
|
67
|
-
export * from './ResourceAvatar/ResourceAvatar';
|
|
68
|
-
export * from './ResourceBadge/ResourceBadge';
|
|
69
|
-
export * from './ResourceBlame/ResourceBlame';
|
|
70
|
-
export * from './ResourceDiff/ResourceDiff';
|
|
71
|
-
export * from './ResourceForm/ResourceForm';
|
|
72
|
-
export * from './ResourceHistoryTable/ResourceHistoryTable';
|
|
73
|
-
export * from './ResourceInput/ResourceInput';
|
|
74
|
-
export * from './ResourceName/ResourceName';
|
|
75
|
-
export * from './ResourcePropertyDisplay/ResourcePropertyDisplay';
|
|
76
|
-
export * from './ResourcePropertyInput/ResourcePropertyInput';
|
|
77
|
-
export * from './ResourceTable/ResourceTable';
|
|
78
|
-
export * from './ResourceTimeline/ResourceTimeline';
|
|
79
|
-
export * from './Scheduler/Scheduler';
|
|
80
|
-
export * from './SearchControl/SearchControl';
|
|
81
|
-
export * from './SearchControl/SearchUtils';
|
|
82
|
-
export * from './SearchFieldEditor/SearchFieldEditor';
|
|
83
|
-
export * from './SearchFilterEditor/SearchFilterEditor';
|
|
84
|
-
export * from './ServiceRequestTimeline/ServiceRequestTimeline';
|
|
85
|
-
export * from './StatusBadge/StatusBadge';
|
|
86
|
-
export * from './Timeline/Timeline';
|
|
87
|
-
export * from './TimingInput/TimingInput';
|
|
88
|
-
export * from './utils/date';
|
|
89
|
-
export * from './utils/outcomes';
|
|
90
|
-
export * from './utils/questionnaire';
|
|
91
|
-
export * from './utils/recaptcha';
|
|
92
|
-
export * from './utils/script';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ActivityDefinition, ObservationDefinition, PlanDefinition, Questionnaire, RequestGroup, ServiceRequest, SpecimenDefinition, Task } from '@medplum/fhirtypes';
|
|
2
|
-
export declare const Covid19AssessmentQuestionnaire: Questionnaire;
|
|
3
|
-
export declare const Covid19NasalSpecimen: SpecimenDefinition;
|
|
4
|
-
export declare const Covid19PCRObservationDefinition: ObservationDefinition;
|
|
5
|
-
export declare const Covid19PCRTest: ActivityDefinition;
|
|
6
|
-
export declare const Covid19ReviewReport: ActivityDefinition;
|
|
7
|
-
export declare const Covid19CarePlanDefinition: PlanDefinition;
|
|
8
|
-
export declare const Covid19PCRLabService: PlanDefinition;
|
|
9
|
-
export declare const Covid19AssessmentTask: Task;
|
|
10
|
-
export declare const Covid19InitialConsultTask: Task;
|
|
11
|
-
export declare const Covid19PCRServiceRequest: ServiceRequest;
|
|
12
|
-
export declare const Covid19PCRTask: Task;
|
|
13
|
-
export declare const Covid19ReviewLabsTask: Task;
|
|
14
|
-
export declare const Covid19FollowUpConsultTask: Task;
|
|
15
|
-
export declare const Covid19RequestGroup: RequestGroup;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { DiagnosticReport, Observation } from '@medplum/fhirtypes';
|
|
2
|
-
export declare const HealthGorillaObservation1: Observation;
|
|
3
|
-
export declare const HealthGorillaObservationGroup1: Observation;
|
|
4
|
-
export declare const HealthGorillaObservation2: Observation;
|
|
5
|
-
export declare const HealthGorillaObservationGroup2: Observation;
|
|
6
|
-
export declare const HealthGorillaDiagnosticReport: DiagnosticReport;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { DiagnosticReport, Observation, ObservationDefinition } from '@medplum/fhirtypes';
|
|
2
|
-
export declare const TestosteroneDefinition: ObservationDefinition;
|
|
3
|
-
export declare const HDLDefinition: ObservationDefinition;
|
|
4
|
-
export declare const CreatinineObservation: Observation;
|
|
5
|
-
export declare const ExampleReport: DiagnosticReport;
|
|
6
|
-
export declare const KidneyLabDefinition: ObservationDefinition;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Resource } from '@medplum/fhirtypes';
|
|
2
|
-
/**
|
|
3
|
-
* Sorts an array of resources in place by meta.lastUpdated ascending.
|
|
4
|
-
* @param resources Array of resources.
|
|
5
|
-
* @param timelineResource Optional primary resource of a timeline view. If specified, the primary resource will be sorted by meta.lastUpdated descending.
|
|
6
|
-
*/
|
|
7
|
-
export declare function sortByDateAndPriority(resources: Resource[], timelineResource?: Resource): void;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare function diff(original: string[], revised: string[]): Delta[];
|
|
2
|
-
export interface PathNode {
|
|
3
|
-
readonly i: number;
|
|
4
|
-
readonly j: number;
|
|
5
|
-
readonly prev: PathNode | undefined;
|
|
6
|
-
readonly snake: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface Delta {
|
|
9
|
-
readonly original: Chunk;
|
|
10
|
-
readonly revised: Chunk;
|
|
11
|
-
readonly type: 'change' | 'delete' | 'insert';
|
|
12
|
-
}
|
|
13
|
-
export interface Chunk {
|
|
14
|
-
readonly position: number;
|
|
15
|
-
readonly lines: string[];
|
|
16
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* Kills a browser event.
|
|
4
|
-
* Prevents default behavior.
|
|
5
|
-
* Stops event propagation.
|
|
6
|
-
* @param e The event.
|
|
7
|
-
*/
|
|
8
|
-
export declare function killEvent(e: Event | React.SyntheticEvent): void;
|
|
9
|
-
/**
|
|
10
|
-
* Returns true if the element is a checkbox or a table cell containing a checkbox.
|
|
11
|
-
* Table cells containing checkboxes are commonly accidentally clicked.
|
|
12
|
-
* @param el The HTML DOM element.
|
|
13
|
-
* @returns True if the element is a checkbox or a table cell containing a checkbox.
|
|
14
|
-
*/
|
|
15
|
-
export declare function isCheckboxCell(el: Element): boolean;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { OperationOutcome, OperationOutcomeIssue } from '@medplum/fhirtypes';
|
|
2
|
-
export declare function getErrorsForInput(outcome: OperationOutcome | undefined, expression: string | undefined): string | undefined;
|
|
3
|
-
export declare function getIssuesForExpression(outcome: OperationOutcome | undefined, expression: string | undefined): OperationOutcomeIssue[] | undefined;
|