Medical
Facilitate efficient and automated insurance claims processes between Healthcare Providers and Insurance Companies.
Overview
The API’s in this documentation has been designed to seamlessly integrate with Yasmina’s platform, enabling a smooth and efficient exchange of medical insurance-related data and functionalities. Whether you’re looking to request or manage policies, handle claims, or access customer information, this API provides a robust and secure interface. With clear endpoints and comprehensive support, our goal is to simplify the integration process and ensure that our client can leverage the full potential of our insurance services with minimal effort.
Steps
Below is the basic journey to requesting your first insurance(s)
Authorization
Get a an authorization token to use all our API’s. Click for more details.
Or go directly to Authorization API
Create a company
Create a company record. The company is the one that wants to give insurance for their employees. Click for more details.
Or go directly to Create company API
Choose a package
List and then choose the medical insurance package that you want the employees to get. Click for more details.
Or go directly to List categories
Request insurance for the employees
Select the employees of the company that are going to get insurances and pick a package for each. Click for more details.
Or go directly to Request policies API
Health declaration
Here we have two approaches. Either the Company admins fills the medical declaration form, or we dispatch the health declaration to the employees for them to fill. Click for more details
Or go directly to Dispatch Medical Forms API
Payment
Go the payment link. We will generate that for you.
Authorization
To access any of our API’s. You need to authorize yourself. We are using OAuth 2.0 client credentials to achieve that.
You will need client_key
and client_secret
. You can get these from your portal.
After making the request, you will get access_token in the response. Example
Use the access_token and supply in the headers like this Authorization: Bearer <access_token>
Go to the following link to use the Authorization API.
Creating a Company record
After acquiring an access_token, you can begin using the APIs. Before you produce policies for a company, you must create a company record. After creating the company record, you can request to issue policies to the employees of that company.
The POST companies API, will require few fields that define details of the company such as Email, Phone etc…
It will return a response with a unique identifier (id). Here is an example of the response from the POST companies API.
You can also visit the List companies API to show all companies you’ve created
List available packages
After creating a company record, you can list available packages to the company. Check out the Categories API. This gives you a list of available insurance categories.
- The Insurance provider PDF
- Contains an overview picture of what is provided by the Insurance provider
- The translations
- The translations includes keys that map to the instructional text in Arabic and English that were provided by the insurance provider.
- The categories
- The categories items uses these keys and gives the coverage values
Each employee can have a separate package. Coverage values can either be a number (the amount), or a boolean (whether it’s covered or not), or a text (the type of coverage) Each item in the categories has a category
property. This is an important property as it is what you will need to provide when you issue policies. Notice the category field in the following sample of the categories response API.
Request insurance policies
To issue policies, you need to execute the Request policies API. The API takes two fields. The company_id as referenced above. And an array called insured. The insured are the employees that the company wants to request insurance for.policies Here is an example of a payload you would send
iqama_id
as he is a Non-Saudi while the other we supply a nationality_id
as he is Saudi.category
that we are supplying is what was returned from the Categories API
HR declaration forms
The companies that have requested insurance needs to be supply the insurance provider with Medical forms. These are mandatory for insurance providers to know past medical histories.
Yasmina offers two methods for submitting these forms:
-
Fill Medical Forms: Company administrators fill out the forms on behalf of the employees.
-
Dispatch Medical Forms: Company administrators dispatch the forms to employees, who then complete them individually.
Detailed explanations for each method are provided below.
Fill medical forms
Fill medical forms
The fill medical forms allows the company admin to do so on behalf of the employers of the company. It takes two fields of which both are objects all_employees
and ids_or_emails
.
The idea behind the two fields, is to allow the Company admin to select the default answers for all employees, and then override the answers for specific employees.
For example, let us say that all employees except 1 (for example employee with email [email protected]), never had surgeries before, we can declare the answer No
on the surgery question in the all_employees field, but declare Yes
for the other employee.employee
Here’s an example of such case
Check out the Fill medical forms API docs for all the supported props.
Dispatch Medical forms
Dispatch Medical forms
In this method, the Company admin puts a list of employees (emails, nationality ids, or Iqama ids). Yasmina then dispatches the medical form to each employee on email.
The employees will get a link to fill the forms themselves.
You can check the Dispatch Medical Form API
You can put other components inside Accordions.
Payment
Yasmina will supply a payment link of which your clients can pay for the insurance. You must share this link in your platform.