@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.
Files changed (133) hide show
  1. package/api-extractor.json +3 -0
  2. package/dist/types.d.ts +1371 -0
  3. package/package.json +4 -4
  4. package/dist/types/AddressDisplay/AddressDisplay.d.ts +0 -6
  5. package/dist/types/AddressInput/AddressInput.d.ts +0 -8
  6. package/dist/types/AnnotationInput/AnnotationInput.d.ts +0 -8
  7. package/dist/types/AppShell/AppShell.d.ts +0 -14
  8. package/dist/types/AppShell/Header.d.ts +0 -11
  9. package/dist/types/AppShell/HeaderSearchInput.d.ts +0 -8
  10. package/dist/types/AppShell/Navbar.d.ts +0 -19
  11. package/dist/types/AsyncAutocomplete/AsyncAutocomplete.d.ts +0 -15
  12. package/dist/types/AttachmentArrayDisplay/AttachmentArrayDisplay.d.ts +0 -7
  13. package/dist/types/AttachmentArrayInput/AttachmentArrayInput.d.ts +0 -9
  14. package/dist/types/AttachmentButton/AttachmentButton.d.ts +0 -12
  15. package/dist/types/AttachmentDisplay/AttachmentDisplay.d.ts +0 -7
  16. package/dist/types/AttachmentInput/AttachmentInput.d.ts +0 -9
  17. package/dist/types/BackboneElementDisplay/BackboneElementDisplay.d.ts +0 -9
  18. package/dist/types/BackboneElementInput/BackboneElementInput.d.ts +0 -9
  19. package/dist/types/BookmarkDialog/BookmarkDialog.d.ts +0 -11
  20. package/dist/types/CalendarInput/CalendarInput.d.ts +0 -8
  21. package/dist/types/CalendarInput/CalendarInput.utils.d.ts +0 -7
  22. package/dist/types/CheckboxFormSection/CheckboxFormSection.d.ts +0 -9
  23. package/dist/types/CodeInput/CodeInput.d.ts +0 -13
  24. package/dist/types/CodeableConceptDisplay/CodeableConceptDisplay.d.ts +0 -6
  25. package/dist/types/CodeableConceptInput/CodeableConceptInput.d.ts +0 -10
  26. package/dist/types/CodingDisplay/CodingDisplay.d.ts +0 -6
  27. package/dist/types/CodingInput/CodingInput.d.ts +0 -10
  28. package/dist/types/ContactDetailDisplay/ContactDetailDisplay.d.ts +0 -6
  29. package/dist/types/ContactDetailInput/ContactDetailInput.d.ts +0 -8
  30. package/dist/types/ContactPointDisplay/ContactPointDisplay.d.ts +0 -6
  31. package/dist/types/ContactPointInput/ContactPointInput.d.ts +0 -8
  32. package/dist/types/Container/Container.d.ts +0 -3
  33. package/dist/types/DateTimeInput/DateTimeInput.d.ts +0 -20
  34. package/dist/types/DateTimeInput/DateTimeInput.utils.d.ts +0 -12
  35. package/dist/types/DefaultResourceTimeline/DefaultResourceTimeline.d.ts +0 -6
  36. package/dist/types/DescriptionList/DescriptionList.d.ts +0 -11
  37. package/dist/types/DiagnosticReportDisplay/DiagnosticReportDisplay.d.ts +0 -17
  38. package/dist/types/Document/Document.d.ts +0 -3
  39. package/dist/types/EncounterTimeline/EncounterTimeline.d.ts +0 -6
  40. package/dist/types/ErrorBoundary/ErrorBoundary.d.ts +0 -18
  41. package/dist/types/ExtensionInput/ExtensionInput.d.ts +0 -8
  42. package/dist/types/FhirPathDisplay/FhirPathDisplay.d.ts +0 -8
  43. package/dist/types/FhirPathTable/FhirPathTable.d.ts +0 -29
  44. package/dist/types/Form/Form.d.ts +0 -8
  45. package/dist/types/Form/FormUtils.d.ts +0 -6
  46. package/dist/types/FormSection/FormSection.d.ts +0 -11
  47. package/dist/types/GoogleButton/GoogleButton.d.ts +0 -7
  48. package/dist/types/GoogleButton/GoogleButton.utils.d.ts +0 -1
  49. package/dist/types/HumanNameDisplay/HumanNameDisplay.d.ts +0 -8
  50. package/dist/types/HumanNameInput/HumanNameInput.d.ts +0 -8
  51. package/dist/types/IdentifierDisplay/IdentifierDisplay.d.ts +0 -6
  52. package/dist/types/IdentifierInput/IdentifierInput.d.ts +0 -8
  53. package/dist/types/Loading/Loading.d.ts +0 -2
  54. package/dist/types/Logo/Logo.d.ts +0 -6
  55. package/dist/types/MedplumLink/MedplumLink.d.ts +0 -11
  56. package/dist/types/MoneyDisplay/MoneyDisplay.d.ts +0 -6
  57. package/dist/types/MoneyInput/MoneyInput.d.ts +0 -10
  58. package/dist/types/NoteDisplay/NoteDisplay.d.ts +0 -6
  59. package/dist/types/OperationOutcomeAlert/OperationOutcomeAlert.d.ts +0 -7
  60. package/dist/types/Panel/Panel.d.ts +0 -11
  61. package/dist/types/PatientTimeline/PatientTimeline.d.ts +0 -6
  62. package/dist/types/PeriodInput/PeriodInput.d.ts +0 -8
  63. package/dist/types/PlanDefinitionBuilder/PlanDefinitionBuilder.d.ts +0 -7
  64. package/dist/types/QuantityDisplay/QuantityDisplay.d.ts +0 -6
  65. package/dist/types/QuantityInput/QuantityInput.d.ts +0 -11
  66. package/dist/types/QuestionnaireBuilder/QuestionnaireBuilder.d.ts +0 -7
  67. package/dist/types/QuestionnaireForm/QuestionnaireForm.d.ts +0 -17
  68. package/dist/types/QuestionnaireForm/QuestionnaireFormItem/QuestionnaireFormItem.d.ts +0 -11
  69. package/dist/types/RangeDisplay/RangeDisplay.d.ts +0 -6
  70. package/dist/types/RangeInput/RangeInput.d.ts +0 -14
  71. package/dist/types/RatioDisplay/RatioDisplay.d.ts +0 -6
  72. package/dist/types/RatioInput/RatioInput.d.ts +0 -14
  73. package/dist/types/ReferenceDisplay/ReferenceDisplay.d.ts +0 -7
  74. package/dist/types/ReferenceInput/ReferenceInput.d.ts +0 -12
  75. package/dist/types/ReferenceRangeEditor/ReferenceRangeEditor.d.ts +0 -26
  76. package/dist/types/RequestGroupDisplay/RequestGroupDisplay.d.ts +0 -8
  77. package/dist/types/ResourceArrayDisplay/ResourceArrayDisplay.d.ts +0 -11
  78. package/dist/types/ResourceArrayInput/ResourceArrayInput.d.ts +0 -11
  79. package/dist/types/ResourceAvatar/ResourceAvatar.d.ts +0 -8
  80. package/dist/types/ResourceBadge/ResourceBadge.d.ts +0 -7
  81. package/dist/types/ResourceBlame/ResourceBlame.d.ts +0 -8
  82. package/dist/types/ResourceBlame/ResourceBlame.utils.d.ts +0 -3
  83. package/dist/types/ResourceDiff/ResourceDiff.d.ts +0 -8
  84. package/dist/types/ResourceDiffTable/ResourceDiffTable.d.ts +0 -7
  85. package/dist/types/ResourceForm/ResourceForm.d.ts +0 -9
  86. package/dist/types/ResourceForm/ResourceForm.utils.d.ts +0 -2
  87. package/dist/types/ResourceHistoryTable/ResourceHistoryTable.d.ts +0 -8
  88. package/dist/types/ResourceInput/ResourceInput.d.ts +0 -12
  89. package/dist/types/ResourceName/ResourceName.d.ts +0 -8
  90. package/dist/types/ResourcePropertyDisplay/ResourcePropertyDisplay.d.ts +0 -17
  91. package/dist/types/ResourcePropertyDisplay/ResourcePropertyDisplay.utils.d.ts +0 -12
  92. package/dist/types/ResourcePropertyInput/ResourcePropertyInput.d.ts +0 -21
  93. package/dist/types/ResourceTable/ResourceTable.d.ts +0 -20
  94. package/dist/types/ResourceTimeline/ResourceTimeline.d.ts +0 -10
  95. package/dist/types/ResourceTypeInput/ResourceTypeInput.d.ts +0 -12
  96. package/dist/types/Scheduler/Scheduler.d.ts +0 -7
  97. package/dist/types/SearchControl/SearchControl.d.ts +0 -43
  98. package/dist/types/SearchControl/SearchControlField.d.ts +0 -40
  99. package/dist/types/SearchControl/SearchUtils.d.ts +0 -173
  100. package/dist/types/SearchExportDialog/SearchExportDialog.d.ts +0 -15
  101. package/dist/types/SearchFieldEditor/SearchFieldEditor.d.ts +0 -10
  102. package/dist/types/SearchFilterEditor/SearchFilterEditor.d.ts +0 -9
  103. package/dist/types/SearchFilterValueDialog/SearchFilterValueDialog.d.ts +0 -14
  104. package/dist/types/SearchFilterValueDisplay/SearchFilterValueDisplay.d.ts +0 -7
  105. package/dist/types/SearchFilterValueInput/SearchFilterValueInput.d.ts +0 -10
  106. package/dist/types/SearchPopupMenu/SearchPopupMenu.d.ts +0 -10
  107. package/dist/types/ServiceRequestTimeline/ServiceRequestTimeline.d.ts +0 -6
  108. package/dist/types/StatusBadge/StatusBadge.d.ts +0 -5
  109. package/dist/types/Timeline/Timeline.d.ts +0 -15
  110. package/dist/types/TimingInput/TimingInput.d.ts +0 -8
  111. package/dist/types/ValueSetAutocomplete/ValueSetAutocomplete.d.ts +0 -15
  112. package/dist/types/auth/AuthenticationForm.d.ts +0 -27
  113. package/dist/types/auth/ChooseProfileForm.d.ts +0 -9
  114. package/dist/types/auth/ChooseScopeForm.d.ts +0 -8
  115. package/dist/types/auth/MfaForm.d.ts +0 -7
  116. package/dist/types/auth/NewProjectForm.d.ts +0 -7
  117. package/dist/types/auth/NewUserForm.d.ts +0 -11
  118. package/dist/types/auth/RegisterForm.d.ts +0 -11
  119. package/dist/types/auth/SignInForm.d.ts +0 -26
  120. package/dist/types/constants.d.ts +0 -1
  121. package/dist/types/index.d.ts +0 -92
  122. package/dist/types/stories/covid19.d.ts +0 -15
  123. package/dist/types/stories/healthgorilla.d.ts +0 -6
  124. package/dist/types/stories/referenceLab.d.ts +0 -6
  125. package/dist/types/test.setup.d.ts +0 -1
  126. package/dist/types/utils/blame.d.ts +0 -8
  127. package/dist/types/utils/date.d.ts +0 -7
  128. package/dist/types/utils/diff.d.ts +0 -16
  129. package/dist/types/utils/dom.d.ts +0 -15
  130. package/dist/types/utils/outcomes.d.ts +0 -3
  131. package/dist/types/utils/questionnaire.d.ts +0 -25
  132. package/dist/types/utils/recaptcha.d.ts +0 -12
  133. package/dist/types/utils/script.d.ts +0 -6
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { OperationOutcome, OperationOutcomeIssue } from '@medplum/fhirtypes';
3
- export interface OperationOutcomeAlertProps {
4
- outcome?: OperationOutcome;
5
- issues?: OperationOutcomeIssue[];
6
- }
7
- export declare function OperationOutcomeAlert(props: OperationOutcomeAlertProps): JSX.Element | null;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { PaperProps } from '@mantine/core';
3
- export interface PanelStylesParams {
4
- width?: number;
5
- fill?: boolean;
6
- }
7
- export interface PanelProps extends PaperProps {
8
- width?: number;
9
- fill?: boolean;
10
- }
11
- export declare function Panel(props: PanelProps): JSX.Element;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { Patient, Reference } from '@medplum/fhirtypes';
3
- export interface PatientTimelineProps {
4
- patient: Patient | Reference<Patient>;
5
- }
6
- export declare function PatientTimeline(props: PatientTimelineProps): JSX.Element;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { Period } from '@medplum/fhirtypes';
3
- export interface PeriodInputProps {
4
- name: string;
5
- defaultValue?: Period;
6
- onChange?: (value: Period) => void;
7
- }
8
- export declare function PeriodInput(props: PeriodInputProps): JSX.Element;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { PlanDefinition, Reference } from '@medplum/fhirtypes';
3
- export interface PlanDefinitionBuilderProps {
4
- value: PlanDefinition | Reference<PlanDefinition>;
5
- onSubmit: (result: PlanDefinition) => void;
6
- }
7
- export declare function PlanDefinitionBuilder(props: PlanDefinitionBuilderProps): JSX.Element | null;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { Quantity } from '@medplum/fhirtypes';
3
- export interface QuantityDisplayProps {
4
- value?: Quantity;
5
- }
6
- export declare function QuantityDisplay(props: QuantityDisplayProps): JSX.Element | null;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { Quantity } from '@medplum/fhirtypes';
3
- export interface QuantityInputProps {
4
- name: string;
5
- defaultValue?: Quantity;
6
- autoFocus?: boolean;
7
- required?: boolean;
8
- onChange?: (value: Quantity) => void;
9
- disableWheel?: boolean;
10
- }
11
- export declare function QuantityInput(props: QuantityInputProps): JSX.Element;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { Questionnaire, Reference } from '@medplum/fhirtypes';
3
- export interface QuestionnaireBuilderProps {
4
- questionnaire: Questionnaire | Reference<Questionnaire>;
5
- onSubmit: (result: Questionnaire) => void;
6
- }
7
- export declare function QuestionnaireBuilder(props: QuestionnaireBuilderProps): JSX.Element | null;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import { Questionnaire, QuestionnaireItem, QuestionnaireResponse, QuestionnaireResponseItem, Reference } from '@medplum/fhirtypes';
3
- export interface QuestionnaireFormProps {
4
- questionnaire: Questionnaire | Reference<Questionnaire>;
5
- subject?: Reference;
6
- submitButtonText?: string;
7
- onSubmit: (response: QuestionnaireResponse) => void;
8
- }
9
- export declare function QuestionnaireForm(props: QuestionnaireFormProps): JSX.Element | null;
10
- export interface QuestionnaireRepeatWrapperProps {
11
- item: QuestionnaireItem;
12
- allResponses: QuestionnaireResponseItem[];
13
- currentResponseItems: QuestionnaireResponseItem[];
14
- groupSequence?: number;
15
- onChange: (newResponseItem: QuestionnaireResponseItem, index?: number) => void;
16
- }
17
- export declare function QuestionnaireRepeatWrapper(props: QuestionnaireRepeatWrapperProps): JSX.Element;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { QuestionnaireItem, QuestionnaireResponseItem } from '@medplum/fhirtypes';
3
- export interface QuestionnaireFormItemProps {
4
- item: QuestionnaireItem;
5
- index: number;
6
- allResponses: QuestionnaireResponseItem[];
7
- currentResponseItems?: QuestionnaireResponseItem[];
8
- groupSequence?: number;
9
- onChange: (newResponseItem: QuestionnaireResponseItem) => void;
10
- }
11
- export declare function QuestionnaireFormItem(props: QuestionnaireFormItemProps): JSX.Element | null;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { Range } from '@medplum/fhirtypes';
3
- export interface RangeDisplayProps {
4
- value?: Range;
5
- }
6
- export declare function RangeDisplay(props: RangeDisplayProps): JSX.Element | null;
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import { Range } from '@medplum/fhirtypes';
3
- export interface RangeInputProps {
4
- name: string;
5
- defaultValue?: Range;
6
- onChange?: (value: Range) => void;
7
- }
8
- /**
9
- * Renders a Range input.
10
- * See: https://www.hl7.org/fhir/datatypes.html#Range
11
- * @param props Range input properties.
12
- * @returns Range input element.
13
- */
14
- export declare function RangeInput(props: RangeInputProps): JSX.Element;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { Ratio } from '@medplum/fhirtypes';
3
- export interface RatioDisplayProps {
4
- value?: Ratio;
5
- }
6
- export declare function RatioDisplay(props: RatioDisplayProps): JSX.Element | null;
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import { Ratio } from '@medplum/fhirtypes';
3
- export interface RatioInputProps {
4
- name: string;
5
- defaultValue?: Ratio;
6
- onChange?: (value: Ratio) => void;
7
- }
8
- /**
9
- * Renders a Ratio input.
10
- * See: https://www.hl7.org/fhir/datatypes.html#Ratio
11
- * @param props Ratio input properties.
12
- * @returns Ratio input element.
13
- */
14
- export declare function RatioInput(props: RatioInputProps): JSX.Element;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { Reference } from '@medplum/fhirtypes';
3
- export interface ReferenceDisplayProps {
4
- value?: Reference;
5
- link?: boolean;
6
- }
7
- export declare function ReferenceDisplay(props: ReferenceDisplayProps): JSX.Element | null;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { Reference } from '@medplum/fhirtypes';
3
- export interface ReferenceInputProps {
4
- name: string;
5
- placeholder?: string;
6
- defaultValue?: Reference;
7
- targetTypes?: string[];
8
- autoFocus?: boolean;
9
- required?: boolean;
10
- onChange?: (value: Reference | undefined) => void;
11
- }
12
- export declare function ReferenceInput(props: ReferenceInputProps): JSX.Element;
@@ -1,26 +0,0 @@
1
- /// <reference types="react" />
2
- import { ObservationDefinition, ObservationDefinitionQualifiedInterval } from '@medplum/fhirtypes';
3
- export interface ReferenceRangeEditorProps {
4
- definition: ObservationDefinition;
5
- onSubmit: (result: ObservationDefinition) => void;
6
- }
7
- type IntervalGroup = {
8
- id: string;
9
- filters: Record<string, any>;
10
- intervals: ObservationDefinitionQualifiedInterval[];
11
- };
12
- export declare function ReferenceRangeEditor(props: ReferenceRangeEditorProps): JSX.Element;
13
- /**
14
- * Helper component that renders an "interval group", which is a set of ObservationDefinitionQualifiedIntervals
15
- * that have the same filter values
16
- */
17
- export interface ReferenceRangeGroupEditorProps {
18
- intervalGroup: IntervalGroup;
19
- unit: string | undefined;
20
- onChange: (groupId: string, changed: ObservationDefinitionQualifiedInterval) => void;
21
- onAdd: (groupId: string, added: ObservationDefinitionQualifiedInterval) => void;
22
- onRemove: (groupId: string, removed: ObservationDefinitionQualifiedInterval) => void;
23
- onRemoveGroup: (removedGroup: IntervalGroup) => void;
24
- }
25
- export declare function ReferenceRangeGroupEditor(props: ReferenceRangeGroupEditorProps): JSX.Element;
26
- export {};
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { Reference, RequestGroup, Task } from '@medplum/fhirtypes';
3
- export interface RequestGroupDisplayProps {
4
- value?: RequestGroup | Reference<RequestGroup>;
5
- onStart: (task: Task, input: Reference) => void;
6
- onEdit: (task: Task, input: Reference, output: Reference) => void;
7
- }
8
- export declare function RequestGroupDisplay(props: RequestGroupDisplayProps): JSX.Element | null;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { InternalSchemaElement } from '@medplum/core';
3
- interface ResourceArrayDisplayProps {
4
- property: InternalSchemaElement;
5
- values: any[];
6
- arrayElement?: boolean;
7
- ignoreMissingValues?: boolean;
8
- link?: boolean;
9
- }
10
- export declare function ResourceArrayDisplay(props: ResourceArrayDisplayProps): JSX.Element;
11
- export {};
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { InternalSchemaElement } from '@medplum/core';
3
- interface ResourceArrayInputProps {
4
- property: InternalSchemaElement;
5
- name: string;
6
- defaultValue?: any[];
7
- arrayElement?: boolean;
8
- onChange?: (value: any[]) => void;
9
- }
10
- export declare function ResourceArrayInput(props: ResourceArrayInputProps): JSX.Element;
11
- export {};
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { AvatarProps } from '@mantine/core';
3
- import { Reference, Resource } from '@medplum/fhirtypes';
4
- export interface ResourceAvatarProps extends AvatarProps {
5
- value?: Reference | Resource;
6
- link?: boolean;
7
- }
8
- export declare function ResourceAvatar(props: ResourceAvatarProps): JSX.Element;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { Reference, Resource } from '@medplum/fhirtypes';
3
- export interface ResourceBadgeProps {
4
- value?: Reference | Resource;
5
- link?: boolean;
6
- }
7
- export declare function ResourceBadge(props: ResourceBadgeProps): JSX.Element;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { Bundle, ResourceType } from '@medplum/fhirtypes';
3
- export interface ResourceBlameProps {
4
- history?: Bundle;
5
- resourceType?: ResourceType;
6
- id?: string;
7
- }
8
- export declare function ResourceBlame(props: ResourceBlameProps): JSX.Element | null;
@@ -1,3 +0,0 @@
1
- import { Resource } from '@medplum/fhirtypes';
2
- export declare function getVersionUrl(resource: Resource, versionId: string): string;
3
- export declare function getTimeString(lastUpdated: string): string;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { Resource } from '@medplum/fhirtypes';
3
- export interface ResourceDiffProps {
4
- original: Resource;
5
- revised: Resource;
6
- ignoreMeta?: boolean;
7
- }
8
- export declare function ResourceDiff(props: ResourceDiffProps): JSX.Element;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { Resource } from '@medplum/fhirtypes';
3
- export interface ResourceDiffTableProps {
4
- original: Resource;
5
- revised: Resource;
6
- }
7
- export declare function ResourceDiffTable(props: ResourceDiffTableProps): JSX.Element | null;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { OperationOutcome, Reference, Resource } from '@medplum/fhirtypes';
3
- export interface ResourceFormProps {
4
- defaultValue: Resource | Reference;
5
- outcome?: OperationOutcome;
6
- onSubmit: (resource: Resource) => void;
7
- onDelete?: (resource: Resource) => void;
8
- }
9
- export declare function ResourceForm(props: ResourceFormProps): JSX.Element;
@@ -1,2 +0,0 @@
1
- import { InternalSchemaElement } from '@medplum/core';
2
- export declare function setPropertyValue(obj: any, key: string, propName: string, elementDefinition: InternalSchemaElement, value: any): any;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { Bundle } from '@medplum/fhirtypes';
3
- export interface ResourceHistoryTableProps {
4
- history?: Bundle;
5
- resourceType?: string;
6
- id?: string;
7
- }
8
- export declare function ResourceHistoryTable(props: ResourceHistoryTableProps): JSX.Element;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { Reference, Resource } from '@medplum/fhirtypes';
3
- export interface ResourceInputProps<T extends Resource = Resource> {
4
- readonly resourceType: T['resourceType'];
5
- readonly name: string;
6
- readonly defaultValue?: T | Reference<T>;
7
- readonly placeholder?: string;
8
- readonly loadOnFocus?: boolean;
9
- readonly required?: boolean;
10
- readonly onChange?: (value: T | undefined) => void;
11
- }
12
- export declare function ResourceInput<T extends Resource = Resource>(props: ResourceInputProps<T>): JSX.Element | null;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { TextProps } from '@mantine/core';
3
- import { Reference, Resource } from '@medplum/fhirtypes';
4
- export interface ResourceNameProps extends TextProps {
5
- value?: Reference | Resource;
6
- link?: boolean;
7
- }
8
- export declare function ResourceName(props: ResourceNameProps): JSX.Element | null;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import { InternalSchemaElement } from '@medplum/core';
3
- export interface ResourcePropertyDisplayProps {
4
- property?: InternalSchemaElement;
5
- propertyType: string;
6
- value: any;
7
- arrayElement?: boolean;
8
- maxWidth?: number;
9
- ignoreMissingValues?: boolean;
10
- link?: boolean;
11
- }
12
- /**
13
- * Low-level component that renders a property from a given resource, given type information.
14
- * @param props The ResourcePropertyDisplay React props.
15
- * @returns The ResourcePropertyDisplay React node.
16
- */
17
- export declare function ResourcePropertyDisplay(props: ResourcePropertyDisplayProps): JSX.Element;
@@ -1,12 +0,0 @@
1
- import { TypedValue } from '@medplum/core';
2
- /**
3
- * Returns the value of the property and the property type.
4
- * Some property definitions support multiple types.
5
- * For example, "Observation.value[x]" can be "valueString", "valueInteger", "valueQuantity", etc.
6
- * According to the spec, there can only be one property for a given element definition.
7
- * This function returns the value and the type.
8
- * @param context The base context (usually a FHIR resource).
9
- * @param path The property path.
10
- * @returns The value of the property and the property type.
11
- */
12
- export declare function getValueAndType(context: TypedValue, path: string): [any, string];
@@ -1,21 +0,0 @@
1
- /// <reference types="react" />
2
- import { InternalSchemaElement } from '@medplum/core';
3
- import { ElementDefinitionType, OperationOutcome } from '@medplum/fhirtypes';
4
- export interface ResourcePropertyInputProps {
5
- property: InternalSchemaElement;
6
- name: string;
7
- defaultPropertyType?: string;
8
- defaultValue?: any;
9
- arrayElement?: boolean;
10
- onChange?: (value: any, propName?: string) => void;
11
- outcome?: OperationOutcome;
12
- }
13
- export declare function ResourcePropertyInput(props: ResourcePropertyInputProps): JSX.Element;
14
- export interface ElementDefinitionSelectorProps extends ResourcePropertyInputProps {
15
- elementDefinitionTypes: ElementDefinitionType[];
16
- }
17
- export declare function ElementDefinitionInputSelector(props: ElementDefinitionSelectorProps): JSX.Element;
18
- export interface ElementDefinitionTypeInputProps extends ResourcePropertyInputProps {
19
- elementDefinitionType: ElementDefinitionType;
20
- }
21
- export declare function ElementDefinitionTypeInput(props: ElementDefinitionTypeInputProps): JSX.Element;
@@ -1,20 +0,0 @@
1
- /// <reference types="react" />
2
- import { Reference, Resource } from '@medplum/fhirtypes';
3
- export interface ResourceTableProps {
4
- /**
5
- * The input value either as a resource or a reference.
6
- */
7
- value: Resource | Reference;
8
- /**
9
- * Optional flag to ignore missing values.
10
- * By default, missing values are displayed as empty strings.
11
- */
12
- ignoreMissingValues?: boolean;
13
- /**
14
- * Optional flag to force use the input value.
15
- * This is useful when you want to display a specific version of the resource,
16
- * and not use the latest version.
17
- */
18
- forceUseInput?: boolean;
19
- }
20
- export declare function ResourceTable(props: ResourceTableProps): JSX.Element | null;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { MedplumClient, ProfileResource } from '@medplum/core';
3
- import { Attachment, Bundle, Communication, Media, Reference, Resource, ResourceType } from '@medplum/fhirtypes';
4
- export interface ResourceTimelineProps<T extends Resource> {
5
- value: T | Reference<T>;
6
- loadTimelineResources: (medplum: MedplumClient, resourceType: ResourceType, id: string) => Promise<PromiseSettledResult<Bundle>[]>;
7
- createCommunication?: (resource: T, sender: ProfileResource, text: string) => Communication;
8
- createMedia?: (resource: T, operator: ProfileResource, attachment: Attachment) => Media;
9
- }
10
- export declare function ResourceTimeline<T extends Resource>(props: ResourceTimelineProps<T>): JSX.Element;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { ResourceType } from '@medplum/fhirtypes';
3
- export interface ResourceTypeInputProps {
4
- name: string;
5
- placeholder?: string;
6
- defaultValue?: ResourceType;
7
- targetTypes?: string[];
8
- autoFocus?: boolean;
9
- testId?: string;
10
- onChange?: (value: ResourceType | undefined) => void;
11
- }
12
- export declare function ResourceTypeInput(props: ResourceTypeInputProps): JSX.Element;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { Questionnaire, Reference, Schedule } from '@medplum/fhirtypes';
3
- export interface SchedulerProps {
4
- schedule: Schedule | Reference<Schedule>;
5
- questionnaire: Questionnaire | Reference<Questionnaire>;
6
- }
7
- export declare function Scheduler(props: SchedulerProps): JSX.Element | null;
@@ -1,43 +0,0 @@
1
- import { SearchRequest } from '@medplum/core';
2
- import { Bundle, Resource, UserConfiguration } from '@medplum/fhirtypes';
3
- import React from 'react';
4
- export declare class SearchChangeEvent extends Event {
5
- readonly definition: SearchRequest;
6
- constructor(definition: SearchRequest);
7
- }
8
- export declare class SearchLoadEvent extends Event {
9
- readonly response: Bundle;
10
- constructor(response: Bundle);
11
- }
12
- export declare class SearchClickEvent extends Event {
13
- readonly resource: Resource;
14
- readonly browserEvent: React.MouseEvent;
15
- constructor(resource: Resource, browserEvent: React.MouseEvent);
16
- }
17
- export interface SearchControlProps {
18
- search: SearchRequest;
19
- userConfig?: UserConfiguration;
20
- checkboxesEnabled?: boolean;
21
- hideToolbar?: boolean;
22
- hideFilters?: boolean;
23
- onLoad?: (e: SearchLoadEvent) => void;
24
- onChange?: (e: SearchChangeEvent) => void;
25
- onClick?: (e: SearchClickEvent) => void;
26
- onAuxClick?: (e: SearchClickEvent) => void;
27
- onNew?: () => void;
28
- onExport?: () => void;
29
- onExportCsv?: () => void;
30
- onExportTransactionBundle?: () => void;
31
- onDelete?: (ids: string[]) => void;
32
- onPatch?: (ids: string[]) => void;
33
- onBulk?: (ids: string[]) => void;
34
- }
35
- /**
36
- * The SearchControl component represents the embeddable search table control.
37
- * It includes the table, rows, headers, sorting, etc.
38
- * It does not include the field editor, filter editor, pagination buttons.
39
- * @param props The SearchControl React props.
40
- * @returns The SearchControl React node.
41
- */
42
- export declare function SearchControl(props: SearchControlProps): JSX.Element;
43
- export declare const MemoizedSearchControl: React.MemoExoticComponent<typeof SearchControl>;
@@ -1,40 +0,0 @@
1
- import { InternalSchemaElement, SearchRequest } from '@medplum/core';
2
- import { SearchParameter } from '@medplum/fhirtypes';
3
- /**
4
- * The SearchControlField type describes a field in the search control.
5
- *
6
- * In a SearchRequest, a field is a simple string. Strings can be one of the following:
7
- * 1) Simple property names, which refer to InternalSchemaElement objects
8
- * 2) Search parameter names, which refer to SearchParameter resources
9
- *
10
- * Consider a few examples of how this becomes complicated.
11
- *
12
- * "name" (easy)
13
- * - element definition path="Patient.name"
14
- * - search parameter code="name"
15
- *
16
- * "birthDate" (medium)
17
- * - refers to the element definition path="Patient.birthDate"
18
- * - refers to the search parameter code="birthdate" (note the capitalization)
19
- *
20
- * "email" (hard)
21
- * - refers to the search parameter code="email"
22
- * - refers to the element definition path="Patient.telecom"
23
- *
24
- * In the last case, we start with the search parameter, and walk backwards to the
25
- * element definition in order to get type details for rendering.
26
- *
27
- * Overall, we want columns, fields, properties, and search parameters to feel seamless,
28
- * so we try our darndest to make this work.
29
- */
30
- export interface SearchControlField {
31
- readonly name: string;
32
- readonly elementDefinition?: InternalSchemaElement;
33
- readonly searchParams?: SearchParameter[];
34
- }
35
- /**
36
- * Returns the collection of field definitions for the search request.
37
- * @param search The search request definition.
38
- * @returns An array of field definitions.
39
- */
40
- export declare function getFieldDefinitions(search: SearchRequest): SearchControlField[];