/
Business Logic

Business Logic

Workflow

  1. Payer system has several options to make member details available for Member.Register:
    1. Excel file placed into special folder.
    2. Staging table in payer system database.
    3. Specify SELECT SQL how to read member details from payer system. 
  2. GA reads member details performing the following logic:
    1. Parse members data.
    2. If there are errors found in member details:
      1. GA will continue to generate and upload xml for members that have no errors.
      2. Send failure e-mail with failed member details as described in section Member.Register XML Generation Failure.
      3. Failed members will be removed from the logic below.
      4. If data source is staging table or SELECT SQL, then GA is able to report errors back to payer system using SQL statements or stored procedures.
    3. Create required number of records in Transaction Table as per the rules described in section Transaction Generation Rules.
    4. Save all valid members in MemberRegister Table.
    5. Generate Member.Register xml files and upload them to DHPO:
      1. Header.ReceiverID is always DHA.
      2. Member details may contain members for many senders, and xml files must have correct members for every sender. For example, if member details contain 5 members with sender INS008, 10 members with sender INS051 and 4 members with INS073, then GA will generate the following xml files:
        1. Five xml files with sender INS008.
        2. Ten xml files with sender INS051.
        3. Four xml files with sender INS073.
    6. Update fields in Transaction Table with values returned by DHPO.
  3. If member details are provided in Excel files, GA will move these Excel files to Processed subfolder after GA processes the data.
  4. If xml file is generated and uploaded successfully, GA will send successful e-mail as described in section Member.Register Success E-mail Message.
  5. If there are failures to upload xml file, GA will send failure e-mail as described in section Member.Register XML Upload Failure.
  6. GA will check for new member details with the frequency specified in GA Settings. This way Payer can control when new members would be uploaded to DHA Post Office.

When to Generate Member Register

Member Register would be generated in the following cases:

  1. New member is added.
  2. Member is renewed.
  3. Policy is renewed.
  4. Member is terminated.
  5. Policy is cancelled.
  6. Policy is reinstated.
  7. Policy expiry date is changed.
  8. Policy product is changed.
  9. Any detail of member is changed.

You would make sure that your system generates Excel files with related member details one any of the below event occurs.

Data Required for Members XML File Generation

Table below presents data required for members xml file generation. GA expects all below fields to be available in the payer system. Note that sequence of columns does not matter, GA will check only column names.

Column NameDescription
SenderIDPayer the member belongs to.
MemberIDMember insurance card number.
PersonFirstNameMember's first name.
PersonSecondNameMember's second name.
PersonFamilyNameMember's family name.
PersonContactNumber

Primary mobile contact number of the member. You can have number with country code, e.g. 00971 50 123 4567, or without, e.g. 050 123 4567.

This field is optional.

PersonBirthDate

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

PersonGenderMember's gender: 1 for male and 0 for female.
PersonNationality

Member nationality as 3-digit; GA will check that nationality code is specified in the official list from DHA Post Office.

PersonPassportNumber

Number of member passport that has UAE visa. If not available, it can be National ID, e.g. GCC Nationals.

PersonMaritalStatus

Member's martial status of the person. The following values are allowed:
1 – single
2 – married

PersonEmail

Member's e-mail address.

This field is optional.

PersonEmirate

Emirate where member's residency/visa is issued. The following values are allowed:
1 – Sharjah
2 – Abu Dhabi
4 – Dubai
5 – Umm Al Quwain
6 – Ajman
7 – Ras Al Khaimah
9 – Fujairah
10 – UAE National
11 – Dubai National
12 – GCC National
13 – Diplomat

PersonResidentialLocation

Member's place of residence. This is location code from the predefined location list published on DHA Post Office.

PersonWorkLocation

Member's place of work. This is location code from the predefined location list published on DHA Post Office.

PersonSalary

Member's salary. The following predefined values are allowed:
1 – salary less than 4,000 AED per month;
2 – salary between 4,001 and 12,000 AED per month;
3 – salary greater than 12,000 AED per month;
4 – No salary; this is used for dependants or children that do not acquire a salary.

PersonCommission

Flag if member gets income based on commission. The following values are allowed:
1 – Yes, some or all of the member's income is based on commission;
2 – No, the member's income is not based on commission.

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;
333-3333-3333333-3 – New born without a card.

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

  1. If difference between current date and person birth date <= 30 days, then GA will use default value for new born 333-3333-3333333-3.
  2. if person nationality is Emirati, then GA will use default value 000-0000-0000000-0.
  3. Otherwise GA will use default value of 111-1111-1111111-1.
PersonUIDNumber

Unified Identity Number issued by the Ministry of Interior (MOI). The number is available on the Visa or Residency Document of the member under U.I.D Number title.

MemberRelation

Member's family relationship. The allowed values are:
1 – Principal
2 – Spouse
3 – Child
4 – Parent
5 – Other

MemberRelationToMember ID of the principal member of the family.
PersonPayerIDPayer DHA license.
ContractProductOrigin

The origin of the product purchased by the member. The allowed values are:
2 – Abu Dhabi
4 – Dubai

ContractProductCodeID of the insurance product as officially mentioned in the payer's marketing materials.
ContractProductID

ID of the insurance product assigned by DHA. If no Product ID exists, the default value of PayerID-0000-00 maybe used.

Products with Abu Dhabi origin would use Abu Dhabi Product ID.

ContractPolicyIDInsurance policy number as registered in payer's system.
ContractTopUpPolicy

Any policy which provides benefits over and above the benefits provided under the main Dubai compliant policy. The allowed values are:
1 – Top-Up Policy
2 – Main Policy

This field is optional.

ContractEnrollmentDateContract start date. The expected formats are explained in section Supported Date Formats.
ContractDeletionDateContract expiry date or date of cover end in case member is removed as per policy holder request. The expected formats are explained in section Supported Date Formats.
ContractGrossPremium

Annual premium for the contract.

Products with Abu Dhabi origin would use 0000 default value.

ContractActualPremium

Real premium paid by member.

Products with Abu Dhabi origin would use 0000 default value.

EstablishmentEntityType

Type of entity that sponsors the member. The allowed values are:
1 – Resident
2 – Citizen (i.e. UAE locals, GCC locals)
3 – Establishment
4 – Property Owner

EstablishmentEntityID

ID of the sponsoring entity, as follows:

  1. If the sponsor is a resident, then use the UID of the resident (Residence File Number);
  2. f the sponsor is a citizen, then use the UID of the citizen (Citizen File Number);
  3. If the sponsor is an establishments, then use the Establishment Code (UID).
  4. If the sponsor\applicant is a Property Owner, then use the property owner's UID.
EstablishmentContactNumber

Primary contact number of the policy holder including country code and area code.

EstablishmentEmailE-mail address of the policy holder. If the policy holder is an establishment, this should be the email ID of an individual or a department responsible for health insurance related matters.

Supported Date Formats

GA expects dates in the Excel file described in section Data Required for Members XML File Generation in one of 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. If so, GA has to save the exact value in the database as provided by users. This might be useful for eventual troubleshooting. Examples of possible values are shown below:
    1. 30/11/1999 14:55
    2. 30/11/1999 14:55:28
    3. 6/3/1999 2:55 PM
    4. 1999-11-30 12:00 AM

Rounding

GA will round ContractGrossPremium and ContractActualPremium values to two decimal places after comma. For example, if premium value for a member is 1234.5678, it will be rounded to 1234.57. Value of 123.1234 will be rounded to 123.12.

Data Duplication

GA will ignore duplicated members. Duplicated records are those that have all fields identical. The following logic is applied to check members duplication; this logic is performed for every record in Excel file:

  1. Find all members with the same MemberID, ContractEnrolmentDate and ContractDeletionDate in Excel file.
  2. Find all members with the same MemberID, ContractEnrolmentDate and ContractDeletionDate in MemberRegister Table.
  3. Note: Only date part of fields ContractEnrolmentDate and ContractDeletionDate must be checked, e.g. values "25/12/2001 00:00:00", "25/12/2001" and "25/12/2001 15:31:59" are equal.
  4. Compare all fields with the found members.
  5. If all fields are identical, send alert e-mail with the list of all duplicated members providing their MemberID, ContractEnrolmentDate and ContractDeletionDate. E-mail alert is documented in section Member.Register Data Duplication.
    1. Excel file name also be mentioned in the alert e-mail.
  6. One alert e-mail is sent per Excel file.

Transaction Generation Rules

  1. GA will generate one xml per member.
  2. GA will generate xml file using the following format: Members_INS009_20151022_1459_1.xml, where:
    1. INS009 is Header.SenderID;
    2. 20151022 is current date in format YYYYMMDD;
    3. 1459 is current time in format HHMM;
    4. 1 is file counter.
  3. Example:
    1. Excel file contains 2,230 members.
    2. GA will generate 2,230 xml files on 29 October 2015 at 18:12:
      1. Members_20151029_1812_1.xml;
      2. Members_20151029_1812_2.xml;
      3. Members_20151029_1812_3.xml.
      4. ...
      5. Members_20151029_1812_2230.xml.