1. Current truth
No production integration existsThe demo calls no external service. There is no identity provider, eRx, EHR/FHIR, telehealth, OCR, real payment processor, carrier, email or SMS integration. Payments, clinical review, fulfillment and tax run behind provider interfaces (PaymentProvider, ClinicalProvider, FulfillmentProvider, TaxProvider) with local mock implementations, so each row below swaps one implementation, not the call sites. All providers below are undecided unless a row says otherwise. Mentioning a vendor category or example does not mean a contract, a BAA or an endorsement exists.
Not started no work beyond this registerDiscovery requirements/vendor research needed firstOpen decision business/legal choice blocks designLive (none yet)
2. Maintenance rules
- The canonical file is
docs/production-integrations.html. Copies under apps/web/public/reports/ are generated with cp and never edited by hand.
- Integration IDs are permanent:
INT-<DOMAIN>-<NN>. Retire an ID rather than reuse it.
- A status moves to Live only once every acceptance evidence item is linked from the change log.
- Credential entries are path placeholders only. Never paste a key, token or sample secret into this file.
- Any change to the data a vendor handles needs a privacy review and an update to the "BAA / consent / legal" field.
- Review the whole register at each phase gate in the technical design roadmap.
3. Inventory
All integrations (select an ID for details)
| ID | Capability | Domain | Phase | Current POC mock | Status |
INT-ID-01 | Customer & workforce identity (OIDC) | Identity | MVP | Local email + password accounts (scrypt), HttpOnly session cookie (GET /api/auth/session). No external IdP | Not started |
INT-ID-02 | MFA & WebAuthn passkeys | Identity | MVP | None | Not started |
INT-ID-03 | Identity proofing (government ID / KYC) | Identity | MVP (if required by prescribing protocol / fraud policy) | Not simulated. The POC collects no government ID | Discovery |
INT-CL-01 | Telehealth platform & clinician network | Clinical | MVP | ClinicalProvider seam: questionnaire evaluation with rule flags; any signed-in user approves/declines in /ops | Discovery |
INT-CL-02 | e-Prescribing (Surescripts network via certified vendor) | Clinical | MVP | Approval issues a local prescription with fills authorized/remaining and expiry (active/exhausted/expired/revoked) | Not started |
INT-CL-03 | EHR / FHIR R4 interoperability | Clinical | Automation | None (no EHR in the POC) | Not started |
INT-CL-04 | Drug compendium & DUR | Clinical/Pharmacy | MVP | Seeded synthetic product rows; no DUR | Not started |
INT-CL-05 | Lab ordering (optional, per protocol) | Clinical | Automation | None | Open decision |
INT-PH-01 | Licensed dispensing pharmacy / pharmacy management system | Pharmacy | MVP | FulfillmentProvider seam: /ops advance confirmed→packed→shipped→delivered | Discovery |
INT-PH-02 | Shipping carriers & cold-chain packaging/telemetry | Pharmacy | MVP | Mock carrier and tracking number on shipments | Not started |
INT-PH-03 | Address validation | Pharmacy | MVP | Customer-entered saved addresses (US states, ZIP format checks); no validation service | Not started |
INT-PH-04 | Recall & shortage feeds | Pharmacy | Automation | None | Not started |
INT-PY-01 | Payment processor | Payments | MVP | PaymentProvider seam backed by mock_gateway: tokenized card capture, saved methods, authorize/capture/void/refund, idempotent checkout and test decline cards. Rows tagged provider/livemode=false | Discovery |
INT-PY-02 | Sales tax | Payments | MVP | TaxProvider seam: illustrative state rates for non-Rx goods, prescriptions exempt; tax snapshotted on each order | Not started |
INT-PY-03 | Insurance / pharmacy benefits (PBM) | Payments | Scale | None (cash-pay assumption) | Open decision |
INT-DC-01 | Document antivirus scanning | Documents | Automation | No uploads in the POC | Not started |
INT-DC-02 | OCR (assistive only) | Documents | Automation | None | Not started |
INT-CM-01 | Transactional email | Comms | MVP | None | Not started |
INT-CM-02 | SMS | Comms | MVP | None | Not started |
INT-CM-03 | Customer support / helpdesk | Comms | MVP | None | Not started |
INT-PL-01 | Observability (logs, metrics, traces) | Platform | MVP | Container stdout logs only | Not started |
INT-PL-02 | Secrets & keys (AWS Secrets Manager + KMS) | Platform | MVP | .env not used; the POC has no secrets | Not started |
INT-PL-03 | Product analytics | Platform | MVP | None | Not started |
INT-PL-04 | Bot, fraud & abuse protection | Platform | MVP | Express rate limiting in the POC API | Not started |
INT-PL-05 | Consent & preference management | Platform | MVP | Attestation answer captured on each evaluation | Not started |
INT-PL-06 | Workflow / saga engine | Platform | Automation | Synchronous handlers plus an in-process renewal scheduler (FOR UPDATE SKIP LOCKED) | Open decision |
4. Integration details
Each entry uses the same template. Expand an entry to read it. Expand the entries you need before printing.
INT-ID-01 · Customer & workforce identity (OIDC)
| Capability | Customer & workforce identity (OIDC) |
|---|
| Domain | Identity |
|---|
| Target phase | MVP |
|---|
| Provider | Undecided: Amazon Cognito, Auth0/Okta CIC, or other OIDC provider. Pick only after BAA coverage and HIPAA eligibility are confirmed for the configuration used |
|---|
| Current POC mock | Shared synthetic demo identity from GET /api/session. No login |
|---|
| Production replacement | OIDC Authorization Code + PKCE; server-side session in Redis; workforce SSO through the corporate IdP |
|---|
| Data handled | Email, phone, name, sub, auth events (PII; PHI when linked to care) |
|---|
| BAA / consent / legal | BAA required if the provider stores patient identity linked to care; check the HIPAA-eligible service list; privacy notice |
|---|
| Credentials (placeholder path, not a secret) | aws-sm://breezrx/{env}/identity/oidc/client_secret (placeholder) |
|---|
| Webhook auth & replay | N/A (OIDC). Back-channel logout token: JWT signature, iat ≤ 5 min, jti de-dupe |
|---|
| Failure mode | IdP outage: existing sessions continue until expiry; new logins get a status page; no local password fallback |
|---|
| Acceptance evidence | BAA on file; eligibility memo; pentest of the auth flows; MFA enforcement test; session-timeout test |
|---|
| Owner | Identity eng lead (TBD) |
|---|
| Dependencies | INT-PL-02, INT-ID-02 |
|---|
| Status | Not started |
|---|
INT-ID-02 · MFA & WebAuthn passkeys
| Capability | MFA & WebAuthn passkeys |
|---|
| Domain | Identity |
|---|
| Target phase | MVP |
|---|
| Provider | Undecided: the IdP's native passkeys, or a vetted server library (for example SimpleWebAuthn) if the IdP lacks the features |
|---|
| Current POC mock | None |
|---|
| Production replacement | WebAuthn registration and assertion with user verification required; TOTP fallback; SMS last resort |
|---|
| Data handled | Credential ID, public key, sign count, AAGUID. No biometric data ever |
|---|
| BAA / consent / legal | Disclosure that biometrics stay on the device; accessibility review |
|---|
| Credentials (placeholder path, not a secret) | aws-sm://breezrx/{env}/identity/totp/encryption_key_ref (KMS key alias, placeholder) |
|---|
| Webhook auth & replay | N/A |
|---|
| Failure mode | Authenticator lost: recovery through verified identity plus support with step-up; audited |
|---|
| Acceptance evidence | Conformance tests against the WebAuthn spec; no biometric fields in the schema (schema review) |
|---|
| Owner | Identity eng lead (TBD) |
|---|
| Dependencies | INT-ID-01 |
|---|
| Status | Not started |
|---|
INT-ID-03 · Identity proofing (government ID / KYC)
| Capability | Identity proofing (government ID / KYC) |
|---|
| Domain | Identity |
|---|
| Target phase | MVP (if required by prescribing protocol / fraud policy) |
|---|
| Provider | Undecided: an identity verification vendor with a BAA and a document-retention option |
|---|
| Current POC mock | Not simulated. The POC collects no government ID |
|---|
| Production replacement | Hosted capture SDK; we keep the result, a reference and a risk score, not the images |
|---|
| Data handled | Government ID image (vendor side), selfie liveness (vendor side), result |
|---|
| BAA / consent / legal | BAA; state biometric privacy laws (for example Illinois BIPA) apply to the vendor's face matching, so consent text and retention must be reviewed |
|---|
| Credentials (placeholder path, not a secret) | aws-sm://breezrx/{env}/idv/api_key, …/idv/webhook_secret (placeholders) |
|---|
| Webhook auth & replay | HMAC-SHA256 signature over timestamp + body; 5-minute tolerance; event-ID de-dupe table |
|---|
| Failure mode | Vendor down: queue the case for manual review; no auto-approval |
|---|
| Acceptance evidence | Signed DPA/BAA; legal memo on biometric consent; false-reject rate review |
|---|
| Owner | Trust & Safety lead (TBD) |
|---|
| Dependencies | INT-ID-01, legal |
|---|
| Status | Discovery |
|---|
INT-CL-01 · Telehealth platform & clinician network
| Capability | Telehealth platform & clinician network |
|---|
| Domain | Clinical |
|---|
| Target phase | MVP |
|---|
| Provider | Undecided: a white-label telehealth and affiliated medical group (PC/MSO structure) or our own clinicians on a telehealth platform |
|---|
| Current POC mock | Demo operator "approve/decline" in the pharmacy workspace |
|---|
| Production replacement | Encounter API: case routed by patient state → clinician decision → signed order |
|---|
| Data handled | Intake answers, encounter notes, decisions (PHI) |
|---|
| BAA / consent / legal | BAA; telehealth consent per state; corporate practice of medicine structure; malpractice coverage |
|---|
| Credentials (placeholder path, not a secret) | aws-sm://breezrx/{env}/telehealth/api_key, …/telehealth/webhook_secret (placeholders) |
|---|
| Webhook auth & replay | Signed webhooks (HMAC or JWS); replay window 5 min; idempotent by event ID |
|---|
| Failure mode | Partner outage: cases wait in the queue; patients see revised timelines; no auto-approval |
|---|
| Acceptance evidence | Clinical protocol sign-off; end-to-end sandbox run; state licensure coverage matrix |
|---|
| Owner | Clinical eng lead + Medical Director (TBD) |
|---|
| Dependencies | INT-CL-02, INT-CL-04 |
|---|
| Status | Discovery |
|---|
INT-CL-02 · e-Prescribing (Surescripts network via certified vendor)
| Capability | e-Prescribing (Surescripts network via certified vendor) |
|---|
| Domain | Clinical |
|---|
| Target phase | MVP |
|---|
| Provider | Undecided: a Surescripts-certified eRx vendor; often bundled with the telehealth partner or PMS |
|---|
| Current POC mock | Simulated prescription record with status pending/approved/declined |
|---|
| Production replacement | NCPDP SCRIPT NewRx/CancelRx/RxRenewal through the vendor; we never connect directly unless certified |
|---|
| Data handled | Rx details, prescriber NPI, patient demographics (PHI) |
|---|
| BAA / consent / legal | BAA; vendor network certification; EPCS only if controlled substances are ever in scope (not planned) |
|---|
| Credentials (placeholder path, not a secret) | aws-sm://breezrx/{env}/erx/client_cert, …/erx/api_key (placeholders) |
|---|
| Webhook auth & replay | mTLS or signed callbacks; message-ID de-dupe |
|---|
| Failure mode | Transmission failure: retry with backoff; after N failures alert the prescriber; never dispense unsigned |
|---|
| Acceptance evidence | Certification letter; NewRx/CancelRx sandbox transcripts; reconciliation report |
|---|
| Owner | Clinical eng lead (TBD) |
|---|
| Dependencies | INT-CL-01, INT-PH-01 |
|---|
| Status | Not started |
|---|
INT-CL-03 · EHR / FHIR R4 interoperability
| Capability | EHR / FHIR R4 interoperability |
|---|
| Domain | Clinical |
|---|
| Target phase | Automation |
|---|
| Provider | Undecided: an aggregator (HIE/FHIR network) or a partner EHR |
|---|
| Current POC mock | None (no EHR in the POC) |
|---|
| Production replacement | FHIR R4 Patient, MedicationRequest, MedicationStatement, Observation; SMART on FHIR backend services |
|---|
| Data handled | Clinical records (PHI) |
|---|
| BAA / consent / legal | BAA; patient authorization where required; TEFCA/information-blocking considerations |
|---|
| Credentials (placeholder path, not a secret) | aws-sm://breezrx/{env}/fhir/private_jwk (placeholder; private_key_jwt client auth) |
|---|
| Webhook auth & replay | Subscriptions: signed notifications, verified by fetching the resource again |
|---|
| Failure mode | Partner down: proceed with intake data only; flag for the clinician |
|---|
| Acceptance evidence | Conformance test results; data-mapping spec signed by clinical lead |
|---|
| Owner | Clinical eng lead (TBD) |
|---|
| Dependencies | INT-CL-01 |
|---|
| Status | Not started |
|---|
INT-CL-04 · Drug compendium & DUR
| Capability | Drug compendium & DUR |
|---|
| Domain | Clinical/Pharmacy |
|---|
| Target phase | MVP |
|---|
| Provider | Undecided: a licensed drug database (several commercial compendia exist) |
|---|
| Current POC mock | Seeded synthetic product rows; no DUR |
|---|
| Production replacement | NDC ↔ product mapping; interaction, duplicate-therapy and contraindication screening at clinician review and PV |
|---|
| Data handled | Drug codes; patient med list sent to the screening engine (PHI if hosted externally) |
|---|
| BAA / consent / legal | License agreement; BAA if a hosted API receives patient data |
|---|
| Credentials (placeholder path, not a secret) | aws-sm://breezrx/{env}/compendium/license_key (placeholder) |
|---|
| Webhook auth & replay | N/A (pull-based weekly updates, checksum verified) |
|---|
| Failure mode | Data load failure: keep the last good version; alert; block new SKUs |
|---|
| Acceptance evidence | Clinical QA of DUR alerts against test cases; update cadence SLA |
|---|
| Owner | Pharmacy eng lead (TBD) |
|---|
| Dependencies | INT-PH-01 |
|---|
| Status | Not started |
|---|
INT-CL-05 · Lab ordering (optional, per protocol)
| Capability | Lab ordering (optional, per protocol) |
|---|
| Domain | Clinical |
|---|
| Target phase | Automation |
|---|
| Provider | Undecided: a national lab network through an ordering partner |
|---|
| Current POC mock | None |
|---|
| Production replacement | Order labs and receive results (HL7v2/FHIR) when the medical director's protocol requires baseline labs |
|---|
| Data handled | Lab orders and results (PHI) |
|---|
| BAA / consent / legal | BAA; state direct-access testing rules |
|---|
| Credentials (placeholder path, not a secret) | aws-sm://breezrx/{env}/labs/api_key (placeholder) |
|---|
| Webhook auth & replay | Signed result webhooks; de-dupe by accession number |
|---|
| Failure mode | Result delayed: hold the decision; patient reminder |
|---|
| Acceptance evidence | Protocol decision; sandbox results mapped |
|---|
| Owner | Medical Director (TBD) |
|---|
| Dependencies | INT-CL-01 |
|---|
| Status | Open decision |
|---|
INT-PH-01 · Licensed dispensing pharmacy / pharmacy management system
| Capability | Licensed dispensing pharmacy / pharmacy management system |
|---|
| Domain | Pharmacy |
|---|
| Target phase | MVP |
|---|
| Provider | Undecided: partner 503A pharmacy (API) or our own licensed pharmacy with a PMS |
|---|
| Current POC mock | "Advance" button: approved→ready_to_ship→shipped→delivered |
|---|
| Production replacement | Order handoff API, PV status, dispense events, lot numbers, tracking numbers |
|---|
| Data handled | Rx, patient demographics, shipping address (PHI) |
|---|
| BAA / consent / legal | BAA / pharmacy services agreement; resident and non-resident licensure per launch state; PIC designation |
|---|
| Credentials (placeholder path, not a secret) | aws-sm://breezrx/{env}/pharmacy/api_key, …/pharmacy/webhook_secret (placeholders) |
|---|
| Webhook auth & replay | HMAC signature + timestamp; ordered by sequence number per order; out-of-order events parked |
|---|
| Failure mode | Partner down: orders stay in verified_pending_dispense; no capture; customer notified |
|---|
| Acceptance evidence | Licensure matrix; PV workflow walkthrough; dispense reconciliation daily = 0 mismatches over 2 weeks |
|---|
| Owner | Pharmacy ops lead + PIC (TBD) |
|---|
| Dependencies | INT-CL-02, INT-PY-01, INT-PH-02 |
|---|
| Status | Discovery |
|---|
INT-PH-02 · Shipping carriers & cold-chain packaging/telemetry
| Capability | Shipping carriers & cold-chain packaging/telemetry |
|---|
| Domain | Pharmacy |
|---|
| Target phase | MVP |
|---|
| Provider | Undecided: carrier aggregator or direct carrier APIs, plus a validated cold-chain packaging supplier |
|---|
| Current POC mock | Synthetic tracking events with fixed labels |
|---|
| Production replacement | Label purchase, tracking webhooks, temperature indicator data where available; ship-day rules |
|---|
| Data handled | Name and address on the label (PHI when linked to the pharmacy); generic package description |
|---|
| BAA / consent / legal | BAA if the carrier API receives PHI beyond the shipping minimum; packaging validation records |
|---|
| Credentials (placeholder path, not a secret) | aws-sm://breezrx/{env}/shipping/api_key, …/shipping/webhook_secret (placeholders) |
|---|
| Webhook auth & replay | Signed webhooks; tracking-number + event-time de-dupe |
|---|
| Failure mode | Carrier API down: queue labels; manual label fallback SOP; excursion → replacement + quarantine |
|---|
| Acceptance evidence | Packaging validation report per season/lane; webhook replay test |
|---|
| Owner | Pharmacy ops lead (TBD) |
|---|
| Dependencies | INT-PH-01 |
|---|
| Status | Not started |
|---|
INT-PH-03 · Address validation
| Capability | Address validation |
|---|
| Domain | Pharmacy |
|---|
| Target phase | MVP |
|---|
| Provider | Undecided: a USPS-CASS-certified provider |
|---|
| Current POC mock | Fixed synthetic demo address (demo_home) |
|---|
| Production replacement | Validate and normalize the address at checkout; gate on launch states |
|---|
| Data handled | Address (PII) |
|---|
| BAA / consent / legal | DPA; minimum necessary (no product data sent) |
|---|
| Credentials (placeholder path, not a secret) | aws-sm://breezrx/{env}/address/api_key (placeholder) |
|---|
| Webhook auth & replay | N/A |
|---|
| Failure mode | Down: accept with a unverified flag; pharmacy confirms before shipping |
|---|
| Acceptance evidence | Accuracy sample test; state-gating test |
|---|
| Owner | Commerce eng lead (TBD) |
|---|
| Dependencies | — |
|---|
| Status | Not started |
|---|
INT-PH-04 · Recall & shortage feeds
| Capability | Recall & shortage feeds |
|---|
| Domain | Pharmacy |
|---|
| Target phase | Automation |
|---|
| Provider | Undecided: FDA enforcement/recall data feeds + manufacturer/wholesaler notices |
|---|
| Current POC mock | None |
|---|
| Production replacement | Ingest recall notices → match NDC/lot → set lots to recalled; trigger the traceability workflow |
|---|
| Data handled | Product/lot data only |
|---|
| BAA / consent / legal | None for the feed; patient outreach under pharmacy policy |
|---|
| Credentials (placeholder path, not a secret) | None for public feeds; wholesaler portal credentials: aws-sm://breezrx/{env}/wholesaler/… (placeholder) |
|---|
| Webhook auth & replay | Polling with content hash de-dupe |
|---|
| Failure mode | Feed down: daily manual check SOP by the PIC |
|---|
| Acceptance evidence | Recall drill: 100% affected dispenses traced in ≤ 4 h |
|---|
| Owner | Pharmacy ops lead (TBD) |
|---|
| Dependencies | INT-PH-01 |
|---|
| Status | Not started |
|---|
INT-PY-01 · Payment processor
| Capability | Payment processor |
|---|
| Domain | Payments |
|---|
| Target phase | MVP |
|---|
| Provider | Undecided: Stripe or another approved processor that has underwritten the telehealth/pharmacy category |
|---|
| Current POC mock | No payment. Totals are display-only; no card fields |
|---|
| Production replacement | Hosted card elements; manual-capture authorizations; subscriptions; refunds; disputes |
|---|
| Data handled | Card tokens (processor side); amount; opaque order ID. No product names, conditions or Rx data in metadata or descriptors |
|---|
| BAA / consent / legal | Processor underwriting approval; PCI DSS SAQ A scope; HSA/FSA rules if offered; possibly a BAA is not needed when no PHI is sent, confirm with counsel |
|---|
| Credentials (placeholder path, not a secret) | aws-sm://breezrx/{env}/payments/psp/secret_key, …/psp/webhook_signing_secret (placeholders) |
|---|
| Webhook auth & replay | Processor signature header verified with its library; 5-minute tolerance; event-ID de-dupe; process asynchronously |
|---|
| Failure mode | Down: orders stay authorized-pending; retry capture; never dispense without capture |
|---|
| Acceptance evidence | Underwriting approval letter; saga chaos test: 0 double captures, 0 dispenses without capture; metadata PHI scan |
|---|
| Owner | Payments eng lead (TBD) |
|---|
| Dependencies | INT-PL-06 |
|---|
| Status | Discovery |
|---|
INT-PY-02 · Sales tax
| Capability | Sales tax |
|---|
| Domain | Payments |
|---|
| Target phase | MVP |
|---|
| Provider | Undecided: a tax calculation service |
|---|
| Current POC mock | None |
|---|
| Production replacement | Calculate tax by product taxability (Rx drugs are usually exempt; wellness items vary by state) |
|---|
| Data handled | Address, product tax code (no clinical data) |
|---|
| BAA / consent / legal | Nexus analysis |
|---|
| Credentials (placeholder path, not a secret) | aws-sm://breezrx/{env}/tax/api_key (placeholder) |
|---|
| Webhook auth & replay | N/A |
|---|
| Failure mode | Down: use a cached rate table and flag for reconciliation |
|---|
| Acceptance evidence | Tax counsel sign-off on product codes |
|---|
| Owner | Finance (TBD) |
|---|
| Dependencies | INT-PY-01 |
|---|
| Status | Not started |
|---|
INT-PY-03 · Insurance / pharmacy benefits (PBM)
| Capability | Insurance / pharmacy benefits (PBM) |
|---|
| Domain | Payments |
|---|
| Target phase | Scale |
|---|
| Provider | Undecided: claims switch / benefits check vendor |
|---|
| Current POC mock | None (cash-pay assumption) |
|---|
| Production replacement | Eligibility, real-time benefit check, claims adjudication |
|---|
| Data handled | Member ID, Rx (PHI) |
|---|
| BAA / consent / legal | BAA; PBM network contracts |
|---|
| Credentials (placeholder path, not a secret) | aws-sm://breezrx/{env}/pbm/… (placeholder) |
|---|
| Webhook auth & replay | Per vendor |
|---|
| Failure mode | Fallback to cash price with disclosure |
|---|
| Acceptance evidence | Business decision on cash-pay versus insurance |
|---|
| Owner | Product (TBD) |
|---|
| Dependencies | INT-PH-01 |
|---|
| Status | Open decision |
|---|
INT-DC-01 · Document antivirus scanning
| Capability | Document antivirus scanning |
|---|
| Domain | Documents |
|---|
| Target phase | Automation |
|---|
| Provider | Undecided: managed S3 malware scanning (AWS-native option, if eligible) or a containerized AV engine |
|---|
| Current POC mock | No uploads in the POC |
|---|
| Production replacement | S3 quarantine bucket → scan → promote to the PHI vault or isolate |
|---|
| Data handled | Uploaded documents (PHI) |
|---|
| BAA / consent / legal | Must run in our account or be covered by a BAA |
|---|
| Credentials (placeholder path, not a secret) | N/A for AWS-native; signature updates through a private mirror |
|---|
| Webhook auth & replay | Event-driven (S3 → EventBridge); idempotent by object version |
|---|
| Failure mode | Scanner down: files stay in quarantine; nothing is promoted |
|---|
| Acceptance evidence | EICAR test file quarantined; latency p95 ≤ 60 s |
|---|
| Owner | Security eng (TBD) |
|---|
| Dependencies | INT-PL-02 |
|---|
| Status | Not started |
|---|
INT-DC-02 · OCR (assistive only)
| Capability | OCR (assistive only) |
|---|
| Domain | Documents |
|---|
| Target phase | Automation |
|---|
| Provider | Undecided: a HIPAA-eligible OCR service in our account |
|---|
| Current POC mock | None |
|---|
| Production replacement | Pre-fill fields from a prescription or label image for human review. Never approves |
|---|
| Data handled | Images and extracted text (PHI) |
|---|
| BAA / consent / legal | BAA / service eligibility; accuracy disclosure to staff |
|---|
| Credentials (placeholder path, not a secret) | N/A (IAM role) |
|---|
| Webhook auth & replay | N/A |
|---|
| Failure mode | Down: manual data entry |
|---|
| Acceptance evidence | UI review proves OCR output is shown only as a suggestion; audit shows a human confirmation for every field |
|---|
| Owner | Pharmacy eng lead (TBD) |
|---|
| Dependencies | INT-DC-01 |
|---|
| Status | Not started |
|---|
INT-CM-01 · Transactional email
| Capability | Transactional email |
|---|
| Domain | Comms |
|---|
| Target phase | MVP |
|---|
| Provider | Undecided: an email provider; a BAA is required if any PHI is sent, which our design avoids |
|---|
| Current POC mock | None |
|---|
| Production replacement | PHI-minimal templates ("Your order has an update") linking to the authenticated app |
|---|
| Data handled | Email address; no clinical content |
|---|
| BAA / consent / legal | Template review; CAN-SPAM for marketing (separate stream and consent) |
|---|
| Credentials (placeholder path, not a secret) | aws-sm://breezrx/{env}/email/api_key (placeholder) |
|---|
| Webhook auth & replay | Bounce/complaint webhooks signed; de-dupe |
|---|
| Failure mode | Down: queue and retry; in-app notifications continue |
|---|
| Acceptance evidence | Template PHI review checklist signed |
|---|
| Owner | Platform eng (TBD) |
|---|
| Dependencies | — |
|---|
| Status | Not started |
|---|
INT-CM-02 · SMS
| Capability | SMS |
|---|
| Domain | Comms |
|---|
| Target phase | MVP |
|---|
| Provider | Undecided: an SMS provider with 10DLC registration |
|---|
| Current POC mock | None |
|---|
| Production replacement | Opt-in reminders and OTP fallback; PHI-minimal content |
|---|
| Data handled | Phone number |
|---|
| BAA / consent / legal | TCPA consent; 10DLC brand/campaign registration |
|---|
| Credentials (placeholder path, not a secret) | aws-sm://breezrx/{env}/sms/auth_token (placeholder) |
|---|
| Webhook auth & replay | Provider request signature validation |
|---|
| Failure mode | Down: email/in-app fallback |
|---|
| Acceptance evidence | Consent capture test; STOP handling test |
|---|
| Owner | Platform eng (TBD) |
|---|
| Dependencies | INT-PL-05 |
|---|
| Status | Not started |
|---|
INT-CM-03 · Customer support / helpdesk
| Capability | Customer support / helpdesk |
|---|
| Domain | Comms |
|---|
| Target phase | MVP |
|---|
| Provider | Undecided: helpdesk vendor with a BAA |
|---|
| Current POC mock | None |
|---|
| Production replacement | Ticketing with masked clinical fields; deep links to the ops console instead of copying PHI |
|---|
| Data handled | Contact details; limited order data |
|---|
| BAA / consent / legal | BAA if tickets may contain PHI (assume they will) |
|---|
| Credentials (placeholder path, not a secret) | aws-sm://breezrx/{env}/helpdesk/api_key (placeholder) |
|---|
| Webhook auth & replay | Signed webhooks |
|---|
| Failure mode | Down: email inbox fallback |
|---|
| Acceptance evidence | BAA; agent access review |
|---|
| Owner | Support lead (TBD) |
|---|
| Dependencies | INT-ID-01 |
|---|
| Status | Not started |
|---|
INT-PL-01 · Observability (logs, metrics, traces)
| Capability | Observability (logs, metrics, traces) |
|---|
| Domain | Platform |
|---|
| Target phase | MVP |
|---|
| Provider | Undecided: CloudWatch/AWS-native, or a vendor under a BAA |
|---|
| Current POC mock | Container stdout logs only |
|---|
| Production replacement | OpenTelemetry → collector with redaction processors → backend |
|---|
| Data handled | Operational data only. No PHI by design, with a BAA anyway as defense in depth |
|---|
| BAA / consent / legal | BAA if there is any chance of PHI; retention policy |
|---|
| Credentials (placeholder path, not a secret) | aws-sm://breezrx/{env}/observability/api_key (placeholder) |
|---|
| Webhook auth & replay | N/A |
|---|
| Failure mode | Down: buffer in the collector; alerting through the cloud-native fallback |
|---|
| Acceptance evidence | PHI canary test in CI; dashboards for SLOs |
|---|
| Owner | SRE lead (TBD) |
|---|
| Dependencies | — |
|---|
| Status | Not started |
|---|
INT-PL-02 · Secrets & keys (AWS Secrets Manager + KMS)
| Capability | Secrets & keys (AWS Secrets Manager + KMS) |
|---|
| Domain | Platform |
|---|
| Target phase | MVP |
|---|
| Provider | AWS (pending account + BAA) |
|---|
| Current POC mock | .env not used; the POC has no secrets |
|---|
| Production replacement | External Secrets Operator syncs to Kubernetes; IRSA/Pod Identity; KMS CMKs per data class |
|---|
| Data handled | Secrets, key material |
|---|
| BAA / consent / legal | Covered under the AWS BAA (confirm eligibility) |
|---|
| Credentials (placeholder path, not a secret) | Root of the path scheme: aws-sm://breezrx/{env}/{domain}/{name} |
|---|
| Webhook auth & replay | N/A |
|---|
| Failure mode | KMS regional outage: follow the DR runbook (multi-Region keys for DR are an open decision) |
|---|
| Acceptance evidence | Rotation test; access-log review; no secrets in git (scanner gate) |
|---|
| Owner | Security eng (TBD) |
|---|
| Dependencies | Cloud account |
|---|
| Status | Not started |
|---|
INT-PL-03 · Product analytics
| Capability | Product analytics |
|---|
| Domain | Platform |
|---|
| Target phase | MVP |
|---|
| Provider | Undecided: self-hosted or vendor without PHI |
|---|
| Current POC mock | None |
|---|
| Production replacement | Marketing pages only; event allow-list; no pixels on intake/clinical/order pages |
|---|
| Data handled | Pseudonymous events |
|---|
| BAA / consent / legal | FTC Health Breach Notification Rule and state consumer-health-data laws; no ad pixels on health pages |
|---|
| Credentials (placeholder path, not a secret) | aws-sm://breezrx/{env}/analytics/write_key (placeholder) |
|---|
| Webhook auth & replay | N/A |
|---|
| Failure mode | Down: no impact |
|---|
| Acceptance evidence | Tag audit shows no third-party requests from clinical routes |
|---|
| Owner | Growth (TBD) + Privacy |
|---|
| Dependencies | INT-PL-05 |
|---|
| Status | Not started |
|---|
INT-PL-04 · Bot, fraud & abuse protection
| Capability | Bot, fraud & abuse protection |
|---|
| Domain | Platform |
|---|
| Target phase | MVP |
|---|
| Provider | AWS WAF (+ bot control) and possibly a fraud vendor |
|---|
| Current POC mock | Express rate limiting in the POC API |
|---|
| Production replacement | WAF managed rules, rate rules, CAPTCHA on account creation; payment fraud via the processor |
|---|
| Data handled | IP, device signals |
|---|
| BAA / consent / legal | Privacy notice |
|---|
| Credentials (placeholder path, not a secret) | N/A / aws-sm://breezrx/{env}/fraud/api_key (placeholder) |
|---|
| Webhook auth & replay | N/A |
|---|
| Failure mode | Fail open for reads, closed for account creation surges (runbook) |
|---|
| Acceptance evidence | WAF rule tests; false-positive review |
|---|
| Owner | Security eng (TBD) |
|---|
| Dependencies | INT-PY-01 |
|---|
| Status | Not started |
|---|
INT-PL-05 · Consent & preference management
| Capability | Consent & preference management |
|---|
| Domain | Platform |
|---|
| Target phase | MVP |
|---|
| Provider | Undecided: build in the Identity context or a consent platform |
|---|
| Current POC mock | consent:true flag on the demo intake |
|---|
| Production replacement | Versioned consent records per purpose (telehealth, notices, SMS, marketing); withdrawal flows |
|---|
| Data handled | Consent records |
|---|
| BAA / consent / legal | State law; TCPA; GDPR if ever applicable |
|---|
| Credentials (placeholder path, not a secret) | N/A |
|---|
| Webhook auth & replay | N/A |
|---|
| Failure mode | N/A |
|---|
| Acceptance evidence | Consent replay report per account |
|---|
| Owner | Privacy lead (TBD) |
|---|
| Dependencies | INT-ID-01 |
|---|
| Status | Not started |
|---|
INT-PL-06 · Workflow / saga engine
| Capability | Workflow / saga engine |
|---|
| Domain | Platform |
|---|
| Target phase | Automation |
|---|
| Provider | Undecided: Temporal Cloud (BAA status to confirm), self-hosted Temporal on EKS, or AWS Step Functions + SQS |
|---|
| Current POC mock | Synchronous handlers in the POC |
|---|
| Production replacement | Order saga with durable timers; outbox relay to SQS |
|---|
| Data handled | Workflow payloads contain IDs only, no PHI |
|---|
| BAA / consent / legal | BAA if any PHI could pass through; payload encryption codec if needed |
|---|
| Credentials (placeholder path, not a secret) | aws-sm://breezrx/{env}/workflow/… (placeholder) |
|---|
| Webhook auth & replay | N/A |
|---|
| Failure mode | Engine down: outbox keeps events; resume without loss |
|---|
| Acceptance evidence | Chaos test: kill workers mid-saga with no double side effects |
|---|
| Owner | Platform eng (TBD) |
|---|
| Dependencies | INT-PY-01, INT-PH-01 |
|---|
| Status | Open decision |
|---|
5. Adapter pattern (how mocks get replaced)
domain servicecalls portPort (TS interface)DI by envMockAdapter (POC)orVendorAdapter (prod)
- Each integration has a TypeScript port owned by its domain, for example
PaymentGateway.authorize(orderId, amountCents, idemKey). Vendor SDK types never leak past the adapter.
- Mock adapters stay deterministic and seedable so demos and tests can be repeated. In production builds the mock adapters are left out of the bundle, so they cannot be enabled by accident.
- Contract tests run against the mock and against the vendor sandbox in CI (nightly) so the two cannot drift apart.
- Outbound calls use timeouts (connect 2 s, total ≤ 10 s unless documented), retries with jittered backoff only for idempotent operations, a circuit breaker, and the outbox for side effects.
- Payload minimization happens inside the adapter: an allow-list of fields per vendor, with a unit test that fails if a new field appears.
Proposed The POC handlers may implement the simulation inline rather than behind ports. Refactor to ports before the first real integration.
6. Webhook standard (inbound)
- Endpoint: a dedicated path per vendor,
/webhooks/<vendor>, on a separate ingress with WAF rules and a body size limit. Use an IP allow-list only where the vendor publishes stable ranges.
- Authenticate: verify the vendor signature (HMAC-SHA256 or JWS) over the raw body with a constant-time compare. Reject if the timestamp differs from now by more than 300 s.
- Replay protection: insert
(vendor, event_id) into platform.webhook_receipts with a UNIQUE constraint. A duplicate returns 200 without reprocessing.
- Acknowledge fast: persist the raw event (encrypted if it holds PHI) and enqueue it, then return 2xx within 2 s. Business processing runs asynchronously.
- Order: never assume events arrive in order. Re-fetch the authoritative resource from the vendor API before changing state, or compare sequence numbers or versions.
- Rotation: support two active secrets during rotation, and log which one verified each event.
- Observability: record the counts of verified, rejected and duplicate events. Alert on a spike in signature failures. Never log the body.
7. Credentials & secrets
| Item | Standard |
| Path scheme | aws-sm://breezrx/{env}/{domain}/{name} where env ∈ dev, stage, prod. These are placeholders; nothing exists yet |
| Delivery to pods | External Secrets Operator → Kubernetes Secret (encrypted with a KMS envelope) → environment or file mount. Workload identity through IRSA or EKS Pod Identity. No long-lived AWS keys |
| Rotation | 90 days or vendor maximum; webhook secrets support two active values; rotation runbook per integration |
| Separation | Sandbox and production credentials live in different AWS accounts. Developers never hold production credentials |
| Detection | Secret scanning in pre-commit and CI; push protection; alert on use of a credential outside its expected workload |
| POC | No secrets are needed or used. The Compose file must not reference real keys |
8. Vendor due diligence checklist
- Will the vendor handle PHI? If so, a BAA must be signed before any PHI flows. The specific services and configurations must be covered.
- Security posture evidence: SOC 2 Type II report or equivalent (ISO 27001), pentest summary, subprocessor list.
- Data residency (US), retention and deletion on termination, breach notification timeline.
- For healthcare networks: certifications required to join (for example eRx network certification).
- Payment: category underwriting approval in writing; restrictions on descriptors and metadata.
- Exit plan: data export format; how hard it would be to switch to an alternative.
- Remember that a BAA is not enough. Our own configuration, access control and minimization still decide whether we are compliant.
9. Acceptance evidence template
Integration: INT-XX-NN Owner: <name> Date: YYYY-MM-DD
[ ] Contract / BAA / DPA reference (document ID in the contract system, not the file)
[ ] Data flow diagram + field allow-list reviewed by privacy
[ ] Sandbox contract tests green (CI run URL)
[ ] Webhook signature, replay and out-of-order tests green
[ ] Failure-mode game day performed (notes link)
[ ] Secrets provisioned at the placeholder path; rotation tested
[ ] Monitoring dashboards and alerts live
[ ] Runbook published; on-call trained
[ ] Security review sign-off
[ ] Status moved to Live in this register, with a change-log entry
10. Integration sequencing
Before MVP
INT-PL-02 secrets/KMS
INT-ID-01/02 identity + MFA
INT-PH-01 pharmacy partner
INT-CL-01/02/04 telehealth, eRx, DUR
INT-PY-01/02 payments, tax
INT-PH-02/03 shipping, address
INT-CM-01/02/03 comms
INT-PL-01/03/04/05
Automation
INT-PL-06 saga engine
INT-CL-03 FHIR
INT-CL-05 labs (if protocol)
INT-PH-04 recalls
INT-DC-01/02 AV + assistive OCR
Scale
INT-PY-03 insurance/PBM
Multi-pharmacy routing
Additional states and partners
Critical path: pharmacy operator and launch states → telehealth/eRx partner → payment underwriting. See risks R-02, R-04 and R-06 in the technical design and the cloud prerequisites in the deployment plan.
11. Change log
| Date | Change | By |
| 2026-11-25 | Initial register: 26 integrations, all undecided/not live. POC mocks documented. | Architecture |