@medplum/core 2.2.10 → 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.
- package/dist/cjs/index.cjs +5 -4
- package/dist/cjs/index.cjs.map +4 -4
- package/dist/cjs/index.d.ts +31 -0
- package/dist/esm/index.d.ts +31 -0
- package/dist/esm/index.mjs +5 -4
- package/dist/esm/index.mjs.map +4 -4
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -140,6 +140,8 @@ export declare class AndAtom extends BooleanInfixOperatorAtom {
|
|
|
140
140
|
eval(context: AtomContext, input: TypedValue[]): TypedValue[];
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
export declare function append<T>(array: T[] | undefined, value: T): T[];
|
|
144
|
+
|
|
143
145
|
export declare class ArithemticOperatorAtom extends BooleanInfixOperatorAtom {
|
|
144
146
|
readonly impl: (x: number, y: number) => number | boolean;
|
|
145
147
|
constructor(operator: string, left: Atom, right: Atom, impl: (x: number, y: number) => number | boolean);
|
|
@@ -361,6 +363,8 @@ export declare interface ConceptMapTranslateParameters {
|
|
|
361
363
|
targetsystem?: string;
|
|
362
364
|
}
|
|
363
365
|
|
|
366
|
+
export declare function conflict(details: string): OperationOutcome;
|
|
367
|
+
|
|
364
368
|
export declare interface Constraint {
|
|
365
369
|
key: string;
|
|
366
370
|
severity: 'error' | 'warning';
|
|
@@ -1931,6 +1935,18 @@ export declare class LiteralAtom implements Atom {
|
|
|
1931
1935
|
|
|
1932
1936
|
export declare function loadDataType(sd: StructureDefinition, profileUrl?: string | undefined): void;
|
|
1933
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
|
+
|
|
1934
1950
|
export declare interface LoginAuthenticationResponse {
|
|
1935
1951
|
readonly login: string;
|
|
1936
1952
|
readonly mfaRequired?: boolean;
|
|
@@ -1955,6 +1971,19 @@ export declare interface LoginState {
|
|
|
1955
1971
|
readonly refreshToken: string;
|
|
1956
1972
|
}
|
|
1957
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
|
+
|
|
1958
1987
|
export declare const LOINC = "http://loinc.org";
|
|
1959
1988
|
|
|
1960
1989
|
/**
|
|
@@ -4091,6 +4120,8 @@ export declare function parseHl7DateTime(hl7DateTime: string | undefined, option
|
|
|
4091
4120
|
*/
|
|
4092
4121
|
export declare function parseJWTPayload(token: string): Record<string, number | string>;
|
|
4093
4122
|
|
|
4123
|
+
export declare function parseLogLevel(level: string): LogLevel;
|
|
4124
|
+
|
|
4094
4125
|
/**
|
|
4095
4126
|
* Parses a FHIR Mapping Language document into an AST.
|
|
4096
4127
|
* @param input - The FHIR Mapping Language document to parse.
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -140,6 +140,8 @@ export declare class AndAtom extends BooleanInfixOperatorAtom {
|
|
|
140
140
|
eval(context: AtomContext, input: TypedValue[]): TypedValue[];
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
export declare function append<T>(array: T[] | undefined, value: T): T[];
|
|
144
|
+
|
|
143
145
|
export declare class ArithemticOperatorAtom extends BooleanInfixOperatorAtom {
|
|
144
146
|
readonly impl: (x: number, y: number) => number | boolean;
|
|
145
147
|
constructor(operator: string, left: Atom, right: Atom, impl: (x: number, y: number) => number | boolean);
|
|
@@ -361,6 +363,8 @@ export declare interface ConceptMapTranslateParameters {
|
|
|
361
363
|
targetsystem?: string;
|
|
362
364
|
}
|
|
363
365
|
|
|
366
|
+
export declare function conflict(details: string): OperationOutcome;
|
|
367
|
+
|
|
364
368
|
export declare interface Constraint {
|
|
365
369
|
key: string;
|
|
366
370
|
severity: 'error' | 'warning';
|
|
@@ -1931,6 +1935,18 @@ export declare class LiteralAtom implements Atom {
|
|
|
1931
1935
|
|
|
1932
1936
|
export declare function loadDataType(sd: StructureDefinition, profileUrl?: string | undefined): void;
|
|
1933
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
|
+
|
|
1934
1950
|
export declare interface LoginAuthenticationResponse {
|
|
1935
1951
|
readonly login: string;
|
|
1936
1952
|
readonly mfaRequired?: boolean;
|
|
@@ -1955,6 +1971,19 @@ export declare interface LoginState {
|
|
|
1955
1971
|
readonly refreshToken: string;
|
|
1956
1972
|
}
|
|
1957
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
|
+
|
|
1958
1987
|
export declare const LOINC = "http://loinc.org";
|
|
1959
1988
|
|
|
1960
1989
|
/**
|
|
@@ -4091,6 +4120,8 @@ export declare function parseHl7DateTime(hl7DateTime: string | undefined, option
|
|
|
4091
4120
|
*/
|
|
4092
4121
|
export declare function parseJWTPayload(token: string): Record<string, number | string>;
|
|
4093
4122
|
|
|
4123
|
+
export declare function parseLogLevel(level: string): LogLevel;
|
|
4124
|
+
|
|
4094
4125
|
/**
|
|
4095
4126
|
* Parses a FHIR Mapping Language document into an AST.
|
|
4096
4127
|
* @param input - The FHIR Mapping Language document to parse.
|