@medplum/react 3.3.0 → 4.0.1
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 +3 -3
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/cjs/index.d.ts +6 -7
- package/dist/esm/index.d.ts +6 -7
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +9 -9
package/dist/cjs/index.d.ts
CHANGED
|
@@ -365,9 +365,9 @@ export declare interface BaseInputProps {
|
|
|
365
365
|
*/
|
|
366
366
|
export declare function buildFieldNameString(key: string): string;
|
|
367
367
|
|
|
368
|
-
export declare function buildInitialResponse(questionnaire: Questionnaire): QuestionnaireResponse;
|
|
368
|
+
export declare function buildInitialResponse(questionnaire: Questionnaire, questionnaireResponse?: QuestionnaireResponse): QuestionnaireResponse;
|
|
369
369
|
|
|
370
|
-
export declare function buildInitialResponseItem(item: QuestionnaireItem): QuestionnaireResponseItem;
|
|
370
|
+
export declare function buildInitialResponseItem(item: QuestionnaireItem, questionnaireResponseItem?: QuestionnaireResponseItem[]): QuestionnaireResponseItem;
|
|
371
371
|
|
|
372
372
|
export declare function CalendarInput(props: CalendarInputProps): JSX.Element;
|
|
373
373
|
|
|
@@ -967,9 +967,9 @@ export declare interface PatientSummaryProps extends Omit<CardProps, 'children'>
|
|
|
967
967
|
readonly patient: Patient | Reference<Patient>;
|
|
968
968
|
readonly background?: string;
|
|
969
969
|
/** The URL that the upcoming appointments link should navigate to or `undefined` to not show the link. */
|
|
970
|
-
readonly appointmentsUrl?: string
|
|
970
|
+
readonly appointmentsUrl?: string;
|
|
971
971
|
/** The URL that the documented visits (encounters) link should navigate to or `undefined` to not show the link. */
|
|
972
|
-
readonly encountersUrl?: string
|
|
972
|
+
readonly encountersUrl?: string;
|
|
973
973
|
/** Callback when a resource is clicked in the list */
|
|
974
974
|
readonly onClickResource?: (resource: Resource) => void;
|
|
975
975
|
}
|
|
@@ -1242,7 +1242,6 @@ export declare interface ResourceInputProps<T extends Resource = Resource> {
|
|
|
1242
1242
|
readonly defaultValue?: T | Reference<T>;
|
|
1243
1243
|
readonly searchCriteria?: Record<string, string>;
|
|
1244
1244
|
readonly placeholder?: string;
|
|
1245
|
-
readonly loadOnFocus?: boolean;
|
|
1246
1245
|
readonly required?: boolean;
|
|
1247
1246
|
readonly itemComponent?: (props: AsyncAutocompleteOption<T>) => JSX.Element | ReactNode;
|
|
1248
1247
|
readonly onChange?: (value: T | undefined) => void;
|
|
@@ -1286,9 +1285,9 @@ export declare function ResourcePropertyInput(props: ResourcePropertyInputProps)
|
|
|
1286
1285
|
export declare interface ResourcePropertyInputProps extends BaseInputProps {
|
|
1287
1286
|
readonly property: ExtendedInternalSchemaElement;
|
|
1288
1287
|
readonly name: string;
|
|
1289
|
-
readonly defaultPropertyType?: string
|
|
1288
|
+
readonly defaultPropertyType?: string;
|
|
1290
1289
|
readonly defaultValue: any;
|
|
1291
|
-
readonly arrayElement?: boolean
|
|
1290
|
+
readonly arrayElement?: boolean;
|
|
1292
1291
|
readonly onChange?: (value: any, propName?: string) => void;
|
|
1293
1292
|
}
|
|
1294
1293
|
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -365,9 +365,9 @@ export declare interface BaseInputProps {
|
|
|
365
365
|
*/
|
|
366
366
|
export declare function buildFieldNameString(key: string): string;
|
|
367
367
|
|
|
368
|
-
export declare function buildInitialResponse(questionnaire: Questionnaire): QuestionnaireResponse;
|
|
368
|
+
export declare function buildInitialResponse(questionnaire: Questionnaire, questionnaireResponse?: QuestionnaireResponse): QuestionnaireResponse;
|
|
369
369
|
|
|
370
|
-
export declare function buildInitialResponseItem(item: QuestionnaireItem): QuestionnaireResponseItem;
|
|
370
|
+
export declare function buildInitialResponseItem(item: QuestionnaireItem, questionnaireResponseItem?: QuestionnaireResponseItem[]): QuestionnaireResponseItem;
|
|
371
371
|
|
|
372
372
|
export declare function CalendarInput(props: CalendarInputProps): JSX.Element;
|
|
373
373
|
|
|
@@ -967,9 +967,9 @@ export declare interface PatientSummaryProps extends Omit<CardProps, 'children'>
|
|
|
967
967
|
readonly patient: Patient | Reference<Patient>;
|
|
968
968
|
readonly background?: string;
|
|
969
969
|
/** The URL that the upcoming appointments link should navigate to or `undefined` to not show the link. */
|
|
970
|
-
readonly appointmentsUrl?: string
|
|
970
|
+
readonly appointmentsUrl?: string;
|
|
971
971
|
/** The URL that the documented visits (encounters) link should navigate to or `undefined` to not show the link. */
|
|
972
|
-
readonly encountersUrl?: string
|
|
972
|
+
readonly encountersUrl?: string;
|
|
973
973
|
/** Callback when a resource is clicked in the list */
|
|
974
974
|
readonly onClickResource?: (resource: Resource) => void;
|
|
975
975
|
}
|
|
@@ -1242,7 +1242,6 @@ export declare interface ResourceInputProps<T extends Resource = Resource> {
|
|
|
1242
1242
|
readonly defaultValue?: T | Reference<T>;
|
|
1243
1243
|
readonly searchCriteria?: Record<string, string>;
|
|
1244
1244
|
readonly placeholder?: string;
|
|
1245
|
-
readonly loadOnFocus?: boolean;
|
|
1246
1245
|
readonly required?: boolean;
|
|
1247
1246
|
readonly itemComponent?: (props: AsyncAutocompleteOption<T>) => JSX.Element | ReactNode;
|
|
1248
1247
|
readonly onChange?: (value: T | undefined) => void;
|
|
@@ -1286,9 +1285,9 @@ export declare function ResourcePropertyInput(props: ResourcePropertyInputProps)
|
|
|
1286
1285
|
export declare interface ResourcePropertyInputProps extends BaseInputProps {
|
|
1287
1286
|
readonly property: ExtendedInternalSchemaElement;
|
|
1288
1287
|
readonly name: string;
|
|
1289
|
-
readonly defaultPropertyType?: string
|
|
1288
|
+
readonly defaultPropertyType?: string;
|
|
1290
1289
|
readonly defaultValue: any;
|
|
1291
|
-
readonly arrayElement?: boolean
|
|
1290
|
+
readonly arrayElement?: boolean;
|
|
1292
1291
|
readonly onChange?: (value: any, propName?: string) => void;
|
|
1293
1292
|
}
|
|
1294
1293
|
|