@healthcloudai/hc-patient-telehealth 0.0.2

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.
@@ -0,0 +1,57 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentType } from 'react';
3
+
4
+ type TelehealthTokenResponse = {
5
+ token: string;
6
+ appId: string;
7
+ channelName: string;
8
+ uid: number;
9
+ };
10
+ type TelehealthTokenClient = {
11
+ connectToTokenServer: () => Promise<TelehealthTokenResponse>;
12
+ };
13
+ type VideoElementProps = {
14
+ tokenClient: TelehealthTokenClient;
15
+ autoJoin?: boolean;
16
+ onJoinedChange?: (joined: boolean) => void;
17
+ onError?: (error: Error) => void;
18
+ };
19
+
20
+ declare function HCPatientTelehealth(props: VideoElementProps): react_jsx_runtime.JSX.Element;
21
+
22
+ declare const VideoElement: ComponentType<VideoElementProps>;
23
+
24
+ type Environment = "dev" | "uat" | "prod";
25
+ interface SubmitQuestionnairePayload {
26
+ title: string;
27
+ healthServiceId: string;
28
+ questions: QuestionnaireQuestion[];
29
+ reasons?: QuestionnaireReason[];
30
+ hpi?: string;
31
+ }
32
+ interface QuestionnaireQuestion {
33
+ question: string;
34
+ actualAnswers: QuestionnaireAnswer[];
35
+ }
36
+ interface QuestionnaireAnswer {
37
+ fhirId?: string;
38
+ text: string;
39
+ outcome?: string | null;
40
+ }
41
+ interface QuestionnaireReason {
42
+ id: string;
43
+ name: string;
44
+ }
45
+
46
+ declare class ConfigError extends Error {
47
+ constructor(message: string);
48
+ }
49
+ declare class AuthError extends Error {
50
+ constructor(message: string);
51
+ }
52
+ declare class HttpError extends Error {
53
+ status: number;
54
+ constructor(status: number, message: string);
55
+ }
56
+
57
+ export { AuthError, ConfigError, type Environment, HCPatientTelehealth, HttpError, type QuestionnaireAnswer, type QuestionnaireQuestion, type QuestionnaireReason, type SubmitQuestionnairePayload, type TelehealthTokenClient, type TelehealthTokenResponse, VideoElement, type VideoElementProps, HCPatientTelehealth as default };
@@ -0,0 +1,57 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentType } from 'react';
3
+
4
+ type TelehealthTokenResponse = {
5
+ token: string;
6
+ appId: string;
7
+ channelName: string;
8
+ uid: number;
9
+ };
10
+ type TelehealthTokenClient = {
11
+ connectToTokenServer: () => Promise<TelehealthTokenResponse>;
12
+ };
13
+ type VideoElementProps = {
14
+ tokenClient: TelehealthTokenClient;
15
+ autoJoin?: boolean;
16
+ onJoinedChange?: (joined: boolean) => void;
17
+ onError?: (error: Error) => void;
18
+ };
19
+
20
+ declare function HCPatientTelehealth(props: VideoElementProps): react_jsx_runtime.JSX.Element;
21
+
22
+ declare const VideoElement: ComponentType<VideoElementProps>;
23
+
24
+ type Environment = "dev" | "uat" | "prod";
25
+ interface SubmitQuestionnairePayload {
26
+ title: string;
27
+ healthServiceId: string;
28
+ questions: QuestionnaireQuestion[];
29
+ reasons?: QuestionnaireReason[];
30
+ hpi?: string;
31
+ }
32
+ interface QuestionnaireQuestion {
33
+ question: string;
34
+ actualAnswers: QuestionnaireAnswer[];
35
+ }
36
+ interface QuestionnaireAnswer {
37
+ fhirId?: string;
38
+ text: string;
39
+ outcome?: string | null;
40
+ }
41
+ interface QuestionnaireReason {
42
+ id: string;
43
+ name: string;
44
+ }
45
+
46
+ declare class ConfigError extends Error {
47
+ constructor(message: string);
48
+ }
49
+ declare class AuthError extends Error {
50
+ constructor(message: string);
51
+ }
52
+ declare class HttpError extends Error {
53
+ status: number;
54
+ constructor(status: number, message: string);
55
+ }
56
+
57
+ export { AuthError, ConfigError, type Environment, HCPatientTelehealth, HttpError, type QuestionnaireAnswer, type QuestionnaireQuestion, type QuestionnaireReason, type SubmitQuestionnairePayload, type TelehealthTokenClient, type TelehealthTokenResponse, VideoElement, type VideoElementProps, HCPatientTelehealth as default };