@medipass/utils 11.87.0 → 11.87.1-fix-aged-care-create-invoice.1
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 -2
- package/constants.js +2 -2
- package/funders.d.ts +4 -4
- package/funders.js +7 -7
- package/package.json +2 -2
package/constants.d.ts
CHANGED
|
@@ -79,7 +79,7 @@ export declare const FUNDERS: {
|
|
|
79
79
|
readonly QBE: "qbe";
|
|
80
80
|
readonly WCQ: "wcq";
|
|
81
81
|
readonly WSV: "wsv";
|
|
82
|
-
readonly
|
|
82
|
+
readonly AGED_CARE: "aged-care";
|
|
83
83
|
};
|
|
84
84
|
export declare const FUNDERS_FORMATTED: {
|
|
85
85
|
readonly comcare: "Comcare";
|
|
@@ -97,7 +97,7 @@ export declare const FUNDERS_FORMATTED: {
|
|
|
97
97
|
readonly qbe: "QBE";
|
|
98
98
|
readonly wcq: "Workcover Queensland";
|
|
99
99
|
readonly wsv: "WorkSafe Victoria";
|
|
100
|
-
readonly
|
|
100
|
+
readonly "aged-care": "Aged Care";
|
|
101
101
|
};
|
|
102
102
|
export declare const FUTURE_STATUSES: {
|
|
103
103
|
readonly ACTIVE: "active";
|
package/constants.js
CHANGED
|
@@ -103,9 +103,9 @@ var FUNDERS = {
|
|
|
103
103
|
QBE: 'qbe',
|
|
104
104
|
WCQ: 'wcq',
|
|
105
105
|
WSV: 'wsv',
|
|
106
|
-
|
|
106
|
+
AGED_CARE: 'aged-care'
|
|
107
107
|
};
|
|
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.
|
|
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);
|
|
109
109
|
/* ====== END: FUNDERS ======= */
|
|
110
110
|
|
|
111
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) => "comcare" | "dva" | "eclipse" | "hbf" | "healthpoint" | "nab" | "icare" | "medicare" | "nib" | "ndis" | "ohc" | "patient-funded" | "qbe" | "wcq" | "wsv" | "
|
|
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"];
|
|
3
|
+
export declare const getFunderCodeFromTransaction: (transaction: Record<string, any>, funderCode?: string) => "comcare" | "dva" | "eclipse" | "hbf" | "healthpoint" | "nab" | "icare" | "medicare" | "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;
|
|
6
6
|
export declare const isEclipse: (funderCode: string) => boolean;
|
|
@@ -16,5 +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
|
|
19
|
+
export declare const isAgedCare: (funderCode: string) => boolean;
|
|
20
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, constants.FUNDERS.
|
|
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.
|
|
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];
|
|
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,8 +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.
|
|
48
|
-
return constants.FUNDERS.
|
|
47
|
+
} else if (funderCode === constants.FUNDERS.AGED_CARE) {
|
|
48
|
+
return constants.FUNDERS.AGED_CARE;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
return constants.FUNDERS.PATIENT;
|
|
@@ -95,8 +95,8 @@ var isWCQ = function isWCQ(funderCode) {
|
|
|
95
95
|
var isWSV = function isWSV(funderCode) {
|
|
96
96
|
return funderCode === constants.FUNDERS.WSV;
|
|
97
97
|
};
|
|
98
|
-
var
|
|
99
|
-
return funderCode === constants.FUNDERS.
|
|
98
|
+
var isAgedCare = function isAgedCare(funderCode) {
|
|
99
|
+
return funderCode === constants.FUNDERS.AGED_CARE;
|
|
100
100
|
}; // @ts-expect-error
|
|
101
101
|
|
|
102
102
|
var isFunderClaimable = function isFunderClaimable(funderCode) {
|
|
@@ -106,7 +106,7 @@ var isFunderClaimable = function isFunderClaimable(funderCode) {
|
|
|
106
106
|
exports.CLAIMABLE_FUNDERS = CLAIMABLE_FUNDERS;
|
|
107
107
|
exports.FUNDERS_WITH_ONBOARDING = FUNDERS_WITH_ONBOARDING;
|
|
108
108
|
exports.getFunderCodeFromTransaction = getFunderCodeFromTransaction;
|
|
109
|
-
exports.
|
|
109
|
+
exports.isAgedCare = isAgedCare;
|
|
110
110
|
exports.isComcare = isComcare;
|
|
111
111
|
exports.isDVA = isDVA;
|
|
112
112
|
exports.isEclipse = isEclipse;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medipass/utils",
|
|
3
|
-
"version": "11.87.
|
|
3
|
+
"version": "11.87.1-fix-aged-care-create-invoice.1",
|
|
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": "e4e376921e64d66a68f1e659fb8319a764f4bde9"
|
|
51
51
|
}
|