Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

...

Greenrain Drug Database implements its login in classes and API in the library with the following properties:

Namespace: Greenrain.DdbDrugdb.

Executable Name: greenrain Greenrain.drugdbDrugdb.dll

Gender Assumptions

If the patient gender is unknown, then Greenrain Drug Database does not run gender-specific checks.

...

Parameter

Data Type

Default Value

Description

licenseManager

ILicenseManager

null

LicenseManager class. If the parameter is null, the class will use license key found in the Settings.

DdbSettings

IDdbSettings

null

If this parameter is null, then the constructor uses the current Greenrain Drugs Database settings saved on the system. Otherwise, API uses the settings specified in the passed in DdbSettings class.

Therefore, the constructor can be called with any settings combination required by the caller, even if it is different from the current system settings.

...

Code Block
languagec#
public ValidationResult GreenrainDdb.RunDdb(string claimId, int? patientAge, int? patientGender, IList<string> drugCodes, string principalDiagnosisCode, IList<string> secondaryDiagnosisCodes);
public ValidationResult GreenrainDdb.RunDdb(string claimId, DateTime? patientBirthDate, int? patientGender, IList<string> drugCodes, string principalDiagnosisCode, IList<string> secondaryDiagnosisCodes);

...

Parameter

Data Type

Default Value

Description

claimId

string

null

Claim ID to be used as a reference.

patientAge

int?

null

Patient age.

patientBirthDate

DateTime?

null

Patient Birth Date

patientGender

int?

null

Patient gender that can accept the following values:

null = Gender is unknown, this will raise an exception.

0 = Female.

1 = Male.

drugCodes

IList<string>

null

List of drug codes.

principalDiagnosisCode

string

null

Principal ICD-10-CM codes.

secondaryDiagnosisCodes

IList<string>

null

List of secondary ICD-10-CM codes.

...

  1. The method performs the following logic:

  2. Parse the passed in Claim.Submission XML transaction.

  3. Calculate patient age using Emirates ID Number. The assumption is made that patient's birth date is January 1.

  4. If Emirates ID Number has the default value, then the patient's age is set to unknown. In this case, all age-related checks are disabled.

  5. Patient gender is not available in Claim.Submission transactions, therefore, gender-related checks are disabled.

  6. Call RunDdb Method if the claim has at least one drug code.

  7. Only principal and secondary diagnoses are used for every claim. Other diagnosis types are ignored.

...