@medplum/react 4.0.0 → 4.0.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.
@@ -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 | undefined;
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 | undefined;
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 | undefined;
1288
+ readonly defaultPropertyType?: string;
1290
1289
  readonly defaultValue: any;
1291
- readonly arrayElement?: boolean | undefined;
1290
+ readonly arrayElement?: boolean;
1292
1291
  readonly onChange?: (value: any, propName?: string) => void;
1293
1292
  }
1294
1293
 
@@ -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 | undefined;
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 | undefined;
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 | undefined;
1288
+ readonly defaultPropertyType?: string;
1290
1289
  readonly defaultValue: any;
1291
- readonly arrayElement?: boolean | undefined;
1290
+ readonly arrayElement?: boolean;
1292
1291
  readonly onChange?: (value: any, propName?: string) => void;
1293
1292
  }
1294
1293