sera-ai 1.0.34 → 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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -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
|
@@ -1470,6 +1470,13 @@ var useHL7FHIRConverter = () => {
|
|
|
1470
1470
|
)}|||||F|||${timestamp}`
|
|
1471
1471
|
);
|
|
1472
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
|
+
}
|
|
1473
1480
|
if (requestData.patientDetails?.age !== void 0) {
|
|
1474
1481
|
hl7Lines.push(
|
|
1475
1482
|
`OBX|${obxSequence++}|NM|PATIENT_AGE^Patient Age||${requestData.patientDetails.age}|||||F|||${timestamp}`
|
|
@@ -1790,6 +1797,9 @@ var useHL7FHIRConverter = () => {
|
|
|
1790
1797
|
if (requestData.encounterId) {
|
|
1791
1798
|
formData.append("encounterId", requestData.encounterId);
|
|
1792
1799
|
}
|
|
1800
|
+
if (requestData.templateId) {
|
|
1801
|
+
formData.append("templateId", requestData.templateId);
|
|
1802
|
+
}
|
|
1793
1803
|
formData.append("sequence", requestData.sequence.toString());
|
|
1794
1804
|
formData.append("isFinalChunk", requestData.isFinalChunk.toString());
|
|
1795
1805
|
console.log(`[SERA] FHIR FormData created | sessionId=${requestData.sessionId || "none"}`);
|
|
@@ -2854,6 +2864,7 @@ var useAudioRecorder = ({
|
|
|
2854
2864
|
apiBaseUrl = API_BASE_URL,
|
|
2855
2865
|
speciality,
|
|
2856
2866
|
encounterId,
|
|
2867
|
+
templateId,
|
|
2857
2868
|
patientHistory,
|
|
2858
2869
|
patientDetails,
|
|
2859
2870
|
selectedFormat = "json",
|
|
@@ -3118,6 +3129,7 @@ var useAudioRecorder = ({
|
|
|
3118
3129
|
model: selectedModelRef.current,
|
|
3119
3130
|
doctorName,
|
|
3120
3131
|
encounterId,
|
|
3132
|
+
templateId,
|
|
3121
3133
|
patientDetails: patientDetailsPayload,
|
|
3122
3134
|
removeSilence: removeSilenceRef.current,
|
|
3123
3135
|
skipDiarization: skipDiarizationRef.current,
|
|
@@ -3147,6 +3159,7 @@ var useAudioRecorder = ({
|
|
|
3147
3159
|
formData.append("model", selectedModelRef.current);
|
|
3148
3160
|
formData.append("doctorName", doctorName);
|
|
3149
3161
|
if (encounterId) formData.append("encounterId", encounterId);
|
|
3162
|
+
if (templateId) formData.append("templateId", templateId);
|
|
3150
3163
|
if (patientHistory) formData.append("patientHistory", patientHistory);
|
|
3151
3164
|
if (patientDetailsPayload) {
|
|
3152
3165
|
formData.append("patientDetails", JSON.stringify(patientDetailsPayload));
|
|
@@ -4302,6 +4315,7 @@ var AudioRecorder = ({
|
|
|
4302
4315
|
apiBaseUrl,
|
|
4303
4316
|
speciality,
|
|
4304
4317
|
encounterId,
|
|
4318
|
+
templateId,
|
|
4305
4319
|
patientHistory,
|
|
4306
4320
|
patientDetails,
|
|
4307
4321
|
selectedFormat = "json",
|
|
@@ -4339,6 +4353,7 @@ var AudioRecorder = ({
|
|
|
4339
4353
|
apiBaseUrl,
|
|
4340
4354
|
speciality,
|
|
4341
4355
|
encounterId,
|
|
4356
|
+
templateId,
|
|
4342
4357
|
patientHistory,
|
|
4343
4358
|
patientDetails,
|
|
4344
4359
|
selectedFormat,
|