@oystehr/sdk 3.0.8 → 3.0.10

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 (78) hide show
  1. package/dist/cjs/config.d.ts +1 -0
  2. package/dist/cjs/index.cjs +79 -5
  3. package/dist/cjs/index.cjs.map +1 -1
  4. package/dist/cjs/index.min.cjs +1 -1
  5. package/dist/cjs/index.min.cjs.map +1 -1
  6. package/dist/cjs/resources/classes/developer.d.ts +1 -1
  7. package/dist/cjs/resources/classes/index.d.ts +2 -0
  8. package/dist/cjs/resources/classes/lab.d.ts +63 -0
  9. package/dist/cjs/resources/classes/m2m.d.ts +1 -1
  10. package/dist/cjs/resources/classes/project.d.ts +1 -1
  11. package/dist/cjs/resources/classes/user.d.ts +1 -1
  12. package/dist/cjs/resources/classes/z3.d.ts +1 -1
  13. package/dist/cjs/resources/types/ApplicationCreateParams.d.ts +0 -5
  14. package/dist/cjs/resources/types/ApplicationUpdateParams.d.ts +0 -4
  15. package/dist/cjs/resources/types/LabOrderSubmitParams.d.ts +11 -0
  16. package/dist/cjs/resources/types/LabOrderableItemListParams.d.ts +11 -0
  17. package/dist/cjs/resources/types/LabOrderableItemListResponse.d.ts +134 -0
  18. package/dist/cjs/resources/types/LabOrderableItemQuestionnaireGetParams.d.ts +6 -0
  19. package/dist/cjs/resources/types/LabOrderableItemQuestionnaireGetResponse.d.ts +5 -0
  20. package/dist/cjs/resources/types/LabRouteCreateParams.d.ts +41 -0
  21. package/dist/cjs/resources/types/LabRouteDeleteParams.d.ts +4 -0
  22. package/dist/cjs/resources/types/LabRouteListResponse.d.ts +17 -0
  23. package/dist/cjs/resources/types/index.d.ts +8 -0
  24. package/dist/esm/config.d.ts +1 -0
  25. package/dist/esm/index.min.js +1 -1
  26. package/dist/esm/index.min.js.map +1 -1
  27. package/dist/esm/resources/classes/developer.d.ts +1 -1
  28. package/dist/esm/resources/classes/developer.js +1 -1
  29. package/dist/esm/resources/classes/developer.js.map +1 -1
  30. package/dist/esm/resources/classes/index.d.ts +2 -0
  31. package/dist/esm/resources/classes/index.js +2 -0
  32. package/dist/esm/resources/classes/index.js.map +1 -1
  33. package/dist/esm/resources/classes/lab.d.ts +63 -0
  34. package/dist/esm/resources/classes/lab.js +78 -0
  35. package/dist/esm/resources/classes/lab.js.map +1 -0
  36. package/dist/esm/resources/classes/m2m.d.ts +1 -1
  37. package/dist/esm/resources/classes/m2m.js +1 -1
  38. package/dist/esm/resources/classes/m2m.js.map +1 -1
  39. package/dist/esm/resources/classes/project.d.ts +1 -1
  40. package/dist/esm/resources/classes/project.js +1 -1
  41. package/dist/esm/resources/classes/project.js.map +1 -1
  42. package/dist/esm/resources/classes/user.d.ts +1 -1
  43. package/dist/esm/resources/classes/user.js +1 -1
  44. package/dist/esm/resources/classes/user.js.map +1 -1
  45. package/dist/esm/resources/classes/z3.d.ts +1 -1
  46. package/dist/esm/resources/classes/z3.js +1 -1
  47. package/dist/esm/resources/classes/z3.js.map +1 -1
  48. package/dist/esm/resources/types/ApplicationCreateParams.d.ts +0 -5
  49. package/dist/esm/resources/types/ApplicationUpdateParams.d.ts +0 -4
  50. package/dist/esm/resources/types/LabOrderSubmitParams.d.ts +11 -0
  51. package/dist/esm/resources/types/LabOrderableItemListParams.d.ts +11 -0
  52. package/dist/esm/resources/types/LabOrderableItemListResponse.d.ts +134 -0
  53. package/dist/esm/resources/types/LabOrderableItemQuestionnaireGetParams.d.ts +6 -0
  54. package/dist/esm/resources/types/LabOrderableItemQuestionnaireGetResponse.d.ts +5 -0
  55. package/dist/esm/resources/types/LabRouteCreateParams.d.ts +41 -0
  56. package/dist/esm/resources/types/LabRouteDeleteParams.d.ts +4 -0
  57. package/dist/esm/resources/types/LabRouteListResponse.d.ts +17 -0
  58. package/dist/esm/resources/types/index.d.ts +8 -0
  59. package/package.json +2 -2
  60. package/src/config.ts +1 -0
  61. package/src/resources/classes/developer.ts +2 -2
  62. package/src/resources/classes/index.ts +3 -0
  63. package/src/resources/classes/lab.ts +113 -0
  64. package/src/resources/classes/m2m.ts +2 -2
  65. package/src/resources/classes/project.ts +2 -2
  66. package/src/resources/classes/user.ts +2 -2
  67. package/src/resources/classes/z3.ts +1 -1
  68. package/src/resources/types/ApplicationCreateParams.ts +0 -5
  69. package/src/resources/types/ApplicationUpdateParams.ts +0 -4
  70. package/src/resources/types/LabOrderSubmitParams.ts +13 -0
  71. package/src/resources/types/LabOrderableItemListParams.ts +13 -0
  72. package/src/resources/types/LabOrderableItemListResponse.ts +136 -0
  73. package/src/resources/types/LabOrderableItemQuestionnaireGetParams.ts +8 -0
  74. package/src/resources/types/LabOrderableItemQuestionnaireGetResponse.ts +7 -0
  75. package/src/resources/types/LabRouteCreateParams.ts +43 -0
  76. package/src/resources/types/LabRouteDeleteParams.ts +6 -0
  77. package/src/resources/types/LabRouteListResponse.ts +19 -0
  78. package/src/resources/types/index.ts +8 -0
@@ -0,0 +1,136 @@
1
+ // AUTOGENERATED -- DO NOT EDIT
2
+
3
+ import { Questionnaire } from 'fhir/r4b';
4
+ /**
5
+ * orderable item results
6
+ */
7
+ export interface LabOrderableItemListResponse {
8
+ orderableItems?: {
9
+ /**
10
+ * Identifying lab information and compendium version
11
+ */
12
+ lab?: {
13
+ /**
14
+ * Identifying labGuid pertaining to the specific result
15
+ */
16
+ labGuid?: string;
17
+ /**
18
+ * Name of lab
19
+ */
20
+ labName?: string;
21
+ /**
22
+ * Description of lab
23
+ */
24
+ labType?: string;
25
+ /**
26
+ * Current compendium version for given lab
27
+ */
28
+ compendiumVersion?: string;
29
+ };
30
+ /**
31
+ * Specific orderable item details
32
+ */
33
+ item?: {
34
+ /**
35
+ * Code uniquely identifying the orderable item for the given lab and compendium version
36
+ */
37
+ itemCode?: string;
38
+ /**
39
+ * LOINC code associated with this orderable item.
40
+ */
41
+ itemLoinc?: string;
42
+ /**
43
+ * Type of orderable item
44
+ */
45
+ itemType?: string;
46
+ /**
47
+ * Name of the orderable item.
48
+ */
49
+ itemName?: string;
50
+ /**
51
+ * Unique name of the orderable item. Typically a combination of the itemCode and itemName
52
+ */
53
+ uniqueName?: string;
54
+ /**
55
+ * List of the sample(s) that must be collected for this orderable item
56
+ */
57
+ specimens?: {
58
+ /**
59
+ * Description of container necessary to store the sample.
60
+ */
61
+ container?: string;
62
+ /**
63
+ * Volume of the specimen to be collected
64
+ */
65
+ volume?: string;
66
+ /**
67
+ * Minimum volume of specimen below which teh test is not performable
68
+ */
69
+ minimumVolume?: string;
70
+ /**
71
+ * Instructions for storing the specimen after collection
72
+ */
73
+ storageRequirements?: string;
74
+ /**
75
+ * Instructions for how to collect the sample
76
+ */
77
+ collectionInstructions?: string;
78
+ }[];
79
+ /**
80
+ * List of the component(s) comprising this orderable item
81
+ */
82
+ components?: {
83
+ /**
84
+ * Description of container necessary to store the sample.
85
+ */
86
+ componentItemCode?: string;
87
+ /**
88
+ * Name of component
89
+ */
90
+ name?: string;
91
+ /**
92
+ * LOINC code identifying the component
93
+ */
94
+ loinc?: string;
95
+ /**
96
+ * Unit of measurement
97
+ */
98
+ uom?: string;
99
+ /**
100
+ * Reference range associated with the component
101
+ */
102
+ range?: string;
103
+ /**
104
+ * Type of the component, such as List, Numeric, Free Text
105
+ */
106
+ type?: string;
107
+ }[];
108
+ /**
109
+ * Array of CPT codes associated with the orderable item
110
+ */
111
+ cptCodes?: {
112
+ /**
113
+ * CPT Code used for billing for medical services and procedures
114
+ */
115
+ cptCode?: string;
116
+ /**
117
+ * Number of billable units
118
+ */
119
+ serviceUnitsCount?: number;
120
+ }[];
121
+ /**
122
+ * Answer On Entry Questionnaire. See FHIR Questionnaire for schema
123
+ */
124
+ aoe?: Questionnaire;
125
+ };
126
+ }[];
127
+ /**
128
+ * Pagination details
129
+ */
130
+ metadata?: {
131
+ /**
132
+ * Cursor to include in subsequent request for next page of results. Will be null if there are no more results.
133
+ */
134
+ nextCursor?: string;
135
+ };
136
+ }
@@ -0,0 +1,8 @@
1
+ // AUTOGENERATED -- DO NOT EDIT
2
+
3
+ export interface LabOrderableItemQuestionnaireGetParams {
4
+ primaryId?: string;
5
+ labGuid: string;
6
+ compendiumVersion: string;
7
+ itemCode: string;
8
+ }
@@ -0,0 +1,7 @@
1
+ // AUTOGENERATED -- DO NOT EDIT
2
+
3
+ import { Questionnaire } from 'fhir/r4b';
4
+ /**
5
+ * AOE Questionnaire
6
+ */
7
+ export type LabOrderableItemQuestionnaireGetResponse = Questionnaire;
@@ -0,0 +1,43 @@
1
+ // AUTOGENERATED -- DO NOT EDIT
2
+
3
+ export interface LabRouteCreateParams {
4
+ primaryId?: string;
5
+ /**
6
+ * Provided by the lab, indicates a financial relationship between the lab and the customer.
7
+ */
8
+ accountNumber: string;
9
+ /**
10
+ * Unique identifier of a lab. Searchable via orderable item Search.
11
+ */
12
+ labGuid: string;
13
+ /**
14
+ * Name of the Primary (Practice or Provider depending on the Route). Required for certain labs. See [Create Route](https://docs.oystehr.com/oystehr/services/lab/onboarding-a-lab/#create-route) for more details.
15
+ */
16
+ primaryName?: string;
17
+ /**
18
+ * Address of the Primary. Required for certain labs. See [Create Route](https://docs.oystehr.com/oystehr/services/lab/onboarding-a-lab/#create-route) for more details.
19
+ */
20
+ primaryAddress?: {
21
+ address1: string;
22
+ address2?: string;
23
+ city: string;
24
+ stateProvinceCode: string;
25
+ postalCode: string;
26
+ };
27
+ /**
28
+ * String representing accepted End User License Agreement Version. Required for certain labs. See [Create Route](https://docs.oystehr.com/oystehr/services/lab/onboarding-a-lab/#create-route) for more details.
29
+ */
30
+ eulaVersion?: string;
31
+ /**
32
+ * Name of individual who accepted the End User License Agreement. Required for certain labs. See [Create Route](https://docs.oystehr.com/oystehr/services/lab/onboarding-a-lab/#create-route) for more details.
33
+ */
34
+ eulaAccepterFullName?: string;
35
+ /**
36
+ * ISO string representing when the End User License Agreement was accepted. Required for certain labs. See [Create Route](https://docs.oystehr.com/oystehr/services/lab/onboarding-a-lab/#create-route) for more details.
37
+ */
38
+ eulaAcceptanceDateTimeUtc?: string;
39
+ /**
40
+ * Site ID for the Primary. ClientSiteID is assigned by the lab. This disambiguates instances where the same Account Number is used across multiple physical locations. Required for certain labs. See [Create Route](https://docs.oystehr.com/oystehr/services/lab/onboarding-a-lab/#create-route) for more details.
41
+ */
42
+ clientSiteId?: string;
43
+ }
@@ -0,0 +1,6 @@
1
+ // AUTOGENERATED -- DO NOT EDIT
2
+
3
+ export interface LabRouteDeleteParams {
4
+ primaryId?: string;
5
+ routeGuid: string;
6
+ }
@@ -0,0 +1,19 @@
1
+ // AUTOGENERATED -- DO NOT EDIT
2
+
3
+ /**
4
+ * List of Routes associated with the calling projectId.
5
+ */
6
+ export type LabRouteListResponse = {
7
+ /**
8
+ * Unique identifier of the created Route.
9
+ */
10
+ routeGuid?: string;
11
+ /**
12
+ * Unique identifier of a lab. Searchable via orderable item Search
13
+ */
14
+ labGuid?: string;
15
+ /**
16
+ * Provided by the lab, indicates a financial relationship between the lab and the customer.
17
+ */
18
+ accountNumber?: string;
19
+ }[];
@@ -166,3 +166,11 @@ export * from './ZambdaLogStreamGetParams';
166
166
  export * from './ZambdaLogStreamGetResponse';
167
167
  export * from './FaxSendParams';
168
168
  export * from './FaxSendResponse';
169
+ export * from './LabRouteListResponse';
170
+ export * from './LabRouteCreateParams';
171
+ export * from './LabRouteDeleteParams';
172
+ export * from './LabOrderableItemListParams';
173
+ export * from './LabOrderableItemListResponse';
174
+ export * from './LabOrderableItemQuestionnaireGetParams';
175
+ export * from './LabOrderableItemQuestionnaireGetResponse';
176
+ export * from './LabOrderSubmitParams';