.. image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/chapmanwilliam/Ogden8/master?urlpath=voila%2Frender%2FOgden.ipynb
localpackage/Data/SAR.csv is the canonical Court Funds Office Special Account
Rate table for every Ogden product. The web page's data/ogden/SAR.csv is a
verbatim copy and the Excel add-in's sar-rates.json is generated from it.
It is kept current by sar-watch,
a daily job that appends each announced change to all three repos and
redeploys this function. Edit it by hand only to correct history, and then
update the copies too.
GET https://europe-west2-ogden8.cloudfunctions.net/ogden-2/sar returns the
table as JSON (rates: [{date, ratePct}], plus last). The web page and the
Excel add-in read it from there at runtime, keeping their bundled copies only
as an offline fallback, and sar-watch checks it after every deploy.
localpackage/Data/PIDR.csv is the canonical Personal Injury Discount Rate
table: one row per change for England and Wales (EW), Scotland (SC) and
Northern Ireland (NI). The engine's default discount rate, used when a request
sends none, is the England and Wales rate in force on the day
(utils.defaultDiscountRate). The web page's data/ogden/PIDR.csv is a
verbatim copy. The same sar-watch job checks GOV.UK daily for a change and
appends it to both repos, then redeploys this function.
GET https://europe-west2-ogden8.cloudfunctions.net/ogden-2/pidr returns the
table as JSON (rates: [{jurisdiction, date, ratePct}], plus current per
jurisdiction). The web page reads it from there to set its default rate.