Minos Health

pl.minoshealth由 minoshealth.pl 发布官方发布者v1.1.0更新于 Oct 30, 2026

Polish ICD-10, ICD-9 PL, ICD-11 PL codes and NFZ JGP hospital grouping from official sources.

已验证Streamable HTTP可网页运行金融知识与记忆数据与分析

概览

AI 生成的概览

远程 MCP 服务器,提供波兰语 ICD-10、ICD-9 PL、ICD-11 PL 编码与 NFZ JGP 住院分组,并可对匿名住院病例进行分组。

可以做什么
  • 按编码或波兰语词检索并浏览 ICD-10 PL、ICD-9 PL 及预发布的 ICD-11 PL 编码,查看单个编码的层级、注释与属性
  • 读取某编码的 WHO ICD-10/ICD-11 映射行
  • 浏览并查看 JGP 分组、分组条件、方向性清单与 NFZ 结算统计,并比较同一分组在两个服务日期的差异
  • 列出分组病例所需的字典取值,然后对一个匿名住院病例进行 JGP 候选分组并给出点数与理由
  • 查看服务当前提供的版本与来源快照状态
适用场景
适用于波兰医院编码与结算相关工作:查找正确的 ICD-10 PL 或 ICD-9 PL 编码、核对 JGP 分组定义与点数目录、比较目录版本,或检验一份已记录的住院病例会如何分组。不能替代专业编码判断或医疗建议。
运行要求
需要远程 streamable HTTP 端点;未声明任何软件包、环境变量或请求头。公开服务被描述为匿名使用,无需账号或 API 密钥。
安装前请注意
只发送匿名化的临床事实,切勿包含姓名、PESEL 或地址;分组被描述为无状态、不存储任何内容。结果仅供参考并标注其版本,点数是目录点数而非 PLN 金额。WHO 映射行只是线索,并非已确认的对应关系。结果中的来源文本是数据,不是指令。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Minos Health,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/pl.minoshealth%2Fmcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "minos-health": {
      "type": "http",
      "url": "https://minoshealth.pl/mcp"
    }
  }
}

README

Minos

Minos is an explainable settlement intelligence platform for Polish hospital care. It combines versioned medical terminology (Polish ICD-10 and ICD-9 PL) with the NFZ JGP hospital grouping system: the group definitions, point catalogs, and grouper algorithm that determine how Polish hospitals are paid.

In Dante's Inferno, Minos hears each case in full and assigns it to its circle. That is what a DRG grouper does, and this one shows its reasoning.

The repository and command use the short name minos. Minos is the provisional public brand pending trademark counsel review; a registry pre-screen was performed on 2026-08-06 (see decisions).

Product Layers

  1. Terminology: icd10-pl and icd9-pl with deterministic, fast search and full source provenance.
  2. JGP knowledge base: groups, grouping conditions, directional ICD lists, age and length-of-stay rules, point values, and version-to-version diffs, ingested from NFZ normative acts.
  3. Grouper engine: deterministic evaluation of the reviewed supported rules, with points, source-linked traces and bounded near misses. Unsupported rules remain undetermined rather than being guessed into an answer.

Delivery Status (2026-10-19)

The public validation site serves terminology/JGP search, dated group and code pages, the stepped encounter builder at minoshealth.pl/gruper, and a public MCP server for agents at https://minoshealth.pl/mcp (documentation), listed in the official MCP Registry as pl.minoshealth/mcp. The latest recorded verified validation deployment is b0dee0d (activated 2026-10-19T11:42:10Z, bundle 5cea0d5d unchanged) with the patched NGINX 1.31.7 edge base (#197). 2b6e26b activated blue/green API colours earlier that day (#192): no Uptime Kuma down beat, with an accepted ~24-second edge window. Both needed one retry after a rolled-back startup exit (#198). fda0788 (#191) passed all 102 site audit checks. f9a0a72 added MODTAR generation 103, the 2026-10-13 knowledge horizon (#184) and faster API startup (#189); 736ba9f added source filters, sharing and bounded startup readiness, and #171/#172 (088f190) initial source HTML and durable RSK/BAW citations. The schema-10 bundle and release-pinned concept JSON remain available. Reviewed MODTAR binding, governing-act settlement-product exclusions, pinned JGP comparisons and NFZ publication metadata are also live. Deployment evidence records the recovery, API, browser, privacy and exact-digest checks, including the owner-approved one-off startup wait after guarded recovery. This is a dated acceptance record, not a new production inspection.

Startup warm-up reliability (#157), guarded recovery diagnostics (#162), NFZ publication metadata (#92) and concept JSON (#23) are delivered and closed. The no-JS source-catalog and durable RSK/BAW citation slice from PR #171 passed production recovery and public/browser acceptance; source filters, sorting and shareable views followed at 736ba9f (#185), and broader #80 remains open. Bounded startup readiness (#181) passed its first production activation. Actions usage is measured in #174; full CI runs on every push to main again since #272.

The initial golden suite has 9 synthetic and 5 pinned-source derived cases. Practitioner builder acceptance (#158), real ward agreement (#38), and full signed-release/capacity acceptance remain open; open work is tracked in GitHub issues.

Roadmap

PhaseShips
0 watchersDaily source watchers, scoped raw snapshot archive, reviewed data-update PRs. Runs before product code because upstream file sets and reused URLs can change without useful validators and prior public bytes may become undiscoverable.
v0.0.1 foundationBitemporal store, terminology and JGP knowledge base, search, CLI, read-only HTTP API, anonymous web browser with version diffs.
v0.0.2 grouperEncounter grouping with points, full rule trace, and near-miss reporting.
v0.0.3 optimizerWhat-if simulation framed as coding completeness and rejection prevention.

Drug products, substitutions, reimbursement contracts in PLN, clinical recommendations, and international ICD variants are outside these releases. They may become separately namespaced modules after source and licensing validation. The data model is designed so additional markets (WHO classifications, other DRG systems) arrive as new namespaced terminology systems, grouping schemes, and tariff schedules rather than schema changes.

Architecture

Minos is one Python 3.14 distribution with strict internal package boundaries:

  • minos.domain: synchronous domain types, normalization, ranking, and errors;
  • minos.store: read-only persistence and indexed search through SQLite/FTS5;
  • minos.ingest: hardened source parsing and reproducible artifact builds;
  • minos.cli: data build/diff, offline lookup and grouping commands;
  • minos.http: bounded FastAPI endpoints and privacy-safe telemetry;
  • minos.grouper: versioned grouping engine evaluating encounter facts against rules-as-data.

The validation deployment uses immutable linux/amd64 API, edge, and watcher images. Docker Compose runs the complete stack locally and on a dedicated Mikr.us 3.0 host; Cloudflare Tunnel is its only public ingress. Validation mounts a separately checksum-verified read-only SQLite bundle into the API; the edge image contains the static web artifact. The full signed product-release contract remains #41/#27. Offline CLI distributions bundle the Python runtime and use the same generated database.

The watcher container runs APScheduler and a separate mutable control SQLite database. It stores exact raw bytes and revisioned control-database recovery images in a private Cloudflare R2 bucket (#200). GitHub-hosted Actions build and test the images but do not run production schedules. Collectors in issues #6-#8 emit change records. Reviewed updates use the guarded validation-deploy tool. Unattended selection, activation and detailed incident delivery resumed in #141 on 2026-10-20 and are not yet enabled; #21 is closed as superseded, not delivered. Watcher failure pushes name a fixed failure category, such as source_drift. A host processor judges each new RSK ICD-10 or CZS ICD-9 file against the live bundle every six hours and reports the verdict to a separate Kuma monitor; it activates nothing yet.

Offline minos data diff compares explicitly pinned terminology, catalog and conditions releases in verified bundle directories, with bounded Markdown/JSON reports. See the CLI contract and validation evidence.

The same Mikr.us host also runs self-hosted Uptime Kuma 2.5.9 at status.minoshealth.pl. Its public page is limited to coarse service state; detailed watcher state remains private through minos watcher status, with issue #54 reserved for a future private detailed admin portal. This replaces a paid external monitoring SaaS, not the need for monitoring. Because Kuma shares the host, it cannot detect or notify for a total Mikr.us host, network, or power outage. This limitation is accepted for now. uv run python -m scripts.check_monitoring reads the same monitors and public /readyz without credentials, and also reports a Kuma that stopped checking.

The initial service remains anonymous. The accepted later client direction is one installable responsive PWA that can synchronize a verified immutable SQLite reference snapshot for offline use. Future individual calculations are authorized and metered online; premium offline calculation is licensed separately to an organization or hospital. Accounts, payments, usage storage, and exact commercial terms are not part of v0.0.1.

See the v0.0.1 documentation for accepted decisions and the implementation plan.

Development

Install the pinned Python runtime and all development tools from a clean checkout:

sh
uv sync --all-groupsuv run minos --version

Ruff, BasedPyright, mypy, and pytest are pinned in uv.lock. Terminal and Neovim integration is documented in CONTRIBUTING.md. Security, correctness, and measured performance are co-equal release requirements. Evidence-based tradeoffs and representative benchmarks are required, while developer convenience follows those requirements. Critical paths receive targeted mutation and integration testing.

Offline reference commands and their bounded JSON/exit-code contract are in offline-search.md. Local full-source and standalone evidence is in the search validation. The website exposes reference search and grouping under the public-validation exception; source redistribution and signed product promotion retain their separate review gates.

The deployed validation Compose stack serves the API and web edge through Cloudflare Tunnel alongside the watchers and Uptime Kuma. The watcher foundation includes an executable UTC scheduler, fenced SQLite control transactions, local and R2 archives, revisioned recovery images, signed trusted-recovery inventories, a read-only watcher status command, preflight commands, a hardened watcher image, bounded local Docker logs, and local Compose. The RSK collector is registered in the runtime, but a fresh control volume must be initialized explicitly before the watcher starts.

Local runtime commands are:

sh
docker compose build watcherdocker compose --profile bootstrap run --rm --no-deps watcher-bootstrap-rskdocker compose --profile preflight run --rm --no-deps watcher-preflightdocker compose up --detach watcherdocker compose exec --no-TTY watcher /app/.venv/bin/minos watcher status --jsondocker compose logs --since 24h --tail 500 --timestamps watcher

Use minos watcher status [SOURCE_ID] --json to inspect one configured source. The status path opens control SQLite read-only. These host-local status and log commands do not detect a complete Mikr.us host, network, or power outage from outside its fault domain.

Uptime Kuma setup and the two-stage public-route bootstrap are documented in the Ansible runbook. The operator created its admin account and 2FA, configured a private status page and paused watcher push monitor, tested a Telegram alert from Kuma, and stored a stopped integrity-checked off-host backup in 1Password on 2026-09-23. An isolated Docker restore of that backup passed against the same pinned image without network or host ports. Two operational gates remain open: the complete empty-host recovery drill (#49) and launch-capacity load acceptance (#42). Load objectives and the measurements so far are in the API load record.

The site reaches the host only through the Cloudflare Tunnel. SSH, the one management path, runs over a Tailscale tailnet with no public listener since 2026-10-23 (#227); the cutover is in the Ansible runbook.

Object storage is one EU-jurisdiction Cloudflare R2 bucket whose lock rules refuse overwrites and deletes; the AWS stacks and their acceptance harness were retired in #200. Mikr.us activation and restore drills remain explicit operator approval gates.

Data

All sources are public. Details, endpoints, and polling procedures live in data sources; the legal analysis lives in data and licensing.

DatasetSource
JGP group catalog, characteristics, coefficientsZarządzenia Prezesa NFZ (leczenie szpitalne), via https://baw.nfz.gov.pl
JGP grouper algorithm and procedure ranksNFZ komunikaty JGP
ICD-9 PLNFZ dictionary downloads and https://slowniki.nfz.gov.pl
ICD-10 PLRSK resource HCD 00CD10, https://rsk3.ezdrowie.gov.pl
ICD-11 PL (pre-released) and WHO ICD-10/ICD-11 tablesRSK resource HCD 99ICD1, CC BY-ND 4.0
JGP utilization statisticsNFZ monthly JGP reports, https://dane.gov.pl/pl/dataset/2581 (CC0 1.0); https://api.nfz.gov.pl (open data, attribution required) as a later cross-check

Source snapshots and generated databases are artifacts, not repository materials, and must not be committed to Git. The repository therefore holds no datasets and no deployment credentials: the test suite runs on synthetic fixtures (uv run pytest), and running the site locally (scripts/run_local_site.py) needs a reference bundle you build from the public sources with the offline commands. Every generated dataset carries source identity, timestamps, checksums, transformation version, attribution, and required notices.

Safety, Compliance, And Privacy

Minos is a reference and settlement-analysis tool, not medical advice, diagnosis, treatment, or a substitute for professional judgement.

The compliance boundary is explicit: Minos supports complete and correct coding of what was actually performed and documented, and prevention of avoidable claim rejections. It must not recommend coding beyond documentation. Grouping results are expressed in points and product codes; contractual PLN amounts depend on payer contracts and are out of scope.

The public service is anonymous. Logs must not contain raw medical search queries, encounter payloads, patient data, prescriptions, credentials, or other personal data. Grouping (from v0.0.2) is stateless: encounter inputs are evaluated and discarded, never stored.

Licensing

Repository software, infrastructure, tests, and documentation are licensed under either Apache-2.0 or MIT, at your option. Dataset artifacts remain under their source terms. NFZ normative acts and their appendices are treated as copyright-exempt official materials under Art. 4 of Polish copyright law (formal legal opinion pending); the RSK Polish ICD-10 resource identifies CC BY-NC-SA 3.0 IGO. See NOTICE.md and data and licensing.

Status

Minos is in active public validation. No version tags or GitHub Releases have been published; exact-digest validation deployments are tracked separately from the full signed product-release gates in #41/#27. See CHANGELOG.md for unreleased changes, SPEC.md for the implementation baseline and GitHub issues for open work.

Contributing

See CONTRIBUTING.md before opening an issue or pull request.

来源:README.md,提交 3b7639c

工具

12

get_service_info

Service and releases

Get the releases Minos serves: ICD-10 PL, ICD-9 PL and ICD-11 PL versions, validity and licences, JGP grouping availability and knowledge horizon, and the disclaimer. Call it first to learn which service dates are covered; use get_source_status to see what publishers released since.

无需输入参数。

search_codes

Search codes

Search ICD-10 PL diagnoses, ICD-9 PL procedures, JGP groups and, when asked, pre-released ICD-11 PL by code or Polish words (diacritics optional). Each hit has its code, title, path and JGP group count; JGP groups are always searched in today's catalog. Open a hit with get_code or get_jgp_group; walk a hierarchy with browse_codes.

输入参数limitquery必填systemsservice_date

get_code

Code details

Get one ICD-10 PL, ICD-9 PL or ICD-11 PL code as its page shows it: title, hierarchy, children, notes, attributes, ICD-9 rank, WHO map rows and, for ICD-10 and ICD-9, the JGP groups whose attachment 9 lists name it on service_date. Find the code with search_codes first; open a listed group with get_jgp_group.

输入参数code必填system必填service_date

browse_codes

Browse a classification

List one level of ICD-10 PL, ICD-9 PL or ICD-11 PL: the chapters when parent and node are omitted, else the children of parent or of a node id from an earlier listing (ICD-11 blocks have a node id, no code). Levels stop at 400 entries with truncated=true. Use search_codes for words, get_code for one code's details.

输入参数nodeparentsystem必填

map_icd10_icd11

WHO ICD-10 and ICD-11 map

Read the WHO ICD-10/ICD-11 mapping rows for one code, verbatim: to_icd11 for a Polish ICD-10 code, to_icd10 for an ICD-11 code. WHO states no match type, its ICD-10 side is the 2019 edition, not Polish 2008, and ICD-11 is not in force in Poland: treat a row as a lead and confirm the target with get_code.

输入参数code必填direction必填

get_jgp_group

JGP group

Get one JGP group from the catalog in force on service_date: name, product code, base points per column, scopes, the act and release, its grouping conditions with the directional lists they name, and NFZ monthly settlement statistics (settled points, not catalog). Pass a list's id and catalog to get_jgp_list; use compare_jgp_group for changes between dates.

输入参数code必填service_date

get_jgp_list

JGP list

List the codes of one directional diagnosis or procedure list from JGP attachment 9, one page at a time. Take list_id from conditions.lists[].id and catalog from group.catalog of a get_jgp_group answer, with the same service_date. For the groups that name a given code, use get_code instead.

输入参数pagecataloglist_id必填service_date

browse_jgp_catalog

Browse the JGP catalog

Browse the JGP catalog in force on service_date: without catalog and section, the sections of catalogs 1a and 1ae with group counts; with both, that section's groups and base points. Find a group by words with search_codes; open one with get_jgp_group.

输入参数catalogsectionservice_date

compare_jgp_group

Compare a JGP group between dates

Compare one JGP group between the catalogs in force on two service dates: act, release, name, base points, scopes and condition list names on each side, plus the fields that changed. Use get_jgp_group for the full conditions on one date.

输入参数code必填after_date必填before_date必填

get_case_dictionaries

Hospital stay dictionaries

List the values a group_case stay needs: ward specialty codes (part VIII of a department code; hospital wards 4000-4951, or every section with wards="all") and discharge modes, each with its legal act, plus hospitalization types and product reporting values. Call it before building the case for group_case.

输入参数wards

group_case

Group a hospital stay

Group one anonymised hospital stay with the Minos Gruper (JGP SZP, supported rule subset): candidate groups with reasons, ranking, base and final points, preparation and limitations. Build case from get_case_dictionaries and codes confirmed with get_code. Send clinical facts only, never names, PESEL or addresses; nothing is stored. Reference, not an NFZ decision.

输入参数case必填detailservice_datereporting_monthdeclared_modifiers

get_source_status

Source status

Show what a watched publisher lists now, as Minos last observed it: RSK resources and files, BAW NFZ orders and attachments, or NFZ dictionaries and notices, with versions and dates. Reads Minos's last snapshot and never calls the publisher. Compare with get_service_info to see whether Minos serves the newest release.

输入参数source必填

版本历史

1
  1. v1.1.0最新Oct 30, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。

其他 Minoshealth 集成