@medplum/core 3.0.0 → 3.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.
@@ -363,6 +363,8 @@ export declare interface ConceptMapTranslateParameters {
363
363
  targetsystem?: string;
364
364
  }
365
365
 
366
+ export declare function conflict(details: string): OperationOutcome;
367
+
366
368
  export declare interface Constraint {
367
369
  key: string;
368
370
  severity: 'error' | 'warning';
@@ -1933,6 +1935,18 @@ export declare class LiteralAtom implements Atom {
1933
1935
 
1934
1936
  export declare function loadDataType(sd: StructureDefinition, profileUrl?: string | undefined): void;
1935
1937
 
1938
+ export declare class Logger {
1939
+ readonly write: (msg: string) => void;
1940
+ readonly metadata: Record<string, any>;
1941
+ level: LogLevel;
1942
+ constructor(write: (msg: string) => void, metadata?: Record<string, any>, level?: LogLevel);
1943
+ error(msg: string, data?: Record<string, any>): void;
1944
+ warn(msg: string, data?: Record<string, any>): void;
1945
+ info(msg: string, data?: Record<string, any>): void;
1946
+ debug(msg: string, data?: Record<string, any>): void;
1947
+ log(level: LogLevel, msg: string, data?: Record<string, any>): void;
1948
+ }
1949
+
1936
1950
  export declare interface LoginAuthenticationResponse {
1937
1951
  readonly login: string;
1938
1952
  readonly mfaRequired?: boolean;
@@ -1957,6 +1971,19 @@ export declare interface LoginState {
1957
1971
  readonly refreshToken: string;
1958
1972
  }
1959
1973
 
1974
+ /**
1975
+ * Logging level, with greater values representing more detailed logs emitted.
1976
+ *
1977
+ * The zero value means no server logs will be emitted.
1978
+ */
1979
+ export declare enum LogLevel {
1980
+ NONE = 0,
1981
+ ERROR = 1,
1982
+ WARN = 2,
1983
+ INFO = 3,
1984
+ DEBUG = 4
1985
+ }
1986
+
1960
1987
  export declare const LOINC = "http://loinc.org";
1961
1988
 
1962
1989
  /**
@@ -4093,6 +4120,8 @@ export declare function parseHl7DateTime(hl7DateTime: string | undefined, option
4093
4120
  */
4094
4121
  export declare function parseJWTPayload(token: string): Record<string, number | string>;
4095
4122
 
4123
+ export declare function parseLogLevel(level: string): LogLevel;
4124
+
4096
4125
  /**
4097
4126
  * Parses a FHIR Mapping Language document into an AST.
4098
4127
  * @param input - The FHIR Mapping Language document to parse.
@@ -363,6 +363,8 @@ export declare interface ConceptMapTranslateParameters {
363
363
  targetsystem?: string;
364
364
  }
365
365
 
366
+ export declare function conflict(details: string): OperationOutcome;
367
+
366
368
  export declare interface Constraint {
367
369
  key: string;
368
370
  severity: 'error' | 'warning';
@@ -1933,6 +1935,18 @@ export declare class LiteralAtom implements Atom {
1933
1935
 
1934
1936
  export declare function loadDataType(sd: StructureDefinition, profileUrl?: string | undefined): void;
1935
1937
 
1938
+ export declare class Logger {
1939
+ readonly write: (msg: string) => void;
1940
+ readonly metadata: Record<string, any>;
1941
+ level: LogLevel;
1942
+ constructor(write: (msg: string) => void, metadata?: Record<string, any>, level?: LogLevel);
1943
+ error(msg: string, data?: Record<string, any>): void;
1944
+ warn(msg: string, data?: Record<string, any>): void;
1945
+ info(msg: string, data?: Record<string, any>): void;
1946
+ debug(msg: string, data?: Record<string, any>): void;
1947
+ log(level: LogLevel, msg: string, data?: Record<string, any>): void;
1948
+ }
1949
+
1936
1950
  export declare interface LoginAuthenticationResponse {
1937
1951
  readonly login: string;
1938
1952
  readonly mfaRequired?: boolean;
@@ -1957,6 +1971,19 @@ export declare interface LoginState {
1957
1971
  readonly refreshToken: string;
1958
1972
  }
1959
1973
 
1974
+ /**
1975
+ * Logging level, with greater values representing more detailed logs emitted.
1976
+ *
1977
+ * The zero value means no server logs will be emitted.
1978
+ */
1979
+ export declare enum LogLevel {
1980
+ NONE = 0,
1981
+ ERROR = 1,
1982
+ WARN = 2,
1983
+ INFO = 3,
1984
+ DEBUG = 4
1985
+ }
1986
+
1960
1987
  export declare const LOINC = "http://loinc.org";
1961
1988
 
1962
1989
  /**
@@ -4093,6 +4120,8 @@ export declare function parseHl7DateTime(hl7DateTime: string | undefined, option
4093
4120
  */
4094
4121
  export declare function parseJWTPayload(token: string): Record<string, number | string>;
4095
4122
 
4123
+ export declare function parseLogLevel(level: string): LogLevel;
4124
+
4096
4125
  /**
4097
4126
  * Parses a FHIR Mapping Language document into an AST.
4098
4127
  * @param input - The FHIR Mapping Language document to parse.