@medplum/react 2.1.0 → 2.1.2

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 (97) hide show
  1. package/dist/cjs/index.cjs +5 -5
  2. package/dist/cjs/index.cjs.map +4 -4
  3. package/dist/esm/index.mjs +5 -5
  4. package/dist/esm/index.mjs.map +4 -4
  5. package/dist/types/AddressDisplay/AddressDisplay.d.ts +1 -0
  6. package/dist/types/AddressInput/AddressInput.d.ts +1 -0
  7. package/dist/types/AnnotationInput/AnnotationInput.d.ts +1 -0
  8. package/dist/types/AppShell/HeaderSearchInput.d.ts +1 -0
  9. package/dist/types/AppShell/Navbar.d.ts +1 -0
  10. package/dist/types/AsyncAutocomplete/AsyncAutocomplete.d.ts +1 -0
  11. package/dist/types/AttachmentArrayDisplay/AttachmentArrayDisplay.d.ts +1 -0
  12. package/dist/types/AttachmentArrayInput/AttachmentArrayInput.d.ts +1 -0
  13. package/dist/types/AttachmentDisplay/AttachmentDisplay.d.ts +1 -0
  14. package/dist/types/AttachmentInput/AttachmentInput.d.ts +1 -0
  15. package/dist/types/BackboneElementDisplay/BackboneElementDisplay.d.ts +1 -0
  16. package/dist/types/BackboneElementInput/BackboneElementInput.d.ts +1 -0
  17. package/dist/types/BookmarkDialog/BookmarkDialog.d.ts +1 -0
  18. package/dist/types/CalendarInput/CalendarInput.d.ts +1 -0
  19. package/dist/types/CodeInput/CodeInput.d.ts +1 -0
  20. package/dist/types/CodeableConceptDisplay/CodeableConceptDisplay.d.ts +1 -0
  21. package/dist/types/CodeableConceptInput/CodeableConceptInput.d.ts +1 -0
  22. package/dist/types/CodingDisplay/CodingDisplay.d.ts +1 -0
  23. package/dist/types/CodingInput/CodingInput.d.ts +1 -0
  24. package/dist/types/ContactDetailDisplay/ContactDetailDisplay.d.ts +1 -0
  25. package/dist/types/ContactDetailInput/ContactDetailInput.d.ts +1 -0
  26. package/dist/types/ContactPointDisplay/ContactPointDisplay.d.ts +1 -0
  27. package/dist/types/ContactPointInput/ContactPointInput.d.ts +1 -0
  28. package/dist/types/Container/Container.d.ts +1 -0
  29. package/dist/types/DateTimeInput/DateTimeInput.d.ts +1 -0
  30. package/dist/types/DefaultResourceTimeline/DefaultResourceTimeline.d.ts +1 -0
  31. package/dist/types/DiagnosticReportDisplay/DiagnosticReportDisplay.d.ts +1 -0
  32. package/dist/types/Document/Document.d.ts +1 -0
  33. package/dist/types/EncounterTimeline/EncounterTimeline.d.ts +1 -0
  34. package/dist/types/ExtensionInput/ExtensionInput.d.ts +1 -0
  35. package/dist/types/FhirPathDisplay/FhirPathDisplay.d.ts +1 -0
  36. package/dist/types/GoogleButton/GoogleButton.d.ts +1 -0
  37. package/dist/types/HumanNameDisplay/HumanNameDisplay.d.ts +1 -0
  38. package/dist/types/HumanNameInput/HumanNameInput.d.ts +1 -0
  39. package/dist/types/IdentifierDisplay/IdentifierDisplay.d.ts +1 -0
  40. package/dist/types/IdentifierInput/IdentifierInput.d.ts +1 -0
  41. package/dist/types/Loading/Loading.d.ts +1 -0
  42. package/dist/types/Logo/Logo.d.ts +1 -0
  43. package/dist/types/MoneyDisplay/MoneyDisplay.d.ts +1 -0
  44. package/dist/types/MoneyInput/MoneyInput.d.ts +1 -0
  45. package/dist/types/NoteDisplay/NoteDisplay.d.ts +1 -0
  46. package/dist/types/OperationOutcomeAlert/OperationOutcomeAlert.d.ts +1 -0
  47. package/dist/types/Panel/Panel.d.ts +1 -0
  48. package/dist/types/PatientTimeline/PatientTimeline.d.ts +1 -0
  49. package/dist/types/PeriodInput/PeriodInput.d.ts +1 -0
  50. package/dist/types/PlanDefinitionBuilder/PlanDefinitionBuilder.d.ts +1 -0
  51. package/dist/types/QuantityDisplay/QuantityDisplay.d.ts +1 -0
  52. package/dist/types/QuantityInput/QuantityInput.d.ts +1 -0
  53. package/dist/types/QuestionnaireBuilder/QuestionnaireBuilder.d.ts +1 -0
  54. package/dist/types/QuestionnaireForm/QuestionnaireForm.d.ts +5 -3
  55. package/dist/types/QuestionnaireForm/QuestionnaireFormItem/QuestionnaireFormItem.d.ts +5 -3
  56. package/dist/types/RangeDisplay/RangeDisplay.d.ts +1 -0
  57. package/dist/types/RangeInput/RangeInput.d.ts +1 -0
  58. package/dist/types/RatioDisplay/RatioDisplay.d.ts +1 -0
  59. package/dist/types/RatioInput/RatioInput.d.ts +1 -0
  60. package/dist/types/ReferenceDisplay/ReferenceDisplay.d.ts +1 -0
  61. package/dist/types/ReferenceInput/ReferenceInput.d.ts +1 -0
  62. package/dist/types/ReferenceRangeEditor/ReferenceRangeEditor.d.ts +1 -0
  63. package/dist/types/RequestGroupDisplay/RequestGroupDisplay.d.ts +1 -0
  64. package/dist/types/ResourceArrayDisplay/ResourceArrayDisplay.d.ts +1 -0
  65. package/dist/types/ResourceArrayInput/ResourceArrayInput.d.ts +1 -0
  66. package/dist/types/ResourceAvatar/ResourceAvatar.d.ts +1 -0
  67. package/dist/types/ResourceBadge/ResourceBadge.d.ts +1 -0
  68. package/dist/types/ResourceBlame/ResourceBlame.d.ts +1 -0
  69. package/dist/types/ResourceDiff/ResourceDiff.d.ts +1 -0
  70. package/dist/types/ResourceDiffTable/ResourceDiffTable.d.ts +1 -0
  71. package/dist/types/ResourceForm/ResourceForm.d.ts +1 -0
  72. package/dist/types/ResourceHistoryTable/ResourceHistoryTable.d.ts +1 -0
  73. package/dist/types/ResourceInput/ResourceInput.d.ts +1 -0
  74. package/dist/types/ResourceName/ResourceName.d.ts +1 -0
  75. package/dist/types/ResourcePropertyDisplay/ResourcePropertyDisplay.d.ts +1 -0
  76. package/dist/types/ResourcePropertyInput/ResourcePropertyInput.d.ts +1 -0
  77. package/dist/types/ResourceTable/ResourceTable.d.ts +1 -0
  78. package/dist/types/ResourceTimeline/ResourceTimeline.d.ts +1 -0
  79. package/dist/types/Scheduler/Scheduler.d.ts +1 -0
  80. package/dist/types/SearchControl/SearchUtils.d.ts +1 -0
  81. package/dist/types/SearchExportDialog/SearchExportDialog.d.ts +1 -0
  82. package/dist/types/SearchFieldEditor/SearchFieldEditor.d.ts +1 -0
  83. package/dist/types/SearchFilterEditor/SearchFilterEditor.d.ts +1 -0
  84. package/dist/types/SearchFilterValueDialog/SearchFilterValueDialog.d.ts +1 -0
  85. package/dist/types/SearchFilterValueDisplay/SearchFilterValueDisplay.d.ts +1 -0
  86. package/dist/types/SearchFilterValueInput/SearchFilterValueInput.d.ts +1 -0
  87. package/dist/types/SearchPopupMenu/SearchPopupMenu.d.ts +1 -0
  88. package/dist/types/ServiceRequestTimeline/ServiceRequestTimeline.d.ts +1 -0
  89. package/dist/types/StatusBadge/StatusBadge.d.ts +1 -0
  90. package/dist/types/TimingInput/TimingInput.d.ts +1 -0
  91. package/dist/types/ValueSetAutocomplete/ValueSetAutocomplete.d.ts +1 -0
  92. package/dist/types/auth/ChooseProfileForm.d.ts +1 -0
  93. package/dist/types/auth/ChooseScopeForm.d.ts +1 -0
  94. package/dist/types/auth/MfaForm.d.ts +1 -0
  95. package/dist/types/auth/NewProjectForm.d.ts +1 -0
  96. package/dist/types/utils/questionnaire.d.ts +2 -2
  97. package/package.json +20 -20
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Address } from '@medplum/fhirtypes';
2
3
  export interface AddressDisplayProps {
3
4
  value?: Address;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Address } from '@medplum/fhirtypes';
2
3
  export interface AddressInputProps {
3
4
  name: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Annotation } from '@medplum/fhirtypes';
2
3
  export interface AnnotationInputProps {
3
4
  name: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Patient, ServiceRequest } from '@medplum/fhirtypes';
2
3
  export type HeaderSearchTypes = Patient | ServiceRequest;
3
4
  export interface HeaderSearchInputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface NavbarLink {
2
3
  icon?: JSX.Element;
3
4
  label?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { MultiSelectProps, SelectItem } from '@mantine/core';
2
3
  export interface AsyncAutocompleteOption<T> extends SelectItem {
3
4
  resource: T;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Attachment } from '@medplum/fhirtypes';
2
3
  export interface AttachmentArrayDisplayProps {
3
4
  values?: Attachment[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Attachment } from '@medplum/fhirtypes';
2
3
  export interface AttachmentArrayInputProps {
3
4
  name: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Attachment } from '@medplum/fhirtypes';
2
3
  export interface AttachmentDisplayProps {
3
4
  value?: Attachment;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Attachment } from '@medplum/fhirtypes';
2
3
  export interface AttachmentInputProps {
3
4
  name: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TypedValue } from '@medplum/core';
2
3
  export interface BackboneElementDisplayProps {
3
4
  value: TypedValue;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { OperationOutcome } from '@medplum/fhirtypes';
2
3
  export interface BackboneElementInputProps {
3
4
  typeName: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface BookmarkDialogProps {
2
3
  pathname: string;
3
4
  searchParams: URLSearchParams;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Slot } from '@medplum/fhirtypes';
2
3
  export interface CalendarInputProps {
3
4
  slots: Slot[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ElementDefinition } from '@medplum/fhirtypes';
2
3
  export interface CodeInputProps {
3
4
  property: ElementDefinition;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CodeableConcept } from '@medplum/fhirtypes';
2
3
  export interface CodeableConceptDisplayProps {
3
4
  value?: CodeableConcept;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CodeableConcept, ElementDefinition } from '@medplum/fhirtypes';
2
3
  export interface CodeableConceptInputProps {
3
4
  property: ElementDefinition;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Coding } from '@medplum/fhirtypes';
2
3
  export interface CodingDisplayProps {
3
4
  value?: Coding;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Coding, ElementDefinition } from '@medplum/fhirtypes';
2
3
  export interface CodingInputProps {
3
4
  property: ElementDefinition;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ContactDetail } from '@medplum/fhirtypes';
2
3
  export interface ContactDetailDisplayProps {
3
4
  value?: ContactDetail;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ContactDetail } from '@medplum/fhirtypes';
2
3
  export interface ContactDetailInputProps {
3
4
  name: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ContactPoint } from '@medplum/fhirtypes';
2
3
  export interface ContactPointDisplayProps {
3
4
  value?: ContactPoint;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ContactPoint } from '@medplum/fhirtypes';
2
3
  export interface ContactPointInputProps {
3
4
  name: string;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { ContainerProps } from '@mantine/core';
2
3
  export declare function Container(props: ContainerProps): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { OperationOutcome } from '@medplum/fhirtypes';
2
3
  export interface DateTimeInputProps {
3
4
  name?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Reference, Resource } from '@medplum/fhirtypes';
2
3
  export interface DefaultResourceTimelineProps {
3
4
  resource: Resource | Reference;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DiagnosticReport, Observation, Reference } from '@medplum/fhirtypes';
2
3
  export interface DiagnosticReportDisplayProps {
3
4
  value?: DiagnosticReport | Reference<DiagnosticReport>;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { PanelProps } from '../Panel/Panel';
2
3
  export declare function Document(props: PanelProps): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Encounter, Reference } from '@medplum/fhirtypes';
2
3
  export interface EncounterTimelineProps {
3
4
  encounter: Encounter | Reference<Encounter>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Extension } from '@medplum/fhirtypes';
2
3
  export interface ExtensionInputProps {
3
4
  name: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PropertyType } from '@medplum/core';
2
3
  import { Resource } from '@medplum/fhirtypes';
3
4
  export interface FhirPathDisplayProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GoogleCredentialResponse } from '@medplum/core';
2
3
  export interface GoogleButtonProps {
3
4
  readonly googleClientId?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { HumanNameFormatOptions } from '@medplum/core';
2
3
  import { HumanName } from '@medplum/fhirtypes';
3
4
  export interface HumanNameDisplayProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { HumanName } from '@medplum/fhirtypes';
2
3
  export interface HumanNameInputProps {
3
4
  name: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Identifier } from '@medplum/fhirtypes';
2
3
  export interface IdentifierDisplayProps {
3
4
  value?: Identifier;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Identifier } from '@medplum/fhirtypes';
2
3
  export interface IdentifierInputProps {
3
4
  name: string;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function Loading(): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface LogoProps {
2
3
  size: number;
3
4
  fill?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Money } from '@medplum/fhirtypes';
2
3
  export interface MoneyDisplayProps {
3
4
  value?: Money;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Money } from '@medplum/fhirtypes';
2
3
  export interface MoneyInputProps {
3
4
  name: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Annotation } from '@medplum/fhirtypes';
2
3
  export interface NoteDisplayProps {
3
4
  value?: Annotation[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { OperationOutcome, OperationOutcomeIssue } from '@medplum/fhirtypes';
2
3
  export interface OperationOutcomeAlertProps {
3
4
  outcome?: OperationOutcome;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PaperProps } from '@mantine/core';
2
3
  export interface PanelStylesParams {
3
4
  width?: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Patient, Reference } from '@medplum/fhirtypes';
2
3
  export interface PatientTimelineProps {
3
4
  patient: Patient | Reference<Patient>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Period } from '@medplum/fhirtypes';
2
3
  export interface PeriodInputProps {
3
4
  name: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PlanDefinition, Reference } from '@medplum/fhirtypes';
2
3
  export interface PlanDefinitionBuilderProps {
3
4
  value: PlanDefinition | Reference<PlanDefinition>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Quantity } from '@medplum/fhirtypes';
2
3
  export interface QuantityDisplayProps {
3
4
  value?: Quantity;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Quantity } from '@medplum/fhirtypes';
2
3
  export interface QuantityInputProps {
3
4
  name: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Questionnaire, Reference } from '@medplum/fhirtypes';
2
3
  export interface QuestionnaireBuilderProps {
3
4
  questionnaire: Questionnaire | Reference<Questionnaire>;
@@ -1,4 +1,5 @@
1
- import { Questionnaire, QuestionnaireItem, QuestionnaireResponse, QuestionnaireResponseItem, QuestionnaireResponseItemAnswer, Reference } from '@medplum/fhirtypes';
1
+ /// <reference types="react" />
2
+ import { Questionnaire, QuestionnaireItem, QuestionnaireResponse, QuestionnaireResponseItem, Reference } from '@medplum/fhirtypes';
2
3
  export interface QuestionnaireFormProps {
3
4
  questionnaire: Questionnaire | Reference<Questionnaire>;
4
5
  subject?: Reference;
@@ -8,8 +9,9 @@ export interface QuestionnaireFormProps {
8
9
  export declare function QuestionnaireForm(props: QuestionnaireFormProps): JSX.Element | null;
9
10
  export interface QuestionnaireRepeatWrapperProps {
10
11
  item: QuestionnaireItem;
11
- answers: Record<string, QuestionnaireResponseItemAnswer[]>;
12
- responseItems: QuestionnaireResponseItem[];
12
+ allResponses: QuestionnaireResponseItem[];
13
+ currentResponseItems: QuestionnaireResponseItem[];
14
+ groupSequence?: number;
13
15
  onChange: (newResponseItem: QuestionnaireResponseItem, index?: number) => void;
14
16
  }
15
17
  export declare function QuestionnaireRepeatWrapper(props: QuestionnaireRepeatWrapperProps): JSX.Element;
@@ -1,9 +1,11 @@
1
- import { QuestionnaireItem, QuestionnaireResponseItem, QuestionnaireResponseItemAnswer } from '@medplum/fhirtypes';
1
+ /// <reference types="react" />
2
+ import { QuestionnaireItem, QuestionnaireResponseItem } from '@medplum/fhirtypes';
2
3
  export interface QuestionnaireFormItemProps {
3
4
  item: QuestionnaireItem;
4
5
  index: number;
5
- answers: Record<string, QuestionnaireResponseItemAnswer[]>;
6
- responseItems?: QuestionnaireResponseItem[];
6
+ allResponses: QuestionnaireResponseItem[];
7
+ currentResponseItems?: QuestionnaireResponseItem[];
8
+ groupSequence?: number;
7
9
  onChange: (newResponseItem: QuestionnaireResponseItem) => void;
8
10
  }
9
11
  export declare function QuestionnaireFormItem(props: QuestionnaireFormItemProps): JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Range } from '@medplum/fhirtypes';
2
3
  export interface RangeDisplayProps {
3
4
  value?: Range;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Range } from '@medplum/fhirtypes';
2
3
  export interface RangeInputProps {
3
4
  name: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Ratio } from '@medplum/fhirtypes';
2
3
  export interface RatioDisplayProps {
3
4
  value?: Ratio;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Ratio } from '@medplum/fhirtypes';
2
3
  export interface RatioInputProps {
3
4
  name: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Reference } from '@medplum/fhirtypes';
2
3
  export interface ReferenceDisplayProps {
3
4
  value?: Reference;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Reference } from '@medplum/fhirtypes';
2
3
  export interface ReferenceInputProps {
3
4
  name: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ObservationDefinition, ObservationDefinitionQualifiedInterval } from '@medplum/fhirtypes';
2
3
  export interface ReferenceRangeEditorProps {
3
4
  definition: ObservationDefinition;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Reference, RequestGroup, Task } from '@medplum/fhirtypes';
2
3
  export interface RequestGroupDisplayProps {
3
4
  value?: RequestGroup | Reference<RequestGroup>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ElementDefinition } from '@medplum/fhirtypes';
2
3
  interface ResourceArrayDisplayProps {
3
4
  property: ElementDefinition;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ElementDefinition } from '@medplum/fhirtypes';
2
3
  interface ResourceArrayInputProps {
3
4
  property: ElementDefinition;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AvatarProps } from '@mantine/core';
2
3
  import { Reference, Resource } from '@medplum/fhirtypes';
3
4
  export interface ResourceAvatarProps extends AvatarProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Reference, Resource } from '@medplum/fhirtypes';
2
3
  export interface ResourceBadgeProps {
3
4
  value?: Reference | Resource;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Bundle, ResourceType } from '@medplum/fhirtypes';
2
3
  export interface ResourceBlameProps {
3
4
  history?: Bundle;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Resource } from '@medplum/fhirtypes';
2
3
  export interface ResourceDiffProps {
3
4
  original: Resource;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Resource } from '@medplum/fhirtypes';
2
3
  export interface ResourceDiffTableProps {
3
4
  original: Resource;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ElementDefinition, OperationOutcome, Reference, Resource } from '@medplum/fhirtypes';
2
3
  export interface ResourceFormProps {
3
4
  defaultValue: Resource | Reference;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Bundle } from '@medplum/fhirtypes';
2
3
  export interface ResourceHistoryTableProps {
3
4
  history?: Bundle;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Reference, Resource } from '@medplum/fhirtypes';
2
3
  export interface ResourceInputProps<T extends Resource = Resource> {
3
4
  readonly resourceType: T['resourceType'];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TextProps } from '@mantine/core';
2
3
  import { Reference, Resource } from '@medplum/fhirtypes';
3
4
  export interface ResourceNameProps extends TextProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PropertyType, TypedValue } from '@medplum/core';
2
3
  import { ElementDefinition } from '@medplum/fhirtypes';
3
4
  export interface ResourcePropertyDisplayProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PropertyType } from '@medplum/core';
2
3
  import { ElementDefinition, ElementDefinitionType, OperationOutcome } from '@medplum/fhirtypes';
3
4
  export interface ResourcePropertyInputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Reference, Resource } from '@medplum/fhirtypes';
2
3
  export interface ResourceTableProps {
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { MedplumClient, ProfileResource } from '@medplum/core';
2
3
  import { Attachment, Bundle, Communication, Media, Reference, Resource, ResourceType } from '@medplum/fhirtypes';
3
4
  export interface ResourceTimelineProps<T extends Resource> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Questionnaire, Reference, Schedule } from '@medplum/fhirtypes';
2
3
  export interface SchedulerProps {
3
4
  schedule: Schedule | Reference<Schedule>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Filter, Operator, SearchRequest } from '@medplum/core';
2
3
  import { Resource, SearchParameter } from '@medplum/fhirtypes';
3
4
  import { SearchControlField } from './SearchControlField';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface SearchExportDialogProps {
2
3
  visible: boolean;
3
4
  exportCsv?: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SearchRequest } from '@medplum/core';
2
3
  interface SearchFieldEditorProps {
3
4
  visible: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SearchRequest } from '@medplum/core';
2
3
  export interface SearchFilterEditorProps {
3
4
  visible: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Filter } from '@medplum/core';
2
3
  import { SearchParameter } from '@medplum/fhirtypes';
3
4
  export interface SearchFilterValueDialogProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Filter } from '@medplum/core';
2
3
  export interface SearchFilterValueDisplayProps {
3
4
  readonly resourceType: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SearchParameter } from '@medplum/fhirtypes';
2
3
  export interface SearchFilterValueInputProps {
3
4
  resourceType: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Filter, SearchRequest } from '@medplum/core';
2
3
  import { SearchParameter } from '@medplum/fhirtypes';
3
4
  export interface SearchPopupMenuProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Reference, ServiceRequest } from '@medplum/fhirtypes';
2
3
  export interface ServiceRequestTimelineProps {
3
4
  serviceRequest: ServiceRequest | Reference<ServiceRequest>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface StatusBadgeProps {
2
3
  readonly status: string;
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Timing } from '@medplum/fhirtypes';
2
3
  export interface TimingInputProps {
3
4
  name: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ElementDefinition, ValueSetExpansionContains } from '@medplum/fhirtypes';
2
3
  import { AsyncAutocompleteProps } from '../AsyncAutocomplete/AsyncAutocomplete';
3
4
  export interface ValueSetAutocompleteProps extends Omit<AsyncAutocompleteProps<ValueSetExpansionContains>, 'loadOptions' | 'toKey' | 'toOption'> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { LoginAuthenticationResponse } from '@medplum/core';
2
3
  import { ProjectMembership } from '@medplum/fhirtypes';
3
4
  export interface ChooseProfileFormProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { LoginAuthenticationResponse } from '@medplum/core';
2
3
  export interface ChooseScopeFormProps {
3
4
  login: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { LoginAuthenticationResponse } from '@medplum/core';
2
3
  export interface MfaFormProps {
3
4
  login: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { LoginAuthenticationResponse } from '@medplum/core';
2
3
  export interface NewProjectFormProps {
3
4
  login: string;
@@ -1,4 +1,4 @@
1
- import { QuestionnaireItem, QuestionnaireResponseItemAnswer } from '@medplum/fhirtypes';
1
+ import { QuestionnaireItem, QuestionnaireResponseItem } from '@medplum/fhirtypes';
2
2
  export declare enum QuestionnaireItemType {
3
3
  group = "group",
4
4
  display = "display",
@@ -19,4 +19,4 @@ export declare enum QuestionnaireItemType {
19
19
  quantity = "quantity"
20
20
  }
21
21
  export declare function isChoiceQuestion(item: QuestionnaireItem): boolean;
22
- export declare function isQuestionEnabled(item: QuestionnaireItem, answers: Record<string, QuestionnaireResponseItemAnswer[]>): boolean;
22
+ export declare function isQuestionEnabled(item: QuestionnaireItem, responseItems: QuestionnaireResponseItem[]): boolean;