Skip to main content

core.structuremaptransform

Home > @medplum/core > structureMapTransform

structureMapTransform() function

Transforms input values using a FHIR StructureMap.

See: https://www.hl7.org/fhir/mapping-language.html

Signature:

export declare function structureMapTransform(structureMap: StructureMap, input: TypedValue[], loader?: (url: string) => StructureMap[]): TypedValue[];

Parameters

ParameterTypeDescription
structureMapStructureMapThe StructureMap to transform.
inputTypedValue[]The input values.
loader(url: string) => StructureMap[](Optional) Optional loader function for loading imported StructureMaps.

Returns:

TypedValue[]

The transformed values.