sera-ai 1.0.7 → 1.0.8
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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2828,6 +2828,7 @@ var useAudioRecorder = ({
|
|
|
2828
2828
|
speciality,
|
|
2829
2829
|
patientId,
|
|
2830
2830
|
patientName,
|
|
2831
|
+
patientHistory,
|
|
2831
2832
|
selectedFormat = "json",
|
|
2832
2833
|
skipDiarization = true,
|
|
2833
2834
|
silenceRemoval = true,
|
|
@@ -3209,6 +3210,7 @@ var useAudioRecorder = ({
|
|
|
3209
3210
|
formData.append("model", selectedModelRef.current);
|
|
3210
3211
|
formData.append("doctorName", doctorName);
|
|
3211
3212
|
formData.append("patientName", patientName || "");
|
|
3213
|
+
if (patientHistory) formData.append("patientHistory", patientHistory);
|
|
3212
3214
|
if (patientId) formData.append("patientId", patientId.toString());
|
|
3213
3215
|
formData.append("removeSilence", removeSilenceRef.current.toString());
|
|
3214
3216
|
formData.append("skipDiarization", skipDiarizationRef.current.toString());
|
|
@@ -3390,6 +3392,7 @@ var useAudioRecorder = ({
|
|
|
3390
3392
|
skipDiarization,
|
|
3391
3393
|
selectedFormat,
|
|
3392
3394
|
patientName,
|
|
3395
|
+
patientHistory,
|
|
3393
3396
|
onTranscriptionComplete,
|
|
3394
3397
|
speciality,
|
|
3395
3398
|
removeSilence,
|
|
@@ -3448,6 +3451,7 @@ var useAudioRecorder = ({
|
|
|
3448
3451
|
await createSession(localSessionId, {
|
|
3449
3452
|
patientId,
|
|
3450
3453
|
patientName: patientName || void 0,
|
|
3454
|
+
patientHistory: patientHistory || void 0,
|
|
3451
3455
|
speciality
|
|
3452
3456
|
});
|
|
3453
3457
|
}
|
|
@@ -3546,6 +3550,7 @@ var useAudioRecorder = ({
|
|
|
3546
3550
|
createSession,
|
|
3547
3551
|
patientId,
|
|
3548
3552
|
patientName,
|
|
3553
|
+
patientHistory,
|
|
3549
3554
|
speciality,
|
|
3550
3555
|
currentDeviceId
|
|
3551
3556
|
]);
|
|
@@ -4336,6 +4341,7 @@ var AudioRecorder = ({
|
|
|
4336
4341
|
speciality,
|
|
4337
4342
|
patientId,
|
|
4338
4343
|
patientName,
|
|
4344
|
+
patientHistory,
|
|
4339
4345
|
onTranscriptionUpdate,
|
|
4340
4346
|
onTranscriptionComplete,
|
|
4341
4347
|
onSuccess,
|
|
@@ -4370,6 +4376,7 @@ var AudioRecorder = ({
|
|
|
4370
4376
|
speciality,
|
|
4371
4377
|
patientName,
|
|
4372
4378
|
patientId,
|
|
4379
|
+
patientHistory,
|
|
4373
4380
|
onTranscriptionUpdate: (text, sessionId) => {
|
|
4374
4381
|
console.log("onTranscriptionUpdate called with text:", text, "sessionId:", sessionId);
|
|
4375
4382
|
if (text.length > 0) {
|