SMS Pharma API
public
appointments > list
Public ViewSet for Appointment
Query Parameters
The following parameters should be included as part of a URL query string.
| Parameter | Description |
|---|---|
page | A page number within the paginated result set. |
per_page | Number of results to return per page. |
patient__practitioner | |
search | A search term. |
appointments > create
Public ViewSet for Appointment
Request Body
The request body should be a "application/json" encoded object, containing the following items.
| Parameter | Description |
|---|---|
patient required | |
next_appointment_date | |
hemoglobin_level required | |
ferritin_level | |
observations |
appointments > read
Public ViewSet for Appointment
Path Parameters
The following parameters should be included in the URL path.
| Parameter | Description |
|---|---|
id required |
Query Parameters
The following parameters should be included as part of a URL query string.
| Parameter | Description |
|---|---|
patient__practitioner | |
search | A search term. |
auth > access
ViewSet for Auth
Request Body
The request body should be a "application/json" encoded object, containing the following items.
| Parameter | Description |
|---|---|
email required | |
password required |
auth > refresh
ViewSet for Auth
Request Body
The request body should be a "application/json" encoded object, containing the following items.
| Parameter | Description |
|---|---|
refresh required |
cities > list
Public viewset for City
Query Parameters
The following parameters should be included as part of a URL query string.
| Parameter | Description |
|---|---|
page | A page number within the paginated result set. |
per_page | Number of results to return per page. |
search | A search term. |
hospitals > list
Public viewset for Hospital
Query Parameters
The following parameters should be included as part of a URL query string.
| Parameter | Description |
|---|---|
page | A page number within the paginated result set. |
per_page | Number of results to return per page. |
city | |
search | A search term. |
hospitals > create
Public viewset for Hospital
Request Body
The request body should be a "application/json" encoded object, containing the following items.
| Parameter | Description |
|---|---|
city required | |
name required |
password > confirm
ViewSet for Passwords
Request Body
The request body should be a "application/json" encoded object, containing the following items.
| Parameter | Description |
|---|---|
user_id required | |
token required | |
password required |
password > reset
ViewSet for Passwords
Request Body
The request body should be a "application/json" encoded object, containing the following items.
| Parameter | Description |
|---|---|
email required |
patients > list
Viewset for Patients
Query Parameters
The following parameters should be included as part of a URL query string.
| Parameter | Description |
|---|---|
page | A page number within the paginated result set. |
per_page | Number of results to return per page. |
practitioner | |
search | A search term. |
patients > create
Viewset for Patients
Request Body
The request body should be a "application/json" encoded object, containing the following items.
| Parameter | Description |
|---|---|
practitioner required | |
first_name required | |
last_name_initial required | |
age required | |
gender required |
patients > read
Viewset for Patients
Path Parameters
The following parameters should be included in the URL path.
| Parameter | Description |
|---|---|
id required |
Query Parameters
The following parameters should be included as part of a URL query string.
| Parameter | Description |
|---|---|
practitioner | |
search | A search term. |
practitioners > list
Public viewset for Practitioners
Query Parameters
The following parameters should be included as part of a URL query string.
| Parameter | Description |
|---|---|
page | A page number within the paginated result set. |
per_page | Number of results to return per page. |
sales_representative | |
is_approved | |
search | A search term. |
practitioners > create
Public viewset for Practitioners
Request Body
The request body should be a "application/json" encoded object, containing the following items.
| Parameter | Description |
|---|---|
first_name required | |
father_last_name required | |
mother_last_name | |
email required | |
city required | |
hospital required | |
sales_representative required | |
specialty required | |
medical_license required | |
phone_number required | |
password required |
practitioners > verify
Public viewset for Practitioners
Request Body
The request body should be a "application/json" encoded object, containing the following items.
| Parameter | Description |
|---|---|
user_id required | |
token required |
practitioners > read
Public viewset for Practitioners
Path Parameters
The following parameters should be included in the URL path.
| Parameter | Description |
|---|---|
id required |
Query Parameters
The following parameters should be included as part of a URL query string.
| Parameter | Description |
|---|---|
sales_representative | |
is_approved | |
search | A search term. |
salesrepresentatives > list
Public viewset for Sales Representative with minimum data
Query Parameters
The following parameters should be included as part of a URL query string.
| Parameter | Description |
|---|---|
page | A page number within the paginated result set. |
per_page | Number of results to return per page. |
city | |
specialty | |
search | A search term. |
salesrepresentatives > create
Public viewset for Sales Representative with minimum data
Request Body
The request body should be a "application/json" encoded object, containing the following items.
| Parameter | Description |
|---|---|
email required | |
phone_number required | |
first_name required | |
father_last_name required | |
city required | |
password required | |
specialty required |
salesrepresentatives > read
Public viewset for Sales Representative with minimum data
Path Parameters
The following parameters should be included in the URL path.
| Parameter | Description |
|---|---|
id required |
Query Parameters
The following parameters should be included as part of a URL query string.
| Parameter | Description |
|---|---|
city | |
specialty | |
search | A search term. |
salesrepresentatives > update
Public viewset for Sales Representative with minimum data
Path Parameters
The following parameters should be included in the URL path.
| Parameter | Description |
|---|---|
id required |
Query Parameters
The following parameters should be included as part of a URL query string.
| Parameter | Description |
|---|---|
city | |
specialty | |
search | A search term. |
Request Body
The request body should be a "application/json" encoded object, containing the following items.
| Parameter | Description |
|---|---|
email required | |
phone_number required | |
first_name required | |
father_last_name required | |
city required | |
password required | |
specialty required |
salesrepresentatives > partial_update
Public viewset for Sales Representative with minimum data
Path Parameters
The following parameters should be included in the URL path.
| Parameter | Description |
|---|---|
id required |
Query Parameters
The following parameters should be included as part of a URL query string.
| Parameter | Description |
|---|---|
city | |
specialty | |
search | A search term. |
Request Body
The request body should be a "application/json" encoded object, containing the following items.
| Parameter | Description |
|---|---|
email | |
phone_number | |
first_name | |
father_last_name | |
city | |
password | |
specialty |
specialties > list
Public viewset for Specialties
Query Parameters
The following parameters should be included as part of a URL query string.
| Parameter | Description |
|---|---|
page | A page number within the paginated result set. |
per_page | Number of results to return per page. |
search | A search term. |
sales
practitioners > list
Sales representative viewset for Practitioner
Query Parameters
The following parameters should be included as part of a URL query string.
| Parameter | Description |
|---|---|
page | A page number within the paginated result set. |
per_page | Number of results to return per page. |
search | A search term. |