@natch-the-storage/heathershaw-platform-types 1.5.3 → 1.6.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.
@@ -25,12 +25,6 @@ export interface Address {
25
25
  addressName?: string;
26
26
  defaultAddress?: boolean;
27
27
  }
28
- export interface PrescriberSelect {
29
- id: number;
30
- name: string;
31
- email: string;
32
- phone: string;
33
- }
34
28
  export interface HealthInfo {
35
29
  medicationFor?: string;
36
30
  pregnantOrBreastfeeding: boolean;
@@ -43,16 +37,11 @@ export interface HealthInfo {
43
37
  }
44
38
  export interface ScriptSelect {
45
39
  id: number;
46
- prescriberId: number;
47
40
  patientRecordId: number;
48
- productId: number;
49
- dateIssued: string;
41
+ uploaded: string;
50
42
  processed: boolean;
51
- repeatsRemaining: number;
52
- daysSupply: number;
53
- repeatStorage: RepeatStorage;
54
- compoundDirectId: string | null;
55
- imageKey: string | null;
43
+ token?: string | null;
44
+ fileKey?: string | null;
56
45
  }
57
46
  export interface OrderSelect {
58
47
  id: number;
@@ -93,12 +82,10 @@ export interface DirectUserProfile {
93
82
  id: number;
94
83
  userId?: string;
95
84
  remindersEnabled?: boolean;
96
- scriptSubmissions?: ScriptSelect[];
97
85
  }
98
86
  export interface DirectUserProfileCreate {
99
87
  userId: string;
100
88
  remindersEnabled?: boolean;
101
- scriptSubmissions?: ScriptSelect[];
102
89
  }
103
90
  export interface Order {
104
91
  id: number;
@@ -222,17 +209,6 @@ export interface PatientRecordCreate {
222
209
  animalSpecies?: string;
223
210
  relationship?: string | null;
224
211
  }
225
- export interface Prescriber {
226
- id: number;
227
- name?: string;
228
- email?: string;
229
- phone?: string;
230
- }
231
- export interface PrescriberCreate {
232
- name: string;
233
- email: string;
234
- phone: string;
235
- }
236
212
  export interface PriceMatch {
237
213
  id: number;
238
214
  partnerPharmacyProfileId?: number;
@@ -313,28 +289,23 @@ export interface RepeatReminderCreate {
313
289
  }
314
290
  export interface Script {
315
291
  id: number;
316
- prescriberId?: number;
317
- patientRecordId?: number;
318
- productId?: number;
319
- dateIssued?: string;
320
- processed?: boolean;
321
- repeatsRemaining?: number;
322
- daysSupply?: number;
323
- repeatStorage?: RepeatStorage;
324
- compoundDirectId?: string | null;
325
- imageKey?: string | null;
292
+ patientRecordId: number;
293
+ uploaded: string;
294
+ processed: boolean;
295
+ token?: string | null;
296
+ fileKey?: string | null;
326
297
  }
327
- export interface ScriptCreate {
328
- prescriberId: number;
298
+ export interface EScriptCreate {
329
299
  patientRecordId: number;
330
- productId: number;
331
- dateIssued: string;
332
- daysSupply: number;
333
- repeatStorage: RepeatStorage;
334
- processed?: boolean;
335
- repeatsRemaining?: number;
336
- compoundDirectId?: string | null;
337
- imageKey?: string | null;
300
+ uploaded: string;
301
+ token: string;
302
+ }
303
+ export interface PaperScriptCreate {
304
+ patientRecordId: number;
305
+ uploaded: string;
306
+ filename: string;
307
+ contentType: string;
308
+ folder: string;
338
309
  }
339
310
  export declare const CompoundDirectAnimalId: {
340
311
  readonly dog: {
@@ -489,17 +460,11 @@ export declare const ApiRoutes: {
489
460
  update: string;
490
461
  delete: (id: number) => string;
491
462
  };
492
- prescribers: {
493
- list: string;
494
- get: (id: number) => string;
495
- create: string;
496
- update: string;
497
- delete: (id: number) => string;
498
- };
499
463
  scripts: {
500
464
  list: string;
501
465
  get: (id: number) => string;
502
- create: string;
466
+ createEscript: string;
467
+ createPaperScript: string;
503
468
  update: string;
504
469
  delete: (id: number) => string;
505
470
  };
@@ -68,17 +68,11 @@ export const ApiRoutes = {
68
68
  update: "/api/patient-records",
69
69
  delete: (id) => `/api/patient-records/${id}`,
70
70
  },
71
- prescribers: {
72
- list: "/api/prescribers",
73
- get: (id) => `/api/prescribers/${id}`,
74
- create: "/api/prescribers",
75
- update: "/api/prescribers",
76
- delete: (id) => `/api/prescribers/${id}`,
77
- },
78
71
  scripts: {
79
72
  list: "/api/scripts",
80
73
  get: (id) => `/api/scripts/${id}`,
81
- create: "/api/scripts",
74
+ createEscript: "/api/scripts/escripts",
75
+ createPaperScript: "/api/scripts/paper-scripts",
82
76
  update: "/api/scripts",
83
77
  delete: (id) => `/api/scripts/${id}`,
84
78
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.5.3",
3
+ "version": "1.6.0",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",