AI prompts
base on Build a healthcare platform that streamlines patient registration, appointment scheduling, and medical records, and learn to implement complex forms and SMS notifications. <div align="center">
<br />
<a href="https://youtu.be/lEflo_sc82g?feature=shared" target="_blank">
<img src="https://github.com/adrianhajdin/healthcare/assets/151519281/a7dd73b6-93de-484d-84e0-e7f4e299167b" alt="Project Banner">
</a>
<br />
<div>
<img src="https://img.shields.io/badge/-Next_JS-black?style=for-the-badge&logoColor=white&logo=nextdotjs&color=000000" alt="nextdotjs" />
<img src="https://img.shields.io/badge/-TypeScript-black?style=for-the-badge&logoColor=white&logo=typescript&color=3178C6" alt="typescript" />
<img src="https://img.shields.io/badge/-Tailwind_CSS-black?style=for-the-badge&logoColor=white&logo=tailwindcss&color=06B6D4" alt="tailwindcss" />
<img src="https://img.shields.io/badge/-Appwrite-black?style=for-the-badge&logoColor=white&logo=appwrite&color=FD366E" alt="appwrite" />
</div>
<h3 align="center">A HealthCare Management System</h3>
<div align="center">
Build this project step by step with our detailed tutorial on <a href="https://www.youtube.com/@javascriptmastery/videos" target="_blank"><b>JavaScript Mastery</b></a> YouTube. Join the JSM family!
</div>
</div>
## π <a name="table">Table of Contents</a>
1. π€ [Introduction](#introduction)
2. βοΈ [Tech Stack](#tech-stack)
3. π [Features](#features)
4. π€Έ [Quick Start](#quick-start)
5. πΈοΈ [Snippets (Code to Copy)](#snippets)
6. π [Assets](#links)
7. π [More](#more)
## π¨ Tutorial
This repository contains the code corresponding to an in-depth tutorial available on our YouTube channel, <a href="https://www.youtube.com/@javascriptmastery/videos" target="_blank"><b>JavaScript Mastery</b></a>.
If you prefer visual learning, this is the perfect resource for you. Follow our tutorial to learn how to build projects like these step-by-step in a beginner-friendly manner!
<a href="https://youtu.be/lEflo_sc82g?feature=shared" target="_blank"><img src="https://github.com/sujatagunale/EasyRead/assets/151519281/1736fca5-a031-4854-8c09-bc110e3bc16d" /></a>
## <a name="introduction">π€ Introduction</a>
A healthcare patient management application that allows patients to easily register, book, and manage their appointments with doctors, featuring administrative tools for scheduling, confirming, and canceling appointments, along with SMS notifications, all built using Next.js.
If you're getting started and need assistance or face any bugs, join our active Discord community with over **34k+** members. It's a place where people help each other out.
<a href="https://discord.com/invite/n6EdbFJ" target="_blank"><img src="https://github.com/sujatagunale/EasyRead/assets/151519281/618f4872-1e10-42da-8213-1d69e486d02e" /></a>
## <a name="tech-stack">βοΈ Tech Stack</a>
- Next.js
- Appwrite
- Typescript
- TailwindCSS
- ShadCN
- Twilio
## <a name="features">π Features</a>
π **Register as a Patient**: Users can sign up and create a personal profile as a patient.
π **Book a New Appointment with Doctor**: Patients can schedule appointments with doctors at their convenience and can book multiple appointments.
π **Manage Appointments on Admin Side**: Administrators can efficiently view and handle all scheduled appointments.
π **Confirm/Schedule Appointment from Admin Side**: Admins can confirm and set appointment times to ensure they are properly scheduled.
π **Cancel Appointment from Admin Side**: Administrators have the ability to cancel any appointment as needed.
π **Send SMS on Appointment Confirmation**: Patients receive SMS notifications to confirm their appointment details.
π **Complete Responsiveness**: The application works seamlessly on all device types and screen sizes.
π **File Upload Using Appwrite Storage**: Users can upload and store files securely within the app using Appwrite storage services.
π **Manage and Track Application Performance Using Sentry**: The application uses Sentry to monitor and track its performance and detect any errors.
and many more, including code architecture and reusability
## <a name="quick-start">π€Έ Quick Start</a>
Follow these steps to set up the project locally on your machine.
**Prerequisites**
Make sure you have the following installed on your machine:
- [Git](https://git-scm.com/)
- [Node.js](https://nodejs.org/en)
- [npm](https://www.npmjs.com/) (Node Package Manager)
**Cloning the Repository**
```bash
git clone https://github.com/adrianhajdin/healthcare.git
cd healthcare
```
**Installation**
Install the project dependencies using npm:
```bash
npm install
```
**Set Up Environment Variables**
Create a new file named `.env.local` in the root of your project and add the following content:
```env
#APPWRITE
NEXT_PUBLIC_ENDPOINT=https://cloud.appwrite.io/v1
PROJECT_ID=
API_KEY=
DATABASE_ID=
PATIENT_COLLECTION_ID=
APPOINTMENT_COLLECTION_ID=
NEXT_PUBLIC_BUCKET_ID=
NEXT_PUBLIC_ADMIN_PASSKEY=111111
```
Replace the placeholder values with your actual Appwrite credentials. You can obtain these credentials by signing up on the [Appwrite website](https://appwrite.io/).
**Running the Project**
```bash
npm run dev
```
Open [http://localhost:3000](http://localhost:3000) in your browser to view the project.
## <a name="snippets">πΈοΈ Snippets</a>
<details>
<summary><code>tailwind.config.ts</code></summary>
```typescript
import type { Config } from "tailwindcss";
const { fontFamily } = require("tailwindcss/defaultTheme");
const config = {
darkMode: ["class"],
content: [
"./pages/**/*.{ts,tsx}",
"./components/**/*.{ts,tsx}",
"./app/**/*.{ts,tsx}",
"./src/**/*.{ts,tsx}",
],
prefix: "",
theme: {
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1400px",
},
},
extend: {
colors: {
green: {
500: "#24AE7C",
600: "#0D2A1F",
},
blue: {
500: "#79B5EC",
600: "#152432",
},
red: {
500: "#F37877",
600: "#3E1716",
700: "#F24E43",
},
light: {
200: "#E8E9E9",
},
dark: {
200: "#0D0F10",
300: "#131619",
400: "#1A1D21",
500: "#363A3D",
600: "#76828D",
700: "#ABB8C4",
},
},
fontFamily: {
sans: ["var(--font-sans)", ...fontFamily.sans],
},
backgroundImage: {
appointments: "url('/assets/images/appointments-bg.png')",
pending: "url('/assets/images/pending-bg.png')",
cancelled: "url('/assets/images/cancelled-bg.png')",
},
keyframes: {
"accordion-down": {
from: { height: "0" },
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: "0" },
},
"caret-blink": {
"0%,70%,100%": { opacity: "1" },
"20%,50%": { opacity: "0" },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
"caret-blink": "caret-blink 1.25s ease-out infinite",
},
},
},
plugins: [require("tailwindcss-animate")],
} satisfies Config;
export default config;
```
</details>
<details>
<summary><code>app/globals.css</code></summary>
```css
@tailwind base;
@tailwind components;
@tailwind utilities;
/* ========================================== TAILWIND STYLES */
@layer base {
/* Remove scrollbar */
.remove-scrollbar::-webkit-scrollbar {
width: 0px;
height: 0px;
border-radius: 0px;
}
.remove-scrollbar::-webkit-scrollbar-track {
background: transparent;
}
.remove-scrollbar::-webkit-scrollbar-thumb {
background: transparent;
border-radius: 0px;
}
.remove-scrollbar::-webkit-scrollbar-thumb:hover {
/* background: #1e2238; */
background: transparent;
}
}
@layer utilities {
/* ===== UTILITIES */
.sidebar {
@apply remove-scrollbar w-full max-w-72 flex-col overflow-auto bg-black-800 px-7 py-10;
}
.left-sidebar {
@apply hidden lg:flex;
}
.right-sidebar {
@apply hidden xl:flex;
}
.clip-text {
@apply bg-clip-text text-transparent;
}
.bg-image {
@apply bg-black-900 bg-light-rays bg-cover bg-no-repeat;
}
.header {
@apply text-32-bold md:text-36-bold;
}
.sub-header {
@apply text-18-bold md:text-24-bold;
}
.container {
@apply relative flex-1 overflow-y-auto px-[5%];
}
.sub-container {
@apply mx-auto flex size-full flex-col py-10;
}
.side-img {
@apply hidden h-full object-cover md:block;
}
.copyright {
@apply text-14-regular justify-items-end text-center text-dark-600 xl:text-left;
}
/* ==== SUCCESS */
.success-img {
@apply m-auto flex flex-1 flex-col items-center justify-between gap-10 py-10;
}
.request-details {
@apply flex w-full flex-col items-center gap-8 border-y-2 border-dark-400 py-8 md:w-fit md:flex-row;
}
/* ===== ADMIN */
.admin-header {
@apply sticky top-3 z-20 mx-3 flex items-center justify-between rounded-2xl bg-dark-200 px-[5%] py-5 shadow-lg xl:px-12;
}
.admin-main {
@apply flex flex-col items-center space-y-6 px-[5%] pb-12 xl:space-y-12 xl:px-12;
}
.admin-stat {
@apply flex w-full flex-col justify-between gap-5 sm:flex-row xl:gap-10;
}
/* ==== FORM */
.radio-group {
@apply flex h-full flex-1 items-center gap-2 rounded-md border border-dashed border-dark-500 bg-dark-400 p-3;
}
.checkbox-label {
@apply cursor-pointer text-sm font-medium text-dark-700 peer-disabled:cursor-not-allowed peer-disabled:opacity-70 md:leading-none;
}
/* ==== File Upload */
.file-upload {
@apply text-12-regular flex cursor-pointer flex-col items-center justify-center gap-3 rounded-md border border-dashed border-dark-500 bg-dark-400 p-5;
}
.file-upload_label {
@apply flex flex-col justify-center gap-2 text-center text-dark-600;
}
/* ==== Stat Card */
.stat-card {
@apply flex flex-1 flex-col gap-6 rounded-2xl bg-cover p-6 shadow-lg;
}
/* ==== Status Badge */
.status-badge {
@apply flex w-fit items-center gap-2 rounded-full px-4 py-2;
}
/* Data Table */
.data-table {
@apply z-10 w-full overflow-hidden rounded-lg border border-dark-400 shadow-lg;
}
.table-actions {
@apply flex w-full items-center justify-between space-x-2 p-4;
}
/* ===== ALIGNMENTS */
.flex-center {
@apply flex items-center justify-center;
}
.flex-between {
@apply flex items-center justify-between;
}
/* ===== TYPOGRAPHY */
.text-36-bold {
@apply text-[36px] leading-[40px] font-bold;
}
.text-24-bold {
@apply text-[24px] leading-[28px] font-bold;
}
.text-32-bold {
@apply text-[32px] leading-[36px] font-bold;
}
.text-18-bold {
@apply text-[18px] leading-[24px] font-bold;
}
.text-16-semibold {
@apply text-[16px] leading-[20px] font-semibold;
}
.text-16-regular {
@apply text-[16px] leading-[20px] font-normal;
}
.text-14-medium {
@apply text-[14px] leading-[18px] font-medium;
}
.text-14-regular {
@apply text-[14px] leading-[18px] font-normal;
}
.text-12-regular {
@apply text-[12px] leading-[16px] font-normal;
}
.text-12-semibold {
@apply text-[12px] leading-[16px] font-semibold;
}
/* ===== SHADCN OVERRIDES */
.shad-primary-btn {
@apply bg-green-500 text-white !important;
}
.shad-danger-btn {
@apply bg-red-700 text-white !important;
}
.shad-gray-btn {
@apply border border-dark-500 cursor-pointer bg-dark-400 text-white !important;
}
.shad-input-label {
@apply text-14-medium text-dark-700 !important;
}
.shad-input {
@apply bg-dark-400 placeholder:text-dark-600 border-dark-500 h-11 focus-visible:ring-0 focus-visible:ring-offset-0 !important;
}
.shad-input-icon {
@apply bg-dark-400 placeholder:text-dark-600 border-dark-500 h-11 focus-visible:ring-0 focus-visible:ring-offset-0 !important;
}
.shad-textArea {
@apply bg-dark-400 placeholder:text-dark-600 border-dark-500 focus-visible:ring-0 focus-visible:ring-offset-0 !important;
}
.shad-combobox-item {
@apply data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 !important;
}
.shad-combobox-trigger {
@apply h-11 !important;
}
.shad-select-trigger {
@apply bg-dark-400 placeholder:text-dark-600 border-dark-500 h-11 focus:ring-0 focus:ring-offset-0 !important;
}
.shad-select-content {
@apply bg-dark-400 border-dark-500 !important;
}
.shad-dialog {
@apply bg-dark-400 border-dark-500 !important;
}
.shad-dialog button {
@apply focus:ring-0 focus:ring-offset-0 focus-visible:border-none focus-visible:outline-none focus-visible:ring-transparent focus-visible:ring-offset-0 !important;
}
.shad-error {
@apply text-red-400 !important;
}
.shad-table {
@apply rounded-lg overflow-hidden !important;
}
.shad-table-row-header {
@apply border-b border-dark-400 text-light-200 hover:bg-transparent !important;
}
.shad-table-row {
@apply border-b border-dark-400 text-light-200 !important;
}
.shad-otp {
@apply w-full flex justify-between !important;
}
.shad-otp-slot {
@apply text-36-bold justify-center flex border border-dark-500 rounded-lg size-16 gap-4 !important;
}
.shad-alert-dialog {
@apply space-y-5 bg-dark-400 border-dark-500 outline-none !important;
}
.shad-sheet-content button {
@apply top-2 focus:ring-0 focus:ring-offset-0 focus-visible:border-none focus-visible:outline-none focus-visible:ring-transparent focus-visible:ring-offset-0 !important;
}
/* ===== REACT PHONE NUMBER INPUT OVERRIDES */
.input-phone {
@apply mt-2 h-11 rounded-md px-3 text-sm border bg-dark-400 placeholder:text-dark-600 border-dark-500 !important;
}
/* ===== REACT DATE PICKER OVERRIDES */
.date-picker {
@apply overflow-hidden border-transparent w-full placeholder:text-dark-600 h-11 text-14-medium rounded-md px-3 outline-none !important;
}
}
/* ===== REACT-DATEPICKER OVERRIDES */
.react-datepicker-wrapper.date-picker {
display: flex;
align-items: center;
}
.react-datepicker,
.react-datepicker__time,
.react-datepicker__header,
.react-datepicker__current-month,
.react-datepicker__day-name,
.react-datepicker__day,
.react-datepicker-time__header {
background-color: #1a1d21 !important;
border-color: #363a3d !important;
color: #abb8c4 !important;
}
.react-datepicker__current-month,
.react-datepicker__day-name,
.react-datepicker-time__header {
color: #ffffff !important;
}
.react-datepicker__triangle {
fill: #1a1d21 !important;
color: #1a1d21 !important;
stroke: #1a1d21 !important;
}
.react-datepicker__time-list-item:hover {
background-color: #363a3d !important;
}
.react-datepicker__input-container input {
background-color: #1a1d21 !important;
width: 100%;
outline: none;
}
.react-datepicker__day--selected {
background-color: #24ae7c !important;
color: #ffffff !important;
border-radius: 4px;
}
.react-datepicker__time-list-item--selected {
background-color: #24ae7c !important;
}
.react-datepicker__time-container {
border-left: 1px solid #363a3d !important;
}
.react-datepicker__time-list-item {
display: flex !important;
align-items: center !important;
}
/* ===== REACT PHONE NUMBER INPUT OVERRIDES */
.PhoneInputInput {
outline: none;
margin-left: 4px;
background: #1a1d21;
font-size: 14px;
font-weight: 500;
}
.PhoneInputInput::placeholder {
color: #1a1d21;
}
```
</details>
<details>
<summary><code>types/index.d.ts</code></summary>
```typescript
/* eslint-disable no-unused-vars */
declare type SearchParamProps = {
params: { [key: string]: string };
searchParams: { [key: string]: string | string[] | undefined };
};
declare type Gender = "Male" | "Female" | "Other";
declare type Status = "pending" | "scheduled" | "cancelled";
declare interface CreateUserParams {
name: string;
email: string;
phone: string;
}
declare interface User extends CreateUserParams {
$id: string;
}
declare interface RegisterUserParams extends CreateUserParams {
userId: string;
birthDate: Date;
gender: Gender;
address: string;
occupation: string;
emergencyContactName: string;
emergencyContactNumber: string;
primaryPhysician: string;
insuranceProvider: string;
insurancePolicyNumber: string;
allergies: string | undefined;
currentMedication: string | undefined;
familyMedicalHistory: string | undefined;
pastMedicalHistory: string | undefined;
identificationType: string | undefined;
identificationNumber: string | undefined;
identificationDocument: FormData | undefined;
privacyConsent: boolean;
}
declare type CreateAppointmentParams = {
userId: string;
patient: string;
primaryPhysician: string;
reason: string;
schedule: Date;
status: Status;
note: string | undefined;
};
declare type UpdateAppointmentParams = {
appointmentId: string;
userId: string;
appointment: Appointment;
type: string;
};
```
</details>
<details>
<summary><code>types/appwrite.types.ts</code></summary>
```typescript
import { Models } from "node-appwrite";
export interface Patient extends Models.Document {
userId: string;
name: string;
email: string;
phone: string;
birthDate: Date;
gender: Gender;
address: string;
occupation: string;
emergencyContactName: string;
emergencyContactNumber: string;
primaryPhysician: string;
insuranceProvider: string;
insurancePolicyNumber: string;
allergies: string | undefined;
currentMedication: string | undefined;
familyMedicalHistory: string | undefined;
pastMedicalHistory: string | undefined;
identificationType: string | undefined;
identificationNumber: string | undefined;
identificationDocument: FormData | undefined;
privacyConsent: boolean;
}
export interface Appointment extends Models.Document {
patient: Patient;
schedule: Date;
status: Status;
primaryPhysician: string;
reason: string;
note: string;
userId: string;
cancellationReason: string | null;
}
```
</details>
<details>
<summary><code>lib/utils.ts</code></summary>
```typescript
import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
export const parseStringify = (value: any) => JSON.parse(JSON.stringify(value));
export const convertFileToUrl = (file: File) => URL.createObjectURL(file);
// FORMAT DATE TIME
export const formatDateTime = (dateString: Date | string) => {
const dateTimeOptions: Intl.DateTimeFormatOptions = {
// weekday: "short", // abbreviated weekday name (e.g., 'Mon')
month: "short", // abbreviated month name (e.g., 'Oct')
day: "numeric", // numeric day of the month (e.g., '25')
year: "numeric", // numeric year (e.g., '2023')
hour: "numeric", // numeric hour (e.g., '8')
minute: "numeric", // numeric minute (e.g., '30')
hour12: true, // use 12-hour clock (true) or 24-hour clock (false)
};
const dateDayOptions: Intl.DateTimeFormatOptions = {
weekday: "short", // abbreviated weekday name (e.g., 'Mon')
year: "numeric", // numeric year (e.g., '2023')
month: "2-digit", // abbreviated month name (e.g., 'Oct')
day: "2-digit", // numeric day of the month (e.g., '25')
};
const dateOptions: Intl.DateTimeFormatOptions = {
month: "short", // abbreviated month name (e.g., 'Oct')
year: "numeric", // numeric year (e.g., '2023')
day: "numeric", // numeric day of the month (e.g., '25')
};
const timeOptions: Intl.DateTimeFormatOptions = {
hour: "numeric", // numeric hour (e.g., '8')
minute: "numeric", // numeric minute (e.g., '30')
hour12: true, // use 12-hour clock (true) or 24-hour clock (false)
};
const formattedDateTime: string = new Date(dateString).toLocaleString(
"en-US",
dateTimeOptions
);
const formattedDateDay: string = new Date(dateString).toLocaleString(
"en-US",
dateDayOptions
);
const formattedDate: string = new Date(dateString).toLocaleString(
"en-US",
dateOptions
);
const formattedTime: string = new Date(dateString).toLocaleString(
"en-US",
timeOptions
);
return {
dateTime: formattedDateTime,
dateDay: formattedDateDay,
dateOnly: formattedDate,
timeOnly: formattedTime,
};
};
export function encryptKey(passkey: string) {
return btoa(passkey);
}
export function decryptKey(passkey: string) {
return atob(passkey);
}
```
</details>
<details>
<summary><code>lib/validation.ts</code></summary>
```typescript
import { z } from "zod";
export const UserFormValidation = z.object({
name: z
.string()
.min(2, "Name must be at least 2 characters")
.max(50, "Name must be at most 50 characters"),
email: z.string().email("Invalid email address"),
phone: z
.string()
.refine((phone) => /^\+\d{10,15}$/.test(phone), "Invalid phone number"),
});
export const PatientFormValidation = z.object({
name: z
.string()
.min(2, "Name must be at least 2 characters")
.max(50, "Name must be at most 50 characters"),
email: z.string().email("Invalid email address"),
phone: z
.string()
.refine((phone) => /^\+\d{10,15}$/.test(phone), "Invalid phone number"),
birthDate: z.coerce.date(),
gender: z.enum(["Male", "Female", "Other"]),
address: z
.string()
.min(5, "Address must be at least 5 characters")
.max(500, "Address must be at most 500 characters"),
occupation: z
.string()
.min(2, "Occupation must be at least 2 characters")
.max(500, "Occupation must be at most 500 characters"),
emergencyContactName: z
.string()
.min(2, "Contact name must be at least 2 characters")
.max(50, "Contact name must be at most 50 characters"),
emergencyContactNumber: z
.string()
.refine(
(emergencyContactNumber) => /^\+\d{10,15}$/.test(emergencyContactNumber),
"Invalid phone number"
),
primaryPhysician: z.string().min(2, "Select at least one doctor"),
insuranceProvider: z
.string()
.min(2, "Insurance name must be at least 2 characters")
.max(50, "Insurance name must be at most 50 characters"),
insurancePolicyNumber: z
.string()
.min(2, "Policy number must be at least 2 characters")
.max(50, "Policy number must be at most 50 characters"),
allergies: z.string().optional(),
currentMedication: z.string().optional(),
familyMedicalHistory: z.string().optional(),
pastMedicalHistory: z.string().optional(),
identificationType: z.string().optional(),
identificationNumber: z.string().optional(),
identificationDocument: z.custom<File[]>().optional(),
treatmentConsent: z
.boolean()
.default(false)
.refine((value) => value === true, {
message: "You must consent to treatment in order to proceed",
}),
disclosureConsent: z
.boolean()
.default(false)
.refine((value) => value === true, {
message: "You must consent to disclosure in order to proceed",
}),
privacyConsent: z
.boolean()
.default(false)
.refine((value) => value === true, {
message: "You must consent to privacy in order to proceed",
}),
});
export const CreateAppointmentSchema = z.object({
primaryPhysician: z.string().min(2, "Select at least one doctor"),
schedule: z.coerce.date(),
reason: z
.string()
.min(2, "Reason must be at least 2 characters")
.max(500, "Reason must be at most 500 characters"),
note: z.string().optional(),
cancellationReason: z.string().optional(),
});
export const ScheduleAppointmentSchema = z.object({
primaryPhysician: z.string().min(2, "Select at least one doctor"),
schedule: z.coerce.date(),
reason: z.string().optional(),
note: z.string().optional(),
cancellationReason: z.string().optional(),
});
export const CancelAppointmentSchema = z.object({
primaryPhysician: z.string().min(2, "Select at least one doctor"),
schedule: z.coerce.date(),
reason: z.string().optional(),
note: z.string().optional(),
cancellationReason: z
.string()
.min(2, "Reason must be at least 2 characters")
.max(500, "Reason must be at most 500 characters"),
});
export function getAppointmentSchema(type: string) {
switch (type) {
case "create":
return CreateAppointmentSchema;
case "cancel":
return CancelAppointmentSchema;
default:
return ScheduleAppointmentSchema;
}
}
```
</details>
<details>
<summary><code>constants/index.ts</code></summary>
```typescript
export const GenderOptions = ["Male", "Female", "Other"];
export const PatientFormDefaultValues = {
firstName: "",
lastName: "",
email: "",
phone: "",
birthDate: new Date(Date.now()),
gender: "Male" as Gender,
address: "",
occupation: "",
emergencyContactName: "",
emergencyContactNumber: "",
primaryPhysician: "",
insuranceProvider: "",
insurancePolicyNumber: "",
allergies: "",
currentMedication: "",
familyMedicalHistory: "",
pastMedicalHistory: "",
identificationType: "Birth Certificate",
identificationNumber: "",
identificationDocument: [],
treatmentConsent: false,
disclosureConsent: false,
privacyConsent: false,
};
export const IdentificationTypes = [
"Birth Certificate",
"Driver's License",
"Medical Insurance Card/Policy",
"Military ID Card",
"National Identity Card",
"Passport",
"Resident Alien Card (Green Card)",
"Social Security Card",
"State ID Card",
"Student ID Card",
"Voter ID Card",
];
export const Doctors = [
{
image: "/assets/images/dr-green.png",
name: "John Green",
},
{
image: "/assets/images/dr-cameron.png",
name: "Leila Cameron",
},
{
image: "/assets/images/dr-livingston.png",
name: "David Livingston",
},
{
image: "/assets/images/dr-peter.png",
name: "Evan Peter",
},
{
image: "/assets/images/dr-powell.png",
name: "Jane Powell",
},
{
image: "/assets/images/dr-remirez.png",
name: "Alex Ramirez",
},
{
image: "/assets/images/dr-lee.png",
name: "Jasmine Lee",
},
{
image: "/assets/images/dr-cruz.png",
name: "Alyana Cruz",
},
{
image: "/assets/images/dr-sharma.png",
name: "Hardik Sharma",
},
];
export const StatusIcon = {
scheduled: "/assets/icons/check.svg",
pending: "/assets/icons/pending.svg",
cancelled: "/assets/icons/cancelled.svg",
};
```
</details>
## <a name="links">π Assets</a>
Public assets used in the project can be found [here](https://drive.google.com/file/d/1yGvWFeSaH1_-aiQ1gejT23lqz5979RKB/view?usp=sharing)
## <a name="more">π More</a>
**Advance your skills with Next.js 14 Pro Course**
Enjoyed creating this project? Dive deeper into our PRO courses for a richer learning adventure. They're packed with detailed explanations, cool features, and exercises to boost your skills. Give it a go!
<a href="https://jsmastery.pro/next14" target="_blank">
<img src="https://github.com/sujatagunale/EasyRead/assets/151519281/557837ce-f612-4530-ab24-189e75133c71" alt="Project Banner">
</a>
<br />
<br />
**Accelerate your professional journey with the Expert Training program**
And if you're hungry for more than just a course and want to understand how we learn and tackle tech challenges, hop into our personalized masterclass. We cover best practices, different web skills, and offer mentorship to boost your confidence. Let's learn and grow together!
<a href="https://www.jsmastery.pro/masterclass" target="_blank">
<img src="https://github.com/sujatagunale/EasyRead/assets/151519281/fed352ad-f27b-400d-9b8f-c7fe628acb84" alt="Project Banner">
</a>
#
", Assign "at most 3 tags" to the expected json: {"id":"11911","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"