Function: codeableConceptFromTarget()
codeableConceptFromTarget(
target,text?):FhirComplex
Build a FHIR CodeableConcept node for a CodedTarget - the single translated coding, with
an optional free-text. Used by translate-or-withhold callers (e.g. substitution) that build the
CodeableConcept only on a successful translation.
Parameters
target
The translated target coding.
text?
string
The original free text (CWE.9) to carry as CodeableConcept.text, if any.
Returns
FhirComplex
Example
import { codeableConceptFromTarget, V2_0161_SYSTEM } from "@cosyte/transform";
const cc = codeableConceptFromTarget({ system: V2_0161_SYSTEM, code: "G" });
void cc;