@icure/api 6.0.2 → 6.0.4
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/icc-api/api/IccAccesslogApi.d.ts +3 -1
- package/icc-api/api/IccAccesslogApi.js +10 -8
- package/icc-api/api/IccAccesslogApi.js.map +1 -1
- package/icc-api/api/IccAgendaApi.d.ts +3 -1
- package/icc-api/api/IccAgendaApi.js +10 -8
- package/icc-api/api/IccAgendaApi.js.map +1 -1
- package/icc-api/api/IccAnonymousAccessApi.d.ts +3 -1
- package/icc-api/api/IccAnonymousAccessApi.js +6 -4
- package/icc-api/api/IccAnonymousAccessApi.js.map +1 -1
- package/icc-api/api/IccApplicationsettingsApi.d.ts +3 -1
- package/icc-api/api/IccApplicationsettingsApi.js +6 -4
- package/icc-api/api/IccApplicationsettingsApi.js.map +1 -1
- package/icc-api/api/IccArticleApi.d.ts +3 -1
- package/icc-api/api/IccArticleApi.js +8 -6
- package/icc-api/api/IccArticleApi.js.map +1 -1
- package/icc-api/api/IccAuthApi.d.ts +13 -1
- package/icc-api/api/IccAuthApi.js +30 -4
- package/icc-api/api/IccAuthApi.js.map +1 -1
- package/icc-api/api/IccBeefactApi.d.ts +3 -1
- package/icc-api/api/IccBeefactApi.js +4 -2
- package/icc-api/api/IccBeefactApi.js.map +1 -1
- package/icc-api/api/IccBekmehrApi.d.ts +3 -1
- package/icc-api/api/IccBekmehrApi.js +30 -28
- package/icc-api/api/IccBekmehrApi.js.map +1 -1
- package/icc-api/api/IccBemikronoApi.d.ts +3 -1
- package/icc-api/api/IccBemikronoApi.js +11 -9
- package/icc-api/api/IccBemikronoApi.js.map +1 -1
- package/icc-api/api/IccBeresultexportApi.d.ts +3 -1
- package/icc-api/api/IccBeresultexportApi.js +6 -4
- package/icc-api/api/IccBeresultexportApi.js.map +1 -1
- package/icc-api/api/IccBeresultimportApi.d.ts +3 -1
- package/icc-api/api/IccBeresultimportApi.js +6 -4
- package/icc-api/api/IccBeresultimportApi.js.map +1 -1
- package/icc-api/api/IccBesamv2Api.d.ts +3 -1
- package/icc-api/api/IccBesamv2Api.js +36 -34
- package/icc-api/api/IccBesamv2Api.js.map +1 -1
- package/icc-api/api/IccCalendarItemApi.d.ts +3 -1
- package/icc-api/api/IccCalendarItemApi.js +15 -13
- package/icc-api/api/IccCalendarItemApi.js.map +1 -1
- package/icc-api/api/IccCalendarItemTypeApi.d.ts +3 -1
- package/icc-api/api/IccCalendarItemTypeApi.js +9 -7
- package/icc-api/api/IccCalendarItemTypeApi.js.map +1 -1
- package/icc-api/api/IccClassificationApi.d.ts +3 -1
- package/icc-api/api/IccClassificationApi.js +11 -9
- package/icc-api/api/IccClassificationApi.js.map +1 -1
- package/icc-api/api/IccClassificationTemplateApi.d.ts +3 -1
- package/icc-api/api/IccClassificationTemplateApi.js +11 -9
- package/icc-api/api/IccClassificationTemplateApi.js.map +1 -1
- package/icc-api/api/IccCodeApi.d.ts +3 -1
- package/icc-api/api/IccCodeApi.js +19 -17
- package/icc-api/api/IccCodeApi.js.map +1 -1
- package/icc-api/api/IccContactApi.d.ts +3 -2
- package/icc-api/api/IccContactApi.js +31 -32
- package/icc-api/api/IccContactApi.js.map +1 -1
- package/icc-api/api/IccDeviceApi.d.ts +3 -1
- package/icc-api/api/IccDeviceApi.js +21 -19
- package/icc-api/api/IccDeviceApi.js.map +1 -1
- package/icc-api/api/IccDoctemplateApi.d.ts +3 -1
- package/icc-api/api/IccDoctemplateApi.js +16 -14
- package/icc-api/api/IccDoctemplateApi.js.map +1 -1
- package/icc-api/api/IccDocumentApi.d.ts +3 -1
- package/icc-api/api/IccDocumentApi.js +23 -21
- package/icc-api/api/IccDocumentApi.js.map +1 -1
- package/icc-api/api/IccDocumentTemplateApi.d.ts +3 -1
- package/icc-api/api/IccDocumentTemplateApi.js +16 -14
- package/icc-api/api/IccDocumentTemplateApi.js.map +1 -1
- package/icc-api/api/IccEntityrefApi.d.ts +3 -1
- package/icc-api/api/IccEntityrefApi.js +5 -3
- package/icc-api/api/IccEntityrefApi.js.map +1 -1
- package/icc-api/api/IccEntitytemplateApi.d.ts +3 -1
- package/icc-api/api/IccEntitytemplateApi.js +14 -12
- package/icc-api/api/IccEntitytemplateApi.js.map +1 -1
- package/icc-api/api/IccFormApi.d.ts +3 -1
- package/icc-api/api/IccFormApi.js +27 -25
- package/icc-api/api/IccFormApi.js.map +1 -1
- package/icc-api/api/IccFrontendmigrationApi.d.ts +3 -1
- package/icc-api/api/IccFrontendmigrationApi.js +9 -7
- package/icc-api/api/IccFrontendmigrationApi.js.map +1 -1
- package/icc-api/api/IccGroupApi.d.ts +3 -1
- package/icc-api/api/IccGroupApi.js +19 -17
- package/icc-api/api/IccGroupApi.js.map +1 -1
- package/icc-api/api/IccHcpartyApi.d.ts +3 -1
- package/icc-api/api/IccHcpartyApi.js +25 -23
- package/icc-api/api/IccHcpartyApi.js.map +1 -1
- package/icc-api/api/IccHelementApi.d.ts +3 -1
- package/icc-api/api/IccHelementApi.js +16 -14
- package/icc-api/api/IccHelementApi.js.map +1 -1
- package/icc-api/api/IccIcureApi.d.ts +3 -1
- package/icc-api/api/IccIcureApi.js +19 -17
- package/icc-api/api/IccIcureApi.js.map +1 -1
- package/icc-api/api/IccInsuranceApi.d.ts +3 -1
- package/icc-api/api/IccInsuranceApi.js +10 -8
- package/icc-api/api/IccInsuranceApi.js.map +1 -1
- package/icc-api/api/IccInvoiceApi.d.ts +3 -1
- package/icc-api/api/IccInvoiceApi.js +34 -32
- package/icc-api/api/IccInvoiceApi.js.map +1 -1
- package/icc-api/api/IccKeywordApi.d.ts +3 -1
- package/icc-api/api/IccKeywordApi.js +9 -7
- package/icc-api/api/IccKeywordApi.js.map +1 -1
- package/icc-api/api/IccMaintenanceTaskApi.d.ts +3 -1
- package/icc-api/api/IccMaintenanceTaskApi.js +8 -6
- package/icc-api/api/IccMaintenanceTaskApi.js.map +1 -1
- package/icc-api/api/IccMedexApi.d.ts +3 -1
- package/icc-api/api/IccMedexApi.js +4 -2
- package/icc-api/api/IccMedexApi.js.map +1 -1
- package/icc-api/api/IccMedicallocationApi.d.ts +3 -1
- package/icc-api/api/IccMedicallocationApi.js +8 -6
- package/icc-api/api/IccMedicallocationApi.js.map +1 -1
- package/icc-api/api/IccMessageApi.d.ts +3 -1
- package/icc-api/api/IccMessageApi.js +22 -20
- package/icc-api/api/IccMessageApi.js.map +1 -1
- package/icc-api/api/IccPatientApi.d.ts +3 -1
- package/icc-api/api/IccPatientApi.js +37 -35
- package/icc-api/api/IccPatientApi.js.map +1 -1
- package/icc-api/api/IccPermissionApi.d.ts +3 -1
- package/icc-api/api/IccPermissionApi.js +4 -2
- package/icc-api/api/IccPermissionApi.js.map +1 -1
- package/icc-api/api/IccPlaceApi.d.ts +3 -1
- package/icc-api/api/IccPlaceApi.js +8 -6
- package/icc-api/api/IccPlaceApi.js.map +1 -1
- package/icc-api/api/IccPubsubApi.d.ts +3 -1
- package/icc-api/api/IccPubsubApi.js +7 -5
- package/icc-api/api/IccPubsubApi.js.map +1 -1
- package/icc-api/api/IccReceiptApi.d.ts +3 -1
- package/icc-api/api/IccReceiptApi.js +10 -8
- package/icc-api/api/IccReceiptApi.js.map +1 -1
- package/icc-api/api/IccReplicationApi.d.ts +3 -1
- package/icc-api/api/IccReplicationApi.js +7 -5
- package/icc-api/api/IccReplicationApi.js.map +1 -1
- package/icc-api/api/IccTarificationApi.d.ts +3 -1
- package/icc-api/api/IccTarificationApi.js +11 -9
- package/icc-api/api/IccTarificationApi.js.map +1 -1
- package/icc-api/api/IccTimeTableApi.d.ts +3 -1
- package/icc-api/api/IccTimeTableApi.js +9 -7
- package/icc-api/api/IccTimeTableApi.js.map +1 -1
- package/icc-api/api/IccTmpApi.d.ts +3 -1
- package/icc-api/api/IccTmpApi.js +74 -72
- package/icc-api/api/IccTmpApi.js.map +1 -1
- package/icc-api/api/IccUserApi.d.ts +3 -1
- package/icc-api/api/IccUserApi.js +29 -27
- package/icc-api/api/IccUserApi.js.map +1 -1
- package/icc-api/api/XHR.d.ts +2 -1
- package/icc-api/api/XHR.js +45 -59
- package/icc-api/api/XHR.js.map +1 -1
- package/icc-api/model/AuthenticationResponse.d.ts +2 -0
- package/icc-api/model/AuthenticationResponse.js.map +1 -1
- package/icc-api/model/Group.d.ts +6 -0
- package/icc-api/model/Group.js.map +1 -1
- package/icc-api/model/RefreshTokenExpiredError.d.ts +3 -0
- package/icc-api/model/RefreshTokenExpiredError.js +10 -0
- package/icc-api/model/RefreshTokenExpiredError.js.map +1 -0
- package/icc-api/model/RegistrationInformation.d.ts +1 -0
- package/icc-api/model/RegistrationInformation.js.map +1 -1
- package/icc-api/model/TimeTableItem.d.ts +2 -1
- package/icc-api/model/TimeTableItem.js.map +1 -1
- package/icc-x-api/auth/AuthService.d.ts +16 -0
- package/icc-x-api/auth/AuthService.js +3 -0
- package/icc-x-api/auth/AuthService.js.map +1 -0
- package/icc-x-api/auth/AuthenticationProvider.d.ts +30 -0
- package/icc-x-api/auth/AuthenticationProvider.js +56 -0
- package/icc-x-api/auth/AuthenticationProvider.js.map +1 -0
- package/icc-x-api/auth/BasicAuthService.d.ts +12 -0
- package/icc-x-api/auth/BasicAuthService.js +27 -0
- package/icc-x-api/auth/BasicAuthService.js.map +1 -0
- package/icc-x-api/auth/EnsembleAuthService.d.ts +17 -0
- package/icc-x-api/auth/EnsembleAuthService.js +60 -0
- package/icc-x-api/auth/EnsembleAuthService.js.map +1 -0
- package/icc-x-api/auth/JwtAuthService.d.ts +19 -0
- package/icc-x-api/auth/JwtAuthService.js +97 -0
- package/icc-x-api/auth/JwtAuthService.js.map +1 -0
- package/icc-x-api/auth/NoAuthService.d.ts +8 -0
- package/icc-x-api/auth/NoAuthService.js +30 -0
- package/icc-x-api/auth/NoAuthService.js.map +1 -0
- package/icc-x-api/filters/MaintenanceTaskAfterDateFilter.d.ts +1 -0
- package/icc-x-api/filters/MaintenanceTaskAfterDateFilter.js.map +1 -1
- package/icc-x-api/icc-accesslog-x-api.d.ts +2 -1
- package/icc-x-api/icc-accesslog-x-api.js +3 -2
- package/icc-x-api/icc-accesslog-x-api.js.map +1 -1
- package/icc-x-api/icc-bekmehr-x-api.d.ts +2 -1
- package/icc-x-api/icc-bekmehr-x-api.js +3 -2
- package/icc-x-api/icc-bekmehr-x-api.js.map +1 -1
- package/icc-x-api/icc-calendar-item-x-api.d.ts +2 -1
- package/icc-x-api/icc-calendar-item-x-api.js +3 -2
- package/icc-x-api/icc-calendar-item-x-api.js.map +1 -1
- package/icc-x-api/icc-classification-x-api.d.ts +2 -1
- package/icc-x-api/icc-classification-x-api.js +3 -2
- package/icc-x-api/icc-classification-x-api.js.map +1 -1
- package/icc-x-api/icc-code-x-api.d.ts +2 -1
- package/icc-x-api/icc-code-x-api.js +3 -2
- package/icc-x-api/icc-code-x-api.js.map +1 -1
- package/icc-x-api/icc-contact-x-api.d.ts +2 -1
- package/icc-x-api/icc-contact-x-api.js +3 -2
- package/icc-x-api/icc-contact-x-api.js.map +1 -1
- package/icc-x-api/icc-crypto-x-api.d.ts +13 -0
- package/icc-x-api/icc-crypto-x-api.js +22 -0
- package/icc-x-api/icc-crypto-x-api.js.map +1 -1
- package/icc-x-api/icc-doctemplate-x-api.d.ts +3 -1
- package/icc-x-api/icc-doctemplate-x-api.js +5 -3
- package/icc-x-api/icc-doctemplate-x-api.js.map +1 -1
- package/icc-x-api/icc-document-x-api.d.ts +3 -1
- package/icc-x-api/icc-document-x-api.js +5 -3
- package/icc-x-api/icc-document-x-api.js.map +1 -1
- package/icc-x-api/icc-form-x-api.d.ts +2 -1
- package/icc-x-api/icc-form-x-api.js +3 -2
- package/icc-x-api/icc-form-x-api.js.map +1 -1
- package/icc-x-api/icc-hcparty-x-api.d.ts +2 -1
- package/icc-x-api/icc-hcparty-x-api.js +3 -2
- package/icc-x-api/icc-hcparty-x-api.js.map +1 -1
- package/icc-x-api/icc-helement-x-api.d.ts +2 -1
- package/icc-x-api/icc-helement-x-api.js +3 -2
- package/icc-x-api/icc-helement-x-api.js.map +1 -1
- package/icc-x-api/icc-invoice-x-api.d.ts +2 -1
- package/icc-x-api/icc-invoice-x-api.js +3 -2
- package/icc-x-api/icc-invoice-x-api.js.map +1 -1
- package/icc-x-api/icc-maintenance-task-x-api.d.ts +2 -1
- package/icc-x-api/icc-maintenance-task-x-api.js +3 -2
- package/icc-x-api/icc-maintenance-task-x-api.js.map +1 -1
- package/icc-x-api/icc-message-x-api.d.ts +2 -1
- package/icc-x-api/icc-message-x-api.js +3 -2
- package/icc-x-api/icc-message-x-api.js.map +1 -1
- package/icc-x-api/icc-patient-x-api.d.ts +2 -1
- package/icc-x-api/icc-patient-x-api.js +3 -2
- package/icc-x-api/icc-patient-x-api.js.map +1 -1
- package/icc-x-api/icc-receipt-x-api.d.ts +2 -1
- package/icc-x-api/icc-receipt-x-api.js +3 -2
- package/icc-x-api/icc-receipt-x-api.js.map +1 -1
- package/icc-x-api/icc-time-table-x-api.d.ts +2 -1
- package/icc-x-api/icc-time-table-x-api.js +3 -2
- package/icc-x-api/icc-time-table-x-api.js.map +1 -1
- package/icc-x-api/icc-user-x-api.d.ts +2 -1
- package/icc-x-api/icc-user-x-api.js +3 -2
- package/icc-x-api/icc-user-x-api.js.map +1 -1
- package/icc-x-api/index.d.ts +0 -4
- package/icc-x-api/index.js +34 -35
- package/icc-x-api/index.js.map +1 -1
- package/icc-x-api/storage/StorageFacade.d.ts +1 -1
- package/icc-x-api/storage/StorageFacade.js.map +1 -1
- package/package.json +1 -1
|
@@ -20,10 +20,12 @@ const IdWithRev_1 = require("../model/IdWithRev");
|
|
|
20
20
|
const PaginatedListPatient_1 = require("../model/PaginatedListPatient");
|
|
21
21
|
const PaginatedListString_1 = require("../model/PaginatedListString");
|
|
22
22
|
const Patient_1 = require("../model/Patient");
|
|
23
|
+
const AuthenticationProvider_1 = require("../../icc-x-api/auth/AuthenticationProvider");
|
|
23
24
|
class IccPatientApi {
|
|
24
|
-
constructor(host, headers, fetchImpl) {
|
|
25
|
+
constructor(host, headers, authenticationProvider, fetchImpl) {
|
|
25
26
|
this.host = host;
|
|
26
27
|
this.headers = Object.keys(headers).map((k) => new XHR_1.XHR.Header(k, headers[k]));
|
|
28
|
+
this.authenticationProvider = !!authenticationProvider ? authenticationProvider : new AuthenticationProvider_1.NoAuthenticationProvider();
|
|
27
29
|
this.fetchImpl = fetchImpl;
|
|
28
30
|
}
|
|
29
31
|
setHeaders(h) {
|
|
@@ -43,7 +45,7 @@ class IccPatientApi {
|
|
|
43
45
|
const _url = this.host + `/patient/batch` + '?ts=' + new Date().getTime();
|
|
44
46
|
let headers = this.headers;
|
|
45
47
|
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
46
|
-
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
|
|
48
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
47
49
|
.then((doc) => doc.body.map((it) => new IdWithRev_1.IdWithRev(it)))
|
|
48
50
|
.catch((err) => this.handleError(err));
|
|
49
51
|
}
|
|
@@ -58,7 +60,7 @@ class IccPatientApi {
|
|
|
58
60
|
const _url = this.host + `/patient/bulk` + '?ts=' + new Date().getTime();
|
|
59
61
|
let headers = this.headers;
|
|
60
62
|
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
61
|
-
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
|
|
63
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
62
64
|
.then((doc) => doc.body.map((it) => new IdWithRev_1.IdWithRev(it)))
|
|
63
65
|
.catch((err) => this.handleError(err));
|
|
64
66
|
}
|
|
@@ -73,7 +75,7 @@ class IccPatientApi {
|
|
|
73
75
|
const _url = this.host + `/patient/batch` + '?ts=' + new Date().getTime();
|
|
74
76
|
let headers = this.headers;
|
|
75
77
|
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
76
|
-
return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
|
|
78
|
+
return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
77
79
|
.then((doc) => doc.body.map((it) => new IdWithRev_1.IdWithRev(it)))
|
|
78
80
|
.catch((err) => this.handleError(err));
|
|
79
81
|
}
|
|
@@ -88,7 +90,7 @@ class IccPatientApi {
|
|
|
88
90
|
const _url = this.host + `/patient/bulk` + '?ts=' + new Date().getTime();
|
|
89
91
|
let headers = this.headers;
|
|
90
92
|
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
91
|
-
return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
|
|
93
|
+
return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
92
94
|
.then((doc) => doc.body.map((it) => new IdWithRev_1.IdWithRev(it)))
|
|
93
95
|
.catch((err) => this.handleError(err));
|
|
94
96
|
}
|
|
@@ -101,7 +103,7 @@ class IccPatientApi {
|
|
|
101
103
|
let _body = null;
|
|
102
104
|
const _url = this.host + `/patient/hcParty/${encodeURIComponent(String(hcPartyId))}/count` + '?ts=' + new Date().getTime();
|
|
103
105
|
let headers = this.headers;
|
|
104
|
-
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
|
|
106
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
105
107
|
.then((doc) => new Content_1.Content(doc.body))
|
|
106
108
|
.catch((err) => this.handleError(err));
|
|
107
109
|
}
|
|
@@ -116,7 +118,7 @@ class IccPatientApi {
|
|
|
116
118
|
const _url = this.host + `/patient` + '?ts=' + new Date().getTime();
|
|
117
119
|
let headers = this.headers;
|
|
118
120
|
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
119
|
-
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
|
|
121
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
120
122
|
.then((doc) => new Patient_1.Patient(doc.body))
|
|
121
123
|
.catch((err) => this.handleError(err));
|
|
122
124
|
}
|
|
@@ -129,7 +131,7 @@ class IccPatientApi {
|
|
|
129
131
|
let _body = null;
|
|
130
132
|
const _url = this.host + `/patient/${encodeURIComponent(String(patientIds))}` + '?ts=' + new Date().getTime();
|
|
131
133
|
let headers = this.headers;
|
|
132
|
-
return XHR_1.XHR.sendCommand('DELETE', _url, headers, _body, this.fetchImpl)
|
|
134
|
+
return XHR_1.XHR.sendCommand('DELETE', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
133
135
|
.then((doc) => doc.body.map((it) => new DocIdentifier_1.DocIdentifier(it)))
|
|
134
136
|
.catch((err) => this.handleError(err));
|
|
135
137
|
}
|
|
@@ -159,7 +161,7 @@ class IccPatientApi {
|
|
|
159
161
|
(desc ? '&desc=' + encodeURIComponent(String(desc)) : '');
|
|
160
162
|
let headers = this.headers;
|
|
161
163
|
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
162
|
-
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
|
|
164
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
163
165
|
.then((doc) => new PaginatedListPatient_1.PaginatedListPatient(doc.body))
|
|
164
166
|
.catch((err) => this.handleError(err));
|
|
165
167
|
}
|
|
@@ -185,7 +187,7 @@ class IccPatientApi {
|
|
|
185
187
|
(startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
|
|
186
188
|
(limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
|
|
187
189
|
let headers = this.headers;
|
|
188
|
-
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
|
|
190
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
189
191
|
.then((doc) => new PaginatedListPatient_1.PaginatedListPatient(doc.body))
|
|
190
192
|
.catch((err) => this.handleError(err));
|
|
191
193
|
}
|
|
@@ -198,7 +200,7 @@ class IccPatientApi {
|
|
|
198
200
|
let _body = null;
|
|
199
201
|
const _url = this.host + `/patient/byExternalId/${encodeURIComponent(String(externalId))}` + '?ts=' + new Date().getTime();
|
|
200
202
|
let headers = this.headers;
|
|
201
|
-
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
|
|
203
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
202
204
|
.then((doc) => new Patient_1.Patient(doc.body))
|
|
203
205
|
.catch((err) => this.handleError(err));
|
|
204
206
|
}
|
|
@@ -225,7 +227,7 @@ class IccPatientApi {
|
|
|
225
227
|
(limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +
|
|
226
228
|
(sortDirection ? '&sortDirection=' + encodeURIComponent(String(sortDirection)) : '');
|
|
227
229
|
let headers = this.headers;
|
|
228
|
-
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
|
|
230
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
229
231
|
.then((doc) => new PaginatedListPatient_1.PaginatedListPatient(doc.body))
|
|
230
232
|
.catch((err) => this.handleError(err));
|
|
231
233
|
}
|
|
@@ -248,7 +250,7 @@ class IccPatientApi {
|
|
|
248
250
|
(startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
|
|
249
251
|
(limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
|
|
250
252
|
let headers = this.headers;
|
|
251
|
-
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
|
|
253
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
252
254
|
.then((doc) => new PaginatedListPatient_1.PaginatedListPatient(doc.body))
|
|
253
255
|
.catch((err) => this.handleError(err));
|
|
254
256
|
}
|
|
@@ -271,7 +273,7 @@ class IccPatientApi {
|
|
|
271
273
|
(startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
|
|
272
274
|
(limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
|
|
273
275
|
let headers = this.headers;
|
|
274
|
-
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
|
|
276
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
275
277
|
.then((doc) => new PaginatedListPatient_1.PaginatedListPatient(doc.body))
|
|
276
278
|
.catch((err) => this.handleError(err));
|
|
277
279
|
}
|
|
@@ -292,7 +294,7 @@ class IccPatientApi {
|
|
|
292
294
|
(lastName ? '&lastName=' + encodeURIComponent(String(lastName)) : '') +
|
|
293
295
|
(dateOfBirth ? '&dateOfBirth=' + encodeURIComponent(String(dateOfBirth)) : '');
|
|
294
296
|
let headers = this.headers;
|
|
295
|
-
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
|
|
297
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
296
298
|
.then((doc) => doc.body.map((it) => new Patient_1.Patient(it)))
|
|
297
299
|
.catch((err) => this.handleError(err));
|
|
298
300
|
}
|
|
@@ -305,7 +307,7 @@ class IccPatientApi {
|
|
|
305
307
|
let _body = null;
|
|
306
308
|
const _url = this.host + `/patient/${encodeURIComponent(String(patientId))}` + '?ts=' + new Date().getTime();
|
|
307
309
|
let headers = this.headers;
|
|
308
|
-
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
|
|
310
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
309
311
|
.then((doc) => new Patient_1.Patient(doc.body))
|
|
310
312
|
.catch((err) => this.handleError(err));
|
|
311
313
|
}
|
|
@@ -318,7 +320,7 @@ class IccPatientApi {
|
|
|
318
320
|
let _body = null;
|
|
319
321
|
const _url = this.host + `/patient/${encodeURIComponent(String(patientId))}/aesExchangeKeys` + '?ts=' + new Date().getTime();
|
|
320
322
|
let headers = this.headers;
|
|
321
|
-
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
|
|
323
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
322
324
|
.then((doc) => JSON.parse(JSON.stringify(doc.body)))
|
|
323
325
|
.catch((err) => this.handleError(err));
|
|
324
326
|
}
|
|
@@ -337,7 +339,7 @@ class IccPatientApi {
|
|
|
337
339
|
new Date().getTime() +
|
|
338
340
|
(system ? '&system=' + encodeURIComponent(String(system)) : '');
|
|
339
341
|
let headers = this.headers;
|
|
340
|
-
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
|
|
342
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
341
343
|
.then((doc) => new Patient_1.Patient(doc.body))
|
|
342
344
|
.catch((err) => this.handleError(err));
|
|
343
345
|
}
|
|
@@ -350,7 +352,7 @@ class IccPatientApi {
|
|
|
350
352
|
let _body = null;
|
|
351
353
|
const _url = this.host + `/patient/${encodeURIComponent(String(patientId))}/keys` + '?ts=' + new Date().getTime();
|
|
352
354
|
let headers = this.headers;
|
|
353
|
-
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
|
|
355
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
354
356
|
.then((doc) => JSON.parse(JSON.stringify(doc.body)))
|
|
355
357
|
.catch((err) => this.handleError(err));
|
|
356
358
|
}
|
|
@@ -365,7 +367,7 @@ class IccPatientApi {
|
|
|
365
367
|
const _url = this.host + `/patient/byIds` + '?ts=' + new Date().getTime();
|
|
366
368
|
let headers = this.headers;
|
|
367
369
|
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
368
|
-
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
|
|
370
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
369
371
|
.then((doc) => doc.body.map((it) => new Patient_1.Patient(it)))
|
|
370
372
|
.catch((err) => this.handleError(err));
|
|
371
373
|
}
|
|
@@ -390,7 +392,7 @@ class IccPatientApi {
|
|
|
390
392
|
(startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
|
|
391
393
|
(limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
|
|
392
394
|
let headers = this.headers;
|
|
393
|
-
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
|
|
395
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
394
396
|
.then((doc) => new PaginatedListPatient_1.PaginatedListPatient(doc.body))
|
|
395
397
|
.catch((err) => this.handleError(err));
|
|
396
398
|
}
|
|
@@ -409,7 +411,7 @@ class IccPatientApi {
|
|
|
409
411
|
(firstName ? '&firstName=' + encodeURIComponent(String(firstName)) : '') +
|
|
410
412
|
(lastName ? '&lastName=' + encodeURIComponent(String(lastName)) : '');
|
|
411
413
|
let headers = this.headers;
|
|
412
|
-
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
|
|
414
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
413
415
|
.then((doc) => doc.body.map((it) => new Patient_1.Patient(it)))
|
|
414
416
|
.catch((err) => this.handleError(err));
|
|
415
417
|
}
|
|
@@ -422,7 +424,7 @@ class IccPatientApi {
|
|
|
422
424
|
let _body = null;
|
|
423
425
|
const _url = this.host + `/patient/merges/${encodeURIComponent(String(date))}` + '?ts=' + new Date().getTime();
|
|
424
426
|
let headers = this.headers;
|
|
425
|
-
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
|
|
427
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
426
428
|
.then((doc) => doc.body.map((it) => new Patient_1.Patient(it)))
|
|
427
429
|
.catch((err) => this.handleError(err));
|
|
428
430
|
}
|
|
@@ -444,7 +446,7 @@ class IccPatientApi {
|
|
|
444
446
|
(startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
|
|
445
447
|
(limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
|
|
446
448
|
let headers = this.headers;
|
|
447
|
-
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
|
|
449
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
448
450
|
.then((doc) => new PaginatedListPatient_1.PaginatedListPatient(doc.body))
|
|
449
451
|
.catch((err) => this.handleError(err));
|
|
450
452
|
}
|
|
@@ -471,7 +473,7 @@ class IccPatientApi {
|
|
|
471
473
|
(limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +
|
|
472
474
|
(sortDirection ? '&sortDirection=' + encodeURIComponent(String(sortDirection)) : '');
|
|
473
475
|
let headers = this.headers;
|
|
474
|
-
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
|
|
476
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
475
477
|
.then((doc) => new PaginatedListPatient_1.PaginatedListPatient(doc.body))
|
|
476
478
|
.catch((err) => this.handleError(err));
|
|
477
479
|
}
|
|
@@ -497,7 +499,7 @@ class IccPatientApi {
|
|
|
497
499
|
(limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +
|
|
498
500
|
(sortDirection ? '&sortDirection=' + encodeURIComponent(String(sortDirection)) : '');
|
|
499
501
|
let headers = this.headers;
|
|
500
|
-
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
|
|
502
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
501
503
|
.then((doc) => new PaginatedListPatient_1.PaginatedListPatient(doc.body))
|
|
502
504
|
.catch((err) => this.handleError(err));
|
|
503
505
|
}
|
|
@@ -520,7 +522,7 @@ class IccPatientApi {
|
|
|
520
522
|
(startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
|
|
521
523
|
(limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
|
|
522
524
|
let headers = this.headers;
|
|
523
|
-
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
|
|
525
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
524
526
|
.then((doc) => new PaginatedListString_1.PaginatedListString(doc.body))
|
|
525
527
|
.catch((err) => this.handleError(err));
|
|
526
528
|
}
|
|
@@ -546,7 +548,7 @@ class IccPatientApi {
|
|
|
546
548
|
(limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +
|
|
547
549
|
(sortDirection ? '&sortDirection=' + encodeURIComponent(String(sortDirection)) : '');
|
|
548
550
|
let headers = this.headers;
|
|
549
|
-
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
|
|
551
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
550
552
|
.then((doc) => new PaginatedListPatient_1.PaginatedListPatient(doc.body))
|
|
551
553
|
.catch((err) => this.handleError(err));
|
|
552
554
|
}
|
|
@@ -561,7 +563,7 @@ class IccPatientApi {
|
|
|
561
563
|
const _url = this.host + `/patient/match` + '?ts=' + new Date().getTime();
|
|
562
564
|
let headers = this.headers;
|
|
563
565
|
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
564
|
-
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
|
|
566
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
565
567
|
.then((doc) => doc.body.map((it) => JSON.parse(JSON.stringify(it))))
|
|
566
568
|
.catch((err) => this.handleError(err));
|
|
567
569
|
}
|
|
@@ -575,7 +577,7 @@ class IccPatientApi {
|
|
|
575
577
|
let _body = null;
|
|
576
578
|
const _url = this.host + `/patient/mergeInto/${encodeURIComponent(String(toId))}/from/${encodeURIComponent(String(fromIds))}` + '?ts=' + new Date().getTime();
|
|
577
579
|
let headers = this.headers;
|
|
578
|
-
return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
|
|
580
|
+
return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
579
581
|
.then((doc) => new Patient_1.Patient(doc.body))
|
|
580
582
|
.catch((err) => this.handleError(err));
|
|
581
583
|
}
|
|
@@ -590,7 +592,7 @@ class IccPatientApi {
|
|
|
590
592
|
const _url = this.host + `/patient` + '?ts=' + new Date().getTime();
|
|
591
593
|
let headers = this.headers;
|
|
592
594
|
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
593
|
-
return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
|
|
595
|
+
return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
594
596
|
.then((doc) => new Patient_1.Patient(doc.body))
|
|
595
597
|
.catch((err) => this.handleError(err));
|
|
596
598
|
}
|
|
@@ -611,7 +613,7 @@ class IccPatientApi {
|
|
|
611
613
|
(start ? '&start=' + encodeURIComponent(String(start)) : '') +
|
|
612
614
|
(end ? '&end=' + encodeURIComponent(String(end)) : '');
|
|
613
615
|
let headers = this.headers;
|
|
614
|
-
return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
|
|
616
|
+
return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
615
617
|
.then((doc) => new Patient_1.Patient(doc.body))
|
|
616
618
|
.catch((err) => this.handleError(err));
|
|
617
619
|
}
|
|
@@ -627,7 +629,7 @@ class IccPatientApi {
|
|
|
627
629
|
const _url = this.host + `/patient/${encodeURIComponent(String(patientId))}/delegate` + '?ts=' + new Date().getTime();
|
|
628
630
|
let headers = this.headers;
|
|
629
631
|
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
630
|
-
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
|
|
632
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
631
633
|
.then((doc) => new Patient_1.Patient(doc.body))
|
|
632
634
|
.catch((err) => this.handleError(err));
|
|
633
635
|
}
|
|
@@ -651,7 +653,7 @@ class IccPatientApi {
|
|
|
651
653
|
(useShortToken ? '&useShortToken=' + encodeURIComponent(String(useShortToken)) : '');
|
|
652
654
|
let headers = this.headers;
|
|
653
655
|
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
654
|
-
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
|
|
656
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
655
657
|
.then((doc) => new DataOwnerRegistrationSuccess_1.DataOwnerRegistrationSuccess(doc.body))
|
|
656
658
|
.catch((err) => this.handleError(err));
|
|
657
659
|
}
|
|
@@ -664,7 +666,7 @@ class IccPatientApi {
|
|
|
664
666
|
let _body = null;
|
|
665
667
|
const _url = this.host + `/patient/undelete/${encodeURIComponent(String(patientIds))}` + '?ts=' + new Date().getTime();
|
|
666
668
|
let headers = this.headers;
|
|
667
|
-
return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
|
|
669
|
+
return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
668
670
|
.then((doc) => doc.body.map((it) => new DocIdentifier_1.DocIdentifier(it)))
|
|
669
671
|
.catch((err) => this.handleError(err));
|
|
670
672
|
}
|