Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

The measurement period is UTC and the practice is not: confirm the zone and decide the instant-precision edge cases

Đang mở
#847 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
backend, databases

Hướng nghiên cứu

Start with backend-ts/src/config/deployment-profile.ts and the scheduler comment to establish the conflicting zone settings; then trace WebChart's issued fallback in normalize.ts and the calculateOfficial measurement-period handling described in the issue. Confirm the practice zone with MIE and decide how to handle Z timestamps and instant-precision boundaries, including whether fqm needs a change or the limitation should be documented. Done means the zone and edge-case decisions are recorded, with the practice time zone and its test updated as agreed.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

cql-engine maui-pilot

The measurement period is evaluated in UTC, and the practice is not in UTC. Measured, this is narrower than it sounds, but it is not nothing. And the practice's zone is still unsettled.

How the period works today

fqm-execution builds the measurement period at offset 0. Version 1.8.5 also ignores a stated offset: 2026-01-01T00:00:00-10:00 becomes 2026-01-01T00:00:00Z (projecttacoma/fqm-execution#376).

What a UTC period gets wrong, measured through calculateOfficial

  • day of comparisons are right while the data keeps its local offset. They read each event in the offset it states. QRDA import has kept the stated offset since #797.
CMS125 qualifying encounter Counted in 2026?
2026-12-31T19:00-10:00 (local 31 Dec; 05:00Z on 1 Jan) yes
the same instant written 2027-01-01T05:00Z no
2025-12-31T20:00-10:00 (local 31 Dec 2025) no
the same instant written 2026-01-01T06:00Z yes
  • Comparisons without day of use the instant against the UTC boundary. These are:

    • CMS125's six mastectomy exclusions ("on or before end of the period");
    • CMS165's ESRD encounter and procedure, the hypertension-diagnosis window, and the pregnancy/renal diagnosis;
    • CMS137's first SUD episode.

    In CMS125 test case 4cf81a94, with its bilateral mastectomy moved to 2026-12-31T19:00-10:00 (or -05:00), the patient is no longer excluded for 2026. At 13:00 the same day, they are. So an event in the last 10 local hours before a boundary (Hawaii), or the last 5 (Eastern), lands on the wrong side.

Do not hand fqm a zoned period, on 1.8.5 or on master

fqm master converts 2026-01-01T00:00-10:00 .. 2026-12-31T23:59:59.999-10:00 into 2026-01-01T10:00Z .. 2027-01-01T09:59:59.999Z, both at offset 0. day of would then read 1 January 2027 as inside 2026. A real practice-zone period needs fqm to keep the stated offset. Neither version does.

The zone itself is unsettled

backend-ts/src/config/deployment-profile.ts says America/New_York, while the scheduler's comment says Hawaii.

To do

  • Confirm the practice's zone with MIE, then set practiceTimeZone and its test.
  • List the ingest paths that write Z times, such as WebChart's issued fallback in normalize.ts. Converting a Z instant into the practice offset is a representation change, but it moves the day that day of reads, so it is an owner call.
  • Decide whether the instant-precision cases need a practice-zone period (an fqm change, upstream or patched) or a documented limitation, and record the decision where the measures are described.
Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Merge trung bình
3 giờ 43 phút
Pull request đã merge (30 ngày)
141

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Taleef7/workwell

Tất cả issue của Taleef7/workwell

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.