@medplum/react 2.1.9 → 2.1.11

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 (139) hide show
  1. package/api-extractor.json +3 -0
  2. package/babel.config.cjs +19 -0
  3. package/dist/cjs/index.cjs +5 -5
  4. package/dist/cjs/index.cjs.map +4 -4
  5. package/dist/esm/index.mjs +4 -4
  6. package/dist/esm/index.mjs.map +4 -4
  7. package/dist/types.d.ts +1388 -0
  8. package/package.json +38 -37
  9. package/tsdoc.json +4 -0
  10. package/dist/types/AddressDisplay/AddressDisplay.d.ts +0 -6
  11. package/dist/types/AddressInput/AddressInput.d.ts +0 -8
  12. package/dist/types/AnnotationInput/AnnotationInput.d.ts +0 -8
  13. package/dist/types/AppShell/AppShell.d.ts +0 -14
  14. package/dist/types/AppShell/Header.d.ts +0 -11
  15. package/dist/types/AppShell/HeaderSearchInput.d.ts +0 -8
  16. package/dist/types/AppShell/Navbar.d.ts +0 -19
  17. package/dist/types/AsyncAutocomplete/AsyncAutocomplete.d.ts +0 -15
  18. package/dist/types/AttachmentArrayDisplay/AttachmentArrayDisplay.d.ts +0 -7
  19. package/dist/types/AttachmentArrayInput/AttachmentArrayInput.d.ts +0 -9
  20. package/dist/types/AttachmentButton/AttachmentButton.d.ts +0 -12
  21. package/dist/types/AttachmentDisplay/AttachmentDisplay.d.ts +0 -7
  22. package/dist/types/AttachmentInput/AttachmentInput.d.ts +0 -9
  23. package/dist/types/BackboneElementDisplay/BackboneElementDisplay.d.ts +0 -9
  24. package/dist/types/BackboneElementInput/BackboneElementInput.d.ts +0 -9
  25. package/dist/types/BookmarkDialog/BookmarkDialog.d.ts +0 -11
  26. package/dist/types/CalendarInput/CalendarInput.d.ts +0 -8
  27. package/dist/types/CalendarInput/CalendarInput.utils.d.ts +0 -7
  28. package/dist/types/CheckboxFormSection/CheckboxFormSection.d.ts +0 -9
  29. package/dist/types/CodeInput/CodeInput.d.ts +0 -13
  30. package/dist/types/CodeableConceptDisplay/CodeableConceptDisplay.d.ts +0 -6
  31. package/dist/types/CodeableConceptInput/CodeableConceptInput.d.ts +0 -10
  32. package/dist/types/CodingDisplay/CodingDisplay.d.ts +0 -6
  33. package/dist/types/CodingInput/CodingInput.d.ts +0 -10
  34. package/dist/types/ContactDetailDisplay/ContactDetailDisplay.d.ts +0 -6
  35. package/dist/types/ContactDetailInput/ContactDetailInput.d.ts +0 -8
  36. package/dist/types/ContactPointDisplay/ContactPointDisplay.d.ts +0 -6
  37. package/dist/types/ContactPointInput/ContactPointInput.d.ts +0 -8
  38. package/dist/types/Container/Container.d.ts +0 -3
  39. package/dist/types/DateTimeInput/DateTimeInput.d.ts +0 -20
  40. package/dist/types/DateTimeInput/DateTimeInput.utils.d.ts +0 -12
  41. package/dist/types/DefaultResourceTimeline/DefaultResourceTimeline.d.ts +0 -6
  42. package/dist/types/DescriptionList/DescriptionList.d.ts +0 -11
  43. package/dist/types/DiagnosticReportDisplay/DiagnosticReportDisplay.d.ts +0 -17
  44. package/dist/types/Document/Document.d.ts +0 -3
  45. package/dist/types/EncounterTimeline/EncounterTimeline.d.ts +0 -6
  46. package/dist/types/ErrorBoundary/ErrorBoundary.d.ts +0 -18
  47. package/dist/types/ExtensionInput/ExtensionInput.d.ts +0 -8
  48. package/dist/types/FhirPathDisplay/FhirPathDisplay.d.ts +0 -8
  49. package/dist/types/FhirPathTable/FhirPathTable.d.ts +0 -29
  50. package/dist/types/Form/Form.d.ts +0 -8
  51. package/dist/types/Form/FormUtils.d.ts +0 -6
  52. package/dist/types/FormSection/FormSection.d.ts +0 -11
  53. package/dist/types/GoogleButton/GoogleButton.d.ts +0 -7
  54. package/dist/types/GoogleButton/GoogleButton.utils.d.ts +0 -1
  55. package/dist/types/HumanNameDisplay/HumanNameDisplay.d.ts +0 -8
  56. package/dist/types/HumanNameInput/HumanNameInput.d.ts +0 -8
  57. package/dist/types/IdentifierDisplay/IdentifierDisplay.d.ts +0 -6
  58. package/dist/types/IdentifierInput/IdentifierInput.d.ts +0 -8
  59. package/dist/types/Loading/Loading.d.ts +0 -2
  60. package/dist/types/Logo/Logo.d.ts +0 -6
  61. package/dist/types/MedplumLink/MedplumLink.d.ts +0 -11
  62. package/dist/types/MoneyDisplay/MoneyDisplay.d.ts +0 -6
  63. package/dist/types/MoneyInput/MoneyInput.d.ts +0 -10
  64. package/dist/types/NoteDisplay/NoteDisplay.d.ts +0 -6
  65. package/dist/types/OperationOutcomeAlert/OperationOutcomeAlert.d.ts +0 -7
  66. package/dist/types/Panel/Panel.d.ts +0 -11
  67. package/dist/types/PatientTimeline/PatientTimeline.d.ts +0 -6
  68. package/dist/types/PeriodInput/PeriodInput.d.ts +0 -8
  69. package/dist/types/PlanDefinitionBuilder/PlanDefinitionBuilder.d.ts +0 -7
  70. package/dist/types/QuantityDisplay/QuantityDisplay.d.ts +0 -6
  71. package/dist/types/QuantityInput/QuantityInput.d.ts +0 -11
  72. package/dist/types/QuestionnaireBuilder/QuestionnaireBuilder.d.ts +0 -7
  73. package/dist/types/QuestionnaireForm/QuestionnaireForm.d.ts +0 -17
  74. package/dist/types/QuestionnaireForm/QuestionnaireFormItem/QuestionnaireFormItem.d.ts +0 -11
  75. package/dist/types/RangeDisplay/RangeDisplay.d.ts +0 -6
  76. package/dist/types/RangeInput/RangeInput.d.ts +0 -14
  77. package/dist/types/RatioDisplay/RatioDisplay.d.ts +0 -6
  78. package/dist/types/RatioInput/RatioInput.d.ts +0 -14
  79. package/dist/types/ReferenceDisplay/ReferenceDisplay.d.ts +0 -7
  80. package/dist/types/ReferenceInput/ReferenceInput.d.ts +0 -12
  81. package/dist/types/ReferenceRangeEditor/ReferenceRangeEditor.d.ts +0 -26
  82. package/dist/types/RequestGroupDisplay/RequestGroupDisplay.d.ts +0 -8
  83. package/dist/types/ResourceArrayDisplay/ResourceArrayDisplay.d.ts +0 -11
  84. package/dist/types/ResourceArrayInput/ResourceArrayInput.d.ts +0 -11
  85. package/dist/types/ResourceAvatar/ResourceAvatar.d.ts +0 -8
  86. package/dist/types/ResourceBadge/ResourceBadge.d.ts +0 -7
  87. package/dist/types/ResourceBlame/ResourceBlame.d.ts +0 -8
  88. package/dist/types/ResourceBlame/ResourceBlame.utils.d.ts +0 -3
  89. package/dist/types/ResourceDiff/ResourceDiff.d.ts +0 -8
  90. package/dist/types/ResourceDiffTable/ResourceDiffTable.d.ts +0 -7
  91. package/dist/types/ResourceForm/ResourceForm.d.ts +0 -9
  92. package/dist/types/ResourceForm/ResourceForm.utils.d.ts +0 -2
  93. package/dist/types/ResourceHistoryTable/ResourceHistoryTable.d.ts +0 -8
  94. package/dist/types/ResourceInput/ResourceInput.d.ts +0 -12
  95. package/dist/types/ResourceName/ResourceName.d.ts +0 -8
  96. package/dist/types/ResourcePropertyDisplay/ResourcePropertyDisplay.d.ts +0 -17
  97. package/dist/types/ResourcePropertyDisplay/ResourcePropertyDisplay.utils.d.ts +0 -12
  98. package/dist/types/ResourcePropertyInput/ResourcePropertyInput.d.ts +0 -21
  99. package/dist/types/ResourceTable/ResourceTable.d.ts +0 -20
  100. package/dist/types/ResourceTimeline/ResourceTimeline.d.ts +0 -10
  101. package/dist/types/ResourceTypeInput/ResourceTypeInput.d.ts +0 -12
  102. package/dist/types/Scheduler/Scheduler.d.ts +0 -7
  103. package/dist/types/SearchControl/SearchControl.d.ts +0 -43
  104. package/dist/types/SearchControl/SearchControlField.d.ts +0 -40
  105. package/dist/types/SearchControl/SearchUtils.d.ts +0 -173
  106. package/dist/types/SearchExportDialog/SearchExportDialog.d.ts +0 -15
  107. package/dist/types/SearchFieldEditor/SearchFieldEditor.d.ts +0 -10
  108. package/dist/types/SearchFilterEditor/SearchFilterEditor.d.ts +0 -9
  109. package/dist/types/SearchFilterValueDialog/SearchFilterValueDialog.d.ts +0 -14
  110. package/dist/types/SearchFilterValueDisplay/SearchFilterValueDisplay.d.ts +0 -7
  111. package/dist/types/SearchFilterValueInput/SearchFilterValueInput.d.ts +0 -10
  112. package/dist/types/SearchPopupMenu/SearchPopupMenu.d.ts +0 -10
  113. package/dist/types/ServiceRequestTimeline/ServiceRequestTimeline.d.ts +0 -6
  114. package/dist/types/StatusBadge/StatusBadge.d.ts +0 -5
  115. package/dist/types/Timeline/Timeline.d.ts +0 -15
  116. package/dist/types/TimingInput/TimingInput.d.ts +0 -8
  117. package/dist/types/ValueSetAutocomplete/ValueSetAutocomplete.d.ts +0 -15
  118. package/dist/types/auth/AuthenticationForm.d.ts +0 -27
  119. package/dist/types/auth/ChooseProfileForm.d.ts +0 -9
  120. package/dist/types/auth/ChooseScopeForm.d.ts +0 -8
  121. package/dist/types/auth/MfaForm.d.ts +0 -7
  122. package/dist/types/auth/NewProjectForm.d.ts +0 -7
  123. package/dist/types/auth/NewUserForm.d.ts +0 -11
  124. package/dist/types/auth/RegisterForm.d.ts +0 -11
  125. package/dist/types/auth/SignInForm.d.ts +0 -26
  126. package/dist/types/constants.d.ts +0 -1
  127. package/dist/types/index.d.ts +0 -92
  128. package/dist/types/stories/covid19.d.ts +0 -15
  129. package/dist/types/stories/healthgorilla.d.ts +0 -6
  130. package/dist/types/stories/referenceLab.d.ts +0 -6
  131. package/dist/types/test.setup.d.ts +0 -1
  132. package/dist/types/utils/blame.d.ts +0 -8
  133. package/dist/types/utils/date.d.ts +0 -7
  134. package/dist/types/utils/diff.d.ts +0 -16
  135. package/dist/types/utils/dom.d.ts +0 -15
  136. package/dist/types/utils/outcomes.d.ts +0 -3
  137. package/dist/types/utils/questionnaire.d.ts +0 -25
  138. package/dist/types/utils/recaptcha.d.ts +0 -12
  139. package/dist/types/utils/script.d.ts +0 -6
package/package.json CHANGED
@@ -1,24 +1,50 @@
1
1
  {
2
2
  "name": "@medplum/react",
3
- "version": "2.1.9",
3
+ "version": "2.1.11",
4
4
  "description": "Medplum React Component Library",
5
- "author": "Medplum <hello@medplum.com>",
6
- "license": "Apache-2.0",
5
+ "keywords": [
6
+ "medplum",
7
+ "fhir",
8
+ "healthcare",
9
+ "interoperability",
10
+ "json",
11
+ "serialization",
12
+ "hl7",
13
+ "standards",
14
+ "clinical",
15
+ "dstu2",
16
+ "stu3",
17
+ "r4",
18
+ "normative",
19
+ "ui",
20
+ "input",
21
+ "react",
22
+ "react-component"
23
+ ],
7
24
  "homepage": "https://www.medplum.com/",
8
25
  "repository": {
9
26
  "type": "git",
10
- "url": "https://github.com/medplum/medplum.git",
27
+ "url": "git+https://github.com/medplum/medplum.git",
11
28
  "directory": "packages/react"
12
29
  },
13
- "engines": {
14
- "node": ">=18.0.0"
30
+ "license": "Apache-2.0",
31
+ "author": "Medplum <hello@medplum.com>",
32
+ "type": "module",
33
+ "sideEffects": false,
34
+ "exports": {
35
+ "types": "./dist/types.d.ts",
36
+ "require": "./dist/cjs/index.cjs",
37
+ "import": "./dist/esm/index.mjs"
15
38
  },
39
+ "main": "dist/cjs/index.cjs",
40
+ "module": "dist/esm/index.mjs",
41
+ "types": "dist/types.d.ts",
16
42
  "scripts": {
43
+ "build": "npm run clean && tsc --project tsconfig.build.json && node esbuild.mjs && api-extractor run --local",
17
44
  "clean": "rimraf dist storybook-static",
18
45
  "dev": "storybook dev -p 6006",
19
- "build": "npm run clean && tsc --project tsconfig.build.json && node esbuild.mjs",
20
- "test": "jest",
21
- "storybook": "storybook build"
46
+ "storybook": "storybook build",
47
+ "test": "jest"
22
48
  },
23
49
  "devDependencies": {
24
50
  "@emotion/react": "11.11.1",
@@ -76,32 +102,7 @@
76
102
  "optional": true
77
103
  }
78
104
  },
79
- "main": "dist/cjs/index.cjs",
80
- "module": "dist/esm/index.mjs",
81
- "types": "dist/types/index.d.ts",
82
- "exports": {
83
- "types": "./dist/types/index.d.ts",
84
- "require": "./dist/cjs/index.cjs",
85
- "import": "./dist/esm/index.mjs"
86
- },
87
- "sideEffects": false,
88
- "keywords": [
89
- "medplum",
90
- "fhir",
91
- "healthcare",
92
- "interoperability",
93
- "json",
94
- "serialization",
95
- "hl7",
96
- "standards",
97
- "clinical",
98
- "dstu2",
99
- "stu3",
100
- "r4",
101
- "normative",
102
- "ui",
103
- "input",
104
- "react",
105
- "react-component"
106
- ]
105
+ "engines": {
106
+ "node": ">=18.0.0"
107
+ }
107
108
  }
package/tsdoc.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
3
+ "extends": ["../../tsdoc.json"]
4
+ }
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { Address } from '@medplum/fhirtypes';
3
- export interface AddressDisplayProps {
4
- value?: Address;
5
- }
6
- export declare function AddressDisplay(props: AddressDisplayProps): JSX.Element | null;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { Address } from '@medplum/fhirtypes';
3
- export interface AddressInputProps {
4
- name: string;
5
- defaultValue?: Address;
6
- onChange?: (value: Address) => void;
7
- }
8
- export declare function AddressInput(props: AddressInputProps): JSX.Element;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { Annotation } from '@medplum/fhirtypes';
3
- export interface AnnotationInputProps {
4
- name: string;
5
- defaultValue?: Annotation;
6
- onChange?: (value: Annotation) => void;
7
- }
8
- export declare function AnnotationInput(props: AnnotationInputProps): JSX.Element;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { NavbarMenu } from './Navbar';
3
- export interface AppShellProps {
4
- logo: React.ReactNode;
5
- pathname?: string;
6
- searchParams?: URLSearchParams;
7
- headerSearchDisabled?: boolean;
8
- version?: string;
9
- menus?: NavbarMenu[];
10
- children: React.ReactNode;
11
- displayAddBookmark?: boolean;
12
- resourceTypeSearchDisabled?: boolean;
13
- }
14
- export declare function AppShell(props: AppShellProps): JSX.Element;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- interface HeaderProps {
3
- pathname?: string;
4
- searchParams?: URLSearchParams;
5
- headerSearchDisabled?: boolean;
6
- logo: React.ReactNode;
7
- version?: string;
8
- navbarToggle: () => void;
9
- }
10
- export declare function Header(props: HeaderProps): JSX.Element;
11
- export {};
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { Patient, ServiceRequest } from '@medplum/fhirtypes';
3
- export type HeaderSearchTypes = Patient | ServiceRequest;
4
- export interface HeaderSearchInputProps {
5
- pathname?: string;
6
- searchParams?: URLSearchParams;
7
- }
8
- export declare function HeaderSearchInput(props: HeaderSearchInputProps): JSX.Element;
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- export interface NavbarLink {
3
- icon?: JSX.Element;
4
- label?: string;
5
- href: string;
6
- }
7
- export interface NavbarMenu {
8
- title?: string;
9
- links?: NavbarLink[];
10
- }
11
- export interface NavbarProps {
12
- pathname?: string;
13
- searchParams?: URLSearchParams;
14
- menus?: NavbarMenu[];
15
- closeNavbar: () => void;
16
- displayAddBookmark?: boolean;
17
- resourceTypeSearchDisabled?: boolean;
18
- }
19
- export declare function Navbar(props: NavbarProps): JSX.Element;
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import { MultiSelectProps, SelectItem } from '@mantine/core';
3
- export interface AsyncAutocompleteOption<T> extends SelectItem {
4
- resource: T;
5
- }
6
- export interface AsyncAutocompleteProps<T> extends Omit<MultiSelectProps, 'data' | 'defaultValue' | 'loadOptions' | 'onChange' | 'onCreate' | 'searchable'> {
7
- defaultValue?: T | T[];
8
- toKey: (item: T) => string;
9
- toOption: (item: T) => AsyncAutocompleteOption<T>;
10
- loadOptions: (input: string, signal: AbortSignal) => Promise<T[]>;
11
- onChange: (item: T[]) => void;
12
- onCreate?: (input: string) => T;
13
- creatable?: boolean;
14
- }
15
- export declare function AsyncAutocomplete<T>(props: AsyncAutocompleteProps<T>): JSX.Element;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { Attachment } from '@medplum/fhirtypes';
3
- export interface AttachmentArrayDisplayProps {
4
- values?: Attachment[];
5
- maxWidth?: number;
6
- }
7
- export declare function AttachmentArrayDisplay(props: AttachmentArrayDisplayProps): JSX.Element;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { Attachment } from '@medplum/fhirtypes';
3
- export interface AttachmentArrayInputProps {
4
- name: string;
5
- defaultValue?: Attachment[];
6
- arrayElement?: boolean;
7
- onChange?: (value: Attachment[]) => void;
8
- }
9
- export declare function AttachmentArrayInput(props: AttachmentArrayInputProps): JSX.Element;
@@ -1,12 +0,0 @@
1
- import { Attachment, OperationOutcome } from '@medplum/fhirtypes';
2
- import React from 'react';
3
- export interface AttachmentButtonProps {
4
- onUpload: (attachment: Attachment) => void;
5
- onUploadStart?: () => void;
6
- onUploadProgress?: (e: ProgressEvent) => void;
7
- onUploadError?: (outcome: OperationOutcome) => void;
8
- children(props: {
9
- onClick(e: React.MouseEvent): void;
10
- }): React.ReactNode;
11
- }
12
- export declare function AttachmentButton(props: AttachmentButtonProps): JSX.Element;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { Attachment } from '@medplum/fhirtypes';
3
- export interface AttachmentDisplayProps {
4
- value?: Attachment;
5
- maxWidth?: number;
6
- }
7
- export declare function AttachmentDisplay(props: AttachmentDisplayProps): JSX.Element | null;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { Attachment } from '@medplum/fhirtypes';
3
- export interface AttachmentInputProps {
4
- name: string;
5
- defaultValue?: Attachment;
6
- arrayElement?: boolean;
7
- onChange?: (value: Attachment | undefined) => void;
8
- }
9
- export declare function AttachmentInput(props: AttachmentInputProps): JSX.Element;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { TypedValue } from '@medplum/core';
3
- export interface BackboneElementDisplayProps {
4
- value: TypedValue;
5
- compact?: boolean;
6
- ignoreMissingValues?: boolean;
7
- link?: boolean;
8
- }
9
- export declare function BackboneElementDisplay(props: BackboneElementDisplayProps): JSX.Element | null;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { OperationOutcome } from '@medplum/fhirtypes';
3
- export interface BackboneElementInputProps {
4
- typeName: string;
5
- defaultValue?: any;
6
- outcome?: OperationOutcome;
7
- onChange?: (value: any) => void;
8
- }
9
- export declare function BackboneElementInput(props: BackboneElementInputProps): JSX.Element;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- interface BookmarkDialogProps {
3
- pathname: string;
4
- searchParams: URLSearchParams;
5
- visible: boolean;
6
- onOk: () => void;
7
- onCancel: () => void;
8
- defaultValue?: string;
9
- }
10
- export declare function BookmarkDialog(props: BookmarkDialogProps): JSX.Element | null;
11
- export {};
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { Slot } from '@medplum/fhirtypes';
3
- export interface CalendarInputProps {
4
- slots: Slot[];
5
- onChangeMonth: (date: Date) => void;
6
- onClick: (date: Date) => void;
7
- }
8
- export declare function CalendarInput(props: CalendarInputProps): JSX.Element;
@@ -1,7 +0,0 @@
1
- /**
2
- * Returns a month display string (e.g. "January 2020").
3
- * @param date Any date within the month.
4
- * @returns The month display string (e.g. "January 2020")
5
- */
6
- export declare function getMonthString(date: Date): string;
7
- export declare function getStartMonth(): Date;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- export interface CheckboxFormSectionProps {
3
- htmlFor?: string;
4
- title?: string;
5
- description?: string;
6
- withAsterisk?: boolean;
7
- children?: React.ReactNode;
8
- }
9
- export declare function CheckboxFormSection(props: CheckboxFormSectionProps): JSX.Element;
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- export interface CodeInputProps {
3
- binding: string | undefined;
4
- name: string;
5
- placeholder?: string;
6
- defaultValue?: string;
7
- onChange?: (value: string | undefined) => void;
8
- creatable?: boolean;
9
- maxSelectedValues?: number;
10
- clearSearchOnChange?: boolean;
11
- clearable?: boolean;
12
- }
13
- export declare function CodeInput(props: CodeInputProps): JSX.Element;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { CodeableConcept } from '@medplum/fhirtypes';
3
- export interface CodeableConceptDisplayProps {
4
- value?: CodeableConcept;
5
- }
6
- export declare function CodeableConceptDisplay(props: CodeableConceptDisplayProps): JSX.Element;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { CodeableConcept } from '@medplum/fhirtypes';
3
- export interface CodeableConceptInputProps {
4
- binding: string | undefined;
5
- name: string;
6
- placeholder?: string;
7
- defaultValue?: CodeableConcept;
8
- onChange?: (value: CodeableConcept | undefined) => void;
9
- }
10
- export declare function CodeableConceptInput(props: CodeableConceptInputProps): JSX.Element;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { Coding } from '@medplum/fhirtypes';
3
- export interface CodingDisplayProps {
4
- value?: Coding;
5
- }
6
- export declare function CodingDisplay(props: CodingDisplayProps): JSX.Element;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { Coding } from '@medplum/fhirtypes';
3
- export interface CodingInputProps {
4
- binding: string | undefined;
5
- name: string;
6
- placeholder?: string;
7
- defaultValue?: Coding;
8
- onChange?: (value: Coding | undefined) => void;
9
- }
10
- export declare function CodingInput(props: CodingInputProps): JSX.Element;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { ContactDetail } from '@medplum/fhirtypes';
3
- export interface ContactDetailDisplayProps {
4
- value?: ContactDetail;
5
- }
6
- export declare function ContactDetailDisplay(props: ContactDetailDisplayProps): JSX.Element | null;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { ContactDetail } from '@medplum/fhirtypes';
3
- export interface ContactDetailInputProps {
4
- name: string;
5
- defaultValue?: ContactDetail;
6
- onChange?: (value: ContactDetail) => void;
7
- }
8
- export declare function ContactDetailInput(props: ContactDetailInputProps): JSX.Element;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { ContactPoint } from '@medplum/fhirtypes';
3
- export interface ContactPointDisplayProps {
4
- value?: ContactPoint;
5
- }
6
- export declare function ContactPointDisplay(props: ContactPointDisplayProps): JSX.Element | null;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { ContactPoint } from '@medplum/fhirtypes';
3
- export interface ContactPointInputProps {
4
- name: string;
5
- defaultValue?: ContactPoint;
6
- onChange?: (value: ContactPoint | undefined) => void;
7
- }
8
- export declare function ContactPointInput(props: ContactPointInputProps): JSX.Element;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { ContainerProps } from '@mantine/core';
3
- export declare function Container(props: ContainerProps): JSX.Element;
@@ -1,20 +0,0 @@
1
- /// <reference types="react" />
2
- import { OperationOutcome } from '@medplum/fhirtypes';
3
- export interface DateTimeInputProps {
4
- name?: string;
5
- placeholder?: string;
6
- defaultValue?: string;
7
- autoFocus?: boolean;
8
- required?: boolean;
9
- outcome?: OperationOutcome;
10
- onChange?: (value: string) => void;
11
- }
12
- /**
13
- * The DateTimeInput component is a wrapper around the HTML5 input type="datetime-local".
14
- * The main purpose is to reconcile time zones.
15
- * Most of our date/time values are in ISO-8601, which includes a time zone offset.
16
- * The datetime-local input does not support the time zone offset.
17
- * @param props The Input props.
18
- * @returns The JSX element to render.
19
- */
20
- export declare function DateTimeInput(props: DateTimeInputProps): JSX.Element;
@@ -1,12 +0,0 @@
1
- /**
2
- * Converts an ISO-8601 date/time string to a local date/time string.
3
- * @param isoString The ISO-8601 date/time string to convert.
4
- * @returns The local date/time string.
5
- */
6
- export declare function convertIsoToLocal(isoString: string | undefined): string;
7
- /**
8
- * Converts a local date/time string to an ISO-8601 date/time string.
9
- * @param localString The local date/time string to convert.
10
- * @returns The ISO-8601 date/time string.
11
- */
12
- export declare function convertLocalToIso(localString: string | undefined): string;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { Reference, Resource } from '@medplum/fhirtypes';
3
- export interface DefaultResourceTimelineProps {
4
- resource: Resource | Reference;
5
- }
6
- export declare function DefaultResourceTimeline(props: DefaultResourceTimelineProps): JSX.Element;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- export interface DescriptionListProps {
3
- children: React.ReactNode;
4
- compact?: boolean;
5
- }
6
- export declare function DescriptionList(props: DescriptionListProps): JSX.Element;
7
- export interface DescriptionListEntryProps {
8
- term: string;
9
- children: React.ReactNode;
10
- }
11
- export declare function DescriptionListEntry(props: DescriptionListEntryProps): JSX.Element;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import { DiagnosticReport, Observation, Reference } from '@medplum/fhirtypes';
3
- export interface DiagnosticReportDisplayProps {
4
- value?: DiagnosticReport | Reference<DiagnosticReport>;
5
- hideObservationNotes?: boolean;
6
- hideSpecimenInfo?: boolean;
7
- }
8
- export declare function DiagnosticReportDisplay(props: DiagnosticReportDisplayProps): JSX.Element | null;
9
- export declare namespace DiagnosticReportDisplay {
10
- var defaultProps: DiagnosticReportDisplayProps;
11
- }
12
- export interface ObservationTableProps {
13
- value?: Observation[] | Reference<Observation>[];
14
- ancestorIds?: string[];
15
- hideObservationNotes?: boolean;
16
- }
17
- export declare function ObservationTable(props: ObservationTableProps): JSX.Element;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { PanelProps } from '../Panel/Panel';
3
- export declare function Document(props: PanelProps): JSX.Element;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { Encounter, Reference } from '@medplum/fhirtypes';
3
- export interface EncounterTimelineProps {
4
- encounter: Encounter | Reference<Encounter>;
5
- }
6
- export declare function EncounterTimeline(props: EncounterTimelineProps): JSX.Element;
@@ -1,18 +0,0 @@
1
- import React, { ErrorInfo, ReactNode } from 'react';
2
- export interface ErrorBoundaryProps {
3
- children: ReactNode;
4
- }
5
- export interface ErrorBoundaryState {
6
- error?: any;
7
- }
8
- /**
9
- * ErrorBoundary is a React component that handles errors in its child components.
10
- * See: https://reactjs.org/docs/error-boundaries.html
11
- */
12
- export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
13
- state: ErrorBoundaryState;
14
- constructor(props: ErrorBoundaryProps);
15
- static getDerivedStateFromError(error: any): ErrorBoundaryState;
16
- componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
17
- render(): ReactNode;
18
- }
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { Extension } from '@medplum/fhirtypes';
3
- export interface ExtensionInputProps {
4
- name: string;
5
- defaultValue?: Extension;
6
- onChange?: (value: Extension) => void;
7
- }
8
- export declare function ExtensionInput(props: ExtensionInputProps): JSX.Element;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { Resource } from '@medplum/fhirtypes';
3
- export interface FhirPathDisplayProps {
4
- resource: Resource;
5
- path: string;
6
- propertyType: string;
7
- }
8
- export declare function FhirPathDisplay(props: FhirPathDisplayProps): JSX.Element | null;
@@ -1,29 +0,0 @@
1
- import { Resource } from '@medplum/fhirtypes';
2
- import React from 'react';
3
- import { SearchClickEvent } from '../SearchControl/SearchControl';
4
- export interface FhirPathTableField {
5
- readonly propertyType: string;
6
- readonly name: string;
7
- readonly fhirPath: string;
8
- }
9
- export interface FhirPathTableProps {
10
- resourceType: string;
11
- query: string;
12
- fields: FhirPathTableField[];
13
- checkboxesEnabled?: boolean;
14
- onClick?: (e: SearchClickEvent) => void;
15
- onAuxClick?: (e: SearchClickEvent) => void;
16
- onBulk?: (ids: string[]) => void;
17
- }
18
- export interface SmartSearchResponse {
19
- data: {
20
- ResourceList: Resource[];
21
- };
22
- }
23
- /**
24
- * The FhirPathTable component represents the embeddable search table control.
25
- * @param props FhirPathTable React props.
26
- * @returns FhirPathTable React node.
27
- */
28
- export declare function FhirPathTable(props: FhirPathTableProps): JSX.Element;
29
- export declare const MemoizedFhirPathTable: React.MemoExoticComponent<typeof FhirPathTable>;
@@ -1,8 +0,0 @@
1
- import React, { CSSProperties } from 'react';
2
- export interface FormProps {
3
- onSubmit?: (formData: Record<string, string>) => void;
4
- style?: CSSProperties;
5
- children?: React.ReactNode;
6
- testid?: string;
7
- }
8
- export declare function Form(props: FormProps): JSX.Element;
@@ -1,6 +0,0 @@
1
- /**
2
- * Parses an HTML form and returns the result as a JavaScript object.
3
- * @param form The HTML form element.
4
- * @returns Form values in key value pairs.
5
- */
6
- export declare function parseForm(form: HTMLFormElement): Record<string, string>;
@@ -1,11 +0,0 @@
1
- import { OperationOutcome } from '@medplum/fhirtypes';
2
- import React from 'react';
3
- export interface FormSectionProps {
4
- title?: string;
5
- htmlFor?: string;
6
- description?: string;
7
- withAsterisk?: boolean;
8
- outcome?: OperationOutcome;
9
- children?: React.ReactNode;
10
- }
11
- export declare function FormSection(props: FormSectionProps): JSX.Element;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { GoogleCredentialResponse } from '@medplum/core';
3
- export interface GoogleButtonProps {
4
- readonly googleClientId?: string;
5
- readonly handleGoogleCredential: (response: GoogleCredentialResponse) => void;
6
- }
7
- export declare function GoogleButton(props: GoogleButtonProps): JSX.Element | null;
@@ -1 +0,0 @@
1
- export declare function getGoogleClientId(clientId: string | undefined): string | undefined;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { HumanNameFormatOptions } from '@medplum/core';
3
- import { HumanName } from '@medplum/fhirtypes';
4
- export interface HumanNameDisplayProps {
5
- value?: HumanName;
6
- options?: HumanNameFormatOptions;
7
- }
8
- export declare function HumanNameDisplay(props: HumanNameDisplayProps): JSX.Element | null;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { HumanName } from '@medplum/fhirtypes';
3
- export interface HumanNameInputProps {
4
- name: string;
5
- defaultValue?: HumanName;
6
- onChange?: (value: HumanName) => void;
7
- }
8
- export declare function HumanNameInput(props: HumanNameInputProps): JSX.Element;