@medipass/utils 11.86.3 → 11.87.1-fix-aged-care-create-invoice.0
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/constants.d.ts +2 -0
- package/constants.js +3 -2
- package/funders.d.ts +4 -3
- package/funders.js +8 -2
- package/package.json +2 -2
package/constants.d.ts
CHANGED
|
@@ -79,6 +79,7 @@ export declare const FUNDERS: {
|
|
|
79
79
|
readonly QBE: "qbe";
|
|
80
80
|
readonly WCQ: "wcq";
|
|
81
81
|
readonly WSV: "wsv";
|
|
82
|
+
readonly AGED_CARE: "aged-care";
|
|
82
83
|
};
|
|
83
84
|
export declare const FUNDERS_FORMATTED: {
|
|
84
85
|
readonly comcare: "Comcare";
|
|
@@ -96,6 +97,7 @@ export declare const FUNDERS_FORMATTED: {
|
|
|
96
97
|
readonly qbe: "QBE";
|
|
97
98
|
readonly wcq: "Workcover Queensland";
|
|
98
99
|
readonly wsv: "WorkSafe Victoria";
|
|
100
|
+
readonly "aged-care": "Aged Care";
|
|
99
101
|
};
|
|
100
102
|
export declare const FUTURE_STATUSES: {
|
|
101
103
|
readonly ACTIVE: "active";
|
package/constants.js
CHANGED
|
@@ -102,9 +102,10 @@ var FUNDERS = {
|
|
|
102
102
|
PATIENT: 'patient-funded',
|
|
103
103
|
QBE: 'qbe',
|
|
104
104
|
WCQ: 'wcq',
|
|
105
|
-
WSV: 'wsv'
|
|
105
|
+
WSV: 'wsv',
|
|
106
|
+
AGED_CARE: 'aged-care'
|
|
106
107
|
};
|
|
107
|
-
var FUNDERS_FORMATTED = (_FUNDERS_FORMATTED = {}, _FUNDERS_FORMATTED[FUNDERS.COMCARE] = 'Comcare', _FUNDERS_FORMATTED[FUNDERS.ECLIPSE] = 'ECLIPSE', _FUNDERS_FORMATTED[FUNDERS.HBF] = 'HBF', _FUNDERS_FORMATTED[FUNDERS.HEALTHPOINT] = 'HEALTHPOINT', _FUNDERS_FORMATTED[FUNDERS.HICAPS] = 'HICAPS', _FUNDERS_FORMATTED[FUNDERS.ICARE] = 'icare', _FUNDERS_FORMATTED[FUNDERS.MEDICARE] = 'Medicare', _FUNDERS_FORMATTED[FUNDERS.DVA] = 'DVA', _FUNDERS_FORMATTED[FUNDERS.NDIS] = 'NDIS', _FUNDERS_FORMATTED[FUNDERS.NIB] = 'NIB', _FUNDERS_FORMATTED[FUNDERS.OHC] = 'Overseas health cover', _FUNDERS_FORMATTED[FUNDERS.PATIENT] = 'Patient funded', _FUNDERS_FORMATTED[FUNDERS.QBE] = 'QBE', _FUNDERS_FORMATTED[FUNDERS.WCQ] = 'Workcover Queensland', _FUNDERS_FORMATTED[FUNDERS.WSV] = 'WorkSafe Victoria', _FUNDERS_FORMATTED);
|
|
108
|
+
var FUNDERS_FORMATTED = (_FUNDERS_FORMATTED = {}, _FUNDERS_FORMATTED[FUNDERS.COMCARE] = 'Comcare', _FUNDERS_FORMATTED[FUNDERS.ECLIPSE] = 'ECLIPSE', _FUNDERS_FORMATTED[FUNDERS.HBF] = 'HBF', _FUNDERS_FORMATTED[FUNDERS.HEALTHPOINT] = 'HEALTHPOINT', _FUNDERS_FORMATTED[FUNDERS.HICAPS] = 'HICAPS', _FUNDERS_FORMATTED[FUNDERS.ICARE] = 'icare', _FUNDERS_FORMATTED[FUNDERS.MEDICARE] = 'Medicare', _FUNDERS_FORMATTED[FUNDERS.DVA] = 'DVA', _FUNDERS_FORMATTED[FUNDERS.NDIS] = 'NDIS', _FUNDERS_FORMATTED[FUNDERS.NIB] = 'NIB', _FUNDERS_FORMATTED[FUNDERS.OHC] = 'Overseas health cover', _FUNDERS_FORMATTED[FUNDERS.PATIENT] = 'Patient funded', _FUNDERS_FORMATTED[FUNDERS.QBE] = 'QBE', _FUNDERS_FORMATTED[FUNDERS.WCQ] = 'Workcover Queensland', _FUNDERS_FORMATTED[FUNDERS.WSV] = 'WorkSafe Victoria', _FUNDERS_FORMATTED[FUNDERS.AGED_CARE] = 'Aged Care', _FUNDERS_FORMATTED);
|
|
108
109
|
/* ====== END: FUNDERS ======= */
|
|
109
110
|
|
|
110
111
|
/* ====== START: FUTURES ======= */
|
package/funders.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const FUNDERS_WITH_ONBOARDING: readonly ["nab", "medicare", "icare", "wcq", "comcare", "wsv", "nib", "qbe"];
|
|
2
|
-
export declare const CLAIMABLE_FUNDERS: readonly ["comcare", "dva", "eclipse", "healthpoint", "nab", "icare", "medicare", "nib", "ohc", "qbe", "wcq", "wsv"];
|
|
3
|
-
export declare const getFunderCodeFromTransaction: (transaction: Record<string, any>, funderCode?: string) =>
|
|
1
|
+
export declare const FUNDERS_WITH_ONBOARDING: readonly ["nab", "medicare", "icare", "wcq", "comcare", "wsv", "nib", "qbe", any];
|
|
2
|
+
export declare const CLAIMABLE_FUNDERS: readonly ["comcare", "dva", "eclipse", "healthpoint", "nab", "icare", "medicare", "nib", "ohc", "qbe", "wcq", "wsv", any];
|
|
3
|
+
export declare const getFunderCodeFromTransaction: (transaction: Record<string, any>, funderCode?: string) => any;
|
|
4
4
|
export declare const isComcare: (funderCode: string) => boolean;
|
|
5
5
|
export declare const isDVA: (funderCode: string) => boolean;
|
|
6
6
|
export declare const isEclipse: (funderCode: string) => boolean;
|
|
@@ -16,4 +16,5 @@ export declare const isPatientFunded: (funderCode: string) => boolean;
|
|
|
16
16
|
export declare const isQBE: (funderCode: string) => boolean;
|
|
17
17
|
export declare const isWCQ: (funderCode: string) => boolean;
|
|
18
18
|
export declare const isWSV: (funderCode: string) => boolean;
|
|
19
|
+
export declare const isAGC: (funderCode: string) => boolean;
|
|
19
20
|
export declare const isFunderClaimable: (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];
|
|
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];
|
|
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.AGC];
|
|
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.AGC];
|
|
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;
|
|
@@ -44,6 +44,8 @@ var getFunderCodeFromTransaction = function getFunderCodeFromTransaction(transac
|
|
|
44
44
|
return constants.FUNDERS.ECLIPSE;
|
|
45
45
|
} else if (funderCode === constants.FUNDERS.QBE) {
|
|
46
46
|
return constants.FUNDERS.QBE;
|
|
47
|
+
} else if (funderCode === constants.FUNDERS.AGC) {
|
|
48
|
+
return constants.FUNDERS.AGC;
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
return constants.FUNDERS.PATIENT;
|
|
@@ -92,6 +94,9 @@ var isWCQ = function isWCQ(funderCode) {
|
|
|
92
94
|
};
|
|
93
95
|
var isWSV = function isWSV(funderCode) {
|
|
94
96
|
return funderCode === constants.FUNDERS.WSV;
|
|
97
|
+
};
|
|
98
|
+
var isAGC = function isAGC(funderCode) {
|
|
99
|
+
return funderCode === constants.FUNDERS.AGC;
|
|
95
100
|
}; // @ts-expect-error
|
|
96
101
|
|
|
97
102
|
var isFunderClaimable = function isFunderClaimable(funderCode) {
|
|
@@ -101,6 +106,7 @@ var isFunderClaimable = function isFunderClaimable(funderCode) {
|
|
|
101
106
|
exports.CLAIMABLE_FUNDERS = CLAIMABLE_FUNDERS;
|
|
102
107
|
exports.FUNDERS_WITH_ONBOARDING = FUNDERS_WITH_ONBOARDING;
|
|
103
108
|
exports.getFunderCodeFromTransaction = getFunderCodeFromTransaction;
|
|
109
|
+
exports.isAGC = isAGC;
|
|
104
110
|
exports.isComcare = isComcare;
|
|
105
111
|
exports.isDVA = isDVA;
|
|
106
112
|
exports.isEclipse = isEclipse;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medipass/utils",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.87.1-fix-aged-care-create-invoice.0",
|
|
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": "1d0463b082c12b06ce3206f60122ffe7aa6caef1"
|
|
51
51
|
}
|