SB2318 / UltimateHealth

🌟 UltimateHealth is an innovative open-source project that serves as an online library 📚 and article management application focused on health 🏥. ✨ UltimateHealth is ONE repository for trustable resources ✅ and reliable health insights 💡
MIT License
39 stars 82 forks source link

💡[FEATURE]: Create API for Storing Doctor Specializations. #76

Closed SB2318 closed 4 months ago

SB2318 commented 4 months ago

Is your feature request related to a problem? Please describe.

Create an API that can store a list of categories of specializations for various doctors. This API will allow users to access and update the list of specializations easily.

Describe the solution you'd like

Schema:{
    [
     {
      id: string,
      name: string,
      countOfExistingDoctors: number,
      doctor_ids:[ ],
      last_updated_at : date,
      created_at :  date,
      contributed_by: UserData
     }

  ]
}

example :[ "Cardiology", "Dermatology", "Pediatrics"]

rushiii3 commented 4 months ago

Hey @SB2318, i would like to give a try please assign me this task!

SB2318 commented 4 months ago

Hey @SB2318, i would like to give a try please assign me this task!

I have not seen any PR yet.

rushiii3 commented 4 months ago

Hey @SB2318, I have doubts:

  1. id: string is it a string like "Cardiology" or a MongoDB object like "664f8078c307087311e5259a"?
  2. contributed_by: UserData what does UserData refer to?
SB2318 commented 4 months ago

Hey @SB2318, I have doubts:

  1. id: string is it a string like "Cardiology" or a MongoDB object like "664f8078c307087311e5259a"?
  2. contributed_by: UserData what does UserData refer to?

I will explain

rushiii3 commented 4 months ago

Hey @SB2318, kindly update me as soon as possible.

SB2318 commented 4 months ago

Hey @SB2318, kindly update me as soon as possible.

id : random id for mongodb object , it is a primary key UserData : UserModel object (./backend/models/UserModel.js)

rushiii3 commented 4 months ago

Hey @SB2318, kindly check the PR #99

github-actions[bot] commented 4 months ago

Hello @SB2318! Your issue #76 has been closed. Thank you for your contribution!