@medplum/core 2.2.5 → 2.2.6
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 +4 -4
- package/dist/cjs/index.cjs.map +4 -4
- package/dist/cjs/index.d.ts +37 -1
- package/dist/esm/index.d.ts +37 -1
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/index.mjs.map +4 -4
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { Bundle } from '@medplum/fhirtypes';
|
|
|
11
11
|
import { CodeableConcept } from '@medplum/fhirtypes';
|
|
12
12
|
import { Coding } from '@medplum/fhirtypes';
|
|
13
13
|
import { Communication } from '@medplum/fhirtypes';
|
|
14
|
+
import { ConceptMap } from '@medplum/fhirtypes';
|
|
14
15
|
import type { CustomTableLayout } from 'pdfmake/interfaces';
|
|
15
16
|
import { Device } from '@medplum/fhirtypes';
|
|
16
17
|
import { ElementDefinition } from '@medplum/fhirtypes';
|
|
@@ -261,7 +262,7 @@ export declare function calculateAge(birthDateStr: string, endDateStr?: string):
|
|
|
261
262
|
*/
|
|
262
263
|
export declare function calculateAgeString(birthDateStr: string, endDateStr?: string): string | undefined;
|
|
263
264
|
|
|
264
|
-
declare type CanBePopulated = {
|
|
265
|
+
export declare type CanBePopulated = {
|
|
265
266
|
length: number;
|
|
266
267
|
} | object;
|
|
267
268
|
|
|
@@ -337,6 +338,29 @@ export declare class ConcatAtom extends InfixOperatorAtom {
|
|
|
337
338
|
eval(context: AtomContext, input: TypedValue[]): TypedValue[];
|
|
338
339
|
}
|
|
339
340
|
|
|
341
|
+
export declare function conceptMapTranslate(map: ConceptMap, params: ConceptMapTranslateParameters): ConceptMapTranslateOutput;
|
|
342
|
+
|
|
343
|
+
export declare interface ConceptMapTranslateMatch {
|
|
344
|
+
equivalence?: string;
|
|
345
|
+
concept?: Coding;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export declare interface ConceptMapTranslateOutput {
|
|
349
|
+
result: boolean;
|
|
350
|
+
message?: string;
|
|
351
|
+
match?: ConceptMapTranslateMatch[];
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export declare interface ConceptMapTranslateParameters {
|
|
355
|
+
url?: string;
|
|
356
|
+
source?: string;
|
|
357
|
+
code?: string;
|
|
358
|
+
system?: string;
|
|
359
|
+
coding?: Coding;
|
|
360
|
+
codeableConcept?: CodeableConcept;
|
|
361
|
+
targetsystem?: string;
|
|
362
|
+
}
|
|
363
|
+
|
|
340
364
|
export declare interface Constraint {
|
|
341
365
|
key: string;
|
|
342
366
|
severity: 'error' | 'warning';
|
|
@@ -1564,6 +1588,8 @@ export declare class Hl7Segment {
|
|
|
1564
1588
|
static parse(text: string, context?: Hl7Context): Hl7Segment;
|
|
1565
1589
|
}
|
|
1566
1590
|
|
|
1591
|
+
export declare const HTTP_HL7_ORG = "http://hl7.org";
|
|
1592
|
+
|
|
1567
1593
|
export declare interface HumanNameFormatOptions {
|
|
1568
1594
|
all?: boolean;
|
|
1569
1595
|
prefix?: boolean;
|
|
@@ -4547,6 +4573,16 @@ export declare function stringify(value: any, pretty?: boolean): string;
|
|
|
4547
4573
|
*/
|
|
4548
4574
|
export declare function stringifyTypedValue(v: TypedValue): string;
|
|
4549
4575
|
|
|
4576
|
+
/**
|
|
4577
|
+
* Transforms input values using a FHIR StructureMap.
|
|
4578
|
+
*
|
|
4579
|
+
* See: https://www.hl7.org/fhir/mapping-language.html
|
|
4580
|
+
*
|
|
4581
|
+
* @param structureMap - The StructureMap to transform.
|
|
4582
|
+
* @param input - The input values.
|
|
4583
|
+
* @param loader - Optional loader function for loading imported StructureMaps.
|
|
4584
|
+
* @returns The transformed values.
|
|
4585
|
+
*/
|
|
4550
4586
|
export declare function structureMapTransform(structureMap: StructureMap, input: TypedValue[], loader?: (url: string) => StructureMap[]): TypedValue[];
|
|
4551
4587
|
|
|
4552
4588
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { Bundle } from '@medplum/fhirtypes';
|
|
|
11
11
|
import { CodeableConcept } from '@medplum/fhirtypes';
|
|
12
12
|
import { Coding } from '@medplum/fhirtypes';
|
|
13
13
|
import { Communication } from '@medplum/fhirtypes';
|
|
14
|
+
import { ConceptMap } from '@medplum/fhirtypes';
|
|
14
15
|
import type { CustomTableLayout } from 'pdfmake/interfaces';
|
|
15
16
|
import { Device } from '@medplum/fhirtypes';
|
|
16
17
|
import { ElementDefinition } from '@medplum/fhirtypes';
|
|
@@ -261,7 +262,7 @@ export declare function calculateAge(birthDateStr: string, endDateStr?: string):
|
|
|
261
262
|
*/
|
|
262
263
|
export declare function calculateAgeString(birthDateStr: string, endDateStr?: string): string | undefined;
|
|
263
264
|
|
|
264
|
-
declare type CanBePopulated = {
|
|
265
|
+
export declare type CanBePopulated = {
|
|
265
266
|
length: number;
|
|
266
267
|
} | object;
|
|
267
268
|
|
|
@@ -337,6 +338,29 @@ export declare class ConcatAtom extends InfixOperatorAtom {
|
|
|
337
338
|
eval(context: AtomContext, input: TypedValue[]): TypedValue[];
|
|
338
339
|
}
|
|
339
340
|
|
|
341
|
+
export declare function conceptMapTranslate(map: ConceptMap, params: ConceptMapTranslateParameters): ConceptMapTranslateOutput;
|
|
342
|
+
|
|
343
|
+
export declare interface ConceptMapTranslateMatch {
|
|
344
|
+
equivalence?: string;
|
|
345
|
+
concept?: Coding;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export declare interface ConceptMapTranslateOutput {
|
|
349
|
+
result: boolean;
|
|
350
|
+
message?: string;
|
|
351
|
+
match?: ConceptMapTranslateMatch[];
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export declare interface ConceptMapTranslateParameters {
|
|
355
|
+
url?: string;
|
|
356
|
+
source?: string;
|
|
357
|
+
code?: string;
|
|
358
|
+
system?: string;
|
|
359
|
+
coding?: Coding;
|
|
360
|
+
codeableConcept?: CodeableConcept;
|
|
361
|
+
targetsystem?: string;
|
|
362
|
+
}
|
|
363
|
+
|
|
340
364
|
export declare interface Constraint {
|
|
341
365
|
key: string;
|
|
342
366
|
severity: 'error' | 'warning';
|
|
@@ -1564,6 +1588,8 @@ export declare class Hl7Segment {
|
|
|
1564
1588
|
static parse(text: string, context?: Hl7Context): Hl7Segment;
|
|
1565
1589
|
}
|
|
1566
1590
|
|
|
1591
|
+
export declare const HTTP_HL7_ORG = "http://hl7.org";
|
|
1592
|
+
|
|
1567
1593
|
export declare interface HumanNameFormatOptions {
|
|
1568
1594
|
all?: boolean;
|
|
1569
1595
|
prefix?: boolean;
|
|
@@ -4547,6 +4573,16 @@ export declare function stringify(value: any, pretty?: boolean): string;
|
|
|
4547
4573
|
*/
|
|
4548
4574
|
export declare function stringifyTypedValue(v: TypedValue): string;
|
|
4549
4575
|
|
|
4576
|
+
/**
|
|
4577
|
+
* Transforms input values using a FHIR StructureMap.
|
|
4578
|
+
*
|
|
4579
|
+
* See: https://www.hl7.org/fhir/mapping-language.html
|
|
4580
|
+
*
|
|
4581
|
+
* @param structureMap - The StructureMap to transform.
|
|
4582
|
+
* @param input - The input values.
|
|
4583
|
+
* @param loader - Optional loader function for loading imported StructureMaps.
|
|
4584
|
+
* @returns The transformed values.
|
|
4585
|
+
*/
|
|
4550
4586
|
export declare function structureMapTransform(structureMap: StructureMap, input: TypedValue[], loader?: (url: string) => StructureMap[]): TypedValue[];
|
|
4551
4587
|
|
|
4552
4588
|
/**
|