Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Authored measures' most-recent sort: mixed timezone offsets and same-instant ties still depend on order

オープン
#750 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
活発
技術スタック
typescript
領域
data

調査の方向性

Start with the review in #749 and trace the authored-measure sorting path, including normalize.ts and the cql-execution comparison behavior. Confirm how authored cms122 handles mixed offsets and same-instant ties, then get the owner’s decision on the tie rule before defining completion.

索引モデルが issue の本文から書いたものです。

説明

backend bug

Two ordering edge cases are left after #749. Both affect only the authored measures; the official CMS measures don't use this sort.

1. Mixed timezone offsets order by text

cql-execution compares sort keys with <. A CQL DateTime has no valueOf, so it compares the toString() output, which ends in the offset. Results with the same offset sort correctly; results with different offsets can sort wrongly when they're close in time.

  • Example (authored cms122): 7.5% at 2026-05-13T23:00:00-10:00 (the newer result) against 10.5% at 2026-05-14T02:00:00+00:00 gives OVERDUE in both orders.
  • How it can happen: WebChart-sourced times carry a local offset (Maui is −10:00), while normalize.ts falls back to issued, usually in Z, when effectiveDateTime is missing.
  • Impact: at most one day on the day-window measures.
  • Fix options: normalise instants to UTC at ingest, or give the sort key one offset.

2. Ties keep input order

Two results at the same instant compare as "greater" both ways, so Last() picks the first-listed of the tied pair. That matters only for value-reading measures (authored cms122: 7.5 then 10.5 gives COMPLIANT; 10.5 then 7.5 gives OVERDUE). A tie needs a rule: a secondary key such as issued, or worst-value-wins. That choice is clinical, so it's an owner decision.

Found in #749's review. Low priority.

主要言語
TypeScript
スター
0
フォーク
0
平均マージ
2時間 51分
マージ済み PR(30日)
109

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Taleef7/workwell のほかの issue

Taleef7/workwell の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。