@omniloy/sofia-sdk 0.0.7 → 0.0.9

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
@@ -53,7 +53,9 @@ import '@omniloy/sofia-sdk';
53
53
  apikey="your-api-key"
54
54
  userid="dr-garcia-123"
55
55
  patientid="patient-456"
56
- toolsargs='{"$schema": "http://json-schema.org/draft-07/schema#", "title": "Medical Consultation", "type": "object", "properties": {"diagnosis": {"type": "string"}}, "required": ["diagnosis"]}'>
56
+ toolsargs='{"$schema": "http://json-schema.org/draft-07/schema#", "title": "Medical Consultation", "type": "object", "properties": {"diagnosis": {"type": "string"}}, "required": ["diagnosis"]}'
57
+ templateid='1234'
58
+ >
57
59
  </sofia-sdk>
58
60
  ```
59
61
 
@@ -85,7 +87,8 @@ All properties below are mandatory for proper SDK functionality:
85
87
  | **apikey** | `string` | Authentication key provided by Omniloy |
86
88
  | **userid** | `string` | Unique identifier of the healthcare professional |
87
89
  | **patientid** | `string` | Unique identifier of the patient for the session |
88
- | **toolsargs** | `string` | JSON Schema Draft-07 defining clinical data structure |
90
+ | **toolsargs** | `string` | JSON Schema Draft-07 defining clinical data structure - mandatory if isonlychat is not "true" |
91
+ | **templateid** | `string` | The current template Id - mandatory if isonlychat is not "true" |
89
92
 
90
93
  ### Getting Credentials
91
94
 
@@ -4,6 +4,7 @@ declare enum LanguageCode {
4
4
  ar = "ar",
5
5
  en = "en",
6
6
  es = "es",
7
+ hi = "hi",
7
8
  id = "id"
8
9
  }
9
10
 
@@ -12,13 +13,14 @@ export declare interface OmniscribeProps {
12
13
  wssurl: string;
13
14
  apikey: string;
14
15
  userid: string;
15
- toolsargs: object;
16
16
  patientid: string;
17
+ templateid?: string;
18
+ toolsargs?: object;
17
19
  isopen?: boolean;
18
20
  setIsOpen?: React_2.Dispatch<React_2.SetStateAction<boolean>>;
19
21
  patientdata?: object;
20
22
  transcriptorselectvalues?: TTranscriptorSelect;
21
- handleReport: (report: object) => void;
23
+ handleReport?: (report: object) => void;
22
24
  handleFill?: () => Promise<void>;
23
25
  renderReportContent?: TRenderReport | undefined;
24
26
  toast?: TToastState;
@@ -26,7 +28,7 @@ export declare interface OmniscribeProps {
26
28
  language?: LanguageCode;
27
29
  isscreenloading?: boolean;
28
30
  disableactions?: boolean;
29
- onlychat?: boolean;
31
+ isonlychat?: boolean;
30
32
  disablegenerate?: boolean;
31
33
  debug?: boolean;
32
34
  setGetLastReport?: (fn: () => Promise<object | undefined>) => void;