common data
This commit is contained in:
@@ -286,6 +286,20 @@ def get_web_contents():
|
||||
return jsonify(result)
|
||||
|
||||
#===================================================
|
||||
# Common Data
|
||||
#=====================================================
|
||||
@api.route('/panel/common/practice', methods=['POST'])
|
||||
# @token_required
|
||||
def common_practice():
|
||||
# Call the dashboard service
|
||||
data = request.get_json()
|
||||
logger.info(f"Route common Practice Data ==>>>> {data}")
|
||||
result = CommonDataService.available_practices(data)
|
||||
return jsonify(result)
|
||||
#===================================================
|
||||
|
||||
CommonDataService
|
||||
|
||||
# # EligibilityCheck Endpoint
|
||||
# @api.route("/EligibilityCheck", methods=["POST"])
|
||||
# @jwt_required()
|
||||
|
||||
@@ -21,7 +21,7 @@ class CommonDataService(BaseService):
|
||||
|
||||
available_practices_data = {
|
||||
{
|
||||
"type": "Physician",
|
||||
"practice": "Physician",
|
||||
"specialties": [
|
||||
"General Practitioner",
|
||||
"Cardiologist",
|
||||
@@ -36,7 +36,7 @@ class CommonDataService(BaseService):
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "Nurse",
|
||||
"practice": "Nurse",
|
||||
"specialties": [
|
||||
"Registered Nurse (RN)",
|
||||
"Nurse Practitioner (NP)",
|
||||
@@ -46,7 +46,7 @@ class CommonDataService(BaseService):
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "Dentist",
|
||||
"practice": "Dentist",
|
||||
"specialties": [
|
||||
"General Dentist",
|
||||
"Orthodontist",
|
||||
@@ -56,7 +56,7 @@ class CommonDataService(BaseService):
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "Pharmacist",
|
||||
"practice": "Pharmacist",
|
||||
"specialties": [
|
||||
"Retail Pharmacist",
|
||||
"Hospital Pharmacist",
|
||||
@@ -65,7 +65,7 @@ class CommonDataService(BaseService):
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "Therapist",
|
||||
"practice": "Therapist",
|
||||
"specialties": [
|
||||
"Physical Therapist (PT)",
|
||||
"Occupational Therapist (OT)",
|
||||
@@ -75,7 +75,7 @@ class CommonDataService(BaseService):
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "Other Allied Health Professional",
|
||||
"practice": "Other Allied Health Professional",
|
||||
"specialties": [
|
||||
"Medical Assistant",
|
||||
"Phlebotomist",
|
||||
|
||||
Reference in New Issue
Block a user