Things like improving wait times, managing referral flows between offices, patient navigation tools, those kinds of things don't really have a natural buyer.
— Dr. Ilan Shahin
Dr. Ilan Shahin is a family physician in Toronto who works in office-based primary care and urgent care, and advises health-tech startups through Building Block Health. In the second half of the 2010s, with two family-doctor friends, he co-founded ConsultLoop, an e-referral platform that carried referrals from family doctors' offices to specialists' offices across Ontario. It handled more than 28,000 referrals before it closed in February 2020, and his post-mortem, The Curious Case of ConsultLoop, is still one of the most candid accounts of building health tech in Ontario. Today Ontario Health is rolling out e-referral and central intake across the province. We talked about what he looks for in clinician-founders, why the products that connect offices have no natural buyer, what EMR integration looked like then and now, what AI could do for patients without a family doctor, and what he'd want from Ontario's provincial plans.
Dr. Shahin's views are his own and don't represent any organization he's affiliated with.
Edited for length and clarity.
Clinician and founder
Dr. Phua: Dr. Shahin, welcome to Agentic Healthcare. We're grateful for your time; we know you're a busy clinician, founder and advisor. For readers who don't know you yet, can you tell us about yourself and your career?
Dr. Shahin: I'm a graduate of McGill's MD/MBA program. I moved to Toronto for residency, and in that time I started to encounter the world of lean startups, incubators and design thinking. That opened my mind to how much medicine can improve in its delivery: both how it's delivered and what it's like to work in the system, and, of course, what it's like for patients on the receiving end.
Eventually I started ConsultLoop with two other founders who were family doctors and friends. It was an e-referral platform that ran for about four years in Ontario. It helped get referrals from family doctors' offices to specialists' offices, digitizing that journey. As part of that, we built a directory of over 5,000 specialists, with what they see, what they don't see and their wait times, which I think was a pretty valuable asset for the province.
After we wrapped up ConsultLoop, the pandemic came, and I was working in the emergency department at that point, so my focus really shifted there. Now I'm back in office-based primary care and urgent care. I spend quite a lot of time working on projects, because AI has made this a really exciting time for lone builder types, and I advise some startups that reach out and want to chat. I love doing that. So my career right now is a mix of clinical work, some advisory work and, of course, some tinkering. But the centrepiece of my experience is ConsultLoop, which I really cherish.
Dr. Phua: We're going to go deeper into ConsultLoop. First, what kind of advisory work do you do with startups? The clinician-founder is an interesting archetype: clinical experience informs product design, and vice versa.
Dr. Shahin: That mix is quite valuable, and it's something I enjoy bringing to the table. Sometimes I'm talking to a founder or a team whose experience is more on the clinical side, and bringing entrepreneurial experience is valuable there. It's one thing to have an insight that something could be good. It's another to take it to market, understand the trade-offs and understand the environment, having struggled with it.
On the other side, sometimes people who aren't clinicians come with ideas, but they're missing a little of the nuance of what things are like in a clinical environment. And not just what it's like to work there: now you have to sell into a clinical environment, and understand its workflows and its decision-making processes, and there's a lot of heterogeneity there too.
So having deep experience on both sides is, as you said, a relatively unique thing. My main focus is product design, with a sense of what the go-to-market process will be like.
Dr. Phua: Many clinicians in Ontario are excited about building something, say an AI copilot for the EMR. For physicians making that first leap, at the ideation stage, what are the most important lessons?
Dr. Shahin: One of the common things I see is over-indexing on their own experience and their own environments. An entrepreneur's job is to seek out the things they're assuming and try to validate them properly. You're searching for vulnerabilities. That's a different mindset from the one a lot of clinicians bring when they come with an idea, with that initial enthusiasm, almost a honeymoon phase. So getting out, talking to other people and seeing how generalizable these issues are is very important.
For a lot of them, it's about the product. But after that there's a sales process, and integration with other workflows you're not familiar with. That's where the company building happens. A little coaching on that side is always welcome. I wish we'd had more of it when we were doing our startup; that's where we got surprised in many ways. Clinicians need to dive into the full spectrum of what entrepreneurship really means.
Dr. Phua: Many clinician-founders say that crossing from clinician to founder feels less like a journey than a chasm, though it can be done with the right combination of luck, insight and execution.
ConsultLoop
Dr. Phua: Let's turn to ConsultLoop, the e-referral platform you ran in the second half of the 2010s. You wrote a candid retrospective about it, which got a lot of attention and which we've linked above. Can you summarize the experience for us: the challenges you had and the key lessons you learned?

Dr. Shahin: There were a lot of challenges, and depending on the day, a different one bubbles up. But a couple of real structural ones are worth addressing. The first was that, at the time, the lack of EMR integration was a real killer. We were able to get some traction, which I'm still proud of, but every implementation had to go through the clicks the EMR forced on the user, who was the medical admin. We didn't have doctors touching ConsultLoop. That was a very deliberate design choice.
ConsultLoop also falls into a category of products that are the connective tissue in the system. The system is designed so that everything is fragmented and delegated, which has its advantages from a system-management standpoint. At the same time, things like improving wait times, managing referral flows between offices and patient navigation tools don't really have a natural buyer, and that makes it pretty tough.
We'd talk to family doctors' offices and they'd say, this is great, this might save me a little time, but why isn't the specialist paying for this? Or why isn't the government paying for this? And for government, it was: this saves administrative work at the family doctor's office, so shouldn't they pay for it? It was a lot of very reasonable suggestions that someone else should be paying. That category of product suffers from that problem, especially in Ontario.

As a business, we were bootstrapped: three family-physician co-founders. I'm sure we made some mistakes along the way, and we definitely did, but the mistakes we made from a business standpoint could be overcome. And the traction we built shows we built a good product and got it out to be relied on in many offices, day in and day out. But fighting the EMR integration, and how hard it was to find a buyer, made it very difficult for us. I think those things remain, to some extent, today.
Dr. Phua: You closed ConsultLoop in February 2020, weeks before the pandemic made virtual visits normal. Today Ontario Health is rolling out e-referral and central intake province-wide. Looking back, was part of the challenge timing? Were you too early? Was the idea ahead of the technology available at the time?
Dr. Shahin: I haven't really thought of it that way. If we were building it today, taking the realities of the Ontario market out of it, we could definitely build a lot more and do things more simply, by reading the faxes, for example.
That said, at the time family doctors had to contact patients to tell them their specialist appointment time, and that created an opportunity to take away a lot of work. So I think the timing, relatively, was okay. If you did it today, you could probably do more interesting things than we were doing, which was basically shuffling paper from one office to the next and making sure it got there.
There's also a design distinction in what we were doing. We weren't building something where everyone has to be on the network for you to get value. We built it so that all referrals could run through the system, and we'd add some manual processing so that referrals to specialists outside our network were still digitized with the value preserved for the sending office and patient. A lot of our design and business decisions were about building a marketplace, and the business literature on that was very, very helpful to me at the time. Something like Ocean, which comes with government backing, has different challenges: a lot of advantages, but a lot of difficulties too.
But I'm not looking at the technology today and saying, wow, that really would have changed anything. A lot of the work is still in socializing what you're putting out there: a new process for communication between offices, which are siloed by their nature. That challenge hasn't really changed with the technology that's come up, although the technology perhaps affords some opportunities to make things a little cleaner and more seamless for the user.
The big elephant in this answer is integration with the EMR. The technology facilitates a lot of that today, and that's where things might have been better for us. But there's still a social side that it doesn't touch as well as I wish it would.
The EMR problem
Dr. Phua: Let me double-click on EMR integration. Today there are examples like Heidi, the AI scribe company from Australia, whose new agents can use the computer like a member of the care team, working through the EMR's own screens: an end run around APIs. That's close to the state of the art for foundation models, and it obviously didn't exist when you were building. What exactly were the integration challenges then? Was it cost on the EMR company's side? The cost and complexity of building the integration yourselves? Speed? A slow approval process? EMR integration is still a big implementation question for startups today; it's just evolved.

Dr. Shahin: At the time, EMRs were not hungry to integrate with anybody. Even getting in contact with them was difficult. I don't have my notes in front of me, but I believe we'd have had to cover the development costs on their side, and there would be a revenue-share agreement that would take quite a chunk of our margins. We tried to integrate with one EMR, which was very limited in what it could do, and not to the full extent of what we needed.
In a couple of our conversations with EMR providers, they said they could entertain it more if their clients were asking for it. But the clients weren't asking for it because it wasn't integrated with the EMR. And that shut the conversation down. That made it hard for the market to speak to the EMRs and make them move, and I don't think that has changed enough. That's the structural problem here that I think needs caretaking.
Dr. Phua: Funnily enough, that's our next question. Whenever you put layers of intermediation between the user of a product and the payer, the feedback loop between improving the product and revenue going up gets more complex, and the evolutionary pressure on the system gets weaker. In your post on the lone shopping cart, you write that AI is collapsing the cost of building, but the core structural problem remains: many problems have no natural payer, because the person experiencing the pain is too far removed from whoever owns the problem. With ConsultLoop, clinicians felt the pain of a bad referral system, but the problem sat with the EMR, a step removed from them. How big a problem is this right now, when so many clinicians are enthusiastically vibe coding their own tools?
Dr. Shahin: I think it's a huge problem, and since my time at ConsultLoop it has only gotten worse, because the magnitude of the opportunities has just blown up. What you're able to build right now, with AI as a building aid, is tremendous. And having to rely on EMR systems to play nice, so that you have the best data inputs for whatever you're building, is a really difficult thing.
I also look at the problem from the perspective of competition. In one of your previous posts, Dr. Loubani from Avaros put it really nicely: you have to be able to switch EMRs the next day for there to be the right competitive environment, where purchasing power speaks and you have something closer to perfect competition than the oligopoly we have right now. The picture I have in my mind is Winamp, and changing skins back in the day, where you could just swap whatever you wanted.
Dr. Phua: A classic millennial moment. Anyone under 35 is going to have no idea what that is.
Winamp was a popular music player of the late 1990s and 2000s. Its "skins" let you change its whole look in a click; the Internet Archive's Winamp Skin Museum keeps thousands of them.
Dr. Shahin: Exactly. That's where we should be striving, because if you could do that, there would be real pressure to open up the EMR's data world. We think of the EMR as a system of record, but it's a system of record that enables not just a system of work but the imagination of the clinician. At this stage, not to design the ecosystem and the market around that opportunity is such a waste.
On the provincial primary care medical record that's coming in Ontario, a lot of details are still coming out, and we have Bill S-5 [the federal Connected Care for Canadians Act]. We'll see how the market evolves. But we have to be very, very intentional about capturing the potential of this moment. We have to see EMRs as a category of entities that could enable a lot of value to be created by clinicians, and create a kind of golden age of inventiveness. But if the incentives aren't right, and if they're allowed to do things that are quite anti-competitive, it'll be very harmful to the health system: harm to patients, harm to taxpayers and harm to the people who work in the system. I feel very strongly about that.
Dr. Phua: One theme we hear from many founders is that requiring interoperability is important for keeping a healthy level of competition in the ecosystem. It sounds like you're aligned with that.
Dr. Shahin: Yes. I think about it every time I'm in my clinic, dealing with parts of the EMR that are clunky and full of friction, or picking up my phone to look something up for clinical decision support, because it isn't built into where my work actually happens. Good competition should slowly weed those things out. In this environment they just persist, and very expensively so.
A hundred thousand patients
Dr. Phua: Your writing moves between what's possible in a product and what happens to the system if tools like it are deployed at scale. For example, you've asked whether a handful of clinicians using AI could deliver parts of primary care to 100,000 people instead of 1,000. The shortage of primary care providers has been a major issue in Ontario and across Canada for decades. In some jurisdictions, including parts of Canada, patients chat asynchronously about simple, clinically constrained problems, say an uncomplicated UTI or nasal congestion. In principle, an AI-powered clinical platform could let a small number of providers deliver a large amount of that care, which would offload the physical clinics and open up time for complex patients who need it. The view of this blog is that a big part of the solution to Canada's healthcare crisis is a technology diffusion problem: if we simply diffused the technology that already exists, like AI-powered visits, many more people could get safe, effective, timely care. What could be possible here, in your view?
Dr. Shahin: When I describe that kind of transformational capitation ratio, I'm actually thinking about the work between visits. For simple visits, I don't know the magnitude of the work-shifting that would happen if you moved everything to AI, but it's definitely worth experimenting with. Even if it isn't totally positive at first, it's still a category of potential that requires working on.
Look at virtual health around 2010. There was a virtual ward that had a randomized trial; the trial failed, and so it got shut down. That's a huge mistake. There was tons of potential in the model and in being able to learn from it. I'd look at robotic surgery in a similar way. Maybe the cost outcomes aren't great in the beginning, but there's a role for robotics in surgery that needs to be discovered over a long time horizon.
Similarly for primary care: what could it do for individual visits? As you describe, I'd say there are standing orders that could be put out there. If you're reviewing a patient's chart and they have some chronic diseases: okay, your blood pressure is within certain limits, great, the medication will be re-prescribed, and we know what bloodwork you'll need on a regular basis. You can probably do a lot of this with technology facilitating the decisions physicians and patients make, rather than doing it through touchpoints all the time.

What inspires me in that thinking is that there's a 20% gap in cancer screening rates between patients who have a family doctor and patients who don't. I look at that and think, why are we accepting it, and saying the only solution is finding that patient a family doctor, which is a problem constrained by human resources? Technology could easily, easily solve this. That's where thinking about those big numbers comes in.
I also work in urgent care. A lot of people come in who have a family doctor but can't see them within three or four weeks, or their doctor is away, so they come to urgent care because they know it's open. I'm not so worried about continuity for those kinds of visits: go get care wherever, sure. And if it's an AI-aided visit that's safe, great. Primary care is the backbone of your care. What are your conditions? What are the next steps in your care? Do you understand them? How can you get the supports you need? Can that navigation journey be easier? These are problems that lend themselves very well to technology. But you need a commitment to experiment, discover and ideate, and that's hard to do within the constraints of a clinic that has to at least break even at the end of the month and is paid through the fee schedule. That runs counter to the spirit of what's required.
Provincial mandates
Dr. Phua: Take the idea you were gesturing at: an AI voice agent that tracks, from a central database, who hasn't had screening, and calls those people to remind them to book, maybe through a clinic that does nothing else. There are many gaps in the system that a small team of builders with a modest budget could close in principle. Meanwhile, the province is moving toward its own provincial primary care medical record. You've worked inside the system as a clinician and alongside it as a founder selling into OHIP clinics. What do you see as the opportunities and challenges of provincially driven mandates like the provincial primary care medical record and provincial e-referral?
Dr. Shahin: It's hard without knowing all the details of what's being proposed. But as I think about this stuff, I keep coming back to the idea of competition. You want the pieces you rely on to provide care to be at their best, for care to be at its best.
To me, the PCMR [the provincial primary care medical record] has a risk of just taking an oligopoly a step forward. And then: these are the requirements of the PCMR; there's new stuff you may need because there's new technology, but it doesn't fit the letter of what's required and what was funded. I think that would be a nightmare. Whatever you do to move the primary care system onto some new platform, if that's what it ends up being, and it's not clear yet how required participation will be, it should be such that there's the perfect competition Dr. Loubani referenced, and the right environment for integration and interoperability for the builder energy that's in this province. If it doesn't address those two things, I cannot argue for optimism.
As far as e-referral goes, that's basically a top-down process. It's not really the market speaking, which is fine; there's a time and place for that. ConsultLoop probably didn't work because the market had to speak, and it can't in the EMR environment. But I'd like to see more of an ecosystem approach to some of these things. Maybe there could be a few e-referral providers that try to provide value in different ways, through proprietary data on wait times, or directory work like the work we did. That might help uptake, because right now you have to go clinic to clinic and say, here, you've got to take this one solution, as opposed to: here are solutions competing for your time and your implementation energy, trying to be better so that you eventually say yes. The diffusion of the technology is different in those two scenarios.

Whenever the government is planning these sorts of things, it should be thinking at that level: not just what user interface it wants to deploy into a clinic, but what conditions for the market and the ecosystem capture the most value. As I said, that was maybe a big issue ten years ago, but with the potential that's there in the age of AI, it's only greater. And I'm not really seeing the signal that that's part of the plan, or part of the intentions of the plan.
Dr. Phua: So for you, interoperability, standards, easy data migration between EMRs and open APIs are what matter most for the health of the ecosystem. Is that a fair way to frame your view?
Dr. Shahin: That's on target. If you were able to get everybody onto one EMR, that would have some advantages and feel like a bit of a win. But in the long run it's a loss, because you're relinquishing the industrious energies we could otherwise harness through good competition. Cost is part of this too. EMRs are pretty expensive, and we might see their value collapse as they become commoditized infrastructure. But competition is the thing to pursue here, and when I say that, I'm talking about interoperability and data flows and all of that too. I've seen some people advocating for one EMR. It would feel like a win, but to me it just becomes another monopoly, which is a loss. It means we haven't learned the lesson of the last generation of digital health.
Dr. Phua: Thank you for that distillation, and for your time. Where can people find you, particularly if they'd like to work with you as an advisor?
Dr. Shahin: I'm on LinkedIn, and at buildingblockhealth.com, where I post some of my writing and some of the work I do. People can reach out to me there if they'd like to engage further.
LinkedIn: linkedin.com/in/ilan-shahin-md-mba-91573069
Building Block Health: buildingblockhealth.com
Medium: medium.com/@ilan.shahin



