@natch-the-storage/heathershaw-platform-types 1.10.4 → 1.10.5
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 +21 -0
- package/build/validators.js +1 -0
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export interface LineItem {
|
|
|
48
48
|
scriptDetails?: {
|
|
49
49
|
token?: string;
|
|
50
50
|
fileKey?: string;
|
|
51
|
+
fileName?: string;
|
|
51
52
|
};
|
|
52
53
|
paperScriptReceived: boolean;
|
|
53
54
|
otherScriptProperties: {
|
|
@@ -252,6 +253,7 @@ export interface PatientRecord {
|
|
|
252
253
|
lastName: string;
|
|
253
254
|
dateOfBirth: string;
|
|
254
255
|
medicareNumber?: string | null;
|
|
256
|
+
email: string;
|
|
255
257
|
phone: string;
|
|
256
258
|
addresses?: Address[];
|
|
257
259
|
healthInfo?: HealthInfo;
|
|
@@ -269,6 +271,7 @@ export interface PatientRecordCreate {
|
|
|
269
271
|
firstName: string;
|
|
270
272
|
lastName: string;
|
|
271
273
|
dateOfBirth: string;
|
|
274
|
+
email: string;
|
|
272
275
|
phone: string;
|
|
273
276
|
medicareNumber?: string | null;
|
|
274
277
|
addresses?: Address[];
|
|
@@ -346,6 +349,22 @@ export interface Script {
|
|
|
346
349
|
processed: boolean;
|
|
347
350
|
token?: string | null;
|
|
348
351
|
fileKey?: string | null;
|
|
352
|
+
fileName?: string | null;
|
|
353
|
+
}
|
|
354
|
+
export interface AdminScript {
|
|
355
|
+
id: number;
|
|
356
|
+
patientRecordId: number;
|
|
357
|
+
partnerPharmacyProfileId?: number;
|
|
358
|
+
uploaded: string;
|
|
359
|
+
processed: boolean;
|
|
360
|
+
token?: string | null;
|
|
361
|
+
fileKey?: string | null;
|
|
362
|
+
fileName?: string | null;
|
|
363
|
+
firstName: string;
|
|
364
|
+
lastName: string;
|
|
365
|
+
dateOfBirth: string;
|
|
366
|
+
phone: string;
|
|
367
|
+
email: string;
|
|
349
368
|
}
|
|
350
369
|
export interface EScriptCreate {
|
|
351
370
|
patientRecordId: number;
|
|
@@ -356,6 +375,7 @@ export interface PaperScriptCreate {
|
|
|
356
375
|
patientRecordId: number;
|
|
357
376
|
partnerPharmacyProfileId?: number;
|
|
358
377
|
fileKey: string;
|
|
378
|
+
fileName: string;
|
|
359
379
|
}
|
|
360
380
|
export interface getScriptsQuery {
|
|
361
381
|
patientRecordId?: number;
|
|
@@ -743,6 +763,7 @@ export declare const ApiRoutes: {
|
|
|
743
763
|
scripts: {
|
|
744
764
|
get: (filters?: getScriptsQuery) => string;
|
|
745
765
|
getById: (id: number) => string;
|
|
766
|
+
getAdminScripts: string;
|
|
746
767
|
createEscript: string;
|
|
747
768
|
createPaperScript: string;
|
|
748
769
|
update: string;
|
package/build/validators.js
CHANGED
|
@@ -187,6 +187,7 @@ export const ApiRoutes = {
|
|
|
187
187
|
return `/api/scripts${query ? `?${query}` : ''}`;
|
|
188
188
|
},
|
|
189
189
|
getById: (id) => `/api/scripts/${id}`,
|
|
190
|
+
getAdminScripts: '/api/scripts/admin-scripts',
|
|
190
191
|
createEscript: '/api/scripts/escripts',
|
|
191
192
|
createPaperScript: '/api/scripts/paper-scripts',
|
|
192
193
|
update: '/api/scripts',
|