@eka-care/ekascribe-ts-sdk 1.5.50 → 1.5.51
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.
|
@@ -30,7 +30,6 @@ const setEnv = ({ env, clientId, auth_token, }) => {
|
|
|
30
30
|
auth = auth_token;
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
console.log(envVar, 'dev');
|
|
34
33
|
export const GET_S3_BUCKET_NAME = () => envVar.S3_BUCKET_NAME;
|
|
35
34
|
export const GET_CLIENT_ID = () => client_id;
|
|
36
35
|
export const GET_AUTH_TOKEN = () => auth;
|
|
@@ -34,13 +34,16 @@ const searchBySessionId = (sessions, sessionId) => {
|
|
|
34
34
|
// Combined search function that applies multiple criteria
|
|
35
35
|
const performSearch = (sessions, searchCriteria) => {
|
|
36
36
|
let filteredSessions = sessions;
|
|
37
|
+
console.log(sessions, searchCriteria, 'searchCriteria');
|
|
37
38
|
// Apply patient name filter if provided
|
|
38
39
|
if (searchCriteria.patientName) {
|
|
39
40
|
filteredSessions = searchByPatientName(filteredSessions, searchCriteria.patientName);
|
|
41
|
+
console.log(filteredSessions, 'filteredSessions - patientName');
|
|
40
42
|
}
|
|
41
43
|
// Apply session ID filter if provided
|
|
42
44
|
if (searchCriteria.sessionId) {
|
|
43
45
|
filteredSessions = searchBySessionId(filteredSessions, searchCriteria.sessionId);
|
|
46
|
+
console.log(filteredSessions, 'filteredSessions - sessionId');
|
|
44
47
|
}
|
|
45
48
|
// If no search criteria provided, return all sessions
|
|
46
49
|
if (!searchCriteria.patientName && !searchCriteria.sessionId) {
|