Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
6d987a7
genloc against backendb
antoinepairet Sep 17, 2019
403d943
Merge remote-tracking branch 'upstream/master'
antoinepairet Sep 17, 2019
79f6830
restore contentTypeOverride
antoinepairet Sep 17, 2019
4137fb0
fix case sensitive filenames
antoinepairet Sep 17, 2019
6e43c6e
iccMedicalLocationApi
antoinepairet Sep 17, 2019
9aba1ea
Format files using pretty-quick
bsafta Sep 18, 2019
bd3e84c
Merge pull request #149 from medispring/MS-1633
antoinepairet Sep 18, 2019
db4208d
Merge pull request #150 from taktik/master
antoinepairet Sep 18, 2019
4113332
MS-1256 add possibility to create diary note
whyoleg Oct 14, 2019
f06d75a
fix
whyoleg Oct 22, 2019
79f5510
genloc
antoinepairet Oct 22, 2019
8308de5
Merge branch 'master' of https://github.com/antoinepairet/icc-api
antoinepairet Oct 22, 2019
7dd2ef9
Merge branch 'master' into MS-1256-diary-note
antoinepairet Oct 22, 2019
d089a6c
Merge pull request #151 from medispring/MS-1256-diary-note
antoinepairet Oct 22, 2019
00b9680
MS-1367 add buttons to download medispring xml and to send last uploa…
whyoleg Oct 22, 2019
d49469e
Merge pull request #152 from medispring/MS-1367-fix-route
antoinepairet Oct 22, 2019
383b973
merge upstream
antoinepairet Oct 30, 2019
7d079f3
export accesslog extended api
antoinepairet Oct 30, 2019
aa1e877
formatting
antoinepairet Oct 30, 2019
3a19542
getPatientIdOfChildDocumentForHcpAndHcpParents add accesslog
antoinepairet Oct 30, 2019
e345f6d
npm run gen
antoinepairet Oct 30, 2019
3f9fc0e
Update XHR.ts
antoinepairet Oct 30, 2019
ba09d43
MS-1825 Add rest method to retrieve patients duplicates by name and ssin
bsafta Oct 7, 2019
f043600
Update icc-accesslog-x-api.ts
antoinepairet Nov 1, 2019
1687ba6
MS-1890 Add search for duplicates rest methods
bsafta Nov 1, 2019
f3a1074
Merge pull request #154 from medispring/MS-1825
antoinepairet Nov 2, 2019
27bb898
genloc
antoinepairet Nov 28, 2019
371575e
Merge remote-tracking branch 'upstream/master'
antoinepairet Nov 28, 2019
5be9cbd
MS-2380 Detailed error messages do not appear in some cases for eAttests
TheSleepyMonkey Nov 30, 2019
6b51c9f
Merge pull request #155 from medispring/missing-location-service
antoinepairet Dec 1, 2019
9307c9e
MS-2246: bugfix , error handling
adrian-meyvn Dec 5, 2019
d52a348
MS-2475 AccessLogs trigger thousands of calls to retrieve patients th…
TheSleepyMonkey Dec 12, 2019
2da6dcd
Merge pull request #156 from medispring/MS-2475
antoinepairet Dec 13, 2019
7ae864d
MS-2475 AccessLogs trigger thousands of calls to retrieve patients th…
TheSleepyMonkey Dec 13, 2019
27f6356
Merge pull request #157 from medispring/MS-2475
antoinepairet Dec 13, 2019
b01aaaa
MS-2047 Patch treatment frequencies after decryption
bsafta Dec 13, 2019
80cfeae
Merge pull request #158 from medispring/MS-2047
antoinepairet Dec 16, 2019
43c8873
Merge branch 'refs/heads/master' into MS-2246
adrian-meyvn Dec 23, 2019
07e014b
Merge pull request #159 from medispring/MS-2246
antoinepairet Dec 24, 2019
3f3baac
merge upstream
antoinepairet Dec 24, 2019
e365b25
restore closed source models and methods
antoinepairet Dec 24, 2019
4a845f0
Update AccessLogDto.ts
antoinepairet Dec 24, 2019
5e98b56
Merge pull request #161 from medispring/upstream-2019-12-23
antoinepairet Dec 24, 2019
e93f642
fix accessLog with patientId
antoinepairet Dec 24, 2019
dcdd901
Adapt accesslog retrieval logic to avoid looping in tests
antoinepairet Jan 7, 2020
921254e
Merge remote-tracking branch 'upstream/master'
antoinepairet Jan 15, 2020
d3d726a
MS-2723 added exception handling for calendar item
adrian-meyvn Jan 16, 2020
aea9f0b
Merge branch 'MS-2723'
adrian-meyvn Jan 16, 2020
cfdb2eb
Merge pull request #164 from medispring/MS-2723
antoinepairet Jan 16, 2020
59eb76b
MS-2723 - exception is rethrown
adrian-meyvn Jan 17, 2020
91aa58c
MS-2204 Regenerate SumehrExportInfoDto to contain healthElements and …
bsafta Jan 28, 2020
c217de1
ms-2697
antoinepairet Jan 28, 2020
4318030
Merge pull request #167 from medispring/ms-2697
antoinepairet Jan 28, 2020
bd9ecf6
Merge pull request #166 from medispring/MS-2204
antoinepairet Jan 28, 2020
cb23f91
Merge pull request #165 from medispring/MS-2723
antoinepairet Jan 28, 2020
c64e972
actually use the fetch implementation
antoinepairet Jan 30, 2020
8d76438
Merge pull request #168 from taktik/master
antoinepairet Jan 30, 2020
b9a8c20
Merge branch 'master' of https://github.com/medispring/icc-api
adrian-meyvn Feb 4, 2020
84a2356
Add contact patcher for pmf socketEventListener
azagan-meyvn Feb 5, 2020
e8ba1de
optimize Uint8Array <-> UTF-8 conversion for modern platforms
Feb 5, 2020
d35ca0e
clean out unused crypto property
Feb 5, 2020
d646c79
add method to truncate padding nulls
Feb 5, 2020
85468f3
be a bit safer about potential undefined inputs to ua2utf8
Feb 5, 2020
78d7aa4
optimize JS ua2utf8 by avoiding copies
Feb 5, 2020
c6c4b9e
truncate nulls before utf-8 conversion to avoid copying data
Feb 5, 2020
577629e
fix typo
Feb 6, 2020
6db8b67
Fix issue with the new unfetch
TheSleepyMonkey Feb 6, 2020
4096f7b
Merge pull request #170 from medispring/fix-unfetch-error-no-arraybuffer
antoinepairet Feb 6, 2020
00e3057
MS-2918
TheSleepyMonkey Feb 7, 2020
b0b3836
Merge branch 'master' into MS-2918
TheSleepyMonkey Feb 7, 2020
4b028bd
Merge pull request #169 from medispring/MS-2899_crypto_optimizations
antoinepairet Feb 10, 2020
86338ac
Merge pull request #171 from medispring/MS-2918
antoinepairet Feb 10, 2020
4521eaa
fix incomplete pagination query
Feb 10, 2020
da746c6
Merge branch 'master' of https://github.com/medispring/icc-api
adrian-meyvn Feb 12, 2020
ad967e3
Merge branch 'master' of github.com:medispring/icc-api into MS-2247
azagan-meyvn Feb 25, 2020
b965277
Merge pull request #173 from medispring/MS-2247
azagan-meyvn Mar 3, 2020
ea352fc
MS-2247 Patch health elements on PMF export
bsafta Mar 11, 2020
b3d5953
Support for suspensions in Medications, laterality in healthElements …
aduchate Mar 11, 2020
c135605
Fix calendar item decryption
TheSleepyMonkey Mar 14, 2020
cf0b996
Fix calendar item decryption
TheSleepyMonkey Mar 14, 2020
f349222
Merge branch 'master' of github.com:medispring/icc-api into MS-2247
azagan-meyvn Mar 16, 2020
05ef044
Merge pull request #174 from medispring/MS-2247
azagan-meyvn Mar 16, 2020
a5fddf1
Merge branch 'master' of https://github.com/medispring/icc-api
adrian-meyvn Apr 9, 2020
a5f13bb
MS-3460 - ignore errors caused by CalendarItem export on server side
adrian-meyvn Apr 11, 2020
d94063f
Merge pull request #176 from medispring/MS-3460
adrian-meyvn Apr 11, 2020
01c0eb1
Genloc icc-api from icure backend master branch
phil1618 Apr 16, 2020
c3b6d47
Reset XHR changes
phil1618 Apr 16, 2020
63f027e
Re-instate icc-api/LICENSE
phil1618 Apr 16, 2020
5393231
Fix identation
phil1618 Apr 16, 2020
cb49bbf
restore LICENSE as-is from master branch
Apr 16, 2020
6b26715
Merge pull request #179 from medispring/update_from_master_dbd6878fb
phil1618 Apr 16, 2020
c5f0d68
Add support for eHealth certificate date storing
phil1618 Apr 29, 2020
42389cd
Add encryptedSelf field on TypedValue (model and DTO)
phil1618 Apr 29, 2020
56a92af
Cleaning
phil1618 Apr 29, 2020
1052fb6
Merge pull request #182 from medispring/MS-3244_add_typedvalue_encryp…
phil1618 Apr 29, 2020
57cb2bd
MS-3554 - Fix access journal: no patient name in the access logs
alina-meyvn May 1, 2020
462053a
Merge pull request #184 from medispring/MS-3554
alina-meyvn May 4, 2020
987560f
Cleaning
phil1618 May 7, 2020
729623e
Merge pull request #183 from medispring/MS-2902_store_ehealtcrt_valid…
phil1618 May 7, 2020
db5aa78
Encode icure ids in message api query params
phil1618 May 8, 2020
adc39cd
Merge pull request #185 from medispring/encode_id_in_message_api_query
phil1618 May 18, 2020
1bac76a
MS-3054
AlanMorano-CO May 21, 2020
6466d36
MS-3054 Document type : ITT - Place holder "incapacité" doen't work
TheSleepyMonkey May 27, 2020
5ef70f7
feat/MS-549_Add function to delete magistral
SkiiNox Jul 22, 2020
f37c132
feat/MS-549_Corrected the function return
SkiiNox Jul 22, 2020
2f23f3e
Merge pull request #172 from medispring/MS-2933_access_log_pagination
phil1618 Jul 23, 2020
c5dcff2
Add indexation warmup update update to updateDesignDoc
phil1618 Aug 3, 2020
5542dbb
encrypt EH Certificate
joze-b12 Aug 6, 2020
ab3e515
minor changes to deal with caching
joze-b12 Aug 10, 2020
53cfb49
add a way to not make an update call using base hcp api service
joze-b12 Aug 10, 2020
ef3b39a
leave the date unencrypted, do not publish modified HCP in crypto-api…
joze-b12 Aug 10, 2020
00039cc
cleaning
joze-b12 Aug 10, 2020
bb00d1d
changed the encrypted certificate key to not include the underscore c…
joze-b12 Aug 10, 2020
66dd181
add some useful comments
joze-b12 Aug 10, 2020
aa147af
Rename function in camelCase and suppress redundant parameter
jeanbaptistedeborman Aug 17, 2020
b95aee5
Fix typing and Base64 format
phil1618 Aug 18, 2020
2223c35
Cleaning
phil1618 Aug 18, 2020
0c5031f
Merge pull request #192 from medispring/feat/MS-3839_add_indexation_w…
phil1618 Aug 18, 2020
bdf0b05
Merge pull request #193 from medispring/feat/MS-1899_encryptEHCert
phil1618 Aug 19, 2020
70149a2
Merge pull request #191 from medispring/feat/MS-549_Add-function-to-d…
Hamsdam Aug 25, 2020
dd10b87
Merge branch 'master' into align-with-new-fhc-api
Aug 26, 2020
56e9574
Fix error with adresseDTO Map
SkiiNox Aug 26, 2020
8c033c9
Fix error with sideEnum
SkiiNox Aug 26, 2020
1588e39
Fix error efactApi
SkiiNox Aug 26, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 6 additions & 14 deletions icc-api/api/XHR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,15 @@ export namespace XHR {
url: string,
init: RequestInit,
timeout = 10000,
fetchImpl: (input: RequestInfo, init?: RequestInit) => Promise<Response> = typeof window !==
"undefined"
? window.fetch
: typeof self !== "undefined"
? self.fetch
: fetch
fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>
): Promise<Response> {
return new Promise((resolve, reject) => {
// Set timeout timer
let timer = setTimeout(
() => reject({ message: "Request timed out", status: "Request timed out" }),
timeout
)
fetchImpl(url, init)
;(fetchImpl || window.fetch)(url, init)
.then(response => {
clearTimeout(timer)
resolve(response)
Expand All @@ -68,12 +63,7 @@ export namespace XHR {
url: string,
headers: Array<Header> | null,
data: string | any = "",
fetchImpl: (input: RequestInfo, init?: RequestInit) => Promise<Response> = typeof window !==
"undefined"
? window.fetch
: typeof self !== "undefined"
? self.fetch
: fetch,
fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>,
contentTypeOverride?: "application/json" | "text/plain" | "application/octet-stream"
): Promise<Data> {
const contentType =
Expand Down Expand Up @@ -124,7 +114,9 @@ export namespace XHR {
? response.json()
: ct.startsWith("application/xml") || ct.startsWith("text/")
? response.text()
: response.arrayBuffer()
: response.arrayBuffer
? response.arrayBuffer()
: response.blob().then(blob => new Response(blob).arrayBuffer())
).then(d => new Data(response.status, ct, d))
})
}
Expand Down
14 changes: 14 additions & 0 deletions icc-api/api/iccBekmehrApi.ts → icc-api/api/iccBeKmehrApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export class iccBeKmehrApi {
date?: number,
language?: string,
recipientNihii?: string,
recipientSsin?: string,
recipientFirstName?: string,
recipientLastName?: string,
mimeType?: string,
Expand All @@ -102,6 +103,7 @@ export class iccBeKmehrApi {
(date ? "&date=" + date : "") +
(language ? "&language=" + language : "") +
(recipientNihii ? "&recipientNihii=" + recipientNihii : "") +
(recipientSsin ? "&recipientSsin=" + recipientSsin : "") +
(recipientFirstName ? "&recipientFirstName=" + recipientFirstName : "") +
(recipientLastName ? "&recipientLastName=" + recipientLastName : "") +
(mimeType ? "&mimeType=" + mimeType : "")
Expand Down Expand Up @@ -141,6 +143,7 @@ export class iccBeKmehrApi {
date?: number,
language?: string,
recipientNihii?: string,
recipientSsin?: string,
recipientFirstName?: string,
recipientLastName?: string,
mimeType?: string,
Expand All @@ -159,6 +162,7 @@ export class iccBeKmehrApi {
(date ? "&date=" + date : "") +
(language ? "&language=" + language : "") +
(recipientNihii ? "&recipientNihii=" + recipientNihii : "") +
(recipientSsin ? "&recipientSsin=" + recipientSsin : "") +
(recipientFirstName ? "&recipientFirstName=" + recipientFirstName : "") +
(recipientLastName ? "&recipientLastName=" + recipientLastName : "") +
(mimeType ? "&mimeType=" + mimeType : "")
Expand Down Expand Up @@ -202,6 +206,7 @@ export class iccBeKmehrApi {
date?: number,
language?: string,
recipientNihii?: string,
recipientSsin?: string,
recipientFirstName?: string,
recipientLastName?: string,
mimeType?: string,
Expand All @@ -220,6 +225,7 @@ export class iccBeKmehrApi {
(date ? "&date=" + date : "") +
(language ? "&language=" + language : "") +
(recipientNihii ? "&recipientNihii=" + recipientNihii : "") +
(recipientSsin ? "&recipientSsin=" + recipientSsin : "") +
(recipientFirstName ? "&recipientFirstName=" + recipientFirstName : "") +
(recipientLastName ? "&recipientLastName=" + recipientLastName : "") +
(mimeType ? "&mimeType=" + mimeType : "")
Expand All @@ -237,6 +243,7 @@ export class iccBeKmehrApi {
date?: number,
language?: string,
recipientNihii?: string,
recipientSsin?: string,
recipientFirstName?: string,
recipientLastName?: string,
mimeType?: string,
Expand All @@ -255,6 +262,7 @@ export class iccBeKmehrApi {
(date ? "&date=" + date : "") +
(language ? "&language=" + language : "") +
(recipientNihii ? "&recipientNihii=" + recipientNihii : "") +
(recipientSsin ? "&recipientSsin=" + recipientSsin : "") +
(recipientFirstName ? "&recipientFirstName=" + recipientFirstName : "") +
(recipientLastName ? "&recipientLastName=" + recipientLastName : "") +
(mimeType ? "&mimeType=" + mimeType : "")
Expand All @@ -272,6 +280,7 @@ export class iccBeKmehrApi {
date?: number,
language?: string,
recipientNihii?: string,
recipientSsin?: string,
recipientFirstName?: string,
recipientLastName?: string,
mimeType?: string,
Expand All @@ -290,6 +299,7 @@ export class iccBeKmehrApi {
(date ? "&date=" + date : "") +
(language ? "&language=" + language : "") +
(recipientNihii ? "&recipientNihii=" + recipientNihii : "") +
(recipientSsin ? "&recipientSsin=" + recipientSsin : "") +
(recipientFirstName ? "&recipientFirstName=" + recipientFirstName : "") +
(recipientLastName ? "&recipientLastName=" + recipientLastName : "") +
(mimeType ? "&mimeType=" + mimeType : "")
Expand All @@ -307,6 +317,7 @@ export class iccBeKmehrApi {
date?: number,
language?: string,
recipientNihii?: string,
recipientSsin?: string,
recipientFirstName?: string,
recipientLastName?: string,
mimeType?: string,
Expand All @@ -325,6 +336,7 @@ export class iccBeKmehrApi {
(date ? "&date=" + date : "") +
(language ? "&language=" + language : "") +
(recipientNihii ? "&recipientNihii=" + recipientNihii : "") +
(recipientSsin ? "&recipientSsin=" + recipientSsin : "") +
(recipientFirstName ? "&recipientFirstName=" + recipientFirstName : "") +
(recipientLastName ? "&recipientLastName=" + recipientLastName : "") +
(mimeType ? "&mimeType=" + mimeType : "")
Expand All @@ -342,6 +354,7 @@ export class iccBeKmehrApi {
date?: number,
language?: string,
recipientNihii?: string,
recipientSsin?: string,
recipientFirstName?: string,
recipientLastName?: string,
mimeType?: string,
Expand All @@ -360,6 +373,7 @@ export class iccBeKmehrApi {
(date ? "&date=" + date : "") +
(language ? "&language=" + language : "") +
(recipientNihii ? "&recipientNihii=" + recipientNihii : "") +
(recipientSsin ? "&recipientSsin=" + recipientSsin : "") +
(recipientFirstName ? "&recipientFirstName=" + recipientFirstName : "") +
(recipientLastName ? "&recipientLastName=" + recipientLastName : "") +
(mimeType ? "&mimeType=" + mimeType : "")
Expand Down
64 changes: 0 additions & 64 deletions icc-api/api/iccClusterApi.ts

This file was deleted.

20 changes: 20 additions & 0 deletions icc-api/api/iccEntitytemplateApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,26 @@ export class iccEntitytemplateApi {
.then(doc => new models.EntityTemplateDto(doc.body as JSON))
.catch(err => this.handleError(err))
}

deleteEntityTemplate(entityTemplateIds: string): Promise<any> {
let _body = null

const _url =
this.host +
"/entitytemplate/{entityTemplateIds}".replace(
"{entityTemplateIds}",
entityTemplateIds + ""
) +
"?ts=" +
new Date().getTime()
let headers = this.headers
headers = headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("DELETE", _url, headers, _body, this.fetchImpl)
.catch(err => this.handleError(err))
}

findAllEntityTemplates(
type: string,
searchString?: string,
Expand Down
76 changes: 0 additions & 76 deletions icc-api/api/iccGroupApi.ts

This file was deleted.

5 changes: 3 additions & 2 deletions icc-api/api/iccIcureApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,15 @@ export class iccIcureApi {
.then(doc => true)
.catch(err => this.handleError(err))
}
updateDesignDoc(entityName: string): Promise<boolean | any> {
updateDesignDoc(entityName: string, warmup = false): Promise<boolean | any> {
let _body = null

const _url =
this.host +
"/icure/dd/{entityName}".replace("{entityName}", entityName + "") +
"?ts=" +
new Date().getTime()
new Date().getTime() +
(!!warmup ? "&warmup=" + "true" : "false")
let headers = this.headers
headers = headers
.filter(h => h.header !== "Content-Type")
Expand Down
16 changes: 8 additions & 8 deletions icc-api/api/iccMessageApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ export class iccMessageApi {
new Date().getTime() +
(fromAddress ? "&fromAddress=" + fromAddress : "") +
(startKey ? "&startKey=" + startKey : "") +
(startDocumentId ? "&startDocumentId=" + startDocumentId : "") +
(startDocumentId ? "&startDocumentId=" + encodeURIComponent(startDocumentId) : "") +
(limit ? "&limit=" + limit : "") +
(hcpId ? "&hcpId=" + hcpId : "")
(hcpId ? "&hcpId=" + encodeURIComponent(hcpId) : "")
let headers = this.headers
headers = headers
.filter(h => h.header !== "Content-Type")
Expand All @@ -193,10 +193,10 @@ export class iccMessageApi {
new Date().getTime() +
(toAddress ? "&toAddress=" + toAddress : "") +
(startKey ? "&startKey=" + startKey : "") +
(startDocumentId ? "&startDocumentId=" + startDocumentId : "") +
(startDocumentId ? "&startDocumentId=" + encodeURIComponent(startDocumentId) : "") +
(limit ? "&limit=" + limit : "") +
(reverse ? "&reverse=" + reverse : "") +
(hcpId ? "&hcpId=" + hcpId : "")
(hcpId ? "&hcpId=" + encodeURIComponent(hcpId) : "")
let headers = this.headers
headers = headers
.filter(h => h.header !== "Content-Type")
Expand All @@ -223,9 +223,9 @@ export class iccMessageApi {
(transportGuid ? "&transportGuid=" + transportGuid : "") +
(received ? "&received=" + received : "") +
(startKey ? "&startKey=" + startKey : "") +
(startDocumentId ? "&startDocumentId=" + startDocumentId : "") +
(startDocumentId ? "&startDocumentId=" + encodeURIComponent(startDocumentId) : "") +
(limit ? "&limit=" + limit : "") +
(hcpId ? "&hcpId=" + hcpId : "")
(hcpId ? "&hcpId=" + encodeURIComponent(hcpId) : "")
let headers = this.headers
headers = headers
.filter(h => h.header !== "Content-Type")
Expand Down Expand Up @@ -254,9 +254,9 @@ export class iccMessageApi {
(from ? "&from=" + from : "") +
(to ? "&to=" + to : "") +
(startKey ? "&startKey=" + startKey : "") +
(startDocumentId ? "&startDocumentId=" + startDocumentId : "") +
(startDocumentId ? "&startDocumentId=" + encodeURIComponent(startDocumentId) : "") +
(limit ? "&limit=" + limit : "") +
(hcpId ? "&hcpId=" + hcpId : "")
(hcpId ? "&hcpId=" + encodeURIComponent(hcpId) : "")
let headers = this.headers
headers = headers
.filter(h => h.header !== "Content-Type")
Expand Down
Loading