/
Excel File

Excel File

Preconditions

1. Create excel file

Create excel file in the following format: ExcelFileFormat.

Data Description

The table below presents data required for members' XML file generation using Excel files. The software expects all below fields to be available in the Excel file generated by the payer system. Note that the sequence of columns in an Excel file does not matter, the application only checks the column names.

Column Name
Description
Mandatory
SenderIDPayer the member belongs to.Yes
PersonUnifiedNumberUnique Number to uniquely identify the resident. This number is issued by the Ministry of Interior (MOI).Yes
PersonPassportNumber

Passport number, or if not available, the National ID.

This field is optional.

No
PersonNationalityCodePerson Nationality Code.No
PersonNationality

Member nationality. A list of allowed nationalities is published on Shafafiya.

Yes
PersonMiddleNameEn

Person Middle Name in English.

This field is optional.

No
PersonMiddleNameAr

Person Middle Name in Arabic.

This field is optional.

No
PersonLastNameEn

Person Last Name in English.

This field is optional.

No
PersonLastNameAr

Person Last Name in Arabic.

This field is optional.

No
PersonIsResidentFlag if the person is the UAE resident.Yes
PersonGender

Member's gender: 1 for male and 0 for female.

Yes
PersonFirstNameEn

Person First Name in English.

This field is optional.

No
PersonFirstNameAr

Person First Name in Arabic.

This field is optional.

No
PersonFirstName

Member's first name.

This field is optional.

No
PersonEmiratesIDNumber

Emirates ID Number of the member. If this number is unavailable, the following default values are accepted:

  • 000-0000-0000000-0 – UAE National without card;
  • 111-1111-1111111-1 – Expatriate resident without a card;
  • 222-2222-2222222-2 – Non-national, non-expat resident without a card;
  • 999-9999-9999999-9 – Unknown status, without a card.

GA will use the following logic if this field is blank in the data source provided by the payer:

  1. if a person nationality is Constants.EMIRATES_NATIONALITY, then GA will use the default value of Constants.NATIONAL_WITHOUT_CARD.
  2. Otherwise, GA will use the default value of Constants.EXPATRIATE_RESIDENT_WITHOUT_CARD.
Yes
PersonContactNumber

Telephone contact number provided by the member.

This field is optional.

No
PersonCityCodeCode of Residence City for the person.No
PersonCityMember’s actual city of residence.Yes
PersonBirthDate

Member's birth date. The expected formats are explained in section Supported Date Formats.

Yes
MemberRelationToMember ID of the principal member of the family.Yes
MemberRelation

Member's family relationship. The allowed values are:

1 – means Principal

2 – means Spouse

3 – means Child

4 – means Parent

5 – means Other

Yes
MemberIDMember insurance card number.Yes
ContractVATPercentValue Added Tax percent for the collected premium. Expected values are between 0 to 100.Yes
ContractVATTotal Value Added Tax amount appropriated for the collected premium.Yes
ContractTPAID

HAAD license number of TPA that administers member's contact.

Yes
ContractStartDate
Contract start date. 

GA expects date values in one of the following formats:

  1. DD/MM/YYYY, e.g 30/11/1999.
  2. D/M/YYYY, e.g 6/3/1999.
  3. YYYY-MM-DD, e.g. 1999-11-30.
  4. All above formats may have also hours + minutes, or hours + minutes + seconds in 12 hours or 24 hours format.
Yes
ContractRenewalDate

Contract latest renewal date. 

GA expects date values in one of the following formats:

  1. DD/MM/YYYY, e.g 30/11/1999.
  2. D/M/YYYY, e.g 6/3/1999.
  3. YYYY-MM-DD, e.g. 1999-11-30.
  4. All above formats may have also hours + minutes, or hours + minutes + seconds in 12 hours or 24 hours format.
Yes
ContractPolicyHolder

Contract policyholder that may have one of the following values:

1 — means Government,

2 — means Government related services,

3 — means Other,

4  — means Private companies with less than 1000 employees,

5 — means Private companies with 1000 employees or more.

Yes
ContractPayerIDContract's payer HAAD license.Yes
ContractPackageNameName of the insurance package.Yes
ContractGrossPremium

Annual premium for the contract.

Yes
ContractExpiryDate
Date when the contract expires. The expected formats are explained in section Supported Date Formats.
Yes
ContractCompanyID

Trade license of the member's company.

Yes
ContractCollectedPremiumAED amount received by the Payer as a premium for the term of the Member’s insurance contract.Yes

Configuration

The following settings are required to be made for Person.Register transaction generation from 'Excel':

1. Go to Greenrain Automation Settings

Log in to Greenrain Automation. Select "Settings" from the Toolbar → 'Greenrain Automation Settings' form opens.

Figure1.

2. Configure Person.Register tab

Figure2.

Select "Person.Register" tab and configure settings:

  1. 'Generate and upload Person.Register transactions to Shafafiya': should be checked.
  2. 'Processing interval' drop-down fills automatically with custom values. User can select an interval from the list, '30 minutes' for example.
  3. 'Choose where Greenrain Automation will get person register data from':
    1. 'Excel' value should be selected from drop-down list.
    2. 'Select folder where to expect Excel files'. Specify the directory from which you want to retrieve data (excel file, see Preconditions p.1).
  4. Click "Save" button.

3. Check common configuration

Generate PersonRegister transaction

1. Go to Greenrain Automation Services

Select "Services" from the Toolbar → 'Greenrain Automation Services' form opens (refer to Figure1.).

2. Start the service

It allows to start a service after certain runtime configured on the Person Resister tab (refer to Configuration → 2. Configure Person.Register tab).

  1. Click "Start the service" link:
    1. 'Download Service Status' will be changed to RUNNING (marked with green).
    2. 'Stop the service' link will be displayed under the status.
  2. Click "Close" button.

Figure3.

"Run" link in the Toolbar allows a user to run the service at any time on demand (refer to Figure1.).

3. Check PersonRegister transaction

  1. check e-mail notification.
  2. check Greenrain Automation database:
    1. PersonRegister table: 1 record is created;
    2. Transactions table: 1 record is created.
  3. check PersonRegister transaction in Greenrain Messenger: 
    1. Log in to Greenrain Messanger (refer to common configuration → 3. Configure Post Office Settings).
    2. Select "Download" tab.
    3. Set filters and click "Search" button → the uploaded Person.Register transaction has been found:
      1. set "Transaction date"
      2. set "Person.Register" checked
      3. set "Sent only" and "New only"

Figure4.

Related content

Member.Register DHA
Member.Register DHA
More like this
MemberRegister Table
MemberRegister Table
More like this