T0028 — STU: Long type

Part of the roadmap. Phase 2 · wave 8 · size M.

  • Depends on: T0038
  • Area: area:core, area:functions
  • Tier hint: likely risk:high: a new System type that reaches the public types and outputs, so the core tier with a second reviewer from the other vendor.

Goal

  • System.Long (bigint) and the L literal suffix in the lexer and parser
  • toLong and convertsToLong
  • arithmetic and comparison
  • implicit conversions (Integer → Long → Decimal)
  • mapping FHIR.integer64 to System.Long. R5 and the R6 draft have integer64 and R4 does not; the generated r5 and r6 providers already map it to Long (T0019, T0039), and its JSON value is a string.

Acceptance criteria

The spec examples are tests; overflow behaviour is documented; Long tests in the suite pass; an integer64 element evaluates as a Long with the real r5 and r6 providers (FHIR versions), with no R6 conformance claim.