@medplum/react 3.0.2 → 3.0.4

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.
@@ -285,6 +285,8 @@ export declare function BackboneElementInput(props: BackboneElementInputProps):
285
285
  export declare interface BackboneElementInputProps {
286
286
  /** Type name the backbone element represents */
287
287
  readonly typeName: string;
288
+ /** The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension. */
289
+ readonly path: string;
288
290
  /** (optional) The contents of the resource represented by the backbone element */
289
291
  readonly defaultValue?: any;
290
292
  /** (optional) OperationOutcome from the last attempted system action*/
@@ -349,9 +351,8 @@ export declare interface CodeableConceptDisplayProps {
349
351
 
350
352
  export declare function CodeableConceptInput(props: CodeableConceptInputProps): JSX.Element;
351
353
 
352
- export declare interface CodeableConceptInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
353
- readonly defaultValue?: CodeableConcept;
354
- readonly onChange?: (value: CodeableConcept | undefined) => void;
354
+ export declare interface CodeableConceptInputProps extends Omit<ValueSetAutocompleteProps, 'name' | 'defaultValue' | 'onChange'>, ComplexTypeInputProps<CodeableConcept> {
355
+ readonly onChange: ((value: CodeableConcept | undefined) => void) | undefined;
355
356
  }
356
357
 
357
358
  export declare function CodeInput(props: CodeInputProps): JSX.Element;
@@ -376,6 +377,7 @@ export declare interface CodingInputProps extends Omit<ValueSetAutocompleteProps
376
377
 
377
378
  export declare interface ComplexTypeInputProps<ValueType> {
378
379
  name: string;
380
+ /** The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension. */
379
381
  path: string;
380
382
  defaultValue?: ValueType;
381
383
  onChange: ((value: ValueType, propName?: string) => void) | undefined;
@@ -498,17 +500,12 @@ export declare interface ElementDefinitionSelectorProps extends ResourceProperty
498
500
 
499
501
  export declare function ElementDefinitionTypeInput(props: ElementDefinitionTypeInputProps): JSX.Element;
500
502
 
501
- export declare type ElementDefinitionTypeInputProps = {
502
- readonly name: ResourcePropertyInputProps['name'];
503
- readonly path: string;
504
- readonly defaultValue: ResourcePropertyInputProps['defaultValue'];
505
- readonly onChange: ResourcePropertyInputProps['onChange'];
506
- readonly outcome: ResourcePropertyInputProps['outcome'];
503
+ export declare interface ElementDefinitionTypeInputProps extends Pick<ResourcePropertyInputProps, 'name' | 'path' | 'defaultValue' | 'onChange' | 'outcome'> {
507
504
  readonly elementDefinitionType: ElementDefinitionType;
508
505
  readonly min: number;
509
506
  readonly max: number;
510
507
  readonly binding: ElementDefinitionBinding | undefined;
511
- };
508
+ }
512
509
 
513
510
  export declare function EncounterTimeline(props: EncounterTimelineProps): JSX.Element;
514
511
 
@@ -1017,6 +1014,7 @@ export declare function ResourceArrayInput(props: ResourceArrayInputProps): JSX.
1017
1014
  export declare interface ResourceArrayInputProps {
1018
1015
  readonly property: InternalSchemaElement;
1019
1016
  readonly name: string;
1017
+ readonly path: string;
1020
1018
  readonly defaultValue?: any[];
1021
1019
  readonly indent?: boolean;
1022
1020
  readonly outcome: OperationOutcome | undefined;
@@ -1116,6 +1114,8 @@ export declare function ResourcePropertyInput(props: ResourcePropertyInputProps)
1116
1114
  export declare interface ResourcePropertyInputProps {
1117
1115
  readonly property: InternalSchemaElement;
1118
1116
  readonly name: string;
1117
+ /** The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension. */
1118
+ readonly path: string;
1119
1119
  readonly defaultPropertyType?: string | undefined;
1120
1120
  readonly defaultValue: any;
1121
1121
  readonly arrayElement?: boolean | undefined;
@@ -1459,6 +1459,8 @@ export declare function useSearchOne<K extends ResourceType>(resourceType: K, qu
1459
1459
  */
1460
1460
  export declare function useSearchResources<K extends ResourceType>(resourceType: K, query?: QueryTypes): [ResourceArray<ExtractResource<K>> | undefined, boolean, OperationOutcome | undefined];
1461
1461
 
1462
+ export declare function useSubscription(criteria: string, callback: (bundle: Bundle) => void): void;
1463
+
1462
1464
  /**
1463
1465
  * A low-level component to autocomplete based on a FHIR Valueset.
1464
1466
  * This is the base component for CodeableConceptInput, CodingInput, and CodeInput.
@@ -1472,6 +1474,7 @@ export declare interface ValueSetAutocompleteProps extends Omit<AsyncAutocomplet
1472
1474
  readonly creatable?: boolean;
1473
1475
  readonly clearable?: boolean;
1474
1476
  readonly expandParams?: Partial<ValueSetExpandParams>;
1477
+ readonly withHelpText?: boolean;
1475
1478
  }
1476
1479
 
1477
1480
  export { }
@@ -285,6 +285,8 @@ export declare function BackboneElementInput(props: BackboneElementInputProps):
285
285
  export declare interface BackboneElementInputProps {
286
286
  /** Type name the backbone element represents */
287
287
  readonly typeName: string;
288
+ /** The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension. */
289
+ readonly path: string;
288
290
  /** (optional) The contents of the resource represented by the backbone element */
289
291
  readonly defaultValue?: any;
290
292
  /** (optional) OperationOutcome from the last attempted system action*/
@@ -349,9 +351,8 @@ export declare interface CodeableConceptDisplayProps {
349
351
 
350
352
  export declare function CodeableConceptInput(props: CodeableConceptInputProps): JSX.Element;
351
353
 
352
- export declare interface CodeableConceptInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
353
- readonly defaultValue?: CodeableConcept;
354
- readonly onChange?: (value: CodeableConcept | undefined) => void;
354
+ export declare interface CodeableConceptInputProps extends Omit<ValueSetAutocompleteProps, 'name' | 'defaultValue' | 'onChange'>, ComplexTypeInputProps<CodeableConcept> {
355
+ readonly onChange: ((value: CodeableConcept | undefined) => void) | undefined;
355
356
  }
356
357
 
357
358
  export declare function CodeInput(props: CodeInputProps): JSX.Element;
@@ -376,6 +377,7 @@ export declare interface CodingInputProps extends Omit<ValueSetAutocompleteProps
376
377
 
377
378
  export declare interface ComplexTypeInputProps<ValueType> {
378
379
  name: string;
380
+ /** The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension. */
379
381
  path: string;
380
382
  defaultValue?: ValueType;
381
383
  onChange: ((value: ValueType, propName?: string) => void) | undefined;
@@ -498,17 +500,12 @@ export declare interface ElementDefinitionSelectorProps extends ResourceProperty
498
500
 
499
501
  export declare function ElementDefinitionTypeInput(props: ElementDefinitionTypeInputProps): JSX.Element;
500
502
 
501
- export declare type ElementDefinitionTypeInputProps = {
502
- readonly name: ResourcePropertyInputProps['name'];
503
- readonly path: string;
504
- readonly defaultValue: ResourcePropertyInputProps['defaultValue'];
505
- readonly onChange: ResourcePropertyInputProps['onChange'];
506
- readonly outcome: ResourcePropertyInputProps['outcome'];
503
+ export declare interface ElementDefinitionTypeInputProps extends Pick<ResourcePropertyInputProps, 'name' | 'path' | 'defaultValue' | 'onChange' | 'outcome'> {
507
504
  readonly elementDefinitionType: ElementDefinitionType;
508
505
  readonly min: number;
509
506
  readonly max: number;
510
507
  readonly binding: ElementDefinitionBinding | undefined;
511
- };
508
+ }
512
509
 
513
510
  export declare function EncounterTimeline(props: EncounterTimelineProps): JSX.Element;
514
511
 
@@ -1017,6 +1014,7 @@ export declare function ResourceArrayInput(props: ResourceArrayInputProps): JSX.
1017
1014
  export declare interface ResourceArrayInputProps {
1018
1015
  readonly property: InternalSchemaElement;
1019
1016
  readonly name: string;
1017
+ readonly path: string;
1020
1018
  readonly defaultValue?: any[];
1021
1019
  readonly indent?: boolean;
1022
1020
  readonly outcome: OperationOutcome | undefined;
@@ -1116,6 +1114,8 @@ export declare function ResourcePropertyInput(props: ResourcePropertyInputProps)
1116
1114
  export declare interface ResourcePropertyInputProps {
1117
1115
  readonly property: InternalSchemaElement;
1118
1116
  readonly name: string;
1117
+ /** The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension. */
1118
+ readonly path: string;
1119
1119
  readonly defaultPropertyType?: string | undefined;
1120
1120
  readonly defaultValue: any;
1121
1121
  readonly arrayElement?: boolean | undefined;
@@ -1459,6 +1459,8 @@ export declare function useSearchOne<K extends ResourceType>(resourceType: K, qu
1459
1459
  */
1460
1460
  export declare function useSearchResources<K extends ResourceType>(resourceType: K, query?: QueryTypes): [ResourceArray<ExtractResource<K>> | undefined, boolean, OperationOutcome | undefined];
1461
1461
 
1462
+ export declare function useSubscription(criteria: string, callback: (bundle: Bundle) => void): void;
1463
+
1462
1464
  /**
1463
1465
  * A low-level component to autocomplete based on a FHIR Valueset.
1464
1466
  * This is the base component for CodeableConceptInput, CodingInput, and CodeInput.
@@ -1472,6 +1474,7 @@ export declare interface ValueSetAutocompleteProps extends Omit<AsyncAutocomplet
1472
1474
  readonly creatable?: boolean;
1473
1475
  readonly clearable?: boolean;
1474
1476
  readonly expandParams?: Partial<ValueSetExpandParams>;
1477
+ readonly withHelpText?: boolean;
1475
1478
  }
1476
1479
 
1477
1480
  export { }