Technical appendix
Technical view of the Twinome demo
only what was allowed
Shared health view
/api/passport/passport_jsmith_2026/resources?scopes=passport.summary.read,medications.read,pgx.summary.read,decisions.read,opportunities.read&purpose=treatmentApps and care teams ask for specific information and a reason. Twinome only returns the parts the person allowed and the source data permits.
each source has limits
Connected sources
missing data is not proof
Source health
- observableUser medication entryThe user may know facts no source contains, but unreported events remain unknown.
- limited-windowNorthstar Patient Access APINo claim does not mean no medication use; it may mean cash payment, another payer, or no coverage.
- observableConsumer genomic data uploadConsumer genomic data may not resolve every pharmacogene or clinical factor and may need confirmation before a medication decision.
- limited-window23andMe raw data uploadMissing or unsupported loci must remain unresolved; Twinome never fills missing genotype as normal.
- limited-windowApple Health / HealthKit mock connectorNo HealthKit sample may mean no data, denied data, limited history, device non-use, or sync failure.
minimum necessary package
Partner request demo
identity and medication basics
Your Twinome profile
available when care happens
Apple Wallet pass
TwinomeMedicationPassport
Reduced clopidogrel activation flag. Avoid treating old codeine entry as active until reconciled.
scan and review
Clinician snapshot
- Active medications first: Sertraline, Clopidogrel, Metformin
- Severe allergy: Penicillin / Anaphylaxis
- PGx notes: CYP2C19 Intermediate metabolizer; CYP2D6 Poor metabolizer; SLCO1B1 Normal function
- Override capture: reason, practitioner, organization, outcome window
permission plus source rules
Privacy controls
Blocked by source policy policy_src_payer_api.
what is active, old, or uncertain
Medication list with history
| Medication | State | Rx state | Dose | Evidence quality | PGx |
|---|---|---|---|---|---|
| SertralineSSRI antidepressant | active | taken | 50 mg oral once daily | authoritative-source-supported | CYP2D6, CYP2C19 |
| ClopidogrelAntiplatelet | active | dispensed | 75 mg oral once daily | authoritative-source-supported | CYP2C19 |
| CodeineOpioid analgesic | uncertain | unknown | unknown oral as needed, uncertain | unknown-conflicting | CYP2D6 |
| SimvastatinStatin | historical | stopped | 20 mg oral nightly | user-reported | SLCO1B1 |
| MetforminBiguanide | active | taken | 500 mg oral twice daily | user-reported | None |
source to checked fact
How data comes in
- User medication entryuser-entry / user-reported
- Northstar Patient Access APIpayer-api / authoritative-source-supported
- Consumer genomic data uploadconsumer-genotype / user-reported
- 23andMe raw data uploadconsumer-genotype / user-reported
- Apple Health / HealthKit mock connectorhealthkit / partner-source-supported
- Oura OAuth mock connectoroura / partner-source-supported
- Mercy SMART/FHIR launch mockehr-fhir / authoritative-source-supported
- Retail pharmacy fill feed mockpharmacy-feed / partner-source-supported
clinical and consumer stay separate
PGx handling
medication-relevant state
What changed
- recent-medication-startClopidogrel was dispensed within the last 30 days.
- unresolved-pgxPossible codeine exposure intersects with a clinical CYP2D6 poor metabolizer phenotype.
- cost-barrierUser reported missed metformin doses and cost friction.
- user-goal-changedUser explicitly asked Twinome to help explore weight-management options.
- recent-medication-startClopidogrel started or was dispensed recently.
- unresolved-pgxCodeine has uncertain status and PGx relevance.
Medication signals
What Twinome noticed, with reasons
Reduced clopidogrel activation risk
Your uploaded genomic data may be relevant to one current medication. Do not stop it yourself; ask a clinician whether confirmation is appropriate.
Possible codeine mismatch
One old medication may not belong on your active list. Confirming it helps avoid confusion in urgent care.
Access barrier may explain adherence
You reported missed doses and cost friction. Twinome can help you explore access support.
Helpful next steps
Suggestions that explain why they exist
- decision / shownA current medication may need clinician reviewYou have a source-supported clopidogrel episode and a clinical CYP2C19 result in your Passport.high
- opportunity / readyConfirm an old medicationYou entered codeine as an old medication and Twinome cannot verify active use from other sources.medium
- opportunity / exploredPrescription cost help may be usefulThis is based on your explicit report of cost friction, not a commercial audience query.medium
- opportunity / readyClinician-led weight-management care may be worth exploringYou explicitly asked for weight-management help; Twinome is not inferring a diagnosis from a medication.low
Review clopidogrel with a clinician
A current antiplatelet medication intersects with a verified clinical CYP2C19 result.
Confirm whether codeine is still active
A historical medication entry is uncertain and would matter in an emergency medication review.
Consumer genomic data confirmation may be useful for unresolved genes
The consumer genotype upload has a CYP2D6 copy-number gap while medication history contains possible opioid exposure.
Find a lower-cost way to fill metformin
Jordan reported missed doses and cost friction, so the problem is confirmed rather than inferred from claims.
relevance before routing
Action Engine
after Explore only
Fulfillment Router
A route can exist only after an opportunity is relevant and the user chooses to explore.
technical boundary
Commercial Firewall
The router cannot query restricted derived signals for prohibited commercial targeting.
run the company without spreadsheets
Internal Operations
decision to evidence
Outcomes Learning Loop
Monday walkthrough
Run the full platform loop
The runnable demo API returns the same loop shown here, including Medication Response Profile, compiled context, live clinical flags, DecisionObjects, action candidates, Wallet pass metadata, and audit events.
Audit and observability
Who accessed what, why, and when
- ConsentGrantedCreated Twinome identity and granted core treatment consent.J. Smith / treatment / 2026-08-21 14:31:00 UTC
- MedicationAddedAdded sertraline, metformin, and historical codeine entry.J. Smith / care-navigation / 2026-08-21 14:38:00 UTC
- PGxResultAddedImported consumer genomic data and kept unresolved genes clearly marked for confirmation.Twinome ingestion / treatment / 2026-08-22 15:04:00 UTC
- PassportConnectionCreatedConnected Oura as inbound-only; Oura can contribute observations but cannot read Passport data.Twinome Passport Connect / care-navigation / 2026-08-22 19:35:00 UTC
- PartnerAssertionReceivedReceived medication dose observation and preserved HealthKit observability limitations.HealthKit mock connector / treatment / 2026-08-22 19:52:00 UTC
- PassportAccessRequestedRequested scoped Passport resources from patient-presented QR share.Mercy Urgent Care / emergency / 2026-08-22 19:57:00 UTC
- DecisionGeneratedGenerated three DecisionObjects with evidence, source quality, and outcome windows.Twinome rules engine / treatment / 2026-08-22 20:15:00 UTC
- OpportunityGeneratedGenerated six OpportunityObjects after context and policy checks, before partner routing.Twinome opportunity engine / care-navigation / 2026-08-22 20:15:00 UTC
- RecommendationShownShowed prescription-cost opportunity because the user explicitly reported cost friction.Twinome recommendation layer / care-navigation / 2026-08-22 20:04:00 UTC
- PassGeneratedGenerated Apple Wallet-compatible Medication Passport package.Twinome Passport service / emergency / 2026-08-22 20:15:00 UTC
- WalletDeviceRegisteredRegistered Wallet device library identifier for future pass updates.Apple Wallet / emergency / 2026-08-22 20:02:00 UTC
- ClinicianSnapshotViewedPatient-presented scan opened limited clinician snapshot.Mercy Urgent Care / emergency / 2026-08-22 20:03:00 UTC
- ActionExploredExplored refill and access help for metformin.J. Smith / care-navigation / 2026-08-22 20:05:00 UTC
- FulfillmentRoutedRouted metformin savings after user explored the confirmed affordability opportunity.Twinome marketplace router / care-navigation / 2026-08-22 20:06:00 UTC
- OutcomeObservedLinked action exploration back to DecisionObject decision_metformin_access.Twinome outcomes service / care-navigation / 2026-08-22 20:07:00 UTC