@tryvital/vital-node 2.1.20 → 2.1.21
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.
@@ -1,6 +1,12 @@
|
|
1
|
-
import {USAddress} from
|
1
|
+
import { USAddress } from './athome_phlebotomy_models';
|
2
2
|
|
3
|
-
export type ConsentType =
|
3
|
+
export type ConsentType =
|
4
|
+
| 'terms-of-use'
|
5
|
+
| 'telehealth-informed-consent'
|
6
|
+
| 'mobile-terms-and-conditions'
|
7
|
+
| 'notice-of-privacy-practices'
|
8
|
+
| 'privacy-policy'
|
9
|
+
| 'hipaa-authorization';
|
4
10
|
|
5
11
|
export type Consent = {
|
6
12
|
consentType: ConsentType;
|
@@ -73,7 +79,7 @@ export interface TestkitEvent {
|
|
73
79
|
status: string;
|
74
80
|
}
|
75
81
|
|
76
|
-
export interface PayorAddress{
|
82
|
+
export interface PayorAddress {
|
77
83
|
city: string;
|
78
84
|
state: string;
|
79
85
|
zip: string;
|
@@ -170,7 +176,35 @@ export interface LabResultsMetadata {
|
|
170
176
|
|
171
177
|
export interface LabResultsResponse {
|
172
178
|
metadata: LabResultsMetadata;
|
173
|
-
results:
|
179
|
+
results: Result[];
|
180
|
+
}
|
181
|
+
|
182
|
+
export enum Interpretation {
|
183
|
+
NORMAL = 'normal',
|
184
|
+
ABNORMAL = 'abnormal',
|
185
|
+
CRITICAL = 'critical',
|
186
|
+
}
|
187
|
+
|
188
|
+
export enum ResultType {
|
189
|
+
NUMERIC = 'numeric',
|
190
|
+
RANGE = 'range',
|
191
|
+
COMMENT = 'comment',
|
192
|
+
}
|
193
|
+
|
194
|
+
export interface Result {
|
195
|
+
name: string;
|
196
|
+
slug: string; // Optional and has a default value of an empty string
|
197
|
+
value: number; // Deprecated
|
198
|
+
result: string;
|
199
|
+
type: ResultType;
|
200
|
+
unit?: string; // Optional
|
201
|
+
timestamp?: Date; // Optional
|
202
|
+
notes?: string; // Optional
|
203
|
+
min_range_value?: number; // Optional
|
204
|
+
max_range_value?: number; // Optional
|
205
|
+
is_above_max_range?: boolean; // Optional
|
206
|
+
is_below_min_range?: boolean; // Optional
|
207
|
+
interpretation: Interpretation; // default value of Interpretation.NORMAL
|
174
208
|
}
|
175
209
|
|
176
210
|
export interface AreaInfo {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare type ConsentType =
|
1
|
+
export declare type ConsentType = 'terms-of-use' | 'telehealth-informed-consent' | 'mobile-terms-and-conditions' | 'notice-of-privacy-practices' | 'privacy-policy' | 'hipaa-authorization';
|
2
2
|
export declare type Consent = {
|
3
3
|
consentType: ConsentType;
|
4
4
|
};
|
@@ -134,7 +134,32 @@ export interface LabResultsMetadata {
|
|
134
134
|
}
|
135
135
|
export interface LabResultsResponse {
|
136
136
|
metadata: LabResultsMetadata;
|
137
|
-
results:
|
137
|
+
results: Result[];
|
138
|
+
}
|
139
|
+
export declare enum Interpretation {
|
140
|
+
NORMAL = "normal",
|
141
|
+
ABNORMAL = "abnormal",
|
142
|
+
CRITICAL = "critical"
|
143
|
+
}
|
144
|
+
export declare enum ResultType {
|
145
|
+
NUMERIC = "numeric",
|
146
|
+
RANGE = "range",
|
147
|
+
COMMENT = "comment"
|
148
|
+
}
|
149
|
+
export interface Result {
|
150
|
+
name: string;
|
151
|
+
slug: string;
|
152
|
+
value: number;
|
153
|
+
result: string;
|
154
|
+
type: ResultType;
|
155
|
+
unit?: string;
|
156
|
+
timestamp?: Date;
|
157
|
+
notes?: string;
|
158
|
+
min_range_value?: number;
|
159
|
+
max_range_value?: number;
|
160
|
+
is_above_max_range?: boolean;
|
161
|
+
is_below_min_range?: boolean;
|
162
|
+
interpretation: Interpretation;
|
138
163
|
}
|
139
164
|
export interface AreaInfo {
|
140
165
|
zip_code: string;
|
@@ -1,2 +1,15 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ResultType = exports.Interpretation = void 0;
|
4
|
+
var Interpretation;
|
5
|
+
(function (Interpretation) {
|
6
|
+
Interpretation["NORMAL"] = "normal";
|
7
|
+
Interpretation["ABNORMAL"] = "abnormal";
|
8
|
+
Interpretation["CRITICAL"] = "critical";
|
9
|
+
})(Interpretation = exports.Interpretation || (exports.Interpretation = {}));
|
10
|
+
var ResultType;
|
11
|
+
(function (ResultType) {
|
12
|
+
ResultType["NUMERIC"] = "numeric";
|
13
|
+
ResultType["RANGE"] = "range";
|
14
|
+
ResultType["COMMENT"] = "comment";
|
15
|
+
})(ResultType = exports.ResultType || (exports.ResultType = {}));
|