@medplum/react 5.0.10 → 5.0.12

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.
@@ -86,6 +86,7 @@ import type { Timing } from '@medplum/fhirtypes';
86
86
  import type { TypedValue } from '@medplum/core';
87
87
  import type { ValueSetExpandParams } from '@medplum/core';
88
88
  import type { ValueSetExpansionContains } from '@medplum/fhirtypes';
89
+ import type { WithId } from '@medplum/core';
89
90
 
90
91
  /**
91
92
  * Adds a filter for a date between two dates (inclusive of both dates).
@@ -218,6 +219,7 @@ export declare interface AppShellProps {
218
219
  readonly resourceTypeSearchDisabled?: boolean;
219
220
  readonly notifications?: ReactNode;
220
221
  readonly layoutVersion?: 'v1' | 'v2';
222
+ readonly spotlightPatientsOnly?: boolean;
221
223
  }
222
224
 
223
225
  export declare function AsyncAutocomplete<T>(props: AsyncAutocompleteProps<T>): JSX.Element;
@@ -781,6 +783,8 @@ export declare interface HeaderProps {
781
783
  readonly notifications?: ReactNode;
782
784
  }
783
785
 
786
+ export declare type HeaderSearchTypes = Patient | ServiceRequest;
787
+
784
788
  export declare function HumanNameDisplay(props: HumanNameDisplayProps): JSX.Element | null;
785
789
 
786
790
  export declare interface HumanNameDisplayProps {
@@ -913,7 +917,7 @@ export declare interface MedplumContext {
913
917
 
914
918
  export declare function MedplumLink(props: MedplumLinkProps): JSX.Element;
915
919
 
916
- export declare interface MedplumLinkProps extends TextProps {
920
+ export declare interface MedplumLinkProps extends AnchorProps {
917
921
  readonly to?: Resource | Reference | string;
918
922
  readonly suffix?: string;
919
923
  readonly label?: string;
@@ -988,6 +992,7 @@ export declare interface NavbarProps {
988
992
  readonly navbarToggle: () => void;
989
993
  readonly closeNavbar: () => void;
990
994
  readonly spotlightEnabled?: boolean;
995
+ readonly patientsOnly?: boolean;
991
996
  readonly userMenuEnabled?: boolean;
992
997
  readonly displayAddBookmark?: boolean;
993
998
  readonly resourceTypeSearchDisabled?: boolean;
@@ -1737,6 +1742,12 @@ export declare interface SmartSearchResponse {
1737
1742
  */
1738
1743
  export declare function sortByDateAndPriority(resources: Resource[], timelineResource?: Resource): void;
1739
1744
 
1745
+ export declare function Spotlight({ patientsOnly }: SpotlightProps): JSX.Element;
1746
+
1747
+ export declare interface SpotlightProps {
1748
+ readonly patientsOnly?: boolean;
1749
+ }
1750
+
1740
1751
  export declare function StatusBadge(props: StatusBadgeProps): JSX.Element;
1741
1752
 
1742
1753
  export declare interface StatusBadgeProps extends Omit<BadgeProps, 'children'> {
@@ -1856,7 +1867,7 @@ export declare interface UseQuestionnaireFormProps {
1856
1867
  * @param setOutcome - Optional callback to set the OperationOutcome.
1857
1868
  * @returns The resolved resource.
1858
1869
  */
1859
- export declare function useResource<T extends Resource>(value: Reference<T> | Partial<T> | undefined, setOutcome?: (outcome: OperationOutcome) => void): T | undefined;
1870
+ export declare function useResource<T extends Resource>(value: Reference<T> | Partial<T> | undefined, setOutcome?: (outcome: OperationOutcome) => void): WithId<T> | undefined;
1860
1871
 
1861
1872
  /**
1862
1873
  * React hook for searching FHIR resources.