@medipass/utils 11.89.0 → 11.89.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/funders.d.ts +3 -3
- package/funders.js +4 -4
- package/package.json +2 -2
package/funders.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const FUNDERS_WITH_ONBOARDING: readonly ["nab", "medicare", "icare", "wcq", "comcare", "wsv", "nib", "qbe", "aged-care"];
|
|
2
|
-
export declare const CLAIMABLE_FUNDERS: readonly ["comcare", "dva", "eclipse", "healthpoint", "nab", "icare", "medicare", "nib", "ohc", "qbe", "wcq", "wsv", "aged-care"];
|
|
1
|
+
export declare const FUNDERS_WITH_ONBOARDING: readonly ["nab", "medicare", "easyclaim", "icare", "wcq", "comcare", "wsv", "nib", "qbe", "aged-care"];
|
|
2
|
+
export declare const CLAIMABLE_FUNDERS: readonly ["comcare", "dva", "eclipse", "healthpoint", "nab", "icare", "medicare", "easyclaim", "nib", "ohc", "qbe", "wcq", "wsv", "aged-care"];
|
|
3
3
|
export declare const getFunderCodeFromTransaction: (transaction: Record<string, any>, funderCode?: string) => "comcare" | "dva" | "eclipse" | "hbf" | "healthpoint" | "nab" | "icare" | "medicare" | "easyclaim" | "nib" | "ndis" | "ohc" | "patient-funded" | "qbe" | "wcq" | "wsv" | "aged-care";
|
|
4
4
|
export declare const isComcare: (funderCode: string) => boolean;
|
|
5
5
|
export declare const isDVA: (funderCode: string) => boolean;
|
|
@@ -9,7 +9,7 @@ export declare const isHICAPS: (funderCode: string) => boolean;
|
|
|
9
9
|
export declare const isIcare: (funderCode: string) => boolean;
|
|
10
10
|
export declare const isHealthPoint: (funderCode: string) => boolean;
|
|
11
11
|
export declare const isMedicare: (funderCode: string) => boolean;
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const isEasyClaim: (funderCode: string) => boolean;
|
|
13
13
|
export declare const isNDIS: (funderCode: string) => boolean;
|
|
14
14
|
export declare const isNib: (funderCode: string) => boolean;
|
|
15
15
|
export declare const isOHC: (funderCode: string) => boolean;
|
package/funders.js
CHANGED
|
@@ -9,8 +9,8 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
9
9
|
|
|
10
10
|
var _get__default = /*#__PURE__*/_interopDefaultLegacy(_get);
|
|
11
11
|
|
|
12
|
-
var FUNDERS_WITH_ONBOARDING = [constants.FUNDERS.HICAPS, constants.FUNDERS.MEDICARE, constants.FUNDERS.ICARE, constants.FUNDERS.WCQ, constants.FUNDERS.COMCARE, constants.FUNDERS.WSV, constants.FUNDERS.NIB, constants.FUNDERS.QBE, constants.FUNDERS.AGED_CARE];
|
|
13
|
-
var CLAIMABLE_FUNDERS = [constants.FUNDERS.COMCARE, constants.FUNDERS.DVA, constants.FUNDERS.ECLIPSE, constants.FUNDERS.HEALTHPOINT, constants.FUNDERS.HICAPS, constants.FUNDERS.ICARE, constants.FUNDERS.MEDICARE, constants.FUNDERS.NIB, constants.FUNDERS.OHC, constants.FUNDERS.QBE, constants.FUNDERS.WCQ, constants.FUNDERS.WSV, constants.FUNDERS.AGED_CARE];
|
|
12
|
+
var FUNDERS_WITH_ONBOARDING = [constants.FUNDERS.HICAPS, constants.FUNDERS.MEDICARE, constants.FUNDERS.EASYCLAIM, constants.FUNDERS.ICARE, constants.FUNDERS.WCQ, constants.FUNDERS.COMCARE, constants.FUNDERS.WSV, constants.FUNDERS.NIB, constants.FUNDERS.QBE, constants.FUNDERS.AGED_CARE];
|
|
13
|
+
var CLAIMABLE_FUNDERS = [constants.FUNDERS.COMCARE, constants.FUNDERS.DVA, constants.FUNDERS.ECLIPSE, constants.FUNDERS.HEALTHPOINT, constants.FUNDERS.HICAPS, constants.FUNDERS.ICARE, constants.FUNDERS.MEDICARE, constants.FUNDERS.EASYCLAIM, constants.FUNDERS.NIB, constants.FUNDERS.OHC, constants.FUNDERS.QBE, constants.FUNDERS.WCQ, constants.FUNDERS.WSV, constants.FUNDERS.AGED_CARE];
|
|
14
14
|
var getFunderCodeFromTransaction = function getFunderCodeFromTransaction(transaction, funderCode) {
|
|
15
15
|
if (transaction.isPatientFunded || _get__default["default"](transaction, 'claims[0].isPatientFunded')) {
|
|
16
16
|
return constants.FUNDERS.PATIENT;
|
|
@@ -76,7 +76,7 @@ var isHealthPoint = function isHealthPoint(funderCode) {
|
|
|
76
76
|
var isMedicare = function isMedicare(funderCode) {
|
|
77
77
|
return funderCode === constants.FUNDERS.MEDICARE;
|
|
78
78
|
};
|
|
79
|
-
var
|
|
79
|
+
var isEasyClaim = function isEasyClaim(funderCode) {
|
|
80
80
|
return funderCode === constants.FUNDERS.EASYCLAIM;
|
|
81
81
|
};
|
|
82
82
|
var isNDIS = function isNDIS(funderCode) {
|
|
@@ -114,6 +114,7 @@ exports.getFunderCodeFromTransaction = getFunderCodeFromTransaction;
|
|
|
114
114
|
exports.isAgedCare = isAgedCare;
|
|
115
115
|
exports.isComcare = isComcare;
|
|
116
116
|
exports.isDVA = isDVA;
|
|
117
|
+
exports.isEasyClaim = isEasyClaim;
|
|
117
118
|
exports.isEclipse = isEclipse;
|
|
118
119
|
exports.isFunderClaimable = isFunderClaimable;
|
|
119
120
|
exports.isHBF = isHBF;
|
|
@@ -121,7 +122,6 @@ exports.isHICAPS = isHICAPS;
|
|
|
121
122
|
exports.isHealthPoint = isHealthPoint;
|
|
122
123
|
exports.isIcare = isIcare;
|
|
123
124
|
exports.isMedicare = isMedicare;
|
|
124
|
-
exports.isMedicareEasyClaim = isMedicareEasyClaim;
|
|
125
125
|
exports.isNDIS = isNDIS;
|
|
126
126
|
exports.isNib = isNib;
|
|
127
127
|
exports.isOHC = isOHC;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medipass/utils",
|
|
3
|
-
"version": "11.89.
|
|
3
|
+
"version": "11.89.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"rimraf": "^2.6.2",
|
|
48
48
|
"typescript": "4.8.4"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "59d096ba4cc291d7626a98d71f2cd28698302ff0"
|
|
51
51
|
}
|