Inspiration

The pandemic is finally moving into its endemic phase, but no one could tell what lies in the future. In the midst of a chaotic world, another covid wave could hit us again just like what we experienced in the winter season.

Considering the government has recently run out of assistance funds and insurance providers no longer bear the obligations featuring free covid testing, implementing crypto payment portals to web appointments could significantly contribute to more take up in testing and fostering a safer environment in the event of another covid strike again.

What it does

Patients may sign up and prepay with Ethereum from their Metamask wallet for an RT-PCR test. All appointments scheduled are anonymously rendered with wallet addresses, a priceless feature that could lead to additional patient data privacy and handling if need be.

An admin panel will also load automatically when the account is connected to the contract owner. As an admin, the owner may set a different price for the tests and also withdraw the balance in a very user-friendly environment.

How we built it

Smart contracts were developed with Solidity (integrated with Chainlink Data Feeds) and tested/deployed via the invaluable tools featured by smart contract smartcontractkit/hardhat-starter-kit boilerplate code.

Front-end was built with Ethers.js, React, and Material-UI.

Challenges we ran into

Common spelling mistakes, syntax errors, and debugging have needlessly been holding us back a lot. For instance, a free getter function for a public array would work flawlessly on Remix and etherscan but it simply could not render frontend. Figuring out how the decimals would match up was another big issue solved. A Uint256 initialized in the constructor would malfunction when trying to change its value through a setter function. Integrating MockV3Aggregator to local network testing has also made our minds crack deep into it. We also realized writing our code with 1e18 would save us some issues over *10*18.

Accomplishments that we're proud of

Being new to the coding world, we pretty much had to dive into a lot of Google searches, tutorial watches, and readings. But what we were proud of is having everyone in the family work out a fun project which would certainly pave a good starting way for everyone on becoming an established developer.

What we learned

Never say give up. Once a project is started, just believe that all hurdles could be overcome. All Chainlink workshops are just fantastic to re-watch because there's so much info e.g. the gas saving custom errors, a safer way of transferring fund using the call function that returns a bool, etc, to learn from and applying to the coding.

What's next for Covidd-19 PCR Tests Appointment Scheduler

As we get more hands-on with the use cases, we plan on building more sophisticated projects and perhaps start proposing partnerships with some business owners. Blockchain is such amazing technology and we couldn't wait to explore more into it.

Built With

Share this project:

Updates