<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Aayush Vijay on Medium]]></title>
        <description><![CDATA[Stories by Aayush Vijay on Medium]]></description>
        <link>https://medium.com/@vijay.aayush26?source=rss-f50579616ae7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6iCREpLmEGqAKBksYy35Pg.jpeg</url>
            <title>Stories by Aayush Vijay on Medium</title>
            <link>https://medium.com/@vijay.aayush26?source=rss-f50579616ae7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 20:46:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vijay.aayush26/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Six Months at the National Health Authority: A Fellow’s Story Beyond the Startup Bubble]]></title>
            <link>https://medium.com/@vijay.aayush26/six-months-at-the-national-health-authority-a-fellows-story-beyond-the-startup-bubble-861cc79716d4?source=rss-f50579616ae7------2</link>
            <guid isPermaLink="false">https://medium.com/p/861cc79716d4</guid>
            <category><![CDATA[public-policy]]></category>
            <category><![CDATA[public-sector]]></category>
            <category><![CDATA[government]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[digital-health]]></category>
            <dc:creator><![CDATA[Aayush Vijay]]></dc:creator>
            <pubDate>Wed, 28 Jan 2026 06:44:28 GMT</pubDate>
            <atom:updated>2026-01-28T06:44:28.834Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rR84-eMZD8XX_8B7lqZxOQ.png" /></figure><p><strong>From Startups to Digital Public Infrastructure: What Working on UHI and ABDM Taught Me About Government Systems</strong></p><h3>From Startup Speed to Government Scale: My First Shift into Public Systems</h3><p>On 14 July 2025, I joined the National Health Authority as an International Innovation Corps Fellow. Until then, my entire professional life had been shaped by startups and SaaS platforms in the social impact space. I believed I understood scale, ambiguity, constraints, and stakeholder management.</p><p>What I did not fully understand was how different everything feels when you step into government.</p><p>In startups, speed feels like progress. Decisions feel clearly owned. Outcomes feel visible and measurable. In government systems, speed can break alignment, ownership is shared across many actors, and outcomes take time to surface. This difference did not hit me on day one. It revealed itself slowly, through everyday work and small but consistent differences.</p><h3>From Building SaaS Products to Working on India’s Digital Health Infrastructure</h3><p>Before joining NHA, I worked at Dhwani Rural Information Systems as an Associate Product Manager. The environment was familiar. You knew who owned what. You knew which engineer to speak to. If something broke, you fixed it. If something made sense, you shipped it.</p><p>At NHA, those assumptions did not always hold.</p><p>This was my first real exposure to digital health. I knew an ABHA number existed, but I did not understand what it actually did or how it connected citizens, hospitals, doctors, insurers, and government systems across the country. Terms like Ayushman Bharat Digital Mission, Unified Health Interface, Health Information Exchange and Consent Manager, and National Health Claims Exchange were new to me, not just as names, but as ways of thinking.</p><h3>What Digital Public Infrastructure Really Means?</h3><p>Digital Public Infrastructure, or DPI, sounds complex until you see it up close.</p><p>DPI is not an app you download or a single platform you log into. It is a set of shared digital rails that allow many independent players to work together without any one organisation owning the system. UPI is the easiest example. No single bank owns it, yet everyone benefits from it.</p><p>In health, DPI works the same way. ABDM is not trying to replace hospitals, startups, or insurers. It is trying to create shared infrastructure so all of them can work together safely and consistently. As a product manager, this changes the nature of the job. You are not designing features to attract users. You are designing systems so others can build on top of them without breaking trust.</p><h3>What Is UHI? Understanding the Unified Health Interface in Simple Terms</h3><p>The Unified Health Interface (UHI) is a protocol layer under ABDM that focuses on service discovery and transactions in healthcare.</p><p>Put simply, UHI tries to solve a basic problem. How does a citizen digitally find and access healthcare services across providers without being locked into one app or platform?</p><p>Just as UPI allows any app to move money between banks, UHI allows different consumer apps and provider systems to interact using common standards. No single app owns the user. No single hospital owns demand. The system works because everyone agrees on how discovery, booking, and fulfilment should happen.</p><p>In practice, this enables use cases like blood bank availability, PMJAY hospital discovery, and physical consultation booking in an interoperable way. Working on UHI taught me that the real challenge is not building features, but aligning incentives so multiple independent players adopt the same standards.</p><h3>Inside Government Product Teams: Alignment Matters More Than Autonomy</h3><p>This was my first government product role, and one early learning was that teams are rarely unified in the way startups expect. Product teams, technical teams, and operations often belong to different consulting firms, each operating within its own scope, timelines, and incentives.</p><p>Some teams think deeply about long-term sustainability. Others focus more on immediate deliverables and billing cycles. Aligning everyone takes time. Much of the product work here is not about solving a user problem directly, but about creating enough alignment for progress to happen at all.</p><p>At the same time, this environment exposed me to some exceptionally sharp minds. Many people I worked with had deep institutional memory, wide worldviews, and experience across domains far beyond health. Conversations often carried historical context and system-level thinking that I had not encountered in startup environments. Learning to work within hierarchy, including the culture of calling seniors “sir”, while still contributing meaningfully, became a valuable skill in itself.</p><h3>Product Management in Government vs Startups: How the Rules Change</h3><p>Startups create demand. Government systems respond to existing demand. Startups reward speed. Government systems reward alignment. Startups optimise for growth. Government systems optimise for coverage and trust.</p><p>As a PM on UHI, this meant spending less time on funnels and metrics and more time on coordination, reliability, and compliance. Traditional product frameworks still helped, but they did not fully apply. Judgement, sequencing, and stakeholder buy-in mattered more than speed.</p><h3>Working with Constant Ambiguity in Government Systems</h3><p>Ambiguity in government systems is not a phase. It is the default state.</p><p>Urgent work often appeared suddenly. Presentations and concept notes were prepared for important meetings. Then priorities shifted, events passed, and the work was no longer needed. Nothing was wrong with it. The context had simply changed.</p><p>This changed how I related to my work. In startups, effort is tied to visible outcomes. Here, effort is tied to readiness. You learn to do the work well without attaching your sense of progress to whether it gets used immediately.</p><p>Ambiguity also shows up in everyday ways. Tool access is uneven. Even basic tools like Jira are available only to selected people. AI usage varies widely. Practices that felt natural to me required patience and adjustment with others.</p><h3>What Daily Life Inside a Government Office Actually Looks Like</h3><p>The work environment itself shapes how work happens. I worked from one room with around 20 people. Noise, interruptions, and limited personal space made focused work harder. Seating arrangements reflected hierarchy, with rooms seen as more privileged than bays.</p><p>Many startup conveniences were missing. There were no coffee machines or relaxation areas. At the same time, sitting together had its advantages. Shared table snacks, casual office banter between fellows, and watching different teams work toward the same goal made relationship-building easier. Brainstorming often happened informally over coffee. A special shoutout to <a href="https://www.linkedin.com/company/bistrobyblinkit/">Bistro</a> by <a href="https://www.linkedin.com/company/letsblinkit/">Blinkit</a>, which became a constant for us.</p><p>Security is strict. Even something as basic as using a washroom requires outsiders to be registered and verified as visitors. These details may seem small, but they shape how time and urgency are perceived.</p><h3>When Digital Health Meets Reality: A Day at a Public Hospital OPD</h3><p>Visiting Ram Manohar Lohia Hospital made my work feel real. On a busy OPD morning, my colleague waited 30–40 minutes in an offline registration queue. I completed registration in about 11.5 seconds using Scan and Share. The contrast was sharp, but short-lived. We received queue numbers from the same pool and waited hours to see a doctor.</p><p>Digital systems remove friction. They do not remove overload.</p><p>Many people were there because private healthcare was unaffordable. Others came because public hospitals were trusted. A few months later, while distributing food outside the same hospital, I saw how many patients and attendants depended on free meals while waiting. This was a clear reflection of the financial conditions of people coming to public hospitals.</p><p>Overburdening is not just a hospital problem. It is a system design problem.</p><h3>Why India’s Public Hospitals Are Overburdened Beyond Patient Numbers</h3><p>Overburdening is not only about patient volume. It is also about how care is organised.</p><p>When primary care, referrals, diagnostics, follow-ups, and insurance processes operate in silos, patients default to large hospitals even for issues that could have been managed earlier. This concentrates load on a few hospitals and stretches them beyond capacity.</p><p>Continuum of care means that a patient’s journey should not restart at every step. When care flows smoothly across levels, hospitals stop being the first and only point of contact.</p><h3>How ABDM Is Building Digital Infrastructure to Support Continuum of Care</h3><p>ABDM does not try to solve this through one large system. It enables many systems to work together.</p><p>UHI supports service discovery and booking. HIE-CM enables consent-based data exchange. NHCX focuses on claims processing. Registries and Scan and Share reduce friction at entry points.</p><p>None of these solve overburdening alone. Together, they make the system smarter about where and how people enter care.</p><h3>What Global Digital Health Conversations Taught Me About Scale and Standards</h3><p>Attending the Open Digital Health Summit was overwhelming in the best way. Listening to experiences from Thailand, Sri Lanka, and Nepal made it clear that while contexts differ, the core challenges in digital health are the same everywhere. Clean data, interoperability, governance, and trust sit at the centre of every system, regardless of geography.</p><p>What stood out was how each country was approaching these challenges in its own way. Thailand’s use of AI for disease surveillance showed how connected data can directly support public health. Sri Lanka’s work on a national digital health blueprint felt closely aligned with India’s journey under ABDM. Nepal’s focus on governance and data-sharing capacity reinforced that technology can only scale when institutions and trust are in place.</p><p>The DPG Dialogues pushed my thinking beyond health. One idea stayed with me throughout the day. If UPI can move money, then any form of value can move, as long as everyone speaks the same digital language. Discussions around domain-driven design and Digital Public Goods reinforced that scale comes not from adding more technology, but from understanding the domain deeply, keeping systems open, and enabling ecosystem ownership. I walked away with more questions than answers, and that felt like the right place to be.</p><h3>Starting Over, Deliberately</h3><p>This role also meant moving from being a reporting manager to an associate under a project lead. On paper, it looks like a normal transition. In practice, it is humbling. You consciously start again from a lower point in the hierarchy. It is uncomfortable, but it accelerates learning in ways that comfort never does.</p><p>This shift forced me to look back at my own managerial style. Things I once felt confident about now looked different from the other side. I became more aware of habits that helped teams move faster, and also of patterns that may have limited space for others to think or act independently. Watching decisions unfold without being the final authority made me reflect on how I would have handled the same situations, and what I would change going forward.</p><p>The last six months have reshaped how I think about systems, incentives, leadership, and impact. There are six more months to go, and I now approach them with more humility, sharper self-awareness, and a clearer sense of the kind of leader I want to become.</p><h3><strong>Six Months Inside NHA, and What It Reset for Me</strong></h3><p>This experience has been made possible through the International Innovation Corps (IIC), an initiative supported by the University of Chicago Trust that enables young professionals to work closely with government institutions and understand public systems from the inside.</p><p>Working at the National Health Authority taught me that impact in government is slow, layered, and deeply human. Digital Public Infrastructure is not about flashy launches or rapid adoption curves. It is about building systems that quietly support people we rarely see and often forget.</p><p>And if you’ve read this far, here’s a small nudge.</p><p><strong>If you don’t have an ABHA number yet, consider creating one. It takes less time than ordering coffee, and it connects you to a health system being built in the background.</strong></p><p><strong>Not everything important arrives with a notification. Some changes just sit there, waiting for you to opt in.</strong></p><p><em>Note: The views expressed here are personal and do not represent the views of NHA or ABDM.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=861cc79716d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Laravel- Testing a Package using TestBench and PHPUnit]]></title>
            <link>https://medium.com/@vijay.aayush26/laravel-testing-a-package-using-testbench-and-phpunit-8428a617aa5f?source=rss-f50579616ae7------2</link>
            <guid isPermaLink="false">https://medium.com/p/8428a617aa5f</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Aayush Vijay]]></dc:creator>
            <pubDate>Wed, 24 May 2023 11:16:09 GMT</pubDate>
            <atom:updated>2023-05-24T11:16:09.336Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Laravel, PHP, Code" src="https://cdn-images-1.medium.com/max/1024/0*SRv-v9xMFYhKlDWW" /><figcaption>Photo by <a href="https://unsplash.com/ja/@benofthenorth?utm_source=medium&amp;utm_medium=referral">Ben Griffiths</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When developing a Laravel package, it is crucial to ensure that all the added functions for enhancing user experience can actually be used. One important aspect of package development is running test cases to verify the functionality and reduce the potential development time for users.</p><p>Recently, I came across a Laravel open source package called “<a href="https://github.com/luezoidtechnologies/laravel-core">laravel-core</a>,” which allows users to create simple CRUD operations in the Laravel framework within minutes, requiring only a few file creations and component configurations.</p><p>To ensure the reliability and robustness of the CRUD operations provided by the package, I decided to write test cases. Initially, I began looking for widely used PHPUnit test cases for testing Laravel web applications. However, after a few hours, I realized that it would be more effective to test the package in isolation, without introducing additional files or making the project unnecessarily complex.</p><p>In my search for suitable tools to test the package in isolation, I came across a package called “<a href="https://github.com/orchestral/testbench">orchestral/testbench</a>.” This Laravel package provides a testing helper specifically designed for package development. It offers a fixture app that facilitates testing your package, along with other features that simplify the process of writing tests.</p><p>Although the documentation for testbench is clear, it lacks practical examples, which can make it both easy and challenging to get started with testing using this tool.</p><p>In the following sections of this article, I will explain how to install Testbench and demonstrate its usage in conjunction with PHPUnit to thoroughly test all the routes and functions you have developed.</p><ol><li>Adding orchestral/testbench to your package’s composer.json :</li></ol><pre>composer require --dev &quot;orchestra/testbench&quot;</pre><p>2. Adding PHPUnit/PHPUnit to your package’s composer.json :</p><pre>composer require --dev phpunit/phpunit</pre><p>2. I created a new directory called tests under the examples directory of the laravel-core repository :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*nAhI1kN6aL0T1YG_OwpkGw.png" /><figcaption>Creating a new directory called tests under the examples directory</figcaption></figure><p>3. Adding the directory to the phpunit.xml file so that it can be directly tested using vendor/bin/phpunit <em>(assuming you have already added PHPUnit to your composer.json)</em> and declaring testing DB_CONNECTION and DB_DATABASE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vEEPY4EpapY1SHaTFOCXnQ.png" /><figcaption>Declaring the env variables for PHPUnit Test Cases</figcaption></figure><p>4. Making a base class TestCase.php which is extended to Orchestra/TestBench/TestCase instead of PHPUnit/Framework/TestCase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3XH6Qv8y7hH9ZgBW6Axo6w.png" /></figure><p>5. In the TestCase class, you’ll need to carry out several essential tasks. <em>Firstly, you must configure the environment for the fixture app, which serves as the foundation for testing. This involves setting up the necessary components, dependencies, and configurations required for accurate testing.</em></p><p><em>Secondly, it’s crucial to include the package provider of the package under evaluation. By adding the package provider, you ensure that the package’s functionality and features are properly loaded and accessible during the testing process.</em></p><p><em>Furthermore, defining routes plays a significant role in testing the package’s features. By specifying the routes within your TestCase class, you can simulate user interactions and verify the expected behavior of the package’s routes.</em></p><p><em>Lastly, database migrations are essential for data insertion during testing. By running the appropriate migrations within your testing environment, you can ensure that the necessary data structures and records are available for accurate testing.</em></p><p><em>By addressing these tasks within the TestCase class, you create a solid foundation for conducting comprehensive and reliable tests on your Laravel package.</em></p><p>6. Adding package provider under the getPackageProvider method (this is overriding of the function written in the Orchestra/TestBench/TestCase)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*mx2w3gTWLz3cL8gNBj2TyQ.png" /><figcaption>Adding package provider for the fixture app. Here $app is the app that is made using TestBench.</figcaption></figure><p>7. Adding a config file in <em>$app </em>environment where we would be defining the database and database connections. You can add any other things which is required by the package here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nTFKzkkEDXrV0emHyVHIQQ.png" /><figcaption>Adding the default database as “test” and database connections for “sqlite”</figcaption></figure><p>8. Defining routes that would be tested for the <em>$app (fixture app made by testbench)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nrLRbem1D5pKlejwEX1B4A.png" /><figcaption>Defining the routes of the fixture application</figcaption></figure><p>9. Defining the database migrations that would be used to make the tables under the sqlite connection in memory</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_oIMH0f_P-1yMDOK-RJFBg.png" /><figcaption>Defining the path for migrations for the fixture application</figcaption></figure><p>In this scenario, the loadMigrationsFrom($path) method was utilized to load the migrations from a separate directory where they were written. You can choose any directory where your migration files are located.</p><p>Additionally, the php artisan migrate command was executed directly from the code to create the necessary database and tables.</p><p><strong>Important note: There is a crucial aspect that you might overlook when referring to the TestBench documentation.</strong></p><ol><li>To ensure that the fixture app ($app) correctly recognizes the classes/files you want to use in the TestCase class, it is necessary to import them using require_once. This step informs the fixture app about the specific classes/files you are referencing.</li><li>It is important to import the files individually and specify the directory from which you are importing them. This ensures that the necessary files are properly included and accessible within the TestCase function.</li></ol><p>Example is as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*W5xb7DMd_z_QASU9kK75LQ.png" /><figcaption>Importing the files that are used</figcaption></figure><p>In this case, the MinionController and Minion Repository were utilized in the testing process. The Minion Repository is a separate entity that you can learn more about in the <a href="https://github.com/luezoidtechnologies/laravel-core">luezoid/laravel-core</a> package documentation.</p><p>Within the defined routes method, the MinionController and Minion Repository were likely used to handle specific functionality and interactions with the data. The repository pattern helps in separating the data access layer from the business logic, promoting code organization and maintainability.</p><p><strong>Going back to the steps of testing!</strong></p><p>10. I made a directory called Suite inside the /tests directory to store all my tests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*Oyiow-6OK_m2OGzai-myFg.png" /><figcaption>making a dir called /suite inside the examples/tests directory to store the tests</figcaption></figure><p>(You can see the reference of this directory in the phpunit.xml file too)</p><p><strong>Coding the test cases:</strong></p><p>Make a PHPUnit test class which extends to the TestCase file I created just now :</p><pre>class DeleteAPISuccessTest extends TestCase<br>{<br>    /**<br>     * A basic feature test example.<br>     */<br>    public function test_delete_minion()<br>    {<br>        $payload = [<br>            &#39;name&#39; =&gt; &#39;Stuart&#39;,<br>            &#39;totalEyes&#39; =&gt; 2,<br>            &#39;favouriteSound&#39; =&gt; &#39;Grrrrrrrrrrr&#39;,<br>            &#39;hasHairs&#39; =&gt; true,<br>        ];<br>        // Create a minion.<br>        $this-&gt;postJson(&#39;/api/minions&#39;, $payload);<br><br>        // Make the request.<br>        $response = $this-&gt;deleteJson(&#39;/api/minions/1&#39;);<br>        // Assert that the response is successful.<br>        $response-&gt;assertOk();<br>        // Assert that the minion is deleted.<br>        $response-&gt;assertJson([<br>            &#39;message&#39; =&gt;&quot;Resource deleted successfully&quot;,<br>            &#39;data&#39; =&gt; [<br>                &#39;id&#39; =&gt; 1,<br>                &#39;name&#39; =&gt; &#39;Stuart&#39;,<br>                &#39;totalEyes&#39; =&gt; 2,<br>                &#39;favouriteSound&#39; =&gt; &#39;Grrrrrrrrrrr&#39;,<br>                &#39;hasHairs&#39; =&gt; true<br>            ],<br>            &#39;type&#39; =&gt; null,<br>        ]);<br>    }</pre><p>Here, I am testing for posting the data and then deleting the same data that I made with the response that I am expecting.</p><p><strong>Here too like in the above case, we would be importing the important classes, files that are used to run the test case efficiently. Here, I would be importing the <em>TestCase.php class </em>and the <em>DeleteMinionRequest.php (Validation request) class through their respective files.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*g_hGfstt7ARZ4ie6TMUCoQ.png" /><figcaption>Importing the important files that are needed</figcaption></figure><p><strong>Important note:</strong></p><p><em>It is crucial to import each and every file that needs to be used during the test run using </em><em>require_once. This includes any requests, repositories, or models that have not been declared and are specific to the use case of the current test case being executed.</em></p><p><em>By using </em><em>require_once to import the necessary files, you ensure that all the required dependencies are properly included and accessible within the test environment. This step is essential to avoid any undefined class or file-related errors during the execution of the test case.</em></p><p><strong>That’s it!</strong></p><p><strong>You may now test the test cases using the following commands:</strong></p><pre>vendor/bin/phpunit</pre><pre>php artisan test</pre><p>You will find whether or not everything is working as expected or not.</p><p>Here is a screenshot of how my test cases performed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GWvX0SRmTOC2cnFuTJ5YZw.png" /><figcaption>All tests working fine and performing as they are expected to</figcaption></figure><blockquote>Remain optimistic and persistent when encountering challenges during the coding process. It is natural to face obstacles along the way, but don’t lose sight of your goal. Utilize effective debugging techniques at various checkpoints to identify and resolve issues.</blockquote><blockquote>Seek guidance from mentors or peers who can offer valuable insights and help you navigate through roadblocks. Engaging in discussions and brainstorming sessions can shed light on potential breakpoints and improve your understanding of the problem.</blockquote><blockquote>Embrace a proactive mindset, actively seeking solutions and leveraging your problem-solving skills. With determination and a collaborative approach, you can overcome coding challenges and find your way to success.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8428a617aa5f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>