The Courses API is used to fetch a list of courses available in the HPR (Health Professional Registry). You can filter the courses based on parameters provided in the payload.
-
system_of_medicine(Integer, optional) - The system of medicine for the course. Possible values include:1: Modern Medicine2: Dentistry3: Homoeopathy4: Ayurveda5: Unani6: Siddha7: Sowa-Rigpa
-
hpr_type(String, optional) - The type of professional. Can be:doctornurse
-
course_name(String, optional) - The name of the course.
fetch_courses(
system_of_medicine:,
hpr_type:,
course_name:
)To fetch courses with specific filters:
@client.fetch_courses(
system_of_medicine: 1,
hpr_type: "doctor",
course_name: "mbbs"
){
"coursesList": [
{
"identifier": 9573,
"name": "Mbbs",
"systemOfMedicine": 1,
"hprType": "doctor"
},
{
"identifier": 9574,
"name": "Mbbs",
"systemOfMedicine": 1,
"hprType": "doctor"
},
{
"identifier": 9575,
"name": "Mbbs",
"systemOfMedicine": 1,
"hprType": "doctor"
},
{
"identifier": 9579,
"name": "Mbbs",
"systemOfMedicine": 1,
"hprType": "doctor"
},
{
"identifier": 9580,
"name": "Mbbs",
"systemOfMedicine": 1,
"hprType": "doctor"
},
{
"identifier": 4060,
"name": "MBBS - Bachelor of Medicine and Bachelor of Surgery",
"systemOfMedicine": 1,
"hprType": "doctor"
}
],
"Message": null
}To fetch a list of all courses:
@client.fetch_courses{
"coursesList": [
{
"identifier": 9686,
"name": "",
"systemOfMedicine": 4,
"hprType": "doctor"
},
{
"identifier": 5517,
"name": "10th",
"systemOfMedicine": 0,
"hprType": "nurse"
},
{
"identifier": 4602,
"name": "10th",
"systemOfMedicine": 1,
"hprType": "doctor"
},
{
"identifier": 5518,
"name": "12th",
"systemOfMedicine": 0,
"hprType": "nurse"
},
{
"identifier": 4603,
"name": "12th",
"systemOfMedicine": 1,
"hprType": "doctor"
},
{
"identifier": 9728,
"name": "A",
"systemOfMedicine": 2,
"hprType": "doctor"
},
{
"identifier": 9564,
"name": "Yihj",
"systemOfMedicine": 7,
"hprType": "doctor"
}
],
"Message": null
}-
If you do not provide any parameters, the API will return a list of all available courses.
-
The
system_of_medicinefield indicates the system of medicine for the course. -
The
hpr_typefield specifies whether the course is for doctors or nurses. -
The
course_namefield allows for searching courses by name.