Hedera Hashgraph Health Benefits App Demo

Dapp: Track Fitness
User Audience: Employees, Employer Benefit Managers, Health Insurance Providers, Fitness Centers, Occupational Therapists

Purpose

Track Fitness was built to make it easier for various participants in employee health incentive programs to share information and expedite payments.

Many employers that are partnered with health insurance firms offer incentives to employees to encourage the use of fitness centers and other health improvement-related facilities. These programs typically reimburse the employee after they provide proof of having used such a facility. These programs have a minimum criteria (such as 70% attendance in 90 days) that employees need to satisfy.  Unfortunately, many such benefits go underutilized because the burden of proof of attendance lies with the employee. The process of reimbursement is not only cumbersome, but often times the effort outweighs what is gained from completing the incentives; getting reimbursement necessitates acquiring monthly or quarterly statements from the fitness facilities, filling out paperwork with the benefits program, and then waiting for the reimbursement.  We believe that all participants in such programs would benefit from making this process seamless by providing all parties instant access to the data once certain criteria are met.

Dapp Description

The Track Fitness Dapp is centered around a smart contract that is activated based on the actions of users; if a user fulfills specified conditions, such as visiting the gym a certain number of times in a month, the contract is executed and the user is able to receive the payout.  The physical locations (Gyms) will be required to have the Track Fitness mobile/tablet app where a user can scan a QR code to confirm their attendance. All participants, including health insurance firms, employer benefits programs, fitness centers, and employees register on a common platform.  As a participating employee meets the criteria, the smart contract is executed, interested parties get notified, and payment due to the employee is able to be paid instantly. This contract can also be utilized by multiple organizations executing off the same event; a user can thus be rewarded by multiple organizations for executing the same task (for example, a gym member who completes a specified number of visits can be rewarded by both the gym’s internal rewards program as well as by the employers health benefit reimbursement program).

Track Fitness demonstrates how all three Hedera Hashgraph Network Services can be harnessed in tandem to create cutting-edge distributed applications.  We used the Hedera File Service to upload compiled Solidity bytecode to the network, the Smart Contract Service to deploy smart contracts and call smart contract functions, and the Cryptocurrency Service to monitor reward remittance by queuing user account balances in real time.  Track Fitness smart contracts were written in Solidity and compiled using Solc Compiler Version 0.4.25.  Track Fitness was built using HAPI API’s for both the crypto account and smart contracts.

This Demo Includes the Following Implementation Concepts

  • QR Codes Generation Mobile App: The application that is used by the user to get the information from Hedera and generate QR Codes specific to the information he wants to share.
  • Submitting requests on Hedera: Requests can be submitted to Hedera using its API. Any request processing requires a payer account, which provides required ‘fee’ to process the request.  This is handled using Hedera Crypto Services.
  • Information Storage in Hedera: Information of any kind can be stored in Hedera using Hedera File Services.
  • Information Retrieval from Hedera: Using Hedera Unique ID, the required information can be retrieved using File Services of Hedera.
  • Consensus among Hedera Nodes: When we submit any information into Hedera, it can only be processed once a consensus is reached among a two-thirds majority of Hedera Nodes. This is the core algorithm of Hedera that makes sure the submitted information reaches at least a two thirds majority of nodes and that they all agree on it.
  • Verifier Mobile App: The application which scans the specific QR Code and gets the answer from Hedera as either a simple confirmation or denial.

Operating the Dapp / System Workflow

  1. To participate, an Organization must create an account on the Track Fitness platform by entering their identifying information, a unique account ID, and an initial deposit of currency (HBars)
  2. The Organization then must establish a rewards program that provides concrete payouts to users for completing certain events
  3. Payout rules are then added to the rewards program, including a description of the event that must be completed and the payout amount
  4. When an Organization registers on the platform, they receive a unique ID and an associated QR code, which can then be physically placed at their location to be scanned by Users
  5. A User creates an account by entering their identifying information and a unique account ID
  6. Users are paid a set amount of HBars to view advertisements on the platform
  7. The User can then spend their currency in the rewards market, where HBars can be exchanged for a variety of rewards or a flat cash payout
  8. Upon completing an event, the User can claim rewards
  9. The User receives the reward of a specified amount of HBars

Hedera Services Used

  • cryptoTransfer: Initiates a transfer by submitting the transaction.
  • getAccountRecords: Retrieves the transactions record (fetched by Transaction ID) for an account by submitting the query.
  • cryptoGetBalance: Retrieves the balance for an account by submitting the query.
  • getAccountInfo: Retrieves the account information for an account by submitting the query.
  • getTransactionReceipts: Retrieves the transaction receipts for an account by Transaction ID which last for 180 seconds only for no fee.
devider

© 2005-2019 OpenCrowd Inc. New York