Some checks failed
CI / skinny-install (aco) (push) Successful in 52s
CI / skinny-install (api) (push) Successful in 31s
CI / skinny-install (bcda) (push) Successful in 27s
CI / skinny-install (bib) (push) Successful in 27s
CI / skinny-install (bls) (push) Successful in 21s
CI / skinny-install (ccw) (push) Successful in 22s
CI / skinny-install (conf) (push) Successful in 25s
CI / skinny-install (cli) (push) Successful in 48s
CI / skinny-install (cms) (push) Successful in 25s
CI / skinny-install (pfs) (push) Successful in 24s
CI / skinny-install (rex) (push) Successful in 23s
CI / lint-test (push) Successful in 6m1s
Infra CI / notebooks (push) Successful in 6s
Infra CI / zotero (push) Successful in 6s
Infra CI / docs (push) Successful in 13s
Infra CI / api (push) Successful in 9s
Infra CI / mc (push) Successful in 6s
Package Supply Chain / pkg-supply-chain (push) Failing after 27s
Deploy / build-scan-report (push) Successful in 3m59s
Move marimo server config, snippets, and patched assets out of notebooks/ into infra/marimo/, keeping notebooks/ as pure .py content. - infra/marimo/marimo.toml: merged authoritative config (was split across .marimo.toml and .marimo-config/marimo.toml) - infra/marimo/snippets/: 10 code templates (was notebooks/snippets/) - infra/marimo/home-page-patched.js: custom home page (was in notebooks/) - Deleted duplicate loch.css (already served from assets/css/marimo.css) - Updated compose.yml volume mounts, Dockerfile, stack.toml path_filter - 18 layout tests enforce separation going forward Closes #214, closes #215, closes #216, closes #217, closes #218
41 lines
796 B
Python
41 lines
796 B
Python
import marimo
|
|
|
|
__generated_with = "0.20.4"
|
|
app = marimo.App()
|
|
|
|
|
|
@app.cell
|
|
def _(mo):
|
|
mo.md(r"""
|
|
# Query: PMPM financial summary
|
|
|
|
Per-member-per-month cost breakdown by service category.
|
|
""")
|
|
return
|
|
|
|
|
|
@app.cell
|
|
def _(mo, q):
|
|
pmpm = q('''
|
|
SELECT year_month, member_months,
|
|
round(total_paid / member_months, 2) AS total_pmpm,
|
|
round(inpatient_paid / member_months, 2) AS inpatient_pmpm,
|
|
round(pharmacy_paid / member_months, 2) AS pharmacy_pmpm
|
|
FROM financial_pmpm.pmpm_payer
|
|
WHERE member_months > 50
|
|
ORDER BY year_month
|
|
''')
|
|
mo.ui.table(pmpm, label="PMPM by Month")
|
|
return (pmpm,)
|
|
|
|
|
|
@app.cell
|
|
def _():
|
|
import marimo as mo
|
|
|
|
return (mo,)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app.run()
|