testaugnitoambientsdk2 2.1.24 → 2.1.25

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/README.md CHANGED
@@ -625,7 +625,25 @@ Used to fetch Transcription for any note that is recorded. It is essential to en
625
625
  | 500 | Unable to extract transcript data. Please try again. | Failed to complete the operation. Please try again later. | Received when generated SOAP note can not be retrieved |
626
626
  | 500 | Internal Marshaling Error | Failed to complete the operation. Please try again later. | Received when generated transcript is not in expected readable format |
627
627
 
628
- ### 18-Check for Internet Connectivity
628
+ ### 18- Send Feedback
629
+
630
+ Used to submit feedback for a generated note.
631
+
632
+ ```js
633
+ /**
634
+ * @param JobId the job identifier for which feedback is being submitted
635
+ * @param Ratings a numeric rating from 1 to 5, value representing user satisfaction with the generated note
636
+ * @param Comment optional text comment providing additional feedback details
637
+ * @param Type optional string to specify the feedback category, defaults to 'SOAPFeedBack'
638
+ * @returns success response on successful submission of feedback else fail response
639
+ */
640
+ public async sendFeedback(JobId: string, Ratings: number, Comment?: string, Type?: string): Promise<any>
641
+
642
+ //Usage
643
+ var response = await augnitoAmbient.sendFeedback("job-id", 4, "Good note quality", "SOAPFeedBack");
644
+ ```
645
+
646
+ ### 19-Check for Internet Connectivity
629
647
 
630
648
  Used to check if browser has access to internet connection or not
631
649
 
@@ -134,6 +134,13 @@ export declare class AugnitoAmbient {
134
134
  * @returns JSON object contains Time in seconds, Text spoken at that time and also array of MedicalData to highlight on success else fail response.
135
135
  */
136
136
  fetchTranscriptionForNote(JobId: string): Promise<any>;
137
+ /**
138
+ * @param JobId the job identifier for which feedback is being submitted
139
+ * @param Ratings a numeric rating from 1 to 5, value representing user satisfaction with the generated note
140
+ * @param Comment optional text comment providing additional feedback details
141
+ * @param Type optional string to specify the feedback category, defaults to 'SOAPFeedBack'
142
+ * @returns success response on successful submission of feedback else fail response
143
+ */
137
144
  sendFeedback(JobId: string, Ratings: number, Comment?: string, Type?: string): Promise<any>;
138
145
  /**
139
146
  * @param ConfigId to retrieve user config list for speciality type, visit type etc
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaugnitoambientsdk2",
3
- "version": "2.1.24",
3
+ "version": "2.1.25",
4
4
  "description": "Use this typescript SDK to integrate Augnito’s Ambient Tech within your EMR. To get access credentials or know more about how Augnito Ambient can benefit you, please visit our website and connect with our sales team: https://augnito.ai/",
5
5
  "main": "dist/augnitoambientsdk.js",
6
6
  "types": "dist/index.d.ts",
@@ -505,6 +505,13 @@ export class AugnitoAmbient {
505
505
  }
506
506
  }
507
507
 
508
+ /**
509
+ * @param JobId the job identifier for which feedback is being submitted
510
+ * @param Ratings a numeric rating from 1 to 5, value representing user satisfaction with the generated note
511
+ * @param Comment optional text comment providing additional feedback details
512
+ * @param Type optional string to specify the feedback category, defaults to 'SOAPFeedBack'
513
+ * @returns success response on successful submission of feedback else fail response
514
+ */
508
515
  public async sendFeedback(JobId: string, Ratings: number, Comment?: string, Type?: string): Promise<any> {
509
516
  try {
510
517
  if (!this._ambientRestAPI) {