@blackcode_sa/metaestetics-api 1.14.27 → 1.14.28
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/dist/index.js
CHANGED
|
@@ -9322,7 +9322,9 @@ var getPatientsByClinicWithDetailsUtil = async (db, clinicId, options) => {
|
|
|
9322
9322
|
// Merge phoneNumber from sensitive info if not in profile
|
|
9323
9323
|
phoneNumber: profile.phoneNumber || (sensitiveInfo == null ? void 0 : sensitiveInfo.phoneNumber) || null,
|
|
9324
9324
|
// Merge dateOfBirth from sensitive info if not in profile
|
|
9325
|
-
dateOfBirth: profile.dateOfBirth || (sensitiveInfo == null ? void 0 : sensitiveInfo.dateOfBirth) || null
|
|
9325
|
+
dateOfBirth: profile.dateOfBirth || (sensitiveInfo == null ? void 0 : sensitiveInfo.dateOfBirth) || null,
|
|
9326
|
+
// Merge photoUrl from sensitive info if available
|
|
9327
|
+
photoUrl: (sensitiveInfo == null ? void 0 : sensitiveInfo.photoUrl) || null
|
|
9326
9328
|
};
|
|
9327
9329
|
} catch (error) {
|
|
9328
9330
|
console.error(
|
package/dist/index.mjs
CHANGED
|
@@ -9283,7 +9283,9 @@ var getPatientsByClinicWithDetailsUtil = async (db, clinicId, options) => {
|
|
|
9283
9283
|
// Merge phoneNumber from sensitive info if not in profile
|
|
9284
9284
|
phoneNumber: profile.phoneNumber || (sensitiveInfo == null ? void 0 : sensitiveInfo.phoneNumber) || null,
|
|
9285
9285
|
// Merge dateOfBirth from sensitive info if not in profile
|
|
9286
|
-
dateOfBirth: profile.dateOfBirth || (sensitiveInfo == null ? void 0 : sensitiveInfo.dateOfBirth) || null
|
|
9286
|
+
dateOfBirth: profile.dateOfBirth || (sensitiveInfo == null ? void 0 : sensitiveInfo.dateOfBirth) || null,
|
|
9287
|
+
// Merge photoUrl from sensitive info if available
|
|
9288
|
+
photoUrl: (sensitiveInfo == null ? void 0 : sensitiveInfo.photoUrl) || null
|
|
9287
9289
|
};
|
|
9288
9290
|
} catch (error) {
|
|
9289
9291
|
console.error(
|
package/package.json
CHANGED
|
@@ -127,7 +127,9 @@ export const getPatientsByClinicWithDetailsUtil = async (
|
|
|
127
127
|
phoneNumber: profile.phoneNumber || sensitiveInfo?.phoneNumber || null,
|
|
128
128
|
// Merge dateOfBirth from sensitive info if not in profile
|
|
129
129
|
dateOfBirth: profile.dateOfBirth || sensitiveInfo?.dateOfBirth || null,
|
|
130
|
-
|
|
130
|
+
// Merge photoUrl from sensitive info if available
|
|
131
|
+
photoUrl: sensitiveInfo?.photoUrl || null,
|
|
132
|
+
} as PatientProfile & { photoUrl?: string | null };
|
|
131
133
|
} catch (error) {
|
|
132
134
|
console.error(
|
|
133
135
|
`[getPatientsByClinicWithDetailsUtil] Error fetching sensitive info for patient ${profile.id}:`,
|