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.

...

ID

Error Message Example

Description

-1000

An unexpected error occurred.

This exception is raised if anything goes wrong that we do not cover with exceptions in this table.

-1001

Greenrain Drug Database API requires a valid license. You can use Greenrain Drug Database Settings to enter the license key.

This exception may be raised in the following scenarios:

  1. The trial license has expired.

  2. The existing license has expired.

  3. The existing license has been revoked.

-1002

Claim ID must have value.

This exception is raised when the Claim ID is empty.

-1003

At least one drug code must be provided.

This exception is raised when no drug code is found.

-1004

At least one ICD-10-CM must be provided, either principal or secondary diagnosis.

This exception is raised when no ICD-10-CM is found.

-1005

Data Source is not found.

This exception is raised when Data Source does not exist or cannot be accessed for any reason. 

-1006

At least two drug codes must be provided.

This exception is raised when less than two drug codes are found.

-1007

The patient's age is undefined or negative.

This exception is raised when the patient's any of the below conditions is met:

  1. Patient age is not defined.

  2. Patient age is a negative number.

-1008

Patient age The patient’s gender is undefined or negative, and patient gender is not equal to 0 or 1.

This exception is raised when any of the below conditions is met:

  1. Patient age gender is not defined.Patient age is a negative number.

  2. Patient gender has a value other than 0 or 1.

-1009

The content of the XML file may not be null.

This exception is raised when the XML file has no content.

-1010

The XML file must contain Claim.Submission xml transaction.

This exception is raised when the XML file does not contain Claim.Submission transaction.

-1011

The XML file must contain at least one claim.

This exception is raised when the XML file contains no claim.

...