@ontemper/edi 1.1.0
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 +321 -0
- package/dist/control-numbers.d.ts +20 -0
- package/dist/control-numbers.js +77 -0
- package/dist/edination-client/api/edi-model-api.d.ts +268 -0
- package/dist/edination-client/api/edi-model-api.js +326 -0
- package/dist/edination-client/api/edifact-api.d.ts +453 -0
- package/dist/edination-client/api/edifact-api.js +448 -0
- package/dist/edination-client/api/hl7-api.d.ts +294 -0
- package/dist/edination-client/api/hl7-api.js +315 -0
- package/dist/edination-client/api/ncpdp-api.d.ts +278 -0
- package/dist/edination-client/api/ncpdp-api.js +305 -0
- package/dist/edination-client/api/vda-api.d.ts +262 -0
- package/dist/edination-client/api/vda-api.js +295 -0
- package/dist/edination-client/api/x12-api.d.ts +437 -0
- package/dist/edination-client/api/x12-api.js +438 -0
- package/dist/edination-client/api.d.ts +17 -0
- package/dist/edination-client/api.js +35 -0
- package/dist/edination-client/base.d.ts +66 -0
- package/dist/edination-client/base.js +70 -0
- package/dist/edination-client/common.d.ts +65 -0
- package/dist/edination-client/common.js +142 -0
- package/dist/edination-client/configuration.d.ts +91 -0
- package/dist/edination-client/configuration.js +104 -0
- package/dist/edination-client/index.d.ts +14 -0
- package/dist/edination-client/index.js +32 -0
- package/dist/edination-client/model/batch-receiving-application.d.ts +36 -0
- package/dist/edination-client/model/batch-receiving-application.js +15 -0
- package/dist/edination-client/model/batch-receiving-facility.d.ts +36 -0
- package/dist/edination-client/model/batch-receiving-facility.js +15 -0
- package/dist/edination-client/model/batch-receiving-network-address.d.ts +36 -0
- package/dist/edination-client/model/batch-receiving-network-address.js +15 -0
- package/dist/edination-client/model/batch-sending-application.d.ts +36 -0
- package/dist/edination-client/model/batch-sending-application.js +15 -0
- package/dist/edination-client/model/batch-sending-facility.d.ts +36 -0
- package/dist/edination-client/model/batch-sending-facility.js +15 -0
- package/dist/edination-client/model/batch-sending-network-address.d.ts +36 -0
- package/dist/edination-client/model/batch-sending-network-address.js +15 -0
- package/dist/edination-client/model/bhs.d.ts +108 -0
- package/dist/edination-client/model/bhs.js +15 -0
- package/dist/edination-client/model/bts.d.ts +36 -0
- package/dist/edination-client/model/bts.js +15 -0
- package/dist/edination-client/model/edi-model.d.ts +37 -0
- package/dist/edination-client/model/edi-model.js +15 -0
- package/dist/edination-client/model/edifact-group.d.ts +38 -0
- package/dist/edination-client/model/edifact-group.js +15 -0
- package/dist/edination-client/model/edifact-interchange.d.ts +53 -0
- package/dist/edination-client/model/edifact-interchange.js +15 -0
- package/dist/edination-client/model/error-details.d.ts +30 -0
- package/dist/edination-client/model/error-details.js +15 -0
- package/dist/edination-client/model/fhs.d.ts +108 -0
- package/dist/edination-client/model/fhs.js +15 -0
- package/dist/edination-client/model/file-receiving-application.d.ts +36 -0
- package/dist/edination-client/model/file-receiving-application.js +15 -0
- package/dist/edination-client/model/file-receiving-facility.d.ts +36 -0
- package/dist/edination-client/model/file-receiving-facility.js +15 -0
- package/dist/edination-client/model/file-receiving-network-address.d.ts +36 -0
- package/dist/edination-client/model/file-receiving-network-address.js +15 -0
- package/dist/edination-client/model/file-sending-application.d.ts +36 -0
- package/dist/edination-client/model/file-sending-application.js +15 -0
- package/dist/edination-client/model/file-sending-facility.d.ts +36 -0
- package/dist/edination-client/model/file-sending-facility.js +15 -0
- package/dist/edination-client/model/file-sending-network-address.d.ts +36 -0
- package/dist/edination-client/model/file-sending-network-address.js +15 -0
- package/dist/edination-client/model/flat-message.d.ts +37 -0
- package/dist/edination-client/model/flat-message.js +15 -0
- package/dist/edination-client/model/fts.d.ts +30 -0
- package/dist/edination-client/model/fts.js +15 -0
- package/dist/edination-client/model/ge.d.ts +30 -0
- package/dist/edination-client/model/ge.js +15 -0
- package/dist/edination-client/model/gs.d.ts +66 -0
- package/dist/edination-client/model/gs.js +15 -0
- package/dist/edination-client/model/hl7-group.d.ts +38 -0
- package/dist/edination-client/model/hl7-group.js +15 -0
- package/dist/edination-client/model/hl7-interchange.d.ts +46 -0
- package/dist/edination-client/model/hl7-interchange.js +15 -0
- package/dist/edination-client/model/iea.d.ts +30 -0
- package/dist/edination-client/model/iea.js +15 -0
- package/dist/edination-client/model/index.d.ts +49 -0
- package/dist/edination-client/model/index.js +65 -0
- package/dist/edination-client/model/isa.d.ts +114 -0
- package/dist/edination-client/model/isa.js +15 -0
- package/dist/edination-client/model/link.d.ts +36 -0
- package/dist/edination-client/model/link.js +15 -0
- package/dist/edination-client/model/ncpdp-transmission.d.ts +45 -0
- package/dist/edination-client/model/ncpdp-transmission.js +15 -0
- package/dist/edination-client/model/operation-detail.d.ts +90 -0
- package/dist/edination-client/model/operation-detail.js +15 -0
- package/dist/edination-client/model/operation-result.d.ts +37 -0
- package/dist/edination-client/model/operation-result.js +15 -0
- package/dist/edination-client/model/s001.d.ts +42 -0
- package/dist/edination-client/model/s001.js +15 -0
- package/dist/edination-client/model/s002.d.ts +42 -0
- package/dist/edination-client/model/s002.js +15 -0
- package/dist/edination-client/model/s003.d.ts +42 -0
- package/dist/edination-client/model/s003.js +15 -0
- package/dist/edination-client/model/s004.d.ts +30 -0
- package/dist/edination-client/model/s004.js +15 -0
- package/dist/edination-client/model/s005.d.ts +30 -0
- package/dist/edination-client/model/s005.js +15 -0
- package/dist/edination-client/model/s006.d.ts +30 -0
- package/dist/edination-client/model/s006.js +15 -0
- package/dist/edination-client/model/s007.d.ts +30 -0
- package/dist/edination-client/model/s007.js +15 -0
- package/dist/edination-client/model/s008.d.ts +36 -0
- package/dist/edination-client/model/s008.js +15 -0
- package/dist/edination-client/model/ta1.d.ts +48 -0
- package/dist/edination-client/model/ta1.js +15 -0
- package/dist/edination-client/model/transmission-header.d.ts +66 -0
- package/dist/edination-client/model/transmission-header.js +15 -0
- package/dist/edination-client/model/transmission-trailer.d.ts +36 -0
- package/dist/edination-client/model/transmission-trailer.js +15 -0
- package/dist/edination-client/model/una.d.ts +54 -0
- package/dist/edination-client/model/una.js +15 -0
- package/dist/edination-client/model/unb.d.ts +89 -0
- package/dist/edination-client/model/unb.js +15 -0
- package/dist/edination-client/model/une.d.ts +30 -0
- package/dist/edination-client/model/une.js +15 -0
- package/dist/edination-client/model/ung.d.ts +70 -0
- package/dist/edination-client/model/ung.js +15 -0
- package/dist/edination-client/model/unz.d.ts +30 -0
- package/dist/edination-client/model/unz.js +15 -0
- package/dist/edination-client/model/x12-group.d.ts +38 -0
- package/dist/edination-client/model/x12-group.js +15 -0
- package/dist/edination-client/model/x12-interchange.d.ts +65 -0
- package/dist/edination-client/model/x12-interchange.js +15 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.js +197 -0
- package/examples/node-edi.ts +58 -0
- package/package.json +49 -0
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EdiNation API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AxiosInstance, AxiosPromise, RawAxiosRequestConfig } from 'axios';
|
|
13
|
+
import { BaseAPI, type RequestArgs } from '../base';
|
|
14
|
+
import type { Configuration } from '../configuration';
|
|
15
|
+
import type { Hl7Interchange } from '../model';
|
|
16
|
+
import type { OperationResult } from '../model';
|
|
17
|
+
/**
|
|
18
|
+
* Hl7Api - axios parameter creator
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export declare const Hl7ApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @summary Convert HL7 files to JSON
|
|
25
|
+
* @param {boolean} [ignoreNullValues] Whether to ignore all null values in the response. The default is false.
|
|
26
|
+
* @param {boolean} [continueOnError] Whether to continue reading if a corrupt interchange is encountered. The default is false.
|
|
27
|
+
* @param {string} [charSet] The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.
|
|
28
|
+
* @param {string} [model] The model to use. By default, the API will infer the model based on the transaction and version identifiers.
|
|
29
|
+
* @param {File} [body]
|
|
30
|
+
* @param {*} [options] Override http request option.
|
|
31
|
+
* @throws {RequiredError}
|
|
32
|
+
*/
|
|
33
|
+
hl7ReadPost: (ignoreNullValues?: boolean, continueOnError?: boolean, charSet?: string, model?: string, body?: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @summary Validate HL7 messages
|
|
37
|
+
* @param {string} [syntaxSet] In case you need to validate against a syntax set, different than Basic and Extended, populate this filed with all of the allowed symbols, url-escaped.
|
|
38
|
+
* @param {boolean} [skipTrailer] You are allowed to validate an Hl7Interchange with missing file or batch trailers (FTS, BTS). This is because these will be automatically applied during the Write oprtaion so you don\'t have to worry about counting the items. By default it is expected that all trailers are present when you validate the X12Interchange and by default, this is set to false. To skip all trailer validation, set this to true.
|
|
39
|
+
* @param {boolean} [structureOnly] This is equivalent to HIPAA Snip level 1, where only the structure and control segments are validated. By default, this is set to false, however if you want to not validate things such as data types, number of repeteitions or dates, set this to true.
|
|
40
|
+
* @param {Hl7Interchange} [hl7Interchange] The Hl7Interchange object to validate.
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
hl7ValidatePost: (syntaxSet?: string, skipTrailer?: boolean, structureOnly?: boolean, hl7Interchange?: Hl7Interchange, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @summary Convert JSON to HL7 files
|
|
48
|
+
* @param {boolean} [preserveWhitespace] Whether to preserve blank data elements so the output contains multiple delimiters instead of omitting any excess delimiters. The default is false.
|
|
49
|
+
* @param {string} [charSet] The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.
|
|
50
|
+
* @param {string} [postfix] The postfix to be applied at the end of each segment, just after the segment separator. This is usually a carriage return (CR), line feed (LF) or both. By default, there is no postfix.
|
|
51
|
+
* @param {Hl7Interchange} [hl7Interchange] The HL7Interchange object to translate to raw HL7.
|
|
52
|
+
* @param {*} [options] Override http request option.
|
|
53
|
+
* @throws {RequiredError}
|
|
54
|
+
*/
|
|
55
|
+
hl7WritePost: (preserveWhitespace?: boolean, charSet?: string, postfix?: string, hl7Interchange?: Hl7Interchange, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Hl7Api - functional programming interface
|
|
59
|
+
* @export
|
|
60
|
+
*/
|
|
61
|
+
export declare const Hl7ApiFp: (configuration?: Configuration) => {
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @summary Convert HL7 files to JSON
|
|
65
|
+
* @param {boolean} [ignoreNullValues] Whether to ignore all null values in the response. The default is false.
|
|
66
|
+
* @param {boolean} [continueOnError] Whether to continue reading if a corrupt interchange is encountered. The default is false.
|
|
67
|
+
* @param {string} [charSet] The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.
|
|
68
|
+
* @param {string} [model] The model to use. By default, the API will infer the model based on the transaction and version identifiers.
|
|
69
|
+
* @param {File} [body]
|
|
70
|
+
* @param {*} [options] Override http request option.
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
*/
|
|
73
|
+
hl7ReadPost(ignoreNullValues?: boolean, continueOnError?: boolean, charSet?: string, model?: string, body?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Hl7Interchange>>>;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @summary Validate HL7 messages
|
|
77
|
+
* @param {string} [syntaxSet] In case you need to validate against a syntax set, different than Basic and Extended, populate this filed with all of the allowed symbols, url-escaped.
|
|
78
|
+
* @param {boolean} [skipTrailer] You are allowed to validate an Hl7Interchange with missing file or batch trailers (FTS, BTS). This is because these will be automatically applied during the Write oprtaion so you don\'t have to worry about counting the items. By default it is expected that all trailers are present when you validate the X12Interchange and by default, this is set to false. To skip all trailer validation, set this to true.
|
|
79
|
+
* @param {boolean} [structureOnly] This is equivalent to HIPAA Snip level 1, where only the structure and control segments are validated. By default, this is set to false, however if you want to not validate things such as data types, number of repeteitions or dates, set this to true.
|
|
80
|
+
* @param {Hl7Interchange} [hl7Interchange] The Hl7Interchange object to validate.
|
|
81
|
+
* @param {*} [options] Override http request option.
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
*/
|
|
84
|
+
hl7ValidatePost(syntaxSet?: string, skipTrailer?: boolean, structureOnly?: boolean, hl7Interchange?: Hl7Interchange, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OperationResult>>;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @summary Convert JSON to HL7 files
|
|
88
|
+
* @param {boolean} [preserveWhitespace] Whether to preserve blank data elements so the output contains multiple delimiters instead of omitting any excess delimiters. The default is false.
|
|
89
|
+
* @param {string} [charSet] The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.
|
|
90
|
+
* @param {string} [postfix] The postfix to be applied at the end of each segment, just after the segment separator. This is usually a carriage return (CR), line feed (LF) or both. By default, there is no postfix.
|
|
91
|
+
* @param {Hl7Interchange} [hl7Interchange] The HL7Interchange object to translate to raw HL7.
|
|
92
|
+
* @param {*} [options] Override http request option.
|
|
93
|
+
* @throws {RequiredError}
|
|
94
|
+
*/
|
|
95
|
+
hl7WritePost(preserveWhitespace?: boolean, charSet?: string, postfix?: string, hl7Interchange?: Hl7Interchange, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Hl7Api - factory interface
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export declare const Hl7ApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @summary Convert HL7 files to JSON
|
|
105
|
+
* @param {Hl7ApiHl7ReadPostRequest} requestParameters Request parameters.
|
|
106
|
+
* @param {*} [options] Override http request option.
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
*/
|
|
109
|
+
hl7ReadPost(requestParameters?: Hl7ApiHl7ReadPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Hl7Interchange>>;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @summary Validate HL7 messages
|
|
113
|
+
* @param {Hl7ApiHl7ValidatePostRequest} requestParameters Request parameters.
|
|
114
|
+
* @param {*} [options] Override http request option.
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
*/
|
|
117
|
+
hl7ValidatePost(requestParameters?: Hl7ApiHl7ValidatePostRequest, options?: RawAxiosRequestConfig): AxiosPromise<OperationResult>;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @summary Convert JSON to HL7 files
|
|
121
|
+
* @param {Hl7ApiHl7WritePostRequest} requestParameters Request parameters.
|
|
122
|
+
* @param {*} [options] Override http request option.
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
*/
|
|
125
|
+
hl7WritePost(requestParameters?: Hl7ApiHl7WritePostRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* Hl7Api - interface
|
|
129
|
+
* @export
|
|
130
|
+
* @interface Hl7Api
|
|
131
|
+
*/
|
|
132
|
+
export interface Hl7ApiInterface {
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @summary Convert HL7 files to JSON
|
|
136
|
+
* @param {Hl7ApiHl7ReadPostRequest} requestParameters Request parameters.
|
|
137
|
+
* @param {*} [options] Override http request option.
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
* @memberof Hl7ApiInterface
|
|
140
|
+
*/
|
|
141
|
+
hl7ReadPost(requestParameters?: Hl7ApiHl7ReadPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Hl7Interchange>>;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @summary Validate HL7 messages
|
|
145
|
+
* @param {Hl7ApiHl7ValidatePostRequest} requestParameters Request parameters.
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
* @memberof Hl7ApiInterface
|
|
149
|
+
*/
|
|
150
|
+
hl7ValidatePost(requestParameters?: Hl7ApiHl7ValidatePostRequest, options?: RawAxiosRequestConfig): AxiosPromise<OperationResult>;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @summary Convert JSON to HL7 files
|
|
154
|
+
* @param {Hl7ApiHl7WritePostRequest} requestParameters Request parameters.
|
|
155
|
+
* @param {*} [options] Override http request option.
|
|
156
|
+
* @throws {RequiredError}
|
|
157
|
+
* @memberof Hl7ApiInterface
|
|
158
|
+
*/
|
|
159
|
+
hl7WritePost(requestParameters?: Hl7ApiHl7WritePostRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Request parameters for hl7ReadPost operation in Hl7Api.
|
|
163
|
+
* @export
|
|
164
|
+
* @interface Hl7ApiHl7ReadPostRequest
|
|
165
|
+
*/
|
|
166
|
+
export interface Hl7ApiHl7ReadPostRequest {
|
|
167
|
+
/**
|
|
168
|
+
* Whether to ignore all null values in the response. The default is false.
|
|
169
|
+
* @type {boolean}
|
|
170
|
+
* @memberof Hl7ApiHl7ReadPost
|
|
171
|
+
*/
|
|
172
|
+
readonly ignoreNullValues?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Whether to continue reading if a corrupt interchange is encountered. The default is false.
|
|
175
|
+
* @type {boolean}
|
|
176
|
+
* @memberof Hl7ApiHl7ReadPost
|
|
177
|
+
*/
|
|
178
|
+
readonly continueOnError?: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.
|
|
181
|
+
* @type {string}
|
|
182
|
+
* @memberof Hl7ApiHl7ReadPost
|
|
183
|
+
*/
|
|
184
|
+
readonly charSet?: string;
|
|
185
|
+
/**
|
|
186
|
+
* The model to use. By default, the API will infer the model based on the transaction and version identifiers.
|
|
187
|
+
* @type {string}
|
|
188
|
+
* @memberof Hl7ApiHl7ReadPost
|
|
189
|
+
*/
|
|
190
|
+
readonly model?: string;
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @type {File}
|
|
194
|
+
* @memberof Hl7ApiHl7ReadPost
|
|
195
|
+
*/
|
|
196
|
+
readonly body?: File;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Request parameters for hl7ValidatePost operation in Hl7Api.
|
|
200
|
+
* @export
|
|
201
|
+
* @interface Hl7ApiHl7ValidatePostRequest
|
|
202
|
+
*/
|
|
203
|
+
export interface Hl7ApiHl7ValidatePostRequest {
|
|
204
|
+
/**
|
|
205
|
+
* In case you need to validate against a syntax set, different than Basic and Extended, populate this filed with all of the allowed symbols, url-escaped.
|
|
206
|
+
* @type {string}
|
|
207
|
+
* @memberof Hl7ApiHl7ValidatePost
|
|
208
|
+
*/
|
|
209
|
+
readonly syntaxSet?: string;
|
|
210
|
+
/**
|
|
211
|
+
* You are allowed to validate an Hl7Interchange with missing file or batch trailers (FTS, BTS). This is because these will be automatically applied during the Write oprtaion so you don\'t have to worry about counting the items. By default it is expected that all trailers are present when you validate the X12Interchange and by default, this is set to false. To skip all trailer validation, set this to true.
|
|
212
|
+
* @type {boolean}
|
|
213
|
+
* @memberof Hl7ApiHl7ValidatePost
|
|
214
|
+
*/
|
|
215
|
+
readonly skipTrailer?: boolean;
|
|
216
|
+
/**
|
|
217
|
+
* This is equivalent to HIPAA Snip level 1, where only the structure and control segments are validated. By default, this is set to false, however if you want to not validate things such as data types, number of repeteitions or dates, set this to true.
|
|
218
|
+
* @type {boolean}
|
|
219
|
+
* @memberof Hl7ApiHl7ValidatePost
|
|
220
|
+
*/
|
|
221
|
+
readonly structureOnly?: boolean;
|
|
222
|
+
/**
|
|
223
|
+
* The Hl7Interchange object to validate.
|
|
224
|
+
* @type {Hl7Interchange}
|
|
225
|
+
* @memberof Hl7ApiHl7ValidatePost
|
|
226
|
+
*/
|
|
227
|
+
readonly hl7Interchange?: Hl7Interchange;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Request parameters for hl7WritePost operation in Hl7Api.
|
|
231
|
+
* @export
|
|
232
|
+
* @interface Hl7ApiHl7WritePostRequest
|
|
233
|
+
*/
|
|
234
|
+
export interface Hl7ApiHl7WritePostRequest {
|
|
235
|
+
/**
|
|
236
|
+
* Whether to preserve blank data elements so the output contains multiple delimiters instead of omitting any excess delimiters. The default is false.
|
|
237
|
+
* @type {boolean}
|
|
238
|
+
* @memberof Hl7ApiHl7WritePost
|
|
239
|
+
*/
|
|
240
|
+
readonly preserveWhitespace?: boolean;
|
|
241
|
+
/**
|
|
242
|
+
* The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.
|
|
243
|
+
* @type {string}
|
|
244
|
+
* @memberof Hl7ApiHl7WritePost
|
|
245
|
+
*/
|
|
246
|
+
readonly charSet?: string;
|
|
247
|
+
/**
|
|
248
|
+
* The postfix to be applied at the end of each segment, just after the segment separator. This is usually a carriage return (CR), line feed (LF) or both. By default, there is no postfix.
|
|
249
|
+
* @type {string}
|
|
250
|
+
* @memberof Hl7ApiHl7WritePost
|
|
251
|
+
*/
|
|
252
|
+
readonly postfix?: string;
|
|
253
|
+
/**
|
|
254
|
+
* The HL7Interchange object to translate to raw HL7.
|
|
255
|
+
* @type {Hl7Interchange}
|
|
256
|
+
* @memberof Hl7ApiHl7WritePost
|
|
257
|
+
*/
|
|
258
|
+
readonly hl7Interchange?: Hl7Interchange;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Hl7Api - object-oriented interface
|
|
262
|
+
* @export
|
|
263
|
+
* @class Hl7Api
|
|
264
|
+
* @extends {BaseAPI}
|
|
265
|
+
*/
|
|
266
|
+
export declare class Hl7Api extends BaseAPI implements Hl7ApiInterface {
|
|
267
|
+
/**
|
|
268
|
+
*
|
|
269
|
+
* @summary Convert HL7 files to JSON
|
|
270
|
+
* @param {Hl7ApiHl7ReadPostRequest} requestParameters Request parameters.
|
|
271
|
+
* @param {*} [options] Override http request option.
|
|
272
|
+
* @throws {RequiredError}
|
|
273
|
+
* @memberof Hl7Api
|
|
274
|
+
*/
|
|
275
|
+
hl7ReadPost(requestParameters?: Hl7ApiHl7ReadPostRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Hl7Interchange[], any, {}>>;
|
|
276
|
+
/**
|
|
277
|
+
*
|
|
278
|
+
* @summary Validate HL7 messages
|
|
279
|
+
* @param {Hl7ApiHl7ValidatePostRequest} requestParameters Request parameters.
|
|
280
|
+
* @param {*} [options] Override http request option.
|
|
281
|
+
* @throws {RequiredError}
|
|
282
|
+
* @memberof Hl7Api
|
|
283
|
+
*/
|
|
284
|
+
hl7ValidatePost(requestParameters?: Hl7ApiHl7ValidatePostRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OperationResult, any, {}>>;
|
|
285
|
+
/**
|
|
286
|
+
*
|
|
287
|
+
* @summary Convert JSON to HL7 files
|
|
288
|
+
* @param {Hl7ApiHl7WritePostRequest} requestParameters Request parameters.
|
|
289
|
+
* @param {*} [options] Override http request option.
|
|
290
|
+
* @throws {RequiredError}
|
|
291
|
+
* @memberof Hl7Api
|
|
292
|
+
*/
|
|
293
|
+
hl7WritePost(requestParameters?: Hl7ApiHl7WritePostRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
|
|
294
|
+
}
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EdiNation API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.Hl7Api = exports.Hl7ApiFactory = exports.Hl7ApiFp = exports.Hl7ApiAxiosParamCreator = void 0;
|
|
20
|
+
const axios_1 = __importDefault(require("axios"));
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
const base_1 = require("../base");
|
|
23
|
+
// Some imports not used depending on template conditions
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
const common_1 = require("../common");
|
|
26
|
+
/**
|
|
27
|
+
* Hl7Api - axios parameter creator
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
const Hl7ApiAxiosParamCreator = (configuration) => ({
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @summary Convert HL7 files to JSON
|
|
34
|
+
* @param {boolean} [ignoreNullValues] Whether to ignore all null values in the response. The default is false.
|
|
35
|
+
* @param {boolean} [continueOnError] Whether to continue reading if a corrupt interchange is encountered. The default is false.
|
|
36
|
+
* @param {string} [charSet] The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.
|
|
37
|
+
* @param {string} [model] The model to use. By default, the API will infer the model based on the transaction and version identifiers.
|
|
38
|
+
* @param {File} [body]
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
hl7ReadPost: async (ignoreNullValues, continueOnError, charSet, model, body, options = {}) => {
|
|
43
|
+
const localVarPath = '/hl7/read';
|
|
44
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
46
|
+
let baseOptions;
|
|
47
|
+
if (configuration) {
|
|
48
|
+
baseOptions = configuration.baseOptions;
|
|
49
|
+
}
|
|
50
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
51
|
+
const localVarHeaderParameter = {};
|
|
52
|
+
const localVarQueryParameter = {};
|
|
53
|
+
// authentication ApiKey required
|
|
54
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'Ocp-Apim-Subscription-Key', configuration);
|
|
55
|
+
if (ignoreNullValues !== undefined) {
|
|
56
|
+
localVarQueryParameter.ignoreNullValues = ignoreNullValues;
|
|
57
|
+
}
|
|
58
|
+
if (continueOnError !== undefined) {
|
|
59
|
+
localVarQueryParameter.continueOnError = continueOnError;
|
|
60
|
+
}
|
|
61
|
+
if (charSet !== undefined) {
|
|
62
|
+
localVarQueryParameter.charSet = charSet;
|
|
63
|
+
}
|
|
64
|
+
if (model !== undefined) {
|
|
65
|
+
localVarQueryParameter.model = model;
|
|
66
|
+
}
|
|
67
|
+
localVarHeaderParameter['Content-Type'] = 'application/octet-stream';
|
|
68
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
69
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
70
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
71
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
72
|
+
return {
|
|
73
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
74
|
+
options: localVarRequestOptions,
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @summary Validate HL7 messages
|
|
80
|
+
* @param {string} [syntaxSet] In case you need to validate against a syntax set, different than Basic and Extended, populate this filed with all of the allowed symbols, url-escaped.
|
|
81
|
+
* @param {boolean} [skipTrailer] You are allowed to validate an Hl7Interchange with missing file or batch trailers (FTS, BTS). This is because these will be automatically applied during the Write oprtaion so you don\'t have to worry about counting the items. By default it is expected that all trailers are present when you validate the X12Interchange and by default, this is set to false. To skip all trailer validation, set this to true.
|
|
82
|
+
* @param {boolean} [structureOnly] This is equivalent to HIPAA Snip level 1, where only the structure and control segments are validated. By default, this is set to false, however if you want to not validate things such as data types, number of repeteitions or dates, set this to true.
|
|
83
|
+
* @param {Hl7Interchange} [hl7Interchange] The Hl7Interchange object to validate.
|
|
84
|
+
* @param {*} [options] Override http request option.
|
|
85
|
+
* @throws {RequiredError}
|
|
86
|
+
*/
|
|
87
|
+
hl7ValidatePost: async (syntaxSet, skipTrailer, structureOnly, hl7Interchange, options = {}) => {
|
|
88
|
+
const localVarPath = '/hl7/validate';
|
|
89
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
90
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
91
|
+
let baseOptions;
|
|
92
|
+
if (configuration) {
|
|
93
|
+
baseOptions = configuration.baseOptions;
|
|
94
|
+
}
|
|
95
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
96
|
+
const localVarHeaderParameter = {};
|
|
97
|
+
const localVarQueryParameter = {};
|
|
98
|
+
// authentication ApiKey required
|
|
99
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'Ocp-Apim-Subscription-Key', configuration);
|
|
100
|
+
if (syntaxSet !== undefined) {
|
|
101
|
+
localVarQueryParameter.syntaxSet = syntaxSet;
|
|
102
|
+
}
|
|
103
|
+
if (skipTrailer !== undefined) {
|
|
104
|
+
localVarQueryParameter.skipTrailer = skipTrailer;
|
|
105
|
+
}
|
|
106
|
+
if (structureOnly !== undefined) {
|
|
107
|
+
localVarQueryParameter.structureOnly = structureOnly;
|
|
108
|
+
}
|
|
109
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
110
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
111
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
112
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
113
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hl7Interchange, localVarRequestOptions, configuration);
|
|
114
|
+
return {
|
|
115
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
116
|
+
options: localVarRequestOptions,
|
|
117
|
+
};
|
|
118
|
+
},
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @summary Convert JSON to HL7 files
|
|
122
|
+
* @param {boolean} [preserveWhitespace] Whether to preserve blank data elements so the output contains multiple delimiters instead of omitting any excess delimiters. The default is false.
|
|
123
|
+
* @param {string} [charSet] The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.
|
|
124
|
+
* @param {string} [postfix] The postfix to be applied at the end of each segment, just after the segment separator. This is usually a carriage return (CR), line feed (LF) or both. By default, there is no postfix.
|
|
125
|
+
* @param {Hl7Interchange} [hl7Interchange] The HL7Interchange object to translate to raw HL7.
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
*/
|
|
129
|
+
hl7WritePost: async (preserveWhitespace, charSet, postfix, hl7Interchange, options = {}) => {
|
|
130
|
+
const localVarPath = '/hl7/write';
|
|
131
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
132
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
133
|
+
let baseOptions;
|
|
134
|
+
if (configuration) {
|
|
135
|
+
baseOptions = configuration.baseOptions;
|
|
136
|
+
}
|
|
137
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
138
|
+
const localVarHeaderParameter = {};
|
|
139
|
+
const localVarQueryParameter = {};
|
|
140
|
+
// authentication ApiKey required
|
|
141
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'Ocp-Apim-Subscription-Key', configuration);
|
|
142
|
+
if (preserveWhitespace !== undefined) {
|
|
143
|
+
localVarQueryParameter.preserveWhitespace = preserveWhitespace;
|
|
144
|
+
}
|
|
145
|
+
if (charSet !== undefined) {
|
|
146
|
+
localVarQueryParameter.charSet = charSet;
|
|
147
|
+
}
|
|
148
|
+
if (postfix !== undefined) {
|
|
149
|
+
localVarQueryParameter.postfix = postfix;
|
|
150
|
+
}
|
|
151
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
152
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
153
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
154
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
155
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hl7Interchange, localVarRequestOptions, configuration);
|
|
156
|
+
return {
|
|
157
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
158
|
+
options: localVarRequestOptions,
|
|
159
|
+
};
|
|
160
|
+
},
|
|
161
|
+
});
|
|
162
|
+
exports.Hl7ApiAxiosParamCreator = Hl7ApiAxiosParamCreator;
|
|
163
|
+
/**
|
|
164
|
+
* Hl7Api - functional programming interface
|
|
165
|
+
* @export
|
|
166
|
+
*/
|
|
167
|
+
const Hl7ApiFp = (configuration) => {
|
|
168
|
+
const localVarAxiosParamCreator = (0, exports.Hl7ApiAxiosParamCreator)(configuration);
|
|
169
|
+
return {
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @summary Convert HL7 files to JSON
|
|
173
|
+
* @param {boolean} [ignoreNullValues] Whether to ignore all null values in the response. The default is false.
|
|
174
|
+
* @param {boolean} [continueOnError] Whether to continue reading if a corrupt interchange is encountered. The default is false.
|
|
175
|
+
* @param {string} [charSet] The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.
|
|
176
|
+
* @param {string} [model] The model to use. By default, the API will infer the model based on the transaction and version identifiers.
|
|
177
|
+
* @param {File} [body]
|
|
178
|
+
* @param {*} [options] Override http request option.
|
|
179
|
+
* @throws {RequiredError}
|
|
180
|
+
*/
|
|
181
|
+
async hl7ReadPost(ignoreNullValues, continueOnError, charSet, model, body, options) {
|
|
182
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.hl7ReadPost(ignoreNullValues, continueOnError, charSet, model, body, options);
|
|
183
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
184
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['Hl7Api.hl7ReadPost']?.[localVarOperationServerIndex]?.url;
|
|
185
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
186
|
+
},
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @summary Validate HL7 messages
|
|
190
|
+
* @param {string} [syntaxSet] In case you need to validate against a syntax set, different than Basic and Extended, populate this filed with all of the allowed symbols, url-escaped.
|
|
191
|
+
* @param {boolean} [skipTrailer] You are allowed to validate an Hl7Interchange with missing file or batch trailers (FTS, BTS). This is because these will be automatically applied during the Write oprtaion so you don\'t have to worry about counting the items. By default it is expected that all trailers are present when you validate the X12Interchange and by default, this is set to false. To skip all trailer validation, set this to true.
|
|
192
|
+
* @param {boolean} [structureOnly] This is equivalent to HIPAA Snip level 1, where only the structure and control segments are validated. By default, this is set to false, however if you want to not validate things such as data types, number of repeteitions or dates, set this to true.
|
|
193
|
+
* @param {Hl7Interchange} [hl7Interchange] The Hl7Interchange object to validate.
|
|
194
|
+
* @param {*} [options] Override http request option.
|
|
195
|
+
* @throws {RequiredError}
|
|
196
|
+
*/
|
|
197
|
+
async hl7ValidatePost(syntaxSet, skipTrailer, structureOnly, hl7Interchange, options) {
|
|
198
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.hl7ValidatePost(syntaxSet, skipTrailer, structureOnly, hl7Interchange, options);
|
|
199
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
200
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['Hl7Api.hl7ValidatePost']?.[localVarOperationServerIndex]?.url;
|
|
201
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
202
|
+
},
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
* @summary Convert JSON to HL7 files
|
|
206
|
+
* @param {boolean} [preserveWhitespace] Whether to preserve blank data elements so the output contains multiple delimiters instead of omitting any excess delimiters. The default is false.
|
|
207
|
+
* @param {string} [charSet] The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.
|
|
208
|
+
* @param {string} [postfix] The postfix to be applied at the end of each segment, just after the segment separator. This is usually a carriage return (CR), line feed (LF) or both. By default, there is no postfix.
|
|
209
|
+
* @param {Hl7Interchange} [hl7Interchange] The HL7Interchange object to translate to raw HL7.
|
|
210
|
+
* @param {*} [options] Override http request option.
|
|
211
|
+
* @throws {RequiredError}
|
|
212
|
+
*/
|
|
213
|
+
async hl7WritePost(preserveWhitespace, charSet, postfix, hl7Interchange, options) {
|
|
214
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.hl7WritePost(preserveWhitespace, charSet, postfix, hl7Interchange, options);
|
|
215
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
216
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['Hl7Api.hl7WritePost']?.[localVarOperationServerIndex]?.url;
|
|
217
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
218
|
+
},
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
exports.Hl7ApiFp = Hl7ApiFp;
|
|
222
|
+
/**
|
|
223
|
+
* Hl7Api - factory interface
|
|
224
|
+
* @export
|
|
225
|
+
*/
|
|
226
|
+
const Hl7ApiFactory = (configuration, basePath, axios) => {
|
|
227
|
+
const localVarFp = (0, exports.Hl7ApiFp)(configuration);
|
|
228
|
+
return {
|
|
229
|
+
/**
|
|
230
|
+
*
|
|
231
|
+
* @summary Convert HL7 files to JSON
|
|
232
|
+
* @param {Hl7ApiHl7ReadPostRequest} requestParameters Request parameters.
|
|
233
|
+
* @param {*} [options] Override http request option.
|
|
234
|
+
* @throws {RequiredError}
|
|
235
|
+
*/
|
|
236
|
+
hl7ReadPost(requestParameters = {}, options) {
|
|
237
|
+
return localVarFp
|
|
238
|
+
.hl7ReadPost(requestParameters.ignoreNullValues, requestParameters.continueOnError, requestParameters.charSet, requestParameters.model, requestParameters.body, options)
|
|
239
|
+
.then((request) => request(axios, basePath));
|
|
240
|
+
},
|
|
241
|
+
/**
|
|
242
|
+
*
|
|
243
|
+
* @summary Validate HL7 messages
|
|
244
|
+
* @param {Hl7ApiHl7ValidatePostRequest} requestParameters Request parameters.
|
|
245
|
+
* @param {*} [options] Override http request option.
|
|
246
|
+
* @throws {RequiredError}
|
|
247
|
+
*/
|
|
248
|
+
hl7ValidatePost(requestParameters = {}, options) {
|
|
249
|
+
return localVarFp
|
|
250
|
+
.hl7ValidatePost(requestParameters.syntaxSet, requestParameters.skipTrailer, requestParameters.structureOnly, requestParameters.hl7Interchange, options)
|
|
251
|
+
.then((request) => request(axios, basePath));
|
|
252
|
+
},
|
|
253
|
+
/**
|
|
254
|
+
*
|
|
255
|
+
* @summary Convert JSON to HL7 files
|
|
256
|
+
* @param {Hl7ApiHl7WritePostRequest} requestParameters Request parameters.
|
|
257
|
+
* @param {*} [options] Override http request option.
|
|
258
|
+
* @throws {RequiredError}
|
|
259
|
+
*/
|
|
260
|
+
hl7WritePost(requestParameters = {}, options) {
|
|
261
|
+
return localVarFp
|
|
262
|
+
.hl7WritePost(requestParameters.preserveWhitespace, requestParameters.charSet, requestParameters.postfix, requestParameters.hl7Interchange, options)
|
|
263
|
+
.then((request) => request(axios, basePath));
|
|
264
|
+
},
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
exports.Hl7ApiFactory = Hl7ApiFactory;
|
|
268
|
+
/**
|
|
269
|
+
* Hl7Api - object-oriented interface
|
|
270
|
+
* @export
|
|
271
|
+
* @class Hl7Api
|
|
272
|
+
* @extends {BaseAPI}
|
|
273
|
+
*/
|
|
274
|
+
class Hl7Api extends base_1.BaseAPI {
|
|
275
|
+
/**
|
|
276
|
+
*
|
|
277
|
+
* @summary Convert HL7 files to JSON
|
|
278
|
+
* @param {Hl7ApiHl7ReadPostRequest} requestParameters Request parameters.
|
|
279
|
+
* @param {*} [options] Override http request option.
|
|
280
|
+
* @throws {RequiredError}
|
|
281
|
+
* @memberof Hl7Api
|
|
282
|
+
*/
|
|
283
|
+
hl7ReadPost(requestParameters = {}, options) {
|
|
284
|
+
return (0, exports.Hl7ApiFp)(this.configuration)
|
|
285
|
+
.hl7ReadPost(requestParameters.ignoreNullValues, requestParameters.continueOnError, requestParameters.charSet, requestParameters.model, requestParameters.body, options)
|
|
286
|
+
.then((request) => request(this.axios, this.basePath));
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @summary Validate HL7 messages
|
|
291
|
+
* @param {Hl7ApiHl7ValidatePostRequest} requestParameters Request parameters.
|
|
292
|
+
* @param {*} [options] Override http request option.
|
|
293
|
+
* @throws {RequiredError}
|
|
294
|
+
* @memberof Hl7Api
|
|
295
|
+
*/
|
|
296
|
+
hl7ValidatePost(requestParameters = {}, options) {
|
|
297
|
+
return (0, exports.Hl7ApiFp)(this.configuration)
|
|
298
|
+
.hl7ValidatePost(requestParameters.syntaxSet, requestParameters.skipTrailer, requestParameters.structureOnly, requestParameters.hl7Interchange, options)
|
|
299
|
+
.then((request) => request(this.axios, this.basePath));
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
*
|
|
303
|
+
* @summary Convert JSON to HL7 files
|
|
304
|
+
* @param {Hl7ApiHl7WritePostRequest} requestParameters Request parameters.
|
|
305
|
+
* @param {*} [options] Override http request option.
|
|
306
|
+
* @throws {RequiredError}
|
|
307
|
+
* @memberof Hl7Api
|
|
308
|
+
*/
|
|
309
|
+
hl7WritePost(requestParameters = {}, options) {
|
|
310
|
+
return (0, exports.Hl7ApiFp)(this.configuration)
|
|
311
|
+
.hl7WritePost(requestParameters.preserveWhitespace, requestParameters.charSet, requestParameters.postfix, requestParameters.hl7Interchange, options)
|
|
312
|
+
.then((request) => request(this.axios, this.basePath));
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
exports.Hl7Api = Hl7Api;
|