@natch-the-storage/heathershaw-platform-types 1.16.9 → 1.17.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.
- package/build/validators.d.ts +18 -4
- package/build/validators.js +3 -4
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -307,6 +307,7 @@ export interface PatientRecord {
|
|
|
307
307
|
lastName: string;
|
|
308
308
|
dateOfBirth: string;
|
|
309
309
|
medicareNumber?: string;
|
|
310
|
+
medicareIrn?: string;
|
|
310
311
|
email: string;
|
|
311
312
|
phoneNumber: string;
|
|
312
313
|
addresses: Address[];
|
|
@@ -328,6 +329,20 @@ export type PatientRecordConsent = Pick<PatientRecord, 'id' | 'firstName' | 'las
|
|
|
328
329
|
phoneNumber?: string;
|
|
329
330
|
email?: string;
|
|
330
331
|
};
|
|
332
|
+
export interface PatientRecordAuthorisationData {
|
|
333
|
+
owner: {
|
|
334
|
+
id: number;
|
|
335
|
+
firstName: string;
|
|
336
|
+
lastName: string;
|
|
337
|
+
};
|
|
338
|
+
subaccount: {
|
|
339
|
+
id: number;
|
|
340
|
+
firstName: string;
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
export interface PatientRecordHandleAuthorisationBody {
|
|
344
|
+
rejected: boolean;
|
|
345
|
+
}
|
|
331
346
|
export interface PriceMatch {
|
|
332
347
|
id: number;
|
|
333
348
|
partnerPharmacyProfileId: number;
|
|
@@ -942,10 +957,9 @@ export declare const ApiRoutes: {
|
|
|
942
957
|
create: string;
|
|
943
958
|
update: string;
|
|
944
959
|
delete: (id: number) => string;
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
declineConsent: string;
|
|
960
|
+
authorisationNotification: string;
|
|
961
|
+
getAuthorisationData: (token: string) => string;
|
|
962
|
+
handleAuthorisation: (token: string) => string;
|
|
949
963
|
};
|
|
950
964
|
priceMatches: {
|
|
951
965
|
list: (filters?: {
|
package/build/validators.js
CHANGED
|
@@ -324,10 +324,9 @@ export const ApiRoutes = {
|
|
|
324
324
|
create: '/api/patient-records',
|
|
325
325
|
update: '/api/patient-records',
|
|
326
326
|
delete: (id) => `/api/patient-records/${id}`,
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
declineConsent: '/api/patient-records/decline-consent',
|
|
327
|
+
authorisationNotification: '/api/notifications/patient-records',
|
|
328
|
+
getAuthorisationData: (token) => `/api/patient-records/authorisation-tokens/${token}`,
|
|
329
|
+
handleAuthorisation: (token) => `/api/patient-records/authorisation-tokens/${token}`,
|
|
331
330
|
},
|
|
332
331
|
priceMatches: {
|
|
333
332
|
list: (filters) => `/api/price-matches${handleParams(filters)}`,
|