Skip to main content
Version: v0.0.5

Interface: TransformIssue

A single value-free diagnostic.

Example

import { ISSUE_CODES } from "@cosyte/transform";
// issue.code === ISSUE_CODES.TRANSFORM_TIMESTAMP_NO_TIMEZONE
// issue.v2Location === "TS.1"; issue.fhirPath === "dateTime"

Properties

code

readonly code: IssueCode

The stable code. One of ISSUE_CODES.


fhirPath?

readonly optional fhirPath?: string

The FHIR path this issue concerns (e.g. Identifier.system), when applicable.


message

readonly message: string

A static, value-free description drawn from ISSUE_REGISTRY.


severity

readonly severity: TransformSeverity

The OperationOutcome-style severity, fixed per code.


v2Location

readonly v2Location: string

The v2 source location - a segment / field / component index, never a value.