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 | ||
---|---|---|
| ||
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. |
...
The method performs the following logic:
Parse the passed in Claim.Submission XML transaction.
Calculate patient age using Emirates ID Number. The assumption is made that patient's birth date is January 1.
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.
Patient gender is not available in Claim.Submission transactions, therefore, gender-related checks are disabled.
Call RunDdb Method if the claim has at least one drug code.
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:
|
-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. |
| Data Source is not found. | This exception is raised when Data Source does not exist or cannot be accessed for any reason. |
| 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:
|
-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:
|
-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. |
...