モジュール / ghcr.io / i2y

ritsu-fmla

FMLA leave as 29 CFR 825 states it: who is eligible, the notices and their deadlines, the leave left, and who may read the medical records

  • i2y/ritsu の署名を確かめました
  • ダイジェストが一致
  • ritsu check を通ります
  • データ 4 件を SHA-256 で固定
  • 公開 2026-11-05
  • ritsu 0.41.0 以降が要ります
  • ソース

入っているもの

名前説明データの範囲試す、コードを読む
business_daysMonday to Friday, less the federal holidays of the United States. 29 CFR 825 does not define a business day: an employer's own may differ2021-01-01 〜 2030-12-31
fmla_deadlinesThe last day for the notices of FMLA leave: five business days for the eligibility and the designation notice, 15 calendar days for a certification. From 29 CFR 825.300(b), 825.300(d) and 825.305(b)2021-01-01 〜 2030-12-31
fmla_eligibilityWhether an employee of a covered employer is eligible for FMLA leave, and the first reason why not. Transcribed from 29 CFR 825.110(a)
fmla_entitlementHow many workweeks of FMLA leave a reason gives in a 12-month period, and how many minutes they are of an employee's own workweek. Transcribed from 29 CFR 825.200 and 825.205(b)
fmla_requestAn employee asks for FMLA leave: the eligibility notice, the certification, the designation, and the leave held in the book until it is taken. From 29 CFR 825.300 and 825.305
fmla_leaveThe FMLA leave an employee has left in a 12-month period, in minutes: it starts at what the employee is entitled to, and a designation holds what will be taken
fmla_recordsWho may learn what from the medical records of FMLA leave, and who may contact the health care provider. From 29 CFR 825.500(g) and 825.307(a)

米国の家族・医療休暇法(FMLA)を、その規則である 29 CFR Part 825 のとおりに、ritsu の五つの言語で書いたものです。どのファイルも同じ休暇の一部分に答え、ritsu check がそれをつなげて確かめます。フローは、規則と期限と帳簿を、それぞれが宣言した型で呼びます。

ファイル言語持つもの節
fmla_eligibility.rulerulec従業員に休暇を取る資格があるか、無ければ最初の理由825.110(a)
fmla_entitlement.rulerulec理由ごとに取れる週数と、それが本人の 1 週間の働き方で何分にあたるか825.200、825.205(b)
business_days.cal、fmla_deadlines.calkoyomi各通知と診断書の期限の日。祝日はモジュール holidays の連邦の祝日825.300(b)、(d)、825.305(b)
fmla_leave.bookchobo12 か月の期間に残っている休暇。ゼロを下回らず、指定した分は取るまで押さえておく825.200、825.205
fmla_request.flowdandori申し出から休暇が終わるまで。使用者が出す通知、診断書、休暇の指定825.300、825.305
fmla_records.gatesekisho医療の記録からだれが何を知ってよいか、だれが医療者に連絡してよいか825.500(g)、825.307(a)

2026-01-01 時点の節を転記したもので、原文と見比べて読むためのものです。法律の助言ではありません。

ここで決めて読んだところ

節が決めていないところは、どう決めたかを各ファイルのコメントに書きました。

  • 営業日は、月曜から金曜のうち連邦の祝日を除いた日です。Part 825 は営業日を定めておらず、使用者によって違うことがあります。
  • 期限は時刻ではなく日です。節は時刻を言わず、使用者は米国のどのタイムゾーンにもいます。また「やむを得ない事情」が無いときの日です。
  • フローは、申し出のあった日に診断書を求めます。825.305(b) が認める日のうち、いちばん早い日です。
  • 825.500(g) は、記録をだれが持つかを言っていません。ゲートでは、休暇の担当者と人事の専門職が読みます。

入っていないもの

  • 使用者が法の対象か(825.104)、病状が「重い健康状態」にあたるか(825.113)。
  • 航空機の乗務員(825.801〜825.803)、米国の外で働く従業員(825.105(b))、学校の従業員の特則(825.600〜825.604)。
  • 同じ使用者に勤める配偶者が上限を分け合う場合(825.120(a)(3)、825.127(f))。
  • 825.200(g) の合計の上限。帳簿は一つの期間に一つの上限を持ちます。825.200(f) の、対象となる軍人を介護するための 12 か月は、使用者が別の期間として名前を付けます。
  • 825.200(b)(4) の、さかのぼって数える 12 か月。毎日動くので、別の形の帳簿が要ります。
  • 有給休暇への振り替え(825.207)と、州の休暇法。
  • 従業員が自分の記録をどこまで見られるか。この項は言っていません。

使い方

モジュールを依存に足し、このモジュールと holidays の署名を確かめる行を ritsu.mod に書いて、取ってきます。

$ ritsu mod add fmla ghcr.io/i2y/ritsu-fmla@1.0.0
signature "ghcr.io/i2y/ritsu-fmla" by matching "^https://github[.]com/i2y/ritsu/" issuer "https://token.actions.githubusercontent.com"
signature "ghcr.io/i2y/ritsu-holidays" by matching "^https://github[.]com/i2y/ritsu/" issuer "https://token.actions.githubusercontent.com"
$ ritsu mod fetch

あとは、自分のファイルから読みます。

use rule eligibility from "@fmla/fmla_eligibility.rule"
use dates deadlines from "@fmla/fmla_deadlines.cal"
use book leave from "@fmla/fmla_leave.book"

フローのキューを通るタスクは Temporal で動きます。ritsu gen --target temporal-typescript(temporal-python、temporal-go も)で書き出せます。ゲートの決まりは ritsu gen --target cedar で Cedar になります。

出典

sources/law/ に、eCFR が配ったままの節を置いています。規則は読む三つの節を SHA-256 で固定し、rulec source outdated <ファイル> が新しい改正が出ていないかを eCFR に問い合わせます。koyomi、chobo、dandori、sekisho のファイルには eCFR の節を固定する行がありません。コメントに節の名前を書き、横のコピーがそのとき読んだものです。一覧は THIRD_PARTY_NOTICES.md にあります。

ライセンスは、ritsu と同じく MIT License か Apache License 2.0 のどちらかを選べます。

版

法令の改正に合わせた版はマイナーバージョンを上げます。言語のファイルの名前を変える版や消す版、ファイルが受け取るものや返すものを変える版は、メジャーバージョンを上げます。

カレンダー 1 個、日付の計算 1 本、規則 2 本、ワークフロー 1 本、帳簿 1 個、ゲート 1 個

ページは、この版のファイルからそれぞれの言語が描きました。

business_days

business_days.calカレンダー

Monday to Friday, less the federal holidays of the United States. 29 CFR 825 does not define a business day: an employer's own may differ

知っている日
2021-01-01 〜 2030-12-31
表
@holidays/us/data/federal_holidays.csv の 110 行
固定した版
sha256:194cb4a1ff46ed4b
読むカレンダー
federal_holidays

fmla_deadlines

fmla_deadlines.cal日付の計算

The last day for the notices of FMLA leave: five business days for the eligibility and the designation notice, 15 calendar days for a certification. From 29 CFR 825.300(b), 825.300(d) and 825.305(b)

知っている日
2021-01-01 〜 2030-12-31
表
@holidays/us/data/federal_holidays.csv の 110 行
固定した版
sha256:194cb4a1ff46ed4b
読むカレンダー
federal_holidays

fmla_eligibility

fmla_eligibility.rule規則

Whether an employee of a covered employer is eligible for FMLA leave, and the first reason why not. Transcribed from 29 CFR 825.110(a)

入力
months_employed (0〜720); hours_of_service (0〜8,784); employees_within_75_miles (0〜10,000,000)
出力
eligible; why_not (not_applicable, under_12_months, under_1250_hours, under_50_employees)
出典
29 CFR 825(2026-01-01 時点)

fmla_entitlement

fmla_entitlement.rule規則

How many workweeks of FMLA leave a reason gives in a 12-month period, and how many minutes they are of an employee's own workweek. Transcribed from 29 CFR 825.200 and 825.205(b)

入力
reason (birth, placement, care_for_family, own_condition, qualifying_exigency, servicemember_care); usual_week (1〜10,080 min)
出力
workweeks (12〜26); entitled (12〜262,080 min)
出典
29 CFR 825(2026-01-01 時点)

fmla_request

fmla_request.flowワークフロー

An employee asks for FMLA leave: the eligibility notice, the certification, the designation, and the leave held in the book until it is taken. From 29 CFR 825.300 and 825.305

fmla_leave

fmla_leave.book帳簿

The FMLA leave an employee has left in a 12-month period, in minutes: it starts at what the employee is entitled to, and a designation holds what will be taken

勘定
leave entitled taken
振替
entitle designate

fmla_records

fmla_records.gateゲート

Who may learn what from the medical records of FMLA leave, and who may contact the health care provider. From 29 CFR 825.500(g) and 825.307(a)

役割
leave_administrator human_resources_professional management_official health_care_provider supervisor first_aid government_official
操作
read_medical_file read_restrictions read_emergency_condition read_relevant_information contact_provider

試す

1.0.0 はこのサイトでいちばん古い版です

新しい版が公開されると、このタブに、どの入力の答えが変わるか、どの日が休みに変わるか、どの日を新しく知るかが出ます。

版 1 個

版公開ダイジェストファイル確かめたこと
1.0.0 最新2026-11-05sha256:8d1ec3cccd6d19ダイジェストと署名、ritsu check を通過

カレンダー

business_days.cal252 バイト

日付の計算

fmla_deadlines.cal1,287 バイト

規則

fmla_eligibility.rule2,228 バイト
fmla_entitlement.rule2,070 バイト

ワークフロー

fmla_request.flow6,339 バイト

帳簿

fmla_leave.book1,479 バイト

ゲート

fmla_records.gate5,797 バイト

データとそのほかのファイル

モジュールについて

README.ja.md5,188 バイト
README.md4,678 バイト
THIRD_PARTY_NOTICES.md1,655 バイト
ritsu.lock295 バイト
ritsu.mod878 バイト