@medplum/core 5.1.12 → 5.1.13

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.
@@ -293,7 +293,7 @@ export declare type AnchorResourceOpenEvent<T extends FhircastAnchorResourceType
293
293
  * false if either operand evaluates to false,
294
294
  * and the empty collection otherwise.
295
295
  */
296
- export declare class AndAtom extends BooleanInfixOperatorAtom {
296
+ export declare class AndAtom extends InfixOperatorAtom {
297
297
  constructor(left: Atom, right: Atom);
298
298
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
299
299
  }
@@ -325,7 +325,7 @@ export declare function applyDefaultValuesToResource(resource: Resource, schema:
325
325
 
326
326
  export declare function applyFixedOrPatternValue(inputValue: any, key: string, element: InternalSchemaElement, elements: Record<string, InternalSchemaElement>): any;
327
327
 
328
- export declare class ArithemticOperatorAtom extends BooleanInfixOperatorAtom {
328
+ export declare class ArithmeticOperatorAtom extends InfixOperatorAtom {
329
329
  readonly impl: (x: number, y: number) => number | boolean;
330
330
  constructor(operator: string, left: Atom, right: Atom, impl: (x: number, y: number) => number | boolean);
331
331
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
@@ -431,10 +431,6 @@ export declare type BaseSchema = Record<string, {
431
431
  */
432
432
  export declare type BinarySource = string | File | Blob | Uint8Array;
433
433
 
434
- export declare abstract class BooleanInfixOperatorAtom extends InfixOperatorAtom {
435
- abstract eval(context: AtomContext, input: TypedValue[]): TypedValue[];
436
- }
437
-
438
434
  /**
439
435
  * Returns a single element array with a typed boolean value.
440
436
  * @param value - The primitive boolean value.
@@ -850,7 +846,7 @@ export declare interface Constraint {
850
846
  description: string;
851
847
  }
852
848
 
853
- export declare class ContainsAtom extends BooleanInfixOperatorAtom {
849
+ export declare class ContainsAtom extends InfixOperatorAtom {
854
850
  constructor(left: Atom, right: Atom);
855
851
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
856
852
  }
@@ -1278,12 +1274,12 @@ export declare function ensureNoLeadingSlash(url: string): string;
1278
1274
  */
1279
1275
  export declare function ensureTrailingSlash(url: string): string;
1280
1276
 
1281
- export declare class EqualsAtom extends BooleanInfixOperatorAtom {
1277
+ export declare class EqualsAtom extends InfixOperatorAtom {
1282
1278
  constructor(left: Atom, right: Atom);
1283
1279
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
1284
1280
  }
1285
1281
 
1286
- export declare class EquivalentAtom extends BooleanInfixOperatorAtom {
1282
+ export declare class EquivalentAtom extends InfixOperatorAtom {
1287
1283
  constructor(left: Atom, right: Atom);
1288
1284
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
1289
1285
  }
@@ -2776,12 +2772,12 @@ export declare interface ILoggerConfig {
2776
2772
  * true left is false and right true, false or empty
2777
2773
  * true left is empty
2778
2774
  */
2779
- export declare class ImpliesAtom extends BooleanInfixOperatorAtom {
2775
+ export declare class ImpliesAtom extends InfixOperatorAtom {
2780
2776
  constructor(left: Atom, right: Atom);
2781
2777
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
2782
2778
  }
2783
2779
 
2784
- export declare class InAtom extends BooleanInfixOperatorAtom {
2780
+ export declare class InAtom extends InfixOperatorAtom {
2785
2781
  constructor(left: Atom, right: Atom);
2786
2782
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
2787
2783
  }
@@ -2951,7 +2947,7 @@ export declare function isAccepted(outcome: OperationOutcome): boolean;
2951
2947
  */
2952
2948
  export declare function isAddPharmacyResponse(value: unknown): value is AddPharmacyResponse;
2953
2949
 
2954
- export declare class IsAtom extends BooleanInfixOperatorAtom {
2950
+ export declare class IsAtom extends InfixOperatorAtom {
2955
2951
  constructor(left: Atom, right: Atom);
2956
2952
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
2957
2953
  }
@@ -6132,12 +6128,12 @@ export declare function normalizeErrorString(error: unknown): string;
6132
6128
  */
6133
6129
  export declare function normalizeOperationOutcome(error: unknown): OperationOutcome;
6134
6130
 
6135
- export declare class NotEqualsAtom extends BooleanInfixOperatorAtom {
6131
+ export declare class NotEqualsAtom extends InfixOperatorAtom {
6136
6132
  constructor(left: Atom, right: Atom);
6137
6133
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
6138
6134
  }
6139
6135
 
6140
- export declare class NotEquivalentAtom extends BooleanInfixOperatorAtom {
6136
+ export declare class NotEquivalentAtom extends InfixOperatorAtom {
6141
6137
  constructor(left: Atom, right: Atom);
6142
6138
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
6143
6139
  }
@@ -6335,7 +6331,7 @@ export declare type Options<WS extends IWebSocket = WebSocket> = {
6335
6331
  * true if either operand evaluates to true,
6336
6332
  * and empty (`{ }`) otherwise:
6337
6333
  */
6338
- export declare class OrAtom extends BooleanInfixOperatorAtom {
6334
+ export declare class OrAtom extends InfixOperatorAtom {
6339
6335
  constructor(left: Atom, right: Atom);
6340
6336
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
6341
6337
  }
@@ -7715,7 +7711,7 @@ export declare class ParserBuilder {
7715
7711
  * false if either both operands evaluate to true or both operands evaluate to false,
7716
7712
  * and the empty collection otherwise.
7717
7713
  */
7718
- export declare class XorAtom extends BooleanInfixOperatorAtom {
7714
+ export declare class XorAtom extends InfixOperatorAtom {
7719
7715
  constructor(left: Atom, right: Atom);
7720
7716
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
7721
7717
  }
@@ -293,7 +293,7 @@ export declare type AnchorResourceOpenEvent<T extends FhircastAnchorResourceType
293
293
  * false if either operand evaluates to false,
294
294
  * and the empty collection otherwise.
295
295
  */
296
- export declare class AndAtom extends BooleanInfixOperatorAtom {
296
+ export declare class AndAtom extends InfixOperatorAtom {
297
297
  constructor(left: Atom, right: Atom);
298
298
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
299
299
  }
@@ -325,7 +325,7 @@ export declare function applyDefaultValuesToResource(resource: Resource, schema:
325
325
 
326
326
  export declare function applyFixedOrPatternValue(inputValue: any, key: string, element: InternalSchemaElement, elements: Record<string, InternalSchemaElement>): any;
327
327
 
328
- export declare class ArithemticOperatorAtom extends BooleanInfixOperatorAtom {
328
+ export declare class ArithmeticOperatorAtom extends InfixOperatorAtom {
329
329
  readonly impl: (x: number, y: number) => number | boolean;
330
330
  constructor(operator: string, left: Atom, right: Atom, impl: (x: number, y: number) => number | boolean);
331
331
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
@@ -431,10 +431,6 @@ export declare type BaseSchema = Record<string, {
431
431
  */
432
432
  export declare type BinarySource = string | File | Blob | Uint8Array;
433
433
 
434
- export declare abstract class BooleanInfixOperatorAtom extends InfixOperatorAtom {
435
- abstract eval(context: AtomContext, input: TypedValue[]): TypedValue[];
436
- }
437
-
438
434
  /**
439
435
  * Returns a single element array with a typed boolean value.
440
436
  * @param value - The primitive boolean value.
@@ -850,7 +846,7 @@ export declare interface Constraint {
850
846
  description: string;
851
847
  }
852
848
 
853
- export declare class ContainsAtom extends BooleanInfixOperatorAtom {
849
+ export declare class ContainsAtom extends InfixOperatorAtom {
854
850
  constructor(left: Atom, right: Atom);
855
851
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
856
852
  }
@@ -1278,12 +1274,12 @@ export declare function ensureNoLeadingSlash(url: string): string;
1278
1274
  */
1279
1275
  export declare function ensureTrailingSlash(url: string): string;
1280
1276
 
1281
- export declare class EqualsAtom extends BooleanInfixOperatorAtom {
1277
+ export declare class EqualsAtom extends InfixOperatorAtom {
1282
1278
  constructor(left: Atom, right: Atom);
1283
1279
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
1284
1280
  }
1285
1281
 
1286
- export declare class EquivalentAtom extends BooleanInfixOperatorAtom {
1282
+ export declare class EquivalentAtom extends InfixOperatorAtom {
1287
1283
  constructor(left: Atom, right: Atom);
1288
1284
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
1289
1285
  }
@@ -2776,12 +2772,12 @@ export declare interface ILoggerConfig {
2776
2772
  * true left is false and right true, false or empty
2777
2773
  * true left is empty
2778
2774
  */
2779
- export declare class ImpliesAtom extends BooleanInfixOperatorAtom {
2775
+ export declare class ImpliesAtom extends InfixOperatorAtom {
2780
2776
  constructor(left: Atom, right: Atom);
2781
2777
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
2782
2778
  }
2783
2779
 
2784
- export declare class InAtom extends BooleanInfixOperatorAtom {
2780
+ export declare class InAtom extends InfixOperatorAtom {
2785
2781
  constructor(left: Atom, right: Atom);
2786
2782
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
2787
2783
  }
@@ -2951,7 +2947,7 @@ export declare function isAccepted(outcome: OperationOutcome): boolean;
2951
2947
  */
2952
2948
  export declare function isAddPharmacyResponse(value: unknown): value is AddPharmacyResponse;
2953
2949
 
2954
- export declare class IsAtom extends BooleanInfixOperatorAtom {
2950
+ export declare class IsAtom extends InfixOperatorAtom {
2955
2951
  constructor(left: Atom, right: Atom);
2956
2952
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
2957
2953
  }
@@ -6132,12 +6128,12 @@ export declare function normalizeErrorString(error: unknown): string;
6132
6128
  */
6133
6129
  export declare function normalizeOperationOutcome(error: unknown): OperationOutcome;
6134
6130
 
6135
- export declare class NotEqualsAtom extends BooleanInfixOperatorAtom {
6131
+ export declare class NotEqualsAtom extends InfixOperatorAtom {
6136
6132
  constructor(left: Atom, right: Atom);
6137
6133
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
6138
6134
  }
6139
6135
 
6140
- export declare class NotEquivalentAtom extends BooleanInfixOperatorAtom {
6136
+ export declare class NotEquivalentAtom extends InfixOperatorAtom {
6141
6137
  constructor(left: Atom, right: Atom);
6142
6138
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
6143
6139
  }
@@ -6335,7 +6331,7 @@ export declare type Options<WS extends IWebSocket = WebSocket> = {
6335
6331
  * true if either operand evaluates to true,
6336
6332
  * and empty (`{ }`) otherwise:
6337
6333
  */
6338
- export declare class OrAtom extends BooleanInfixOperatorAtom {
6334
+ export declare class OrAtom extends InfixOperatorAtom {
6339
6335
  constructor(left: Atom, right: Atom);
6340
6336
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
6341
6337
  }
@@ -7715,7 +7711,7 @@ export declare class ParserBuilder {
7715
7711
  * false if either both operands evaluate to true or both operands evaluate to false,
7716
7712
  * and the empty collection otherwise.
7717
7713
  */
7718
- export declare class XorAtom extends BooleanInfixOperatorAtom {
7714
+ export declare class XorAtom extends InfixOperatorAtom {
7719
7715
  constructor(left: Atom, right: Atom);
7720
7716
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
7721
7717
  }