@medipass/utils 11.68.1-fix-package-release.0 → 11.68.3
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/CHANGELOG.md +33 -0
- package/billable-items-01050ba2.js +27 -0
- package/blah.js +2 -0
- package/build-validation-schema.js +1282 -0
- package/businesses-e3a20604.js +53 -0
- package/chart.js +45 -0
- package/claim-payment-status-formatted.js +12 -0
- package/claim-payment-status-icons.js +10 -0
- package/claim-payment-status-text-classes.js +10 -0
- package/constants.js +460 -0
- package/countries.js +1011 -0
- package/datetime.js +36 -0
- package/document-types-formatted.js +13 -0
- package/document-types-icons.js +10 -0
- package/document-types-text-classes.js +10 -0
- package/documents/workflow-state-formatted-text-classes.js +12 -0
- package/documents/workflow-state-formatted.js +15 -0
- package/documents/workflow-state-icons.js +10 -0
- package/form-applications/assign-values-to-sections.js +29 -0
- package/forms-f06ca97e.js +51 -0
- package/funders.js +122 -0
- package/get-env.js +196 -0
- package/get-select-options.js +65 -0
- package/get-staff-type-display-name.js +12 -0
- package/google-addresses.js +127 -0
- package/health-fund-accounts-3cd8650f.js +20 -0
- package/health-fund-settings-43327826.js +22 -0
- package/health-funds-300facef.js +194 -0
- package/i18n/index.js +59 -0
- package/i18n/translations.js +36 -0
- package/index.js +56 -0
- package/intercom.js +101 -0
- package/members-cb4f73a9.js +53 -0
- package/modalities-b360d521.js +19 -0
- package/normalise-abn.js +22 -0
- package/package.json +2 -2
- package/parse-health-fund-card-fields.js +12 -0
- package/patients-2083dd9c.js +46 -0
- package/payment-methods-4fa2d01f.js +26 -0
- package/payment-options.js +52 -0
- package/practices-3e703f22.js +87 -0
- package/products-bd313cb4.js +83 -0
- package/products.js +31 -0
- package/professional-categories-e2e5284b.js +19 -0
- package/redux-actions.js +161 -0
- package/redux-reducer.js +112 -0
- package/sanitise-url.js +17 -0
- package/scroll.js +9 -0
- package/sensitive-keys.js +9 -0
- package/sentry.js +112 -0
- package/service-items.js +230 -0
- package/services-2e25cdac.js +127 -0
- package/specialties-7640b7e3.js +20 -0
- package/staff-990794cd.js +161 -0
- package/status-icons.js +10 -0
- package/status-text-classes.js +10 -0
- package/subscriptions-45c1321a.js +160 -0
- package/test-framework/fixtures/accounts.js +34 -0
- package/test-framework/fixtures/billable-items.js +9 -0
- package/test-framework/fixtures/businesses.js +9 -0
- package/test-framework/fixtures/documents.js +121 -0
- package/test-framework/fixtures/form-application-templates.js +74 -0
- package/test-framework/fixtures/form-applications.js +39 -0
- package/test-framework/fixtures/forms.js +9 -0
- package/test-framework/fixtures/health-fund-accounts.js +9 -0
- package/test-framework/fixtures/health-fund-settings.js +9 -0
- package/test-framework/fixtures/health-funds.js +10 -0
- package/test-framework/fixtures/index.js +45 -0
- package/test-framework/fixtures/members.js +9 -0
- package/test-framework/fixtures/message-mappings.js +61 -0
- package/test-framework/fixtures/modalities.js +9 -0
- package/test-framework/fixtures/patients.js +9 -0
- package/test-framework/fixtures/payment-methods.js +9 -0
- package/test-framework/fixtures/practices.js +11 -0
- package/test-framework/fixtures/products.js +10 -0
- package/test-framework/fixtures/professional-categories.js +9 -0
- package/test-framework/fixtures/services.js +11 -0
- package/test-framework/fixtures/specialties.js +9 -0
- package/test-framework/fixtures/staff.js +12 -0
- package/test-framework/fixtures/subscriptions.js +13 -0
- package/test-framework/fixtures/transaction-reports.js +206 -0
- package/test-framework/fixtures/transactions.js +22 -0
- package/test-framework/fixtures/workflow-exceptions.js +32 -0
- package/test-framework/react.js +38 -0
- package/transaction-details-by-funder.js +81 -0
- package/transaction-status-formatted.js +13 -0
- package/transaction-status-helpers.js +77 -0
- package/transaction-status-icons.js +10 -0
- package/transaction-status-text-classes.js +10 -0
- package/transaction-status.js +42 -0
- package/transactions-6e5fd92d.js +1883 -0
- package/validate-form.js +388 -0
- package/validate.js +37 -0
- package/webpack-config.js +27 -0
- package/workflow-state-formatted-text-classes.js +12 -0
- package/workflow-state-formatted.js +13 -0
package/status-icons.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var constants = require('./constants.js');
|
|
6
|
+
|
|
7
|
+
var _STATUSES$ACTIVE$STAT;
|
|
8
|
+
var statusIcons = (_STATUSES$ACTIVE$STAT = {}, _STATUSES$ACTIVE$STAT[constants.STATUSES.ACTIVE] = 'fa fa-check-circle', _STATUSES$ACTIVE$STAT[constants.STATUSES.UNVERIFIED] = '', _STATUSES$ACTIVE$STAT[constants.STATUSES.NEW] = '', _STATUSES$ACTIVE$STAT[constants.STATUSES.DISABLED] = 'danger', _STATUSES$ACTIVE$STAT[constants.STATUSES.INVITED] = '', _STATUSES$ACTIVE$STAT[constants.STATUSES.CANCELLED] = '', _STATUSES$ACTIVE$STAT[constants.STATUSES.COMPLETED] = '', _STATUSES$ACTIVE$STAT[constants.STATUSES.ERRORED] = 'danger', _STATUSES$ACTIVE$STAT[constants.STATUSES.PENDING] = 'fa fa-clock', _STATUSES$ACTIVE$STAT[constants.STATUSES.EXPIRED] = 'fa fa-exclamation-triangle', _STATUSES$ACTIVE$STAT);
|
|
9
|
+
|
|
10
|
+
exports.default = statusIcons;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var constants = require('./constants.js');
|
|
6
|
+
|
|
7
|
+
var _STATUSES$ACTIVE$STAT;
|
|
8
|
+
var statusTextClasses = (_STATUSES$ACTIVE$STAT = {}, _STATUSES$ACTIVE$STAT[constants.STATUSES.ACTIVE] = 'success', _STATUSES$ACTIVE$STAT[constants.STATUSES.UNVERIFIED] = 'warning', _STATUSES$ACTIVE$STAT[constants.STATUSES.NEW] = 'primary', _STATUSES$ACTIVE$STAT[constants.STATUSES.DISABLED] = 'danger', _STATUSES$ACTIVE$STAT[constants.STATUSES.INVITED] = 'primary', _STATUSES$ACTIVE$STAT[constants.STATUSES.CANCELLED] = 'danger', _STATUSES$ACTIVE$STAT[constants.STATUSES.COMPLETED] = 'success', _STATUSES$ACTIVE$STAT[constants.STATUSES.ERRORED] = 'danger', _STATUSES$ACTIVE$STAT[constants.STATUSES.PENDING] = 'warning', _STATUSES$ACTIVE$STAT[constants.STATUSES.EXPIRED] = 'danger', _STATUSES$ACTIVE$STAT);
|
|
9
|
+
|
|
10
|
+
exports.default = statusTextClasses;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var subscriptionBasic = {
|
|
4
|
+
_id: 'subscriptionBasicId',
|
|
5
|
+
organisationId: 'organisationDefaultId',
|
|
6
|
+
businessId: 'businessDefaultId',
|
|
7
|
+
product: {
|
|
8
|
+
_id: 'productBasicId',
|
|
9
|
+
fullName: 'business:basic',
|
|
10
|
+
displayName: 'mockDisplayName',
|
|
11
|
+
logoUrl: 'mockLogoUrl'
|
|
12
|
+
},
|
|
13
|
+
startDate: new Date('2015-01-01T00:00:00Z'),
|
|
14
|
+
nextBillingDate: new Date('2015-01-15T00:00:00Z'),
|
|
15
|
+
status: 'active',
|
|
16
|
+
billing: {
|
|
17
|
+
currencyCode: 'AUD',
|
|
18
|
+
frequency: 'monthly',
|
|
19
|
+
amountFee: 0,
|
|
20
|
+
amountCharged: 0,
|
|
21
|
+
amountDiscount: 0,
|
|
22
|
+
strategy: 'perprovider'
|
|
23
|
+
},
|
|
24
|
+
created: new Date('2015-01-01T00:00:00Z'),
|
|
25
|
+
modified: new Date('2015-01-02T00:00:00Z')
|
|
26
|
+
};
|
|
27
|
+
var subscriptionPro = {
|
|
28
|
+
_id: 'subscriptionProId',
|
|
29
|
+
organisationId: 'organisationDefaultId',
|
|
30
|
+
businessId: 'businessDefaultId',
|
|
31
|
+
product: {
|
|
32
|
+
_id: 'productProId',
|
|
33
|
+
fullName: 'business:pro',
|
|
34
|
+
displayName: 'mockDisplayName',
|
|
35
|
+
logoUrl: 'mockLogoUrl'
|
|
36
|
+
},
|
|
37
|
+
paymentMethod: {
|
|
38
|
+
_id: 'paymentMethodBusinessId',
|
|
39
|
+
source: 'mastercard',
|
|
40
|
+
methodType: 'creditCard',
|
|
41
|
+
cardType: 'MasterCard',
|
|
42
|
+
lastFour: '8776'
|
|
43
|
+
},
|
|
44
|
+
startDate: new Date('2015-01-01T00:00:00Z'),
|
|
45
|
+
nextBillingDate: new Date('2015-01-15T00:00:00Z'),
|
|
46
|
+
status: 'active',
|
|
47
|
+
billing: {
|
|
48
|
+
currencyCode: 'AUD',
|
|
49
|
+
frequency: 'monthly',
|
|
50
|
+
amountFee: 1000,
|
|
51
|
+
amountCharged: 1000,
|
|
52
|
+
amountDiscount: 0,
|
|
53
|
+
strategy: 'perprovider'
|
|
54
|
+
},
|
|
55
|
+
created: new Date('2015-01-01T00:00:00Z'),
|
|
56
|
+
modified: new Date('2015-01-02T00:00:00Z')
|
|
57
|
+
};
|
|
58
|
+
var subscriptionProWithoutPaymentMethod = {
|
|
59
|
+
_id: 'subscriptionProWithoutPaymentMethodId',
|
|
60
|
+
organisationId: 'organisationDefaultId',
|
|
61
|
+
businessId: 'businessDefaultId',
|
|
62
|
+
product: {
|
|
63
|
+
_id: 'productProId',
|
|
64
|
+
fullName: 'business:pro',
|
|
65
|
+
displayName: 'mockDisplayName',
|
|
66
|
+
logoUrl: 'mockLogoUrl'
|
|
67
|
+
},
|
|
68
|
+
startDate: new Date('2015-01-01T00:00:00Z'),
|
|
69
|
+
nextBillingDate: new Date('2015-01-15T00:00:00Z'),
|
|
70
|
+
status: 'active',
|
|
71
|
+
billing: {
|
|
72
|
+
currencyCode: 'AUD',
|
|
73
|
+
frequency: 'monthly',
|
|
74
|
+
amountFee: 1000,
|
|
75
|
+
amountCharged: 1000,
|
|
76
|
+
amountDiscount: 0,
|
|
77
|
+
strategy: 'perprovider'
|
|
78
|
+
},
|
|
79
|
+
created: new Date('2015-01-01T00:00:00Z'),
|
|
80
|
+
modified: new Date('2015-01-02T00:00:00Z')
|
|
81
|
+
};
|
|
82
|
+
var subscriptionProEnded = {
|
|
83
|
+
_id: 'subscriptionProEndedId',
|
|
84
|
+
organisationId: 'organisationDefaultId',
|
|
85
|
+
businessId: 'businessDefaultId',
|
|
86
|
+
product: {
|
|
87
|
+
_id: 'productProId',
|
|
88
|
+
fullName: 'business:pro',
|
|
89
|
+
displayName: 'mockDisplayName',
|
|
90
|
+
logoUrl: 'mockLogoUrl'
|
|
91
|
+
},
|
|
92
|
+
paymentMethod: {
|
|
93
|
+
_id: 'paymentMethodBusinessId',
|
|
94
|
+
source: 'mastercard',
|
|
95
|
+
methodType: 'creditCard',
|
|
96
|
+
cardType: 'MasterCard',
|
|
97
|
+
lastFour: '8776'
|
|
98
|
+
},
|
|
99
|
+
startDate: new Date('2015-01-01T00:00:00Z'),
|
|
100
|
+
endDate: new Date('2015-02-01T00:00:00Z'),
|
|
101
|
+
nextBillingDate: new Date('2015-01-15T00:00:00Z'),
|
|
102
|
+
status: 'active',
|
|
103
|
+
billing: {
|
|
104
|
+
currencyCode: 'AUD',
|
|
105
|
+
frequency: 'monthly',
|
|
106
|
+
amountFee: 1000,
|
|
107
|
+
amountCharged: 1000,
|
|
108
|
+
amountDiscount: 0,
|
|
109
|
+
strategy: 'perprovider'
|
|
110
|
+
},
|
|
111
|
+
created: new Date('2015-01-01T00:00:00Z'),
|
|
112
|
+
modified: new Date('2015-01-02T00:00:00Z')
|
|
113
|
+
};
|
|
114
|
+
var subscriptionProUpcoming = {
|
|
115
|
+
_id: 'subscriptionProUpcomingId',
|
|
116
|
+
organisationId: 'organisationDefaultId',
|
|
117
|
+
businessId: 'businessDefaultId',
|
|
118
|
+
product: {
|
|
119
|
+
_id: 'productProId',
|
|
120
|
+
fullName: 'business:pro',
|
|
121
|
+
displayName: 'mockDisplayName',
|
|
122
|
+
logoUrl: 'mockLogoUrl'
|
|
123
|
+
},
|
|
124
|
+
paymentMethod: {
|
|
125
|
+
_id: 'paymentMethodBusinessId',
|
|
126
|
+
source: 'mastercard',
|
|
127
|
+
methodType: 'creditCard',
|
|
128
|
+
cardType: 'MasterCard',
|
|
129
|
+
lastFour: '8776'
|
|
130
|
+
},
|
|
131
|
+
startDate: new Date('2015-01-01T00:00:00Z'),
|
|
132
|
+
nextBillingDate: new Date('2015-01-15T00:00:00Z'),
|
|
133
|
+
status: 'active',
|
|
134
|
+
billing: {
|
|
135
|
+
currencyCode: 'AUD',
|
|
136
|
+
frequency: 'monthly',
|
|
137
|
+
amountFee: 1000,
|
|
138
|
+
amountCharged: 1000,
|
|
139
|
+
amountDiscount: 0,
|
|
140
|
+
strategy: 'perprovider'
|
|
141
|
+
},
|
|
142
|
+
created: new Date('2015-01-01T00:00:00Z'),
|
|
143
|
+
modified: new Date('2015-01-02T00:00:00Z')
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
var subscriptions = /*#__PURE__*/Object.freeze({
|
|
147
|
+
__proto__: null,
|
|
148
|
+
subscriptionBasic: subscriptionBasic,
|
|
149
|
+
subscriptionPro: subscriptionPro,
|
|
150
|
+
subscriptionProWithoutPaymentMethod: subscriptionProWithoutPaymentMethod,
|
|
151
|
+
subscriptionProEnded: subscriptionProEnded,
|
|
152
|
+
subscriptionProUpcoming: subscriptionProUpcoming
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
exports.subscriptionBasic = subscriptionBasic;
|
|
156
|
+
exports.subscriptionPro = subscriptionPro;
|
|
157
|
+
exports.subscriptionProEnded = subscriptionProEnded;
|
|
158
|
+
exports.subscriptionProUpcoming = subscriptionProUpcoming;
|
|
159
|
+
exports.subscriptionProWithoutPaymentMethod = subscriptionProWithoutPaymentMethod;
|
|
160
|
+
exports.subscriptions = subscriptions;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var healthFundAccountDefault = {
|
|
6
|
+
_id: 'healthFundUserAccountDefaultId',
|
|
7
|
+
organisationId: 'organisationDefaultId',
|
|
8
|
+
applicationId: 'healthFundAppApplicationId',
|
|
9
|
+
healthFundIds: ['healthFundDefaultId'],
|
|
10
|
+
accountType: 'healthfund',
|
|
11
|
+
username: 'mockhealthfundaccountdefaultusername@localz.co',
|
|
12
|
+
firstName: 'Erlich',
|
|
13
|
+
lastName: 'Bachman',
|
|
14
|
+
password: '$2a$10$uctPFiCCvmAGDMGWlwxt9O5sYAMfhskZnEvCIbjCqepfyku9Ua4G.',
|
|
15
|
+
passcode: '$2a$08$0cGI.OnAc7zAh4dXu1SQEO9aLhxSQaWyVYW5YKzS/uasz1dQav8Wa',
|
|
16
|
+
secretKeys: [{
|
|
17
|
+
key: 'mockHealthFundAccountDefaultSecretKey',
|
|
18
|
+
created: new Date('2015-01-01T00:00:00Z')
|
|
19
|
+
}],
|
|
20
|
+
emailVerified: false,
|
|
21
|
+
mobileVerified: false,
|
|
22
|
+
status: 'ACTIVE',
|
|
23
|
+
tokenVersion: 1,
|
|
24
|
+
incorrectLogins: 0,
|
|
25
|
+
hasPasscode: true,
|
|
26
|
+
refSource: 'mockRefSource',
|
|
27
|
+
settings: {
|
|
28
|
+
autoPayments: true
|
|
29
|
+
},
|
|
30
|
+
created: new Date('2015-01-01T00:00:00Z'),
|
|
31
|
+
modified: new Date('2015-01-02T00:00:00Z')
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
exports.healthFundAccountDefault = healthFundAccountDefault;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var defaultDocument = {
|
|
6
|
+
_id: 'documentFormId',
|
|
7
|
+
organisationId: 'organisationDefaultId',
|
|
8
|
+
healthFund: {
|
|
9
|
+
_id: 'healthFundDefaultId',
|
|
10
|
+
displayName: 'MBP'
|
|
11
|
+
},
|
|
12
|
+
fullName: 'mockFullName',
|
|
13
|
+
displayName: 'mockDisplayName',
|
|
14
|
+
description: 'mockDescription',
|
|
15
|
+
visibilityRules: {
|
|
16
|
+
businessRules: {
|
|
17
|
+
modalities: [{
|
|
18
|
+
_id: 'modalityDefaultId',
|
|
19
|
+
displayName: 'mockDisplayName'
|
|
20
|
+
}],
|
|
21
|
+
states: ['Victoria']
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
documentType: 'form',
|
|
25
|
+
documentId: 'formDefaultId',
|
|
26
|
+
status: 'available',
|
|
27
|
+
searchWords: ['mockFullName', 'mockDisplayName'],
|
|
28
|
+
created: new Date('2018-01-01T00:00:00Z'),
|
|
29
|
+
modified: new Date('2018-02-02T00:00:00Z')
|
|
30
|
+
};
|
|
31
|
+
var applicationDocument = {
|
|
32
|
+
_id: 'documentApplicationId',
|
|
33
|
+
organisationId: 'organisationDefaultId',
|
|
34
|
+
businessId: 'businessDefaultId',
|
|
35
|
+
healthFund: {
|
|
36
|
+
_id: 'healthFundDefaultId',
|
|
37
|
+
displayName: 'BHE'
|
|
38
|
+
},
|
|
39
|
+
practice: {
|
|
40
|
+
_id: 'practiceDefaultId',
|
|
41
|
+
displayName: 'Practice 1'
|
|
42
|
+
},
|
|
43
|
+
visibilityRules: {
|
|
44
|
+
businessRules: {
|
|
45
|
+
modalities: [{
|
|
46
|
+
_id: 'modalityDentalDefaultId',
|
|
47
|
+
displayName: 'Dental'
|
|
48
|
+
}],
|
|
49
|
+
states: ['Western Australia']
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
fullName: 'Dental Member Application Form',
|
|
53
|
+
displayName: 'Dental Member Application Form',
|
|
54
|
+
description: 'Description for dental member application form',
|
|
55
|
+
documentNumber: '0000-0000-1204',
|
|
56
|
+
documentType: 'application',
|
|
57
|
+
documentId: 'formApplicationDefaultId',
|
|
58
|
+
documentModel: 'form-application',
|
|
59
|
+
isPublished: true,
|
|
60
|
+
status: 'pending',
|
|
61
|
+
workflowState: 'inbox',
|
|
62
|
+
createdByAccountId: 'healthFundUserAccountDefaultId',
|
|
63
|
+
createdByAccountUsername: 'mockhealthfundaccountdefaultusername@localz.co',
|
|
64
|
+
createdByStaffId: 'staffPractitionerDefaultId',
|
|
65
|
+
createdByStaffName: 'Bruce Banner',
|
|
66
|
+
created: new Date('2018-01-01T00:00:00Z'),
|
|
67
|
+
modified: new Date('2018-02-02T00:00:00Z'),
|
|
68
|
+
_links: {
|
|
69
|
+
self: {
|
|
70
|
+
assign: 'mockAssignLink'
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
var applicationDocumentAssigned = {
|
|
75
|
+
_id: 'documentApplicationAssignedId',
|
|
76
|
+
organisationId: 'organisationDefaultId',
|
|
77
|
+
businessId: 'businessDefaultId',
|
|
78
|
+
healthFund: {
|
|
79
|
+
_id: 'healthFundDefaultId',
|
|
80
|
+
displayName: 'BHE'
|
|
81
|
+
},
|
|
82
|
+
practice: {
|
|
83
|
+
_id: 'practiceDefaultId',
|
|
84
|
+
displayName: 'Practice 1'
|
|
85
|
+
},
|
|
86
|
+
visibilityRules: {
|
|
87
|
+
businessRules: {
|
|
88
|
+
modalities: [{
|
|
89
|
+
_id: 'modalityDentalDefaultId',
|
|
90
|
+
displayName: 'Dental'
|
|
91
|
+
}],
|
|
92
|
+
states: ['Western Australia']
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
fullName: 'Dental Member Application Form',
|
|
96
|
+
displayName: 'Dental Member Application Form',
|
|
97
|
+
description: 'Description for dental member application form',
|
|
98
|
+
documentNumber: '0000-0000-0004',
|
|
99
|
+
documentType: 'application',
|
|
100
|
+
documentId: 'formApplicationDefaultId',
|
|
101
|
+
documentModel: 'form-application',
|
|
102
|
+
isPublished: true,
|
|
103
|
+
status: 'pending',
|
|
104
|
+
workflowState: 'assigned',
|
|
105
|
+
createdByAccountId: 'mockMedipassBusinessAdmin',
|
|
106
|
+
createdByAccountUsername: 'mockUsername@medipass.io',
|
|
107
|
+
assignedToAccountId: 'healthFundUserAccountDefaultId',
|
|
108
|
+
assignedToUsername: 'mockhealthfundaccountdefaultusername@localz.co',
|
|
109
|
+
created: new Date('2018-01-01T00:00:00Z'),
|
|
110
|
+
modified: new Date('2018-02-02T00:00:00Z'),
|
|
111
|
+
_links: {
|
|
112
|
+
self: {
|
|
113
|
+
approve: 'mockApproveLink',
|
|
114
|
+
decline: 'mockDeclineLink'
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
exports.applicationDocument = applicationDocument;
|
|
120
|
+
exports.applicationDocumentAssigned = applicationDocumentAssigned;
|
|
121
|
+
exports.defaultDocument = defaultDocument;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var defaultFormApplicationTemplate = {
|
|
6
|
+
_id: '5ba9da6a616ec9339bac7787',
|
|
7
|
+
healthFundId: '5760fde7d429db68944f88c4',
|
|
8
|
+
organisationId: '566e4768694d4bc48b441ed0',
|
|
9
|
+
fullName: 'Health Fund Application',
|
|
10
|
+
displayName: 'Health Fund Application',
|
|
11
|
+
description: 'This is an awesome application',
|
|
12
|
+
sections: [{
|
|
13
|
+
subsections: [{
|
|
14
|
+
_id: '1',
|
|
15
|
+
name: 'isRepresentative',
|
|
16
|
+
type: 'representative'
|
|
17
|
+
}],
|
|
18
|
+
name: 'authorisedRep',
|
|
19
|
+
heading: 'Authorised representative details'
|
|
20
|
+
}, {
|
|
21
|
+
subsections: [{
|
|
22
|
+
_id: '2',
|
|
23
|
+
heading: 'Select yo practice',
|
|
24
|
+
name: 'practices',
|
|
25
|
+
type: 'practiceSelector'
|
|
26
|
+
}],
|
|
27
|
+
heading: 'Sign up',
|
|
28
|
+
description: "Trevor Jones (CEO of Health Fund) loves going to hardcore punk gigs, and doing a few roundhouse kicks in the mosh pit. Sometimes, he isn't very careful, and gets kicked in the head by other roundhouse kickers. Thankfully, Health Fund looks after Trev and he gets his skull replacement fully covered!"
|
|
29
|
+
}, {
|
|
30
|
+
subsections: [{
|
|
31
|
+
_id: '3',
|
|
32
|
+
heading: 'Do you like chips?',
|
|
33
|
+
name: 'doesLikeChips',
|
|
34
|
+
type: 'radio',
|
|
35
|
+
positiveButtonText: 'Yeah',
|
|
36
|
+
negativeButtonText: 'Nah',
|
|
37
|
+
mandatory: true,
|
|
38
|
+
hintText: 'Select one',
|
|
39
|
+
defaultValue: 'true'
|
|
40
|
+
}, {
|
|
41
|
+
_id: '4',
|
|
42
|
+
heading: 'Do you like dogs?',
|
|
43
|
+
name: 'doesLikeDogs',
|
|
44
|
+
type: 'checkbox',
|
|
45
|
+
hintText: 'This question is about canines',
|
|
46
|
+
defaultValue: 'false'
|
|
47
|
+
}, {
|
|
48
|
+
_id: '5',
|
|
49
|
+
heading: "What's your name?",
|
|
50
|
+
name: 'name',
|
|
51
|
+
type: 'text',
|
|
52
|
+
hintText: 'Full name',
|
|
53
|
+
mandatory: true
|
|
54
|
+
}],
|
|
55
|
+
heading: 'Introduction',
|
|
56
|
+
description: 'Hello to the humans of the earth, welcome to the health fund! The health fund provides you with super awesome benefits such as tweezing hairs off ya little cute head and brushing your teeth for you in the morning.'
|
|
57
|
+
}, {
|
|
58
|
+
subsections: [{
|
|
59
|
+
_id: '6',
|
|
60
|
+
heading: 'Tell me a story',
|
|
61
|
+
name: 'story',
|
|
62
|
+
type: 'multiText',
|
|
63
|
+
hintText: 'Make it interesting',
|
|
64
|
+
mandatory: false
|
|
65
|
+
}],
|
|
66
|
+
heading: 'Final chapter',
|
|
67
|
+
description: 'Thriller.'
|
|
68
|
+
}],
|
|
69
|
+
modified: '2018-09-21T01:40:53.744Z',
|
|
70
|
+
created: '2018-09-13T02:19:00.321Z',
|
|
71
|
+
status: 'ACTIVE'
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
exports.defaultFormApplicationTemplate = defaultFormApplicationTemplate;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var defaultFormApplication = {
|
|
6
|
+
_id: 'formApplication2DefaultId',
|
|
7
|
+
organisationId: 'organisationDefaultId',
|
|
8
|
+
healthFundId: 'healthFundDefaultId',
|
|
9
|
+
businessId: 'businessDefaultId',
|
|
10
|
+
formApplicationTemplateId: 'formApplicationTemplate2DefaultId',
|
|
11
|
+
formId: 'formDefaultId',
|
|
12
|
+
practice: {
|
|
13
|
+
_id: 'practiceDefaultId',
|
|
14
|
+
displayName: 'Practice 1'
|
|
15
|
+
},
|
|
16
|
+
staffs: [{
|
|
17
|
+
_id: 'staffPractitionerDefaultId',
|
|
18
|
+
firstName: 'Bruce',
|
|
19
|
+
lastName: 'Banner',
|
|
20
|
+
funderId: 'funderDefaultId',
|
|
21
|
+
providerNumber: 'PROVIDER1',
|
|
22
|
+
status: 'ACTIVE'
|
|
23
|
+
}],
|
|
24
|
+
fullName: 'Dental Member Application Form',
|
|
25
|
+
displayName: 'Dental Member Application Form',
|
|
26
|
+
description: 'Description for dental member application form',
|
|
27
|
+
subsections: [{
|
|
28
|
+
_id: '3',
|
|
29
|
+
value: 'true'
|
|
30
|
+
}, {
|
|
31
|
+
_id: '5',
|
|
32
|
+
value: 'John Smith'
|
|
33
|
+
}],
|
|
34
|
+
status: 'pending',
|
|
35
|
+
created: new Date('2018-01-01T00:00:00Z'),
|
|
36
|
+
modified: new Date('2018-02-02T00:00:00Z')
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
exports.defaultFormApplication = defaultFormApplication;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var healthFunds = require('../../health-funds-300facef.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.defaultHealthFund = healthFunds.defaultHealthFund;
|
|
10
|
+
exports.medicareHealthFund = healthFunds.medicareHealthFund;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var transactions = require('../../transactions-6e5fd92d.js');
|
|
6
|
+
var subscriptions = require('../../subscriptions-45c1321a.js');
|
|
7
|
+
var staff = require('../../staff-990794cd.js');
|
|
8
|
+
var specialties = require('../../specialties-7640b7e3.js');
|
|
9
|
+
var services = require('../../services-2e25cdac.js');
|
|
10
|
+
var professionalCategories = require('../../professional-categories-e2e5284b.js');
|
|
11
|
+
var products = require('../../products-bd313cb4.js');
|
|
12
|
+
var practices = require('../../practices-3e703f22.js');
|
|
13
|
+
var paymentMethods = require('../../payment-methods-4fa2d01f.js');
|
|
14
|
+
var patients = require('../../patients-2083dd9c.js');
|
|
15
|
+
var modalities = require('../../modalities-b360d521.js');
|
|
16
|
+
var members = require('../../members-cb4f73a9.js');
|
|
17
|
+
var billableItems = require('../../billable-items-01050ba2.js');
|
|
18
|
+
var businesses = require('../../businesses-e3a20604.js');
|
|
19
|
+
var forms = require('../../forms-f06ca97e.js');
|
|
20
|
+
var healthFundAccounts = require('../../health-fund-accounts-3cd8650f.js');
|
|
21
|
+
var healthFundSettings = require('../../health-fund-settings-43327826.js');
|
|
22
|
+
var healthFunds = require('../../health-funds-300facef.js');
|
|
23
|
+
|
|
24
|
+
var index = {
|
|
25
|
+
billableItems: billableItems.billableItems,
|
|
26
|
+
businesses: businesses.businesses,
|
|
27
|
+
forms: forms.forms,
|
|
28
|
+
healthFundAccounts: healthFundAccounts.healthFundAccounts,
|
|
29
|
+
healthFundSettings: healthFundSettings.healthFundSettings,
|
|
30
|
+
healthFunds: healthFunds.healthFunds,
|
|
31
|
+
members: members.members,
|
|
32
|
+
modalities: modalities.modalities,
|
|
33
|
+
patients: patients.patients,
|
|
34
|
+
paymentMethods: paymentMethods.paymentMethods,
|
|
35
|
+
practices: practices.practices$1,
|
|
36
|
+
products: products.products,
|
|
37
|
+
professionalCategories: professionalCategories.professionalCategories,
|
|
38
|
+
services: services.services,
|
|
39
|
+
specialties: specialties.specialties,
|
|
40
|
+
staff: staff.staff,
|
|
41
|
+
subscriptions: subscriptions.subscriptions,
|
|
42
|
+
transactions: transactions.transactions
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
exports.default = index;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var cancellationMessageMappings = {
|
|
6
|
+
meta: {
|
|
7
|
+
count: 7,
|
|
8
|
+
pageCount: 1,
|
|
9
|
+
totalCount: 7,
|
|
10
|
+
next: null,
|
|
11
|
+
previous: null,
|
|
12
|
+
self: 'https://dev-api-au.medipass.io/v2.3/businesses/5934a17a8c9421002788b359/messagemappings?funderId=5b6923a1983d92182de76583&type=cancellation&limit=99&page=1',
|
|
13
|
+
first: 'https://dev-api-au.medipass.io/v2.3/businesses/5934a17a8c9421002788b359/messagemappings?funderId=5b6923a1983d92182de76583&type=cancellation&limit=99&page=1',
|
|
14
|
+
last: 'https://dev-api-au.medipass.io/v2.3/businesses/5934a17a8c9421002788b359/messagemappings?funderId=5b6923a1983d92182de76583&type=cancellation&limit=99&page=1'
|
|
15
|
+
},
|
|
16
|
+
items: [{
|
|
17
|
+
_id: '5c53c62b616ec9339b72a523',
|
|
18
|
+
refId: '001',
|
|
19
|
+
created: '2019-02-01T04:07:43.224Z',
|
|
20
|
+
modified: '2019-02-06T17:46:04.242Z',
|
|
21
|
+
refMessage: 'Incorrect Patient Selection'
|
|
22
|
+
}, {
|
|
23
|
+
_id: '5c53c62b616ec9339b72a529',
|
|
24
|
+
refId: '002',
|
|
25
|
+
created: '2019-02-01T04:07:43.224Z',
|
|
26
|
+
modified: '2019-02-06T17:46:04.242Z',
|
|
27
|
+
refMessage: 'Incorrect Provider Details'
|
|
28
|
+
}, {
|
|
29
|
+
_id: '5c53c62b616ec9339b72a52f',
|
|
30
|
+
refId: '003',
|
|
31
|
+
created: '2019-02-01T04:07:43.224Z',
|
|
32
|
+
modified: '2019-02-06T17:46:04.242Z',
|
|
33
|
+
refMessage: 'Incorrect Date of Service'
|
|
34
|
+
}, {
|
|
35
|
+
_id: '5c53c62b616ec9339b72a536',
|
|
36
|
+
refId: '004',
|
|
37
|
+
created: '2019-02-01T04:07:43.224Z',
|
|
38
|
+
modified: '2019-02-06T17:46:04.242Z',
|
|
39
|
+
refMessage: 'Incorrect Item Number Claimed'
|
|
40
|
+
}, {
|
|
41
|
+
_id: '5c53c62b616ec9339b72a53c',
|
|
42
|
+
refId: '005',
|
|
43
|
+
created: '2019-02-01T04:07:43.224Z',
|
|
44
|
+
modified: '2019-02-06T17:46:04.242Z',
|
|
45
|
+
refMessage: 'Omitted Text on Original Claim'
|
|
46
|
+
}, {
|
|
47
|
+
_id: '5c53c62b616ec9339b72a542',
|
|
48
|
+
refId: '006',
|
|
49
|
+
created: '2019-02-01T04:07:43.224Z',
|
|
50
|
+
modified: '2019-02-06T17:46:04.242Z',
|
|
51
|
+
refMessage: 'Incorrect Payment Type (ie Paid / Unpaid)'
|
|
52
|
+
}, {
|
|
53
|
+
_id: '5c53c62b616ec9339b72a548',
|
|
54
|
+
refId: '007',
|
|
55
|
+
created: '2019-02-01T04:07:43.224Z',
|
|
56
|
+
modified: '2019-02-06T17:46:04.242Z',
|
|
57
|
+
refMessage: 'Other'
|
|
58
|
+
}]
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
exports.cancellationMessageMappings = cancellationMessageMappings;
|