@medplum/core 3.2.5 → 3.2.7

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.
@@ -234,6 +234,8 @@ export declare class AsAtom extends InfixOperatorAtom {
234
234
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
235
235
  }
236
236
 
237
+ export declare function assert(condition: unknown, msg?: string): asserts condition;
238
+
237
239
  export declare function assertContextVersionOptional(event: string): asserts event is FhircastEventVersionOptional;
238
240
 
239
241
  /**
@@ -243,7 +245,7 @@ export declare function assertContextVersionOptional(event: string): asserts eve
243
245
  */
244
246
  export declare function assertOk<T>(outcome: OperationOutcome, resource: T | undefined): asserts resource is T;
245
247
 
246
- export declare interface AsyncResourceVisitor {
248
+ export declare interface AsyncCrawlerVisitor {
247
249
  onEnterObject?: (path: string, value: TypedValueWithPath, schema: InternalTypeSchema) => Promise<void>;
248
250
  onExitObject?: (path: string, value: TypedValueWithPath, schema: InternalTypeSchema) => Promise<void>;
249
251
  onEnterResource?: (path: string, value: TypedValueWithPath, schema: InternalTypeSchema) => Promise<void>;
@@ -251,6 +253,9 @@ export declare interface AsyncResourceVisitor {
251
253
  visitPropertyAsync: (parent: TypedValueWithPath, key: string, path: string, value: TypedValueWithPath | TypedValueWithPath[], schema: InternalTypeSchema) => Promise<void>;
252
254
  }
253
255
 
256
+ /** @deprecated - Use AsyncCrawlerVisitor instead */
257
+ export declare type AsyncResourceVisitor = AsyncCrawlerVisitor;
258
+
254
259
  export declare interface Atom {
255
260
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
256
261
  toString(): string;
@@ -421,6 +426,13 @@ export declare class ClientStorage implements IClientStorage {
421
426
  setObject<T>(key: string, value: T): void;
422
427
  }
423
428
 
429
+ declare interface CloseEvent_2 extends globalThis.Event {
430
+ code: number;
431
+ reason: string;
432
+ wasClean: boolean;
433
+ }
434
+ export { CloseEvent_2 as CloseEvent }
435
+
424
436
  export declare interface Code {
425
437
  code?: CodeableConcept;
426
438
  }
@@ -533,9 +545,75 @@ export declare type ConvertToUnion<T> = T[keyof T];
533
545
 
534
546
  export declare const CPT = "http://www.ama-assn.org/go/cpt";
535
547
 
536
- export declare function crawlResource(resource: Resource, visitor: ResourceVisitor, schema?: InternalTypeSchema, initialPath?: string): void;
548
+ export declare interface CrawlerOptions {
549
+ skipMissingProperties?: boolean;
550
+ schema?: InternalTypeSchema;
551
+ initialPath?: string;
552
+ }
553
+
554
+ export declare interface CrawlerVisitor {
555
+ onEnterObject?: (path: string, value: TypedValueWithPath, schema: InternalTypeSchema) => void;
556
+ onExitObject?: (path: string, value: TypedValueWithPath, schema: InternalTypeSchema) => void;
557
+ onEnterResource?: (path: string, value: TypedValueWithPath, schema: InternalTypeSchema) => void;
558
+ onExitResource?: (path: string, value: TypedValueWithPath, schema: InternalTypeSchema) => void;
559
+ visitProperty: (parent: TypedValueWithPath, key: string, path: string, propertyValues: (TypedValueWithPath | TypedValueWithPath[])[], schema: InternalTypeSchema) => void;
560
+ }
561
+
562
+ /**
563
+ * Crawls the resource synchronously.
564
+ * @param resource - The resource to crawl.
565
+ * @param visitor - The visitor functions to apply while crawling.
566
+ * @param schema - The schema to use for the resource.
567
+ * @param initialPath - The path within the resource form which to start crawling.
568
+ * @deprecated - Use crawlTypedValue instead
569
+ */
570
+ export declare function crawlResource(resource: Resource, visitor: CrawlerVisitor, schema?: InternalTypeSchema, initialPath?: string): void;
571
+
572
+ /**
573
+ * Crawls the resource asynchronously.
574
+ * @param resource - The resource to crawl.
575
+ * @param visitor - The visitor functions to apply while crawling.
576
+ * @param options - Options for how to crawl the resource.
577
+ * @returns void
578
+ * @deprecated - Use crawlTypedValueAsync instead
579
+ */
580
+ export declare function crawlResource(resource: Resource, visitor: AsyncCrawlerVisitor, options: CrawlerOptions): Promise<void>;
581
+
582
+ /**
583
+ * Crawls the resource synchronously.
584
+ * @param resource - The resource to crawl.
585
+ * @param visitor - The visitor functions to apply while crawling.
586
+ * @param options - Options for how to crawl the resource.
587
+ * @deprecated - Use crawlTypedValue instead
588
+ */
589
+ export declare function crawlResource(resource: Resource, visitor: CrawlerVisitor, options?: CrawlerOptions): void;
590
+
591
+ /**
592
+ * Crawls the resource asynchronously.
593
+ * @param resource - The resource to crawl.
594
+ * @param visitor - The visitor functions to apply while crawling.
595
+ * @param options - Options for how to crawl the resource.
596
+ * @returns Promise
597
+ * @deprecated - Use crawlTypedValueAsync instead
598
+ */
599
+ export declare function crawlResourceAsync(resource: Resource, visitor: AsyncCrawlerVisitor, options: CrawlerOptions): Promise<void>;
600
+
601
+ /**
602
+ * Crawls the typed value synchronously.
603
+ * @param typedValue - The typed value to crawl.
604
+ * @param visitor - The visitor functions to apply while crawling.
605
+ * @param options - Options for how to crawl the typed value.
606
+ */
607
+ export declare function crawlTypedValue(typedValue: TypedValue, visitor: CrawlerVisitor, options?: CrawlerOptions): void;
537
608
 
538
- export declare function crawlResource(resource: Resource, visitor: AsyncResourceVisitor, options: ResourceCrawlerOptions): Promise<void>;
609
+ /**
610
+ * Crawls the typed value asynchronously.
611
+ * @param typedValue - The typed value to crawl.
612
+ * @param visitor - The visitor functions to apply while crawling.
613
+ * @param options - Options for how to crawl the typed value.
614
+ * @returns Promise to crawl the typed value.
615
+ */
616
+ export declare function crawlTypedValueAsync(typedValue: TypedValue, visitor: AsyncCrawlerVisitor, options?: CrawlerOptions): Promise<void>;
539
617
 
540
618
  /**
541
619
  * Binary upload options.
@@ -786,6 +864,12 @@ export declare class EquivalentAtom extends BooleanInfixOperatorAtom {
786
864
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
787
865
  }
788
866
 
867
+ declare interface ErrorEvent_2 extends globalThis.Event {
868
+ message: string;
869
+ error: Error;
870
+ }
871
+ export { ErrorEvent_2 as ErrorEvent }
872
+
789
873
  /**
790
874
  * Evaluates a FHIRPath expression against a resource or other object.
791
875
  * @param expression - The FHIRPath expression to parse.
@@ -1990,9 +2074,8 @@ export declare function indexSearchParameterBundle(bundle: Bundle<SearchParamete
1990
2074
  /**
1991
2075
  * Parses and indexes structure definitions
1992
2076
  * @param bundle - Bundle or array of structure definitions to be parsed and indexed
1993
- * @param profileUrl - (optional) URL of the profile the SDs are related to
1994
2077
  */
1995
- export declare function indexStructureDefinitionBundle(bundle: StructureDefinition[] | Bundle, profileUrl?: string | undefined): void;
2078
+ export declare function indexStructureDefinitionBundle(bundle: StructureDefinition[] | Bundle): void;
1996
2079
 
1997
2080
  export declare abstract class InfixOperatorAtom implements Atom {
1998
2081
  readonly operator: string;
@@ -2033,10 +2116,11 @@ export declare interface InternalSchemaElement {
2033
2116
  */
2034
2117
  export declare interface InternalTypeSchema {
2035
2118
  name: string;
2119
+ type: string;
2120
+ path: string;
2036
2121
  title?: string;
2037
2122
  url?: string;
2038
2123
  kind?: string;
2039
- type?: string;
2040
2124
  description?: string;
2041
2125
  elements: Record<string, InternalSchemaElement>;
2042
2126
  constraints?: Constraint[];
@@ -2064,14 +2148,15 @@ export declare interface InviteRequest {
2064
2148
  admin?: boolean;
2065
2149
  }
2066
2150
 
2067
- export declare interface IRobustWebSocket extends TypedEventTarget<RobustWebSocketEventMap> {
2151
+ export declare interface IReconnectingWebSocket extends TypedEventTarget<WebSocketEventMap_2> {
2068
2152
  readyState: number;
2069
- close(): void;
2153
+ close(code?: number, reason?: string): void;
2070
2154
  send(message: string): void;
2155
+ reconnect(code?: number, reason?: string): void;
2071
2156
  }
2072
2157
 
2073
- export declare interface IRobustWebSocketCtor {
2074
- new (url: string): IRobustWebSocket;
2158
+ export declare interface IReconnectingWebSocketCtor {
2159
+ new (url: string, protocols?: ProtocolsProvider, options?: Options): IReconnectingWebSocket;
2075
2160
  }
2076
2161
 
2077
2162
  export declare function isAccepted(outcome: OperationOutcome): boolean;
@@ -2190,6 +2275,13 @@ export declare function isPopulated<T extends {
2190
2275
  length: number;
2191
2276
  } | object>(arg: CanBePopulated | undefined | null): arg is T;
2192
2277
 
2278
+ /**
2279
+ * Returns true if the type code is a primitive type.
2280
+ * @param code - The type code to check.
2281
+ * @returns True if the type code is a primitive type.
2282
+ */
2283
+ export declare function isPrimitiveType(code: string): boolean;
2284
+
2193
2285
  export declare function isProfileLoaded(profileUrl: string): boolean;
2194
2286
 
2195
2287
  /**
@@ -2333,7 +2425,7 @@ export declare class LiteralAtom implements Atom {
2333
2425
  toString(): string;
2334
2426
  }
2335
2427
 
2336
- export declare function loadDataType(sd: StructureDefinition, profileUrl?: string | undefined): void;
2428
+ export declare function loadDataType(sd: StructureDefinition): void;
2337
2429
 
2338
2430
  export declare class Logger {
2339
2431
  readonly write: (msg: string) => void;
@@ -3100,9 +3192,9 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
3100
3192
  * @category Schema
3101
3193
  * @param profileUrl - The FHIR URL of the profile
3102
3194
  * @param options - (optional) Additional options
3103
- * @returns Promise with an array of URLs of the profile(s) loaded.
3195
+ * @returns Promise for schema request.
3104
3196
  */
3105
- requestProfileSchema(profileUrl: string, options?: RequestProfileSchemaOptions): Promise<string[]>;
3197
+ requestProfileSchema(profileUrl: string, options?: RequestProfileSchemaOptions): Promise<void>;
3106
3198
  /**
3107
3199
  * Reads resource history by resource type and ID.
3108
3200
  *
@@ -4312,6 +4404,7 @@ export declare interface MedplumInfraConfig {
4312
4404
  rdsInstances: number;
4313
4405
  rdsInstanceType: string;
4314
4406
  rdsInstanceVersion?: string;
4407
+ rdsInstanceParameters?: StringMap;
4315
4408
  rdsSecretsArn?: string;
4316
4409
  rdsReaderInstanceType?: string;
4317
4410
  rdsProxyEnabled?: boolean;
@@ -4437,6 +4530,7 @@ export declare interface MedplumSourceInfraConfig {
4437
4530
  rdsSecretsArn?: ValueOrExternalSecret<string>;
4438
4531
  rdsReaderInstanceType?: ValueOrExternalSecret<string>;
4439
4532
  rdsProxyEnabled?: ValueOrExternalSecret<boolean>;
4533
+ rdsClusterParameters?: StringMap;
4440
4534
  cacheNodeType?: ValueOrExternalSecret<string>;
4441
4535
  cacheSecurityGroupId?: ValueOrExternalSecret<string>;
4442
4536
  desiredServerCount: ValueOrExternalSecret<number>;
@@ -4519,6 +4613,8 @@ export declare class MemoryStorage implements Storage {
4519
4613
  key(index: number): string | null;
4520
4614
  }
4521
4615
 
4616
+ export declare type Message = string | ArrayBuffer | Blob | ArrayBufferView;
4617
+
4522
4618
  /**
4523
4619
  * The MockAsyncClientStorage class is a mock implementation of the ClientStorage class.
4524
4620
  * This can be used for testing async initialization of the MedplumClient.
@@ -4728,6 +4824,20 @@ export declare const OperatorPrecedence: {
4728
4824
  Semicolon: number;
4729
4825
  };
4730
4826
 
4827
+ export declare type Options = {
4828
+ WebSocket?: any;
4829
+ maxReconnectionDelay?: number;
4830
+ minReconnectionDelay?: number;
4831
+ reconnectionDelayGrowFactor?: number;
4832
+ minUptime?: number;
4833
+ connectionTimeout?: number;
4834
+ maxRetries?: number;
4835
+ maxEnqueuedMessages?: number;
4836
+ startClosed?: boolean;
4837
+ debug?: boolean;
4838
+ debugLogger?: (...args: any[]) => void;
4839
+ };
4840
+
4731
4841
  /**
4732
4842
  * 6.5.2. or
4733
4843
  * Returns false if both operands evaluate to false,
@@ -5046,6 +5156,8 @@ export declare const PropertyType: {
5046
5156
  */
5047
5157
  export declare const protectedResourceTypes: string[];
5048
5158
 
5159
+ export declare type ProtocolsProvider = null | string | string[];
5160
+
5049
5161
  /**
5050
5162
  * QueryTypes defines the different ways to specify FHIR search parameters.
5051
5163
  *
@@ -5110,6 +5222,118 @@ export declare class ReadablePromise<T> implements Promise<T> {
5110
5222
  finally(onfinally?: (() => void) | undefined | null): Promise<T>;
5111
5223
  }
5112
5224
 
5225
+ export declare class ReconnectingWebSocket extends TypedEventTarget<WebSocketEventMap_2> implements IReconnectingWebSocket {
5226
+ private _ws;
5227
+ private _retryCount;
5228
+ private _uptimeTimeout;
5229
+ private _connectTimeout;
5230
+ private _shouldReconnect;
5231
+ private _connectLock;
5232
+ private _binaryType;
5233
+ private _closeCalled;
5234
+ private _messageQueue;
5235
+ private _debugLogger;
5236
+ protected _url: string;
5237
+ protected _protocols?: ProtocolsProvider;
5238
+ protected _options: Options;
5239
+ constructor(url: string, protocols?: ProtocolsProvider, options?: Options);
5240
+ static get CONNECTING(): number;
5241
+ static get OPEN(): number;
5242
+ static get CLOSING(): number;
5243
+ static get CLOSED(): number;
5244
+ get CONNECTING(): number;
5245
+ get OPEN(): number;
5246
+ get CLOSING(): number;
5247
+ get CLOSED(): number;
5248
+ get binaryType(): 'arraybuffer' | 'blob';
5249
+ set binaryType(value: BinaryType);
5250
+ /**
5251
+ * @returns The number or connection retries.
5252
+ */
5253
+ get retryCount(): number;
5254
+ /**
5255
+ * @returns The number of bytes of data that have been queued using calls to send() but not yet
5256
+ * transmitted to the network. This value resets to zero once all queued data has been sent.
5257
+ * This value does not reset to zero when the connection is closed; if you keep calling send(),
5258
+ * this will continue to climb. Read only
5259
+ *
5260
+ */
5261
+ get bufferedAmount(): number;
5262
+ /**
5263
+ * @returns The extensions selected by the server. This is currently only the empty string or a list of
5264
+ * extensions as negotiated by the connection
5265
+ */
5266
+ get extensions(): string;
5267
+ /**
5268
+ * @returns A string indicating the name of the sub-protocol the server selected;
5269
+ * this will be one of the strings specified in the protocols parameter when creating the
5270
+ * WebSocket object.
5271
+ */
5272
+ get protocol(): string;
5273
+ /**
5274
+ * @returns The current state of the connection; this is one of the Ready state constants.
5275
+ */
5276
+ get readyState(): number;
5277
+ /**
5278
+ * @returns The URL as resolved by the constructor.
5279
+ */
5280
+ get url(): string;
5281
+ /**
5282
+ * @returns Whether the websocket object is now in reconnectable state.
5283
+ */
5284
+ get shouldReconnect(): boolean;
5285
+ /**
5286
+ * An event listener to be called when the WebSocket connection's readyState changes to CLOSED
5287
+ */
5288
+ onclose: ((event: CloseEvent_2) => void) | null;
5289
+ /**
5290
+ * An event listener to be called when an error occurs
5291
+ */
5292
+ onerror: ((event: ErrorEvent_2) => void) | null;
5293
+ /**
5294
+ * An event listener to be called when a message is received from the server
5295
+ */
5296
+ onmessage: ((event: MessageEvent) => void) | null;
5297
+ /**
5298
+ * An event listener to be called when the WebSocket connection's readyState changes to OPEN;
5299
+ * this indicates that the connection is ready to send and receive data
5300
+ */
5301
+ onopen: ((event: Event) => void) | null;
5302
+ /**
5303
+ * Closes the WebSocket connection or connection attempt, if any. If the connection is already
5304
+ * CLOSED, this method does nothing
5305
+ * @param code - The code to close with. Default is 1000.
5306
+ * @param reason - An optional reason for closing the connection.
5307
+ */
5308
+ close(code?: number, reason?: string): void;
5309
+ /**
5310
+ * Closes the WebSocket connection or connection attempt and connects again.
5311
+ * Resets retry counter;
5312
+ * @param code - The code to disconnect with. Default is 1000.
5313
+ * @param reason - An optional reason for disconnecting the connection.
5314
+ */
5315
+ reconnect(code?: number, reason?: string): void;
5316
+ /**
5317
+ * Enqueue specified data to be transmitted to the server over the WebSocket connection
5318
+ * @param data - The data to enqueue.
5319
+ */
5320
+ send(data: Message): void;
5321
+ private _debug;
5322
+ private _getNextDelay;
5323
+ private _wait;
5324
+ private _connect;
5325
+ private _handleTimeout;
5326
+ private _disconnect;
5327
+ private _acceptOpen;
5328
+ private _handleOpen;
5329
+ private _handleMessage;
5330
+ private _handleError;
5331
+ private _handleClose;
5332
+ private _removeListeners;
5333
+ private _addListeners;
5334
+ private _clearTimeouts;
5335
+ }
5336
+
5113
5337
  /**
5114
5338
  * Removes duplicates in array using FHIRPath equality rules.
5115
5339
  * @param arr - The input array.
@@ -5158,11 +5382,8 @@ export declare type ResourceArray<T extends Resource = Resource> = T[] & {
5158
5382
  bundle: Bundle<T>;
5159
5383
  };
5160
5384
 
5161
- export declare type ResourceCrawlerOptions = {
5162
- skipMissingProperties?: boolean;
5163
- schema?: InternalTypeSchema;
5164
- initialPath?: string;
5165
- };
5385
+ /** @deprecated - Use CrawlerOptions instead */
5386
+ export declare type ResourceCrawlerOptions = CrawlerOptions;
5166
5387
 
5167
5388
  export declare type ResourceMatchesSubscriptionCriteria = {
5168
5389
  resource: Resource;
@@ -5174,36 +5395,11 @@ export declare type ResourceMatchesSubscriptionCriteria = {
5174
5395
 
5175
5396
  export declare function resourceMatchesSubscriptionCriteria({ resource, subscription, context, getPreviousResource, logger, }: ResourceMatchesSubscriptionCriteria): Promise<boolean>;
5176
5397
 
5177
- export declare interface ResourceVisitor {
5178
- onEnterObject?: (path: string, value: TypedValueWithPath, schema: InternalTypeSchema) => void;
5179
- onExitObject?: (path: string, value: TypedValueWithPath, schema: InternalTypeSchema) => void;
5180
- onEnterResource?: (path: string, value: TypedValueWithPath, schema: InternalTypeSchema) => void;
5181
- onExitResource?: (path: string, value: TypedValueWithPath, schema: InternalTypeSchema) => void;
5182
- visitProperty: (parent: TypedValueWithPath, key: string, path: string, propertyValues: (TypedValueWithPath | TypedValueWithPath[])[], schema: InternalTypeSchema) => void;
5183
- }
5398
+ /** @deprecated - Use CrawlerVisitor instead */
5399
+ export declare type ResourceVisitor = CrawlerVisitor;
5184
5400
 
5185
5401
  export declare type ResourceWithCode = Resource & Code;
5186
5402
 
5187
- export declare class RobustWebSocket extends TypedEventTarget<RobustWebSocketEventMap> implements IRobustWebSocket {
5188
- private ws;
5189
- private messageBuffer;
5190
- bufferedAmount: number;
5191
- extensions: string;
5192
- constructor(url: string);
5193
- get readyState(): number;
5194
- close(): void;
5195
- send(message: string): void;
5196
- }
5197
-
5198
- export declare type RobustWebSocketEventMap = {
5199
- open: {
5200
- type: 'open';
5201
- };
5202
- message: MessageEvent;
5203
- error: Event;
5204
- close: CloseEvent;
5205
- };
5206
-
5207
5403
  export declare const RXNORM = "http://www.nlm.nih.gov/research/umls/rxnorm";
5208
5404
 
5209
5405
  /**
@@ -5239,6 +5435,7 @@ export declare interface SearchRequest<T extends Resource = Resource> {
5239
5435
  readonly resourceType: T['resourceType'];
5240
5436
  filters?: Filter[];
5241
5437
  sortRules?: SortRule[];
5438
+ cursor?: string;
5242
5439
  offset?: number;
5243
5440
  count?: number;
5244
5441
  fields?: string[];
@@ -5411,13 +5608,16 @@ export declare type StringMap = {
5411
5608
  *
5412
5609
  * @param structureMap - The StructureMap to transform.
5413
5610
  * @param input - The input values.
5414
- * @param loader - Optional loader function for loading imported StructureMaps.
5611
+ * @param transformMaps - Optional collection of imported StructureMaps and ConceptMaps.
5415
5612
  * @returns The transformed values.
5416
5613
  */
5417
- export declare function structureMapTransform(structureMap: StructureMap, input: TypedValue[], loader?: (url: string) => StructureMap[]): TypedValue[];
5614
+ export declare function structureMapTransform(structureMap: StructureMap, input: TypedValue[], transformMaps?: TransformMapCollection): TypedValue[];
5418
5615
 
5419
5616
  export declare interface SubManagerOptions {
5420
- RobustWebSocket: IRobustWebSocketCtor;
5617
+ ReconnectingWebSocket?: IReconnectingWebSocketCtor;
5618
+ pingIntervalMs?: number;
5619
+ debug?: boolean;
5620
+ debugLogger?: (...args: any[]) => void;
5421
5621
  }
5422
5622
 
5423
5623
  /**
@@ -5491,9 +5691,11 @@ export declare class SubscriptionManager {
5491
5691
  private criteriaEntries;
5492
5692
  private criteriaEntriesBySubscriptionId;
5493
5693
  private wsClosed;
5694
+ private pingTimer;
5695
+ private pingIntervalMs;
5696
+ private waitingForPong;
5494
5697
  constructor(medplum: MedplumClient, wsUrl: URL | string, options?: SubManagerOptions);
5495
5698
  private setupWebSocketListeners;
5496
- private emitConnect;
5497
5699
  private emitError;
5498
5700
  private maybeEmitDisconnect;
5499
5701
  private getTokenForCriteria;
@@ -5501,9 +5703,13 @@ export declare class SubscriptionManager {
5501
5703
  private getAllCriteriaEmitters;
5502
5704
  private addCriteriaEntry;
5503
5705
  private removeCriteriaEntry;
5706
+ private subscribeToCriteria;
5707
+ private refreshAllSubscriptions;
5504
5708
  addCriteria(criteria: string, subscriptionProps?: Partial<Subscription>): SubscriptionEmitter;
5505
5709
  removeCriteria(criteria: string, subscriptionProps?: Partial<Subscription>): void;
5710
+ getWebSocket(): IReconnectingWebSocket;
5506
5711
  closeWebSocket(): void;
5712
+ reconnectWebSocket(): void;
5507
5713
  getCriteriaCount(): number;
5508
5714
  getMasterEmitter(): SubscriptionEmitter;
5509
5715
  }
@@ -5618,6 +5824,17 @@ export declare function toPeriod(input: unknown): Period | undefined;
5618
5824
  */
5619
5825
  export declare function toTypedValue(value: unknown): TypedValue;
5620
5826
 
5827
+ /**
5828
+ * The TransformMapCollection class is a collection of StructureMap and ConceptMap resources.
5829
+ * It is used to store and retrieve imported StructureMaps and ConceptMaps by URL.
5830
+ */
5831
+ export declare class TransformMapCollection {
5832
+ readonly resources: (StructureMap | ConceptMap)[];
5833
+ constructor(resources?: (StructureMap | ConceptMap)[]);
5834
+ get<K extends ResourceType>(resourceType: K, url: string): ExtractResource<K>[];
5835
+ private matchesUrl;
5836
+ }
5837
+
5621
5838
  export declare function tryGetDataType(type: string, profileUrl?: string): InternalTypeSchema | undefined;
5622
5839
 
5623
5840
  /**
@@ -5753,6 +5970,14 @@ export declare interface ValueSetExpandParams {
5753
5970
  count?: number;
5754
5971
  }
5755
5972
 
5973
+ declare type WebSocketEventMap_2 = {
5974
+ close: CloseEvent_2;
5975
+ error: ErrorEvent_2;
5976
+ message: MessageEvent;
5977
+ open: Event;
5978
+ };
5979
+ export { WebSocketEventMap_2 as WebSocketEventMap }
5980
+
5756
5981
  /**
5757
5982
  * 6.5.4. xor
5758
5983
  * Returns true if exactly one of the operands evaluates to true,