{"id":50454045,"url":"https://github.com/mizcausevic-dev/patient-consent-audit-stream","last_synced_at":"2026-06-01T01:05:35.883Z","repository":{"id":360293283,"uuid":"1249460287","full_name":"mizcausevic-dev/patient-consent-audit-stream","owner":"mizcausevic-dev","description":"Digital Health operator surface for consent state, audit streams, and revocation-safe escalation.","archived":false,"fork":false,"pushed_at":"2026-05-25T19:28:25.000Z","size":880,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-25T21:25:40.382Z","etag":null,"topics":["audit-trail","consent-management","digital-health","medtech","privacy-operations","typescript"],"latest_commit_sha":null,"homepage":"https://kineticgain.com/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mizcausevic-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-25T18:14:37.000Z","updated_at":"2026-05-25T19:26:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mizcausevic-dev/patient-consent-audit-stream","commit_stats":null,"previous_names":["mizcausevic-dev/patient-consent-audit-stream"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mizcausevic-dev/patient-consent-audit-stream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fpatient-consent-audit-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fpatient-consent-audit-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fpatient-consent-audit-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fpatient-consent-audit-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mizcausevic-dev","download_url":"https://codeload.github.com/mizcausevic-dev/patient-consent-audit-stream/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fpatient-consent-audit-stream/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33755379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audit-trail","consent-management","digital-health","medtech","privacy-operations","typescript"],"created_at":"2026-06-01T01:05:35.777Z","updated_at":"2026-06-01T01:05:35.869Z","avatar_url":"https://github.com/mizcausevic-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Patient Consent Audit Stream\n\n[![CI](https://github.com/mizcausevic-dev/patient-consent-audit-stream/actions/workflows/ci.yml/badge.svg)](https://github.com/mizcausevic-dev/patient-consent-audit-stream/actions/workflows/ci.yml)\n[![License: AGPL v3](https://img.shields.io/badge/License-AGPL_v3-blue.svg)](./LICENSE)\n[![Dependabot](https://img.shields.io/badge/dependabot-enabled-025E8C?logo=dependabot\u0026logoColor=white)](./.github/dependabot.yml)\n[![Deploy](https://github.com/mizcausevic-dev/patient-consent-audit-stream/actions/workflows/pages.yml/badge.svg)](https://github.com/mizcausevic-dev/patient-consent-audit-stream/actions/workflows/pages.yml)\n\nTypeScript control plane for patient-consent intake, policy version tracking, audit-safe event streams, and revocation-aware escalation across healthcare workflows.\n\n## Why this exists\n\n- Consent programs break when policy versions, capture channels, and downstream usage evidence drift out of sync.\n- Audit teams need to know more than whether a checkbox exists; they need proof of when consent was captured, changed, or revoked.\n- Revocation events create risk when downstream teams keep acting on stale consent state.\n- Digital health buyers care whether consent workflows are inspectable and recoverable under audit, not whether the product claims \"trust\" in abstract terms.\n\n## Why this matters (KG Embedded tie-back)\n\nThis repo demonstrates the audit-stream primitive for Digital Health / MedTech buyers: consent packets tied to policy versions, revocation windows, audit blockers, and operator-safe escalation paths. A B2B SaaS buyer would care because consent state and downstream usage evidence often need to surface inside customer-facing tools without exposing raw PHI systems or unsafe admin write paths. Kinetic Gain Embedded extends this into security-first in-product analytics for consent-aware, policy-aware, and audit-aware reporting across patient and care workflows, see [kineticgain.com/embedded](https://kineticgain.com/embedded).\n\n## Routes\n\n- `/`\n- `/consent-lane`\n- `/audit-stream`\n- `/revocation-posture`\n- `/verification`\n- `/docs`\n\n## API\n\n- `/api/dashboard/summary`\n- `/api/consent-lane`\n- `/api/audit-stream`\n- `/api/revocation-posture`\n- `/api/verification`\n- `/api/sample`\n\n## Screenshots\n\n![Overview](./screenshots/01-overview-proof.png)\n![Detail view 1](./screenshots/02-consent-lane-proof.png)\n![Detail view 2](./screenshots/03-audit-stream-proof.png)\n![Detail view 3](./screenshots/04-revocation-posture-proof.png)\n\n## Local Development\n\n```powershell\ncd patient-consent-audit-stream\nnpm install\nnpm run dev\n```\n\nOpen:\n- [http://127.0.0.1:5450/](http://127.0.0.1:5450/)\n- [http://127.0.0.1:5450/consent-lane](http://127.0.0.1:5450/consent-lane)\n- [http://127.0.0.1:5450/audit-stream](http://127.0.0.1:5450/audit-stream)\n- [http://127.0.0.1:5450/revocation-posture](http://127.0.0.1:5450/revocation-posture)\n- [http://127.0.0.1:5450/verification](http://127.0.0.1:5450/verification)\n\n## Validation\n\n- `npm run build`\n- `npm run test`\n- `npm run demo`\n- `npm run smoke`\n- `npm run render:assets`\n\n## Production status\n\n\u003c!-- Maintained by Claude Code (Platform/SRE lane) after v1.0-prod hardening. --\u003e\n\n| Aspect | Status |\n|--------|--------|\n| CI | Node 20 + 22 matrix — lint · typecheck · coverage · build · demo · smoke · `npm audit` ([workflow](./.github/workflows/ci.yml)) |\n| Test coverage | 100% statements on `src/services/` (gate: ≥ 60%) |\n| License | [AGPL-3.0-or-later](./LICENSE) |\n| Dependencies | Dependabot weekly (npm + GitHub Actions); `npm audit --audit-level=high` in CI |\n| Security | [SECURITY.md](./SECURITY.md) — HIPAA-readiness scaffolding; 0 known high/critical advisories at v1.0-prod |\n| HIPAA posture | Synthetic sample data only (no PHI). Production use requires a BAA, formal HIPAA review, and qualified medical-data infrastructure — see [SECURITY.md](./SECURITY.md). Do not deploy as-is. |\n| Deploy | Static prerender → **https://consent.kineticgain.com/** (GitHub Pages, [pages workflow](./.github/workflows/pages.yml)) |\n\n## Docs\n\n- [Architecture](./docs/architecture.md)\n- [Origin](./docs/ORIGIN.md)\n- [Kinetic Gain Embedded tie-back](./docs/KINETIC_GAIN_EMBEDDED.md)\n- [Changelog](./CHANGELOG.md)\n\n## Part of the Kinetic Gain Suite\n\nOperator surface in the [Kinetic Gain Suite](https://suite.kineticgain.com/) — a portfolio of buyer-readable control planes spanning security posture, compliance evidence, data-platform governance, FinOps, and operator workflows. See the suite index for related surfaces. Apex: [kineticgain.com](https://kineticgain.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizcausevic-dev%2Fpatient-consent-audit-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmizcausevic-dev%2Fpatient-consent-audit-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizcausevic-dev%2Fpatient-consent-audit-stream/lists"}