Versions Compared

Key

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

...

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.

...

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.

...