This Healthcare Search Application is a comprehensive web-based tool that allows users to search for hospitals in the United States and explore insurance plans using the HealthCare.gov Marketplace API. It provides detailed information about hospitals, including location, contact details, and ratings. Additionally, users can search for health and dental insurance plans based on their personal information and preferences.
- Search for hospitals by name
- Search for hospitals by address within a specified radius
- Display hospital information in an easy-to-read card format
- Expandable cards for additional hospital details
- Google Maps integration for address autocomplete and geocoding
- Filter hospitals based on emergency services, hospital type, and ownership
- Search for health and dental insurance plans
- Comprehensive form for user information, including:
- Zip Code
- Age
- Sex
- Eligibility factors (e.g., Medicare, Medicaid)
- Tobacco use
- Expected income
- Display of matching insurance plans with details
- Filter insurance plans based on metal level, plan type, issuer, premium range, deductible range, HSA eligibility, and national network coverage
- Responsive design for various screen sizes
- Server-side searching of a comprehensive hospital database
- Integration with the Marketplace API for insurance plan data
- Advanced filtering options for both hospitals and insurance plans
- Frontend:
- React.js
- Material-UI (MUI) for styling and components
- Google Maps JavaScript API for address autocomplete
- Backend:
- Node.js
- Express.js
- Data:
- CSV file containing hospital information
- Marketplace API for insurance plan data
- Back4App for county data
Before you begin, ensure you have the following installed:
- Node.js (v14.0.0 or later)
- npm (v6.0.0 or later)
-
Clone the repository:
git clone https://github.com/yourusername/healthcare-search-application.git cd healthcare-search-application -
Install dependencies:
npm install -
Create a
.envfile in the root directory and add the following:REACT_APP_GOOGLE_MAPS_API_KEY=your_google_maps_api_key_here MARKETPLACE_CMS_API_KEY=your_marketplace_api_key_here BACK4APP_APP_ID_KEY=your_back4app_app_id_here BACK4APP_API_KEY=your_back4app_api_key_here -
Ensure the
Hospital_General_Information.csvfile is in the root directory of the project.
-
Start the backend server and frontend development server:
npm run dev -
Open your browser and navigate to
http://localhost:3000to use the application.
- Choose between "Hospital Search" or "Insurance Search" using the main tabs.
- For Hospital Search:
- Choose between "Search by Name" or "Search by Address"
- For name search, enter a hospital name or part of a name
- For address search, enter an address and specify a radius in miles
- Use the filter options to refine your search results
- View the list of hospitals matching your search criteria
- Click on a hospital card to expand and view additional information
- For Insurance Search:
- Fill out the form with your personal information and preferences
- Click "Search Plans" to view matching insurance plans
- Use the filter options to refine your search results
- Review the list of plans with their details
This application uses the HealthCare.gov Marketplace API to search for insurance plans. The main endpoint used is:
POST /api/v1/plans/search
The request body includes:
- Household information (income, people, etc.)
- Market type
- Place (state, zipcode, countyfips)
- Year
For detailed API documentation, visit the Marketplace API Documentation.
The application uses Back4App to fetch county data for the United States. This data is used in conjunction with the Marketplace API to provide accurate location-based insurance plan searches.
Contributions to improve the Healthcare Search Application are welcome. Please follow these steps:
- Fork the repository
- Create a new branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE.md file for details.
- Hospital data provided by the Centers for Medicare & Medicaid Services
- Icons and components provided by Material-UI
- Google Maps JavaScript API for address autocomplete and geocoding
- HealthCare.gov Marketplace API for insurance plan data
- Back4App for providing county data