@medplum/react 2.1.8 → 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/README.md +7 -9
- package/api-extractor.json +3 -0
- package/dist/cjs/index.cjs +4 -4
- package/dist/cjs/index.cjs.map +4 -4
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/index.mjs.map +4 -4
- package/dist/types.d.ts +1371 -0
- package/package.json +5 -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 -11
- 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/MedplumProvider/MedplumProvider.context.d.ts +0 -32
- package/dist/types/MedplumProvider/MedplumProvider.d.ts +0 -18
- 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 -95
- 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/useResource/useResource.d.ts +0 -9
- package/dist/types/useSearch/useSearch.d.ts +0 -32
- 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
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,1371 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
|
|
3
|
+
import { Address } from '@medplum/fhirtypes';
|
|
4
|
+
import { Annotation } from '@medplum/fhirtypes';
|
|
5
|
+
import { Attachment } from '@medplum/fhirtypes';
|
|
6
|
+
import { AvatarProps } from '@mantine/core';
|
|
7
|
+
import { BaseLoginRequest } from '@medplum/core';
|
|
8
|
+
import { Bundle } from '@medplum/fhirtypes';
|
|
9
|
+
import { CodeableConcept } from '@medplum/fhirtypes';
|
|
10
|
+
import { Coding } from '@medplum/fhirtypes';
|
|
11
|
+
import { Communication } from '@medplum/fhirtypes';
|
|
12
|
+
import { ContactDetail } from '@medplum/fhirtypes';
|
|
13
|
+
import { ContactPoint } from '@medplum/fhirtypes';
|
|
14
|
+
import { ContainerProps } from '@mantine/core';
|
|
15
|
+
import { Context } from 'react';
|
|
16
|
+
import { CSSProperties } from 'react';
|
|
17
|
+
import { default as default_2 } from 'react';
|
|
18
|
+
import { DiagnosticReport } from '@medplum/fhirtypes';
|
|
19
|
+
import { ElementDefinitionType } from '@medplum/fhirtypes';
|
|
20
|
+
import { Encounter } from '@medplum/fhirtypes';
|
|
21
|
+
import { ErrorInfo } from 'react';
|
|
22
|
+
import { ExtractResource } from '@medplum/fhirtypes';
|
|
23
|
+
import { Filter } from '@medplum/core';
|
|
24
|
+
import { HumanName } from '@medplum/fhirtypes';
|
|
25
|
+
import { HumanNameFormatOptions } from '@medplum/core';
|
|
26
|
+
import { Identifier } from '@medplum/fhirtypes';
|
|
27
|
+
import { InternalSchemaElement } from '@medplum/core';
|
|
28
|
+
import { Media } from '@medplum/fhirtypes';
|
|
29
|
+
import { MedplumClient } from '@medplum/core';
|
|
30
|
+
import { Money } from '@medplum/fhirtypes';
|
|
31
|
+
import { MultiSelectProps } from '@mantine/core';
|
|
32
|
+
import { Observation } from '@medplum/fhirtypes';
|
|
33
|
+
import { ObservationDefinition } from '@medplum/fhirtypes';
|
|
34
|
+
import { ObservationDefinitionQualifiedInterval } from '@medplum/fhirtypes';
|
|
35
|
+
import { OperationOutcome } from '@medplum/fhirtypes';
|
|
36
|
+
import { OperationOutcomeIssue } from '@medplum/fhirtypes';
|
|
37
|
+
import { Operator } from '@medplum/core';
|
|
38
|
+
import { PaperProps } from '@mantine/core';
|
|
39
|
+
import { Patient } from '@medplum/fhirtypes';
|
|
40
|
+
import { PlanDefinition } from '@medplum/fhirtypes';
|
|
41
|
+
import { ProfileResource } from '@medplum/core';
|
|
42
|
+
import { Quantity } from '@medplum/fhirtypes';
|
|
43
|
+
import { QueryTypes } from '@medplum/core';
|
|
44
|
+
import { Questionnaire } from '@medplum/fhirtypes';
|
|
45
|
+
import { QuestionnaireItem } from '@medplum/fhirtypes';
|
|
46
|
+
import { QuestionnaireResponse } from '@medplum/fhirtypes';
|
|
47
|
+
import { QuestionnaireResponseItem } from '@medplum/fhirtypes';
|
|
48
|
+
import { QuestionnaireResponseItemAnswer } from '@medplum/fhirtypes';
|
|
49
|
+
import { Range as Range_2 } from '@medplum/fhirtypes';
|
|
50
|
+
import { default as React_2 } from 'react';
|
|
51
|
+
import { ReactNode } from 'react';
|
|
52
|
+
import { Reference } from '@medplum/fhirtypes';
|
|
53
|
+
import { RequestGroup } from '@medplum/fhirtypes';
|
|
54
|
+
import { Resource } from '@medplum/fhirtypes';
|
|
55
|
+
import { ResourceArray } from '@medplum/core';
|
|
56
|
+
import { ResourceType } from '@medplum/fhirtypes';
|
|
57
|
+
import { Schedule } from '@medplum/fhirtypes';
|
|
58
|
+
import { SearchParameter } from '@medplum/fhirtypes';
|
|
59
|
+
import { SearchRequest } from '@medplum/core';
|
|
60
|
+
import { SelectItem } from '@mantine/core';
|
|
61
|
+
import { ServiceRequest } from '@medplum/fhirtypes';
|
|
62
|
+
import { Slot } from '@medplum/fhirtypes';
|
|
63
|
+
import { Task } from '@medplum/fhirtypes';
|
|
64
|
+
import { TextProps } from '@mantine/core';
|
|
65
|
+
import { Timing } from '@medplum/fhirtypes';
|
|
66
|
+
import { TypedValue } from '@medplum/core';
|
|
67
|
+
import { UserConfiguration } from '@medplum/fhirtypes';
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Adds a filter for a date between two dates (inclusive of both dates).
|
|
71
|
+
* @param definition The original search request.
|
|
72
|
+
* @param field The field key name.
|
|
73
|
+
* @param d1 The start date.
|
|
74
|
+
* @param d2 The end date.
|
|
75
|
+
* @returns The updated search request.
|
|
76
|
+
*/
|
|
77
|
+
export declare function addDateFilterBetween(definition: SearchRequest, field: string, d1: Date, d2: Date): SearchRequest;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Adds a field.
|
|
81
|
+
* @param definition The original search request.
|
|
82
|
+
* @param field The field key name.
|
|
83
|
+
* @returns The updated search request.
|
|
84
|
+
*/
|
|
85
|
+
export declare function addField(definition: SearchRequest, field: string): SearchRequest;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Adds a filter.
|
|
89
|
+
* @param definition The original search request.
|
|
90
|
+
* @param field The field key name.
|
|
91
|
+
* @param op The operation key name.
|
|
92
|
+
* @param value The filter value.
|
|
93
|
+
* @param opt_clear Optional flag to clear filters on the field.
|
|
94
|
+
* @returns The updated search request.
|
|
95
|
+
*/
|
|
96
|
+
export declare function addFilter(definition: SearchRequest, field: string, op: Operator, value?: string, opt_clear?: boolean): SearchRequest;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Adds a filter that constrains the specified field to "last month".
|
|
100
|
+
* @param definition The original search request.
|
|
101
|
+
* @param field The field key name.
|
|
102
|
+
* @returns The updated search request.
|
|
103
|
+
*/
|
|
104
|
+
export declare function addLastMonthFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Adds a filter that constrains the specified field to "missing".
|
|
108
|
+
* @param definition The original search request.
|
|
109
|
+
* @param field The field key name.
|
|
110
|
+
* @param value Optional boolean value. Default is true.
|
|
111
|
+
* @returns The updated search request.
|
|
112
|
+
*/
|
|
113
|
+
export declare function addMissingFilter(definition: SearchRequest, field: string, value?: boolean): SearchRequest;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Adds a filter that constrains the specified field to "next month".
|
|
117
|
+
* @param definition The original search request.
|
|
118
|
+
* @param field The field key name.
|
|
119
|
+
* @returns The updated search request.
|
|
120
|
+
*/
|
|
121
|
+
export declare function addNextMonthFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
122
|
+
|
|
123
|
+
export declare function AddressDisplay(props: AddressDisplayProps): JSX.Element | null;
|
|
124
|
+
|
|
125
|
+
export declare interface AddressDisplayProps {
|
|
126
|
+
value?: Address;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export declare function AddressInput(props: AddressInputProps): JSX.Element;
|
|
130
|
+
|
|
131
|
+
export declare interface AddressInputProps {
|
|
132
|
+
name: string;
|
|
133
|
+
defaultValue?: Address;
|
|
134
|
+
onChange?: (value: Address) => void;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Adds a filter that constrains the specified field to "this month".
|
|
139
|
+
* @param definition The original search request.
|
|
140
|
+
* @param field The field key name.
|
|
141
|
+
* @returns The updated search request.
|
|
142
|
+
*/
|
|
143
|
+
export declare function addThisMonthFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Adds a filter that constrains the specified field to "today".
|
|
147
|
+
* @param definition The original search request.
|
|
148
|
+
* @param field The field key name.
|
|
149
|
+
* @returns The updated search request.
|
|
150
|
+
*/
|
|
151
|
+
export declare function addTodayFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Adds a filter that constrains the specified field to "tomorrow".
|
|
155
|
+
* @param definition The original search request.
|
|
156
|
+
* @param field The field key name.
|
|
157
|
+
* @returns The updated search request.
|
|
158
|
+
*/
|
|
159
|
+
export declare function addTomorrowFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Adds a filter that constrains the specified field to the year to date.
|
|
163
|
+
* @param definition The original search request.
|
|
164
|
+
* @param field The field key name.
|
|
165
|
+
* @returns The updated search request.
|
|
166
|
+
*/
|
|
167
|
+
export declare function addYearToDateFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Adds a filter that constrains the specified field to "yesterday".
|
|
171
|
+
* @param definition The original search request.
|
|
172
|
+
* @param field The field key name.
|
|
173
|
+
* @returns The updated search request.
|
|
174
|
+
*/
|
|
175
|
+
export declare function addYesterdayFilter(definition: SearchRequest, field: string): SearchRequest;
|
|
176
|
+
|
|
177
|
+
export declare function AnnotationInput(props: AnnotationInputProps): JSX.Element;
|
|
178
|
+
|
|
179
|
+
export declare interface AnnotationInputProps {
|
|
180
|
+
name: string;
|
|
181
|
+
defaultValue?: Annotation;
|
|
182
|
+
onChange?: (value: Annotation) => void;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export declare function AppShell(props: AppShellProps): JSX.Element;
|
|
186
|
+
|
|
187
|
+
export declare interface AppShellProps {
|
|
188
|
+
logo: React_2.ReactNode;
|
|
189
|
+
pathname?: string;
|
|
190
|
+
searchParams?: URLSearchParams;
|
|
191
|
+
headerSearchDisabled?: boolean;
|
|
192
|
+
version?: string;
|
|
193
|
+
menus?: NavbarMenu[];
|
|
194
|
+
children: React_2.ReactNode;
|
|
195
|
+
displayAddBookmark?: boolean;
|
|
196
|
+
resourceTypeSearchDisabled?: boolean;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export declare function AsyncAutocomplete<T>(props: AsyncAutocompleteProps<T>): JSX.Element;
|
|
200
|
+
|
|
201
|
+
export declare interface AsyncAutocompleteOption<T> extends SelectItem {
|
|
202
|
+
resource: T;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export declare interface AsyncAutocompleteProps<T> extends Omit<MultiSelectProps, 'data' | 'defaultValue' | 'loadOptions' | 'onChange' | 'onCreate' | 'searchable'> {
|
|
206
|
+
defaultValue?: T | T[];
|
|
207
|
+
toKey: (item: T) => string;
|
|
208
|
+
toOption: (item: T) => AsyncAutocompleteOption<T>;
|
|
209
|
+
loadOptions: (input: string, signal: AbortSignal) => Promise<T[]>;
|
|
210
|
+
onChange: (item: T[]) => void;
|
|
211
|
+
onCreate?: (input: string) => T;
|
|
212
|
+
creatable?: boolean;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export declare function AttachmentArrayDisplay(props: AttachmentArrayDisplayProps): JSX.Element;
|
|
216
|
+
|
|
217
|
+
export declare interface AttachmentArrayDisplayProps {
|
|
218
|
+
values?: Attachment[];
|
|
219
|
+
maxWidth?: number;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export declare function AttachmentArrayInput(props: AttachmentArrayInputProps): JSX.Element;
|
|
223
|
+
|
|
224
|
+
export declare interface AttachmentArrayInputProps {
|
|
225
|
+
name: string;
|
|
226
|
+
defaultValue?: Attachment[];
|
|
227
|
+
arrayElement?: boolean;
|
|
228
|
+
onChange?: (value: Attachment[]) => void;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export declare function AttachmentButton(props: AttachmentButtonProps): JSX.Element;
|
|
232
|
+
|
|
233
|
+
export declare interface AttachmentButtonProps {
|
|
234
|
+
onUpload: (attachment: Attachment) => void;
|
|
235
|
+
onUploadStart?: () => void;
|
|
236
|
+
onUploadProgress?: (e: ProgressEvent) => void;
|
|
237
|
+
onUploadError?: (outcome: OperationOutcome) => void;
|
|
238
|
+
children(props: {
|
|
239
|
+
onClick(e: React_2.MouseEvent): void;
|
|
240
|
+
}): React_2.ReactNode;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export declare function AttachmentDisplay(props: AttachmentDisplayProps): JSX.Element | null;
|
|
244
|
+
|
|
245
|
+
export declare interface AttachmentDisplayProps {
|
|
246
|
+
value?: Attachment;
|
|
247
|
+
maxWidth?: number;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export declare function AttachmentInput(props: AttachmentInputProps): JSX.Element;
|
|
251
|
+
|
|
252
|
+
export declare interface AttachmentInputProps {
|
|
253
|
+
name: string;
|
|
254
|
+
defaultValue?: Attachment;
|
|
255
|
+
arrayElement?: boolean;
|
|
256
|
+
onChange?: (value: Attachment | undefined) => void;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export declare function BackboneElementDisplay(props: BackboneElementDisplayProps): JSX.Element | null;
|
|
260
|
+
|
|
261
|
+
export declare interface BackboneElementDisplayProps {
|
|
262
|
+
value: TypedValue;
|
|
263
|
+
compact?: boolean;
|
|
264
|
+
ignoreMissingValues?: boolean;
|
|
265
|
+
link?: boolean;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export declare function BackboneElementInput(props: BackboneElementInputProps): JSX.Element;
|
|
269
|
+
|
|
270
|
+
export declare interface BackboneElementInputProps {
|
|
271
|
+
typeName: string;
|
|
272
|
+
defaultValue?: any;
|
|
273
|
+
outcome?: OperationOutcome;
|
|
274
|
+
onChange?: (value: any) => void;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Returns a field display name.
|
|
279
|
+
* @param key The field key.
|
|
280
|
+
* @returns The field display name.
|
|
281
|
+
*/
|
|
282
|
+
export declare function buildFieldNameString(key: string): string;
|
|
283
|
+
|
|
284
|
+
export declare function CalendarInput(props: CalendarInputProps): JSX.Element;
|
|
285
|
+
|
|
286
|
+
export declare interface CalendarInputProps {
|
|
287
|
+
slots: Slot[];
|
|
288
|
+
onChangeMonth: (date: Date) => void;
|
|
289
|
+
onClick: (date: Date) => void;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export declare function CheckboxFormSection(props: CheckboxFormSectionProps): JSX.Element;
|
|
293
|
+
|
|
294
|
+
export declare interface CheckboxFormSectionProps {
|
|
295
|
+
htmlFor?: string;
|
|
296
|
+
title?: string;
|
|
297
|
+
description?: string;
|
|
298
|
+
withAsterisk?: boolean;
|
|
299
|
+
children?: React_2.ReactNode;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Clears all of the filters.
|
|
304
|
+
* @param definition The original search request.
|
|
305
|
+
* @returns The updated search request.
|
|
306
|
+
*/
|
|
307
|
+
export declare function clearFilters(definition: SearchRequest): SearchRequest;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Clears all of the filters on a certain field.
|
|
311
|
+
* @param definition The original search request.
|
|
312
|
+
* @param code The field key name to clear filters.
|
|
313
|
+
* @returns The updated search request.
|
|
314
|
+
*/
|
|
315
|
+
export declare function clearFiltersOnField(definition: SearchRequest, code: string): SearchRequest;
|
|
316
|
+
|
|
317
|
+
export declare function CodeableConceptDisplay(props: CodeableConceptDisplayProps): JSX.Element;
|
|
318
|
+
|
|
319
|
+
export declare interface CodeableConceptDisplayProps {
|
|
320
|
+
value?: CodeableConcept;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export declare function CodeableConceptInput(props: CodeableConceptInputProps): JSX.Element;
|
|
324
|
+
|
|
325
|
+
export declare interface CodeableConceptInputProps {
|
|
326
|
+
binding: string | undefined;
|
|
327
|
+
name: string;
|
|
328
|
+
placeholder?: string;
|
|
329
|
+
defaultValue?: CodeableConcept;
|
|
330
|
+
onChange?: (value: CodeableConcept | undefined) => void;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export declare function CodeInput(props: CodeInputProps): JSX.Element;
|
|
334
|
+
|
|
335
|
+
export declare interface CodeInputProps {
|
|
336
|
+
binding: string | undefined;
|
|
337
|
+
name: string;
|
|
338
|
+
placeholder?: string;
|
|
339
|
+
defaultValue?: string;
|
|
340
|
+
onChange?: (value: string | undefined) => void;
|
|
341
|
+
creatable?: boolean;
|
|
342
|
+
maxSelectedValues?: number;
|
|
343
|
+
clearSearchOnChange?: boolean;
|
|
344
|
+
clearable?: boolean;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export declare function CodingDisplay(props: CodingDisplayProps): JSX.Element;
|
|
348
|
+
|
|
349
|
+
export declare interface CodingDisplayProps {
|
|
350
|
+
value?: Coding;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export declare function CodingInput(props: CodingInputProps): JSX.Element;
|
|
354
|
+
|
|
355
|
+
export declare interface CodingInputProps {
|
|
356
|
+
binding: string | undefined;
|
|
357
|
+
name: string;
|
|
358
|
+
placeholder?: string;
|
|
359
|
+
defaultValue?: Coding;
|
|
360
|
+
onChange?: (value: Coding | undefined) => void;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export declare function ContactDetailDisplay(props: ContactDetailDisplayProps): JSX.Element | null;
|
|
364
|
+
|
|
365
|
+
export declare interface ContactDetailDisplayProps {
|
|
366
|
+
value?: ContactDetail;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export declare function ContactDetailInput(props: ContactDetailInputProps): JSX.Element;
|
|
370
|
+
|
|
371
|
+
export declare interface ContactDetailInputProps {
|
|
372
|
+
name: string;
|
|
373
|
+
defaultValue?: ContactDetail;
|
|
374
|
+
onChange?: (value: ContactDetail) => void;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
export declare function ContactPointDisplay(props: ContactPointDisplayProps): JSX.Element | null;
|
|
378
|
+
|
|
379
|
+
export declare interface ContactPointDisplayProps {
|
|
380
|
+
value?: ContactPoint;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
export declare function ContactPointInput(props: ContactPointInputProps): JSX.Element;
|
|
384
|
+
|
|
385
|
+
export declare interface ContactPointInputProps {
|
|
386
|
+
name: string;
|
|
387
|
+
defaultValue?: ContactPoint;
|
|
388
|
+
onChange?: (value: ContactPoint | undefined) => void;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
export declare function Container(props: ContainerProps): JSX.Element;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Converts an ISO-8601 date/time string to a local date/time string.
|
|
395
|
+
* @param isoString The ISO-8601 date/time string to convert.
|
|
396
|
+
* @returns The local date/time string.
|
|
397
|
+
*/
|
|
398
|
+
export declare function convertIsoToLocal(isoString: string | undefined): string;
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Converts a local date/time string to an ISO-8601 date/time string.
|
|
402
|
+
* @param localString The local date/time string to convert.
|
|
403
|
+
* @returns The ISO-8601 date/time string.
|
|
404
|
+
*/
|
|
405
|
+
export declare function convertLocalToIso(localString: string | undefined): string;
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Dynamically creates a script tag for the specified JavaScript file.
|
|
409
|
+
* @param src The JavaScript file URL.
|
|
410
|
+
* @param onload Optional callback for the onload event.
|
|
411
|
+
*/
|
|
412
|
+
export declare function createScriptTag(src: string, onload?: () => void): void;
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* The DateTimeInput component is a wrapper around the HTML5 input type="datetime-local".
|
|
416
|
+
* The main purpose is to reconcile time zones.
|
|
417
|
+
* Most of our date/time values are in ISO-8601, which includes a time zone offset.
|
|
418
|
+
* The datetime-local input does not support the time zone offset.
|
|
419
|
+
* @param props The Input props.
|
|
420
|
+
* @returns The JSX element to render.
|
|
421
|
+
*/
|
|
422
|
+
export declare function DateTimeInput(props: DateTimeInputProps): JSX.Element;
|
|
423
|
+
|
|
424
|
+
export declare interface DateTimeInputProps {
|
|
425
|
+
name?: string;
|
|
426
|
+
placeholder?: string;
|
|
427
|
+
defaultValue?: string;
|
|
428
|
+
autoFocus?: boolean;
|
|
429
|
+
required?: boolean;
|
|
430
|
+
outcome?: OperationOutcome;
|
|
431
|
+
onChange?: (value: string) => void;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
export declare function DefaultResourceTimeline(props: DefaultResourceTimelineProps): JSX.Element;
|
|
435
|
+
|
|
436
|
+
export declare interface DefaultResourceTimelineProps {
|
|
437
|
+
resource: Resource | Reference;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* Deletes a filter at the specified index.
|
|
442
|
+
* @param definition The original search request.
|
|
443
|
+
* @param index The filter index.
|
|
444
|
+
* @returns The updated search request.
|
|
445
|
+
*/
|
|
446
|
+
export declare function deleteFilter(definition: SearchRequest, index: number): SearchRequest;
|
|
447
|
+
|
|
448
|
+
export declare function DescriptionList(props: DescriptionListProps): JSX.Element;
|
|
449
|
+
|
|
450
|
+
export declare function DescriptionListEntry(props: DescriptionListEntryProps): JSX.Element;
|
|
451
|
+
|
|
452
|
+
export declare interface DescriptionListEntryProps {
|
|
453
|
+
term: string;
|
|
454
|
+
children: React_2.ReactNode;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export declare interface DescriptionListProps {
|
|
458
|
+
children: React_2.ReactNode;
|
|
459
|
+
compact?: boolean;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
export declare function DiagnosticReportDisplay(props: DiagnosticReportDisplayProps): JSX.Element | null;
|
|
463
|
+
|
|
464
|
+
export declare namespace DiagnosticReportDisplay {
|
|
465
|
+
var defaultProps: DiagnosticReportDisplayProps;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
export declare interface DiagnosticReportDisplayProps {
|
|
469
|
+
value?: DiagnosticReport | Reference<DiagnosticReport>;
|
|
470
|
+
hideObservationNotes?: boolean;
|
|
471
|
+
hideSpecimenInfo?: boolean;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
declare function Document_2(props: PanelProps): JSX.Element;
|
|
475
|
+
export { Document_2 as Document }
|
|
476
|
+
|
|
477
|
+
export declare function ElementDefinitionInputSelector(props: ElementDefinitionSelectorProps): JSX.Element;
|
|
478
|
+
|
|
479
|
+
export declare interface ElementDefinitionSelectorProps extends ResourcePropertyInputProps {
|
|
480
|
+
elementDefinitionTypes: ElementDefinitionType[];
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
export declare function ElementDefinitionTypeInput(props: ElementDefinitionTypeInputProps): JSX.Element;
|
|
484
|
+
|
|
485
|
+
export declare interface ElementDefinitionTypeInputProps extends ResourcePropertyInputProps {
|
|
486
|
+
elementDefinitionType: ElementDefinitionType;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
export declare function EncounterTimeline(props: EncounterTimelineProps): JSX.Element;
|
|
490
|
+
|
|
491
|
+
export declare interface EncounterTimelineProps {
|
|
492
|
+
encounter: Encounter | Reference<Encounter>;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* ErrorBoundary is a React component that handles errors in its child components.
|
|
497
|
+
* See: https://reactjs.org/docs/error-boundaries.html
|
|
498
|
+
*/
|
|
499
|
+
export declare class ErrorBoundary extends React_2.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
500
|
+
state: ErrorBoundaryState;
|
|
501
|
+
constructor(props: ErrorBoundaryProps);
|
|
502
|
+
static getDerivedStateFromError(error: any): ErrorBoundaryState;
|
|
503
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
504
|
+
render(): ReactNode;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
export declare interface ErrorBoundaryProps {
|
|
508
|
+
children: ReactNode;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
export declare interface ErrorBoundaryState {
|
|
512
|
+
error?: any;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* The FhirPathTable component represents the embeddable search table control.
|
|
517
|
+
* @param props FhirPathTable React props.
|
|
518
|
+
* @returns FhirPathTable React node.
|
|
519
|
+
*/
|
|
520
|
+
export declare function FhirPathTable(props: FhirPathTableProps): JSX.Element;
|
|
521
|
+
|
|
522
|
+
export declare interface FhirPathTableField {
|
|
523
|
+
readonly propertyType: string;
|
|
524
|
+
readonly name: string;
|
|
525
|
+
readonly fhirPath: string;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
export declare interface FhirPathTableProps {
|
|
529
|
+
resourceType: string;
|
|
530
|
+
query: string;
|
|
531
|
+
fields: FhirPathTableField[];
|
|
532
|
+
checkboxesEnabled?: boolean;
|
|
533
|
+
onClick?: (e: SearchClickEvent) => void;
|
|
534
|
+
onAuxClick?: (e: SearchClickEvent) => void;
|
|
535
|
+
onBulk?: (ids: string[]) => void;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
export declare function Form(props: FormProps): JSX.Element;
|
|
539
|
+
|
|
540
|
+
export declare interface FormProps {
|
|
541
|
+
onSubmit?: (formData: Record<string, string>) => void;
|
|
542
|
+
style?: CSSProperties;
|
|
543
|
+
children?: React_2.ReactNode;
|
|
544
|
+
testid?: string;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
export declare function FormSection(props: FormSectionProps): JSX.Element;
|
|
548
|
+
|
|
549
|
+
export declare interface FormSectionProps {
|
|
550
|
+
title?: string;
|
|
551
|
+
htmlFor?: string;
|
|
552
|
+
description?: string;
|
|
553
|
+
withAsterisk?: boolean;
|
|
554
|
+
outcome?: OperationOutcome;
|
|
555
|
+
children?: React_2.ReactNode;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
export declare function getErrorsForInput(outcome: OperationOutcome | undefined, expression: string | undefined): string | undefined;
|
|
559
|
+
|
|
560
|
+
export declare function getIssuesForExpression(outcome: OperationOutcome | undefined, expression: string | undefined): OperationOutcomeIssue[] | undefined;
|
|
561
|
+
|
|
562
|
+
export declare function getNewMultiSelectValues(selected: string[], propertyName: string, item: QuestionnaireItem): QuestionnaireResponseItemAnswer[];
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Returns a string representing the operation.
|
|
566
|
+
* @param op The operation code.
|
|
567
|
+
* @returns A display string for the operation.
|
|
568
|
+
*/
|
|
569
|
+
export declare function getOpString(op: Operator): string;
|
|
570
|
+
|
|
571
|
+
export declare function getQuestionnaireItemReferenceTargetTypes(item: QuestionnaireItem): ResourceType[] | undefined;
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Starts a request to generate a recapcha token.
|
|
575
|
+
* @param siteKey The reCAPTCHA site key, available from the reCAPTCHA admin page.
|
|
576
|
+
* @returns Promise to a recaptcha token for the current user.
|
|
577
|
+
*/
|
|
578
|
+
export declare function getRecaptcha(siteKey: string): Promise<string>;
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* Returns a list of operators for a search parameter.
|
|
582
|
+
* @param searchParam The search parameter.
|
|
583
|
+
* @returns The list of operators that can be used for the search parameter.
|
|
584
|
+
*/
|
|
585
|
+
export declare function getSearchOperators(searchParam: SearchParameter): Operator[] | undefined;
|
|
586
|
+
|
|
587
|
+
export declare function getSortField(definition: SearchRequest): string | undefined;
|
|
588
|
+
|
|
589
|
+
export declare function Header(props: HeaderProps): JSX.Element;
|
|
590
|
+
|
|
591
|
+
declare interface HeaderProps {
|
|
592
|
+
pathname?: string;
|
|
593
|
+
searchParams?: URLSearchParams;
|
|
594
|
+
headerSearchDisabled?: boolean;
|
|
595
|
+
logo: React_2.ReactNode;
|
|
596
|
+
version?: string;
|
|
597
|
+
navbarToggle: () => void;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
export declare function HumanNameDisplay(props: HumanNameDisplayProps): JSX.Element | null;
|
|
601
|
+
|
|
602
|
+
export declare interface HumanNameDisplayProps {
|
|
603
|
+
value?: HumanName;
|
|
604
|
+
options?: HumanNameFormatOptions;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
export declare function HumanNameInput(props: HumanNameInputProps): JSX.Element;
|
|
608
|
+
|
|
609
|
+
export declare interface HumanNameInputProps {
|
|
610
|
+
name: string;
|
|
611
|
+
defaultValue?: HumanName;
|
|
612
|
+
onChange?: (value: HumanName) => void;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
export declare function IdentifierDisplay(props: IdentifierDisplayProps): JSX.Element;
|
|
616
|
+
|
|
617
|
+
export declare interface IdentifierDisplayProps {
|
|
618
|
+
value?: Identifier;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
export declare function IdentifierInput(props: IdentifierInputProps): JSX.Element;
|
|
622
|
+
|
|
623
|
+
export declare interface IdentifierInputProps {
|
|
624
|
+
name: string;
|
|
625
|
+
defaultValue?: Identifier;
|
|
626
|
+
onChange?: (value: Identifier) => void;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Dynamically loads the recaptcha script.
|
|
631
|
+
* We do not want to load the script on page load unless the user needs it.
|
|
632
|
+
* @param siteKey The reCAPTCHA site key, available from the reCAPTCHA admin page.
|
|
633
|
+
*/
|
|
634
|
+
export declare function initRecaptcha(siteKey: string): void;
|
|
635
|
+
|
|
636
|
+
declare type IntervalGroup = {
|
|
637
|
+
id: string;
|
|
638
|
+
filters: Record<string, any>;
|
|
639
|
+
intervals: ObservationDefinitionQualifiedInterval[];
|
|
640
|
+
};
|
|
641
|
+
|
|
642
|
+
export declare function isChoiceQuestion(item: QuestionnaireItem): boolean;
|
|
643
|
+
|
|
644
|
+
export declare function isQuestionEnabled(item: QuestionnaireItem, responseItems: QuestionnaireResponseItem[]): boolean;
|
|
645
|
+
|
|
646
|
+
export declare function isSortDescending(definition: SearchRequest): boolean;
|
|
647
|
+
|
|
648
|
+
export declare function Loading(): JSX.Element;
|
|
649
|
+
|
|
650
|
+
export declare function Logo(props: LogoProps): JSX.Element;
|
|
651
|
+
|
|
652
|
+
export declare interface LogoProps {
|
|
653
|
+
size: number;
|
|
654
|
+
fill?: string;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
export declare interface MedplumContext {
|
|
658
|
+
medplum: MedplumClient;
|
|
659
|
+
navigate: MepdlumNavigateFunction;
|
|
660
|
+
profile?: ProfileResource;
|
|
661
|
+
loading: boolean;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
export declare function MedplumLink(props: MedplumLinkProps): JSX.Element;
|
|
665
|
+
|
|
666
|
+
export declare interface MedplumLinkProps extends TextProps {
|
|
667
|
+
to?: Resource | Reference | string;
|
|
668
|
+
suffix?: string;
|
|
669
|
+
label?: string;
|
|
670
|
+
onClick?: React_2.MouseEventHandler;
|
|
671
|
+
children: React_2.ReactNode;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* The MedplumProvider component provides Medplum context state.
|
|
676
|
+
*
|
|
677
|
+
* Medplum context includes:
|
|
678
|
+
* 1) medplum - Medplum client library
|
|
679
|
+
* 2) profile - The current user profile (if signed in)
|
|
680
|
+
* @param props The MedplumProvider React props.
|
|
681
|
+
* @returns The MedplumProvider React node.
|
|
682
|
+
*/
|
|
683
|
+
export declare function MedplumProvider(props: MedplumProviderProps): JSX.Element;
|
|
684
|
+
|
|
685
|
+
export declare interface MedplumProviderProps {
|
|
686
|
+
medplum: MedplumClient;
|
|
687
|
+
navigate?: MepdlumNavigateFunction;
|
|
688
|
+
children: default_2.ReactNode;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
export declare const MemoizedFhirPathTable: React_2.MemoExoticComponent<typeof FhirPathTable>;
|
|
692
|
+
|
|
693
|
+
export declare const MemoizedSearchControl: React_2.MemoExoticComponent<typeof SearchControl>;
|
|
694
|
+
|
|
695
|
+
export declare type MepdlumNavigateFunction = (path: string) => void;
|
|
696
|
+
|
|
697
|
+
export declare function MoneyDisplay(props: MoneyDisplayProps): JSX.Element | null;
|
|
698
|
+
|
|
699
|
+
export declare interface MoneyDisplayProps {
|
|
700
|
+
value?: Money;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
export declare function MoneyInput(props: MoneyInputProps): JSX.Element;
|
|
704
|
+
|
|
705
|
+
export declare interface MoneyInputProps {
|
|
706
|
+
name: string;
|
|
707
|
+
label?: string;
|
|
708
|
+
placeholder?: string;
|
|
709
|
+
defaultValue?: Money;
|
|
710
|
+
onChange?: (value: Money) => void;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
export declare function Navbar(props: NavbarProps): JSX.Element;
|
|
714
|
+
|
|
715
|
+
export declare interface NavbarLink {
|
|
716
|
+
icon?: JSX.Element;
|
|
717
|
+
label?: string;
|
|
718
|
+
href: string;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
export declare interface NavbarMenu {
|
|
722
|
+
title?: string;
|
|
723
|
+
links?: NavbarLink[];
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
export declare interface NavbarProps {
|
|
727
|
+
pathname?: string;
|
|
728
|
+
searchParams?: URLSearchParams;
|
|
729
|
+
menus?: NavbarMenu[];
|
|
730
|
+
closeNavbar: () => void;
|
|
731
|
+
displayAddBookmark?: boolean;
|
|
732
|
+
resourceTypeSearchDisabled?: boolean;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
export declare function ObservationTable(props: ObservationTableProps): JSX.Element;
|
|
736
|
+
|
|
737
|
+
export declare interface ObservationTableProps {
|
|
738
|
+
value?: Observation[] | Reference<Observation>[];
|
|
739
|
+
ancestorIds?: string[];
|
|
740
|
+
hideObservationNotes?: boolean;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
export declare function OperationOutcomeAlert(props: OperationOutcomeAlertProps): JSX.Element | null;
|
|
744
|
+
|
|
745
|
+
export declare interface OperationOutcomeAlertProps {
|
|
746
|
+
outcome?: OperationOutcome;
|
|
747
|
+
issues?: OperationOutcomeIssue[];
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
export declare function Panel(props: PanelProps): JSX.Element;
|
|
751
|
+
|
|
752
|
+
export declare interface PanelProps extends PaperProps {
|
|
753
|
+
width?: number;
|
|
754
|
+
fill?: boolean;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
export declare interface PanelStylesParams {
|
|
758
|
+
width?: number;
|
|
759
|
+
fill?: boolean;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* Parses an HTML form and returns the result as a JavaScript object.
|
|
764
|
+
* @param form The HTML form element.
|
|
765
|
+
* @returns Form values in key value pairs.
|
|
766
|
+
*/
|
|
767
|
+
export declare function parseForm(form: HTMLFormElement): Record<string, string>;
|
|
768
|
+
|
|
769
|
+
export declare function PatientTimeline(props: PatientTimelineProps): JSX.Element;
|
|
770
|
+
|
|
771
|
+
export declare interface PatientTimelineProps {
|
|
772
|
+
patient: Patient | Reference<Patient>;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
export declare function PlanDefinitionBuilder(props: PlanDefinitionBuilderProps): JSX.Element | null;
|
|
776
|
+
|
|
777
|
+
export declare interface PlanDefinitionBuilderProps {
|
|
778
|
+
value: PlanDefinition | Reference<PlanDefinition>;
|
|
779
|
+
onSubmit: (result: PlanDefinition) => void;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
export declare function QuantityDisplay(props: QuantityDisplayProps): JSX.Element | null;
|
|
783
|
+
|
|
784
|
+
export declare interface QuantityDisplayProps {
|
|
785
|
+
value?: Quantity;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
export declare function QuantityInput(props: QuantityInputProps): JSX.Element;
|
|
789
|
+
|
|
790
|
+
export declare interface QuantityInputProps {
|
|
791
|
+
name: string;
|
|
792
|
+
defaultValue?: Quantity;
|
|
793
|
+
autoFocus?: boolean;
|
|
794
|
+
required?: boolean;
|
|
795
|
+
onChange?: (value: Quantity) => void;
|
|
796
|
+
disableWheel?: boolean;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
export declare function QuestionnaireBuilder(props: QuestionnaireBuilderProps): JSX.Element | null;
|
|
800
|
+
|
|
801
|
+
export declare interface QuestionnaireBuilderProps {
|
|
802
|
+
questionnaire: Questionnaire | Reference<Questionnaire>;
|
|
803
|
+
onSubmit: (result: Questionnaire) => void;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
export declare function QuestionnaireForm(props: QuestionnaireFormProps): JSX.Element | null;
|
|
807
|
+
|
|
808
|
+
export declare interface QuestionnaireFormProps {
|
|
809
|
+
questionnaire: Questionnaire | Reference<Questionnaire>;
|
|
810
|
+
subject?: Reference;
|
|
811
|
+
submitButtonText?: string;
|
|
812
|
+
onSubmit: (response: QuestionnaireResponse) => void;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
export declare enum QuestionnaireItemType {
|
|
816
|
+
group = "group",
|
|
817
|
+
display = "display",
|
|
818
|
+
question = "question",
|
|
819
|
+
boolean = "boolean",
|
|
820
|
+
decimal = "decimal",
|
|
821
|
+
integer = "integer",
|
|
822
|
+
date = "date",
|
|
823
|
+
dateTime = "dateTime",
|
|
824
|
+
time = "time",
|
|
825
|
+
string = "string",
|
|
826
|
+
text = "text",
|
|
827
|
+
url = "url",
|
|
828
|
+
choice = "choice",
|
|
829
|
+
openChoice = "open-choice",
|
|
830
|
+
attachment = "attachment",
|
|
831
|
+
reference = "reference",
|
|
832
|
+
quantity = "quantity"
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
export declare function QuestionnaireRepeatWrapper(props: QuestionnaireRepeatWrapperProps): JSX.Element;
|
|
836
|
+
|
|
837
|
+
export declare interface QuestionnaireRepeatWrapperProps {
|
|
838
|
+
item: QuestionnaireItem;
|
|
839
|
+
allResponses: QuestionnaireResponseItem[];
|
|
840
|
+
currentResponseItems: QuestionnaireResponseItem[];
|
|
841
|
+
groupSequence?: number;
|
|
842
|
+
onChange: (newResponseItem: QuestionnaireResponseItem, index?: number) => void;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
export declare function RangeDisplay(props: RangeDisplayProps): JSX.Element | null;
|
|
846
|
+
|
|
847
|
+
export declare interface RangeDisplayProps {
|
|
848
|
+
value?: Range_2;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* Renders a Range input.
|
|
853
|
+
* See: https://www.hl7.org/fhir/datatypes.html#Range
|
|
854
|
+
* @param props Range input properties.
|
|
855
|
+
* @returns Range input element.
|
|
856
|
+
*/
|
|
857
|
+
export declare function RangeInput(props: RangeInputProps): JSX.Element;
|
|
858
|
+
|
|
859
|
+
export declare interface RangeInputProps {
|
|
860
|
+
name: string;
|
|
861
|
+
defaultValue?: Range_2;
|
|
862
|
+
onChange?: (value: Range_2) => void;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
export declare const reactContext: Context<MedplumContext | undefined>;
|
|
866
|
+
|
|
867
|
+
export declare function ReferenceDisplay(props: ReferenceDisplayProps): JSX.Element | null;
|
|
868
|
+
|
|
869
|
+
export declare interface ReferenceDisplayProps {
|
|
870
|
+
value?: Reference;
|
|
871
|
+
link?: boolean;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
export declare function ReferenceInput(props: ReferenceInputProps): JSX.Element;
|
|
875
|
+
|
|
876
|
+
export declare interface ReferenceInputProps {
|
|
877
|
+
name: string;
|
|
878
|
+
placeholder?: string;
|
|
879
|
+
defaultValue?: Reference;
|
|
880
|
+
targetTypes?: string[];
|
|
881
|
+
autoFocus?: boolean;
|
|
882
|
+
required?: boolean;
|
|
883
|
+
onChange?: (value: Reference | undefined) => void;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
export declare function ReferenceRangeEditor(props: ReferenceRangeEditorProps): JSX.Element;
|
|
887
|
+
|
|
888
|
+
export declare interface ReferenceRangeEditorProps {
|
|
889
|
+
definition: ObservationDefinition;
|
|
890
|
+
onSubmit: (result: ObservationDefinition) => void;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
export declare function ReferenceRangeGroupEditor(props: ReferenceRangeGroupEditorProps): JSX.Element;
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* Helper component that renders an "interval group", which is a set of ObservationDefinitionQualifiedIntervals
|
|
897
|
+
* that have the same filter values
|
|
898
|
+
*/
|
|
899
|
+
export declare interface ReferenceRangeGroupEditorProps {
|
|
900
|
+
intervalGroup: IntervalGroup;
|
|
901
|
+
unit: string | undefined;
|
|
902
|
+
onChange: (groupId: string, changed: ObservationDefinitionQualifiedInterval) => void;
|
|
903
|
+
onAdd: (groupId: string, added: ObservationDefinitionQualifiedInterval) => void;
|
|
904
|
+
onRemove: (groupId: string, removed: ObservationDefinitionQualifiedInterval) => void;
|
|
905
|
+
onRemoveGroup: (removedGroup: IntervalGroup) => void;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
export declare function RegisterForm(props: RegisterFormProps): JSX.Element;
|
|
909
|
+
|
|
910
|
+
export declare interface RegisterFormProps {
|
|
911
|
+
readonly type: 'patient' | 'project';
|
|
912
|
+
readonly projectId?: string;
|
|
913
|
+
readonly clientId?: string;
|
|
914
|
+
readonly googleClientId?: string;
|
|
915
|
+
readonly recaptchaSiteKey?: string;
|
|
916
|
+
readonly children?: React_2.ReactNode;
|
|
917
|
+
readonly onSuccess: () => void;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* Returns a fragment to be displayed in the search table for the value.
|
|
922
|
+
* @param resource The parent resource.
|
|
923
|
+
* @param field The search code or FHIRPath expression.
|
|
924
|
+
* @returns The fragment to display.
|
|
925
|
+
*/
|
|
926
|
+
export declare function renderValue(resource: Resource, field: SearchControlField): string | JSX.Element | null | undefined;
|
|
927
|
+
|
|
928
|
+
export declare function RequestGroupDisplay(props: RequestGroupDisplayProps): JSX.Element | null;
|
|
929
|
+
|
|
930
|
+
export declare interface RequestGroupDisplayProps {
|
|
931
|
+
value?: RequestGroup | Reference<RequestGroup>;
|
|
932
|
+
onStart: (task: Task, input: Reference) => void;
|
|
933
|
+
onEdit: (task: Task, input: Reference, output: Reference) => void;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
export declare function ResourceArrayDisplay(props: ResourceArrayDisplayProps): JSX.Element;
|
|
937
|
+
|
|
938
|
+
declare interface ResourceArrayDisplayProps {
|
|
939
|
+
property: InternalSchemaElement;
|
|
940
|
+
values: any[];
|
|
941
|
+
arrayElement?: boolean;
|
|
942
|
+
ignoreMissingValues?: boolean;
|
|
943
|
+
link?: boolean;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
export declare function ResourceArrayInput(props: ResourceArrayInputProps): JSX.Element;
|
|
947
|
+
|
|
948
|
+
declare interface ResourceArrayInputProps {
|
|
949
|
+
property: InternalSchemaElement;
|
|
950
|
+
name: string;
|
|
951
|
+
defaultValue?: any[];
|
|
952
|
+
arrayElement?: boolean;
|
|
953
|
+
onChange?: (value: any[]) => void;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
export declare function ResourceAvatar(props: ResourceAvatarProps): JSX.Element;
|
|
957
|
+
|
|
958
|
+
export declare interface ResourceAvatarProps extends AvatarProps {
|
|
959
|
+
value?: Reference | Resource;
|
|
960
|
+
link?: boolean;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
export declare function ResourceBadge(props: ResourceBadgeProps): JSX.Element;
|
|
964
|
+
|
|
965
|
+
export declare interface ResourceBadgeProps {
|
|
966
|
+
value?: Reference | Resource;
|
|
967
|
+
link?: boolean;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
export declare function ResourceBlame(props: ResourceBlameProps): JSX.Element | null;
|
|
971
|
+
|
|
972
|
+
export declare interface ResourceBlameProps {
|
|
973
|
+
history?: Bundle;
|
|
974
|
+
resourceType?: ResourceType;
|
|
975
|
+
id?: string;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
export declare function ResourceDiff(props: ResourceDiffProps): JSX.Element;
|
|
979
|
+
|
|
980
|
+
export declare interface ResourceDiffProps {
|
|
981
|
+
original: Resource;
|
|
982
|
+
revised: Resource;
|
|
983
|
+
ignoreMeta?: boolean;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
export declare function ResourceForm(props: ResourceFormProps): JSX.Element;
|
|
987
|
+
|
|
988
|
+
export declare interface ResourceFormProps {
|
|
989
|
+
defaultValue: Resource | Reference;
|
|
990
|
+
outcome?: OperationOutcome;
|
|
991
|
+
onSubmit: (resource: Resource) => void;
|
|
992
|
+
onDelete?: (resource: Resource) => void;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
export declare function ResourceHistoryTable(props: ResourceHistoryTableProps): JSX.Element;
|
|
996
|
+
|
|
997
|
+
export declare interface ResourceHistoryTableProps {
|
|
998
|
+
history?: Bundle;
|
|
999
|
+
resourceType?: string;
|
|
1000
|
+
id?: string;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
export declare function ResourceInput<T extends Resource = Resource>(props: ResourceInputProps<T>): JSX.Element | null;
|
|
1004
|
+
|
|
1005
|
+
export declare interface ResourceInputProps<T extends Resource = Resource> {
|
|
1006
|
+
readonly resourceType: T['resourceType'];
|
|
1007
|
+
readonly name: string;
|
|
1008
|
+
readonly defaultValue?: T | Reference<T>;
|
|
1009
|
+
readonly placeholder?: string;
|
|
1010
|
+
readonly loadOnFocus?: boolean;
|
|
1011
|
+
readonly required?: boolean;
|
|
1012
|
+
readonly onChange?: (value: T | undefined) => void;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
export declare function ResourceName(props: ResourceNameProps): JSX.Element | null;
|
|
1016
|
+
|
|
1017
|
+
export declare interface ResourceNameProps extends TextProps {
|
|
1018
|
+
value?: Reference | Resource;
|
|
1019
|
+
link?: boolean;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* Low-level component that renders a property from a given resource, given type information.
|
|
1024
|
+
* @param props The ResourcePropertyDisplay React props.
|
|
1025
|
+
* @returns The ResourcePropertyDisplay React node.
|
|
1026
|
+
*/
|
|
1027
|
+
export declare function ResourcePropertyDisplay(props: ResourcePropertyDisplayProps): JSX.Element;
|
|
1028
|
+
|
|
1029
|
+
export declare interface ResourcePropertyDisplayProps {
|
|
1030
|
+
property?: InternalSchemaElement;
|
|
1031
|
+
propertyType: string;
|
|
1032
|
+
value: any;
|
|
1033
|
+
arrayElement?: boolean;
|
|
1034
|
+
maxWidth?: number;
|
|
1035
|
+
ignoreMissingValues?: boolean;
|
|
1036
|
+
link?: boolean;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
export declare function ResourcePropertyInput(props: ResourcePropertyInputProps): JSX.Element;
|
|
1040
|
+
|
|
1041
|
+
export declare interface ResourcePropertyInputProps {
|
|
1042
|
+
property: InternalSchemaElement;
|
|
1043
|
+
name: string;
|
|
1044
|
+
defaultPropertyType?: string;
|
|
1045
|
+
defaultValue?: any;
|
|
1046
|
+
arrayElement?: boolean;
|
|
1047
|
+
onChange?: (value: any, propName?: string) => void;
|
|
1048
|
+
outcome?: OperationOutcome;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
export declare function ResourceTable(props: ResourceTableProps): JSX.Element | null;
|
|
1052
|
+
|
|
1053
|
+
export declare interface ResourceTableProps {
|
|
1054
|
+
/**
|
|
1055
|
+
* The input value either as a resource or a reference.
|
|
1056
|
+
*/
|
|
1057
|
+
value: Resource | Reference;
|
|
1058
|
+
/**
|
|
1059
|
+
* Optional flag to ignore missing values.
|
|
1060
|
+
* By default, missing values are displayed as empty strings.
|
|
1061
|
+
*/
|
|
1062
|
+
ignoreMissingValues?: boolean;
|
|
1063
|
+
/**
|
|
1064
|
+
* Optional flag to force use the input value.
|
|
1065
|
+
* This is useful when you want to display a specific version of the resource,
|
|
1066
|
+
* and not use the latest version.
|
|
1067
|
+
*/
|
|
1068
|
+
forceUseInput?: boolean;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
export declare function ResourceTimeline<T extends Resource>(props: ResourceTimelineProps<T>): JSX.Element;
|
|
1072
|
+
|
|
1073
|
+
export declare interface ResourceTimelineProps<T extends Resource> {
|
|
1074
|
+
value: T | Reference<T>;
|
|
1075
|
+
loadTimelineResources: (medplum: MedplumClient, resourceType: ResourceType, id: string) => Promise<PromiseSettledResult<Bundle>[]>;
|
|
1076
|
+
createCommunication?: (resource: T, sender: ProfileResource, text: string) => Communication;
|
|
1077
|
+
createMedia?: (resource: T, operator: ProfileResource, attachment: Attachment) => Media;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
export declare function Scheduler(props: SchedulerProps): JSX.Element | null;
|
|
1081
|
+
|
|
1082
|
+
export declare interface SchedulerProps {
|
|
1083
|
+
schedule: Schedule | Reference<Schedule>;
|
|
1084
|
+
questionnaire: Questionnaire | Reference<Questionnaire>;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
export declare class SearchChangeEvent extends Event {
|
|
1088
|
+
readonly definition: SearchRequest;
|
|
1089
|
+
constructor(definition: SearchRequest);
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
export declare class SearchClickEvent extends Event {
|
|
1093
|
+
readonly resource: Resource;
|
|
1094
|
+
readonly browserEvent: React_2.MouseEvent;
|
|
1095
|
+
constructor(resource: Resource, browserEvent: React_2.MouseEvent);
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* The SearchControl component represents the embeddable search table control.
|
|
1100
|
+
* It includes the table, rows, headers, sorting, etc.
|
|
1101
|
+
* It does not include the field editor, filter editor, pagination buttons.
|
|
1102
|
+
* @param props The SearchControl React props.
|
|
1103
|
+
* @returns The SearchControl React node.
|
|
1104
|
+
*/
|
|
1105
|
+
export declare function SearchControl(props: SearchControlProps): JSX.Element;
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* The SearchControlField type describes a field in the search control.
|
|
1109
|
+
*
|
|
1110
|
+
* In a SearchRequest, a field is a simple string. Strings can be one of the following:
|
|
1111
|
+
* 1) Simple property names, which refer to InternalSchemaElement objects
|
|
1112
|
+
* 2) Search parameter names, which refer to SearchParameter resources
|
|
1113
|
+
*
|
|
1114
|
+
* Consider a few examples of how this becomes complicated.
|
|
1115
|
+
*
|
|
1116
|
+
* "name" (easy)
|
|
1117
|
+
* - element definition path="Patient.name"
|
|
1118
|
+
* - search parameter code="name"
|
|
1119
|
+
*
|
|
1120
|
+
* "birthDate" (medium)
|
|
1121
|
+
* - refers to the element definition path="Patient.birthDate"
|
|
1122
|
+
* - refers to the search parameter code="birthdate" (note the capitalization)
|
|
1123
|
+
*
|
|
1124
|
+
* "email" (hard)
|
|
1125
|
+
* - refers to the search parameter code="email"
|
|
1126
|
+
* - refers to the element definition path="Patient.telecom"
|
|
1127
|
+
*
|
|
1128
|
+
* In the last case, we start with the search parameter, and walk backwards to the
|
|
1129
|
+
* element definition in order to get type details for rendering.
|
|
1130
|
+
*
|
|
1131
|
+
* Overall, we want columns, fields, properties, and search parameters to feel seamless,
|
|
1132
|
+
* so we try our darndest to make this work.
|
|
1133
|
+
*/
|
|
1134
|
+
declare interface SearchControlField {
|
|
1135
|
+
readonly name: string;
|
|
1136
|
+
readonly elementDefinition?: InternalSchemaElement;
|
|
1137
|
+
readonly searchParams?: SearchParameter[];
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
export declare interface SearchControlProps {
|
|
1141
|
+
search: SearchRequest;
|
|
1142
|
+
userConfig?: UserConfiguration;
|
|
1143
|
+
checkboxesEnabled?: boolean;
|
|
1144
|
+
hideToolbar?: boolean;
|
|
1145
|
+
hideFilters?: boolean;
|
|
1146
|
+
onLoad?: (e: SearchLoadEvent) => void;
|
|
1147
|
+
onChange?: (e: SearchChangeEvent) => void;
|
|
1148
|
+
onClick?: (e: SearchClickEvent) => void;
|
|
1149
|
+
onAuxClick?: (e: SearchClickEvent) => void;
|
|
1150
|
+
onNew?: () => void;
|
|
1151
|
+
onExport?: () => void;
|
|
1152
|
+
onExportCsv?: () => void;
|
|
1153
|
+
onExportTransactionBundle?: () => void;
|
|
1154
|
+
onDelete?: (ids: string[]) => void;
|
|
1155
|
+
onPatch?: (ids: string[]) => void;
|
|
1156
|
+
onBulk?: (ids: string[]) => void;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
export declare function SearchFieldEditor(props: SearchFieldEditorProps): JSX.Element | null;
|
|
1160
|
+
|
|
1161
|
+
declare interface SearchFieldEditorProps {
|
|
1162
|
+
visible: boolean;
|
|
1163
|
+
search: SearchRequest;
|
|
1164
|
+
onOk: (search: SearchRequest) => void;
|
|
1165
|
+
onCancel: () => void;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
export declare function SearchFilterEditor(props: SearchFilterEditorProps): JSX.Element | null;
|
|
1169
|
+
|
|
1170
|
+
export declare interface SearchFilterEditorProps {
|
|
1171
|
+
visible: boolean;
|
|
1172
|
+
search: SearchRequest;
|
|
1173
|
+
onOk: (search: SearchRequest) => void;
|
|
1174
|
+
onCancel: () => void;
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
export declare class SearchLoadEvent extends Event {
|
|
1178
|
+
readonly response: Bundle;
|
|
1179
|
+
constructor(response: Bundle);
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
export declare function ServiceRequestTimeline(props: ServiceRequestTimelineProps): JSX.Element;
|
|
1183
|
+
|
|
1184
|
+
export declare interface ServiceRequestTimelineProps {
|
|
1185
|
+
serviceRequest: ServiceRequest | Reference<ServiceRequest>;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* Sets the array of filters.
|
|
1190
|
+
* @param definition The original search request.
|
|
1191
|
+
* @param filters The new filters.
|
|
1192
|
+
* @returns The updated search request.
|
|
1193
|
+
*/
|
|
1194
|
+
export declare function setFilters(definition: SearchRequest, filters: Filter[]): SearchRequest;
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* Sets the offset (starting at zero).
|
|
1198
|
+
* @param definition The original search request.
|
|
1199
|
+
* @param offset The offset number.
|
|
1200
|
+
* @returns The updated search request.
|
|
1201
|
+
*/
|
|
1202
|
+
export declare function setOffset(definition: SearchRequest, offset: number): SearchRequest;
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* Creates a new search request with the search offset at the specified page.
|
|
1206
|
+
* @param definition The search definition.
|
|
1207
|
+
* @param page The new page number
|
|
1208
|
+
* @returns The new search definition.
|
|
1209
|
+
*/
|
|
1210
|
+
export declare function setPage(definition: SearchRequest, page: number): SearchRequest;
|
|
1211
|
+
|
|
1212
|
+
export declare function setQuestionnaireItemReferenceTargetTypes(item: QuestionnaireItem, targetTypes: ResourceType[] | undefined): QuestionnaireItem;
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* Sorts the search by the specified key, and optional direction.
|
|
1216
|
+
* Direction defaults to ascending ('asc') if not specified.
|
|
1217
|
+
* @param definition The original search request.
|
|
1218
|
+
* @param sort The sort key.
|
|
1219
|
+
* @param desc Optional descending flag. Default is false.
|
|
1220
|
+
* @returns The updated search request.
|
|
1221
|
+
*/
|
|
1222
|
+
export declare function setSort(definition: SearchRequest, sort: string, desc?: boolean): SearchRequest;
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* The SignInForm component allows users to sign in to Medplum.
|
|
1226
|
+
*
|
|
1227
|
+
* "Signing in" is a multi-step process:
|
|
1228
|
+
* 1) Authentication - identify the user
|
|
1229
|
+
* 2) MFA - If MFA is enabled, prompt for MFA code
|
|
1230
|
+
* 3) Choose profile - If the user has multiple profiles, prompt to choose one
|
|
1231
|
+
* 4) Choose scope - If the user has multiple scopes, prompt to choose one
|
|
1232
|
+
* 5) Success - Return to the caller with either a code or a redirect
|
|
1233
|
+
* @param props The SignInForm React props.
|
|
1234
|
+
* @returns The SignInForm React node.
|
|
1235
|
+
*/
|
|
1236
|
+
export declare function SignInForm(props: SignInFormProps): JSX.Element;
|
|
1237
|
+
|
|
1238
|
+
export declare interface SignInFormProps extends BaseLoginRequest {
|
|
1239
|
+
readonly login?: string;
|
|
1240
|
+
readonly chooseScopes?: boolean;
|
|
1241
|
+
readonly disableEmailAuth?: boolean;
|
|
1242
|
+
readonly disableGoogleAuth?: boolean;
|
|
1243
|
+
readonly onSuccess?: () => void;
|
|
1244
|
+
readonly onForgotPassword?: () => void;
|
|
1245
|
+
readonly onRegister?: () => void;
|
|
1246
|
+
readonly onCode?: (code: string) => void;
|
|
1247
|
+
readonly children?: React_2.ReactNode;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
export declare interface SmartSearchResponse {
|
|
1251
|
+
data: {
|
|
1252
|
+
ResourceList: Resource[];
|
|
1253
|
+
};
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
/**
|
|
1257
|
+
* Sorts an array of resources in place by meta.lastUpdated ascending.
|
|
1258
|
+
* @param resources Array of resources.
|
|
1259
|
+
* @param timelineResource Optional primary resource of a timeline view. If specified, the primary resource will be sorted by meta.lastUpdated descending.
|
|
1260
|
+
*/
|
|
1261
|
+
export declare function sortByDateAndPriority(resources: Resource[], timelineResource?: Resource): void;
|
|
1262
|
+
|
|
1263
|
+
export declare function StatusBadge(props: StatusBadgeProps): JSX.Element;
|
|
1264
|
+
|
|
1265
|
+
export declare interface StatusBadgeProps {
|
|
1266
|
+
readonly status: string;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
export declare function Timeline(props: TimelineProps): JSX.Element;
|
|
1270
|
+
|
|
1271
|
+
export declare function TimelineItem(props: TimelineItemProps): JSX.Element;
|
|
1272
|
+
|
|
1273
|
+
export declare interface TimelineItemProps extends PanelProps {
|
|
1274
|
+
resource: Resource;
|
|
1275
|
+
profile?: Reference;
|
|
1276
|
+
dateTime?: string;
|
|
1277
|
+
padding?: boolean;
|
|
1278
|
+
popupMenuItems?: React_2.ReactNode;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
export declare interface TimelineProps {
|
|
1282
|
+
children?: React_2.ReactNode;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
export declare function TimingInput(props: TimingInputProps): JSX.Element;
|
|
1286
|
+
|
|
1287
|
+
export declare interface TimingInputProps {
|
|
1288
|
+
name: string;
|
|
1289
|
+
defaultValue?: Timing;
|
|
1290
|
+
onChange?: (newValue: Timing) => void;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
/**
|
|
1294
|
+
* Toggles the sort of the search by key.
|
|
1295
|
+
* If the search is already sorted by the key, reverses the direction.
|
|
1296
|
+
* If the search is not sorted by the key, sort in ascending order.
|
|
1297
|
+
* @param definition The original search request.
|
|
1298
|
+
* @param key The field key name.
|
|
1299
|
+
* @returns The updated search request.
|
|
1300
|
+
*/
|
|
1301
|
+
export declare function toggleSort(definition: SearchRequest, key: string): SearchRequest;
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* Returns the MedplumClient instance.
|
|
1305
|
+
* This is a shortcut for useMedplumContext().medplum.
|
|
1306
|
+
* @returns The MedplumClient instance.
|
|
1307
|
+
*/
|
|
1308
|
+
export declare function useMedplum(): MedplumClient;
|
|
1309
|
+
|
|
1310
|
+
/**
|
|
1311
|
+
* Returns the MedplumContext instance.
|
|
1312
|
+
* @returns The MedplumContext instance.
|
|
1313
|
+
*/
|
|
1314
|
+
export declare function useMedplumContext(): MedplumContext;
|
|
1315
|
+
|
|
1316
|
+
/**
|
|
1317
|
+
* Returns the Medplum navigate function.
|
|
1318
|
+
* @returns The Medplum navigate function.
|
|
1319
|
+
*/
|
|
1320
|
+
export declare function useMedplumNavigate(): MepdlumNavigateFunction;
|
|
1321
|
+
|
|
1322
|
+
/**
|
|
1323
|
+
* Returns the current Medplum user profile (if signed in).
|
|
1324
|
+
* This is a shortcut for useMedplumContext().profile.
|
|
1325
|
+
* @returns The current user profile.
|
|
1326
|
+
*/
|
|
1327
|
+
export declare function useMedplumProfile(): ProfileResource | undefined;
|
|
1328
|
+
|
|
1329
|
+
/**
|
|
1330
|
+
* React Hook to use a FHIR reference.
|
|
1331
|
+
* Handles the complexity of resolving references and caching resources.
|
|
1332
|
+
* @param value The resource or reference to resource.
|
|
1333
|
+
* @param setOutcome Optional callback to set the OperationOutcome.
|
|
1334
|
+
* @returns The resolved resource.
|
|
1335
|
+
*/
|
|
1336
|
+
export declare function useResource<T extends Resource>(value: Reference<T> | T | undefined, setOutcome?: (outcome: OperationOutcome) => void): T | undefined;
|
|
1337
|
+
|
|
1338
|
+
/**
|
|
1339
|
+
* React hook for searching FHIR resources.
|
|
1340
|
+
*
|
|
1341
|
+
* This is a convenience hook for calling the MedplumClient.search() method.
|
|
1342
|
+
*
|
|
1343
|
+
* @param resourceType The FHIR resource type to search.
|
|
1344
|
+
* @param query Optional search parameters.
|
|
1345
|
+
* @returns A 3-element tuple containing the search result, loading flag, and operation outcome.
|
|
1346
|
+
*/
|
|
1347
|
+
export declare function useSearch<K extends ResourceType>(resourceType: K, query?: QueryTypes): [Bundle<ExtractResource<K>> | undefined, boolean, OperationOutcome | undefined];
|
|
1348
|
+
|
|
1349
|
+
/**
|
|
1350
|
+
* React hook for searching for a single FHIR resource.
|
|
1351
|
+
*
|
|
1352
|
+
* This is a convenience hook for calling the MedplumClient.searchOne() method.
|
|
1353
|
+
*
|
|
1354
|
+
* @param resourceType The FHIR resource type to search.
|
|
1355
|
+
* @param query Optional search parameters.
|
|
1356
|
+
* @returns A 3-element tuple containing the search result, loading flag, and operation outcome.
|
|
1357
|
+
*/
|
|
1358
|
+
export declare function useSearchOne<K extends ResourceType>(resourceType: K, query?: QueryTypes): [ExtractResource<K> | undefined, boolean, OperationOutcome | undefined];
|
|
1359
|
+
|
|
1360
|
+
/**
|
|
1361
|
+
* React hook for searching for an array of FHIR resources.
|
|
1362
|
+
*
|
|
1363
|
+
* This is a convenience hook for calling the MedplumClient.searchResources() method.
|
|
1364
|
+
*
|
|
1365
|
+
* @param resourceType The FHIR resource type to search.
|
|
1366
|
+
* @param query Optional search parameters.
|
|
1367
|
+
* @returns A 3-element tuple containing the search result, loading flag, and operation outcome.
|
|
1368
|
+
*/
|
|
1369
|
+
export declare function useSearchResources<K extends ResourceType>(resourceType: K, query?: QueryTypes): [ResourceArray<ExtractResource<K>> | undefined, boolean, OperationOutcome | undefined];
|
|
1370
|
+
|
|
1371
|
+
export { }
|