← Atenvia planning · Baseline findings
Atenvia core build — what it takes
Initial desk baseline · 12 November 2026
Technical and product baseline pack, version 2026-11-12-atenvia-baseline-v1, records the source/branch inventory, bounded local build checks, current/reported/proposed data flows, product conflicts, measurement definitions and next validation needs. The desk review is available now; the proposed 27 November stakeholder/source-owner review remains open. No application code, live integration or infrastructure was changed. The planning schedule and scope remain as stated below.
Current discovery and planning scope · 11 November 2026
Version: 2026-11-12-atenvia-timeline-v4. The workshops, discovery and planning timeline reflects Shane’s direction to move the initial plan back one week. Timeline review is 24 November, product-definition review is 7 December and the initial planning review is 11 December. Plan against 8 Atenvia days/month each for Shane and Raena after reserving 15–20% of their 10-day allocations for the Snoraire handover. Kedar has limited involvement; stakeholder availability is assumed. The capacity-based recommendation adds a first planning baseline by 18 December and a planning/handover review by 15 January, with holiday allowance; this endpoint is proposed, not committed. Recommend one substantive external workshop per week, subject to bookings. Easmed should secure build resources during discovery. The exact IMDA requirements remain to be confirmed.
Our scope is workshopping, product discovery, technical discovery and planning. In parallel, we recommend that Easmed secure additional resources for building. This engagement includes no MVP implementation, connector development, deployment or pilot operation. The prior December–February delivery schedule is withdrawn; a future team must separately estimate and plan any build.
Earlier implementation proposals below are historical wherever they conflict with this scope. Current counterparts: Notion product home (separate access may be required), EAS-89 (separate access may be required) and EAS-16 (separate access may be required).
Technical baseline first · 12 November 2026
The current plan starts with technical discovery and an initial current-state baseline during 19–27 November, before broader product workshops during 30 November–11 December. Output: architecture/data map, existing-asset evidence/reuse inventory, API specification/access gaps and prioritised risks/questions. This is a timeboxed planning review, not an MVP build or comprehensive engineering audit. See the API specification/access register for public, login-protected and vendor-requested documentation. Later planning reviews and capacity assumptions remain as described in the current timeline.
prisma CLOUD API evidence · 12 November 2026
API discovery update, version 2026-11-12-prisma-api-discovery-v1: guide access verified and vendor-offered synthetic demo path recorded. Tenant/API access, data coverage and production rights remain unverified. Prepare the required registration details with Easmed; no request or build is authorized by this evidence update. Current planning scope and dates are unchanged.
Pam discovery · 27 October 2026
Version: 2026-10-27-atenvia-discovery-v1. Current discovery record and Granola source (separate access may be required). This later, 15:42 meeting supplies findings absent from the earlier review. Evidence is an AI summary, not a full transcript or validated implementation.
The proposed first version is a Singapore-only B2B clinic workspace with role-based login, analytics/reporting and downloadable source reports. Zoho owns inbound patient onboarding; only confirmed patients flow into Atenvia. Clinic/location access replaces the older doctor-only assumption, subject to an approved permission matrix. Manual report request and TAS PDF upload is a viable proposed path while vendor API cost/access remains unresolved.
Scheduling is deferred during the Zoho Bookings migration. Internal alerts target TAS, not doctors. Patient sharing, device recommendations, patient login and other markets are outside the proposed V1. PDF parsing and multi-report aggregation remain research, without approved formulas or extraction proof. Zoho’s inbound authority does not revoke the separate Atenvia application database or approve general write-back.
We need Gary’s V1 sign-off and grant mapping, named clinical/privacy reviewers, clinic/patient matching and note-ownership rules, PDF/data-model feasibility and an authorized view-only AirView access receipt for Jonas. The 70% private-clinic adoption aspiration needs a denominator and period. Reconcile “next week” with the earlier post-Airese staffing plan before assigning capacity.
The September referral/booking build and earlier scheduling, doctor-notification and individual-doctor access assumptions below are historical proposals wherever they conflict with this discovery. Earlier summaries’ missing-outcome statements describe their retrieval coverage at the time. No ticket closure, accepted replacement criteria, API success, patient-safe pilot or launch approval follows from these notes.
Historical records and earlier proposals
Status: Draft for Easmed review · 24 September 2026 · Author: Shane
Scope requested: four core parts (login, multi-source integration, report download, backend) plus two considerations (Zoho CRM, scheduling). Nurses schedule; doctors use analysis and reports.
Sources: Atenvia PRD (internal working reference; not published), referral-to-result spec, Airese AWS spec (internal working reference; not published), Zoho CRM screenshots (Feb 2026) and audit log (Nov 2025) in the Gabriel handover, risk register (internal working reference; not published) and remediation backlog (internal working reference; not published).
Size key: S = days, M = 1–3 weeks, L = 3–6 weeks, for one engineer. These are relative sizes for planning, not quotes.
1. Summary
- Backend and login can reuse what TAS already runs.
core-apiis already “the TAS platform login service” (AWS spec §1), and the planned AWS setup — Lambda inap-southeast-1, Neon Postgres, R2 object storage — fits Atenvia. Atenvia becomes a third client of that platform, not a new stack. - “Integration from different sources” is the part with the most uncertainty, and it’s not engineering. Device vendors need partner approval (R-17). The core should ship with manual upload plus Zoho, and add device clouds as access arrives.
- Zoho already holds most of what Atenvia needs — patients, referring doctors, device serials, AirView IDs, pipeline stage, AHI, trial follow-ups. Zoho is the main inbound source. Writes back to Zoho should be limited to status and a link.
- Scheduling fits naturally as the nurse workspace. Doctors refer and read results; nurses book, run the trial follow-ups and publish results. This changes one thing in the current spec: the doctor no longer picks the slot.
2. The four core parts
2.1 User login — M
| What it takes | Detail |
|---|---|
| Roles | Doctor (external, referring), Nurse (TAS operations), Admin (TAS). Doctors see only their own referred patients; nurses see all TAS patients; admins manage users. |
| Reuse | Extend core-api rather than add a new auth provider. The AWS spec already calls it the shared TAS login. Map the ticketing dependency first (AWS spec §1). |
| Must add | MFA for doctors and nurses (B-12), invite-only provisioning (no self sign-up), session timeout, per-organisation (clinic) membership, and patient scoping enforced on the server (B-11). |
| Seed data | Doctors and clinics already exist in Zoho as Contacts (Medical Professional layout) and Accounts. Use them to pre-fill invites — see §3. |
| Decision needed | Can one person be both a doctor and TAS staff? If so, roles are per organisation, not per user. |
2.2 Integration from different sources — M to start, then L per device vendor
| Source | What it takes | Size | Blocked by |
|---|---|---|---|
| Manual upload (any vendor PDF or export) | Nurse uploads the file, picks the patient, records source and uploader | S | Backend |
| Zoho CRM (inbound) | Adapter; webhook plus nightly catch-up poll; field mapping in §3 | M | B-01 residency decision; Zoho plan rate limits |
| Scheduling tool | Adapter to Acuity or Zoho Bookings — see §4 | M | Which tool is authoritative |
| AirView, prismaCLOUD, CloudPAT, neXus 360 | One adapter per vendor behind a common device-data interface | L each | Vendor access (B-34), security review (B-36), residency (B-37) |
Every source goes through the same shape: adapter → normalise → match to patient → store → show sync health. Patient matching comes first, before any device data (R-20). Zoho already stores Machine SN, AirView ID and AirView UID per contact, so the device-to-patient register (B-38) can be seeded from Zoho instead of built from scratch.
2.3 Report download — S to M
| What it takes | Detail |
|---|---|
| Report types | Vendor-generated PDFs (AirView compliance, WatchPAT/Somfit sleep study) and TAS-authored reports |
| Storage | Encrypted object storage in a Singapore-eligible location. The AWS spec uses R2 for audio; confirm R2’s location for health documents or use S3 in ap-southeast-1 (B-13, R-16) |
| Access | Short-lived signed download links, checked against the doctor’s patient scope; every view and download written to the audit log (B-15) |
| Workflow | Nurse uploads → optional second-nurse review → publish → doctor notified (email without health data) → doctor views, downloads, acknowledges |
| Existing prototype | It generates PDFs in the browser from mock data. Keep the layouts as a reference; V1 serves the source PDF, not a regenerated one |
2.4 The backend — L
| What it takes | Detail |
|---|---|
| Hosting | Same pattern as Airese: Lambda containers behind API Gateway in ap-southeast-1, staging and production isolated (AWS spec §2–3) |
| Database | Neon Postgres. Confirm the Atenvia project is in the Singapore region |
| Core tables | organisations, users, roles, patients, external references (vendor ID ↔︎ Atenvia ID), referrals, appointments, results/files, audit events |
| Background jobs | Scheduled sync runs and webhook receivers for Zoho, scheduling and later device clouds; retry and failure status per source |
| Security baseline | Encryption at rest, secrets in a vault, audit log, backups — B-10 to B-15, B-19 |
Suggested order: backend + login → manual upload + report download → Zoho inbound → scheduling → first device vendor. The first two steps give a working pilot with no vendor dependency.
3. Zoho CRM — what goes in and out
Read from field listings dated February 2026. Only field names were visible, not how full they are, so a field-usage export is the first task once we have API access.
3.1 Zoho → Atenvia (inbound)
| Atenvia needs | Zoho module and fields | Notes |
|---|---|---|
| Patient identity | Contacts (End User layout): First/Last Name, Date of Birth, Gender, Mobile, Email, Last 4 Characters of ID, Customer Identifier | Use the Zoho record ID as the shared key; the last 4 characters of ID help with manual matching |
| Clinical background | Contacts: Medical History List, Allergies (encrypted) | Sync only if doctors need it in Atenvia; otherwise leave it in Zoho |
| Referring doctor and clinic | Deals: Doctor Referred, Referred from hospital/clinic/pharmacy · Contacts (Medical Professional layout) and Accounts for the doctors and clinics | Seeds doctor accounts and patient scoping |
| Journey stage | Deals pipelines: Diagnostic to Therapy (Diagnostic Completed → Interest → Active Therapy Trial → Pending Decision → Adoption / Discontinuation), Therapy Only, Device Support | Map to the PRD’s five stages. Zoho has no “Screening” stage |
| Sleep study result | Deals: AHI, ODI, Sleep Study, Sleep Study Type · Tx and Dx Reports module (linked to Contacts and Deals) | The Tx and Dx Reports fields weren’t captured in the screenshots — confirm what it holds |
| Device linkage | Contacts: Machine SN, manufacturer, AirView ID, AirView UID, AirView Consent, mask SN · Sleep – Loan Trial Units, Device and Mask Purchased | Seeds the device-to-patient register (B-38) |
| Trial and therapy settings | Deals: loan-trial start/returned dates, Trial Period, CPAP/APAP pressure settings (ResMed and Löwenstein), mask selected | Relevant to doctor analysis during a trial |
| Nurse follow-ups | Deals: D+1, D+3, D+7, D+10, D+12, D+17, D+24 picklists and remarks, Follow Up Status, Scheduled For LT Appointment | This is nurse work done in Zoho today — see §4 |
3.2 Atenvia → Zoho (outbound) — keep minimal
| Event | Write to Zoho | Why minimal |
|---|---|---|
| Doctor submits a referral | Create or update a Lead or Deal with Doctor Referred and the Atenvia referral ID | Keeps TAS sales and CRM view complete |
| Appointment booked, changed or cancelled | Update the stage or a status field | Only if Atenvia (not Acuity or Zoho Bookings) owns the booking |
| Result published and acknowledged | Status plus an Atenvia link, not the PDF | Zoho is hosted in the US (R-01). Zoho already has an Airview Report Link URL field, so a link fits existing practice |
3.3 Decisions needed
- Which system owns each field. Default: Zoho owns identity and stage; Atenvia owns referrals, appointments it books, results and acknowledgements.
- The B-01 residency outcome. If identifiable data moves out of Zoho’s US region, some of the inbound list above changes source.
- Whether Atenvia creates Deals or only Leads. This depends on how TAS sales uses the two pipelines.
4. Scheduling and user flows
4.1 What’s booked today
- Appointment types seen in Zoho: diagnostic sleep study (in-lab or home test), loan-trial appointment (
Scheduled For LT Appointment), device support. - Tools in use: the audit log shows staff pasting “Notes from Acuity” into Zoho by hand, and Zoho scripts syncing Zoho Bookings events. Which one holds the real schedule is the first question (spec question 2).
4.2 Doctor flow — refer, then read results
- Sign in (MFA).
- See my referrals, ordered by what needs my action: result ready, information requested.
- New referral: patient details, reason, clinical context, confirm the patient has been informed. No slot picking — the nurse schedules.
- Track status: Submitted → Scheduled → Test completed → Result ready.
- Result ready: view analysis (AHI/ODI; trial usage and compliance once device data flows), download the PDF, acknowledge.
- For trial and therapy patients: view ongoing compliance and the nurse’s follow-up notes. The notes are read-only for the doctor.
4.3 Nurse flow — schedule, follow up, publish
- Sign in (MFA). Queue shows new referrals, today’s appointments, follow-ups due, results to publish.
- Triage a referral: accept, or request information from the doctor.
- Contact the patient and book the slot: sleep study, loan trial or device support. The booking goes through the scheduling adapter, so double-booking is prevented on the server.
- Assign the device: record the serial against the patient for the trial period (device-to-patient register).
- Run the trial follow-ups on the D+1 … D+24 checklist. Today this is picklists and remarks in Zoho Deals; Atenvia shows it as a due-date queue.
- Upload the result (vendor PDF, or data from a device cloud once connected). Optional second-nurse review. Publish. The doctor is notified.
- Record the outcome: adoption or discontinuation, synced to the Zoho stage.
4.4 Flow diagram
flowchart LR
subgraph Doctor
D1[Submit referral] --> D2[Track status]
D5[View analysis and download report] --> D6[Acknowledge]
end
subgraph Nurse
N1[Triage referral] --> N2[Book slot]
N2 --> N3[Assign device]
N3 --> N4[Trial follow-ups D+1 to D+24]
N4 --> N5[Upload and publish result]
end
subgraph Systems
S1[(Scheduling tool)]
S2[(Zoho CRM)]
S3[(Device clouds)]
end
D1 --> N1
N1 -. needs info .-> D2
N2 <--> S1
N5 --> D5
S3 -. later .-> N5
S2 -. patients, doctors, stage .-> N1
N5 -. status + link .-> S24.5 Change from the current spec
The referral-to-result spec has the doctor pick a TAS slot (§5, step 6). With nurses owning scheduling, the doctor submits and the nurse books. This is simpler for doctors and avoids showing live capacity to external users. It costs one extra hand-off, which the “needs information” status already covers. Update the spec once Easmed confirms.
5. Open questions for Easmed
- Acuity or Zoho Bookings — which holds TAS’s real schedule today?
- Do doctors need the nurse follow-up detail, or only the outcome?
- Should doctors see anything before the result is ready (e.g. the sleep-study date)?
- Does a second nurse need to review results before they’re published?
- What does the Tx and Dx Reports module in Zoho hold, and who fills it in?
- Which clinic and doctors are in the first pilot?