← Atenvia planning · Baseline findings
Atenvia technical and product baseline
Version: 2026-11-12-atenvia-baseline-v1
Review date: 12 November 2026. Status: Initial desk/source baseline completed; operational, stakeholder and environment validation remain open.
Scope: Existing assets, documentation, bounded local build checks and product reconciliation. No application code changed, vendor request sent, API integration executed or infrastructure applied.
What this establishes
We have a substantial clickable clinical prototype and useful work on other branches, but no verified operational Atenvia system. The useful starting point is to preserve the presentation and integration reference assets while agreeing the real workflow, patient/data ownership and first useful information slice.
Five findings shape the next discovery sessions:
- The current source is a mock-data React/Vite client, with no evidenced backend/authentication boundary in its entry path. Clinical notes and source-report handling are not durable workflows.
- Work exists beyond main:
aygentic-devcontains prisma CLOUD transforms/ETL, fixtures, API notes and admin components. These need review and reconciliation, not blanket dismissal or an automatic merge. - The normal build fails on a Figma-specific asset. The existing local preview configuration builds by substituting assets. This is a preview result, not evidence of a portable release.
- Technical proposals conflict: older material suggests shared core-api/Neon/R2; a separate unapplied draft specifies AWS/Aurora/S3. Neither is established as the approved or deployed Atenvia architecture.
- The current product direction is a clinic workspace, whereas older grant and referral proposals centre scheduling. The governing IMDA requirements, decision authority, data definitions and first useful workflow still need confirmation.
1. Source and environment baseline
The review fetched origin refs without merging or editing the prototype. Local HEAD is f166fe694bb555fe0aa257b2a6d545f83a3890dc (28 Sep tooling/lockfile change); fetched origin/main is a0aa3835eaac7c6fd7ff6d4863e993e37ad8fa7d (3 Mar Figma Make update). HEAD is one commit ahead of origin/main. Existing dirty pnpm-workspace settings, installed node_modules and the untracked local-preview config were preserved.
| Ref / artifact | What was found | Evidence limit |
|---|---|---|
| HEAD / main working checkout | 168 tracked files; App.tsx 5,719 lines; mockData.ts 3,189 lines; pnpm lockfile now exists | Counts describe the inspected revision, not maintainability scores or production status. |
origin/aygentic-dev at 11500d3 |
29 commits ahead of origin/main; integration fixtures/transforms/ETL, admin source, API/security docs and correctly located workflow definition | Not merged into origin/main; no authenticated CI, deployment or integration result verified. |
origin/mod-testing at 2bd3db0 |
PDF/report-related branch; divergence 4 commits on main side, 32 on branch side | Candidate report work; no decision to merge or full branch validation performed. |
origin/mod-testing-pdfmake at 5239874 |
Alternative PDF pipeline; divergence 4/47 | Separate candidate, not an assumed implementation base. |
| delivery/atenvia-infra | AWS Singapore architecture-as-code draft, including API/worker, Aurora, S3, WAF and queues | README records validate/not applied; no cloud state checked or new validation run. |
Git fetch succeeded. GitHub repository metadata, workflow and deployment API reads returned HTTP 404 with the active CLI/connector access. This is an access/evidence limitation, not proof that the repository or deployment is absent. Branch and build receipts are retained under outputs/20261112-atenvia-baseline/.
2. Capability inventory
All source paths below are relative to repos/atenvia-prototype unless stated otherwise. Source-only means inspected code, not verified runtime or acceptance.
| ID | Area | Evidence state | Finding and implication |
|---|---|---|---|
| T-01 | Dashboard, search and patient views | Source implementation over mock data | App.tsx imports FILTERED_SEARCH_DATABASE; PatientDetail synthesises missing patient/report data. Useful workflow/UI reference, not connected patient records. Source: repos/atenvia-prototype/src/app/App.tsx:40; src/app/components/patient/PatientDetail.tsx:91. |
| T-02 | Identity and authorization | Not evidenced in reviewed default-branch application | src/main.tsx mounts App directly; current App renders the dashboard without an authentication boundary. getCurrentUser uses a fixed mock USER_ID. The aygentic branch has a demo gate and unmounted admin UI; neither proves server-side clinic isolation. Source: src/main.tsx:21; src/app/App.tsx:5277; src/data/mockData.ts:87; origin/aygentic-dev src/app/App.tsx:5061,5298,5398. |
| T-03 | Notes and persistence | Local UI state only in inspected path | ClinicalNotesTab maintains React state. PatientDetail.handleNotesUpdate is an empty callback. Recent-search history does use localStorage, so the old claim that nothing persists is too broad; durable patient/audit persistence is not evidenced. Source: src/app/components/patient/tabs/ClinicalNotesTab.tsx:55,140; src/app/components/patient/PatientDetail.tsx:270; src/app/App.tsx:523,708. |
| T-04 | Reports and attachments | Client PDF generation plus placeholder attachment handling | PDF generator creates browser Blobs from React templates. The inspected attachment download assigns href=“#”; it is not an authorized source-vendor report download. No server publication/version/revocation path was found in this checkout. Source: src/app/components/patient/pdf/pdfGenerator.ts:28; src/app/components/patient/PatientDetail.tsx:278; src/app/components/patient/AttachedFilesSection.tsx:320. |
| T-05 | Clinical dashboard metrics | Illustrative computations, not an accepted metric contract | KPI helper averages mock fields, uses a fixed February 2026 comparison date, substitutes zero for missing AHI and assigns canned change values. Its label does not establish a longitudinal 30-day calculation or a valid business baseline. Source: src/app/utils/kpiCalculations.ts:10-63; src/app/App.tsx:483. |
| T-06 | prisma CLOUD adapter assets | Source-only reuse candidate on aygentic-dev | Types, transforms, three fixture files, ETL and a test-plan document exist. ETL writes local JSON/cursors, not an application database. /Sync/statistics and /Sync/alarms assumptions need reconciliation with the new guide; no live API was executed. Source: origin/aygentic-dev scripts/prismacloud/dataHandler.ts; etl.ts:144,167,262; docs/testing/test-plans/prismacloud-api-test-plan.md. |
| T-07 | Build and quality gates | Standard build failed; asset-stub preview build passed | Standard Vite build fails resolving figma:asset. Existing local-preview config replaces those assets and builds successfully. No tracked test files or tsconfig were located at HEAD; tsc/eslint/vitest/playwright binaries are absent from the existing install. Declared scripts are not passed checks. Source: outputs/20261112-atenvia-baseline/build-results.json; source-inventory.json. |
| T-08 | CI and deployment | Source proposals; provider state unverified | HEAD/default tree keeps CI under workflows/, outside GitHub discovery; aygentic-dev has .github/workflows. Firebase hosting config and a separate AWS/Aurora infrastructure draft exist. The infrastructure README says not applied. GitHub metadata/CI/deployment reads returned 404 under available integrations. Source: workflows/ci-cd.yml:1; firebase.json; delivery/atenvia-infra/README.md:5. |
| T-09 | Analytics and clinical-data boundary | Source-level review needed before real data | Current App injects Google Analytics scripts on mount. This review did not establish transmitted payloads, consent enforcement or masking. Patient fallback, browser search storage and third-party telemetry need review before any real-data use. Source: src/app/App.tsx:5392; src/app/components/patient/PatientDetail.tsx:99. |
3. System and data-flow baseline
Inspected prototype path: mockData and synthetic generators → React dashboard/patient views → browser-generated PDF / local UI state. Search-history data additionally enters browser localStorage. Source code requests Google Analytics script loading; actual network payloads were not inspected.
Reported operational path, requiring observation: Zoho CRM/Desk holds onboarding, follow-up and patient/clinic context; vendor platforms hold diagnostic or PAP information; TAS currently handles reports manually. The Pam meeting summary supports this description, not a verified export or live transaction.
Proposed future path, not implemented evidence: authorized source ingestion/manual publication → identity and clinic/patient matching → application data/report store → scoped clinician workspace, downloads and audit. The technology choice, field authority and permissions remain decisions.
Draft data contract to validate
| Domain | Starting hypothesis | What must be settled |
|---|---|---|
| Patient and clinic identity | Zoho supplies confirmed-patient onboarding and referral/clinic context | Actual module/API names, stable record IDs, duplicates, record eligibility, corrections and clinic assignment evidence. Do not join by name or assume referral text is reliable. |
| Membership and access | Clinic/location membership plus explicit patient scope | Who provisions/revokes access, multi-clinic users, patient assignment, report access, correction and audit rules. Vendor permission and Atenvia authorization are separate. |
| Device assignment | Vendor device serial plus patient/vendor IDs | Assignment intervals, returned/reassigned devices and provenance; current serial ownership alone may not identify historical therapy days. |
| Diagnostic report | Source PDF plus minimal study metadata | Source study/report ID, type, date, version, publication/reviewer and authorized recipients. Keep diagnostic results distinct from therapy monitoring. |
| PAP observations | Vendor daily therapy data with units and source | Therapy-day/time-zone semantics, missing versus zero usage, late corrections, deduplication and source-device limitations. |
| Notes and support | Existing Zoho/Desk records remain the operational reference until decided | Whether Atenvia displays any notes, who corrects them and which system is authoritative. Do not create a second note authority by inference. |
The legacy prisma transform preserves selected nulls, maps device serials and converts usage minutes to hours. Its calc30DayComplianceRate divides compliant rows by all supplied rows; it does not itself enforce a 30-day window or deduplicate days. Its date parsing assumes a T separator. Treat these as review questions against the current API contract and clinical definition, not approved formulas or tested defects. The ETL’s daily output files are not a correction-safe longitudinal database.
4. Product baseline and scope reconciliation
Working product brief
Problem hypothesis: clinic teams and TAS need a reliable way to find patient status and source diagnostic/PAP information without repeated manual chasing across systems. This has been described in meetings; its frequency, cost and user priority still need direct observation.
Users: clinic clinicians/clinical staff and TAS operations/admin. Patients do not log in under the current proposed direction. Pam supplies operational context; Easmed must confirm the product owner, decision mandate and intended first clinic/user group.
Candidate outcome: an authorized clinic user can find the right patient’s useful source information/report and understand its date and provenance. This is a discovery hypothesis, not a signed V1 acceptance contract or approval to build.
| Topic | Current planning position | Contradiction / decision to resolve |
|---|---|---|
| Three-feature direction | Role-based access, useful analytics/reporting and source-report downloads are proposed in October notes | Obtain authorized scope and governing IMDA mapping; a polished dashboard is not acceptance evidence. |
| Scheduling | Deferred during Zoho Bookings migration in the 27 Oct discovery | Historical grant/referral documents centre scheduling. Confirm the contractual obligation rather than silently drop or restore it. |
| Clinical communication | 27 Oct describes shared notes; 29 Oct planning defers doctor–TAS communication | Confirm boundary in the product brief; existing prototype notes are not a reason to include the feature. |
| First vendor | 29 Oct notes identify Löwenstein minimum; API docs and a demo route are now available | Confirm required metrics/reports, access model and whether this satisfies the actual required outcome. |
| Adoption and benefit | 70% clinic adoption is a recorded aspiration | Define denominator, period, active-use event and population. Do not treat it as current adoption or a pilot threshold. |
| Delivery model | Shane/Raena plan only; 8 days/month each after handover reserve, limited Kedar involvement | Easmed secures build resources in parallel. No MVP or delivery date is committed by this baseline. |
Operational measurement plan — no baseline values yet
| Measure | Proposed definition to agree | Evidence to collect |
|---|---|---|
| Report turnaround | Elapsed time from a recorded clinic request to the approved report being available | TAS/clinic timestamps for representative completed cases; distinguish work time from waiting. |
| Manual effort | Staff handling minutes and number of handoffs/re-entry steps per case | Observe actual cases with operations; record case type and exceptions. |
| Retrieval success | Whether the intended authorized user can locate the correct source report and period | Moderated workflow observation; note help/chasing required. |
| Matching quality | Cases that need manual patient/clinic/device correction | Permitted sampled records with reasons and resolution; agree denominator first. |
| Active clinic workflow use | Eligible participating clinics completing an agreed meaningful workflow in a defined period | Agree cohort, event and measurement period before counting. |
The roughly 239 monthly trials / 5,817 follow-up deals in Pam’s walkthrough are historical meeting observations, not newly measured volumes or a capacity forecast. No representative case timings, live exports or user interviews were completed in this desk review.
5. Risks, decisions and next validation
| ID | Decision or gap | Recommended follow-up / proposed lead | Why it matters |
|---|---|---|---|
| B-01 | Governing IMDA date, deliverables and variations absent from reviewed local pack | Easmed sponsor supplies award/approved scope; Shane/Raena map obligations | Planning output cannot substitute for a working system if one is required. |
| B-02 | Which existing branch/assets are the supported starting point? | Shane + existing technical owner review branch provenance, reusable UI/PDF/adapter work and deployment identity | Avoid duplicate work or merging unvalidated legacy assumptions. |
| B-03 | Actual source schemas, IDs and patient/clinic matching | Pam/Zoho owner supplies permitted schema and synthetic examples; Shane maps authority | Governs permission safety and usefulness of every integration. |
| B-04 | Architecture authority: shared services/Neon/R2 versus standalone AWS/Aurora/S3 | Easmed technical decision owner reviews options, ownership, costs and data handling | Existing drafts conflict; no platform selection is approved here. |
| B-05 | API documentation does not equal tenant rights | Easmed/vendor reps supply current interface specs and demo eligibility; Shane reconciles legacy scripts | No live integration estimate or success claim is justified yet. |
| B-06 | Product value and minimum reporting definitions remain unvalidated | Raena + Pam/clinic users observe a real workflow and agree metric meanings | Keeps product scope anchored to demonstrated needs. |
| B-07 | Privacy/clinical controls and operations ownership not accepted | Easmed appoints clinical/privacy/security reviewers and future technical operator | Before real-data use, review auth, isolation, audit, report provenance, telemetry, retention and recovery. |
Recommended next session: review this pack with the technical/data owners, select the first workflow/data questions and obtain source access. Use the proposed 27 Nov review to validate and extend this initial desk baseline; it is not being marked complete early as a stakeholder-approved milestone. Product workshops remain proposed for 30 Nov–11 Dec, with the later planning reviews unchanged.
6. Checks, limitations and acceptance evidence
| Check | Result on 12 Nov | Practical limit |
|---|---|---|
| Source and branch inventory | Completed; HEAD/default/three candidate branches identified; git fetch succeeded | No branch merged and no application code changed. |
| Standard local Vite build | Failed on unresolved figma:asset/... in PatientDetail |
Existing build portability issue recorded, not repaired. |
| Existing local-preview build | Passed in 24.49 seconds with asset stub; bundle-size warning | Uses installed dependencies and local stub; no clean installation, typecheck, automated test, clinical validation or release acceptance. |
| Test/config inspection | No tracked tests or tsconfig at HEAD; quality/test tools absent from current installed bins | Scripts and June plans do not establish test execution. aygentic-dev has additional tooling/source not validated in this run. |
| Runtime browser review | Not established: local HTTP preview returned 200, but the native browser remained on its new-tab content during navigation attempts | Do not claim the dashboard, notes or PDF was exercised in this run. |
| Provider state | GitHub metadata/CI/deployment reads returned 404 under available CLI/connector access | Remote CI/deployment and actual AWS/Firebase state remain unverified. |
| Vendor/API and operational use | Not performed | No tenant rights, API response, patient-safe workflow or measured business benefit established. |
Desk-review acceptance: AC-1 source/ref and capability inventory recorded; AC-2 current/reported/proposed flows and draft data contract separated; AC-3 product scope conflicts and measurement definitions recorded; AC-4 prioritized decisions with evidence limits recorded. These desk-review outputs are present. Stakeholder review, source-owner confirmation, environment access and any separately agreed technical validation remain pending. No delivery ticket is closed.
Sources and linked counterparts
- Current planning timeline and API specification/access register.
- Pam discovery, prisma CLOUD documentation review, product scope history, core-build historical proposal.
- Grant reconciliation (internal working reference; not published); Gabriel handover PRD, roadmap and security/risk templates under
intake/gabriel-handover-2026/Atenvia (HCP Portal)/. - 29 Oct planning meeting (separate access may be required) and 11 Nov scope discussion (separate access may be required); meeting evidence is the summaries read earlier in this session, not fresh interviews or verified transcripts.
- Evidence receipts:
outputs/20261112-atenvia-baseline/source-inventory.json,branch-inventory.json,capability-register.json,source-hashes.json,build-results.jsonand both build logs. - Portal baseline, Notion product home (separate access may be required), EAS-89 (separate access may be required), data-path discovery (separate access may be required), EAS-16 (separate access may be required).