Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

[ts] Use choice type instead of Hungarian fields? #20

@aartaka

Description

@aartaka

So when I generate bindings for hl7.cda.uv.core@2.0.1-sd, I get this kind of interface with type-suffixed fields:

export interface SubstanceAdministration extends InfrastructureRoot {
    // ...
    effectiveTimeEIVL_TS?: EIVL_TS[];
    effectiveTimeIVL_TS?: IVL_TS[];
    effectiveTimePIVL_TS?: PIVL_TS[];
    effectiveTimeSXCM_TS?: SXCM_TS[];
    effectiveTimeSXPR_TS?: SXPR_TS[];
    // ...
}

Any motivation for that? Wouldn't union type work equally well here? Anything I'm missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions