sera-ai 1.0.35 → 1.0.36

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 CHANGED
@@ -12,7 +12,7 @@ interface AudioRecorderProps {
12
12
  apiKey: string;
13
13
  apiBaseUrl?: string;
14
14
  encounterId?: string;
15
- templateId?: string;
15
+ template?: string;
16
16
  patientHistory?: string;
17
17
  patientDetails?: PatientDetails;
18
18
  selectedFormat?: "json" | "hl7" | "fhir";
package/dist/index.d.ts CHANGED
@@ -12,7 +12,7 @@ interface AudioRecorderProps {
12
12
  apiKey: string;
13
13
  apiBaseUrl?: string;
14
14
  encounterId?: string;
15
- templateId?: string;
15
+ template?: string;
16
16
  patientHistory?: string;
17
17
  patientDetails?: PatientDetails;
18
18
  selectedFormat?: "json" | "hl7" | "fhir";
package/dist/index.js CHANGED
@@ -1470,10 +1470,10 @@ var useHL7FHIRConverter = () => {
1470
1470
  )}|||||F|||${timestamp}`
1471
1471
  );
1472
1472
  }
1473
- if (requestData.templateId) {
1473
+ if (requestData.template) {
1474
1474
  hl7Lines.push(
1475
1475
  `OBX|${obxSequence++}|TX|TEMPLATE_ID^Template Identifier||${escapeHL7(
1476
- requestData.templateId
1476
+ requestData.template
1477
1477
  )}|||||F|||${timestamp}`
1478
1478
  );
1479
1479
  }
@@ -1797,8 +1797,8 @@ var useHL7FHIRConverter = () => {
1797
1797
  if (requestData.encounterId) {
1798
1798
  formData.append("encounterId", requestData.encounterId);
1799
1799
  }
1800
- if (requestData.templateId) {
1801
- formData.append("templateId", requestData.templateId);
1800
+ if (requestData.template) {
1801
+ formData.append("template", requestData.template);
1802
1802
  }
1803
1803
  formData.append("sequence", requestData.sequence.toString());
1804
1804
  formData.append("isFinalChunk", requestData.isFinalChunk.toString());
@@ -2864,7 +2864,7 @@ var useAudioRecorder = ({
2864
2864
  apiBaseUrl = API_BASE_URL,
2865
2865
  speciality,
2866
2866
  encounterId,
2867
- templateId,
2867
+ template,
2868
2868
  patientHistory,
2869
2869
  patientDetails,
2870
2870
  selectedFormat = "json",
@@ -3129,7 +3129,7 @@ var useAudioRecorder = ({
3129
3129
  model: selectedModelRef.current,
3130
3130
  doctorName,
3131
3131
  encounterId,
3132
- templateId,
3132
+ template,
3133
3133
  patientDetails: patientDetailsPayload,
3134
3134
  removeSilence: removeSilenceRef.current,
3135
3135
  skipDiarization: skipDiarizationRef.current,
@@ -3159,7 +3159,7 @@ var useAudioRecorder = ({
3159
3159
  formData.append("model", selectedModelRef.current);
3160
3160
  formData.append("doctorName", doctorName);
3161
3161
  if (encounterId) formData.append("encounterId", encounterId);
3162
- if (templateId) formData.append("templateId", templateId);
3162
+ if (template) formData.append("template", template);
3163
3163
  if (patientHistory) formData.append("patientHistory", patientHistory);
3164
3164
  if (patientDetailsPayload) {
3165
3165
  formData.append("patientDetails", JSON.stringify(patientDetailsPayload));
@@ -4315,7 +4315,7 @@ var AudioRecorder = ({
4315
4315
  apiBaseUrl,
4316
4316
  speciality,
4317
4317
  encounterId,
4318
- templateId,
4318
+ template,
4319
4319
  patientHistory,
4320
4320
  patientDetails,
4321
4321
  selectedFormat = "json",
@@ -4353,7 +4353,7 @@ var AudioRecorder = ({
4353
4353
  apiBaseUrl,
4354
4354
  speciality,
4355
4355
  encounterId,
4356
- templateId,
4356
+ template,
4357
4357
  patientHistory,
4358
4358
  patientDetails,
4359
4359
  selectedFormat,