@icure/be-fhc-api 0.4.4 → 0.4.7
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/api/fhcDataAttributeServiceApi.d.ts +37 -0
- package/api/fhcDataAttributeServiceApi.js +65 -0
- package/api/fhcEhboxV3Api.d.ts +10 -0
- package/api/fhcEhboxV3Api.js +23 -0
- package/api/fhcSchematronApi.d.ts +29 -0
- package/api/fhcSchematronApi.js +53 -0
- package/fhcApi.d.ts +2 -6
- package/fhcApi.js +2 -7
- package/model/Acknowledgement.d.ts +19 -0
- package/model/Acknowledgement.js +9 -0
- package/model/ActivePattern.d.ts +18 -0
- package/model/ActivePattern.js +20 -0
- package/model/DaasResponse.d.ts +20 -0
- package/model/DaasResponse.js +9 -0
- package/model/DiagnosticReference.d.ts +16 -0
- package/model/DiagnosticReference.js +20 -0
- package/model/EhboxIdentifierType.d.ts +20 -0
- package/model/EhboxIdentifierType.js +9 -0
- package/model/FailedAssert.d.ts +22 -0
- package/model/FailedAssert.js +9 -0
- package/model/FiredRule.d.ts +18 -0
- package/model/FiredRule.js +20 -0
- package/model/ItemType.d.ts +2 -2
- package/model/KmehrRegimen.d.ts +16 -0
- package/model/KmehrRegimen.js +9 -0
- package/model/Mapstringstring.d.ts +15 -0
- package/model/Mapstringstring.js +20 -0
- package/model/MessageOperationResponse.d.ts +1 -0
- package/model/MessageStatusOperationResponse.d.ts +19 -0
- package/model/MessageStatusOperationResponse.js +9 -0
- package/model/Ns.d.ts +16 -0
- package/model/Ns.js +20 -0
- package/model/NsPrefixInAttributeValues.d.ts +16 -0
- package/model/NsPrefixInAttributeValues.js +20 -0
- package/model/SchematronOutput.d.ts +30 -0
- package/model/SchematronOutput.js +9 -0
- package/model/SchematronValidationResult.d.ts +20 -0
- package/model/SchematronValidationResult.js +9 -0
- package/model/SuccessfulReport.d.ts +22 -0
- package/model/SuccessfulReport.js +9 -0
- package/model/User.d.ts +17 -0
- package/model/User.js +20 -0
- package/model/models.d.ts +19 -0
- package/model/models.js +19 -0
- package/package.json +1 -1
- package/x-api/message-x-api.d.ts +0 -35
- package/x-api/message-x-api.js +0 -790
- package/x-api/receipt-x-api.d.ts +0 -10
- package/x-api/receipt-x-api.js +0 -42
- package/x-api/utils/efact-parser.d.ts +0 -234
- package/x-api/utils/efact-parser.js +0 -1121
- package/x-api/utils/efact-util.d.ts +0 -28
- package/x-api/utils/efact-util.js +0 -316
- package/x-api/utils/fhc-invoice-sender-util.d.ts +0 -3
- package/x-api/utils/fhc-invoice-sender-util.js +0 -31
- package/x-api/utils/fhc-patient-util.d.ts +0 -3
- package/x-api/utils/fhc-patient-util.js +0 -20
- package/x-api/utils/formatting-util.d.ts +0 -76
- package/x-api/utils/formatting-util.js +0 -218
- package/x-api/utils/hcp-util.d.ts +0 -16
- package/x-api/utils/hcp-util.js +0 -131
- package/x-api/utils/insurability-util.d.ts +0 -22
- package/x-api/utils/insurability-util.js +0 -56
- package/x-api/utils/uuid-encoder.d.ts +0 -44
- package/x-api/utils/uuid-encoder.js +0 -110
package/x-api/receipt-x-api.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IccReceiptXApi, Receipt, User } from "@icure/api";
|
|
2
|
-
import { AgreementResponse, DmgAcknowledge, DmgConsultation, DmgNotification, DmgRegistration, InsurabilityInfoDto, TarificationConsultationResult } from "../model/models";
|
|
3
|
-
export declare class ReceiptXApi {
|
|
4
|
-
iccApi: IccReceiptXApi;
|
|
5
|
-
constructor(api: IccReceiptXApi);
|
|
6
|
-
/**
|
|
7
|
-
* log Soap conversation receipt
|
|
8
|
-
*/
|
|
9
|
-
logSCReceipt(object: AgreementResponse | DmgConsultation | DmgAcknowledge | DmgConsultation | DmgNotification | DmgRegistration | TarificationConsultationResult | InsurabilityInfoDto, user: User, docId: string, cat: string, subcat: string, refs?: Array<string>): Promise<Receipt>;
|
|
10
|
-
}
|
package/x-api/receipt-x-api.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReceiptXApi = void 0;
|
|
4
|
-
const api_1 = require("@icure/api");
|
|
5
|
-
const _ = require("lodash");
|
|
6
|
-
const moment = require("moment");
|
|
7
|
-
class ReceiptXApi {
|
|
8
|
-
constructor(api) {
|
|
9
|
-
this.iccApi = api;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* log Soap conversation receipt
|
|
13
|
-
*/
|
|
14
|
-
logSCReceipt(object, user, docId, cat, subcat, refs = []) {
|
|
15
|
-
return this.iccApi
|
|
16
|
-
.newInstance(user, {
|
|
17
|
-
category: cat,
|
|
18
|
-
subCategory: subcat,
|
|
19
|
-
documentId: docId,
|
|
20
|
-
references: refs.concat(object.commonOutput
|
|
21
|
-
? _.compact([
|
|
22
|
-
object.commonOutput.inputReference &&
|
|
23
|
-
`mycarenet:${cat}:inputReference:${object.commonOutput.inputReference}`,
|
|
24
|
-
object.commonOutput.inputReference &&
|
|
25
|
-
`mycarenet:${cat}:outputReference:${object.commonOutput.outputReference}`,
|
|
26
|
-
object.commonOutput.inputReference &&
|
|
27
|
-
`mycarenet:${cat}:nipReference:${object.commonOutput.nipReference}`
|
|
28
|
-
])
|
|
29
|
-
: [], ["date:" + moment().format("YYYYMMDDHHmmss")])
|
|
30
|
-
})
|
|
31
|
-
.then((rcpt) => this.iccApi.createReceipt(rcpt))
|
|
32
|
-
.then((rcpt) => {
|
|
33
|
-
if (!rcpt.id) {
|
|
34
|
-
throw new Error(`Receipt has no id: ${rcpt}`);
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
return this.iccApi.setReceiptAttachment(rcpt.id, "soapConversation", undefined, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(object.mycarenetConversation))));
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.ReceiptXApi = ReceiptXApi;
|
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
import { EfactMessage, ErrorDetail, Record } from "../../model/models";
|
|
2
|
-
export interface Zone200Data extends ETData {
|
|
3
|
-
isTest: boolean;
|
|
4
|
-
hcpMessageRef: string;
|
|
5
|
-
mutualityMessageReference: string;
|
|
6
|
-
}
|
|
7
|
-
export interface Zone300Data extends ETData {
|
|
8
|
-
sendingNumber: string;
|
|
9
|
-
invoiceReference: string;
|
|
10
|
-
mutualityContactLastName: string;
|
|
11
|
-
mutualityContactFirstName: string;
|
|
12
|
-
mutualityContactPhoneNumber: string;
|
|
13
|
-
invoiceType: string;
|
|
14
|
-
invoiceMode: string;
|
|
15
|
-
errorPercentage: string;
|
|
16
|
-
invoiceRejectionType: string;
|
|
17
|
-
}
|
|
18
|
-
export interface Zone300Short extends ETData {
|
|
19
|
-
sendingNumber: string;
|
|
20
|
-
invoiceReference: string;
|
|
21
|
-
mutualityContactLastName: string;
|
|
22
|
-
mutualityContactFirstName: string;
|
|
23
|
-
mutualityContactPhoneNumber: string;
|
|
24
|
-
invoiceType: string;
|
|
25
|
-
invoiceMode: string;
|
|
26
|
-
}
|
|
27
|
-
export interface Zone300Stub extends ETData {
|
|
28
|
-
messageType: string;
|
|
29
|
-
}
|
|
30
|
-
export interface Zone400Data {
|
|
31
|
-
mutualityNumber: string;
|
|
32
|
-
signAmount1: string;
|
|
33
|
-
askedAmount1: string;
|
|
34
|
-
mutualityControlNumber: string;
|
|
35
|
-
}
|
|
36
|
-
export interface Zone500Data {
|
|
37
|
-
mutualityNumber: string;
|
|
38
|
-
signAmount1: string;
|
|
39
|
-
askedAmount1: string;
|
|
40
|
-
mutualityControlNumber: string;
|
|
41
|
-
}
|
|
42
|
-
export interface ETData {
|
|
43
|
-
errorDetail?: ErrorDetail;
|
|
44
|
-
}
|
|
45
|
-
export interface ET10Data extends ETData {
|
|
46
|
-
fileVersion: string;
|
|
47
|
-
financialAccountNumber1: string;
|
|
48
|
-
sendingNumber: string;
|
|
49
|
-
financialAccountNumber2: string;
|
|
50
|
-
deletionCodePaperInvoice: string;
|
|
51
|
-
thirdPartyNumber: string;
|
|
52
|
-
accreditationCinNumber: string;
|
|
53
|
-
invoicingYear: string;
|
|
54
|
-
invoicingMonth: string;
|
|
55
|
-
invoiceReference: string;
|
|
56
|
-
bic1: string;
|
|
57
|
-
iban1: string;
|
|
58
|
-
bic2: string;
|
|
59
|
-
iban2: string;
|
|
60
|
-
recordControlNumber: string;
|
|
61
|
-
}
|
|
62
|
-
export interface ET20Data extends ETData {
|
|
63
|
-
ct1ct2: string;
|
|
64
|
-
reference: string;
|
|
65
|
-
recipientIdentifierFlag: string;
|
|
66
|
-
previousInvoicingYearMonth: string;
|
|
67
|
-
insurabilityStartDate: string;
|
|
68
|
-
insurabilityEndDate: string;
|
|
69
|
-
}
|
|
70
|
-
export interface ET50Data extends ETData {
|
|
71
|
-
recordOrderNumber: string;
|
|
72
|
-
sex: string;
|
|
73
|
-
montantInterventionAssurance: string;
|
|
74
|
-
units: string;
|
|
75
|
-
prescriberNihii: string;
|
|
76
|
-
itemReference: string;
|
|
77
|
-
tooth: string;
|
|
78
|
-
thirdPartyException: string;
|
|
79
|
-
treatedMember: string;
|
|
80
|
-
}
|
|
81
|
-
export interface ET51Data extends ETData {
|
|
82
|
-
recordOrderNumber: string;
|
|
83
|
-
prestationCode: string;
|
|
84
|
-
prestationDate: string;
|
|
85
|
-
recipientIdentifier: string;
|
|
86
|
-
careProviderIdentifier: string;
|
|
87
|
-
reimbursementAmount: string;
|
|
88
|
-
ct1ct2: string;
|
|
89
|
-
networkReferenceData: string;
|
|
90
|
-
infoCommunicationDate: string;
|
|
91
|
-
recordControlNumber: string;
|
|
92
|
-
}
|
|
93
|
-
export interface ET52Data extends ETData {
|
|
94
|
-
recordOrderNumber: string;
|
|
95
|
-
nomenCode: string;
|
|
96
|
-
prestationDate: string;
|
|
97
|
-
eidDate: string;
|
|
98
|
-
patientINSS: string;
|
|
99
|
-
eidSupportType: string;
|
|
100
|
-
eidReadingType: string;
|
|
101
|
-
eidReadingHour: string;
|
|
102
|
-
nihii: string;
|
|
103
|
-
}
|
|
104
|
-
export interface ET80Data extends ETData {
|
|
105
|
-
recipientIdentifier: string;
|
|
106
|
-
}
|
|
107
|
-
export interface ET90Data extends ETData {
|
|
108
|
-
financialAccountNumber1: string;
|
|
109
|
-
sendingNumber: string;
|
|
110
|
-
financialAccountNumber2: string;
|
|
111
|
-
thirdPartyNumber: string;
|
|
112
|
-
signeAndTotalAmountCptA: string;
|
|
113
|
-
invoicingYear: string;
|
|
114
|
-
invoicingMonth: string;
|
|
115
|
-
invoiceReference: string;
|
|
116
|
-
cbe: string;
|
|
117
|
-
bic1: string;
|
|
118
|
-
iban1: string;
|
|
119
|
-
bic2: string;
|
|
120
|
-
iban2: string;
|
|
121
|
-
invoiceControlNumber: string;
|
|
122
|
-
recordControlNumber: string;
|
|
123
|
-
}
|
|
124
|
-
export interface ET91Data {
|
|
125
|
-
askedAmountForAccount1: string;
|
|
126
|
-
askedAmountForAccount2: string;
|
|
127
|
-
totalAskedAmount: string;
|
|
128
|
-
numberOfRecordBundle: string;
|
|
129
|
-
acceptedAmountAccount1: string;
|
|
130
|
-
rejectedAmountAccount1: string;
|
|
131
|
-
acceptedAmountAccount2: string;
|
|
132
|
-
rejectedAmountAccount2: string;
|
|
133
|
-
totalAcceptedAmount: string;
|
|
134
|
-
totalRejectedAmount: string;
|
|
135
|
-
paymentReferenceAccount1: string;
|
|
136
|
-
paymentReferenceAccount2: string;
|
|
137
|
-
}
|
|
138
|
-
export interface ET92Data {
|
|
139
|
-
askedAmountAccount1: string;
|
|
140
|
-
askedAmountAccount2: string;
|
|
141
|
-
totalAskedAmount: string;
|
|
142
|
-
numberOfRecord: string;
|
|
143
|
-
acceptedAmountAccount1: string;
|
|
144
|
-
rejectedAmountAccount1: string;
|
|
145
|
-
acceptedAmountAccount2: string;
|
|
146
|
-
rejectedAmountAccount2: string;
|
|
147
|
-
totalAcceptedAmount: string;
|
|
148
|
-
totalRejectedAmount: string;
|
|
149
|
-
}
|
|
150
|
-
export interface ET20_80Data {
|
|
151
|
-
et20: ET20Data;
|
|
152
|
-
items: Array<{
|
|
153
|
-
et50?: ET50Data | undefined;
|
|
154
|
-
et51?: ET51Data | undefined;
|
|
155
|
-
et52?: ET52Data | undefined;
|
|
156
|
-
}>;
|
|
157
|
-
et80?: ET80Data;
|
|
158
|
-
}
|
|
159
|
-
export interface File920900Data {
|
|
160
|
-
zone200: Zone200Data;
|
|
161
|
-
zone300: Zone300Data;
|
|
162
|
-
et10: ET10Data;
|
|
163
|
-
records: Array<ET20_80Data>;
|
|
164
|
-
et90: ET90Data;
|
|
165
|
-
et91: Array<ET91Data>;
|
|
166
|
-
et92: ET92Data;
|
|
167
|
-
}
|
|
168
|
-
export interface File931000Data {
|
|
169
|
-
zone200: Zone200Data;
|
|
170
|
-
}
|
|
171
|
-
export interface File920099Data {
|
|
172
|
-
zone200: Zone200Data;
|
|
173
|
-
zone300: Zone300Data;
|
|
174
|
-
et10: ET10Data;
|
|
175
|
-
records: Array<ET20_80Data>;
|
|
176
|
-
et90: ET90Data;
|
|
177
|
-
}
|
|
178
|
-
export interface File920098Data {
|
|
179
|
-
zone200: Zone200Data;
|
|
180
|
-
zone300: Zone300Data;
|
|
181
|
-
et10: ET10Data;
|
|
182
|
-
records: Array<ET20_80Data>;
|
|
183
|
-
et90: ET90Data;
|
|
184
|
-
}
|
|
185
|
-
export interface File920999Data {
|
|
186
|
-
zone200: Zone200Data;
|
|
187
|
-
zone300: Zone300Short;
|
|
188
|
-
et95: Array<Zone400Data | undefined>;
|
|
189
|
-
et96: Zone500Data | undefined;
|
|
190
|
-
}
|
|
191
|
-
export declare abstract class EfactMessageReader {
|
|
192
|
-
message: EfactMessage;
|
|
193
|
-
abstract fileType: string;
|
|
194
|
-
private log;
|
|
195
|
-
constructor(message: EfactMessage, debug?: boolean);
|
|
196
|
-
get xades(): string | undefined;
|
|
197
|
-
get hashValue(): string | undefined;
|
|
198
|
-
abstract read(): any;
|
|
199
|
-
readZone200(zone200: Record): Zone200Data;
|
|
200
|
-
readZone300(zone300: Record): Zone300Data;
|
|
201
|
-
readZone300Stub(zone300: Record): Zone300Stub;
|
|
202
|
-
readZone300Short(zone300: Record): Zone300Short;
|
|
203
|
-
readET10(et10: Record): ET10Data;
|
|
204
|
-
readET20(et20: Record): ET20Data;
|
|
205
|
-
readET50(et50: Record): ET50Data;
|
|
206
|
-
readET51(et51: Record): ET51Data;
|
|
207
|
-
readET52(et52: Record): ET52Data;
|
|
208
|
-
readET80(et80: Record): ET80Data;
|
|
209
|
-
readET90(et90: Record): ET90Data;
|
|
210
|
-
readET91(et91: Record): ET91Data;
|
|
211
|
-
readET92(et92: Record): ET92Data;
|
|
212
|
-
readZone400(zone400: Record): Zone400Data;
|
|
213
|
-
readZone500(zone500: Record): Zone500Data;
|
|
214
|
-
}
|
|
215
|
-
export declare class EfactMessage920900Reader extends EfactMessageReader {
|
|
216
|
-
fileType: string;
|
|
217
|
-
read(): File920900Data | undefined;
|
|
218
|
-
}
|
|
219
|
-
export declare class EfactMessage931000Reader extends EfactMessageReader {
|
|
220
|
-
fileType: string;
|
|
221
|
-
read(): File931000Data | undefined;
|
|
222
|
-
}
|
|
223
|
-
export declare class EfactMessage920099Reader extends EfactMessageReader {
|
|
224
|
-
fileType: string;
|
|
225
|
-
read(): File920099Data | undefined;
|
|
226
|
-
}
|
|
227
|
-
export declare class EfactMessage920098Reader extends EfactMessageReader {
|
|
228
|
-
fileType: string;
|
|
229
|
-
read(): File920098Data | undefined;
|
|
230
|
-
}
|
|
231
|
-
export declare class EfactMessage920999Reader extends EfactMessageReader {
|
|
232
|
-
fileType: string;
|
|
233
|
-
read(): File920999Data | undefined;
|
|
234
|
-
}
|