@tryvital/vital-node 3.1.490 → 3.1.492

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.
Files changed (166) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +7 -2
  3. package/api/resources/activity/client/Client.js +2 -2
  4. package/api/resources/aggregate/client/Client.js +3 -3
  5. package/api/resources/body/client/Client.js +2 -2
  6. package/api/resources/devices/client/Client.js +1 -1
  7. package/api/resources/electrocardiogram/client/Client.js +1 -1
  8. package/api/resources/index.d.ts +2 -0
  9. package/api/resources/index.js +3 -1
  10. package/api/resources/insurance/client/Client.js +3 -3
  11. package/api/resources/introspect/client/Client.js +2 -2
  12. package/api/resources/labReport/client/Client.d.ts +61 -0
  13. package/api/resources/labReport/client/Client.js +198 -0
  14. package/api/resources/labReport/client/index.d.ts +1 -0
  15. package/api/resources/labReport/client/index.js +17 -0
  16. package/api/resources/labReport/client/requests/BodyCreateLabReportParserJob.d.ts +10 -0
  17. package/api/resources/labReport/client/requests/BodyCreateLabReportParserJob.js +5 -0
  18. package/api/resources/labReport/client/requests/ParserGetJobLabReportRequest.d.ts +9 -0
  19. package/api/resources/labReport/client/requests/ParserGetJobLabReportRequest.js +5 -0
  20. package/api/resources/labReport/client/requests/index.d.ts +2 -0
  21. package/api/resources/labReport/client/requests/index.js +2 -0
  22. package/api/resources/labReport/index.d.ts +1 -0
  23. package/api/resources/labReport/index.js +17 -0
  24. package/api/resources/labTests/client/Client.js +42 -42
  25. package/api/resources/link/client/Client.js +19 -19
  26. package/api/resources/meal/client/Client.js +1 -1
  27. package/api/resources/menstrualCycle/client/Client.js +1 -1
  28. package/api/resources/order/client/Client.js +1 -1
  29. package/api/resources/payor/client/Client.js +1 -1
  30. package/api/resources/profile/client/Client.js +2 -2
  31. package/api/resources/providers/client/Client.js +1 -1
  32. package/api/resources/sleep/client/Client.js +3 -3
  33. package/api/resources/sleepCycle/client/Client.js +1 -1
  34. package/api/resources/team/client/Client.js +7 -7
  35. package/api/resources/testkit/client/Client.js +2 -2
  36. package/api/resources/user/client/Client.js +19 -19
  37. package/api/resources/vitals/client/Client.js +78 -78
  38. package/api/resources/workouts/client/Client.js +3 -3
  39. package/api/types/Interpretation.d.ts +2 -1
  40. package/api/types/Interpretation.js +1 -0
  41. package/api/types/LabReportResult.d.ts +17 -0
  42. package/api/types/LabReportResult.js +5 -0
  43. package/api/types/LabReportResultType.d.ts +16 -0
  44. package/api/types/LabReportResultType.js +15 -0
  45. package/api/types/LoincMatch.d.ts +10 -0
  46. package/api/types/LoincMatch.js +5 -0
  47. package/api/types/ParsedLabReportData.d.ts +8 -0
  48. package/api/types/ParsedLabReportData.js +5 -0
  49. package/api/types/ParsingJob.d.ts +11 -0
  50. package/api/types/ParsingJob.js +5 -0
  51. package/api/types/ParsingJobStatus.d.ts +13 -0
  52. package/api/types/ParsingJobStatus.js +12 -0
  53. package/api/types/ResultMetadata.d.ts +12 -0
  54. package/api/types/ResultMetadata.js +5 -0
  55. package/api/types/index.d.ts +7 -0
  56. package/api/types/index.js +7 -0
  57. package/core/form-data-utils/FormDataWrapper.d.ts +60 -0
  58. package/core/form-data-utils/FormDataWrapper.js +174 -0
  59. package/core/form-data-utils/index.d.ts +1 -0
  60. package/core/form-data-utils/index.js +17 -0
  61. package/core/index.d.ts +1 -0
  62. package/core/index.js +1 -0
  63. package/dist/Client.d.ts +3 -0
  64. package/dist/Client.js +7 -2
  65. package/dist/api/resources/activity/client/Client.js +2 -2
  66. package/dist/api/resources/aggregate/client/Client.js +3 -3
  67. package/dist/api/resources/body/client/Client.js +2 -2
  68. package/dist/api/resources/devices/client/Client.js +1 -1
  69. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  70. package/dist/api/resources/index.d.ts +2 -0
  71. package/dist/api/resources/index.js +3 -1
  72. package/dist/api/resources/insurance/client/Client.js +3 -3
  73. package/dist/api/resources/introspect/client/Client.js +2 -2
  74. package/dist/api/resources/labReport/client/Client.d.ts +61 -0
  75. package/dist/api/resources/labReport/client/Client.js +198 -0
  76. package/dist/api/resources/labReport/client/index.d.ts +1 -0
  77. package/dist/api/resources/labReport/client/index.js +17 -0
  78. package/dist/api/resources/labReport/client/requests/BodyCreateLabReportParserJob.d.ts +10 -0
  79. package/dist/api/resources/labReport/client/requests/BodyCreateLabReportParserJob.js +5 -0
  80. package/dist/api/resources/labReport/client/requests/ParserGetJobLabReportRequest.d.ts +9 -0
  81. package/dist/api/resources/labReport/client/requests/ParserGetJobLabReportRequest.js +5 -0
  82. package/dist/api/resources/labReport/client/requests/index.d.ts +2 -0
  83. package/dist/api/resources/labReport/client/requests/index.js +2 -0
  84. package/dist/api/resources/labReport/index.d.ts +1 -0
  85. package/dist/api/resources/labReport/index.js +17 -0
  86. package/dist/api/resources/labTests/client/Client.js +42 -42
  87. package/dist/api/resources/link/client/Client.js +19 -19
  88. package/dist/api/resources/meal/client/Client.js +1 -1
  89. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  90. package/dist/api/resources/order/client/Client.js +1 -1
  91. package/dist/api/resources/payor/client/Client.js +1 -1
  92. package/dist/api/resources/profile/client/Client.js +2 -2
  93. package/dist/api/resources/providers/client/Client.js +1 -1
  94. package/dist/api/resources/sleep/client/Client.js +3 -3
  95. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  96. package/dist/api/resources/team/client/Client.js +7 -7
  97. package/dist/api/resources/testkit/client/Client.js +2 -2
  98. package/dist/api/resources/user/client/Client.js +19 -19
  99. package/dist/api/resources/vitals/client/Client.js +78 -78
  100. package/dist/api/resources/workouts/client/Client.js +3 -3
  101. package/dist/api/types/Interpretation.d.ts +2 -1
  102. package/dist/api/types/Interpretation.js +1 -0
  103. package/dist/api/types/LabReportResult.d.ts +17 -0
  104. package/dist/api/types/LabReportResult.js +5 -0
  105. package/dist/api/types/LabReportResultType.d.ts +16 -0
  106. package/dist/api/types/LabReportResultType.js +15 -0
  107. package/dist/api/types/LoincMatch.d.ts +10 -0
  108. package/dist/api/types/LoincMatch.js +5 -0
  109. package/dist/api/types/ParsedLabReportData.d.ts +8 -0
  110. package/dist/api/types/ParsedLabReportData.js +5 -0
  111. package/dist/api/types/ParsingJob.d.ts +11 -0
  112. package/dist/api/types/ParsingJob.js +5 -0
  113. package/dist/api/types/ParsingJobStatus.d.ts +13 -0
  114. package/dist/api/types/ParsingJobStatus.js +12 -0
  115. package/dist/api/types/ResultMetadata.d.ts +12 -0
  116. package/dist/api/types/ResultMetadata.js +5 -0
  117. package/dist/api/types/index.d.ts +7 -0
  118. package/dist/api/types/index.js +7 -0
  119. package/dist/core/form-data-utils/FormDataWrapper.d.ts +60 -0
  120. package/dist/core/form-data-utils/FormDataWrapper.js +174 -0
  121. package/dist/core/form-data-utils/index.d.ts +1 -0
  122. package/dist/core/form-data-utils/index.js +17 -0
  123. package/dist/core/index.d.ts +1 -0
  124. package/dist/core/index.js +1 -0
  125. package/dist/serialization/types/Interpretation.d.ts +1 -1
  126. package/dist/serialization/types/Interpretation.js +1 -1
  127. package/dist/serialization/types/LabReportResult.d.ts +25 -0
  128. package/dist/serialization/types/LabReportResult.js +46 -0
  129. package/dist/serialization/types/LabReportResultType.d.ts +10 -0
  130. package/dist/serialization/types/LabReportResultType.js +31 -0
  131. package/dist/serialization/types/LoincMatch.d.ts +16 -0
  132. package/dist/serialization/types/LoincMatch.js +37 -0
  133. package/dist/serialization/types/ParsedLabReportData.d.ts +15 -0
  134. package/dist/serialization/types/ParsedLabReportData.js +36 -0
  135. package/dist/serialization/types/ParsingJob.d.ts +18 -0
  136. package/dist/serialization/types/ParsingJob.js +39 -0
  137. package/dist/serialization/types/ParsingJobStatus.d.ts +10 -0
  138. package/dist/serialization/types/ParsingJobStatus.js +31 -0
  139. package/dist/serialization/types/ResultMetadata.d.ts +18 -0
  140. package/dist/serialization/types/ResultMetadata.js +39 -0
  141. package/dist/serialization/types/index.d.ts +7 -0
  142. package/dist/serialization/types/index.js +7 -0
  143. package/dist/version.d.ts +1 -1
  144. package/dist/version.js +1 -1
  145. package/package.json +3 -2
  146. package/reference.md +148 -0
  147. package/serialization/types/Interpretation.d.ts +1 -1
  148. package/serialization/types/Interpretation.js +1 -1
  149. package/serialization/types/LabReportResult.d.ts +25 -0
  150. package/serialization/types/LabReportResult.js +46 -0
  151. package/serialization/types/LabReportResultType.d.ts +10 -0
  152. package/serialization/types/LabReportResultType.js +31 -0
  153. package/serialization/types/LoincMatch.d.ts +16 -0
  154. package/serialization/types/LoincMatch.js +37 -0
  155. package/serialization/types/ParsedLabReportData.d.ts +15 -0
  156. package/serialization/types/ParsedLabReportData.js +36 -0
  157. package/serialization/types/ParsingJob.d.ts +18 -0
  158. package/serialization/types/ParsingJob.js +39 -0
  159. package/serialization/types/ParsingJobStatus.d.ts +10 -0
  160. package/serialization/types/ParsingJobStatus.js +31 -0
  161. package/serialization/types/ResultMetadata.d.ts +18 -0
  162. package/serialization/types/ResultMetadata.js +39 -0
  163. package/serialization/types/index.d.ts +7 -0
  164. package/serialization/types/index.js +7 -0
  165. package/version.d.ts +1 -1
  166. package/version.js +1 -1
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.LabReportResultType = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.LabReportResultType = core.serialization.enum_(["numeric", "range", "comment", "boolean", "duration", "percentage", "ratio"]);
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const LoincMatch: core.serialization.ObjectSchema<serializers.LoincMatch.Raw, Vital.LoincMatch>;
8
+ export declare namespace LoincMatch {
9
+ interface Raw {
10
+ loinc_code: string;
11
+ loinc_name: string;
12
+ loinc_component: string;
13
+ sample_type?: string[] | null;
14
+ confidence_score: number;
15
+ }
16
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.LoincMatch = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.LoincMatch = core.serialization.object({
32
+ loincCode: core.serialization.property("loinc_code", core.serialization.string()),
33
+ loincName: core.serialization.property("loinc_name", core.serialization.string()),
34
+ loincComponent: core.serialization.property("loinc_component", core.serialization.string()),
35
+ sampleType: core.serialization.property("sample_type", core.serialization.list(core.serialization.string()).optional()),
36
+ confidenceScore: core.serialization.property("confidence_score", core.serialization.number()),
37
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { ResultMetadata } from "./ResultMetadata";
8
+ import { LabReportResult } from "./LabReportResult";
9
+ export declare const ParsedLabReportData: core.serialization.ObjectSchema<serializers.ParsedLabReportData.Raw, Vital.ParsedLabReportData>;
10
+ export declare namespace ParsedLabReportData {
11
+ interface Raw {
12
+ metadata: ResultMetadata.Raw;
13
+ results: LabReportResult.Raw[];
14
+ }
15
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ParsedLabReportData = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const ResultMetadata_1 = require("./ResultMetadata");
32
+ const LabReportResult_1 = require("./LabReportResult");
33
+ exports.ParsedLabReportData = core.serialization.object({
34
+ metadata: ResultMetadata_1.ResultMetadata,
35
+ results: core.serialization.list(LabReportResult_1.LabReportResult),
36
+ });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { ParsingJobStatus } from "./ParsingJobStatus";
8
+ import { ParsedLabReportData } from "./ParsedLabReportData";
9
+ export declare const ParsingJob: core.serialization.ObjectSchema<serializers.ParsingJob.Raw, Vital.ParsingJob>;
10
+ export declare namespace ParsingJob {
11
+ interface Raw {
12
+ job_id: string;
13
+ status: ParsingJobStatus.Raw;
14
+ data?: ParsedLabReportData.Raw | null;
15
+ needs_human_review: boolean;
16
+ is_reviewed: boolean;
17
+ }
18
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ParsingJob = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const ParsingJobStatus_1 = require("./ParsingJobStatus");
32
+ const ParsedLabReportData_1 = require("./ParsedLabReportData");
33
+ exports.ParsingJob = core.serialization.object({
34
+ jobId: core.serialization.property("job_id", core.serialization.string()),
35
+ status: ParsingJobStatus_1.ParsingJobStatus,
36
+ data: ParsedLabReportData_1.ParsedLabReportData.optional(),
37
+ needsHumanReview: core.serialization.property("needs_human_review", core.serialization.boolean()),
38
+ isReviewed: core.serialization.property("is_reviewed", core.serialization.boolean()),
39
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ParsingJobStatus: core.serialization.Schema<serializers.ParsingJobStatus.Raw, Vital.ParsingJobStatus>;
8
+ export declare namespace ParsingJobStatus {
9
+ type Raw = "upload_pending" | "started" | "completed" | "failed";
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ParsingJobStatus = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ParsingJobStatus = core.serialization.enum_(["upload_pending", "started", "completed", "failed"]);
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ResultMetadata: core.serialization.ObjectSchema<serializers.ResultMetadata.Raw, Vital.ResultMetadata>;
8
+ export declare namespace ResultMetadata {
9
+ interface Raw {
10
+ patient_first_name: string;
11
+ patient_last_name: string;
12
+ dob: string;
13
+ lab_name: string;
14
+ date_reported?: string | null;
15
+ date_collected?: string | null;
16
+ specimen_number?: string | null;
17
+ }
18
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ResultMetadata = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ResultMetadata = core.serialization.object({
32
+ patientFirstName: core.serialization.property("patient_first_name", core.serialization.string()),
33
+ patientLastName: core.serialization.property("patient_last_name", core.serialization.string()),
34
+ dob: core.serialization.string(),
35
+ labName: core.serialization.property("lab_name", core.serialization.string()),
36
+ dateReported: core.serialization.property("date_reported", core.serialization.string().optional()),
37
+ dateCollected: core.serialization.property("date_collected", core.serialization.string().optional()),
38
+ specimenNumber: core.serialization.property("specimen_number", core.serialization.string().optional()),
39
+ });
@@ -452,6 +452,8 @@ export * from "./IntervalTimeseriesExpr";
452
452
  export * from "./Jpeg";
453
453
  export * from "./LabLocationCapability";
454
454
  export * from "./LabLocationMetadata";
455
+ export * from "./LabReportResult";
456
+ export * from "./LabReportResultType";
455
457
  export * from "./LabResultsMetadata";
456
458
  export * from "./LabResultsRawResults";
457
459
  export * from "./LabResultsRaw";
@@ -465,6 +467,7 @@ export * from "./LastAttempt";
465
467
  export * from "./LibreConfig";
466
468
  export * from "./LinkTokenExchangeResponse";
467
469
  export * from "./LngLat";
470
+ export * from "./LoincMatch";
468
471
  export * from "./Macros";
469
472
  export * from "./ManualProviders";
470
473
  export * from "./MarkerType";
@@ -493,6 +496,9 @@ export * from "./PscAreaInfoDetails";
493
496
  export * from "./PscInfo";
494
497
  export * from "./PaginatedUsersResponse";
495
498
  export * from "./ParentBiomarkerData";
499
+ export * from "./ParsedLabReportData";
500
+ export * from "./ParsingJob";
501
+ export * from "./ParsingJobStatus";
496
502
  export * from "./PasswordProviders";
497
503
  export * from "./PatientAddress";
498
504
  export * from "./PatientAddressCompatible";
@@ -541,6 +547,7 @@ export * from "./ResendWebhookResponse";
541
547
  export * from "./ClientFacingResource";
542
548
  export * from "./ResourceAvailability";
543
549
  export * from "./ResponsibleRelationship";
550
+ export * from "./ResultMetadata";
544
551
  export * from "./ResultType";
545
552
  export * from "./SampleDataDateCollected";
546
553
  export * from "./SampleDataDateReceived";
@@ -468,6 +468,8 @@ __exportStar(require("./IntervalTimeseriesExpr"), exports);
468
468
  __exportStar(require("./Jpeg"), exports);
469
469
  __exportStar(require("./LabLocationCapability"), exports);
470
470
  __exportStar(require("./LabLocationMetadata"), exports);
471
+ __exportStar(require("./LabReportResult"), exports);
472
+ __exportStar(require("./LabReportResultType"), exports);
471
473
  __exportStar(require("./LabResultsMetadata"), exports);
472
474
  __exportStar(require("./LabResultsRawResults"), exports);
473
475
  __exportStar(require("./LabResultsRaw"), exports);
@@ -481,6 +483,7 @@ __exportStar(require("./LastAttempt"), exports);
481
483
  __exportStar(require("./LibreConfig"), exports);
482
484
  __exportStar(require("./LinkTokenExchangeResponse"), exports);
483
485
  __exportStar(require("./LngLat"), exports);
486
+ __exportStar(require("./LoincMatch"), exports);
484
487
  __exportStar(require("./Macros"), exports);
485
488
  __exportStar(require("./ManualProviders"), exports);
486
489
  __exportStar(require("./MarkerType"), exports);
@@ -509,6 +512,9 @@ __exportStar(require("./PscAreaInfoDetails"), exports);
509
512
  __exportStar(require("./PscInfo"), exports);
510
513
  __exportStar(require("./PaginatedUsersResponse"), exports);
511
514
  __exportStar(require("./ParentBiomarkerData"), exports);
515
+ __exportStar(require("./ParsedLabReportData"), exports);
516
+ __exportStar(require("./ParsingJob"), exports);
517
+ __exportStar(require("./ParsingJobStatus"), exports);
512
518
  __exportStar(require("./PasswordProviders"), exports);
513
519
  __exportStar(require("./PatientAddress"), exports);
514
520
  __exportStar(require("./PatientAddressCompatible"), exports);
@@ -557,6 +563,7 @@ __exportStar(require("./ResendWebhookResponse"), exports);
557
563
  __exportStar(require("./ClientFacingResource"), exports);
558
564
  __exportStar(require("./ResourceAvailability"), exports);
559
565
  __exportStar(require("./ResponsibleRelationship"), exports);
566
+ __exportStar(require("./ResultMetadata"), exports);
560
567
  __exportStar(require("./ResultType"), exports);
561
568
  __exportStar(require("./SampleDataDateCollected"), exports);
562
569
  __exportStar(require("./SampleDataDateReceived"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.490";
1
+ export declare const SDK_VERSION = "3.1.492";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "3.1.490";
4
+ exports.SDK_VERSION = "3.1.492";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "3.1.490",
3
+ "version": "3.1.492",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",
@@ -17,7 +17,8 @@
17
17
  "formdata-node": "^6.0.3",
18
18
  "node-fetch": "2.7.0",
19
19
  "qs": "6.11.2",
20
- "readable-stream": "^4.5.2"
20
+ "readable-stream": "^4.5.2",
21
+ "form-data-encoder": "^4.0.2"
21
22
  },
22
23
  "devDependencies": {
23
24
  "@types/url-join": "4.0.1",
package/reference.md CHANGED
@@ -11810,6 +11810,154 @@ await client.payor.createPayor({
11810
11810
  </dl>
11811
11811
  </details>
11812
11812
 
11813
+ ## LabReport
11814
+
11815
+ <details><summary><code>client.labReport.<a href="/src/api/resources/labReport/client/Client.ts">parserCreateJob</a>(file, { ...params }) -> Vital.ParsingJob</code></summary>
11816
+ <dl>
11817
+ <dd>
11818
+
11819
+ #### 📝 Description
11820
+
11821
+ <dl>
11822
+ <dd>
11823
+
11824
+ <dl>
11825
+ <dd>
11826
+
11827
+ Creates a parse job, uploads the file to provider, persists the job row,
11828
+ and starts the ParseLabReport. Returns a generated job_id.
11829
+
11830
+ </dd>
11831
+ </dl>
11832
+ </dd>
11833
+ </dl>
11834
+
11835
+ #### 🔌 Usage
11836
+
11837
+ <dl>
11838
+ <dd>
11839
+
11840
+ <dl>
11841
+ <dd>
11842
+
11843
+ ```typescript
11844
+ await client.labReport.parserCreateJob(fs.createReadStream("/path/to/your/file"), {});
11845
+ ```
11846
+
11847
+ </dd>
11848
+ </dl>
11849
+ </dd>
11850
+ </dl>
11851
+
11852
+ #### ⚙️ Parameters
11853
+
11854
+ <dl>
11855
+ <dd>
11856
+
11857
+ <dl>
11858
+ <dd>
11859
+
11860
+ **file:** `File | fs.ReadStream | Blob`
11861
+
11862
+ </dd>
11863
+ </dl>
11864
+
11865
+ <dl>
11866
+ <dd>
11867
+
11868
+ **request:** `Vital.BodyCreateLabReportParserJob`
11869
+
11870
+ </dd>
11871
+ </dl>
11872
+
11873
+ <dl>
11874
+ <dd>
11875
+
11876
+ **requestOptions:** `LabReport.RequestOptions`
11877
+
11878
+ </dd>
11879
+ </dl>
11880
+ </dd>
11881
+ </dl>
11882
+
11883
+ </dd>
11884
+ </dl>
11885
+ </details>
11886
+
11887
+ <details><summary><code>client.labReport.<a href="/src/api/resources/labReport/client/Client.ts">parserGetJob</a>(jobId, { ...params }) -> Vital.ParsingJob</code></summary>
11888
+ <dl>
11889
+ <dd>
11890
+
11891
+ #### 📝 Description
11892
+
11893
+ <dl>
11894
+ <dd>
11895
+
11896
+ <dl>
11897
+ <dd>
11898
+
11899
+ Retrieves the parse job status and stored result if completed.
11900
+
11901
+ Returns:
11902
+ ParseLabResultJobResponse with job status and parsed data (if complete)
11903
+
11904
+ </dd>
11905
+ </dl>
11906
+ </dd>
11907
+ </dl>
11908
+
11909
+ #### 🔌 Usage
11910
+
11911
+ <dl>
11912
+ <dd>
11913
+
11914
+ <dl>
11915
+ <dd>
11916
+
11917
+ ```typescript
11918
+ await client.labReport.parserGetJob("job_id");
11919
+ ```
11920
+
11921
+ </dd>
11922
+ </dl>
11923
+ </dd>
11924
+ </dl>
11925
+
11926
+ #### ⚙️ Parameters
11927
+
11928
+ <dl>
11929
+ <dd>
11930
+
11931
+ <dl>
11932
+ <dd>
11933
+
11934
+ **jobId:** `string`
11935
+
11936
+ </dd>
11937
+ </dl>
11938
+
11939
+ <dl>
11940
+ <dd>
11941
+
11942
+ **request:** `Vital.ParserGetJobLabReportRequest`
11943
+
11944
+ </dd>
11945
+ </dl>
11946
+
11947
+ <dl>
11948
+ <dd>
11949
+
11950
+ **requestOptions:** `LabReport.RequestOptions`
11951
+
11952
+ </dd>
11953
+ </dl>
11954
+ </dd>
11955
+ </dl>
11956
+
11957
+ </dd>
11958
+ </dl>
11959
+ </details>
11960
+
11813
11961
  ## Aggregate
11814
11962
 
11815
11963
  <details><summary><code>client.aggregate.<a href="/src/api/resources/aggregate/client/Client.ts">queryOne</a>(userId, { ...params }) -> Vital.AggregationResponse</code></summary>
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const Interpretation: core.serialization.Schema<serializers.Interpretation.Raw, Vital.Interpretation>;
8
8
  export declare namespace Interpretation {
9
- type Raw = "normal" | "abnormal" | "critical";
9
+ type Raw = "normal" | "abnormal" | "critical" | "unknown";
10
10
  }
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Interpretation = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.Interpretation = core.serialization.enum_(["normal", "abnormal", "critical"]);
31
+ exports.Interpretation = core.serialization.enum_(["normal", "abnormal", "critical", "unknown"]);
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { LabReportResultType } from "./LabReportResultType";
8
+ import { LoincMatch } from "./LoincMatch";
9
+ import { Interpretation } from "./Interpretation";
10
+ export declare const LabReportResult: core.serialization.ObjectSchema<serializers.LabReportResult.Raw, Vital.LabReportResult>;
11
+ export declare namespace LabReportResult {
12
+ interface Raw {
13
+ test_name: string;
14
+ value: string;
15
+ type?: LabReportResultType.Raw | null;
16
+ units?: string | null;
17
+ max_reference_range?: number | null;
18
+ min_reference_range?: number | null;
19
+ source_panel_name?: string | null;
20
+ loinc_matches?: LoincMatch.Raw[] | null;
21
+ interpretation?: Interpretation.Raw | null;
22
+ is_above_max_range?: boolean | null;
23
+ is_below_min_range?: boolean | null;
24
+ }
25
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.LabReportResult = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const LabReportResultType_1 = require("./LabReportResultType");
32
+ const LoincMatch_1 = require("./LoincMatch");
33
+ const Interpretation_1 = require("./Interpretation");
34
+ exports.LabReportResult = core.serialization.object({
35
+ testName: core.serialization.property("test_name", core.serialization.string()),
36
+ value: core.serialization.string(),
37
+ type: LabReportResultType_1.LabReportResultType.optional(),
38
+ units: core.serialization.string().optional(),
39
+ maxReferenceRange: core.serialization.property("max_reference_range", core.serialization.number().optional()),
40
+ minReferenceRange: core.serialization.property("min_reference_range", core.serialization.number().optional()),
41
+ sourcePanelName: core.serialization.property("source_panel_name", core.serialization.string().optional()),
42
+ loincMatches: core.serialization.property("loinc_matches", core.serialization.list(LoincMatch_1.LoincMatch).optional()),
43
+ interpretation: Interpretation_1.Interpretation.optional(),
44
+ isAboveMaxRange: core.serialization.property("is_above_max_range", core.serialization.boolean().optional()),
45
+ isBelowMinRange: core.serialization.property("is_below_min_range", core.serialization.boolean().optional()),
46
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const LabReportResultType: core.serialization.Schema<serializers.LabReportResultType.Raw, Vital.LabReportResultType>;
8
+ export declare namespace LabReportResultType {
9
+ type Raw = "numeric" | "range" | "comment" | "boolean" | "duration" | "percentage" | "ratio";
10
+ }