Comparing version 1.0.6 to 1.0.7
@@ -46,5 +46,5 @@ /** | ||
getHcpByNihiiUsingGET( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
nihii: string, | ||
@@ -60,5 +60,2 @@ language?: string | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(language ? "&language=" + language : "") | ||
@@ -69,2 +66,5 @@ let headers = this.headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -75,5 +75,5 @@ .then(doc => new models.HealthcareParty(doc.body as JSON)) | ||
getHcpBySsinUsingGET( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
ssin: string, | ||
@@ -89,5 +89,2 @@ language?: string | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(language ? "&language=" + language : "") | ||
@@ -98,2 +95,5 @@ let headers = this.headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -104,5 +104,5 @@ .then(doc => new models.HealthcareParty(doc.body as JSON)) | ||
getOrgByCbeUsingGET( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
cbe: string, | ||
@@ -118,5 +118,2 @@ language?: string | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(language ? "&language=" + language : "") | ||
@@ -127,2 +124,5 @@ let headers = this.headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -133,5 +133,5 @@ .then(doc => new models.HealthcareParty(doc.body as JSON)) | ||
getOrgByEhpUsingGET( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
ehp: string, | ||
@@ -147,5 +147,2 @@ language?: string | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(language ? "&language=" + language : "") | ||
@@ -156,2 +153,5 @@ let headers = this.headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -162,5 +162,5 @@ .then(doc => new models.HealthcareParty(doc.body as JSON)) | ||
getOrgByNihiiUsingGET( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
nihii: string, | ||
@@ -176,5 +176,2 @@ language?: string | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(language ? "&language=" + language : "") | ||
@@ -185,2 +182,5 @@ let headers = this.headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -191,5 +191,5 @@ .then(doc => new models.HealthcareParty(doc.body as JSON)) | ||
searchHcpUsingGET( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
lastName: string, | ||
@@ -206,5 +206,2 @@ firstName?: string, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(firstName ? "&firstName=" + firstName : "") + | ||
@@ -216,2 +213,5 @@ (type ? "&type=" + type : "") | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -222,5 +222,5 @@ .then(doc => (doc.body as Array<JSON>).map(it => new models.HealthcareParty(it))) | ||
searchOrgUsingGET( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
name: string, | ||
@@ -236,5 +236,2 @@ type?: string | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(type ? "&type=" + type : "") | ||
@@ -245,2 +242,5 @@ let headers = this.headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -247,0 +247,0 @@ .then(doc => (doc.body as Array<JSON>).map(it => new models.HealthcareParty(it))) |
@@ -45,3 +45,3 @@ /** | ||
errorUsingDELETE(): Promise<{ [key: string]: any } | any> { | ||
errorHtmlUsingDELETE(): Promise<models.ModelAndView | any> { | ||
let _body = null | ||
@@ -55,6 +55,6 @@ | ||
return XHR.sendCommand("DELETE", _url, headers, _body) | ||
.then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
.then(doc => new models.ModelAndView(doc.body as JSON)) | ||
.catch(err => this.handleError(err)) | ||
} | ||
errorUsingGET(): Promise<{ [key: string]: any } | any> { | ||
errorHtmlUsingGET(): Promise<models.ModelAndView | any> { | ||
let _body = null | ||
@@ -68,6 +68,6 @@ | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
.then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
.then(doc => new models.ModelAndView(doc.body as JSON)) | ||
.catch(err => this.handleError(err)) | ||
} | ||
errorUsingHEAD(): Promise<{ [key: string]: any } | any> { | ||
errorHtmlUsingHEAD(): Promise<models.ModelAndView | any> { | ||
let _body = null | ||
@@ -81,6 +81,6 @@ | ||
return XHR.sendCommand("HEAD", _url, headers, _body) | ||
.then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
.then(doc => new models.ModelAndView(doc.body as JSON)) | ||
.catch(err => this.handleError(err)) | ||
} | ||
errorUsingOPTIONS(): Promise<{ [key: string]: any } | any> { | ||
errorHtmlUsingOPTIONS(): Promise<models.ModelAndView | any> { | ||
let _body = null | ||
@@ -94,6 +94,6 @@ | ||
return XHR.sendCommand("OPTIONS", _url, headers, _body) | ||
.then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
.then(doc => new models.ModelAndView(doc.body as JSON)) | ||
.catch(err => this.handleError(err)) | ||
} | ||
errorUsingPATCH(): Promise<{ [key: string]: any } | any> { | ||
errorHtmlUsingPATCH(): Promise<models.ModelAndView | any> { | ||
let _body = null | ||
@@ -107,6 +107,6 @@ | ||
return XHR.sendCommand("PATCH", _url, headers, _body) | ||
.then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
.then(doc => new models.ModelAndView(doc.body as JSON)) | ||
.catch(err => this.handleError(err)) | ||
} | ||
errorUsingPOST(): Promise<{ [key: string]: any } | any> { | ||
errorHtmlUsingPOST(): Promise<models.ModelAndView | any> { | ||
let _body = null | ||
@@ -120,6 +120,6 @@ | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
.then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
.then(doc => new models.ModelAndView(doc.body as JSON)) | ||
.catch(err => this.handleError(err)) | ||
} | ||
errorUsingPUT(): Promise<{ [key: string]: any } | any> { | ||
errorHtmlUsingPUT(): Promise<models.ModelAndView | any> { | ||
let _body = null | ||
@@ -133,5 +133,5 @@ | ||
return XHR.sendCommand("PUT", _url, headers, _body) | ||
.then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
.then(doc => new models.ModelAndView(doc.body as JSON)) | ||
.catch(err => this.handleError(err)) | ||
} | ||
} |
@@ -46,5 +46,5 @@ /** | ||
agreementRequestsConsultationUsingGET( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpNihii: string, | ||
@@ -72,5 +72,2 @@ hcpSsin: string, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -93,2 +90,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -99,4 +99,4 @@ .then(doc => new models.AgreementResponse(doc.body as JSON)) | ||
cancelAgreementUsingDELETE( | ||
keystoreId: string, | ||
tokenId: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
hcpNihii: string, | ||
@@ -106,3 +106,3 @@ hcpSsin: string, | ||
hcpLastName: string, | ||
passPhrase: string, | ||
xFHCPassPhrase: string, | ||
patientSsin: string, | ||
@@ -119,4 +119,2 @@ decisionReference: string, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -126,3 +124,2 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(decisionReference ? "&decisionReference=" + decisionReference : "") + | ||
@@ -134,2 +131,5 @@ (iorequestReference ? "&iorequestReference=" + iorequestReference : "") | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("DELETE", _url, headers, _body) | ||
@@ -140,4 +140,4 @@ .then(doc => new models.AgreementResponse(doc.body as JSON)) | ||
closeAgreementUsingDELETE( | ||
keystoreId: string, | ||
tokenId: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
hcpNihii: string, | ||
@@ -147,3 +147,3 @@ hcpSsin: string, | ||
hcpLastName: string, | ||
passPhrase: string, | ||
xFHCPassPhrase: string, | ||
patientSsin: string, | ||
@@ -159,4 +159,2 @@ decisionReference: string | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -166,3 +164,2 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(decisionReference ? "&decisionReference=" + decisionReference : "") | ||
@@ -173,2 +170,5 @@ let headers = this.headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("DELETE", _url, headers, _body) | ||
@@ -263,4 +263,4 @@ .then(doc => new models.AgreementResponse(doc.body as JSON)) | ||
requestAgreementUsingPOST( | ||
keystoreId: string, | ||
tokenId: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
hcpNihii: string, | ||
@@ -270,3 +270,3 @@ hcpSsin: string, | ||
hcpLastName: string, | ||
passPhrase: string, | ||
xFHCPassPhrase: string, | ||
patientSsin: string, | ||
@@ -296,4 +296,2 @@ requestType: string, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -303,3 +301,2 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(verses ? "&verses=" + verses : "") + | ||
@@ -315,2 +312,5 @@ (incomplete ? "&incomplete=" + incomplete : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -317,0 +317,0 @@ .then(doc => new models.AgreementResponse(doc.body as JSON)) |
@@ -46,5 +46,5 @@ /** | ||
getPatientConsentUsingGET( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpNihii: string, | ||
@@ -65,5 +65,2 @@ hcpSsin: string, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -79,2 +76,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -85,5 +85,5 @@ .then(doc => new models.ConsentMessageDto(doc.body as JSON)) | ||
registerPatientConsentUsingPOST( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpNihii: string, | ||
@@ -106,5 +106,2 @@ hcpSsin: string, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -122,2 +119,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -128,5 +128,5 @@ .then(doc => new models.ConsentMessageDto(doc.body as JSON)) | ||
revokePatientConsentUsingPOST( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpNihii: string, | ||
@@ -148,5 +148,2 @@ hcpSsin: string, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -162,2 +159,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -164,0 +164,0 @@ .then(doc => new models.ConsentMessageDto(doc.body as JSON)) |
@@ -46,5 +46,5 @@ /** | ||
confirmAcksUsingPOST( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpNihii: string, | ||
@@ -64,5 +64,2 @@ hcpSsin: string, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -76,2 +73,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -82,5 +82,5 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
confirmDmgMessagesUsingPOST( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpNihii: string, | ||
@@ -100,5 +100,2 @@ hcpSsin: string, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -112,2 +109,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -118,5 +118,5 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
consultDmgUsingGET( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpNihii: string, | ||
@@ -139,5 +139,2 @@ hcpSsin: string, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -156,2 +153,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -162,5 +162,5 @@ .then(doc => new models.DmgConsultation(doc.body as JSON)) | ||
getDmgMessagesUsingGET( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpNihii: string, | ||
@@ -181,5 +181,2 @@ hcpSsin: string, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -194,2 +191,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -200,5 +200,5 @@ .then(doc => (doc.body as Array<JSON>).map(it => new models.DmgMessage(it))) | ||
notifyDmgUsingPOST( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpNihii: string, | ||
@@ -224,5 +224,2 @@ hcpSsin: string, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -243,2 +240,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -249,5 +249,5 @@ .then(doc => new models.DmgNotification(doc.body as JSON)) | ||
postDmgsListRequestUsingPOST( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpNihii: string, | ||
@@ -267,5 +267,2 @@ hcpSsin: string, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -281,2 +278,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -287,5 +287,5 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
registerDoctorUsingPOST( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpNihii: string, | ||
@@ -306,5 +306,2 @@ hcpSsin: string, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -320,2 +317,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -322,0 +322,0 @@ .then(doc => new models.DmgRegistration(doc.body as JSON)) |
@@ -47,5 +47,5 @@ /** | ||
patientSsin: string, | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpNihii: string, | ||
@@ -67,5 +67,2 @@ hcpSsin: string, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -81,2 +78,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -88,5 +88,5 @@ .then(doc => new models.SendAttestResult(doc.body as JSON)) | ||
patientSsin: string, | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpNihii: string, | ||
@@ -108,5 +108,2 @@ hcpSsin: string, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -122,2 +119,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -124,0 +124,0 @@ .then(doc => new models.SendAttestResultWithResponse(doc.body as JSON)) |
@@ -45,8 +45,8 @@ /** | ||
sendBatchUsingGET( | ||
loadMessagesUsingGET( | ||
nihii: string, | ||
language: string, | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
ssin: string, | ||
@@ -65,5 +65,2 @@ firstName: string, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(ssin ? "&ssin=" + ssin : "") + | ||
@@ -76,2 +73,5 @@ (firstName ? "&firstName=" + firstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -81,6 +81,32 @@ .then(doc => (doc.body as Array<JSON>).map(it => new models.EfactMessage(it))) | ||
} | ||
makeFlatFileTestUsingPOST(batch: models.InvoicesBatch): Promise<string | any> { | ||
let _body = null | ||
_body = batch | ||
const _url = this.host + "/efact/flat/test" + "?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("POST", _url, headers, _body) | ||
.then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
.catch(err => this.handleError(err)) | ||
} | ||
makeFlatFileUsingPOST(batch: models.InvoicesBatch): Promise<string | any> { | ||
let _body = null | ||
_body = batch | ||
const _url = this.host + "/efact/flat" + "?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("POST", _url, headers, _body) | ||
.then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
.catch(err => this.handleError(err)) | ||
} | ||
sendBatchUsingPOST( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
batch: models.InvoicesBatch | ||
@@ -91,10 +117,3 @@ ): Promise<models.EfactSendResponse | any> { | ||
const _url = | ||
this.host + | ||
"/efact/batch" + | ||
"?ts=" + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") | ||
const _url = this.host + "/efact/batch" + "?ts=" + new Date().getTime() | ||
let headers = this.headers | ||
@@ -104,2 +123,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -106,0 +128,0 @@ .then(doc => new models.EfactSendResponse(doc.body as JSON)) |
@@ -46,5 +46,5 @@ /** | ||
deleteMessagesUsingPOST( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
messageIds: Array<string>, | ||
@@ -60,6 +60,3 @@ source: string | ||
"?ts=" + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") | ||
new Date().getTime() | ||
let headers = this.headers | ||
@@ -69,2 +66,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -75,5 +75,5 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
getFullMessageUsingGET( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
boxId: string, | ||
@@ -90,6 +90,3 @@ messageId: string | ||
"?ts=" + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") | ||
new Date().getTime() | ||
let headers = this.headers | ||
@@ -99,2 +96,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -105,5 +105,5 @@ .then(doc => new models.Message(doc.body as JSON)) | ||
getFullMessageUsingPOST( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
boxId: string, | ||
@@ -122,6 +122,3 @@ messageId: string, | ||
"?ts=" + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") | ||
new Date().getTime() | ||
let headers = this.headers | ||
@@ -131,2 +128,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -137,16 +137,9 @@ .then(doc => new models.Message(doc.body as JSON)) | ||
getInfosUsingGET( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string | ||
): Promise<models.BoxInfo | any> { | ||
let _body = null | ||
const _url = | ||
this.host + | ||
"/ehbox" + | ||
"?ts=" + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") | ||
const _url = this.host + "/ehbox" + "?ts=" + new Date().getTime() | ||
let headers = this.headers | ||
@@ -156,2 +149,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -161,6 +157,6 @@ .then(doc => new models.BoxInfo(doc.body as JSON)) | ||
} | ||
loadMessagesUsingGET( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
loadMessagesUsingGET1( | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
boxId: string, | ||
@@ -176,5 +172,2 @@ limit: number | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(limit ? "&limit=" + limit : "") | ||
@@ -185,2 +178,5 @@ let headers = this.headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -191,5 +187,5 @@ .then(doc => (doc.body as Array<JSON>).map(it => new models.Message(it))) | ||
loadMessagesUsingPOST( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
boxId: string, | ||
@@ -207,5 +203,2 @@ limit: number, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(limit ? "&limit=" + limit : "") | ||
@@ -216,2 +209,5 @@ let headers = this.headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -222,5 +218,5 @@ .then(doc => (doc.body as Array<JSON>).map(it => new models.Message(it))) | ||
moveMessagesUsingPOST( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
messageIds: Array<string>, | ||
@@ -239,6 +235,3 @@ source: string, | ||
"?ts=" + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") | ||
new Date().getTime() | ||
let headers = this.headers | ||
@@ -248,2 +241,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -254,5 +250,5 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
sendMessageUsingPOST( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
publicationReceipt: boolean, | ||
@@ -269,5 +265,2 @@ receptionReceipt: boolean, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(publicationReceipt ? "&publicationReceipt=" + publicationReceipt : "") + | ||
@@ -280,2 +273,5 @@ (receptionReceipt ? "&receptionReceipt=" + receptionReceipt : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -282,0 +278,0 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) |
@@ -48,5 +48,5 @@ /** | ||
ioMembership: string, | ||
tokenId: string, | ||
keystoreId: string, | ||
passPhrase: string, | ||
xFHCTokenId: string, | ||
xFHCKeystoreId: string, | ||
xFHCPassPhrase: string, | ||
hcpNihii: string, | ||
@@ -69,5 +69,2 @@ hcpSsin: string, | ||
new Date().getTime() + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -84,2 +81,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -91,5 +91,5 @@ .then(doc => new models.InsurabilityInfoDto(doc.body as JSON)) | ||
ssin: string, | ||
tokenId: string, | ||
keystoreId: string, | ||
passPhrase: string, | ||
xFHCTokenId: string, | ||
xFHCKeystoreId: string, | ||
xFHCPassPhrase: string, | ||
hcpNihii: string, | ||
@@ -110,5 +110,2 @@ hcpSsin: string, | ||
new Date().getTime() + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -125,2 +122,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -127,0 +127,0 @@ .then(doc => new models.InsurabilityInfoDto(doc.body as JSON)) |
@@ -47,5 +47,5 @@ /** | ||
endpoint: string, | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpNihii: string, | ||
@@ -66,5 +66,2 @@ hcpLastName: string, | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -79,2 +76,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -86,5 +86,5 @@ .then(doc => new models.HcPartyConsent(doc.body as JSON)) | ||
endpoint: string, | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpLastName: string, | ||
@@ -106,5 +106,2 @@ hcpFirstName: string, | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -120,2 +117,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -127,5 +127,5 @@ .then(doc => new models.Consent(doc.body as JSON)) | ||
endpoint: string, | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpLastName: string, | ||
@@ -147,5 +147,2 @@ hcpFirstName: string, | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -161,2 +158,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -168,5 +168,5 @@ .then(doc => new models.Patient(doc.body as JSON)) | ||
endpoint: string, | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpLastName: string, | ||
@@ -193,5 +193,2 @@ hcpFirstName: string, | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -209,2 +206,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -216,5 +216,5 @@ .then(doc => (doc.body as Array<JSON>).map(it => new models.TherapeuticLink(it))) | ||
endpoint: string, | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpLastName: string, | ||
@@ -243,5 +243,2 @@ hcpFirstName: string, | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -259,2 +256,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -266,5 +266,5 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
endpoint: string, | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpLastName: string, | ||
@@ -293,5 +293,2 @@ hcpFirstName: string, | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -309,2 +306,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -316,5 +316,5 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
endpoint: string, | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpLastName: string, | ||
@@ -342,5 +342,2 @@ hcpFirstName: string, | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -362,2 +359,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -369,5 +369,5 @@ .then(doc => (doc.body as Array<JSON>).map(it => new models.TransactionSummary(it))) | ||
endpoint: string, | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpLastName: string, | ||
@@ -395,5 +395,2 @@ hcpFirstName: string, | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -412,2 +409,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -419,5 +419,5 @@ .then(doc => new models.Patient(doc.body as JSON)) | ||
endpoint: string, | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpLastName: string, | ||
@@ -445,5 +445,2 @@ hcpFirstName: string, | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -460,2 +457,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -467,5 +467,5 @@ .then(doc => new models.PutTransactionSetResponse(doc.body as JSON)) | ||
endpoint: string, | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpLastName: string, | ||
@@ -493,5 +493,2 @@ hcpFirstName: string, | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -508,2 +505,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/xml")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -515,5 +515,5 @@ .then(doc => new models.TransactionIdType(doc.body as JSON)) | ||
endpoint: string, | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpLastName: string, | ||
@@ -536,5 +536,2 @@ hcpFirstName: string, | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -551,2 +548,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -558,5 +558,5 @@ .then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true)) | ||
endpoint: string, | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpLastName: string, | ||
@@ -581,5 +581,2 @@ hcpFirstName: string, | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -595,2 +592,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -602,5 +602,5 @@ .then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true)) | ||
endpoint: string, | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpLastName: string, | ||
@@ -629,5 +629,2 @@ hcpFirstName: string, | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -645,2 +642,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("DELETE", _url, headers, _body) | ||
@@ -647,0 +647,0 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) |
@@ -46,4 +46,4 @@ /** | ||
createPrescriptionUsingPOST( | ||
keystoreId: string, | ||
tokenId: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
hcpQuality: string, | ||
@@ -53,3 +53,3 @@ hcpNihii: string, | ||
hcpName: string, | ||
passPhrase: string, | ||
xFHCPassPhrase: string, | ||
prescription: models.PrescriptionRequest | ||
@@ -65,9 +65,6 @@ ): Promise<models.Prescription | any> { | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
(hcpName ? "&hcpName=" + hcpName : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") | ||
(hcpName ? "&hcpName=" + hcpName : "") | ||
let headers = this.headers | ||
@@ -77,2 +74,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -112,4 +112,4 @@ .then(doc => new models.Prescription(doc.body as JSON)) | ||
listFeedbacksUsingGET( | ||
keystoreId: string, | ||
tokenId: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
hcpQuality: string, | ||
@@ -119,3 +119,3 @@ hcpNihii: string, | ||
hcpName: string, | ||
passPhrase: string | ||
xFHCPassPhrase: string | ||
): Promise<Array<models.Feedback> | any> { | ||
@@ -129,9 +129,6 @@ let _body = null | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
(hcpName ? "&hcpName=" + hcpName : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") | ||
(hcpName ? "&hcpName=" + hcpName : "") | ||
let headers = this.headers | ||
@@ -141,2 +138,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -147,4 +147,4 @@ .then(doc => (doc.body as Array<JSON>).map(it => new models.Feedback(it))) | ||
listOpenPrescriptionsUsingGET( | ||
keystoreId: string, | ||
tokenId: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
hcpQuality: string, | ||
@@ -154,3 +154,3 @@ hcpNihii: string, | ||
hcpName: string, | ||
passPhrase: string | ||
xFHCPassPhrase: string | ||
): Promise<Array<models.Prescription> | any> { | ||
@@ -164,9 +164,6 @@ let _body = null | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
(hcpName ? "&hcpName=" + hcpName : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") | ||
(hcpName ? "&hcpName=" + hcpName : "") | ||
let headers = this.headers | ||
@@ -176,2 +173,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -182,4 +182,4 @@ .then(doc => (doc.body as Array<JSON>).map(it => new models.Prescription(it))) | ||
revokePrescriptionUsingDELETE( | ||
keystoreId: string, | ||
tokenId: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
hcpQuality: string, | ||
@@ -189,3 +189,3 @@ hcpNihii: string, | ||
hcpName: string, | ||
passPhrase: string, | ||
xFHCPassPhrase: string, | ||
rid: string, | ||
@@ -201,4 +201,2 @@ reason: string | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") + | ||
@@ -208,3 +206,2 @@ (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
(hcpName ? "&hcpName=" + hcpName : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(reason ? "&reason=" + reason : "") | ||
@@ -215,2 +212,5 @@ let headers = this.headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("DELETE", _url, headers, _body) | ||
@@ -221,4 +221,4 @@ .then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true)) | ||
sendNotificationUsingPOST( | ||
keystoreId: string, | ||
tokenId: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
hcpQuality: string, | ||
@@ -228,3 +228,3 @@ hcpNihii: string, | ||
hcpName: string, | ||
passPhrase: string, | ||
xFHCPassPhrase: string, | ||
rid: string, | ||
@@ -242,4 +242,2 @@ patientId?: string, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") + | ||
@@ -249,3 +247,2 @@ (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
(hcpName ? "&hcpName=" + hcpName : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(patientId ? "&patientId=" + patientId : "") + | ||
@@ -258,2 +255,5 @@ (executorId ? "&executorId=" + executorId : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -264,4 +264,4 @@ .then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true)) | ||
updateFeedbackFlagUsingPUT( | ||
keystoreId: string, | ||
tokenId: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
hcpQuality: string, | ||
@@ -271,3 +271,3 @@ hcpNihii: string, | ||
hcpName: string, | ||
passPhrase: string, | ||
xFHCPassPhrase: string, | ||
rid: string, | ||
@@ -285,9 +285,6 @@ feedbackFlag: boolean | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
(hcpName ? "&hcpName=" + hcpName : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") | ||
(hcpName ? "&hcpName=" + hcpName : "") | ||
let headers = this.headers | ||
@@ -297,2 +294,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("PUT", _url, headers, _body) | ||
@@ -299,0 +299,0 @@ .then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true)) |
@@ -45,10 +45,6 @@ /** | ||
checkKeystoreExistUsingGET(keystoreId: string): Promise<boolean | any> { | ||
checkKeystoreExistUsingGET(xFHCKeystoreId: string): Promise<boolean | any> { | ||
let _body = null | ||
const _url = | ||
this.host + | ||
"/sts/keystore/check/{keystoreId}".replace("{keystoreId}", keystoreId + "") + | ||
"?ts=" + | ||
new Date().getTime() | ||
const _url = this.host + "/sts/keystore/check" + "?ts=" + new Date().getTime() | ||
let headers = this.headers | ||
@@ -58,2 +54,3 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -63,10 +60,6 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
} | ||
checkTokenValidUsingGET(tokenId: string): Promise<boolean | any> { | ||
checkTokenValidUsingGET(xFHCTokenId: string): Promise<boolean | any> { | ||
let _body = null | ||
const _url = | ||
this.host + | ||
"/sts/token/check/{tokenId}".replace("{tokenId}", tokenId + "") + | ||
"?ts=" + | ||
new Date().getTime() | ||
const _url = this.host + "/sts/token/check" + "?ts=" + new Date().getTime() | ||
let headers = this.headers | ||
@@ -76,2 +69,3 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -81,11 +75,7 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
} | ||
registerTokenUsingPOST(token: string, tokenId: string): Promise<any | Boolean> { | ||
registerTokenUsingPOST(xFHCTokenId: string, token: string): Promise<any | Boolean> { | ||
let _body = null | ||
_body = token | ||
const _url = | ||
this.host + | ||
"/sts/token/{tokenId}".replace("{tokenId}", tokenId + "") + | ||
"?ts=" + | ||
new Date().getTime() | ||
const _url = this.host + "/sts/token" + "?ts=" + new Date().getTime() | ||
let headers = this.headers | ||
@@ -95,2 +85,3 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -101,5 +92,5 @@ .then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true)) | ||
requestTokenUsingGET( | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCPassPhrase: string, | ||
ssin: string, | ||
keystoreId: string, | ||
isMedicalHouse?: boolean | ||
@@ -111,6 +102,5 @@ ): Promise<models.SamlTokenResult | any> { | ||
this.host + | ||
"/sts/token/{keystoreId}".replace("{keystoreId}", keystoreId + "") + | ||
"/sts/token" + | ||
"?ts=" + | ||
new Date().getTime() + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(ssin ? "&ssin=" + ssin : "") + | ||
@@ -122,2 +112,4 @@ (isMedicalHouse ? "&isMedicalHouse=" + isMedicalHouse : "") | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -124,0 +116,0 @@ .then(doc => new models.SamlTokenResult(doc.body as JSON)) |
@@ -47,5 +47,5 @@ /** | ||
ssin: string, | ||
tokenId: string, | ||
keystoreId: string, | ||
passPhrase: string, | ||
xFHCTokenId: string, | ||
xFHCKeystoreId: string, | ||
xFHCPassPhrase: string, | ||
hcpFirstName: string, | ||
@@ -68,5 +68,2 @@ hcpLastName: string, | ||
new Date().getTime() + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
@@ -83,2 +80,5 @@ (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -85,0 +85,0 @@ .then(doc => new models.TarificationConsultationResult(doc.body as JSON)) |
@@ -46,5 +46,5 @@ /** | ||
doesLinkExistUsingPOST( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
therLink: models.TherapeuticLinkDto | ||
@@ -55,10 +55,3 @@ ): Promise<models.TherapeuticLinkDto | any> { | ||
const _url = | ||
this.host + | ||
"/therlink/check" + | ||
"?ts=" + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") | ||
const _url = this.host + "/therlink/check" + "?ts=" + new Date().getTime() | ||
let headers = this.headers | ||
@@ -68,2 +61,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -74,5 +70,5 @@ .then(doc => new models.TherapeuticLinkDto(doc.body as JSON)) | ||
getAllTherapeuticLinksUsingGET( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpNihii: string, | ||
@@ -101,5 +97,2 @@ hcpSsin: string, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
@@ -120,2 +113,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -126,5 +122,5 @@ .then(doc => (doc.body as Array<JSON>).map(it => new models.TherapeuticLinkMessageDto(it))) | ||
getAllTherapeuticLinksWithQueryLinkUsingPOST( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
queryLink: models.TherapeuticLinkDto, | ||
@@ -137,10 +133,3 @@ sign?: boolean | ||
const _url = | ||
this.host + | ||
"/therlink/query" + | ||
"?ts=" + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(sign ? "&sign=" + sign : "") | ||
this.host + "/therlink/query" + "?ts=" + new Date().getTime() + (sign ? "&sign=" + sign : "") | ||
let headers = this.headers | ||
@@ -150,2 +139,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -156,5 +148,5 @@ .then(doc => (doc.body as Array<JSON>).map(it => new models.TherapeuticLinkMessageDto(it))) | ||
registerTherapeuticLinkUsingPOST1( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpNihii: string, | ||
@@ -182,5 +174,2 @@ hcpSsin: string, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -204,2 +193,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -210,5 +202,5 @@ .then(doc => new models.TherapeuticLinkMessageDto(doc.body as JSON)) | ||
revokeLinkUsingPOST( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
hcpNihii: string, | ||
@@ -238,5 +230,2 @@ hcpSsin: string, | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
@@ -258,2 +247,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -264,5 +256,5 @@ .then(doc => new models.TherapeuticLinkMessageDto(doc.body as JSON)) | ||
revokeLinkUsingPOST1( | ||
keystoreId: string, | ||
tokenId: string, | ||
passPhrase: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
therLink: models.TherapeuticLinkDto, | ||
@@ -275,10 +267,3 @@ sign?: boolean | ||
const _url = | ||
this.host + | ||
"/therlink/revoke" + | ||
"?ts=" + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(sign ? "&sign=" + sign : "") | ||
this.host + "/therlink/revoke" + "?ts=" + new Date().getTime() + (sign ? "&sign=" + sign : "") | ||
let headers = this.headers | ||
@@ -288,2 +273,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -290,0 +278,0 @@ .then(doc => new models.TherapeuticLinkMessageDto(doc.body as JSON)) |
@@ -32,9 +32,9 @@ /** | ||
handleError(e: XHR.Data): void; | ||
getHcpByNihiiUsingGET(keystoreId: string, tokenId: string, passPhrase: string, nihii: string, language?: string): Promise<models.HealthcareParty | any>; | ||
getHcpBySsinUsingGET(keystoreId: string, tokenId: string, passPhrase: string, ssin: string, language?: string): Promise<models.HealthcareParty | any>; | ||
getOrgByCbeUsingGET(keystoreId: string, tokenId: string, passPhrase: string, cbe: string, language?: string): Promise<models.HealthcareParty | any>; | ||
getOrgByEhpUsingGET(keystoreId: string, tokenId: string, passPhrase: string, ehp: string, language?: string): Promise<models.HealthcareParty | any>; | ||
getOrgByNihiiUsingGET(keystoreId: string, tokenId: string, passPhrase: string, nihii: string, language?: string): Promise<models.HealthcareParty | any>; | ||
searchHcpUsingGET(keystoreId: string, tokenId: string, passPhrase: string, lastName: string, firstName?: string, type?: string): Promise<Array<models.HealthcareParty> | any>; | ||
searchOrgUsingGET(keystoreId: string, tokenId: string, passPhrase: string, name: string, type?: string): Promise<Array<models.HealthcareParty> | any>; | ||
getHcpByNihiiUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, nihii: string, language?: string): Promise<models.HealthcareParty | any>; | ||
getHcpBySsinUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, ssin: string, language?: string): Promise<models.HealthcareParty | any>; | ||
getOrgByCbeUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, cbe: string, language?: string): Promise<models.HealthcareParty | any>; | ||
getOrgByEhpUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, ehp: string, language?: string): Promise<models.HealthcareParty | any>; | ||
getOrgByNihiiUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, nihii: string, language?: string): Promise<models.HealthcareParty | any>; | ||
searchHcpUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, lastName: string, firstName?: string, type?: string): Promise<Array<models.HealthcareParty> | any>; | ||
searchOrgUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, name: string, type?: string): Promise<Array<models.HealthcareParty> | any>; | ||
} |
@@ -40,3 +40,3 @@ /** | ||
} | ||
getHcpByNihiiUsingGET(keystoreId, tokenId, passPhrase, nihii, language) { | ||
getHcpByNihiiUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, nihii, language) { | ||
let _body = null; | ||
@@ -47,5 +47,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(language ? "&language=" + language : ""); | ||
@@ -56,2 +53,5 @@ let headers = this.headers; | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -61,3 +61,3 @@ .then(doc => new models.HealthcareParty(doc.body)) | ||
} | ||
getHcpBySsinUsingGET(keystoreId, tokenId, passPhrase, ssin, language) { | ||
getHcpBySsinUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, ssin, language) { | ||
let _body = null; | ||
@@ -68,5 +68,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(language ? "&language=" + language : ""); | ||
@@ -77,2 +74,5 @@ let headers = this.headers; | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -82,3 +82,3 @@ .then(doc => new models.HealthcareParty(doc.body)) | ||
} | ||
getOrgByCbeUsingGET(keystoreId, tokenId, passPhrase, cbe, language) { | ||
getOrgByCbeUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, cbe, language) { | ||
let _body = null; | ||
@@ -89,5 +89,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(language ? "&language=" + language : ""); | ||
@@ -98,2 +95,5 @@ let headers = this.headers; | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -103,3 +103,3 @@ .then(doc => new models.HealthcareParty(doc.body)) | ||
} | ||
getOrgByEhpUsingGET(keystoreId, tokenId, passPhrase, ehp, language) { | ||
getOrgByEhpUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, ehp, language) { | ||
let _body = null; | ||
@@ -110,5 +110,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(language ? "&language=" + language : ""); | ||
@@ -119,2 +116,5 @@ let headers = this.headers; | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -124,3 +124,3 @@ .then(doc => new models.HealthcareParty(doc.body)) | ||
} | ||
getOrgByNihiiUsingGET(keystoreId, tokenId, passPhrase, nihii, language) { | ||
getOrgByNihiiUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, nihii, language) { | ||
let _body = null; | ||
@@ -131,5 +131,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(language ? "&language=" + language : ""); | ||
@@ -140,2 +137,5 @@ let headers = this.headers; | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -145,3 +145,3 @@ .then(doc => new models.HealthcareParty(doc.body)) | ||
} | ||
searchHcpUsingGET(keystoreId, tokenId, passPhrase, lastName, firstName, type) { | ||
searchHcpUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, lastName, firstName, type) { | ||
let _body = null; | ||
@@ -152,5 +152,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(firstName ? "&firstName=" + firstName : "") + | ||
@@ -162,2 +159,5 @@ (type ? "&type=" + type : ""); | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -167,3 +167,3 @@ .then(doc => doc.body.map(it => new models.HealthcareParty(it))) | ||
} | ||
searchOrgUsingGET(keystoreId, tokenId, passPhrase, name, type) { | ||
searchOrgUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, name, type) { | ||
let _body = null; | ||
@@ -174,5 +174,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(type ? "&type=" + type : ""); | ||
@@ -183,2 +180,5 @@ let headers = this.headers; | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -185,0 +185,0 @@ .then(doc => doc.body.map(it => new models.HealthcareParty(it))) |
@@ -25,2 +25,3 @@ /** | ||
import { XHR } from "./XHR"; | ||
import * as models from "../model/models"; | ||
export declare class fhcBasicerrorcontrollerApi { | ||
@@ -32,23 +33,9 @@ host: string; | ||
handleError(e: XHR.Data): void; | ||
errorUsingDELETE(): Promise<{ | ||
[key: string]: any; | ||
} | any>; | ||
errorUsingGET(): Promise<{ | ||
[key: string]: any; | ||
} | any>; | ||
errorUsingHEAD(): Promise<{ | ||
[key: string]: any; | ||
} | any>; | ||
errorUsingOPTIONS(): Promise<{ | ||
[key: string]: any; | ||
} | any>; | ||
errorUsingPATCH(): Promise<{ | ||
[key: string]: any; | ||
} | any>; | ||
errorUsingPOST(): Promise<{ | ||
[key: string]: any; | ||
} | any>; | ||
errorUsingPUT(): Promise<{ | ||
[key: string]: any; | ||
} | any>; | ||
errorHtmlUsingDELETE(): Promise<models.ModelAndView | any>; | ||
errorHtmlUsingGET(): Promise<models.ModelAndView | any>; | ||
errorHtmlUsingHEAD(): Promise<models.ModelAndView | any>; | ||
errorHtmlUsingOPTIONS(): Promise<models.ModelAndView | any>; | ||
errorHtmlUsingPATCH(): Promise<models.ModelAndView | any>; | ||
errorHtmlUsingPOST(): Promise<models.ModelAndView | any>; | ||
errorHtmlUsingPUT(): Promise<models.ModelAndView | any>; | ||
} |
@@ -25,2 +25,3 @@ /** | ||
import { XHR } from "./XHR"; | ||
import * as models from "../model/models"; | ||
export class fhcBasicerrorcontrollerApi { | ||
@@ -40,3 +41,3 @@ constructor(host, headers) { | ||
} | ||
errorUsingDELETE() { | ||
errorHtmlUsingDELETE() { | ||
let _body = null; | ||
@@ -49,6 +50,6 @@ const _url = this.host + "/error" + "?ts=" + new Date().getTime(); | ||
return XHR.sendCommand("DELETE", _url, headers, _body) | ||
.then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
.then(doc => new models.ModelAndView(doc.body)) | ||
.catch(err => this.handleError(err)); | ||
} | ||
errorUsingGET() { | ||
errorHtmlUsingGET() { | ||
let _body = null; | ||
@@ -61,6 +62,6 @@ const _url = this.host + "/error" + "?ts=" + new Date().getTime(); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
.then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
.then(doc => new models.ModelAndView(doc.body)) | ||
.catch(err => this.handleError(err)); | ||
} | ||
errorUsingHEAD() { | ||
errorHtmlUsingHEAD() { | ||
let _body = null; | ||
@@ -73,6 +74,6 @@ const _url = this.host + "/error" + "?ts=" + new Date().getTime(); | ||
return XHR.sendCommand("HEAD", _url, headers, _body) | ||
.then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
.then(doc => new models.ModelAndView(doc.body)) | ||
.catch(err => this.handleError(err)); | ||
} | ||
errorUsingOPTIONS() { | ||
errorHtmlUsingOPTIONS() { | ||
let _body = null; | ||
@@ -85,6 +86,6 @@ const _url = this.host + "/error" + "?ts=" + new Date().getTime(); | ||
return XHR.sendCommand("OPTIONS", _url, headers, _body) | ||
.then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
.then(doc => new models.ModelAndView(doc.body)) | ||
.catch(err => this.handleError(err)); | ||
} | ||
errorUsingPATCH() { | ||
errorHtmlUsingPATCH() { | ||
let _body = null; | ||
@@ -97,6 +98,6 @@ const _url = this.host + "/error" + "?ts=" + new Date().getTime(); | ||
return XHR.sendCommand("PATCH", _url, headers, _body) | ||
.then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
.then(doc => new models.ModelAndView(doc.body)) | ||
.catch(err => this.handleError(err)); | ||
} | ||
errorUsingPOST() { | ||
errorHtmlUsingPOST() { | ||
let _body = null; | ||
@@ -109,6 +110,6 @@ const _url = this.host + "/error" + "?ts=" + new Date().getTime(); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
.then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
.then(doc => new models.ModelAndView(doc.body)) | ||
.catch(err => this.handleError(err)); | ||
} | ||
errorUsingPUT() { | ||
errorHtmlUsingPUT() { | ||
let _body = null; | ||
@@ -121,5 +122,5 @@ const _url = this.host + "/error" + "?ts=" + new Date().getTime(); | ||
return XHR.sendCommand("PUT", _url, headers, _body) | ||
.then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
.then(doc => new models.ModelAndView(doc.body)) | ||
.catch(err => this.handleError(err)); | ||
} | ||
} |
@@ -32,5 +32,5 @@ /** | ||
handleError(e: XHR.Data): void; | ||
agreementRequestsConsultationUsingGET(keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientSsin: string, patientDateOfBirth: number, patientFirstName: string, patientLastName: string, patientGender: string, civicsVersion?: string, paragraph?: string, start?: number, end?: number, reference?: string): Promise<models.AgreementResponse | any>; | ||
cancelAgreementUsingDELETE(keystoreId: string, tokenId: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, passPhrase: string, patientSsin: string, decisionReference: string, iorequestReference: string): Promise<models.AgreementResponse | any>; | ||
closeAgreementUsingDELETE(keystoreId: string, tokenId: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, passPhrase: string, patientSsin: string, decisionReference: string): Promise<models.AgreementResponse | any>; | ||
agreementRequestsConsultationUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientSsin: string, patientDateOfBirth: number, patientFirstName: string, patientLastName: string, patientGender: string, civicsVersion?: string, paragraph?: string, start?: number, end?: number, reference?: string): Promise<models.AgreementResponse | any>; | ||
cancelAgreementUsingDELETE(xFHCKeystoreId: string, xFHCTokenId: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, xFHCPassPhrase: string, patientSsin: string, decisionReference: string, iorequestReference: string): Promise<models.AgreementResponse | any>; | ||
closeAgreementUsingDELETE(xFHCKeystoreId: string, xFHCTokenId: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, xFHCPassPhrase: string, patientSsin: string, decisionReference: string): Promise<models.AgreementResponse | any>; | ||
findParagraphsUsingGET(searchString: string, language: string): Promise<Array<models.ParagraphPreview> | any>; | ||
@@ -40,3 +40,3 @@ findParagraphsWithCnkUsingGET(cnk: number, language: string): Promise<Array<models.ParagraphPreview> | any>; | ||
getParagraphInfosUsingGET(chapterName: string, paragraphName: string): Promise<models.ParagraphInfos | any>; | ||
requestAgreementUsingPOST(keystoreId: string, tokenId: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, passPhrase: string, patientSsin: string, requestType: string, civicsVersion: string, paragraph: string, verses: string, incomplete: boolean, start: number, end: number, decisionReference: string, ioRequestReference: string, appendices: Array<models.Appendix>): Promise<models.AgreementResponse | any>; | ||
requestAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, xFHCPassPhrase: string, patientSsin: string, requestType: string, civicsVersion: string, paragraph: string, verses: string, incomplete: boolean, start: number, end: number, decisionReference: string, ioRequestReference: string, appendices: Array<models.Appendix>): Promise<models.AgreementResponse | any>; | ||
} |
@@ -40,3 +40,3 @@ /** | ||
} | ||
agreementRequestsConsultationUsingGET(keystoreId, tokenId, passPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, patientSsin, patientDateOfBirth, patientFirstName, patientLastName, patientGender, civicsVersion, paragraph, start, end, reference) { | ||
agreementRequestsConsultationUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, patientSsin, patientDateOfBirth, patientFirstName, patientLastName, patientGender, civicsVersion, paragraph, start, end, reference) { | ||
let _body = null; | ||
@@ -47,5 +47,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -68,2 +65,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -73,3 +73,3 @@ .then(doc => new models.AgreementResponse(doc.body)) | ||
} | ||
cancelAgreementUsingDELETE(keystoreId, tokenId, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, passPhrase, patientSsin, decisionReference, iorequestReference) { | ||
cancelAgreementUsingDELETE(xFHCKeystoreId, xFHCTokenId, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, xFHCPassPhrase, patientSsin, decisionReference, iorequestReference) { | ||
let _body = null; | ||
@@ -80,4 +80,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -87,3 +85,2 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(decisionReference ? "&decisionReference=" + decisionReference : "") + | ||
@@ -95,2 +92,5 @@ (iorequestReference ? "&iorequestReference=" + iorequestReference : ""); | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("DELETE", _url, headers, _body) | ||
@@ -100,3 +100,3 @@ .then(doc => new models.AgreementResponse(doc.body)) | ||
} | ||
closeAgreementUsingDELETE(keystoreId, tokenId, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, passPhrase, patientSsin, decisionReference) { | ||
closeAgreementUsingDELETE(xFHCKeystoreId, xFHCTokenId, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, xFHCPassPhrase, patientSsin, decisionReference) { | ||
let _body = null; | ||
@@ -107,4 +107,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -114,3 +112,2 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(decisionReference ? "&decisionReference=" + decisionReference : ""); | ||
@@ -121,2 +118,5 @@ let headers = this.headers; | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("DELETE", _url, headers, _body) | ||
@@ -190,3 +190,3 @@ .then(doc => new models.AgreementResponse(doc.body)) | ||
} | ||
requestAgreementUsingPOST(keystoreId, tokenId, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, passPhrase, patientSsin, requestType, civicsVersion, paragraph, verses, incomplete, start, end, decisionReference, ioRequestReference, appendices) { | ||
requestAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, xFHCPassPhrase, patientSsin, requestType, civicsVersion, paragraph, verses, incomplete, start, end, decisionReference, ioRequestReference, appendices) { | ||
let _body = null; | ||
@@ -202,4 +202,2 @@ _body = appendices; | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -209,3 +207,2 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(verses ? "&verses=" + verses : "") + | ||
@@ -221,2 +218,5 @@ (incomplete ? "&incomplete=" + incomplete : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -223,0 +223,0 @@ .then(doc => new models.AgreementResponse(doc.body)) |
@@ -32,5 +32,5 @@ /** | ||
handleError(e: XHR.Data): void; | ||
getPatientConsentUsingGET(keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientSsin: string, patientFirstName: string, patientLastName: string): Promise<models.ConsentMessageDto | any>; | ||
registerPatientConsentUsingPOST(keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientSsin: string, patientFirstName: string, patientLastName: string, eidCardNumber?: string, isiCardNumber?: string): Promise<models.ConsentMessageDto | any>; | ||
revokePatientConsentUsingPOST(keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, existingConsent: models.ConsentTypeDto, eidCardNumber?: string, isiCardNumber?: string): Promise<models.ConsentMessageDto | any>; | ||
getPatientConsentUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientSsin: string, patientFirstName: string, patientLastName: string): Promise<models.ConsentMessageDto | any>; | ||
registerPatientConsentUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientSsin: string, patientFirstName: string, patientLastName: string, eidCardNumber?: string, isiCardNumber?: string): Promise<models.ConsentMessageDto | any>; | ||
revokePatientConsentUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, existingConsent: models.ConsentTypeDto, eidCardNumber?: string, isiCardNumber?: string): Promise<models.ConsentMessageDto | any>; | ||
} |
@@ -40,3 +40,3 @@ /** | ||
} | ||
getPatientConsentUsingGET(keystoreId, tokenId, passPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, patientSsin, patientFirstName, patientLastName) { | ||
getPatientConsentUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, patientSsin, patientFirstName, patientLastName) { | ||
let _body = null; | ||
@@ -47,5 +47,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -61,2 +58,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -66,3 +66,3 @@ .then(doc => new models.ConsentMessageDto(doc.body)) | ||
} | ||
registerPatientConsentUsingPOST(keystoreId, tokenId, passPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, patientSsin, patientFirstName, patientLastName, eidCardNumber, isiCardNumber) { | ||
registerPatientConsentUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, patientSsin, patientFirstName, patientLastName, eidCardNumber, isiCardNumber) { | ||
let _body = null; | ||
@@ -73,5 +73,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -89,2 +86,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -94,3 +94,3 @@ .then(doc => new models.ConsentMessageDto(doc.body)) | ||
} | ||
revokePatientConsentUsingPOST(keystoreId, tokenId, passPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, existingConsent, eidCardNumber, isiCardNumber) { | ||
revokePatientConsentUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, existingConsent, eidCardNumber, isiCardNumber) { | ||
let _body = null; | ||
@@ -102,5 +102,2 @@ _body = existingConsent; | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -116,2 +113,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -118,0 +118,0 @@ .then(doc => new models.ConsentMessageDto(doc.body)) |
@@ -32,9 +32,9 @@ /** | ||
handleError(e: XHR.Data): void; | ||
confirmAcksUsingPOST(keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, dmgTacks: Array<models.DmgAcknowledge>): Promise<boolean | any>; | ||
confirmDmgMessagesUsingPOST(keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, dmgMessages: Array<models.DmgMessage>): Promise<boolean | any>; | ||
consultDmgUsingGET(keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientSsin?: string, patientGender?: string, oa?: string, regNrWithMut?: string, requestDate?: number): Promise<models.DmgConsultation | any>; | ||
getDmgMessagesUsingGET(keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, oa: string, messageNames: Array<string>): Promise<Array<models.DmgMessage> | any>; | ||
notifyDmgUsingPOST(keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, nomenclature: string, patientSsin?: string, oa?: string, regNrWithMut?: string, patientFirstName?: string, patientLastName?: string, patientGender?: string, requestDate?: number): Promise<models.DmgNotification | any>; | ||
postDmgsListRequestUsingPOST(keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, oa?: string, requestDate?: number): Promise<boolean | any>; | ||
registerDoctorUsingPOST(keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, oa: string, bic: string, iban: string): Promise<models.DmgRegistration | any>; | ||
confirmAcksUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, dmgTacks: Array<models.DmgAcknowledge>): Promise<boolean | any>; | ||
confirmDmgMessagesUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, dmgMessages: Array<models.DmgMessage>): Promise<boolean | any>; | ||
consultDmgUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientSsin?: string, patientGender?: string, oa?: string, regNrWithMut?: string, requestDate?: number): Promise<models.DmgConsultation | any>; | ||
getDmgMessagesUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, oa: string, messageNames: Array<string>): Promise<Array<models.DmgMessage> | any>; | ||
notifyDmgUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, nomenclature: string, patientSsin?: string, oa?: string, regNrWithMut?: string, patientFirstName?: string, patientLastName?: string, patientGender?: string, requestDate?: number): Promise<models.DmgNotification | any>; | ||
postDmgsListRequestUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, oa?: string, requestDate?: number): Promise<boolean | any>; | ||
registerDoctorUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, oa: string, bic: string, iban: string): Promise<models.DmgRegistration | any>; | ||
} |
@@ -40,3 +40,3 @@ /** | ||
} | ||
confirmAcksUsingPOST(keystoreId, tokenId, passPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, dmgTacks) { | ||
confirmAcksUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, dmgTacks) { | ||
let _body = null; | ||
@@ -48,5 +48,2 @@ _body = dmgTacks; | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -60,2 +57,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -65,3 +65,3 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
} | ||
confirmDmgMessagesUsingPOST(keystoreId, tokenId, passPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, dmgMessages) { | ||
confirmDmgMessagesUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, dmgMessages) { | ||
let _body = null; | ||
@@ -73,5 +73,2 @@ _body = dmgMessages; | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -85,2 +82,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -90,3 +90,3 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
} | ||
consultDmgUsingGET(keystoreId, tokenId, passPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, patientSsin, patientGender, oa, regNrWithMut, requestDate) { | ||
consultDmgUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, patientSsin, patientGender, oa, regNrWithMut, requestDate) { | ||
let _body = null; | ||
@@ -97,5 +97,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -114,2 +111,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -119,3 +119,3 @@ .then(doc => new models.DmgConsultation(doc.body)) | ||
} | ||
getDmgMessagesUsingGET(keystoreId, tokenId, passPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, oa, messageNames) { | ||
getDmgMessagesUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, oa, messageNames) { | ||
let _body = null; | ||
@@ -127,5 +127,2 @@ _body = messageNames; | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -140,2 +137,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -145,3 +145,3 @@ .then(doc => doc.body.map(it => new models.DmgMessage(it))) | ||
} | ||
notifyDmgUsingPOST(keystoreId, tokenId, passPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, nomenclature, patientSsin, oa, regNrWithMut, patientFirstName, patientLastName, patientGender, requestDate) { | ||
notifyDmgUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, nomenclature, patientSsin, oa, regNrWithMut, patientFirstName, patientLastName, patientGender, requestDate) { | ||
let _body = null; | ||
@@ -152,5 +152,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -171,2 +168,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -176,3 +176,3 @@ .then(doc => new models.DmgNotification(doc.body)) | ||
} | ||
postDmgsListRequestUsingPOST(keystoreId, tokenId, passPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, oa, requestDate) { | ||
postDmgsListRequestUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, oa, requestDate) { | ||
let _body = null; | ||
@@ -183,5 +183,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -197,2 +194,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -202,3 +202,3 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
} | ||
registerDoctorUsingPOST(keystoreId, tokenId, passPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, oa, bic, iban) { | ||
registerDoctorUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, oa, bic, iban) { | ||
let _body = null; | ||
@@ -209,5 +209,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -223,2 +220,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -225,0 +225,0 @@ .then(doc => new models.DmgRegistration(doc.body)) |
@@ -32,4 +32,4 @@ /** | ||
handleError(e: XHR.Data): void; | ||
sendAttestUsingPOST(patientSsin: string, keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, hcpCbe: string, attest: models.Eattest, date?: number): Promise<models.SendAttestResult | any>; | ||
sendAttestWithResponseUsingPOST(patientSsin: string, keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, hcpCbe: string, attest: models.Eattest, date?: number): Promise<models.SendAttestResultWithResponse | any>; | ||
sendAttestUsingPOST(patientSsin: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, hcpCbe: string, attest: models.Eattest, date?: number): Promise<models.SendAttestResult | any>; | ||
sendAttestWithResponseUsingPOST(patientSsin: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, hcpCbe: string, attest: models.Eattest, date?: number): Promise<models.SendAttestResultWithResponse | any>; | ||
} |
@@ -40,3 +40,3 @@ /** | ||
} | ||
sendAttestUsingPOST(patientSsin, keystoreId, tokenId, passPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, hcpCbe, attest, date) { | ||
sendAttestUsingPOST(patientSsin, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, hcpCbe, attest, date) { | ||
let _body = null; | ||
@@ -48,5 +48,2 @@ _body = attest; | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -62,2 +59,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -67,3 +67,3 @@ .then(doc => new models.SendAttestResult(doc.body)) | ||
} | ||
sendAttestWithResponseUsingPOST(patientSsin, keystoreId, tokenId, passPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, hcpCbe, attest, date) { | ||
sendAttestWithResponseUsingPOST(patientSsin, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, hcpCbe, attest, date) { | ||
let _body = null; | ||
@@ -75,5 +75,2 @@ _body = attest; | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -89,2 +86,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -91,0 +91,0 @@ .then(doc => new models.SendAttestResultWithResponse(doc.body)) |
@@ -32,4 +32,6 @@ /** | ||
handleError(e: XHR.Data): void; | ||
sendBatchUsingGET(nihii: string, language: string, keystoreId: string, tokenId: string, passPhrase: string, ssin: string, firstName: string, lastName: string): Promise<Array<models.EfactMessage> | any>; | ||
sendBatchUsingPOST(keystoreId: string, tokenId: string, passPhrase: string, batch: models.InvoicesBatch): Promise<models.EfactSendResponse | any>; | ||
loadMessagesUsingGET(nihii: string, language: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, ssin: string, firstName: string, lastName: string): Promise<Array<models.EfactMessage> | any>; | ||
makeFlatFileTestUsingPOST(batch: models.InvoicesBatch): Promise<string | any>; | ||
makeFlatFileUsingPOST(batch: models.InvoicesBatch): Promise<string | any>; | ||
sendBatchUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, batch: models.InvoicesBatch): Promise<models.EfactSendResponse | any>; | ||
} |
@@ -40,3 +40,3 @@ /** | ||
} | ||
sendBatchUsingGET(nihii, language, keystoreId, tokenId, passPhrase, ssin, firstName, lastName) { | ||
loadMessagesUsingGET(nihii, language, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, ssin, firstName, lastName) { | ||
let _body = null; | ||
@@ -49,5 +49,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(ssin ? "&ssin=" + ssin : "") + | ||
@@ -60,2 +57,5 @@ (firstName ? "&firstName=" + firstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -65,12 +65,6 @@ .then(doc => doc.body.map(it => new models.EfactMessage(it))) | ||
} | ||
sendBatchUsingPOST(keystoreId, tokenId, passPhrase, batch) { | ||
makeFlatFileTestUsingPOST(batch) { | ||
let _body = null; | ||
_body = batch; | ||
const _url = this.host + | ||
"/efact/batch" + | ||
"?ts=" + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : ""); | ||
const _url = this.host + "/efact/flat/test" + "?ts=" + new Date().getTime(); | ||
let headers = this.headers; | ||
@@ -81,2 +75,29 @@ headers = headers | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
.then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
.catch(err => this.handleError(err)); | ||
} | ||
makeFlatFileUsingPOST(batch) { | ||
let _body = null; | ||
_body = batch; | ||
const _url = this.host + "/efact/flat" + "?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("POST", _url, headers, _body) | ||
.then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
.catch(err => this.handleError(err)); | ||
} | ||
sendBatchUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, batch) { | ||
let _body = null; | ||
_body = batch; | ||
const _url = this.host + "/efact/batch" + "?ts=" + new Date().getTime(); | ||
let headers = this.headers; | ||
headers = headers | ||
.filter(h => h.header !== "Content-Type") | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
.then(doc => new models.EfactSendResponse(doc.body)) | ||
@@ -83,0 +104,0 @@ .catch(err => this.handleError(err)); |
@@ -32,10 +32,10 @@ /** | ||
handleError(e: XHR.Data): void; | ||
deleteMessagesUsingPOST(keystoreId: string, tokenId: string, passPhrase: string, messageIds: Array<string>, source: string): Promise<boolean | any>; | ||
getFullMessageUsingGET(keystoreId: string, tokenId: string, passPhrase: string, boxId: string, messageId: string): Promise<models.Message | any>; | ||
getFullMessageUsingPOST(keystoreId: string, tokenId: string, passPhrase: string, boxId: string, messageId: string, alternateKeystores: models.AltKeystoresList): Promise<models.Message | any>; | ||
getInfosUsingGET(keystoreId: string, tokenId: string, passPhrase: string): Promise<models.BoxInfo | any>; | ||
loadMessagesUsingGET(keystoreId: string, tokenId: string, passPhrase: string, boxId: string, limit: number): Promise<Array<models.Message> | any>; | ||
loadMessagesUsingPOST(keystoreId: string, tokenId: string, passPhrase: string, boxId: string, limit: number, alternateKeystores: models.AltKeystoresList): Promise<Array<models.Message> | any>; | ||
moveMessagesUsingPOST(keystoreId: string, tokenId: string, passPhrase: string, messageIds: Array<string>, source: string, destination: string): Promise<boolean | any>; | ||
sendMessageUsingPOST(keystoreId: string, tokenId: string, passPhrase: string, publicationReceipt: boolean, receptionReceipt: boolean, readReceipt: boolean): Promise<boolean | any>; | ||
deleteMessagesUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, messageIds: Array<string>, source: string): Promise<boolean | any>; | ||
getFullMessageUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, boxId: string, messageId: string): Promise<models.Message | any>; | ||
getFullMessageUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, boxId: string, messageId: string, alternateKeystores: models.AltKeystoresList): Promise<models.Message | any>; | ||
getInfosUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string): Promise<models.BoxInfo | any>; | ||
loadMessagesUsingGET1(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, boxId: string, limit: number): Promise<Array<models.Message> | any>; | ||
loadMessagesUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, boxId: string, limit: number, alternateKeystores: models.AltKeystoresList): Promise<Array<models.Message> | any>; | ||
moveMessagesUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, messageIds: Array<string>, source: string, destination: string): Promise<boolean | any>; | ||
sendMessageUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, publicationReceipt: boolean, receptionReceipt: boolean, readReceipt: boolean): Promise<boolean | any>; | ||
} |
@@ -40,3 +40,3 @@ /** | ||
} | ||
deleteMessagesUsingPOST(keystoreId, tokenId, passPhrase, messageIds, source) { | ||
deleteMessagesUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, messageIds, source) { | ||
let _body = null; | ||
@@ -47,6 +47,3 @@ _body = messageIds; | ||
"?ts=" + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : ""); | ||
new Date().getTime(); | ||
let headers = this.headers; | ||
@@ -56,2 +53,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -61,3 +61,3 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
} | ||
getFullMessageUsingGET(keystoreId, tokenId, passPhrase, boxId, messageId) { | ||
getFullMessageUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, boxId, messageId) { | ||
let _body = null; | ||
@@ -69,6 +69,3 @@ const _url = this.host + | ||
"?ts=" + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : ""); | ||
new Date().getTime(); | ||
let headers = this.headers; | ||
@@ -78,2 +75,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -83,3 +83,3 @@ .then(doc => new models.Message(doc.body)) | ||
} | ||
getFullMessageUsingPOST(keystoreId, tokenId, passPhrase, boxId, messageId, alternateKeystores) { | ||
getFullMessageUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, boxId, messageId, alternateKeystores) { | ||
let _body = null; | ||
@@ -92,6 +92,3 @@ _body = alternateKeystores; | ||
"?ts=" + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : ""); | ||
new Date().getTime(); | ||
let headers = this.headers; | ||
@@ -101,2 +98,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -106,11 +106,5 @@ .then(doc => new models.Message(doc.body)) | ||
} | ||
getInfosUsingGET(keystoreId, tokenId, passPhrase) { | ||
getInfosUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase) { | ||
let _body = null; | ||
const _url = this.host + | ||
"/ehbox" + | ||
"?ts=" + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : ""); | ||
const _url = this.host + "/ehbox" + "?ts=" + new Date().getTime(); | ||
let headers = this.headers; | ||
@@ -120,2 +114,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -125,3 +122,3 @@ .then(doc => new models.BoxInfo(doc.body)) | ||
} | ||
loadMessagesUsingGET(keystoreId, tokenId, passPhrase, boxId, limit) { | ||
loadMessagesUsingGET1(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, boxId, limit) { | ||
let _body = null; | ||
@@ -132,5 +129,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(limit ? "&limit=" + limit : ""); | ||
@@ -141,2 +135,5 @@ let headers = this.headers; | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -146,3 +143,3 @@ .then(doc => doc.body.map(it => new models.Message(it))) | ||
} | ||
loadMessagesUsingPOST(keystoreId, tokenId, passPhrase, boxId, limit, alternateKeystores) { | ||
loadMessagesUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, boxId, limit, alternateKeystores) { | ||
let _body = null; | ||
@@ -154,5 +151,2 @@ _body = alternateKeystores; | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(limit ? "&limit=" + limit : ""); | ||
@@ -163,2 +157,5 @@ let headers = this.headers; | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -168,3 +165,3 @@ .then(doc => doc.body.map(it => new models.Message(it))) | ||
} | ||
moveMessagesUsingPOST(keystoreId, tokenId, passPhrase, messageIds, source, destination) { | ||
moveMessagesUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, messageIds, source, destination) { | ||
let _body = null; | ||
@@ -177,6 +174,3 @@ _body = messageIds; | ||
"?ts=" + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : ""); | ||
new Date().getTime(); | ||
let headers = this.headers; | ||
@@ -186,2 +180,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -191,3 +188,3 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
} | ||
sendMessageUsingPOST(keystoreId, tokenId, passPhrase, publicationReceipt, receptionReceipt, readReceipt) { | ||
sendMessageUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, publicationReceipt, receptionReceipt, readReceipt) { | ||
let _body = null; | ||
@@ -198,5 +195,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(publicationReceipt ? "&publicationReceipt=" + publicationReceipt : "") + | ||
@@ -209,2 +203,5 @@ (receptionReceipt ? "&receptionReceipt=" + receptionReceipt : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -211,0 +208,0 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) |
@@ -32,4 +32,4 @@ /** | ||
handleError(e: XHR.Data): void; | ||
getGeneralInsurabilityByMembershipUsingGET(io: string, ioMembership: string, tokenId: string, keystoreId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpName: string, hcpQuality?: string, date?: number, endDate?: number, hospitalized?: boolean): Promise<models.InsurabilityInfoDto | any>; | ||
getGeneralInsurabilityUsingGET(ssin: string, tokenId: string, keystoreId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpName: string, hcpQuality?: string, date?: number, endDate?: number, hospitalized?: boolean): Promise<models.InsurabilityInfoDto | any>; | ||
getGeneralInsurabilityByMembershipUsingGET(io: string, ioMembership: string, xFHCTokenId: string, xFHCKeystoreId: string, xFHCPassPhrase: string, hcpNihii: string, hcpSsin: string, hcpName: string, hcpQuality?: string, date?: number, endDate?: number, hospitalized?: boolean): Promise<models.InsurabilityInfoDto | any>; | ||
getGeneralInsurabilityUsingGET(ssin: string, xFHCTokenId: string, xFHCKeystoreId: string, xFHCPassPhrase: string, hcpNihii: string, hcpSsin: string, hcpName: string, hcpQuality?: string, date?: number, endDate?: number, hospitalized?: boolean): Promise<models.InsurabilityInfoDto | any>; | ||
} |
@@ -40,3 +40,3 @@ /** | ||
} | ||
getGeneralInsurabilityByMembershipUsingGET(io, ioMembership, tokenId, keystoreId, passPhrase, hcpNihii, hcpSsin, hcpName, hcpQuality, date, endDate, hospitalized) { | ||
getGeneralInsurabilityByMembershipUsingGET(io, ioMembership, xFHCTokenId, xFHCKeystoreId, xFHCPassPhrase, hcpNihii, hcpSsin, hcpName, hcpQuality, date, endDate, hospitalized) { | ||
let _body = null; | ||
@@ -49,5 +49,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -64,2 +61,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -69,3 +69,3 @@ .then(doc => new models.InsurabilityInfoDto(doc.body)) | ||
} | ||
getGeneralInsurabilityUsingGET(ssin, tokenId, keystoreId, passPhrase, hcpNihii, hcpSsin, hcpName, hcpQuality, date, endDate, hospitalized) { | ||
getGeneralInsurabilityUsingGET(ssin, xFHCTokenId, xFHCKeystoreId, xFHCPassPhrase, hcpNihii, hcpSsin, hcpName, hcpQuality, date, endDate, hospitalized) { | ||
let _body = null; | ||
@@ -76,5 +76,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -91,2 +88,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -93,0 +93,0 @@ .then(doc => new models.InsurabilityInfoDto(doc.body)) |
@@ -32,15 +32,15 @@ /** | ||
handleError(e: XHR.Data): void; | ||
getHcpConsentUsingGET(endpoint: string, keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpLastName: string, hcpFirstName: string, hcpSsin: string, hcpZip: string, hubPackageId?: string): Promise<models.HcPartyConsent | any>; | ||
getPatientConsentUsingGET1(endpoint: string, keystoreId: string, tokenId: string, passPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, patientSsin: string, hubPackageId?: string): Promise<models.Consent | any>; | ||
getPatientUsingGET(endpoint: string, keystoreId: string, tokenId: string, passPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, patientSsin: string, hubPackageId?: string): Promise<models.Patient | any>; | ||
getTherapeuticLinksUsingGET(endpoint: string, keystoreId: string, tokenId: string, passPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, patientSsin: string, hubPackageId?: string, therLinkType?: string, from?: Date, to?: Date): Promise<Array<models.TherapeuticLink> | any>; | ||
getTransactionSetUsingGET(endpoint: string, keystoreId: string, tokenId: string, passPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, ssin: string, sv: string, sl: string, id: string, hubPackageId?: string, breakTheGlassReason?: string): Promise<string | any>; | ||
getTransactionUsingGET(endpoint: string, keystoreId: string, tokenId: string, passPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, ssin: string, sv: string, sl: string, id: string, hubPackageId?: string, breakTheGlassReason?: string): Promise<string | any>; | ||
getTransactionsListUsingGET(endpoint: string, keystoreId: string, tokenId: string, passPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, patientSsin: string, hubPackageId?: string, from?: number, to?: number, authorNihii?: string, authorSsin?: string, isGlobal?: boolean, breakTheGlassReason?: string): Promise<Array<models.TransactionSummary> | any>; | ||
putPatientUsingPOST(endpoint: string, keystoreId: string, tokenId: string, passPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, patientSsin: string, firstName: string, lastName: string, gender: string, dateOfBirth: number, hubPackageId?: string): Promise<models.Patient | any>; | ||
putTransactionSetUsingPOST(endpoint: string, keystoreId: string, tokenId: string, passPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, hubId: number, patientSsin: string, message: string, hubPackageId?: string, hubApplication?: string): Promise<models.PutTransactionSetResponse | any>; | ||
putTransactionUsingPOST(endpoint: string, keystoreId: string, tokenId: string, passPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, hubId: number, patientSsin: string, message: string, hubPackageId?: string, hubApplication?: string): Promise<models.TransactionIdType | any>; | ||
registerPatientConsentUsingPOST1(endpoint: string, keystoreId: string, tokenId: string, passPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, patientSsin: string, hubPackageId?: string, patientEidCardNumber?: string): Promise<any | Boolean>; | ||
registerTherapeuticLinkUsingPOST(endpoint: string, keystoreId: string, tokenId: string, passPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, patientSsin: string, hubPackageId?: string, patientEidCardNumber?: string): Promise<any | Boolean>; | ||
revokeTransactionUsingDELETE(endpoint: string, keystoreId: string, tokenId: string, passPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, ssin: string, sv: string, sl: string, id: string, hubPackageId?: string, breakTheGlassReason?: string): Promise<string | any>; | ||
getHcpConsentUsingGET(endpoint: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpNihii: string, hcpLastName: string, hcpFirstName: string, hcpSsin: string, hcpZip: string, hubPackageId?: string): Promise<models.HcPartyConsent | any>; | ||
getPatientConsentUsingGET1(endpoint: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, patientSsin: string, hubPackageId?: string): Promise<models.Consent | any>; | ||
getPatientUsingGET(endpoint: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, patientSsin: string, hubPackageId?: string): Promise<models.Patient | any>; | ||
getTherapeuticLinksUsingGET(endpoint: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, patientSsin: string, hubPackageId?: string, therLinkType?: string, from?: Date, to?: Date): Promise<Array<models.TherapeuticLink> | any>; | ||
getTransactionSetUsingGET(endpoint: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, ssin: string, sv: string, sl: string, id: string, hubPackageId?: string, breakTheGlassReason?: string): Promise<string | any>; | ||
getTransactionUsingGET(endpoint: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, ssin: string, sv: string, sl: string, id: string, hubPackageId?: string, breakTheGlassReason?: string): Promise<string | any>; | ||
getTransactionsListUsingGET(endpoint: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, patientSsin: string, hubPackageId?: string, from?: number, to?: number, authorNihii?: string, authorSsin?: string, isGlobal?: boolean, breakTheGlassReason?: string): Promise<Array<models.TransactionSummary> | any>; | ||
putPatientUsingPOST(endpoint: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, patientSsin: string, firstName: string, lastName: string, gender: string, dateOfBirth: number, hubPackageId?: string): Promise<models.Patient | any>; | ||
putTransactionSetUsingPOST(endpoint: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, hubId: number, patientSsin: string, message: string, hubPackageId?: string, hubApplication?: string): Promise<models.PutTransactionSetResponse | any>; | ||
putTransactionUsingPOST(endpoint: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, hubId: number, patientSsin: string, message: string, hubPackageId?: string, hubApplication?: string): Promise<models.TransactionIdType | any>; | ||
registerPatientConsentUsingPOST1(endpoint: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, patientSsin: string, hubPackageId?: string, patientEidCardNumber?: string): Promise<any | Boolean>; | ||
registerTherapeuticLinkUsingPOST(endpoint: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, patientSsin: string, hubPackageId?: string, patientEidCardNumber?: string): Promise<any | Boolean>; | ||
revokeTransactionUsingDELETE(endpoint: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, ssin: string, sv: string, sl: string, id: string, hubPackageId?: string, breakTheGlassReason?: string): Promise<string | any>; | ||
} |
@@ -40,3 +40,3 @@ /** | ||
} | ||
getHcpConsentUsingGET(endpoint, keystoreId, tokenId, passPhrase, hcpNihii, hcpLastName, hcpFirstName, hcpSsin, hcpZip, hubPackageId) { | ||
getHcpConsentUsingGET(endpoint, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpNihii, hcpLastName, hcpFirstName, hcpSsin, hcpZip, hubPackageId) { | ||
let _body = null; | ||
@@ -48,5 +48,2 @@ const _url = this.host + | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -61,2 +58,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -66,3 +66,3 @@ .then(doc => new models.HcPartyConsent(doc.body)) | ||
} | ||
getPatientConsentUsingGET1(endpoint, keystoreId, tokenId, passPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, patientSsin, hubPackageId) { | ||
getPatientConsentUsingGET1(endpoint, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, patientSsin, hubPackageId) { | ||
let _body = null; | ||
@@ -74,5 +74,2 @@ const _url = this.host + | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -88,2 +85,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -93,3 +93,3 @@ .then(doc => new models.Consent(doc.body)) | ||
} | ||
getPatientUsingGET(endpoint, keystoreId, tokenId, passPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, patientSsin, hubPackageId) { | ||
getPatientUsingGET(endpoint, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, patientSsin, hubPackageId) { | ||
let _body = null; | ||
@@ -101,5 +101,2 @@ const _url = this.host + | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -115,2 +112,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -120,3 +120,3 @@ .then(doc => new models.Patient(doc.body)) | ||
} | ||
getTherapeuticLinksUsingGET(endpoint, keystoreId, tokenId, passPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, patientSsin, hubPackageId, therLinkType, from, to) { | ||
getTherapeuticLinksUsingGET(endpoint, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, patientSsin, hubPackageId, therLinkType, from, to) { | ||
let _body = null; | ||
@@ -130,5 +130,2 @@ const _url = this.host + | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -146,2 +143,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -151,3 +151,3 @@ .then(doc => doc.body.map(it => new models.TherapeuticLink(it))) | ||
} | ||
getTransactionSetUsingGET(endpoint, keystoreId, tokenId, passPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, ssin, sv, sl, id, hubPackageId, breakTheGlassReason) { | ||
getTransactionSetUsingGET(endpoint, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, ssin, sv, sl, id, hubPackageId, breakTheGlassReason) { | ||
let _body = null; | ||
@@ -162,5 +162,2 @@ const _url = this.host + | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -178,2 +175,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -183,3 +183,3 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
} | ||
getTransactionUsingGET(endpoint, keystoreId, tokenId, passPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, ssin, sv, sl, id, hubPackageId, breakTheGlassReason) { | ||
getTransactionUsingGET(endpoint, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, ssin, sv, sl, id, hubPackageId, breakTheGlassReason) { | ||
let _body = null; | ||
@@ -194,5 +194,2 @@ const _url = this.host + | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -210,2 +207,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -215,3 +215,3 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
} | ||
getTransactionsListUsingGET(endpoint, keystoreId, tokenId, passPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, patientSsin, hubPackageId, from, to, authorNihii, authorSsin, isGlobal, breakTheGlassReason) { | ||
getTransactionsListUsingGET(endpoint, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, patientSsin, hubPackageId, from, to, authorNihii, authorSsin, isGlobal, breakTheGlassReason) { | ||
let _body = null; | ||
@@ -223,5 +223,2 @@ const _url = this.host + | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -243,2 +240,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -248,3 +248,3 @@ .then(doc => doc.body.map(it => new models.TransactionSummary(it))) | ||
} | ||
putPatientUsingPOST(endpoint, keystoreId, tokenId, passPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, patientSsin, firstName, lastName, gender, dateOfBirth, hubPackageId) { | ||
putPatientUsingPOST(endpoint, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, patientSsin, firstName, lastName, gender, dateOfBirth, hubPackageId) { | ||
let _body = null; | ||
@@ -258,5 +258,2 @@ const _url = this.host + | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -275,2 +272,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -280,3 +280,3 @@ .then(doc => new models.Patient(doc.body)) | ||
} | ||
putTransactionSetUsingPOST(endpoint, keystoreId, tokenId, passPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, hubId, patientSsin, message, hubPackageId, hubApplication) { | ||
putTransactionSetUsingPOST(endpoint, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, hubId, patientSsin, message, hubPackageId, hubApplication) { | ||
let _body = null; | ||
@@ -291,5 +291,2 @@ _body = message; | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -306,2 +303,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -311,3 +311,3 @@ .then(doc => new models.PutTransactionSetResponse(doc.body)) | ||
} | ||
putTransactionUsingPOST(endpoint, keystoreId, tokenId, passPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, hubId, patientSsin, message, hubPackageId, hubApplication) { | ||
putTransactionUsingPOST(endpoint, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, hubId, patientSsin, message, hubPackageId, hubApplication) { | ||
let _body = null; | ||
@@ -322,5 +322,2 @@ _body = message; | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -337,2 +334,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/xml")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -342,3 +342,3 @@ .then(doc => new models.TransactionIdType(doc.body)) | ||
} | ||
registerPatientConsentUsingPOST1(endpoint, keystoreId, tokenId, passPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, patientSsin, hubPackageId, patientEidCardNumber) { | ||
registerPatientConsentUsingPOST1(endpoint, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, patientSsin, hubPackageId, patientEidCardNumber) { | ||
let _body = null; | ||
@@ -350,5 +350,2 @@ const _url = this.host + | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -365,2 +362,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -370,3 +370,3 @@ .then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true)) | ||
} | ||
registerTherapeuticLinkUsingPOST(endpoint, keystoreId, tokenId, passPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, patientSsin, hubPackageId, patientEidCardNumber) { | ||
registerTherapeuticLinkUsingPOST(endpoint, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, patientSsin, hubPackageId, patientEidCardNumber) { | ||
let _body = null; | ||
@@ -380,5 +380,2 @@ const _url = this.host + | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -394,2 +391,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -399,3 +399,3 @@ .then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true)) | ||
} | ||
revokeTransactionUsingDELETE(endpoint, keystoreId, tokenId, passPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, ssin, sv, sl, id, hubPackageId, breakTheGlassReason) { | ||
revokeTransactionUsingDELETE(endpoint, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, ssin, sv, sl, id, hubPackageId, breakTheGlassReason) { | ||
let _body = null; | ||
@@ -410,5 +410,2 @@ const _url = this.host + | ||
(endpoint ? "&endpoint=" + endpoint : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
@@ -426,2 +423,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("DELETE", _url, headers, _body) | ||
@@ -428,0 +428,0 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) |
@@ -32,10 +32,10 @@ /** | ||
handleError(e: XHR.Data): void; | ||
createPrescriptionUsingPOST(keystoreId: string, tokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, passPhrase: string, prescription: models.PrescriptionRequest): Promise<models.Prescription | any>; | ||
createPrescriptionUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, xFHCPassPhrase: string, prescription: models.PrescriptionRequest): Promise<models.Prescription | any>; | ||
getGalToAdministrationUnitUsingGET(galId: string): Promise<models.Code | any>; | ||
getPrescriptionUsingGET(rid: string): Promise<models.PrescriptionFullWithFeedback | any>; | ||
listFeedbacksUsingGET(keystoreId: string, tokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, passPhrase: string): Promise<Array<models.Feedback> | any>; | ||
listOpenPrescriptionsUsingGET(keystoreId: string, tokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, passPhrase: string): Promise<Array<models.Prescription> | any>; | ||
revokePrescriptionUsingDELETE(keystoreId: string, tokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, passPhrase: string, rid: string, reason: string): Promise<any | Boolean>; | ||
sendNotificationUsingPOST(keystoreId: string, tokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, passPhrase: string, rid: string, patientId?: string, executorId?: string, text?: string): Promise<any | Boolean>; | ||
updateFeedbackFlagUsingPUT(keystoreId: string, tokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, passPhrase: string, rid: string, feedbackFlag: boolean): Promise<any | Boolean>; | ||
listFeedbacksUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, xFHCPassPhrase: string): Promise<Array<models.Feedback> | any>; | ||
listOpenPrescriptionsUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, xFHCPassPhrase: string): Promise<Array<models.Prescription> | any>; | ||
revokePrescriptionUsingDELETE(xFHCKeystoreId: string, xFHCTokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, xFHCPassPhrase: string, rid: string, reason: string): Promise<any | Boolean>; | ||
sendNotificationUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, xFHCPassPhrase: string, rid: string, patientId?: string, executorId?: string, text?: string): Promise<any | Boolean>; | ||
updateFeedbackFlagUsingPUT(xFHCKeystoreId: string, xFHCTokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, xFHCPassPhrase: string, rid: string, feedbackFlag: boolean): Promise<any | Boolean>; | ||
} |
@@ -40,3 +40,3 @@ /** | ||
} | ||
createPrescriptionUsingPOST(keystoreId, tokenId, hcpQuality, hcpNihii, hcpSsin, hcpName, passPhrase, prescription) { | ||
createPrescriptionUsingPOST(xFHCKeystoreId, xFHCTokenId, hcpQuality, hcpNihii, hcpSsin, hcpName, xFHCPassPhrase, prescription) { | ||
let _body = null; | ||
@@ -48,9 +48,6 @@ _body = prescription; | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
(hcpName ? "&hcpName=" + hcpName : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : ""); | ||
(hcpName ? "&hcpName=" + hcpName : ""); | ||
let headers = this.headers; | ||
@@ -60,2 +57,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -90,3 +90,3 @@ .then(doc => new models.Prescription(doc.body)) | ||
} | ||
listFeedbacksUsingGET(keystoreId, tokenId, hcpQuality, hcpNihii, hcpSsin, hcpName, passPhrase) { | ||
listFeedbacksUsingGET(xFHCKeystoreId, xFHCTokenId, hcpQuality, hcpNihii, hcpSsin, hcpName, xFHCPassPhrase) { | ||
let _body = null; | ||
@@ -97,9 +97,6 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
(hcpName ? "&hcpName=" + hcpName : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : ""); | ||
(hcpName ? "&hcpName=" + hcpName : ""); | ||
let headers = this.headers; | ||
@@ -109,2 +106,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -114,3 +114,3 @@ .then(doc => doc.body.map(it => new models.Feedback(it))) | ||
} | ||
listOpenPrescriptionsUsingGET(keystoreId, tokenId, hcpQuality, hcpNihii, hcpSsin, hcpName, passPhrase) { | ||
listOpenPrescriptionsUsingGET(xFHCKeystoreId, xFHCTokenId, hcpQuality, hcpNihii, hcpSsin, hcpName, xFHCPassPhrase) { | ||
let _body = null; | ||
@@ -121,9 +121,6 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
(hcpName ? "&hcpName=" + hcpName : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : ""); | ||
(hcpName ? "&hcpName=" + hcpName : ""); | ||
let headers = this.headers; | ||
@@ -133,2 +130,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -138,3 +138,3 @@ .then(doc => doc.body.map(it => new models.Prescription(it))) | ||
} | ||
revokePrescriptionUsingDELETE(keystoreId, tokenId, hcpQuality, hcpNihii, hcpSsin, hcpName, passPhrase, rid, reason) { | ||
revokePrescriptionUsingDELETE(xFHCKeystoreId, xFHCTokenId, hcpQuality, hcpNihii, hcpSsin, hcpName, xFHCPassPhrase, rid, reason) { | ||
let _body = null; | ||
@@ -145,4 +145,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") + | ||
@@ -152,3 +150,2 @@ (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
(hcpName ? "&hcpName=" + hcpName : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(reason ? "&reason=" + reason : ""); | ||
@@ -159,2 +156,5 @@ let headers = this.headers; | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("DELETE", _url, headers, _body) | ||
@@ -164,3 +164,3 @@ .then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true)) | ||
} | ||
sendNotificationUsingPOST(keystoreId, tokenId, hcpQuality, hcpNihii, hcpSsin, hcpName, passPhrase, rid, patientId, executorId, text) { | ||
sendNotificationUsingPOST(xFHCKeystoreId, xFHCTokenId, hcpQuality, hcpNihii, hcpSsin, hcpName, xFHCPassPhrase, rid, patientId, executorId, text) { | ||
let _body = null; | ||
@@ -171,4 +171,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") + | ||
@@ -178,3 +176,2 @@ (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
(hcpName ? "&hcpName=" + hcpName : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(patientId ? "&patientId=" + patientId : "") + | ||
@@ -187,2 +184,5 @@ (executorId ? "&executorId=" + executorId : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -192,3 +192,3 @@ .then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true)) | ||
} | ||
updateFeedbackFlagUsingPUT(keystoreId, tokenId, hcpQuality, hcpNihii, hcpSsin, hcpName, passPhrase, rid, feedbackFlag) { | ||
updateFeedbackFlagUsingPUT(xFHCKeystoreId, xFHCTokenId, hcpQuality, hcpNihii, hcpSsin, hcpName, xFHCPassPhrase, rid, feedbackFlag) { | ||
let _body = null; | ||
@@ -201,9 +201,6 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
(hcpName ? "&hcpName=" + hcpName : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : ""); | ||
(hcpName ? "&hcpName=" + hcpName : ""); | ||
let headers = this.headers; | ||
@@ -213,2 +210,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("PUT", _url, headers, _body) | ||
@@ -215,0 +215,0 @@ .then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true)) |
@@ -32,7 +32,7 @@ /** | ||
handleError(e: XHR.Data): void; | ||
checkKeystoreExistUsingGET(keystoreId: string): Promise<boolean | any>; | ||
checkTokenValidUsingGET(tokenId: string): Promise<boolean | any>; | ||
registerTokenUsingPOST(token: string, tokenId: string): Promise<any | Boolean>; | ||
requestTokenUsingGET(passPhrase: string, ssin: string, keystoreId: string, isMedicalHouse?: boolean): Promise<models.SamlTokenResult | any>; | ||
checkKeystoreExistUsingGET(xFHCKeystoreId: string): Promise<boolean | any>; | ||
checkTokenValidUsingGET(xFHCTokenId: string): Promise<boolean | any>; | ||
registerTokenUsingPOST(xFHCTokenId: string, token: string): Promise<any | Boolean>; | ||
requestTokenUsingGET(xFHCKeystoreId: string, xFHCPassPhrase: string, ssin: string, isMedicalHouse?: boolean): Promise<models.SamlTokenResult | any>; | ||
uploadKeystoreUsingPOST(file: any): Promise<models.UUIDType | any>; | ||
} |
@@ -40,8 +40,5 @@ /** | ||
} | ||
checkKeystoreExistUsingGET(keystoreId) { | ||
checkKeystoreExistUsingGET(xFHCKeystoreId) { | ||
let _body = null; | ||
const _url = this.host + | ||
"/sts/keystore/check/{keystoreId}".replace("{keystoreId}", keystoreId + "") + | ||
"?ts=" + | ||
new Date().getTime(); | ||
const _url = this.host + "/sts/keystore/check" + "?ts=" + new Date().getTime(); | ||
let headers = this.headers; | ||
@@ -51,2 +48,3 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -56,8 +54,5 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
} | ||
checkTokenValidUsingGET(tokenId) { | ||
checkTokenValidUsingGET(xFHCTokenId) { | ||
let _body = null; | ||
const _url = this.host + | ||
"/sts/token/check/{tokenId}".replace("{tokenId}", tokenId + "") + | ||
"?ts=" + | ||
new Date().getTime(); | ||
const _url = this.host + "/sts/token/check" + "?ts=" + new Date().getTime(); | ||
let headers = this.headers; | ||
@@ -67,2 +62,3 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -72,9 +68,6 @@ .then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
} | ||
registerTokenUsingPOST(token, tokenId) { | ||
registerTokenUsingPOST(xFHCTokenId, token) { | ||
let _body = null; | ||
_body = token; | ||
const _url = this.host + | ||
"/sts/token/{tokenId}".replace("{tokenId}", tokenId + "") + | ||
"?ts=" + | ||
new Date().getTime(); | ||
const _url = this.host + "/sts/token" + "?ts=" + new Date().getTime(); | ||
let headers = this.headers; | ||
@@ -84,2 +77,3 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -89,9 +83,8 @@ .then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true)) | ||
} | ||
requestTokenUsingGET(passPhrase, ssin, keystoreId, isMedicalHouse) { | ||
requestTokenUsingGET(xFHCKeystoreId, xFHCPassPhrase, ssin, isMedicalHouse) { | ||
let _body = null; | ||
const _url = this.host + | ||
"/sts/token/{keystoreId}".replace("{keystoreId}", keystoreId + "") + | ||
"/sts/token" + | ||
"?ts=" + | ||
new Date().getTime() + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(ssin ? "&ssin=" + ssin : "") + | ||
@@ -103,2 +96,4 @@ (isMedicalHouse ? "&isMedicalHouse=" + isMedicalHouse : ""); | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -105,0 +100,0 @@ .then(doc => new models.SamlTokenResult(doc.body)) |
@@ -32,3 +32,3 @@ /** | ||
handleError(e: XHR.Data): void; | ||
consultTarificationUsingPOST(ssin: string, tokenId: string, keystoreId: string, passPhrase: string, hcpFirstName: string, hcpLastName: string, hcpNihii: string, hcpSsin: string, codes: Array<string>, date?: number, gmdNihii?: string, justification?: string): Promise<models.TarificationConsultationResult | any>; | ||
consultTarificationUsingPOST(ssin: string, xFHCTokenId: string, xFHCKeystoreId: string, xFHCPassPhrase: string, hcpFirstName: string, hcpLastName: string, hcpNihii: string, hcpSsin: string, codes: Array<string>, date?: number, gmdNihii?: string, justification?: string): Promise<models.TarificationConsultationResult | any>; | ||
} |
@@ -40,3 +40,3 @@ /** | ||
} | ||
consultTarificationUsingPOST(ssin, tokenId, keystoreId, passPhrase, hcpFirstName, hcpLastName, hcpNihii, hcpSsin, codes, date, gmdNihii, justification) { | ||
consultTarificationUsingPOST(ssin, xFHCTokenId, xFHCKeystoreId, xFHCPassPhrase, hcpFirstName, hcpLastName, hcpNihii, hcpSsin, codes, date, gmdNihii, justification) { | ||
let _body = null; | ||
@@ -48,5 +48,2 @@ _body = codes; | ||
new Date().getTime() + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
@@ -63,2 +60,5 @@ (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -65,0 +65,0 @@ .then(doc => new models.TarificationConsultationResult(doc.body)) |
@@ -32,8 +32,8 @@ /** | ||
handleError(e: XHR.Data): void; | ||
doesLinkExistUsingPOST(keystoreId: string, tokenId: string, passPhrase: string, therLink: models.TherapeuticLinkDto): Promise<models.TherapeuticLinkDto | any>; | ||
getAllTherapeuticLinksUsingGET(keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientSsin: string, patientFirstName: string, patientLastName: string, eidCardNumber?: string, isiCardNumber?: string, startDate?: Date, endDate?: Date, type?: string, sign?: boolean): Promise<Array<models.TherapeuticLinkMessageDto> | any>; | ||
getAllTherapeuticLinksWithQueryLinkUsingPOST(keystoreId: string, tokenId: string, passPhrase: string, queryLink: models.TherapeuticLinkDto, sign?: boolean): Promise<Array<models.TherapeuticLinkMessageDto> | any>; | ||
registerTherapeuticLinkUsingPOST1(keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientSsin: string, patientFirstName: string, patientLastName: string, eidCardNumber?: string, isiCardNumber?: string, start?: Date, end?: Date, therLinkType?: string, comment?: string, sign?: boolean): Promise<models.TherapeuticLinkMessageDto | any>; | ||
revokeLinkUsingPOST(keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientSsin: string, patientFirstName: string, patientLastName: string, eidCardNumber?: string, isiCardNumber?: string, start?: Date, end?: Date, therLinkType?: string, comment?: string, sign?: boolean): Promise<models.TherapeuticLinkMessageDto | any>; | ||
revokeLinkUsingPOST1(keystoreId: string, tokenId: string, passPhrase: string, therLink: models.TherapeuticLinkDto, sign?: boolean): Promise<models.TherapeuticLinkMessageDto | any>; | ||
doesLinkExistUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, therLink: models.TherapeuticLinkDto): Promise<models.TherapeuticLinkDto | any>; | ||
getAllTherapeuticLinksUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientSsin: string, patientFirstName: string, patientLastName: string, eidCardNumber?: string, isiCardNumber?: string, startDate?: Date, endDate?: Date, type?: string, sign?: boolean): Promise<Array<models.TherapeuticLinkMessageDto> | any>; | ||
getAllTherapeuticLinksWithQueryLinkUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, queryLink: models.TherapeuticLinkDto, sign?: boolean): Promise<Array<models.TherapeuticLinkMessageDto> | any>; | ||
registerTherapeuticLinkUsingPOST1(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientSsin: string, patientFirstName: string, patientLastName: string, eidCardNumber?: string, isiCardNumber?: string, start?: Date, end?: Date, therLinkType?: string, comment?: string, sign?: boolean): Promise<models.TherapeuticLinkMessageDto | any>; | ||
revokeLinkUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientSsin: string, patientFirstName: string, patientLastName: string, eidCardNumber?: string, isiCardNumber?: string, start?: Date, end?: Date, therLinkType?: string, comment?: string, sign?: boolean): Promise<models.TherapeuticLinkMessageDto | any>; | ||
revokeLinkUsingPOST1(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, therLink: models.TherapeuticLinkDto, sign?: boolean): Promise<models.TherapeuticLinkMessageDto | any>; | ||
} |
@@ -40,12 +40,6 @@ /** | ||
} | ||
doesLinkExistUsingPOST(keystoreId, tokenId, passPhrase, therLink) { | ||
doesLinkExistUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, therLink) { | ||
let _body = null; | ||
_body = therLink; | ||
const _url = this.host + | ||
"/therlink/check" + | ||
"?ts=" + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : ""); | ||
const _url = this.host + "/therlink/check" + "?ts=" + new Date().getTime(); | ||
let headers = this.headers; | ||
@@ -55,2 +49,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -60,3 +57,3 @@ .then(doc => new models.TherapeuticLinkDto(doc.body)) | ||
} | ||
getAllTherapeuticLinksUsingGET(keystoreId, tokenId, passPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, patientSsin, patientFirstName, patientLastName, eidCardNumber, isiCardNumber, startDate, endDate, type, sign) { | ||
getAllTherapeuticLinksUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, patientSsin, patientFirstName, patientLastName, eidCardNumber, isiCardNumber, startDate, endDate, type, sign) { | ||
let _body = null; | ||
@@ -69,5 +66,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
@@ -88,2 +82,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
@@ -93,13 +90,6 @@ .then(doc => doc.body.map(it => new models.TherapeuticLinkMessageDto(it))) | ||
} | ||
getAllTherapeuticLinksWithQueryLinkUsingPOST(keystoreId, tokenId, passPhrase, queryLink, sign) { | ||
getAllTherapeuticLinksWithQueryLinkUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, queryLink, sign) { | ||
let _body = null; | ||
_body = queryLink; | ||
const _url = this.host + | ||
"/therlink/query" + | ||
"?ts=" + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(sign ? "&sign=" + sign : ""); | ||
const _url = this.host + "/therlink/query" + "?ts=" + new Date().getTime() + (sign ? "&sign=" + sign : ""); | ||
let headers = this.headers; | ||
@@ -109,2 +99,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -114,3 +107,3 @@ .then(doc => doc.body.map(it => new models.TherapeuticLinkMessageDto(it))) | ||
} | ||
registerTherapeuticLinkUsingPOST1(keystoreId, tokenId, passPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, patientSsin, patientFirstName, patientLastName, eidCardNumber, isiCardNumber, start, end, therLinkType, comment, sign) { | ||
registerTherapeuticLinkUsingPOST1(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, patientSsin, patientFirstName, patientLastName, eidCardNumber, isiCardNumber, start, end, therLinkType, comment, sign) { | ||
let _body = null; | ||
@@ -121,5 +114,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") + | ||
@@ -143,2 +133,5 @@ (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -148,3 +141,3 @@ .then(doc => new models.TherapeuticLinkMessageDto(doc.body)) | ||
} | ||
revokeLinkUsingPOST(keystoreId, tokenId, passPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, patientSsin, patientFirstName, patientLastName, eidCardNumber, isiCardNumber, start, end, therLinkType, comment, sign) { | ||
revokeLinkUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, patientSsin, patientFirstName, patientLastName, eidCardNumber, isiCardNumber, start, end, therLinkType, comment, sign) { | ||
let _body = null; | ||
@@ -157,5 +150,2 @@ const _url = this.host + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") + | ||
@@ -177,2 +167,5 @@ (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -182,13 +175,6 @@ .then(doc => new models.TherapeuticLinkMessageDto(doc.body)) | ||
} | ||
revokeLinkUsingPOST1(keystoreId, tokenId, passPhrase, therLink, sign) { | ||
revokeLinkUsingPOST1(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, therLink, sign) { | ||
let _body = null; | ||
_body = therLink; | ||
const _url = this.host + | ||
"/therlink/revoke" + | ||
"?ts=" + | ||
new Date().getTime() + | ||
(keystoreId ? "&keystoreId=" + keystoreId : "") + | ||
(tokenId ? "&tokenId=" + tokenId : "") + | ||
(passPhrase ? "&passPhrase=" + passPhrase : "") + | ||
(sign ? "&sign=" + sign : ""); | ||
const _url = this.host + "/therlink/revoke" + "?ts=" + new Date().getTime() + (sign ? "&sign=" + sign : ""); | ||
let headers = this.headers; | ||
@@ -198,2 +184,5 @@ headers = headers | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
@@ -200,0 +189,0 @@ .then(doc => new models.TherapeuticLinkMessageDto(doc.body)) |
@@ -31,4 +31,4 @@ /** | ||
transactions?: Array<models.AgreementTransaction>; | ||
transactions$freehealthConnector?: Array<models.AgreementTransaction>; | ||
transactions$freehealthConnectorMain?: Array<models.AgreementTransaction>; | ||
warnings?: models.CollectionProblem; | ||
} |
@@ -31,2 +31,3 @@ /** | ||
identificationNumber?: string; | ||
insuranceCode?: string; | ||
insuranceId?: string; | ||
@@ -33,0 +34,0 @@ parameters?: { |
@@ -27,2 +27,3 @@ /** | ||
constructor(json: JSON | any); | ||
hospitalisedPatient?: boolean; | ||
invoiceNumber?: number; | ||
@@ -29,0 +30,0 @@ invoiceRef?: string; |
@@ -26,2 +26,3 @@ /** | ||
constructor(json: JSON | any); | ||
cs?: boolean; | ||
label?: string; | ||
@@ -28,0 +29,0 @@ length?: number; |
@@ -39,5 +39,5 @@ /** | ||
transactions$freehealthConnector?: Array<models.AgreementTransaction> | ||
transactions$freehealthConnectorMain?: Array<models.AgreementTransaction> | ||
warnings?: models.CollectionProblem | ||
} |
@@ -6,4 +6,4 @@ /** | ||
* OpenAPI spec version: 1.0 | ||
* | ||
* | ||
* | ||
* NOTE: This class is auto generated by the swagger code generator program. | ||
@@ -28,3 +28,3 @@ * https://github.com/swagger-api/swagger-codegen.git | ||
export class Insurability { | ||
export class Insurability { | ||
constructor(json: JSON | any) { | ||
@@ -43,2 +43,4 @@ Object.assign(this as Insurability, json) | ||
insuranceCode?: string | ||
insuranceId?: string | ||
@@ -45,0 +47,0 @@ |
@@ -31,2 +31,4 @@ /** | ||
} | ||
hospitalisedPatient?: boolean | ||
invoiceNumber?: number | ||
@@ -33,0 +35,0 @@ |
@@ -31,2 +31,4 @@ /** | ||
} | ||
cs?: boolean | ||
label?: string | ||
@@ -33,0 +35,0 @@ |
{ | ||
"name": "fhc-api", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Typescript version of Freehealth Connector standalone API client", | ||
@@ -23,2 +23,3 @@ "main": "dist/index.js", | ||
"gen": "java -classpath swagger-codegen-cli.jar io.swagger.codegen.SwaggerCodegen generate -i https://fhcacc.icure.cloud/v2/api-docs -l typescript --additional-properties classPrefix=fhc -o ./", | ||
"genloc": "java -classpath swagger-codegen-cli.jar io.swagger.codegen.SwaggerCodegen generate -i http://127.0.0.1:8090/v2/api-docs -l typescript --additional-properties classPrefix=fhc -o ./", | ||
"test": "mocha --require ts-node/register --watch-extensions ts 'test/**/*.ts'", | ||
@@ -25,0 +26,0 @@ "build": "tsc", |
Sorry, the diff of this file is not supported yet
15955062
19512