sera-ai 1.0.33 → 1.0.35
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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1463,6 +1463,20 @@ var useHL7FHIRConverter = () => {
|
|
|
1463
1463
|
)}|||||F|||${timestamp}`
|
|
1464
1464
|
);
|
|
1465
1465
|
}
|
|
1466
|
+
if (requestData.encounterId) {
|
|
1467
|
+
hl7Lines.push(
|
|
1468
|
+
`OBX|${obxSequence++}|TX|ENCOUNTER_ID^Encounter Identifier||${escapeHL7(
|
|
1469
|
+
requestData.encounterId
|
|
1470
|
+
)}|||||F|||${timestamp}`
|
|
1471
|
+
);
|
|
1472
|
+
}
|
|
1473
|
+
if (requestData.templateId) {
|
|
1474
|
+
hl7Lines.push(
|
|
1475
|
+
`OBX|${obxSequence++}|TX|TEMPLATE_ID^Template Identifier||${escapeHL7(
|
|
1476
|
+
requestData.templateId
|
|
1477
|
+
)}|||||F|||${timestamp}`
|
|
1478
|
+
);
|
|
1479
|
+
}
|
|
1466
1480
|
if (requestData.patientDetails?.age !== void 0) {
|
|
1467
1481
|
hl7Lines.push(
|
|
1468
1482
|
`OBX|${obxSequence++}|NM|PATIENT_AGE^Patient Age||${requestData.patientDetails.age}|||||F|||${timestamp}`
|
|
@@ -1780,6 +1794,12 @@ var useHL7FHIRConverter = () => {
|
|
|
1780
1794
|
if (requestData.sessionId) {
|
|
1781
1795
|
formData.append("sessionId", requestData.sessionId);
|
|
1782
1796
|
}
|
|
1797
|
+
if (requestData.encounterId) {
|
|
1798
|
+
formData.append("encounterId", requestData.encounterId);
|
|
1799
|
+
}
|
|
1800
|
+
if (requestData.templateId) {
|
|
1801
|
+
formData.append("templateId", requestData.templateId);
|
|
1802
|
+
}
|
|
1783
1803
|
formData.append("sequence", requestData.sequence.toString());
|
|
1784
1804
|
formData.append("isFinalChunk", requestData.isFinalChunk.toString());
|
|
1785
1805
|
console.log(`[SERA] FHIR FormData created | sessionId=${requestData.sessionId || "none"}`);
|
|
@@ -2843,6 +2863,8 @@ var useAudioRecorder = ({
|
|
|
2843
2863
|
apiKey,
|
|
2844
2864
|
apiBaseUrl = API_BASE_URL,
|
|
2845
2865
|
speciality,
|
|
2866
|
+
encounterId,
|
|
2867
|
+
templateId,
|
|
2846
2868
|
patientHistory,
|
|
2847
2869
|
patientDetails,
|
|
2848
2870
|
selectedFormat = "json",
|
|
@@ -3106,6 +3128,8 @@ var useAudioRecorder = ({
|
|
|
3106
3128
|
sessionId: retry ? void 0 : sessionIdRef.current || void 0,
|
|
3107
3129
|
model: selectedModelRef.current,
|
|
3108
3130
|
doctorName,
|
|
3131
|
+
encounterId,
|
|
3132
|
+
templateId,
|
|
3109
3133
|
patientDetails: patientDetailsPayload,
|
|
3110
3134
|
removeSilence: removeSilenceRef.current,
|
|
3111
3135
|
skipDiarization: skipDiarizationRef.current,
|
|
@@ -3134,6 +3158,8 @@ var useAudioRecorder = ({
|
|
|
3134
3158
|
formData.append("audio", audioFile);
|
|
3135
3159
|
formData.append("model", selectedModelRef.current);
|
|
3136
3160
|
formData.append("doctorName", doctorName);
|
|
3161
|
+
if (encounterId) formData.append("encounterId", encounterId);
|
|
3162
|
+
if (templateId) formData.append("templateId", templateId);
|
|
3137
3163
|
if (patientHistory) formData.append("patientHistory", patientHistory);
|
|
3138
3164
|
if (patientDetailsPayload) {
|
|
3139
3165
|
formData.append("patientDetails", JSON.stringify(patientDetailsPayload));
|
|
@@ -4288,6 +4314,8 @@ var AudioRecorder = ({
|
|
|
4288
4314
|
apiKey,
|
|
4289
4315
|
apiBaseUrl,
|
|
4290
4316
|
speciality,
|
|
4317
|
+
encounterId,
|
|
4318
|
+
templateId,
|
|
4291
4319
|
patientHistory,
|
|
4292
4320
|
patientDetails,
|
|
4293
4321
|
selectedFormat = "json",
|
|
@@ -4324,6 +4352,8 @@ var AudioRecorder = ({
|
|
|
4324
4352
|
apiKey,
|
|
4325
4353
|
apiBaseUrl,
|
|
4326
4354
|
speciality,
|
|
4355
|
+
encounterId,
|
|
4356
|
+
templateId,
|
|
4327
4357
|
patientHistory,
|
|
4328
4358
|
patientDetails,
|
|
4329
4359
|
selectedFormat,
|