@medplum/react 2.1.4 → 2.1.6
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/dist/cjs/index.cjs +4 -4
- package/dist/cjs/index.cjs.map +4 -4
- package/dist/esm/index.mjs +5 -5
- package/dist/esm/index.mjs.map +4 -4
- package/dist/types/AppShell/AppShell.d.ts +2 -0
- package/dist/types/AppShell/Header.d.ts +1 -0
- package/dist/types/AppShell/Navbar.d.ts +1 -0
- package/dist/types/CalendarInput/CalendarInput.d.ts +0 -7
- package/dist/types/CalendarInput/CalendarInput.utils.d.ts +7 -0
- package/dist/types/CodeInput/CodeInput.d.ts +1 -2
- package/dist/types/CodeableConceptInput/CodeableConceptInput.d.ts +2 -2
- package/dist/types/CodingInput/CodingInput.d.ts +2 -2
- package/dist/types/DateTimeInput/DateTimeInput.d.ts +0 -12
- package/dist/types/DateTimeInput/DateTimeInput.utils.d.ts +12 -0
- package/dist/types/DiagnosticReportDisplay/DiagnosticReportDisplay.d.ts +1 -0
- package/dist/types/FhirPathDisplay/FhirPathDisplay.d.ts +1 -2
- package/dist/types/FhirPathTable/FhirPathTable.d.ts +1 -2
- package/dist/types/GoogleButton/GoogleButton.d.ts +0 -1
- package/dist/types/GoogleButton/GoogleButton.utils.d.ts +1 -0
- package/dist/types/MedplumProvider/MedplumProvider.context.d.ts +32 -0
- package/dist/types/MedplumProvider/MedplumProvider.d.ts +2 -30
- package/dist/types/ResourceArrayDisplay/ResourceArrayDisplay.d.ts +2 -2
- package/dist/types/ResourceArrayInput/ResourceArrayInput.d.ts +2 -2
- package/dist/types/ResourceBlame/ResourceBlame.d.ts +0 -1
- package/dist/types/ResourceBlame/ResourceBlame.utils.d.ts +3 -0
- package/dist/types/ResourceForm/ResourceForm.d.ts +1 -2
- package/dist/types/ResourceForm/ResourceForm.utils.d.ts +2 -0
- package/dist/types/ResourcePropertyDisplay/ResourcePropertyDisplay.d.ts +3 -15
- package/dist/types/ResourcePropertyDisplay/ResourcePropertyDisplay.utils.d.ts +12 -0
- package/dist/types/ResourcePropertyInput/ResourcePropertyInput.d.ts +4 -4
- package/dist/types/ResourceTypeInput/ResourceTypeInput.d.ts +12 -0
- package/dist/types/SearchControl/SearchControlField.d.ts +4 -4
- package/dist/types/ValueSetAutocomplete/ValueSetAutocomplete.d.ts +2 -2
- package/dist/types/index.d.ts +5 -3
- package/dist/types/utils/questionnaire.d.ts +3 -1
- package/package.json +19 -19
|
@@ -4,9 +4,11 @@ export interface AppShellProps {
|
|
|
4
4
|
logo: React.ReactNode;
|
|
5
5
|
pathname?: string;
|
|
6
6
|
searchParams?: URLSearchParams;
|
|
7
|
+
headerSearchDisabled?: boolean;
|
|
7
8
|
version?: string;
|
|
8
9
|
menus?: NavbarMenu[];
|
|
9
10
|
children: React.ReactNode;
|
|
10
11
|
displayAddBookmark?: boolean;
|
|
12
|
+
resourceTypeSearchDisabled?: boolean;
|
|
11
13
|
}
|
|
12
14
|
export declare function AppShell(props: AppShellProps): JSX.Element;
|
|
@@ -5,11 +5,4 @@ export interface CalendarInputProps {
|
|
|
5
5
|
onChangeMonth: (date: Date) => void;
|
|
6
6
|
onClick: (date: Date) => void;
|
|
7
7
|
}
|
|
8
|
-
/**
|
|
9
|
-
* Returns a month display string (e.g. "January 2020").
|
|
10
|
-
* @param date Any date within the month.
|
|
11
|
-
* @returns The month display string (e.g. "January 2020")
|
|
12
|
-
*/
|
|
13
|
-
export declare function getMonthString(date: Date): string;
|
|
14
8
|
export declare function CalendarInput(props: CalendarInputProps): JSX.Element;
|
|
15
|
-
export declare function getStartMonth(): Date;
|
|
@@ -0,0 +1,7 @@
|
|
|
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,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CodeableConcept
|
|
2
|
+
import { CodeableConcept } from '@medplum/fhirtypes';
|
|
3
3
|
export interface CodeableConceptInputProps {
|
|
4
|
-
|
|
4
|
+
binding: string | undefined;
|
|
5
5
|
name: string;
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
defaultValue?: CodeableConcept;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Coding
|
|
2
|
+
import { Coding } from '@medplum/fhirtypes';
|
|
3
3
|
export interface CodingInputProps {
|
|
4
|
-
|
|
4
|
+
binding: string | undefined;
|
|
5
5
|
name: string;
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
defaultValue?: Coding;
|
|
@@ -18,15 +18,3 @@ export interface DateTimeInputProps {
|
|
|
18
18
|
* @returns The JSX element to render.
|
|
19
19
|
*/
|
|
20
20
|
export declare function DateTimeInput(props: DateTimeInputProps): JSX.Element;
|
|
21
|
-
/**
|
|
22
|
-
* Converts an ISO-8601 date/time string to a local date/time string.
|
|
23
|
-
* @param isoString The ISO-8601 date/time string to convert.
|
|
24
|
-
* @returns The local date/time string.
|
|
25
|
-
*/
|
|
26
|
-
export declare function convertIsoToLocal(isoString: string | undefined): string;
|
|
27
|
-
/**
|
|
28
|
-
* Converts a local date/time string to an ISO-8601 date/time string.
|
|
29
|
-
* @param localString The local date/time string to convert.
|
|
30
|
-
* @returns The ISO-8601 date/time string.
|
|
31
|
-
*/
|
|
32
|
-
export declare function convertLocalToIso(localString: string | undefined): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -11,6 +11,7 @@ export declare namespace DiagnosticReportDisplay {
|
|
|
11
11
|
}
|
|
12
12
|
export interface ObservationTableProps {
|
|
13
13
|
value?: Observation[] | Reference<Observation>[];
|
|
14
|
+
ancestorIds?: string[];
|
|
14
15
|
hideObservationNotes?: boolean;
|
|
15
16
|
}
|
|
16
17
|
export declare function ObservationTable(props: ObservationTableProps): JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { PropertyType } from '@medplum/core';
|
|
3
2
|
import { Resource } from '@medplum/fhirtypes';
|
|
4
3
|
export interface FhirPathDisplayProps {
|
|
5
4
|
resource: Resource;
|
|
6
5
|
path: string;
|
|
7
|
-
propertyType:
|
|
6
|
+
propertyType: string;
|
|
8
7
|
}
|
|
9
8
|
export declare function FhirPathDisplay(props: FhirPathDisplayProps): JSX.Element | null;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { PropertyType } from '@medplum/core';
|
|
2
1
|
import { Resource } from '@medplum/fhirtypes';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import { SearchClickEvent } from '../SearchControl/SearchControl';
|
|
5
4
|
export interface FhirPathTableField {
|
|
6
|
-
readonly propertyType:
|
|
5
|
+
readonly propertyType: string;
|
|
7
6
|
readonly name: string;
|
|
8
7
|
readonly fhirPath: string;
|
|
9
8
|
}
|
|
@@ -5,4 +5,3 @@ export interface GoogleButtonProps {
|
|
|
5
5
|
readonly handleGoogleCredential: (response: GoogleCredentialResponse) => void;
|
|
6
6
|
}
|
|
7
7
|
export declare function GoogleButton(props: GoogleButtonProps): JSX.Element | null;
|
|
8
|
-
export declare function getGoogleClientId(clientId: string | undefined): string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getGoogleClientId(clientId: string | undefined): string | undefined;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MedplumClient, ProfileResource } from '@medplum/core';
|
|
3
|
+
export declare const reactContext: import("react").Context<MedplumContext | undefined>;
|
|
4
|
+
export type MepdlumNavigateFunction = (path: string) => void;
|
|
5
|
+
export interface MedplumContext {
|
|
6
|
+
medplum: MedplumClient;
|
|
7
|
+
navigate: MepdlumNavigateFunction;
|
|
8
|
+
profile?: ProfileResource;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Returns the MedplumContext instance.
|
|
13
|
+
* @returns The MedplumContext instance.
|
|
14
|
+
*/
|
|
15
|
+
export declare function useMedplumContext(): MedplumContext;
|
|
16
|
+
/**
|
|
17
|
+
* Returns the MedplumClient instance.
|
|
18
|
+
* This is a shortcut for useMedplumContext().medplum.
|
|
19
|
+
* @returns The MedplumClient instance.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useMedplum(): MedplumClient;
|
|
22
|
+
/**
|
|
23
|
+
* Returns the Medplum navigate function.
|
|
24
|
+
* @returns The Medplum navigate function.
|
|
25
|
+
*/
|
|
26
|
+
export declare function useMedplumNavigate(): MepdlumNavigateFunction;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the current Medplum user profile (if signed in).
|
|
29
|
+
* This is a shortcut for useMedplumContext().profile.
|
|
30
|
+
* @returns The current user profile.
|
|
31
|
+
*/
|
|
32
|
+
export declare function useMedplumProfile(): ProfileResource | undefined;
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import { MedplumClient
|
|
1
|
+
import { MedplumClient } from '@medplum/core';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
|
|
3
|
+
import { MepdlumNavigateFunction } from './MedplumProvider.context';
|
|
4
4
|
export interface MedplumProviderProps {
|
|
5
5
|
medplum: MedplumClient;
|
|
6
6
|
navigate?: MepdlumNavigateFunction;
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
}
|
|
9
|
-
export interface MedplumContext {
|
|
10
|
-
medplum: MedplumClient;
|
|
11
|
-
navigate: MepdlumNavigateFunction;
|
|
12
|
-
profile?: ProfileResource;
|
|
13
|
-
loading: boolean;
|
|
14
|
-
}
|
|
15
9
|
/**
|
|
16
10
|
* The MedplumProvider component provides Medplum context state.
|
|
17
11
|
*
|
|
@@ -22,25 +16,3 @@ export interface MedplumContext {
|
|
|
22
16
|
* @returns The MedplumProvider React node.
|
|
23
17
|
*/
|
|
24
18
|
export declare function MedplumProvider(props: MedplumProviderProps): JSX.Element;
|
|
25
|
-
/**
|
|
26
|
-
* Returns the MedplumContext instance.
|
|
27
|
-
* @returns The MedplumContext instance.
|
|
28
|
-
*/
|
|
29
|
-
export declare function useMedplumContext(): MedplumContext;
|
|
30
|
-
/**
|
|
31
|
-
* Returns the MedplumClient instance.
|
|
32
|
-
* This is a shortcut for useMedplumContext().medplum.
|
|
33
|
-
* @returns The MedplumClient instance.
|
|
34
|
-
*/
|
|
35
|
-
export declare function useMedplum(): MedplumClient;
|
|
36
|
-
/**
|
|
37
|
-
* Returns the Medplum navigate function.
|
|
38
|
-
* @returns The Medplum navigate function.
|
|
39
|
-
*/
|
|
40
|
-
export declare function useMedplumNavigate(): MepdlumNavigateFunction;
|
|
41
|
-
/**
|
|
42
|
-
* Returns the current Medplum user profile (if signed in).
|
|
43
|
-
* This is a shortcut for useMedplumContext().profile.
|
|
44
|
-
* @returns The current user profile.
|
|
45
|
-
*/
|
|
46
|
-
export declare function useMedplumProfile(): ProfileResource | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { InternalSchemaElement } from '@medplum/core';
|
|
3
3
|
interface ResourceArrayDisplayProps {
|
|
4
|
-
property:
|
|
4
|
+
property: InternalSchemaElement;
|
|
5
5
|
values: any[];
|
|
6
6
|
arrayElement?: boolean;
|
|
7
7
|
ignoreMissingValues?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { InternalSchemaElement } from '@medplum/core';
|
|
3
3
|
interface ResourceArrayInputProps {
|
|
4
|
-
property:
|
|
4
|
+
property: InternalSchemaElement;
|
|
5
5
|
name: string;
|
|
6
6
|
defaultValue?: any[];
|
|
7
7
|
arrayElement?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { OperationOutcome, Reference, Resource } from '@medplum/fhirtypes';
|
|
3
3
|
export interface ResourceFormProps {
|
|
4
4
|
defaultValue: Resource | Reference;
|
|
5
5
|
outcome?: OperationOutcome;
|
|
@@ -7,4 +7,3 @@ export interface ResourceFormProps {
|
|
|
7
7
|
onDelete?: (resource: Resource) => void;
|
|
8
8
|
}
|
|
9
9
|
export declare function ResourceForm(props: ResourceFormProps): JSX.Element;
|
|
10
|
-
export declare function setPropertyValue(obj: any, key: string, propName: string, elementDefinition: ElementDefinition, value: any): any;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
import { ElementDefinition } from '@medplum/fhirtypes';
|
|
2
|
+
import { InternalSchemaElement } from '@medplum/core';
|
|
4
3
|
export interface ResourcePropertyDisplayProps {
|
|
5
|
-
property?:
|
|
6
|
-
propertyType:
|
|
4
|
+
property?: InternalSchemaElement;
|
|
5
|
+
propertyType: string;
|
|
7
6
|
value: any;
|
|
8
7
|
arrayElement?: boolean;
|
|
9
8
|
maxWidth?: number;
|
|
@@ -16,14 +15,3 @@ export interface ResourcePropertyDisplayProps {
|
|
|
16
15
|
* @returns The ResourcePropertyDisplay React node.
|
|
17
16
|
*/
|
|
18
17
|
export declare function ResourcePropertyDisplay(props: ResourcePropertyDisplayProps): JSX.Element;
|
|
19
|
-
/**
|
|
20
|
-
* Returns the value of the property and the property type.
|
|
21
|
-
* Some property definitions support multiple types.
|
|
22
|
-
* For example, "Observation.value[x]" can be "valueString", "valueInteger", "valueQuantity", etc.
|
|
23
|
-
* According to the spec, there can only be one property for a given element definition.
|
|
24
|
-
* This function returns the value and the type.
|
|
25
|
-
* @param context The base context (usually a FHIR resource).
|
|
26
|
-
* @param path The property path.
|
|
27
|
-
* @returns The value of the property and the property type.
|
|
28
|
-
*/
|
|
29
|
-
export declare function getValueAndType(context: TypedValue, path: string): [any, PropertyType];
|
|
@@ -0,0 +1,12 @@
|
|
|
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,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { InternalSchemaElement } from '@medplum/core';
|
|
3
|
+
import { ElementDefinitionType, OperationOutcome } from '@medplum/fhirtypes';
|
|
4
4
|
export interface ResourcePropertyInputProps {
|
|
5
|
-
property:
|
|
5
|
+
property: InternalSchemaElement;
|
|
6
6
|
name: string;
|
|
7
|
-
defaultPropertyType?:
|
|
7
|
+
defaultPropertyType?: string;
|
|
8
8
|
defaultValue?: any;
|
|
9
9
|
arrayElement?: boolean;
|
|
10
10
|
onChange?: (value: any, propName?: string) => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
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,10 +1,10 @@
|
|
|
1
|
-
import { SearchRequest } from '@medplum/core';
|
|
2
|
-
import {
|
|
1
|
+
import { InternalSchemaElement, SearchRequest } from '@medplum/core';
|
|
2
|
+
import { SearchParameter } from '@medplum/fhirtypes';
|
|
3
3
|
/**
|
|
4
4
|
* The SearchControlField type describes a field in the search control.
|
|
5
5
|
*
|
|
6
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
|
|
7
|
+
* 1) Simple property names, which refer to InternalSchemaElement objects
|
|
8
8
|
* 2) Search parameter names, which refer to SearchParameter resources
|
|
9
9
|
*
|
|
10
10
|
* Consider a few examples of how this becomes complicated.
|
|
@@ -29,7 +29,7 @@ import { ElementDefinition, SearchParameter } from '@medplum/fhirtypes';
|
|
|
29
29
|
*/
|
|
30
30
|
export interface SearchControlField {
|
|
31
31
|
readonly name: string;
|
|
32
|
-
readonly elementDefinition?:
|
|
32
|
+
readonly elementDefinition?: InternalSchemaElement;
|
|
33
33
|
readonly searchParams?: SearchParameter[];
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { ValueSetExpansionContains } from '@medplum/fhirtypes';
|
|
3
3
|
import { AsyncAutocompleteProps } from '../AsyncAutocomplete/AsyncAutocomplete';
|
|
4
4
|
export interface ValueSetAutocompleteProps extends Omit<AsyncAutocompleteProps<ValueSetExpansionContains>, 'loadOptions' | 'toKey' | 'toOption'> {
|
|
5
|
-
|
|
5
|
+
binding: string | undefined;
|
|
6
6
|
creatable?: boolean;
|
|
7
7
|
clearable?: boolean;
|
|
8
8
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -10,13 +10,15 @@ export * from './AttachmentArrayInput/AttachmentArrayInput';
|
|
|
10
10
|
export * from './AttachmentButton/AttachmentButton';
|
|
11
11
|
export * from './AttachmentDisplay/AttachmentDisplay';
|
|
12
12
|
export * from './AttachmentInput/AttachmentInput';
|
|
13
|
+
export * from './auth/RegisterForm';
|
|
14
|
+
export * from './auth/SignInForm';
|
|
13
15
|
export * from './BackboneElementDisplay/BackboneElementDisplay';
|
|
14
16
|
export * from './BackboneElementInput/BackboneElementInput';
|
|
15
17
|
export * from './CalendarInput/CalendarInput';
|
|
16
18
|
export * from './CheckboxFormSection/CheckboxFormSection';
|
|
17
|
-
export * from './CodeInput/CodeInput';
|
|
18
19
|
export * from './CodeableConceptDisplay/CodeableConceptDisplay';
|
|
19
20
|
export * from './CodeableConceptInput/CodeableConceptInput';
|
|
21
|
+
export * from './CodeInput/CodeInput';
|
|
20
22
|
export * from './CodingDisplay/CodingDisplay';
|
|
21
23
|
export * from './CodingInput/CodingInput';
|
|
22
24
|
export * from './ContactDetailDisplay/ContactDetailDisplay';
|
|
@@ -25,6 +27,7 @@ export * from './ContactPointDisplay/ContactPointDisplay';
|
|
|
25
27
|
export * from './ContactPointInput/ContactPointInput';
|
|
26
28
|
export * from './Container/Container';
|
|
27
29
|
export * from './DateTimeInput/DateTimeInput';
|
|
30
|
+
export * from './DateTimeInput/DateTimeInput.utils';
|
|
28
31
|
export * from './DefaultResourceTimeline/DefaultResourceTimeline';
|
|
29
32
|
export * from './DescriptionList/DescriptionList';
|
|
30
33
|
export * from './DiagnosticReportDisplay/DiagnosticReportDisplay';
|
|
@@ -43,6 +46,7 @@ export * from './Loading/Loading';
|
|
|
43
46
|
export * from './Logo/Logo';
|
|
44
47
|
export * from './MedplumLink/MedplumLink';
|
|
45
48
|
export * from './MedplumProvider/MedplumProvider';
|
|
49
|
+
export * from './MedplumProvider/MedplumProvider.context';
|
|
46
50
|
export * from './MoneyDisplay/MoneyDisplay';
|
|
47
51
|
export * from './MoneyInput/MoneyInput';
|
|
48
52
|
export * from './OperationOutcomeAlert/OperationOutcomeAlert';
|
|
@@ -82,8 +86,6 @@ export * from './ServiceRequestTimeline/ServiceRequestTimeline';
|
|
|
82
86
|
export * from './StatusBadge/StatusBadge';
|
|
83
87
|
export * from './Timeline/Timeline';
|
|
84
88
|
export * from './TimingInput/TimingInput';
|
|
85
|
-
export * from './auth/RegisterForm';
|
|
86
|
-
export * from './auth/SignInForm';
|
|
87
89
|
export * from './useResource/useResource';
|
|
88
90
|
export * from './utils/date';
|
|
89
91
|
export * from './utils/outcomes';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QuestionnaireItem, QuestionnaireResponseItem, QuestionnaireResponseItemAnswer } from '@medplum/fhirtypes';
|
|
1
|
+
import { QuestionnaireItem, QuestionnaireResponseItem, QuestionnaireResponseItemAnswer, ResourceType } from '@medplum/fhirtypes';
|
|
2
2
|
export declare enum QuestionnaireItemType {
|
|
3
3
|
group = "group",
|
|
4
4
|
display = "display",
|
|
@@ -21,3 +21,5 @@ export declare enum QuestionnaireItemType {
|
|
|
21
21
|
export declare function isChoiceQuestion(item: QuestionnaireItem): boolean;
|
|
22
22
|
export declare function isQuestionEnabled(item: QuestionnaireItem, responseItems: QuestionnaireResponseItem[]): boolean;
|
|
23
23
|
export declare function getNewMultiSelectValues(selected: string[], propertyName: string, item: QuestionnaireItem): QuestionnaireResponseItemAnswer[];
|
|
24
|
+
export declare function getQuestionnaireItemReferenceTargetTypes(item: QuestionnaireItem): ResourceType[] | undefined;
|
|
25
|
+
export declare function setQuestionnaireItemReferenceTargetTypes(item: QuestionnaireItem, targetTypes: ResourceType[] | undefined): QuestionnaireItem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medplum/react",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"description": "Medplum React Component Library",
|
|
5
5
|
"author": "Medplum <hello@medplum.com>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,34 +22,34 @@
|
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@emotion/react": "11.11.1",
|
|
25
|
-
"@mantine/core": "6.0.
|
|
26
|
-
"@mantine/hooks": "6.0.
|
|
27
|
-
"@mantine/notifications": "6.0.
|
|
25
|
+
"@mantine/core": "6.0.21",
|
|
26
|
+
"@mantine/hooks": "6.0.21",
|
|
27
|
+
"@mantine/notifications": "6.0.21",
|
|
28
28
|
"@medplum/core": "*",
|
|
29
29
|
"@medplum/definitions": "*",
|
|
30
30
|
"@medplum/fhirtypes": "*",
|
|
31
31
|
"@medplum/mock": "*",
|
|
32
|
-
"@storybook/addon-actions": "7.4.
|
|
33
|
-
"@storybook/addon-essentials": "7.4.
|
|
34
|
-
"@storybook/addon-links": "7.4.
|
|
35
|
-
"@storybook/addon-storysource": "7.4.
|
|
36
|
-
"@storybook/builder-vite": "7.4.
|
|
37
|
-
"@storybook/react": "7.4.
|
|
38
|
-
"@storybook/react-vite": "7.4.
|
|
39
|
-
"@tabler/icons-react": "2.
|
|
40
|
-
"@testing-library/dom": "9.3.
|
|
41
|
-
"@testing-library/jest-dom": "6.1.
|
|
32
|
+
"@storybook/addon-actions": "7.4.6",
|
|
33
|
+
"@storybook/addon-essentials": "7.4.6",
|
|
34
|
+
"@storybook/addon-links": "7.4.6",
|
|
35
|
+
"@storybook/addon-storysource": "7.4.6",
|
|
36
|
+
"@storybook/builder-vite": "7.4.6",
|
|
37
|
+
"@storybook/react": "7.4.6",
|
|
38
|
+
"@storybook/react-vite": "7.4.6",
|
|
39
|
+
"@tabler/icons-react": "2.39.0",
|
|
40
|
+
"@testing-library/dom": "9.3.3",
|
|
41
|
+
"@testing-library/jest-dom": "6.1.4",
|
|
42
42
|
"@testing-library/react": "14.0.0",
|
|
43
43
|
"@types/jest": "29.5.5",
|
|
44
|
-
"@types/node": "20.6
|
|
45
|
-
"@types/react": "18.2.
|
|
46
|
-
"@types/react-dom": "18.2.
|
|
44
|
+
"@types/node": "20.8.6",
|
|
45
|
+
"@types/react": "18.2.28",
|
|
46
|
+
"@types/react-dom": "18.2.13",
|
|
47
47
|
"jest": "29.7.0",
|
|
48
48
|
"jest-each": "29.7.0",
|
|
49
49
|
"react": "18.2.0",
|
|
50
50
|
"react-dom": "18.2.0",
|
|
51
|
-
"rimraf": "5.0.
|
|
52
|
-
"storybook": "7.4.
|
|
51
|
+
"rimraf": "5.0.5",
|
|
52
|
+
"storybook": "7.4.6",
|
|
53
53
|
"typescript": "5.2.2"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|