@eka-care/ekascribe-ts-sdk 1.5.52 → 1.5.54
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.
|
@@ -9,27 +9,32 @@ export type TGetConfigV2Response = {
|
|
|
9
9
|
supported_output_formats: number;
|
|
10
10
|
consultation_modes: number;
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
settings: TConfigSettings;
|
|
13
|
+
my_templates: [
|
|
14
|
+
{
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
}
|
|
18
|
+
];
|
|
16
19
|
user_details: {
|
|
20
|
+
uuid: string;
|
|
17
21
|
fn: string;
|
|
18
22
|
mn: string;
|
|
19
23
|
ln: string;
|
|
20
24
|
dob: string;
|
|
21
25
|
gen: 'F' | 'M' | 'O';
|
|
22
26
|
s: string;
|
|
27
|
+
wid: string;
|
|
28
|
+
'b-id': string;
|
|
23
29
|
is_paid_doc: boolean;
|
|
24
|
-
uuid: string;
|
|
25
30
|
};
|
|
26
|
-
|
|
31
|
+
selected_preferences?: TSelectedPreferences;
|
|
27
32
|
};
|
|
28
33
|
message?: string;
|
|
29
34
|
code?: number;
|
|
30
35
|
};
|
|
31
36
|
export type TSelectedPreferences = {
|
|
32
|
-
|
|
37
|
+
input_languages?: TGetConfigItem[];
|
|
33
38
|
output_formats?: string[];
|
|
34
39
|
consultation_mode?: string;
|
|
35
40
|
use_audio_cues?: boolean;
|
|
@@ -344,6 +349,7 @@ export type TPatchVoiceApiV2ConfigRequest = {
|
|
|
344
349
|
default_languages?: string[];
|
|
345
350
|
my_templates?: string[];
|
|
346
351
|
scribe_enabled?: boolean;
|
|
352
|
+
request_type?: string;
|
|
347
353
|
};
|
|
348
354
|
export interface TPatchVoiceApiV2ConfigResponse extends TPatchVoiceApiV2ConfigRequest {
|
|
349
355
|
msg: string;
|
|
@@ -34,16 +34,13 @@ 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');
|
|
38
37
|
// Apply patient name filter if provided
|
|
39
38
|
if (searchCriteria.patientName) {
|
|
40
39
|
filteredSessions = searchByPatientName(filteredSessions, searchCriteria.patientName);
|
|
41
|
-
console.log(filteredSessions, 'filteredSessions - patientName');
|
|
42
40
|
}
|
|
43
41
|
// Apply session ID filter if provided
|
|
44
42
|
if (searchCriteria.sessionId) {
|
|
45
43
|
filteredSessions = searchBySessionId(filteredSessions, searchCriteria.sessionId);
|
|
46
|
-
console.log(filteredSessions, 'filteredSessions - sessionId');
|
|
47
44
|
}
|
|
48
45
|
// If no search criteria provided, return all sessions
|
|
49
46
|
if (!searchCriteria.patientName && !searchCriteria.sessionId) {
|