@natch-the-storage/heathershaw-platform-types 1.19.12 → 1.19.13
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 +2 -1
- package/build/validators.js +1 -1
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -160,13 +160,14 @@ export interface LineItem {
|
|
|
160
160
|
fileName?: string;
|
|
161
161
|
};
|
|
162
162
|
paperScriptReceived: boolean;
|
|
163
|
-
|
|
163
|
+
itemProperties: {
|
|
164
164
|
for: {
|
|
165
165
|
customerId: number;
|
|
166
166
|
patientRecordId: number;
|
|
167
167
|
patientFirstName: string;
|
|
168
168
|
patientLastName: string;
|
|
169
169
|
};
|
|
170
|
+
formulationId: number;
|
|
170
171
|
expiryDate: string;
|
|
171
172
|
repeatsLeft: number;
|
|
172
173
|
supplyNumber: number;
|
package/build/validators.js
CHANGED
|
@@ -204,7 +204,7 @@ export const PHARMACIES = [
|
|
|
204
204
|
* @returns
|
|
205
205
|
*/
|
|
206
206
|
export function lineItemsHasColdChain(items) {
|
|
207
|
-
return items.some((item) => item.
|
|
207
|
+
return items.some((item) => item.itemProperties.properties.some((p) => p.code === 'WARN 6' || p.code === 'WARN H'));
|
|
208
208
|
}
|
|
209
209
|
/**
|
|
210
210
|
* Gets an iso timestamp based on the current AU-Sydney/Melbourne timezone
|