@natch-the-storage/heathershaw-platform-types 1.3.4 → 1.3.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 +2 -4
- package/build/validators.js +2 -2
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -138,9 +138,6 @@ export interface PartnerPharmacyProfile {
|
|
|
138
138
|
xeroContactId?: string | null;
|
|
139
139
|
}
|
|
140
140
|
export type PartnerPharmacyProfileCreate = Omit<PartnerPharmacyProfile, "id">;
|
|
141
|
-
export interface GetPatientRecordsQuery extends GetAll {
|
|
142
|
-
partner_pharmacy_profile_id?: number;
|
|
143
|
-
}
|
|
144
141
|
export interface PatientRecord {
|
|
145
142
|
id: number;
|
|
146
143
|
partnerPharmacyProfileId?: number | null;
|
|
@@ -156,6 +153,7 @@ export interface PatientRecord {
|
|
|
156
153
|
reminderEnabled?: boolean;
|
|
157
154
|
scripts?: ScriptSelect[];
|
|
158
155
|
orderHistory?: OrderSelect[];
|
|
156
|
+
relationship?: string | null;
|
|
159
157
|
}
|
|
160
158
|
export type PatientRecordCreate = Omit<PatientRecord, "id">;
|
|
161
159
|
export interface Prescriber {
|
|
@@ -233,7 +231,7 @@ export declare const apiRoutes: {
|
|
|
233
231
|
delete: (id: number) => string;
|
|
234
232
|
};
|
|
235
233
|
patientRecords: {
|
|
236
|
-
list:
|
|
234
|
+
list: string;
|
|
237
235
|
get: (id?: number, type?: "partner" | "direct") => string;
|
|
238
236
|
getByUser: (userId: string) => string;
|
|
239
237
|
create: string;
|
package/build/validators.js
CHANGED
|
@@ -33,8 +33,8 @@ export const apiRoutes = {
|
|
|
33
33
|
delete: (id) => `/api/orders/${id}`,
|
|
34
34
|
},
|
|
35
35
|
patientRecords: {
|
|
36
|
-
list:
|
|
37
|
-
get: (id, type) =>
|
|
36
|
+
list: "/api/patient-records",
|
|
37
|
+
get: (id, type) => "/api/patient-records" + `${type ? "?" + type + "=" + id : ""}`,
|
|
38
38
|
getByUser: (userId) => `/api/patient-records/user/${userId}`,
|
|
39
39
|
create: "/api/patient-records",
|
|
40
40
|
update: "/api/patient-records",
|