Skip to main content

core.getcodebysystem

Home > @medplum/core > getCodeBySystem

getCodeBySystem() function

Tries to find a code string for a given system within a given codeable concept.

Signature:

export declare function getCodeBySystem(concept: CodeableConcept, system: string): string | undefined;

Parameters

ParameterTypeDescription
conceptCodeableConceptThe codeable concept.
systemstringThe system string.

Returns:

string | undefined

The code if found; otherwise undefined.