@natch-the-storage/heathershaw-platform-types 1.19.13 → 1.19.15
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/build/validators.d.ts +7 -1
- package/build/validators.js +33 -0
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -67,6 +67,8 @@ export type Pharmacy = {
|
|
|
67
67
|
email: string;
|
|
68
68
|
};
|
|
69
69
|
export declare const PHARMACIES: Pharmacy[];
|
|
70
|
+
/** High risk medicines, used in admin order tags */
|
|
71
|
+
export declare const HIGH_RISK_KEYWORDS: readonly ["CLONIDINE", "ARIPIPRAZOLE", "GABAPENTIN", "BACLOFEN", "BICALUTAMIDE", "DEXAMFETAMINE", "DOMPERIDONE", "HYOSCINE BUTYLBROMIDE", "KETAMINE", "5FU", "FLUOROURACIL", "7-KETO DHEA", "ATENOLOL", "DHEA", "ESTRADIOL (E2)", "ESTRIOL (E3)", "ESTRONE", "ISOTRETINOIN", "LEVOTHYROXINE (T4)", "LIOTHYRONINE (T4)", "LITHIUM", "METHOTREXATE", "PROGESTERONE", "TESTOSTERONE", "THYROID", "ESTRADIOL", "ESTRIOL", "BIEST"];
|
|
70
72
|
/**
|
|
71
73
|
* Checks if the lineItems has an item with the cold chain property
|
|
72
74
|
* @param items
|
|
@@ -348,8 +350,12 @@ export interface PartnerPharmacyProfile {
|
|
|
348
350
|
paymentMode: PartnerPharmacyPaymentMode;
|
|
349
351
|
remindersEnabled?: boolean;
|
|
350
352
|
addresses: Address[];
|
|
351
|
-
xeroContactId?: string | null;
|
|
352
353
|
hubspotContactId?: string;
|
|
354
|
+
xeroContactId?: string | null;
|
|
355
|
+
xeroInvoicePrefix?: string;
|
|
356
|
+
bankAccountName?: string;
|
|
357
|
+
bankAccountNumber?: string;
|
|
358
|
+
bsb?: string;
|
|
353
359
|
email: string;
|
|
354
360
|
phoneNumber: string;
|
|
355
361
|
}
|
package/build/validators.js
CHANGED
|
@@ -127,6 +127,7 @@ export const POLICY_PATIENT_SHIPPING_RETURNS = 'https://indigo-giraffe-135840.ho
|
|
|
127
127
|
/** Partner pharmacy agreement policy */
|
|
128
128
|
export const POLICY_PARTNER_PHARMACY_AGREEMENT = 'https://indigo-giraffe-135840.hostingersite.com/heathershaws-web/src/pages/pharmacy-agreement.html';
|
|
129
129
|
export const PHARMACIES = [
|
|
130
|
+
/** MALVERN ROAD */
|
|
130
131
|
{
|
|
131
132
|
name: 'Malvern Road',
|
|
132
133
|
address: {
|
|
@@ -196,6 +197,37 @@ export const PHARMACIES = [
|
|
|
196
197
|
email: 'wr@hcip.com.au',
|
|
197
198
|
},
|
|
198
199
|
];
|
|
200
|
+
/** High risk medicines, used in admin order tags */
|
|
201
|
+
export const HIGH_RISK_KEYWORDS = [
|
|
202
|
+
'CLONIDINE',
|
|
203
|
+
'ARIPIPRAZOLE',
|
|
204
|
+
'GABAPENTIN',
|
|
205
|
+
'BACLOFEN',
|
|
206
|
+
'BICALUTAMIDE',
|
|
207
|
+
'DEXAMFETAMINE',
|
|
208
|
+
'DOMPERIDONE',
|
|
209
|
+
'HYOSCINE BUTYLBROMIDE',
|
|
210
|
+
'KETAMINE',
|
|
211
|
+
'5FU',
|
|
212
|
+
'FLUOROURACIL',
|
|
213
|
+
'7-KETO DHEA',
|
|
214
|
+
'ATENOLOL',
|
|
215
|
+
'DHEA',
|
|
216
|
+
'ESTRADIOL (E2)',
|
|
217
|
+
'ESTRIOL (E3)',
|
|
218
|
+
'ESTRONE',
|
|
219
|
+
'ISOTRETINOIN',
|
|
220
|
+
'LEVOTHYROXINE (T4)',
|
|
221
|
+
'LIOTHYRONINE (T4)',
|
|
222
|
+
'LITHIUM',
|
|
223
|
+
'METHOTREXATE',
|
|
224
|
+
'PROGESTERONE',
|
|
225
|
+
'TESTOSTERONE',
|
|
226
|
+
'THYROID',
|
|
227
|
+
'ESTRADIOL',
|
|
228
|
+
'ESTRIOL',
|
|
229
|
+
'BIEST',
|
|
230
|
+
];
|
|
199
231
|
// #endregion
|
|
200
232
|
//#region Common functions ──────────────────────────────────────────────────────────────
|
|
201
233
|
/**
|
|
@@ -204,6 +236,7 @@ export const PHARMACIES = [
|
|
|
204
236
|
* @returns
|
|
205
237
|
*/
|
|
206
238
|
export function lineItemsHasColdChain(items) {
|
|
239
|
+
console.log();
|
|
207
240
|
return items.some((item) => item.itemProperties.properties.some((p) => p.code === 'WARN 6' || p.code === 'WARN H'));
|
|
208
241
|
}
|
|
209
242
|
/**
|