RX-CLAIMS_INTEGRATION
Introduction
This repository contains the source code for the RX Claims integration module.
This service exposes some methods and functions for communication with RX Claims .
Language and tools
The service is developed using NodeJS and NestJS
Additionally, the project is written using ES6/ES7 features and follows a recommended folder structure as follows:
.
├── src # Contains all service logic
│ ├── common # Contains scommon files
| | ├──enums
| | ├──constants.ts
│ ├── config # Contains configs for service
│ │ ├── config.ts
│ └── helpers # Contains helpers files
│ │ ├── addItemToClaim.ts
│ │ ├── deleteClaimItem.ts
│ │ ├── generateClaimNumber.ts
│ │ ├── getDiagnosisList.ts
│ │ ├── getInsuranceList.ts
│ │ ├── getItemsList.ts
│ │ └── getMembershipStatus.ts
│ │ └── getUsersList.ts
│ │ └── submitClaim.ts
│ │ └── updateClaim.ts
│ └── modules # Contains all rx claims modules
│ │ ├── addItemToClaim.ts
│ │ ├── deleteClaimItem.ts
│ │ ├── generateClaimNumber.ts
│ │ ├── getDiagnosisList.ts
│ │ ├── getInsuranceList.ts
│ │ ├── getItemsList.ts
│ │ └── getMembershipStatus.ts
│ │ └── getUsersList.ts
│ │ └── submitClaim.ts
│ │ └── updateClaim.ts
│ ├── schema
│ │ ├── addItemToClaim.ts
│ │ ├── deleteClaimItem.ts
│ │ ├── generateClaimNumber.ts
│ │ ├── getDiagnosisList.ts
│ │ ├── getInsuranceList.ts
│ │ ├── getItemsList.ts
│ │ └── getMembershipStatus.ts
│ │ └── getUsersList.ts
│ │ └── submitClaim.ts
│ │ └── updateClaim.ts
│ ├── tests # Contains all tests for the service and fixtures definition
│ │ ├── addItemToClaim.ts
│ │ ├── deleteClaimItem.ts
│ │ ├── generateClaimNumber.ts
│ │ ├── getDiagnosisList.ts
│ │ ├── getInsuranceList.ts
│ │ ├── getItemsList.ts
│ │ └── getMembershipStatus.ts
│ │ └── getUsersList.ts
│ │ └── submitClaim.ts
│ │ └── updateClaim.ts # Folder structure follows the one of the src/ folder
│ | └── mocks
│ └── fixtures.js
│ ├── utils
│ │ ├── errors.ts
│ │ ├── joi.ts
│ │ ├── readme.ts
│ │ ├── responses.ts
│ ├── index.ts
├── .babelrc
├── .eslintrc.js
├── .gitignore
├── .prettierrc
├── CHANGELOG.MD
├── nestjs-cli.json
├── package.json
├── package-lock.json
|── README.md
|── tsconfig.build.json
└── README.json
Installation
On developemnt using npm
The following environment requires the usage of the following:
- NodeJS 20.5.1
For installing dependencies npm
is used. The dependencies used in this project can be found in the package.json file. In order to install them use npm ci
.
Then run npm run npm run start:dev
.
On production
npm install @unumed/rx-claim-integration
Usage
import { getMemberStatus,generateClaimNumber,addItemToClaim} from '@unumed/rx-claim-integration';
const response = await getMemberStatus({
})
Tests
All tests are collected in the src/test/
project folder.
Documentation
Documentation for the project can be generated using the JSDoc
annotations within the code.
To generate the documentation issue the command npm docs
.
The docs generated will be available in HTML format in the .docs/
folder.
Functions and methods
getMemberStatus
Member Status Request Fields
Member Status Response Fields