@icure/be-fhc-api 0.5.16 → 0.5.18
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/XHR.js +1 -1
- package/api/fhcEagreementApi.d.ts +41 -35
- package/api/fhcEagreementApi.js +61 -61
- package/fhcApi.d.ts +1 -1
- package/fhcApi.js +6 -2
- package/index.js +5 -1
- package/model/Address.js +1 -1
- package/model/AgreementResponse.d.ts +2 -1
- package/model/BirthDeceaseType.js +1 -1
- package/model/CDACCESSRIGHT.js +1 -1
- package/model/CDACKNOWLEDGMENT.js +1 -1
- package/model/CDADDRESS.js +1 -1
- package/model/CDCARENETPERSONALPART.js +1 -1
- package/model/CDCERTAINTY.js +1 -1
- package/model/CDCONSENT.js +1 -1
- package/model/CDCONTENT.js +1 -1
- package/model/CDCOUNTRY.js +1 -1
- package/model/CDDAYPERIOD.js +1 -1
- package/model/CDDRUGCNK.js +1 -1
- package/model/CDEBIRTHPLACE.js +1 -1
- package/model/CDEMPLOYMENTSITUATION.js +1 -1
- package/model/CDENCRYPTIONMETHOD.d.ts +2 -2
- package/model/CDENCRYPTIONMETHOD.js +1 -1
- package/model/CDERROR.js +1 -1
- package/model/CDEXTERNALSOURCE.js +1 -1
- package/model/CDFORMULARY.js +1 -1
- package/model/CDGALENICFORM.js +1 -1
- package/model/CDHCPARTY.js +1 -1
- package/model/CDHEADING.js +1 -1
- package/model/CDINCAPACITY.js +1 -1
- package/model/CDINCAPACITYREASON.js +1 -1
- package/model/CDINNCLUSTER.js +1 -1
- package/model/CDITEM.js +1 -1
- package/model/CDLIFECYCLE.js +1 -1
- package/model/CDMEDICATION.js +1 -1
- package/model/CDMESSAGE.js +1 -1
- package/model/CDQUANTITYPREFIX.js +1 -1
- package/model/CDREFSCOPE.js +1 -1
- package/model/CDSEVERITY.js +1 -1
- package/model/CDSEX.js +1 -1
- package/model/CDSITE.js +1 -1
- package/model/CDSUBSTANCE.js +1 -1
- package/model/CDTELECOM.js +1 -1
- package/model/CDTEMPORALITY.js +1 -1
- package/model/CDTIMEUNIT.js +1 -1
- package/model/CDTRANSACTION.js +1 -1
- package/model/CDUNIT.js +1 -1
- package/model/CivilStateType.js +1 -1
- package/model/ConsultRnAddressDto.js +1 -1
- package/model/ConsultRnPersonDto.js +1 -1
- package/model/EattestCode.js +1 -1
- package/model/GenderType.js +1 -1
- package/model/GetPrescriptionStatusResult.js +1 -1
- package/model/HealthcareParty.js +1 -1
- package/model/IDHCPARTY.js +1 -1
- package/model/IDINSURANCE.js +1 -1
- package/model/IDKMEHR.js +1 -1
- package/model/IDPATIENT.js +1 -1
- package/model/IDPROFESSION.js +1 -1
- package/model/Invoice.js +1 -1
- package/model/InvoiceItem.js +1 -1
- package/model/LnkType.js +1 -1
- package/model/LocalisedString.js +1 -1
- package/model/Medication.js +1 -1
- package/model/ModelHelper.js +1 -2
- package/model/NameType.js +1 -1
- package/model/NationalityType.js +1 -1
- package/model/Patient.js +1 -1
- package/model/RecipeCDHEADING.js +1 -1
- package/model/RecipeCDINNCLUSTER.js +1 -1
- package/model/RecipeCDITEM.js +1 -1
- package/model/RecipeCDTRANSACTION.js +1 -1
- package/model/RecipebasicIDKMEHR.js +1 -1
- package/model/TarificationConsultationResult.js +1 -1
- package/model/Telecom.js +1 -1
- package/model/ZoneDescription.js +1 -1
- package/model/models.js +5 -1
- package/package.json +2 -2
- package/x-api/index.js +5 -1
- package/x-api/message-x-api.js +4 -5
- package/x-api/utils/efact-util.js +8 -9
- package/x-api/utils/fhc-invoice-sender-util.js +1 -2
- package/x-api/utils/fhc-patient-util.js +1 -2
- package/x-api/utils/formatting-util.js +20 -21
- package/x-api/utils/hcp-util.js +4 -4
- package/x-api/utils/insurability-util.js +6 -7
- package/x-api/utils/uuid-encoder.js +2 -2
- /package/api/{fhcDataAttributeServiceApi.d.ts → fhcDataAttributeserviceApi.d.ts} +0 -0
- /package/api/{fhcDataAttributeServiceApi.js → fhcDataAttributeserviceApi.js} +0 -0
package/api/XHR.js
CHANGED
|
@@ -30,9 +30,9 @@ export declare class fhcEagreementApi {
|
|
|
30
30
|
* @param hcpSsin hcpSsin
|
|
31
31
|
* @param hcpFirstName hcpFirstName
|
|
32
32
|
* @param hcpLastName hcpLastName
|
|
33
|
-
* @param prescriberNihii
|
|
34
|
-
* @param prescriberFirstName
|
|
35
|
-
* @param prescriberLastName
|
|
33
|
+
* @param prescriberNihii prescriberNihii
|
|
34
|
+
* @param prescriberFirstName prescriberFirstName
|
|
35
|
+
* @param prescriberLastName prescriberLastName
|
|
36
36
|
* @param patientFirstName patientFirstName
|
|
37
37
|
* @param patientLastName patientLastName
|
|
38
38
|
* @param patientGender patientGender
|
|
@@ -44,13 +44,15 @@ export declare class fhcEagreementApi {
|
|
|
44
44
|
* @param patientIoMembership patientIoMembership
|
|
45
45
|
* @param orgNihii orgNihii
|
|
46
46
|
* @param organizationType organizationType
|
|
47
|
-
* @param annex1 annex1
|
|
48
|
-
* @param annex2 annex2
|
|
49
47
|
* @param agreementType agreementType
|
|
50
|
-
* @param
|
|
51
|
-
* @param
|
|
48
|
+
* @param numberOfSessionForPrescription1 numberOfSessionForPrescription1
|
|
49
|
+
* @param numberOfSessionForPrescription2 numberOfSessionForPrescription2
|
|
50
|
+
* @param attachments attachments
|
|
52
51
|
*/
|
|
53
|
-
argueAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpName: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, prescriberNihii: string, prescriberFirstName: string, prescriberLastName: string, patientFirstName: string, patientLastName: string, patientGender: string, insuranceRef: string, sctCode?: string, sctDisplay?: string, patientSsin?: string, patientIo?: string, patientIoMembership?: string, orgNihii?: string, organizationType?: string,
|
|
52
|
+
argueAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpName: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, prescriberNihii: string, prescriberFirstName: string, prescriberLastName: string, patientFirstName: string, patientLastName: string, patientGender: string, insuranceRef: string, sctCode?: string, sctDisplay?: string, patientSsin?: string, patientIo?: string, patientIoMembership?: string, orgNihii?: string, organizationType?: string, agreementType?: string, numberOfSessionForPrescription1?: number, numberOfSessionForPrescription2?: number, attachments?: {
|
|
53
|
+
type: string;
|
|
54
|
+
data: string;
|
|
55
|
+
}[]): Promise<AgreementResponse>;
|
|
54
56
|
/**
|
|
55
57
|
*
|
|
56
58
|
* @summary askAgreement
|
|
@@ -59,13 +61,12 @@ export declare class fhcEagreementApi {
|
|
|
59
61
|
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
60
62
|
* @param hcpQuality hcpQuality
|
|
61
63
|
* @param hcpNihii hcpNihii
|
|
62
|
-
* @param hcpName hcpName
|
|
63
64
|
* @param hcpSsin hcpSsin
|
|
64
65
|
* @param hcpFirstName hcpFirstName
|
|
65
66
|
* @param hcpLastName hcpLastName
|
|
66
|
-
* @param prescriberNihii
|
|
67
|
-
* @param prescriberFirstName
|
|
68
|
-
* @param prescriberLastName
|
|
67
|
+
* @param prescriberNihii prescriberNihii
|
|
68
|
+
* @param prescriberFirstName prescriberFirstName
|
|
69
|
+
* @param prescriberLastName prescriberLastName
|
|
69
70
|
* @param patientFirstName patientFirstName
|
|
70
71
|
* @param patientLastName patientLastName
|
|
71
72
|
* @param patientGender patientGender
|
|
@@ -78,15 +79,17 @@ export declare class fhcEagreementApi {
|
|
|
78
79
|
* @param patientIoMembership patientIoMembership
|
|
79
80
|
* @param orgNihii orgNihii
|
|
80
81
|
* @param organizationType organizationType
|
|
81
|
-
* @param annex1 annex1
|
|
82
|
-
* @param annex2 annex2
|
|
83
82
|
* @param agreementStartDate agreementStartDate
|
|
84
83
|
* @param agreementEndDate agreementEndDate
|
|
85
84
|
* @param agreementType agreementType
|
|
86
|
-
* @param
|
|
87
|
-
* @param
|
|
85
|
+
* @param numberOfSessionForPrescription1 numberOfSessionForPrescription1
|
|
86
|
+
* @param numberOfSessionForPrescription2 numberOfSessionForPrescription2
|
|
87
|
+
* @param attachments attachments
|
|
88
88
|
*/
|
|
89
|
-
askAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string,
|
|
89
|
+
askAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, prescriberNihii: string, prescriberFirstName: string, prescriberLastName: string, patientFirstName: string, patientLastName: string, patientGender: string, pathologyStartDate: number, pathologyCode: string, sctCode: string, sctDisplay?: string, patientSsin?: string, patientIo?: string, patientIoMembership?: string, orgNihii?: string, organizationType?: string, agreementStartDate?: number, agreementEndDate?: number, agreementType?: string, numberOfSessionForPrescription1?: number, numberOfSessionForPrescription2?: number, attachments?: {
|
|
90
|
+
type: string;
|
|
91
|
+
data: string;
|
|
92
|
+
}[]): Promise<AgreementResponse>;
|
|
90
93
|
/**
|
|
91
94
|
*
|
|
92
95
|
* @summary cancelAgreement
|
|
@@ -123,9 +126,9 @@ export declare class fhcEagreementApi {
|
|
|
123
126
|
* @param hcpSsin hcpSsin
|
|
124
127
|
* @param hcpFirstName hcpFirstName
|
|
125
128
|
* @param hcpLastName hcpLastName
|
|
126
|
-
* @param prescriberNihii
|
|
127
|
-
* @param prescriberFirstName
|
|
128
|
-
* @param prescriberLastName
|
|
129
|
+
* @param prescriberNihii prescriberNihii
|
|
130
|
+
* @param prescriberFirstName prescriberFirstName
|
|
131
|
+
* @param prescriberLastName prescriberLastName
|
|
129
132
|
* @param patientFirstName patientFirstName
|
|
130
133
|
* @param patientLastName patientLastName
|
|
131
134
|
* @param patientGender patientGender
|
|
@@ -137,13 +140,15 @@ export declare class fhcEagreementApi {
|
|
|
137
140
|
* @param patientIoMembership patientIoMembership
|
|
138
141
|
* @param orgNihii orgNihii
|
|
139
142
|
* @param organizationType organizationType
|
|
140
|
-
* @param annex1 annex1
|
|
141
|
-
* @param annex2 annex2
|
|
142
143
|
* @param agreementType agreementType
|
|
143
|
-
* @param
|
|
144
|
-
* @param
|
|
144
|
+
* @param numberOfSessionForPrescription1 numberOfSessionForPrescription1
|
|
145
|
+
* @param numberOfSessionForPrescription2 numberOfSessionForPrescription2
|
|
146
|
+
* @param attachments attachments
|
|
145
147
|
*/
|
|
146
|
-
completeAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpName: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, prescriberNihii: string, prescriberFirstName: string, prescriberLastName: string, patientFirstName: string, patientLastName: string, patientGender: string, insuranceRef: string, sctCode?: string, sctDisplay?: string, patientSsin?: string, patientIo?: string, patientIoMembership?: string, orgNihii?: string, organizationType?: string,
|
|
148
|
+
completeAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpName: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, prescriberNihii: string, prescriberFirstName: string, prescriberLastName: string, patientFirstName: string, patientLastName: string, patientGender: string, insuranceRef: string, sctCode?: string, sctDisplay?: string, patientSsin?: string, patientIo?: string, patientIoMembership?: string, orgNihii?: string, organizationType?: string, agreementType?: string, numberOfSessionForPrescription1?: number, numberOfSessionForPrescription2?: number, attachments?: {
|
|
149
|
+
type: string;
|
|
150
|
+
data: string;
|
|
151
|
+
}[]): Promise<AgreementResponse>;
|
|
147
152
|
/**
|
|
148
153
|
*
|
|
149
154
|
* @summary consultList
|
|
@@ -173,19 +178,18 @@ export declare class fhcEagreementApi {
|
|
|
173
178
|
consultListUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpName: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientFirstName: string, patientLastName: string, patientGender: string, subTypeCode: string, insuranceRef?: string, patientSsin?: string, patientIo?: string, patientIoMembership?: string, orgNihii?: string, organizationType?: string, agreementStartDate?: number, agreementEndDate?: number, agreementType?: string): Promise<AgreementResponse>;
|
|
174
179
|
/**
|
|
175
180
|
*
|
|
176
|
-
* @summary
|
|
181
|
+
* @summary extendAgreementUsingPOST
|
|
177
182
|
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
178
183
|
* @param xFHCTokenId X-FHC-tokenId
|
|
179
184
|
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
180
185
|
* @param hcpQuality hcpQuality
|
|
181
186
|
* @param hcpNihii hcpNihii
|
|
182
|
-
* @param hcpName hcpName
|
|
183
187
|
* @param hcpSsin hcpSsin
|
|
184
188
|
* @param hcpFirstName hcpFirstName
|
|
185
189
|
* @param hcpLastName hcpLastName
|
|
186
|
-
* @param prescriberNihii
|
|
187
|
-
* @param prescriberFirstName
|
|
188
|
-
* @param prescriberLastName
|
|
190
|
+
* @param prescriberNihii prescriberNihii
|
|
191
|
+
* @param prescriberFirstName prescriberFirstName
|
|
192
|
+
* @param prescriberLastName prescriberLastName
|
|
189
193
|
* @param patientFirstName patientFirstName
|
|
190
194
|
* @param patientLastName patientLastName
|
|
191
195
|
* @param patientGender patientGender
|
|
@@ -199,13 +203,15 @@ export declare class fhcEagreementApi {
|
|
|
199
203
|
* @param patientIoMembership patientIoMembership
|
|
200
204
|
* @param orgNihii orgNihii
|
|
201
205
|
* @param organizationType organizationType
|
|
202
|
-
* @param annex1 annex1
|
|
203
|
-
* @param annex2 annex2
|
|
204
206
|
* @param agreementStartDate agreementStartDate
|
|
205
207
|
* @param agreementEndDate agreementEndDate
|
|
206
208
|
* @param agreementType agreementType
|
|
207
|
-
* @param
|
|
208
|
-
* @param
|
|
209
|
+
* @param numberOfSessionForPrescription1 numberOfSessionForPrescription1
|
|
210
|
+
* @param numberOfSessionForPrescription2 numberOfSessionForPrescription2
|
|
211
|
+
* @param attachments attachments
|
|
209
212
|
*/
|
|
210
|
-
extendAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string,
|
|
213
|
+
extendAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, prescriberNihii: string, prescriberFirstName: string, prescriberLastName: string, patientFirstName: string, patientLastName: string, patientGender: string, pathologyStartDate: number, pathologyCode: string, insuranceRef: string, sctCode?: string, sctDisplay?: string, patientSsin?: string, patientIo?: string, patientIoMembership?: string, orgNihii?: string, organizationType?: string, agreementStartDate?: number, agreementEndDate?: number, agreementType?: string, numberOfSessionForPrescription1?: number, numberOfSessionForPrescription2?: number, attachments?: {
|
|
214
|
+
type: string;
|
|
215
|
+
data: string;
|
|
216
|
+
}[]): Promise<AgreementResponse>;
|
|
211
217
|
}
|
package/api/fhcEagreementApi.js
CHANGED
|
@@ -38,9 +38,9 @@ class fhcEagreementApi {
|
|
|
38
38
|
* @param hcpSsin hcpSsin
|
|
39
39
|
* @param hcpFirstName hcpFirstName
|
|
40
40
|
* @param hcpLastName hcpLastName
|
|
41
|
-
* @param prescriberNihii
|
|
42
|
-
* @param prescriberFirstName
|
|
43
|
-
* @param prescriberLastName
|
|
41
|
+
* @param prescriberNihii prescriberNihii
|
|
42
|
+
* @param prescriberFirstName prescriberFirstName
|
|
43
|
+
* @param prescriberLastName prescriberLastName
|
|
44
44
|
* @param patientFirstName patientFirstName
|
|
45
45
|
* @param patientLastName patientLastName
|
|
46
46
|
* @param patientGender patientGender
|
|
@@ -52,14 +52,14 @@ class fhcEagreementApi {
|
|
|
52
52
|
* @param patientIoMembership patientIoMembership
|
|
53
53
|
* @param orgNihii orgNihii
|
|
54
54
|
* @param organizationType organizationType
|
|
55
|
-
* @param annex1 annex1
|
|
56
|
-
* @param annex2 annex2
|
|
57
55
|
* @param agreementType agreementType
|
|
58
|
-
* @param
|
|
59
|
-
* @param
|
|
56
|
+
* @param numberOfSessionForPrescription1 numberOfSessionForPrescription1
|
|
57
|
+
* @param numberOfSessionForPrescription2 numberOfSessionForPrescription2
|
|
58
|
+
* @param attachments attachments
|
|
60
59
|
*/
|
|
61
|
-
argueAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpName, hcpSsin, hcpFirstName, hcpLastName, prescriberNihii, prescriberFirstName, prescriberLastName, patientFirstName, patientLastName, patientGender, insuranceRef, sctCode, sctDisplay, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType,
|
|
60
|
+
argueAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpName, hcpSsin, hcpFirstName, hcpLastName, prescriberNihii, prescriberFirstName, prescriberLastName, patientFirstName, patientLastName, patientGender, insuranceRef, sctCode, sctDisplay, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType, agreementType, numberOfSessionForPrescription1, numberOfSessionForPrescription2, attachments) {
|
|
62
61
|
let _body = null;
|
|
62
|
+
_body = attachments;
|
|
63
63
|
const _url = this.host +
|
|
64
64
|
`/eagreement/argueAgreement` +
|
|
65
65
|
"?ts=" +
|
|
@@ -94,16 +94,17 @@ class fhcEagreementApi {
|
|
|
94
94
|
(organizationType
|
|
95
95
|
? "&organizationType=" + encodeURIComponent(String(organizationType))
|
|
96
96
|
: "") +
|
|
97
|
-
(annex1 ? "&annex1=" + encodeURIComponent(String(annex1)) : "") +
|
|
98
|
-
(annex2 ? "&annex2=" + encodeURIComponent(String(annex2)) : "") +
|
|
99
97
|
(agreementType ? "&agreementType=" + encodeURIComponent(String(agreementType)) : "") +
|
|
100
|
-
(
|
|
101
|
-
? "&
|
|
98
|
+
(numberOfSessionForPrescription1
|
|
99
|
+
? "&numberOfSessionForPrescription1=" + encodeURIComponent(String(numberOfSessionForPrescription1))
|
|
102
100
|
: "") +
|
|
103
|
-
(
|
|
104
|
-
? "&
|
|
101
|
+
(numberOfSessionForPrescription2
|
|
102
|
+
? "&numberOfSessionForPrescription2=" + encodeURIComponent(String(numberOfSessionForPrescription2))
|
|
105
103
|
: "");
|
|
106
104
|
let headers = this.headers;
|
|
105
|
+
headers = headers
|
|
106
|
+
.filter(h => h.header !== "Content-Type")
|
|
107
|
+
.concat(new XHR_1.XHR.Header("Content-Type", "application/json"));
|
|
107
108
|
xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
|
|
108
109
|
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
109
110
|
xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
|
|
@@ -119,13 +120,12 @@ class fhcEagreementApi {
|
|
|
119
120
|
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
120
121
|
* @param hcpQuality hcpQuality
|
|
121
122
|
* @param hcpNihii hcpNihii
|
|
122
|
-
* @param hcpName hcpName
|
|
123
123
|
* @param hcpSsin hcpSsin
|
|
124
124
|
* @param hcpFirstName hcpFirstName
|
|
125
125
|
* @param hcpLastName hcpLastName
|
|
126
|
-
* @param prescriberNihii
|
|
127
|
-
* @param prescriberFirstName
|
|
128
|
-
* @param prescriberLastName
|
|
126
|
+
* @param prescriberNihii prescriberNihii
|
|
127
|
+
* @param prescriberFirstName prescriberFirstName
|
|
128
|
+
* @param prescriberLastName prescriberLastName
|
|
129
129
|
* @param patientFirstName patientFirstName
|
|
130
130
|
* @param patientLastName patientLastName
|
|
131
131
|
* @param patientGender patientGender
|
|
@@ -138,23 +138,22 @@ class fhcEagreementApi {
|
|
|
138
138
|
* @param patientIoMembership patientIoMembership
|
|
139
139
|
* @param orgNihii orgNihii
|
|
140
140
|
* @param organizationType organizationType
|
|
141
|
-
* @param annex1 annex1
|
|
142
|
-
* @param annex2 annex2
|
|
143
141
|
* @param agreementStartDate agreementStartDate
|
|
144
142
|
* @param agreementEndDate agreementEndDate
|
|
145
143
|
* @param agreementType agreementType
|
|
146
|
-
* @param
|
|
147
|
-
* @param
|
|
144
|
+
* @param numberOfSessionForPrescription1 numberOfSessionForPrescription1
|
|
145
|
+
* @param numberOfSessionForPrescription2 numberOfSessionForPrescription2
|
|
146
|
+
* @param attachments attachments
|
|
148
147
|
*/
|
|
149
|
-
askAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii,
|
|
148
|
+
askAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, prescriberNihii, prescriberFirstName, prescriberLastName, patientFirstName, patientLastName, patientGender, pathologyStartDate, pathologyCode, sctCode, sctDisplay, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType, agreementStartDate, agreementEndDate, agreementType, numberOfSessionForPrescription1, numberOfSessionForPrescription2, attachments) {
|
|
150
149
|
let _body = null;
|
|
150
|
+
_body = attachments;
|
|
151
151
|
const _url = this.host +
|
|
152
152
|
`/eagreement/askAgreement` +
|
|
153
153
|
"?ts=" +
|
|
154
154
|
new Date().getTime() +
|
|
155
155
|
(hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
|
|
156
156
|
(hcpNihii ? "&hcpNihii=" + encodeURIComponent(String(hcpNihii)) : "") +
|
|
157
|
-
(hcpName ? "&hcpName=" + encodeURIComponent(String(hcpName)) : "") +
|
|
158
157
|
(hcpSsin ? "&hcpSsin=" + encodeURIComponent(String(hcpSsin)) : "") +
|
|
159
158
|
(hcpFirstName ? "&hcpFirstName=" + encodeURIComponent(String(hcpFirstName)) : "") +
|
|
160
159
|
(hcpLastName ? "&hcpLastName=" + encodeURIComponent(String(hcpLastName)) : "") +
|
|
@@ -185,8 +184,6 @@ class fhcEagreementApi {
|
|
|
185
184
|
(organizationType
|
|
186
185
|
? "&organizationType=" + encodeURIComponent(String(organizationType))
|
|
187
186
|
: "") +
|
|
188
|
-
(annex1 ? "&annex1=" + encodeURIComponent(String(annex1)) : "") +
|
|
189
|
-
(annex2 ? "&annex2=" + encodeURIComponent(String(annex2)) : "") +
|
|
190
187
|
(agreementStartDate
|
|
191
188
|
? "&agreementStartDate=" + encodeURIComponent(String(agreementStartDate))
|
|
192
189
|
: "") +
|
|
@@ -194,13 +191,16 @@ class fhcEagreementApi {
|
|
|
194
191
|
? "&agreementEndDate=" + encodeURIComponent(String(agreementEndDate))
|
|
195
192
|
: "") +
|
|
196
193
|
(agreementType ? "&agreementType=" + encodeURIComponent(String(agreementType)) : "") +
|
|
197
|
-
(
|
|
198
|
-
? "&
|
|
194
|
+
(numberOfSessionForPrescription1
|
|
195
|
+
? "&numberOfSessionForPrescription1=" + encodeURIComponent(String(numberOfSessionForPrescription1))
|
|
199
196
|
: "") +
|
|
200
|
-
(
|
|
201
|
-
? "&
|
|
197
|
+
(numberOfSessionForPrescription2
|
|
198
|
+
? "&numberOfSessionForPrescription2=" + encodeURIComponent(String(numberOfSessionForPrescription2))
|
|
202
199
|
: "");
|
|
203
200
|
let headers = this.headers;
|
|
201
|
+
headers = headers
|
|
202
|
+
.filter(h => h.header !== "Content-Type")
|
|
203
|
+
.concat(new XHR_1.XHR.Header("Content-Type", "application/json"));
|
|
204
204
|
xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
|
|
205
205
|
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
206
206
|
xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
|
|
@@ -279,9 +279,9 @@ class fhcEagreementApi {
|
|
|
279
279
|
* @param hcpSsin hcpSsin
|
|
280
280
|
* @param hcpFirstName hcpFirstName
|
|
281
281
|
* @param hcpLastName hcpLastName
|
|
282
|
-
* @param prescriberNihii
|
|
283
|
-
* @param prescriberFirstName
|
|
284
|
-
* @param prescriberLastName
|
|
282
|
+
* @param prescriberNihii prescriberNihii
|
|
283
|
+
* @param prescriberFirstName prescriberFirstName
|
|
284
|
+
* @param prescriberLastName prescriberLastName
|
|
285
285
|
* @param patientFirstName patientFirstName
|
|
286
286
|
* @param patientLastName patientLastName
|
|
287
287
|
* @param patientGender patientGender
|
|
@@ -293,14 +293,14 @@ class fhcEagreementApi {
|
|
|
293
293
|
* @param patientIoMembership patientIoMembership
|
|
294
294
|
* @param orgNihii orgNihii
|
|
295
295
|
* @param organizationType organizationType
|
|
296
|
-
* @param annex1 annex1
|
|
297
|
-
* @param annex2 annex2
|
|
298
296
|
* @param agreementType agreementType
|
|
299
|
-
* @param
|
|
300
|
-
* @param
|
|
297
|
+
* @param numberOfSessionForPrescription1 numberOfSessionForPrescription1
|
|
298
|
+
* @param numberOfSessionForPrescription2 numberOfSessionForPrescription2
|
|
299
|
+
* @param attachments attachments
|
|
301
300
|
*/
|
|
302
|
-
completeAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpName, hcpSsin, hcpFirstName, hcpLastName, prescriberNihii, prescriberFirstName, prescriberLastName, patientFirstName, patientLastName, patientGender, insuranceRef, sctCode, sctDisplay, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType,
|
|
301
|
+
completeAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpName, hcpSsin, hcpFirstName, hcpLastName, prescriberNihii, prescriberFirstName, prescriberLastName, patientFirstName, patientLastName, patientGender, insuranceRef, sctCode, sctDisplay, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType, agreementType, numberOfSessionForPrescription1, numberOfSessionForPrescription2, attachments) {
|
|
303
302
|
let _body = null;
|
|
303
|
+
_body = attachments;
|
|
304
304
|
const _url = this.host +
|
|
305
305
|
`/eagreement/completeAgreement` +
|
|
306
306
|
"?ts=" +
|
|
@@ -335,16 +335,17 @@ class fhcEagreementApi {
|
|
|
335
335
|
(organizationType
|
|
336
336
|
? "&organizationType=" + encodeURIComponent(String(organizationType))
|
|
337
337
|
: "") +
|
|
338
|
-
(annex1 ? "&annex1=" + encodeURIComponent(String(annex1)) : "") +
|
|
339
|
-
(annex2 ? "&annex2=" + encodeURIComponent(String(annex2)) : "") +
|
|
340
338
|
(agreementType ? "&agreementType=" + encodeURIComponent(String(agreementType)) : "") +
|
|
341
|
-
(
|
|
342
|
-
? "&
|
|
339
|
+
(numberOfSessionForPrescription1
|
|
340
|
+
? "&numberOfSessionForPrescription1=" + encodeURIComponent(String(numberOfSessionForPrescription1))
|
|
343
341
|
: "") +
|
|
344
|
-
(
|
|
345
|
-
? "&
|
|
342
|
+
(numberOfSessionForPrescription2
|
|
343
|
+
? "&numberOfSessionForPrescription2=" + encodeURIComponent(String(numberOfSessionForPrescription2))
|
|
346
344
|
: "");
|
|
347
345
|
let headers = this.headers;
|
|
346
|
+
headers = headers
|
|
347
|
+
.filter(h => h.header !== "Content-Type")
|
|
348
|
+
.concat(new XHR_1.XHR.Header("Content-Type", "application/json"));
|
|
348
349
|
xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
|
|
349
350
|
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
350
351
|
xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
|
|
@@ -423,19 +424,18 @@ class fhcEagreementApi {
|
|
|
423
424
|
}
|
|
424
425
|
/**
|
|
425
426
|
*
|
|
426
|
-
* @summary
|
|
427
|
+
* @summary extendAgreementUsingPOST
|
|
427
428
|
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
428
429
|
* @param xFHCTokenId X-FHC-tokenId
|
|
429
430
|
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
430
431
|
* @param hcpQuality hcpQuality
|
|
431
432
|
* @param hcpNihii hcpNihii
|
|
432
|
-
* @param hcpName hcpName
|
|
433
433
|
* @param hcpSsin hcpSsin
|
|
434
434
|
* @param hcpFirstName hcpFirstName
|
|
435
435
|
* @param hcpLastName hcpLastName
|
|
436
|
-
* @param prescriberNihii
|
|
437
|
-
* @param prescriberFirstName
|
|
438
|
-
* @param prescriberLastName
|
|
436
|
+
* @param prescriberNihii prescriberNihii
|
|
437
|
+
* @param prescriberFirstName prescriberFirstName
|
|
438
|
+
* @param prescriberLastName prescriberLastName
|
|
439
439
|
* @param patientFirstName patientFirstName
|
|
440
440
|
* @param patientLastName patientLastName
|
|
441
441
|
* @param patientGender patientGender
|
|
@@ -449,23 +449,22 @@ class fhcEagreementApi {
|
|
|
449
449
|
* @param patientIoMembership patientIoMembership
|
|
450
450
|
* @param orgNihii orgNihii
|
|
451
451
|
* @param organizationType organizationType
|
|
452
|
-
* @param annex1 annex1
|
|
453
|
-
* @param annex2 annex2
|
|
454
452
|
* @param agreementStartDate agreementStartDate
|
|
455
453
|
* @param agreementEndDate agreementEndDate
|
|
456
454
|
* @param agreementType agreementType
|
|
457
|
-
* @param
|
|
458
|
-
* @param
|
|
455
|
+
* @param numberOfSessionForPrescription1 numberOfSessionForPrescription1
|
|
456
|
+
* @param numberOfSessionForPrescription2 numberOfSessionForPrescription2
|
|
457
|
+
* @param attachments attachments
|
|
459
458
|
*/
|
|
460
|
-
extendAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii,
|
|
459
|
+
extendAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, prescriberNihii, prescriberFirstName, prescriberLastName, patientFirstName, patientLastName, patientGender, pathologyStartDate, pathologyCode, insuranceRef, sctCode, sctDisplay, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType, agreementStartDate, agreementEndDate, agreementType, numberOfSessionForPrescription1, numberOfSessionForPrescription2, attachments) {
|
|
461
460
|
let _body = null;
|
|
461
|
+
_body = attachments;
|
|
462
462
|
const _url = this.host +
|
|
463
463
|
`/eagreement/extendAgreement` +
|
|
464
464
|
"?ts=" +
|
|
465
465
|
new Date().getTime() +
|
|
466
466
|
(hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
|
|
467
467
|
(hcpNihii ? "&hcpNihii=" + encodeURIComponent(String(hcpNihii)) : "") +
|
|
468
|
-
(hcpName ? "&hcpName=" + encodeURIComponent(String(hcpName)) : "") +
|
|
469
468
|
(hcpSsin ? "&hcpSsin=" + encodeURIComponent(String(hcpSsin)) : "") +
|
|
470
469
|
(hcpFirstName ? "&hcpFirstName=" + encodeURIComponent(String(hcpFirstName)) : "") +
|
|
471
470
|
(hcpLastName ? "&hcpLastName=" + encodeURIComponent(String(hcpLastName)) : "") +
|
|
@@ -497,8 +496,6 @@ class fhcEagreementApi {
|
|
|
497
496
|
(organizationType
|
|
498
497
|
? "&organizationType=" + encodeURIComponent(String(organizationType))
|
|
499
498
|
: "") +
|
|
500
|
-
(annex1 ? "&annex1=" + encodeURIComponent(String(annex1)) : "") +
|
|
501
|
-
(annex2 ? "&annex2=" + encodeURIComponent(String(annex2)) : "") +
|
|
502
499
|
(agreementStartDate
|
|
503
500
|
? "&agreementStartDate=" + encodeURIComponent(String(agreementStartDate))
|
|
504
501
|
: "") +
|
|
@@ -506,13 +503,16 @@ class fhcEagreementApi {
|
|
|
506
503
|
? "&agreementEndDate=" + encodeURIComponent(String(agreementEndDate))
|
|
507
504
|
: "") +
|
|
508
505
|
(agreementType ? "&agreementType=" + encodeURIComponent(String(agreementType)) : "") +
|
|
509
|
-
(
|
|
510
|
-
? "&
|
|
506
|
+
(numberOfSessionForPrescription1
|
|
507
|
+
? "&numberOfSessionForPrescription1=" + encodeURIComponent(String(numberOfSessionForPrescription1))
|
|
511
508
|
: "") +
|
|
512
|
-
(
|
|
513
|
-
? "&
|
|
509
|
+
(numberOfSessionForPrescription2
|
|
510
|
+
? "&numberOfSessionForPrescription2=" + encodeURIComponent(String(numberOfSessionForPrescription2))
|
|
514
511
|
: "");
|
|
515
512
|
let headers = this.headers;
|
|
513
|
+
headers = headers
|
|
514
|
+
.filter(h => h.header !== "Content-Type")
|
|
515
|
+
.concat(new XHR_1.XHR.Header("Content-Type", "application/json"));
|
|
516
516
|
xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
|
|
517
517
|
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
518
518
|
xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
|
package/fhcApi.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export * from "./api/fhcChapter4Api";
|
|
|
5
5
|
export * from "./api/fhcConsentApi";
|
|
6
6
|
export * from "./api/fhcConsultrnApi";
|
|
7
7
|
export * from "./api/fhcCryptoApi";
|
|
8
|
-
export * from "./api/
|
|
8
|
+
export * from "./api/fhcDataAttributeserviceApi";
|
|
9
9
|
export * from "./api/fhcDmgApi";
|
|
10
10
|
export * from "./api/fhcEagreementApi";
|
|
11
11
|
export * from "./api/fhcEattestApi";
|
package/fhcApi.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -17,7 +21,7 @@ __exportStar(require("./api/fhcChapter4Api"), exports);
|
|
|
17
21
|
__exportStar(require("./api/fhcConsentApi"), exports);
|
|
18
22
|
__exportStar(require("./api/fhcConsultrnApi"), exports);
|
|
19
23
|
__exportStar(require("./api/fhcCryptoApi"), exports);
|
|
20
|
-
__exportStar(require("./api/
|
|
24
|
+
__exportStar(require("./api/fhcDataAttributeserviceApi"), exports);
|
|
21
25
|
__exportStar(require("./api/fhcDmgApi"), exports);
|
|
22
26
|
__exportStar(require("./api/fhcEagreementApi"), exports);
|
|
23
27
|
__exportStar(require("./api/fhcEattestApi"), exports);
|
package/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/model/Address.js
CHANGED
|
@@ -15,11 +15,12 @@ import { MycarenetConversation } from "./MycarenetConversation";
|
|
|
15
15
|
import { MycarenetError } from "./MycarenetError";
|
|
16
16
|
export declare class AgreementResponse {
|
|
17
17
|
constructor(json: JSON | any);
|
|
18
|
-
|
|
18
|
+
isAcknowledged?: boolean;
|
|
19
19
|
commonOutput?: CommonOutput;
|
|
20
20
|
content?: ArrayBuffer;
|
|
21
21
|
errors?: Array<MycarenetError>;
|
|
22
22
|
mycarenetConversation?: MycarenetConversation;
|
|
23
23
|
transactions?: Array<AgreementTransaction>;
|
|
24
24
|
warnings?: Array<MycarenetError>;
|
|
25
|
+
xades?: ArrayBuffer;
|
|
25
26
|
}
|
package/model/CDACCESSRIGHT.js
CHANGED
package/model/CDADDRESS.js
CHANGED
|
@@ -24,4 +24,4 @@ exports.CDCARENETPERSONALPART = CDCARENETPERSONALPART;
|
|
|
24
24
|
CODE2: "CODE_2",
|
|
25
25
|
FUTURE: "FUTURE"
|
|
26
26
|
};
|
|
27
|
-
})(CDCARENETPERSONALPART
|
|
27
|
+
})(CDCARENETPERSONALPART || (exports.CDCARENETPERSONALPART = CDCARENETPERSONALPART = {}));
|
package/model/CDCERTAINTY.js
CHANGED
package/model/CDCONSENT.js
CHANGED
package/model/CDCONTENT.js
CHANGED
|
@@ -189,4 +189,4 @@ exports.CDCONTENT = CDCONTENT;
|
|
|
189
189
|
CDREIMBURSEMENTTERMPARAMETER: "CD_REIMBURSEMENT_TERM_PARAMETER",
|
|
190
190
|
CDREIMBURSEMENTCONTEXTENVIRONMENT: "CD_REIMBURSEMENT_CONTEXT_ENVIRONMENT"
|
|
191
191
|
};
|
|
192
|
-
})(CDCONTENT
|
|
192
|
+
})(CDCONTENT || (exports.CDCONTENT = CDCONTENT = {}));
|
package/model/CDCOUNTRY.js
CHANGED
package/model/CDDAYPERIOD.js
CHANGED
package/model/CDDRUGCNK.js
CHANGED
package/model/CDEBIRTHPLACE.js
CHANGED
|
@@ -24,4 +24,4 @@ exports.CDEMPLOYMENTSITUATION = CDEMPLOYMENTSITUATION;
|
|
|
24
24
|
EMPLOYED: "EMPLOYED",
|
|
25
25
|
CIVILSERVANT: "CIVILSERVANT"
|
|
26
26
|
};
|
|
27
|
-
})(CDEMPLOYMENTSITUATION
|
|
27
|
+
})(CDEMPLOYMENTSITUATION || (exports.CDEMPLOYMENTSITUATION = CDEMPLOYMENTSITUATION = {}));
|
|
@@ -20,10 +20,10 @@ export declare class CDENCRYPTIONMETHOD {
|
|
|
20
20
|
export declare namespace CDENCRYPTIONMETHOD {
|
|
21
21
|
type SEnum = "CD_ENCRYPTION_METHOD";
|
|
22
22
|
const SEnum: {
|
|
23
|
-
METHOD:
|
|
23
|
+
METHOD: SEnum;
|
|
24
24
|
};
|
|
25
25
|
type ValueEnum = "CMS";
|
|
26
26
|
const ValueEnum: {
|
|
27
|
-
CMS:
|
|
27
|
+
CMS: ValueEnum;
|
|
28
28
|
};
|
|
29
29
|
}
|
|
@@ -25,4 +25,4 @@ exports.CDENCRYPTIONMETHOD = CDENCRYPTIONMETHOD;
|
|
|
25
25
|
CDENCRYPTIONMETHOD.ValueEnum = {
|
|
26
26
|
CMS: "CMS"
|
|
27
27
|
};
|
|
28
|
-
})(CDENCRYPTIONMETHOD
|
|
28
|
+
})(CDENCRYPTIONMETHOD || (exports.CDENCRYPTIONMETHOD = CDENCRYPTIONMETHOD = {}));
|
package/model/CDERROR.js
CHANGED