@medipass/utils 11.81.3 → 11.81.4-feature-qbe.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 CHANGED
@@ -76,6 +76,7 @@ export declare const FUNDERS: {
76
76
  readonly NDIS: "ndis";
77
77
  readonly OHC: "ohc";
78
78
  readonly PATIENT: "patient-funded";
79
+ readonly QBE: "qbe";
79
80
  readonly WCQ: "wcq";
80
81
  readonly WSV: "wsv";
81
82
  };
@@ -91,6 +92,7 @@ export declare const FUNDERS_FORMATTED: {
91
92
  readonly nib: "NIB";
92
93
  readonly ohc: "Overseas health cover";
93
94
  readonly "patient-funded": "Patient funded";
95
+ readonly qbe: "QBE";
94
96
  readonly wcq: "Workcover Queensland";
95
97
  readonly wsv: "WorkSafe Victoria";
96
98
  };
@@ -277,6 +279,7 @@ export declare const INVOICE_ORIGINATING_FLOW: {
277
279
  readonly VIRTUAL_TERMINAL: "virtual-terminal";
278
280
  readonly WORK_COVER_QUEENSLAND: "wcq";
279
281
  readonly WORKSAFE_VICTORIA: "wsv";
282
+ readonly QBE: "qbe";
280
283
  };
281
284
  export declare const STAFF_TYPES: {
282
285
  readonly LOCATION: "location";
package/constants.js CHANGED
@@ -100,10 +100,11 @@ var FUNDERS = {
100
100
  NDIS: 'ndis',
101
101
  OHC: 'ohc',
102
102
  PATIENT: 'patient-funded',
103
+ QBE: 'qbe',
103
104
  WCQ: 'wcq',
104
105
  WSV: 'wsv'
105
106
  };
106
- 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.NDIS] = 'NDIS', _FUNDERS_FORMATTED[FUNDERS.NIB] = 'NIB', _FUNDERS_FORMATTED[FUNDERS.OHC] = 'Overseas health cover', _FUNDERS_FORMATTED[FUNDERS.PATIENT] = 'Patient funded', _FUNDERS_FORMATTED[FUNDERS.WCQ] = 'Workcover Queensland', _FUNDERS_FORMATTED[FUNDERS.WSV] = 'WorkSafe Victoria', _FUNDERS_FORMATTED);
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.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);
107
108
  /* ====== END: FUNDERS ======= */
108
109
 
109
110
  /* ====== START: FUTURES ======= */
@@ -346,7 +347,8 @@ var INVOICE_ORIGINATING_FLOW = {
346
347
  PATIENT_FUNDED: 'patient-funded',
347
348
  VIRTUAL_TERMINAL: 'virtual-terminal',
348
349
  WORK_COVER_QUEENSLAND: 'wcq',
349
- WORKSAFE_VICTORIA: 'wsv'
350
+ WORKSAFE_VICTORIA: 'wsv',
351
+ QBE: 'qbe'
350
352
  };
351
353
  /* ====== END: INVOICE_ORIGINATING_FLOW ======= */
352
354
 
package/funders.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export declare const FUNDERS_WITH_ONBOARDING: readonly ["nab", "medicare", "icare", "wcq", "comcare", "wsv", "nib"];
2
- export declare const CLAIMABLE_FUNDERS: readonly ["comcare", "dva", "eclipse", "healthpoint", "nab", "icare", "medicare", "nib", "ohc", "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" | "wcq" | "wsv";
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";
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;
@@ -13,6 +13,7 @@ export declare const isNDIS: (funderCode: string) => boolean;
13
13
  export declare const isNib: (funderCode: string) => boolean;
14
14
  export declare const isOHC: (funderCode: string) => boolean;
15
15
  export declare const isPatientFunded: (funderCode: string) => boolean;
16
+ export declare const isQBE: (funderCode: string) => boolean;
16
17
  export declare const isWCQ: (funderCode: string) => boolean;
17
18
  export declare const isWSV: (funderCode: string) => boolean;
18
19
  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];
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.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];
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];
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;
@@ -42,6 +42,8 @@ var getFunderCodeFromTransaction = function getFunderCodeFromTransaction(transac
42
42
  return constants.FUNDERS.NIB;
43
43
  } else if (funderCode === constants.FUNDERS.ECLIPSE) {
44
44
  return constants.FUNDERS.ECLIPSE;
45
+ } else if (funderCode === constants.FUNDERS.QBE) {
46
+ return constants.FUNDERS.QBE;
45
47
  }
46
48
 
47
49
  return constants.FUNDERS.PATIENT;
@@ -82,6 +84,9 @@ var isOHC = function isOHC(funderCode) {
82
84
  var isPatientFunded = function isPatientFunded(funderCode) {
83
85
  return funderCode === constants.FUNDERS.PATIENT;
84
86
  };
87
+ var isQBE = function isQBE(funderCode) {
88
+ return funderCode === constants.FUNDERS.QBE;
89
+ };
85
90
  var isWCQ = function isWCQ(funderCode) {
86
91
  return funderCode === constants.FUNDERS.WCQ;
87
92
  };
@@ -109,5 +114,6 @@ exports.isNDIS = isNDIS;
109
114
  exports.isNib = isNib;
110
115
  exports.isOHC = isOHC;
111
116
  exports.isPatientFunded = isPatientFunded;
117
+ exports.isQBE = isQBE;
112
118
  exports.isWCQ = isWCQ;
113
119
  exports.isWSV = isWSV;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipass/utils",
3
- "version": "11.81.3",
3
+ "version": "11.81.4-feature-qbe.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -51,5 +51,5 @@
51
51
  "rimraf": "^2.6.2",
52
52
  "typescript": "4.8.4"
53
53
  },
54
- "gitHead": "01de187d9ddb0a7056ddf3b3ed205739558b80d8"
54
+ "gitHead": "145c5aa7a1150fba3612f3ae8515eaef1a44b003"
55
55
  }