Skip to main content
Version: v0.0.6

Interface: ConvertResult<T>

The result of one datatype conversion: the produced FHIR value (or undefined when the input was empty or un-emittable) plus the diagnostics raised.

Example

import { toFhirHumanName } from "@cosyte/transform";
const { value, issues } = toFhirHumanName({ familyName: "Public" });
// value is a FHIR HumanName node; issues is [] here
void value;
void issues;

Type Parameters

T

T

The produced FHIR value's type (a FhirComplex datatype node, or a lexical string for dateTime).

Properties

issues

readonly issues: readonly TransformIssue[]

The value-free diagnostics raised during the conversion, in emission order.


value

readonly value: T | undefined

The produced FHIR value, or undefined when nothing could be safely emitted.