New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fhc-api

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fhc-api - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

204

api/fhcAddressbookcontrollerApi.ts

@@ -6,4 +6,4 @@ /**

* OpenAPI spec version: 1.0
*
*
*
* NOTE: This class is auto generated by the swagger code generator program.

@@ -46,66 +46,186 @@ * https://github.com/swagger-api/swagger-codegen.git

getHcpByNihiiUsingGET(keystoreId: string, tokenId: string, passPhrase: string, nihii: string, language?: string): Promise<models.HealthcareParty | any> {
getHcpByNihiiUsingGET(
keystoreId: string,
tokenId: string,
passPhrase: string,
nihii: string,
language?: string
): Promise<models.HealthcareParty | any> {
let _body = null
const _url = this.host + "/ab/hcp/nihii/{nihii}".replace("{nihii}", nihii+"") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (language ? "&language=" + language : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
.then(doc => new models.HealthcareParty(doc.body as JSON))
const _url =
this.host +
"/ab/hcp/nihii/{nihii}".replace("{nihii}", nihii + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(language ? "&language=" + language : "")
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.HealthcareParty(doc.body as JSON))
.catch(err => this.handleError(err))
}
getHcpBySsinUsingGET(keystoreId: string, tokenId: string, passPhrase: string, ssin: string, language?: string): Promise<models.HealthcareParty | any> {
}
getHcpBySsinUsingGET(
keystoreId: string,
tokenId: string,
passPhrase: string,
ssin: string,
language?: string
): Promise<models.HealthcareParty | any> {
let _body = null
const _url = this.host + "/ab/hcp/ssin/{ssin}".replace("{ssin}", ssin+"") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (language ? "&language=" + language : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
.then(doc => new models.HealthcareParty(doc.body as JSON))
const _url =
this.host +
"/ab/hcp/ssin/{ssin}".replace("{ssin}", ssin + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(language ? "&language=" + language : "")
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.HealthcareParty(doc.body as JSON))
.catch(err => this.handleError(err))
}
getOrgByCbeUsingGET(keystoreId: string, tokenId: string, passPhrase: string, cbe: string, language?: string): Promise<models.HealthcareParty | any> {
}
getOrgByCbeUsingGET(
keystoreId: string,
tokenId: string,
passPhrase: string,
cbe: string,
language?: string
): Promise<models.HealthcareParty | any> {
let _body = null
const _url = this.host + "/ab/org/cbe/{cbe}".replace("{cbe}", cbe+"") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (language ? "&language=" + language : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
.then(doc => new models.HealthcareParty(doc.body as JSON))
const _url =
this.host +
"/ab/org/cbe/{cbe}".replace("{cbe}", cbe + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(language ? "&language=" + language : "")
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.HealthcareParty(doc.body as JSON))
.catch(err => this.handleError(err))
}
getOrgByEhpUsingGET(keystoreId: string, tokenId: string, passPhrase: string, ehp: string, language?: string): Promise<models.HealthcareParty | any> {
}
getOrgByEhpUsingGET(
keystoreId: string,
tokenId: string,
passPhrase: string,
ehp: string,
language?: string
): Promise<models.HealthcareParty | any> {
let _body = null
const _url = this.host + "/ab/org/ehp/{ehp}".replace("{ehp}", ehp+"") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (language ? "&language=" + language : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
.then(doc => new models.HealthcareParty(doc.body as JSON))
const _url =
this.host +
"/ab/org/ehp/{ehp}".replace("{ehp}", ehp + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(language ? "&language=" + language : "")
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.HealthcareParty(doc.body as JSON))
.catch(err => this.handleError(err))
}
getOrgByNihiiUsingGET(keystoreId: string, tokenId: string, passPhrase: string, nihii: string, language?: string): Promise<models.HealthcareParty | any> {
}
getOrgByNihiiUsingGET(
keystoreId: string,
tokenId: string,
passPhrase: string,
nihii: string,
language?: string
): Promise<models.HealthcareParty | any> {
let _body = null
const _url = this.host + "/ab/org/nihii/{nihii}".replace("{nihii}", nihii+"") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (language ? "&language=" + language : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
.then(doc => new models.HealthcareParty(doc.body as JSON))
const _url =
this.host +
"/ab/org/nihii/{nihii}".replace("{nihii}", nihii + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(language ? "&language=" + language : "")
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.HealthcareParty(doc.body as JSON))
.catch(err => this.handleError(err))
}
searchHcpUsingGET(keystoreId: string, tokenId: string, passPhrase: string, lastName: string, firstName?: string, type?: string): Promise<Array<models.HealthcareParty> | any> {
}
searchHcpUsingGET(
keystoreId: string,
tokenId: string,
passPhrase: string,
lastName: string,
firstName?: string,
type?: string
): Promise<Array<models.HealthcareParty> | any> {
let _body = null
const _url = this.host + "/ab/search/hcp/{lastName}".replace("{lastName}", lastName+"") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (firstName ? "&firstName=" + firstName : "") + (type ? "&type=" + type : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url =
this.host +
"/ab/search/hcp/{lastName}".replace("{lastName}", lastName + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(firstName ? "&firstName=" + firstName : "") +
(type ? "&type=" + type : "")
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => (doc.body as Array<JSON>).map(it => new models.HealthcareParty(it)))
.catch(err => this.handleError(err))
}
searchOrgUsingGET(keystoreId: string, tokenId: string, passPhrase: string, name: string, type?: string): Promise<Array<models.HealthcareParty> | any> {
}
searchOrgUsingGET(
keystoreId: string,
tokenId: string,
passPhrase: string,
name: string,
type?: string
): Promise<Array<models.HealthcareParty> | any> {
let _body = null
const _url = this.host + "/ab/search/org/{name}".replace("{name}", name+"") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (type ? "&type=" + type : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url =
this.host +
"/ab/search/org/{name}".replace("{name}", name + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(type ? "&type=" + type : "")
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => (doc.body as Array<JSON>).map(it => new models.HealthcareParty(it)))
.catch(err => this.handleError(err))
}
}
}

@@ -49,4 +49,7 @@ /**

const _url = this.host + "/error" + "?ts=" + new Date().getTime()
return XHR.sendCommand("DELETE", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("DELETE", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))

@@ -59,4 +62,7 @@ .catch(err => this.handleError(err))

const _url = this.host + "/error" + "?ts=" + new Date().getTime()
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))

@@ -69,4 +75,7 @@ .catch(err => this.handleError(err))

const _url = this.host + "/error" + "?ts=" + new Date().getTime()
return XHR.sendCommand("HEAD", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("HEAD", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))

@@ -79,4 +88,7 @@ .catch(err => this.handleError(err))

const _url = this.host + "/error" + "?ts=" + new Date().getTime()
return XHR.sendCommand("OPTIONS", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("OPTIONS", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))

@@ -89,4 +101,7 @@ .catch(err => this.handleError(err))

const _url = this.host + "/error" + "?ts=" + new Date().getTime()
return XHR.sendCommand("PATCH", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("PATCH", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))

@@ -99,4 +114,7 @@ .catch(err => this.handleError(err))

const _url = this.host + "/error" + "?ts=" + new Date().getTime()
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.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)))

@@ -109,4 +127,7 @@ .catch(err => this.handleError(err))

const _url = this.host + "/error" + "?ts=" + new Date().getTime()
return XHR.sendCommand("PUT", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("PUT", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))

@@ -113,0 +134,0 @@ .catch(err => this.handleError(err))

@@ -88,4 +88,7 @@ /**

(reference ? "&reference=" + reference : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.AgreementResponse(doc.body as JSON))

@@ -122,4 +125,7 @@ .catch(err => this.handleError(err))

(iorequestReference ? "&iorequestReference=" + iorequestReference : "")
return XHR.sendCommand("DELETE", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("DELETE", _url, headers, _body)
.then(doc => new models.AgreementResponse(doc.body as JSON))

@@ -154,4 +160,7 @@ .catch(err => this.handleError(err))

(decisionReference ? "&decisionReference=" + decisionReference : "")
return XHR.sendCommand("DELETE", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("DELETE", _url, headers, _body)
.then(doc => new models.AgreementResponse(doc.body as JSON))

@@ -173,4 +182,7 @@ .catch(err => this.handleError(err))

new Date().getTime()
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => (doc.body as Array<JSON>).map(it => new models.ParagraphPreview(it)))

@@ -192,4 +204,7 @@ .catch(err => this.handleError(err))

new Date().getTime()
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => (doc.body as Array<JSON>).map(it => new models.ParagraphPreview(it)))

@@ -211,4 +226,7 @@ .catch(err => this.handleError(err))

new Date().getTime()
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => (doc.body as Array<JSON>).map(it => new models.AddedDocumentPreview(it)))

@@ -262,4 +280,7 @@ .catch(err => this.handleError(err))

(ioRequestReference ? "&ioRequestReference=" + ioRequestReference : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.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 => new models.AgreementResponse(doc.body as JSON))

@@ -266,0 +287,0 @@ .catch(err => this.handleError(err))

@@ -6,4 +6,4 @@ /**

* OpenAPI spec version: 1.0
*
*
*
* NOTE: This class is auto generated by the swagger code generator program.

@@ -46,31 +46,115 @@ * https://github.com/swagger-api/swagger-codegen.git

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> {
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> {
let _body = null
const _url = this.host + "/consent/{patientSsin}".replace("{patientSsin}", patientSsin+"") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (patientFirstName ? "&patientFirstName=" + patientFirstName : "") + (patientLastName ? "&patientLastName=" + patientLastName : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
.then(doc => new models.ConsentMessageDto(doc.body as JSON))
const _url =
this.host +
"/consent/{patientSsin}".replace("{patientSsin}", patientSsin + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(patientFirstName ? "&patientFirstName=" + patientFirstName : "") +
(patientLastName ? "&patientLastName=" + patientLastName : "")
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.ConsentMessageDto(doc.body as JSON))
.catch(err => this.handleError(err))
}
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> {
}
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> {
let _body = null
const _url = this.host + "/consent/{patientSsin}".replace("{patientSsin}", patientSsin+"") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (patientFirstName ? "&patientFirstName=" + patientFirstName : "") + (patientLastName ? "&patientLastName=" + patientLastName : "") + (eidCardNumber ? "&eidCardNumber=" + eidCardNumber : "") + (isiCardNumber ? "&isiCardNumber=" + isiCardNumber : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
.then(doc => new models.ConsentMessageDto(doc.body as JSON))
const _url =
this.host +
"/consent/{patientSsin}".replace("{patientSsin}", patientSsin + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(patientFirstName ? "&patientFirstName=" + patientFirstName : "") +
(patientLastName ? "&patientLastName=" + patientLastName : "") +
(eidCardNumber ? "&eidCardNumber=" + eidCardNumber : "") +
(isiCardNumber ? "&isiCardNumber=" + isiCardNumber : "")
const headers = this.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 => new models.ConsentMessageDto(doc.body as JSON))
.catch(err => this.handleError(err))
}
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> {
}
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> {
let _body = null
_body = existingConsent
const _url = this.host + "/consent/revoke/{patientSsin}" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (eidCardNumber ? "&eidCardNumber=" + eidCardNumber : "") + (isiCardNumber ? "&isiCardNumber=" + isiCardNumber : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
.then(doc => new models.ConsentMessageDto(doc.body as JSON))
const _url =
this.host +
"/consent/revoke/{patientSsin}" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(eidCardNumber ? "&eidCardNumber=" + eidCardNumber : "") +
(isiCardNumber ? "&isiCardNumber=" + isiCardNumber : "")
const headers = this.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 => new models.ConsentMessageDto(doc.body as JSON))
.catch(err => this.handleError(err))
}
}
}

@@ -6,4 +6,4 @@ /**

* OpenAPI spec version: 1.0
*
*
*
* NOTE: This class is auto generated by the swagger code generator program.

@@ -46,69 +46,261 @@ * https://github.com/swagger-api/swagger-codegen.git

confirmAcksUsingPOST(keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, dmgTacks: Array<models.DmgAcknowledge>): Promise<boolean | any> {
confirmAcksUsingPOST(
keystoreId: string,
tokenId: string,
passPhrase: string,
hcpNihii: string,
hcpSsin: string,
hcpFirstName: string,
hcpLastName: string,
dmgTacks: Array<models.DmgAcknowledge>
): Promise<boolean | any> {
let _body = null
_body = dmgTacks
const _url = this.host + "/gmd/confirm/acks" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))
const _url =
this.host +
"/gmd/confirm/acks" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "")
const headers = this.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))
}
confirmDmgMessagesUsingPOST(keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, dmgMessages: Array<models.DmgMessage>): 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> {
let _body = null
_body = dmgMessages
const _url = this.host + "/gmd/confirm/messages" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))
const _url =
this.host +
"/gmd/confirm/messages" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "")
const headers = this.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))
}
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> {
}
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> {
let _body = null
const _url = this.host + "/gmd" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (patientSsin ? "&patientSsin=" + patientSsin : "") + (patientGender ? "&patientGender=" + patientGender : "") + (oa ? "&oa=" + oa : "") + (regNrWithMut ? "&regNrWithMut=" + regNrWithMut : "") + (requestDate ? "&requestDate=" + requestDate : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
.then(doc => new models.DmgConsultation(doc.body as JSON))
const _url =
this.host +
"/gmd" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(patientSsin ? "&patientSsin=" + patientSsin : "") +
(patientGender ? "&patientGender=" + patientGender : "") +
(oa ? "&oa=" + oa : "") +
(regNrWithMut ? "&regNrWithMut=" + regNrWithMut : "") +
(requestDate ? "&requestDate=" + requestDate : "")
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.DmgConsultation(doc.body as JSON))
.catch(err => this.handleError(err))
}
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> {
}
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> {
let _body = null
_body = messageNames
const _url = this.host + "/gmd/messages" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (oa ? "&oa=" + oa : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url =
this.host +
"/gmd/messages" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(oa ? "&oa=" + oa : "")
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => (doc.body as Array<JSON>).map(it => new models.DmgMessage(it)))
.catch(err => this.handleError(err))
}
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> {
}
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> {
let _body = null
const _url = this.host + "/gmd/notify/{nomenclature}".replace("{nomenclature}", nomenclature+"") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (patientSsin ? "&patientSsin=" + patientSsin : "") + (oa ? "&oa=" + oa : "") + (regNrWithMut ? "&regNrWithMut=" + regNrWithMut : "") + (patientFirstName ? "&patientFirstName=" + patientFirstName : "") + (patientLastName ? "&patientLastName=" + patientLastName : "") + (patientGender ? "&patientGender=" + patientGender : "") + (requestDate ? "&requestDate=" + requestDate : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
.then(doc => new models.DmgNotification(doc.body as JSON))
const _url =
this.host +
"/gmd/notify/{nomenclature}".replace("{nomenclature}", nomenclature + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(patientSsin ? "&patientSsin=" + patientSsin : "") +
(oa ? "&oa=" + oa : "") +
(regNrWithMut ? "&regNrWithMut=" + regNrWithMut : "") +
(patientFirstName ? "&patientFirstName=" + patientFirstName : "") +
(patientLastName ? "&patientLastName=" + patientLastName : "") +
(patientGender ? "&patientGender=" + patientGender : "") +
(requestDate ? "&requestDate=" + requestDate : "")
const headers = this.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 => new models.DmgNotification(doc.body as JSON))
.catch(err => this.handleError(err))
}
postDmgsListRequestUsingPOST(keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, oa?: string, requestDate?: number): Promise<boolean | any> {
}
postDmgsListRequestUsingPOST(
keystoreId: string,
tokenId: string,
passPhrase: string,
hcpNihii: string,
hcpSsin: string,
hcpFirstName: string,
hcpLastName: string,
oa?: string,
requestDate?: number
): Promise<boolean | any> {
let _body = null
const _url = this.host + "/gmd/reqlist" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (oa ? "&oa=" + oa : "") + (requestDate ? "&requestDate=" + requestDate : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))
const _url =
this.host +
"/gmd/reqlist" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(oa ? "&oa=" + oa : "") +
(requestDate ? "&requestDate=" + requestDate : "")
const headers = this.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))
}
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> {
}
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> {
let _body = null
const _url = this.host + "/gmd/register/{oa}".replace("{oa}", oa+"") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (bic ? "&bic=" + bic : "") + (iban ? "&iban=" + iban : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
.then(doc => new models.DmgRegistration(doc.body as JSON))
const _url =
this.host +
"/gmd/register/{oa}".replace("{oa}", oa + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(bic ? "&bic=" + bic : "") +
(iban ? "&iban=" + iban : "")
const headers = this.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 => new models.DmgRegistration(doc.body as JSON))
.catch(err => this.handleError(err))
}
}
}

@@ -6,4 +6,4 @@ /**

* OpenAPI spec version: 1.0
*
*
*
* NOTE: This class is auto generated by the swagger code generator program.

@@ -46,23 +46,78 @@ * https://github.com/swagger-api/swagger-codegen.git

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> {
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> {
let _body = null
_body = attest
const _url = this.host + "/eattest/send/{patientSsin}".replace("{patientSsin}", patientSsin+"") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (hcpCbe ? "&hcpCbe=" + hcpCbe : "") + (date ? "&date=" + date : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
.then(doc => new models.SendAttestResult(doc.body as JSON))
const _url =
this.host +
"/eattest/send/{patientSsin}".replace("{patientSsin}", patientSsin + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(hcpCbe ? "&hcpCbe=" + hcpCbe : "") +
(date ? "&date=" + date : "")
const headers = this.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 => new models.SendAttestResult(doc.body as JSON))
.catch(err => this.handleError(err))
}
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> {
}
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> {
let _body = null
_body = attest
const _url = this.host + "/eattest/send/{patientSsin}/verbose".replace("{patientSsin}", patientSsin+"") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (hcpCbe ? "&hcpCbe=" + hcpCbe : "") + (date ? "&date=" + date : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
.then(doc => new models.SendAttestResultWithResponse(doc.body as JSON))
const _url =
this.host +
"/eattest/send/{patientSsin}/verbose".replace("{patientSsin}", patientSsin + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(hcpCbe ? "&hcpCbe=" + hcpCbe : "") +
(date ? "&date=" + date : "")
const headers = this.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 => new models.SendAttestResultWithResponse(doc.body as JSON))
.catch(err => this.handleError(err))
}
}
}

@@ -70,4 +70,7 @@ /**

(lastName ? "&lastName=" + lastName : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => (doc.body as Array<JSON>).map(it => new models.EfactMessage(it)))

@@ -93,4 +96,7 @@ .catch(err => this.handleError(err))

(passPhrase ? "&passPhrase=" + passPhrase : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.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 => new models.EfactSendResponse(doc.body as JSON))

@@ -97,0 +103,0 @@ .catch(err => this.handleError(err))

@@ -63,4 +63,7 @@ /**

(passPhrase ? "&passPhrase=" + passPhrase : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.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)))

@@ -94,4 +97,7 @@ .catch(err => this.handleError(err))

: "")
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.Message(doc.body as JSON))

@@ -115,4 +121,7 @@ .catch(err => this.handleError(err))

(passPhrase ? "&passPhrase=" + passPhrase : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.BoxInfo(doc.body as JSON))

@@ -145,4 +154,7 @@ .catch(err => this.handleError(err))

: "")
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => (doc.body as Array<JSON>).map(it => new models.Message(it)))

@@ -172,4 +184,7 @@ .catch(err => this.handleError(err))

(passPhrase ? "&passPhrase=" + passPhrase : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.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)))

@@ -199,4 +214,7 @@ .catch(err => this.handleError(err))

(readReceipt ? "&readReceipt=" + readReceipt : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.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)))

@@ -203,0 +221,0 @@ .catch(err => this.handleError(err))

@@ -6,4 +6,4 @@ /**

* OpenAPI spec version: 1.0
*
*
*
* NOTE: This class is auto generated by the swagger code generator program.

@@ -46,21 +46,81 @@ * https://github.com/swagger-api/swagger-codegen.git

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> {
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> {
let _body = null
const _url = this.host + "/genins/{io}/{ioMembership}".replace("{io}", io+"").replace("{ioMembership}", ioMembership+"") + "?ts=" + new Date().getTime() + (tokenId ? "&tokenId=" + tokenId : "") + (keystoreId ? "&keystoreId=" + keystoreId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpName ? "&hcpName=" + hcpName : "") + (hcpQuality ? "&hcpQuality=" + hcpQuality : "") + (date ? "&date=" + date : "") + (endDate ? "&endDate=" + endDate : "") + (hospitalized ? "&hospitalized=" + hospitalized : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
.then(doc => new models.InsurabilityInfoDto(doc.body as JSON))
const _url =
this.host +
"/genins/{io}/{ioMembership}"
.replace("{io}", io + "")
.replace("{ioMembership}", ioMembership + "") +
"?ts=" +
new Date().getTime() +
(tokenId ? "&tokenId=" + tokenId : "") +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpName ? "&hcpName=" + hcpName : "") +
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") +
(date ? "&date=" + date : "") +
(endDate ? "&endDate=" + endDate : "") +
(hospitalized ? "&hospitalized=" + hospitalized : "")
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.InsurabilityInfoDto(doc.body as JSON))
.catch(err => this.handleError(err))
}
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> {
}
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> {
let _body = null
const _url = this.host + "/genins/{ssin}".replace("{ssin}", ssin+"") + "?ts=" + new Date().getTime() + (tokenId ? "&tokenId=" + tokenId : "") + (keystoreId ? "&keystoreId=" + keystoreId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpName ? "&hcpName=" + hcpName : "") + (hcpQuality ? "&hcpQuality=" + hcpQuality : "") + (date ? "&date=" + date : "") + (endDate ? "&endDate=" + endDate : "") + (hospitalized ? "&hospitalized=" + hospitalized : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
.then(doc => new models.InsurabilityInfoDto(doc.body as JSON))
const _url =
this.host +
"/genins/{ssin}".replace("{ssin}", ssin + "") +
"?ts=" +
new Date().getTime() +
(tokenId ? "&tokenId=" + tokenId : "") +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpName ? "&hcpName=" + hcpName : "") +
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") +
(date ? "&date=" + date : "") +
(endDate ? "&endDate=" + endDate : "") +
(hospitalized ? "&hospitalized=" + hospitalized : "")
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.InsurabilityInfoDto(doc.body as JSON))
.catch(err => this.handleError(err))
}
}
}

@@ -73,4 +73,7 @@ /**

(hubPackageId ? "&hubPackageId=" + hubPackageId : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.HcPartyConsent(doc.body as JSON))

@@ -109,4 +112,7 @@ .catch(err => this.handleError(err))

(hcpZip ? "&hcpZip=" + hcpZip : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.Consent(doc.body as JSON))

@@ -145,4 +151,7 @@ .catch(err => this.handleError(err))

(hcpZip ? "&hcpZip=" + hcpZip : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.Patient(doc.body as JSON))

@@ -188,4 +197,7 @@ .catch(err => this.handleError(err))

(to ? "&to=" + to : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => (doc.body as Array<JSON>).map(it => new models.TherapeuticLink(it)))

@@ -233,4 +245,7 @@ .catch(err => this.handleError(err))

(id ? "&id=" + id : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))

@@ -278,4 +293,7 @@ .catch(err => this.handleError(err))

(id ? "&id=" + id : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))

@@ -326,4 +344,7 @@ .catch(err => this.handleError(err))

(breakTheGlassReason ? "&breakTheGlassReason=" + breakTheGlassReason : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => (doc.body as Array<JSON>).map(it => new models.TransactionSummary(it)))

@@ -371,4 +392,7 @@ .catch(err => this.handleError(err))

(dateOfBirth ? "&dateOfBirth=" + dateOfBirth : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.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 => new models.Patient(doc.body as JSON))

@@ -414,4 +438,7 @@ .catch(err => this.handleError(err))

(hubApplication ? "&hubApplication=" + hubApplication : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.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 => new models.PutTransactionSetResponse(doc.body as JSON))

@@ -457,4 +484,7 @@ .catch(err => this.handleError(err))

(hubApplication ? "&hubApplication=" + hubApplication : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/xml"))
return XHR.sendCommand("POST", _url, headers, _body)
.then(doc => new models.TransactionIdType(doc.body as JSON))

@@ -495,4 +525,7 @@ .catch(err => this.handleError(err))

(patientEidCardNumber ? "&patientEidCardNumber=" + patientEidCardNumber : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.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 => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true))

@@ -534,4 +567,7 @@ .catch(err => this.handleError(err))

(patientEidCardNumber ? "&patientEidCardNumber=" + patientEidCardNumber : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.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 => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true))

@@ -579,4 +615,7 @@ .catch(err => this.handleError(err))

(id ? "&id=" + id : "")
return XHR.sendCommand("DELETE", _url, this.headers, _body)
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("DELETE", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))

@@ -583,0 +622,0 @@ .catch(err => this.handleError(err))

@@ -6,4 +6,4 @@ /**

* OpenAPI spec version: 1.0
*
*
*
* NOTE: This class is auto generated by the swagger code generator program.

@@ -46,76 +46,233 @@ * https://github.com/swagger-api/swagger-codegen.git

createPrescriptionUsingPOST(keystoreId: string, tokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, passPhrase: string, prescription: models.PrescriptionRequest): Promise<models.Prescription | any> {
createPrescriptionUsingPOST(
keystoreId: string,
tokenId: string,
hcpQuality: string,
hcpNihii: string,
hcpSsin: string,
hcpName: string,
passPhrase: string,
prescription: models.PrescriptionRequest
): Promise<models.Prescription | any> {
let _body = null
_body = prescription
const _url = this.host + "/recipe" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (hcpQuality ? "&hcpQuality=" + hcpQuality : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpName ? "&hcpName=" + hcpName : "") + (passPhrase ? "&passPhrase=" + passPhrase : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
.then(doc => new models.Prescription(doc.body as JSON))
const _url =
this.host +
"/recipe" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpName ? "&hcpName=" + hcpName : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "")
const headers = this.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 => new models.Prescription(doc.body as JSON))
.catch(err => this.handleError(err))
}
}
getGalToAdministrationUnitUsingGET(galId: string): Promise<models.Code | any> {
let _body = null
const _url = this.host + "/recipe/gal/{galId}".replace("{galId}", galId+"") + "?ts=" + new Date().getTime()
return XHR.sendCommand("GET", _url, this.headers, _body)
.then(doc => new models.Code(doc.body as JSON))
const _url =
this.host +
"/recipe/gal/{galId}".replace("{galId}", galId + "") +
"?ts=" +
new Date().getTime()
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.Code(doc.body as JSON))
.catch(err => this.handleError(err))
}
}
getPrescriptionUsingGET(rid: string): Promise<models.PrescriptionFullWithFeedback | any> {
let _body = null
const _url = this.host + "/recipe/{rid}".replace("{rid}", rid+"") + "?ts=" + new Date().getTime()
return XHR.sendCommand("GET", _url, this.headers, _body)
.then(doc => new models.PrescriptionFullWithFeedback(doc.body as JSON))
const _url =
this.host + "/recipe/{rid}".replace("{rid}", rid + "") + "?ts=" + new Date().getTime()
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.PrescriptionFullWithFeedback(doc.body as JSON))
.catch(err => this.handleError(err))
}
listFeedbacksUsingGET(keystoreId: string, tokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, passPhrase: string): Promise<Array<models.Feedback> | any> {
}
listFeedbacksUsingGET(
keystoreId: string,
tokenId: string,
hcpQuality: string,
hcpNihii: string,
hcpSsin: string,
hcpName: string,
passPhrase: string
): Promise<Array<models.Feedback> | any> {
let _body = null
const _url = this.host + "/recipe/all/feedbacks" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (hcpQuality ? "&hcpQuality=" + hcpQuality : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpName ? "&hcpName=" + hcpName : "") + (passPhrase ? "&passPhrase=" + passPhrase : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url =
this.host +
"/recipe/all/feedbacks" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpName ? "&hcpName=" + hcpName : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "")
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => (doc.body as Array<JSON>).map(it => new models.Feedback(it)))
.catch(err => this.handleError(err))
}
listOpenPrescriptionsUsingGET(keystoreId: string, tokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, passPhrase: string): Promise<Array<models.Prescription> | any> {
}
listOpenPrescriptionsUsingGET(
keystoreId: string,
tokenId: string,
hcpQuality: string,
hcpNihii: string,
hcpSsin: string,
hcpName: string,
passPhrase: string
): Promise<Array<models.Prescription> | any> {
let _body = null
const _url = this.host + "/recipe" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (hcpQuality ? "&hcpQuality=" + hcpQuality : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpName ? "&hcpName=" + hcpName : "") + (passPhrase ? "&passPhrase=" + passPhrase : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url =
this.host +
"/recipe" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpName ? "&hcpName=" + hcpName : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "")
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => (doc.body as Array<JSON>).map(it => new models.Prescription(it)))
.catch(err => this.handleError(err))
}
revokePrescriptionUsingDELETE(keystoreId: string, tokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, passPhrase: string, rid: string, reason: string): Promise<any | Boolean> {
}
revokePrescriptionUsingDELETE(
keystoreId: string,
tokenId: string,
hcpQuality: string,
hcpNihii: string,
hcpSsin: string,
hcpName: string,
passPhrase: string,
rid: string,
reason: string
): Promise<any | Boolean> {
let _body = null
const _url = this.host + "/recipe/{rid}".replace("{rid}", rid+"") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (hcpQuality ? "&hcpQuality=" + hcpQuality : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpName ? "&hcpName=" + hcpName : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (reason ? "&reason=" + reason : "")
return XHR.sendCommand("DELETE", _url, this.headers, _body)
const _url =
this.host +
"/recipe/{rid}".replace("{rid}", rid + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpName ? "&hcpName=" + hcpName : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(reason ? "&reason=" + reason : "")
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("DELETE", _url, headers, _body)
.then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true))
.catch(err => this.handleError(err))
}
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> {
}
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> {
let _body = null
const _url = this.host + "/recipe/notify/{rid}".replace("{rid}", rid+"") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (hcpQuality ? "&hcpQuality=" + hcpQuality : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpName ? "&hcpName=" + hcpName : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (patientId ? "&patientId=" + patientId : "") + (executorId ? "&executorId=" + executorId : "") + (text ? "&text=" + text : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
const _url =
this.host +
"/recipe/notify/{rid}".replace("{rid}", rid + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpName ? "&hcpName=" + hcpName : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(patientId ? "&patientId=" + patientId : "") +
(executorId ? "&executorId=" + executorId : "") +
(text ? "&text=" + text : "")
const headers = this.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 => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true))
.catch(err => this.handleError(err))
}
updateFeedbackFlagUsingPUT(keystoreId: string, tokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, passPhrase: string, rid: string, feedbackFlag: boolean): 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> {
let _body = null
const _url = this.host + "/recipe/{rid}/feedback/{feedbackFlag}".replace("{rid}", rid+"").replace("{feedbackFlag}", feedbackFlag+"") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (hcpQuality ? "&hcpQuality=" + hcpQuality : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpName ? "&hcpName=" + hcpName : "") + (passPhrase ? "&passPhrase=" + passPhrase : "")
return XHR.sendCommand("PUT", _url, this.headers, _body)
const _url =
this.host +
"/recipe/{rid}/feedback/{feedbackFlag}"
.replace("{rid}", rid + "")
.replace("{feedbackFlag}", feedbackFlag + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpName ? "&hcpName=" + hcpName : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "")
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("PUT", _url, headers, _body)
.then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true))
.catch(err => this.handleError(err))
}
}
}

@@ -6,4 +6,4 @@ /**

* OpenAPI spec version: 1.0
*
*
*
* NOTE: This class is auto generated by the swagger code generator program.

@@ -48,47 +48,89 @@ * https://github.com/swagger-api/swagger-codegen.git

let _body = null
const _url = this.host + "/sts/keystore/check/{keystoreId}".replace("{keystoreId}", keystoreId+"") + "?ts=" + new Date().getTime()
return XHR.sendCommand("GET", _url, this.headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))
const _url =
this.host +
"/sts/keystore/check/{keystoreId}".replace("{keystoreId}", keystoreId + "") +
"?ts=" +
new Date().getTime()
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))
.catch(err => this.handleError(err))
}
}
checkTokenValidUsingGET(tokenId: string): Promise<boolean | any> {
let _body = null
const _url = this.host + "/sts/token/check/{tokenId}".replace("{tokenId}", tokenId+"") + "?ts=" + new Date().getTime()
return XHR.sendCommand("GET", _url, this.headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))
const _url =
this.host +
"/sts/token/check/{tokenId}".replace("{tokenId}", tokenId + "") +
"?ts=" +
new Date().getTime()
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))
.catch(err => this.handleError(err))
}
}
registerTokenUsingPOST(token: string, tokenId: string): Promise<any | Boolean> {
let _body = null
_body = token
const _url = this.host + "/sts/token/{tokenId}".replace("{tokenId}", tokenId+"") + "?ts=" + new Date().getTime()
return XHR.sendCommand("POST", _url, this.headers, _body)
const _url =
this.host +
"/sts/token/{tokenId}".replace("{tokenId}", tokenId + "") +
"?ts=" +
new Date().getTime()
const headers = this.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 => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true))
.catch(err => this.handleError(err))
}
requestTokenUsingGET(passPhrase: string, ssin: string, keystoreId: string, isMedicalHouse?: boolean): Promise<models.SamlTokenResult | any> {
}
requestTokenUsingGET(
passPhrase: string,
ssin: string,
keystoreId: string,
isMedicalHouse?: boolean
): Promise<models.SamlTokenResult | any> {
let _body = null
const _url = this.host + "/sts/token/{keystoreId}".replace("{keystoreId}", keystoreId+"") + "?ts=" + new Date().getTime() + (passPhrase ? "&passPhrase=" + passPhrase : "") + (ssin ? "&ssin=" + ssin : "") + (isMedicalHouse ? "&isMedicalHouse=" + isMedicalHouse : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
.then(doc => new models.SamlTokenResult(doc.body as JSON))
const _url =
this.host +
"/sts/token/{keystoreId}".replace("{keystoreId}", keystoreId + "") +
"?ts=" +
new Date().getTime() +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(ssin ? "&ssin=" + ssin : "") +
(isMedicalHouse ? "&isMedicalHouse=" + isMedicalHouse : "")
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.SamlTokenResult(doc.body as JSON))
.catch(err => this.handleError(err))
}
}
uploadKeystoreUsingPOST(file: any): Promise<models.UUIDType | any> {
let _body = null
;file && (_body = (_body || new FormData())).append('file', new Blob(file, {type: "application/octet-stream"}))
const _url = this.host + "/sts/keystore" + "?ts=" + new Date().getTime()
return XHR.sendCommand("POST", _url, this.headers, _body)
.then(doc => new models.UUIDType(doc.body as JSON))
file &&
(_body = _body || new FormData()).append(
"file",
new Blob(file, { type: "application/octet-stream" })
)
const _url = this.host + "/sts/keystore" + "?ts=" + new Date().getTime()
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "multipart/form-data"))
return XHR.sendCommand("POST", _url, headers, _body)
.then(doc => new models.UUIDType(doc.body as JSON))
.catch(err => this.handleError(err))
}
}
}

@@ -6,4 +6,4 @@ /**

* OpenAPI spec version: 1.0
*
*
*
* NOTE: This class is auto generated by the swagger code generator program.

@@ -46,13 +46,42 @@ * https://github.com/swagger-api/swagger-codegen.git

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,
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> {
let _body = null
_body = codes
const _url = this.host + "/tarif/{ssin}".replace("{ssin}", ssin+"") + "?ts=" + new Date().getTime() + (tokenId ? "&tokenId=" + tokenId : "") + (keystoreId ? "&keystoreId=" + keystoreId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (date ? "&date=" + date : "") + (gmdNihii ? "&gmdNihii=" + gmdNihii : "") + (justification ? "&justification=" + justification : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
.then(doc => new models.TarificationConsultationResult(doc.body as JSON))
const _url =
this.host +
"/tarif/{ssin}".replace("{ssin}", ssin + "") +
"?ts=" +
new Date().getTime() +
(tokenId ? "&tokenId=" + tokenId : "") +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(date ? "&date=" + date : "") +
(gmdNihii ? "&gmdNihii=" + gmdNihii : "") +
(justification ? "&justification=" + justification : "")
const headers = this.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 => new models.TarificationConsultationResult(doc.body as JSON))
.catch(err => this.handleError(err))
}
}
}

@@ -6,4 +6,4 @@ /**

* OpenAPI spec version: 1.0
*
*
*
* NOTE: This class is auto generated by the swagger code generator program.

@@ -46,60 +46,232 @@ * https://github.com/swagger-api/swagger-codegen.git

doesLinkExistUsingPOST(keystoreId: string, tokenId: string, passPhrase: string, therLink: models.TherapeuticLinkDto): Promise<models.TherapeuticLinkDto | any> {
doesLinkExistUsingPOST(
keystoreId: string,
tokenId: string,
passPhrase: string,
therLink: models.TherapeuticLinkDto
): Promise<models.TherapeuticLinkDto | any> {
let _body = null
_body = therLink
const _url = this.host + "/therlink/check" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
.then(doc => new models.TherapeuticLinkDto(doc.body as JSON))
const _url =
this.host +
"/therlink/check" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "")
const headers = this.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 => new models.TherapeuticLinkDto(doc.body as JSON))
.catch(err => this.handleError(err))
}
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> {
}
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> {
let _body = null
const _url = this.host + "/therlink/{patientSsin}/{hcpNihii}".replace("{hcpNihii}", hcpNihii+"").replace("{patientSsin}", patientSsin+"") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (patientFirstName ? "&patientFirstName=" + patientFirstName : "") + (patientLastName ? "&patientLastName=" + patientLastName : "") + (eidCardNumber ? "&eidCardNumber=" + eidCardNumber : "") + (isiCardNumber ? "&isiCardNumber=" + isiCardNumber : "") + (startDate ? "&startDate=" + startDate : "") + (endDate ? "&endDate=" + endDate : "") + (type ? "&type=" + type : "") + (sign ? "&sign=" + sign : "")
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url =
this.host +
"/therlink/{patientSsin}/{hcpNihii}"
.replace("{hcpNihii}", hcpNihii + "")
.replace("{patientSsin}", patientSsin + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(patientFirstName ? "&patientFirstName=" + patientFirstName : "") +
(patientLastName ? "&patientLastName=" + patientLastName : "") +
(eidCardNumber ? "&eidCardNumber=" + eidCardNumber : "") +
(isiCardNumber ? "&isiCardNumber=" + isiCardNumber : "") +
(startDate ? "&startDate=" + startDate : "") +
(endDate ? "&endDate=" + endDate : "") +
(type ? "&type=" + type : "") +
(sign ? "&sign=" + sign : "")
const headers = this.headers
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => (doc.body as Array<JSON>).map(it => new models.TherapeuticLinkMessageDto(it)))
.catch(err => this.handleError(err))
}
getAllTherapeuticLinksWithQueryLinkUsingPOST(keystoreId: string, tokenId: string, passPhrase: string, queryLink: models.TherapeuticLinkDto, sign?: boolean): Promise<Array<models.TherapeuticLinkMessageDto> | any> {
}
getAllTherapeuticLinksWithQueryLinkUsingPOST(
keystoreId: string,
tokenId: string,
passPhrase: string,
queryLink: models.TherapeuticLinkDto,
sign?: boolean
): Promise<Array<models.TherapeuticLinkMessageDto> | any> {
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 : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
const _url =
this.host +
"/therlink/query" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(sign ? "&sign=" + sign : "")
const headers = this.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 => (doc.body as Array<JSON>).map(it => new models.TherapeuticLinkMessageDto(it)))
.catch(err => this.handleError(err))
}
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> {
}
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> {
let _body = null
const _url = this.host + "/therlink/register" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (patientSsin ? "&patientSsin=" + patientSsin : "") + (patientFirstName ? "&patientFirstName=" + patientFirstName : "") + (patientLastName ? "&patientLastName=" + patientLastName : "") + (eidCardNumber ? "&eidCardNumber=" + eidCardNumber : "") + (isiCardNumber ? "&isiCardNumber=" + isiCardNumber : "") + (start ? "&start=" + start : "") + (end ? "&end=" + end : "") + (therLinkType ? "&therLinkType=" + therLinkType : "") + (comment ? "&comment=" + comment : "") + (sign ? "&sign=" + sign : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
.then(doc => new models.TherapeuticLinkMessageDto(doc.body as JSON))
const _url =
this.host +
"/therlink/register" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(patientSsin ? "&patientSsin=" + patientSsin : "") +
(patientFirstName ? "&patientFirstName=" + patientFirstName : "") +
(patientLastName ? "&patientLastName=" + patientLastName : "") +
(eidCardNumber ? "&eidCardNumber=" + eidCardNumber : "") +
(isiCardNumber ? "&isiCardNumber=" + isiCardNumber : "") +
(start ? "&start=" + start : "") +
(end ? "&end=" + end : "") +
(therLinkType ? "&therLinkType=" + therLinkType : "") +
(comment ? "&comment=" + comment : "") +
(sign ? "&sign=" + sign : "")
const headers = this.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 => new models.TherapeuticLinkMessageDto(doc.body as JSON))
.catch(err => this.handleError(err))
}
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> {
}
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> {
let _body = null
const _url = this.host + "/therlink/revoke/{patientSsin}/{hcpNihii}".replace("{hcpNihii}", hcpNihii+"").replace("{patientSsin}", patientSsin+"") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (patientFirstName ? "&patientFirstName=" + patientFirstName : "") + (patientLastName ? "&patientLastName=" + patientLastName : "") + (eidCardNumber ? "&eidCardNumber=" + eidCardNumber : "") + (isiCardNumber ? "&isiCardNumber=" + isiCardNumber : "") + (start ? "&start=" + start : "") + (end ? "&end=" + end : "") + (therLinkType ? "&therLinkType=" + therLinkType : "") + (comment ? "&comment=" + comment : "") + (sign ? "&sign=" + sign : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
.then(doc => new models.TherapeuticLinkMessageDto(doc.body as JSON))
const _url =
this.host +
"/therlink/revoke/{patientSsin}/{hcpNihii}"
.replace("{hcpNihii}", hcpNihii + "")
.replace("{patientSsin}", patientSsin + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(patientFirstName ? "&patientFirstName=" + patientFirstName : "") +
(patientLastName ? "&patientLastName=" + patientLastName : "") +
(eidCardNumber ? "&eidCardNumber=" + eidCardNumber : "") +
(isiCardNumber ? "&isiCardNumber=" + isiCardNumber : "") +
(start ? "&start=" + start : "") +
(end ? "&end=" + end : "") +
(therLinkType ? "&therLinkType=" + therLinkType : "") +
(comment ? "&comment=" + comment : "") +
(sign ? "&sign=" + sign : "")
const headers = this.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 => new models.TherapeuticLinkMessageDto(doc.body as JSON))
.catch(err => this.handleError(err))
}
revokeLinkUsingPOST1(keystoreId: string, tokenId: string, passPhrase: string, therLink: models.TherapeuticLinkDto, sign?: boolean): Promise<models.TherapeuticLinkMessageDto | any> {
}
revokeLinkUsingPOST1(
keystoreId: string,
tokenId: string,
passPhrase: string,
therLink: models.TherapeuticLinkDto,
sign?: boolean
): Promise<models.TherapeuticLinkMessageDto | any> {
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 : "")
return XHR.sendCommand("POST", _url, this.headers, _body)
.then(doc => new models.TherapeuticLinkMessageDto(doc.body as JSON))
const _url =
this.host +
"/therlink/revoke" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(sign ? "&sign=" + sign : "")
const headers = this.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 => new models.TherapeuticLinkMessageDto(doc.body as JSON))
.catch(err => this.handleError(err))
}
}
}

@@ -42,4 +42,15 @@ /**

let _body = null;
const _url = this.host + "/ab/hcp/nihii/{nihii}".replace("{nihii}", nihii + "") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (language ? "&language=" + language : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url = this.host +
"/ab/hcp/nihii/{nihii}".replace("{nihii}", nihii + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(language ? "&language=" + language : "");
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.HealthcareParty(doc.body))

@@ -50,4 +61,15 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/ab/hcp/ssin/{ssin}".replace("{ssin}", ssin + "") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (language ? "&language=" + language : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url = this.host +
"/ab/hcp/ssin/{ssin}".replace("{ssin}", ssin + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(language ? "&language=" + language : "");
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.HealthcareParty(doc.body))

@@ -58,4 +80,15 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/ab/org/cbe/{cbe}".replace("{cbe}", cbe + "") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (language ? "&language=" + language : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url = this.host +
"/ab/org/cbe/{cbe}".replace("{cbe}", cbe + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(language ? "&language=" + language : "");
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.HealthcareParty(doc.body))

@@ -66,4 +99,15 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/ab/org/ehp/{ehp}".replace("{ehp}", ehp + "") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (language ? "&language=" + language : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url = this.host +
"/ab/org/ehp/{ehp}".replace("{ehp}", ehp + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(language ? "&language=" + language : "");
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.HealthcareParty(doc.body))

@@ -74,4 +118,15 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/ab/org/nihii/{nihii}".replace("{nihii}", nihii + "") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (language ? "&language=" + language : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url = this.host +
"/ab/org/nihii/{nihii}".replace("{nihii}", nihii + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(language ? "&language=" + language : "");
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.HealthcareParty(doc.body))

@@ -82,4 +137,16 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/ab/search/hcp/{lastName}".replace("{lastName}", lastName + "") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (firstName ? "&firstName=" + firstName : "") + (type ? "&type=" + type : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url = this.host +
"/ab/search/hcp/{lastName}".replace("{lastName}", lastName + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(firstName ? "&firstName=" + firstName : "") +
(type ? "&type=" + type : "");
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => doc.body.map(it => new models.HealthcareParty(it)))

@@ -90,4 +157,15 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/ab/search/org/{name}".replace("{name}", name + "") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (type ? "&type=" + type : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url = this.host +
"/ab/search/org/{name}".replace("{name}", name + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(type ? "&type=" + type : "");
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => doc.body.map(it => new models.HealthcareParty(it)))

@@ -94,0 +172,0 @@ .catch(err => this.handleError(err));

@@ -42,3 +42,7 @@ /**

const _url = this.host + "/error" + "?ts=" + new Date().getTime();
return XHR.sendCommand("DELETE", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("DELETE", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))

@@ -50,3 +54,7 @@ .catch(err => this.handleError(err));

const _url = this.host + "/error" + "?ts=" + new Date().getTime();
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))

@@ -58,3 +66,7 @@ .catch(err => this.handleError(err));

const _url = this.host + "/error" + "?ts=" + new Date().getTime();
return XHR.sendCommand("HEAD", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("HEAD", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))

@@ -66,3 +78,7 @@ .catch(err => this.handleError(err));

const _url = this.host + "/error" + "?ts=" + new Date().getTime();
return XHR.sendCommand("OPTIONS", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("OPTIONS", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))

@@ -74,3 +90,7 @@ .catch(err => this.handleError(err));

const _url = this.host + "/error" + "?ts=" + new Date().getTime();
return XHR.sendCommand("PATCH", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("PATCH", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))

@@ -82,3 +102,7 @@ .catch(err => this.handleError(err));

const _url = this.host + "/error" + "?ts=" + new Date().getTime();
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.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)))

@@ -90,3 +114,7 @@ .catch(err => this.handleError(err));

const _url = this.host + "/error" + "?ts=" + new Date().getTime();
return XHR.sendCommand("PUT", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("PUT", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))

@@ -93,0 +121,0 @@ .catch(err => this.handleError(err));

@@ -63,3 +63,7 @@ /**

(reference ? "&reference=" + reference : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.AgreementResponse(doc.body))

@@ -83,3 +87,7 @@ .catch(err => this.handleError(err));

(iorequestReference ? "&iorequestReference=" + iorequestReference : "");
return XHR.sendCommand("DELETE", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("DELETE", _url, headers, _body)
.then(doc => new models.AgreementResponse(doc.body))

@@ -102,3 +110,7 @@ .catch(err => this.handleError(err));

(decisionReference ? "&decisionReference=" + decisionReference : "");
return XHR.sendCommand("DELETE", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("DELETE", _url, headers, _body)
.then(doc => new models.AgreementResponse(doc.body))

@@ -115,3 +127,7 @@ .catch(err => this.handleError(err));

new Date().getTime();
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => doc.body.map(it => new models.ParagraphPreview(it)))

@@ -128,3 +144,7 @@ .catch(err => this.handleError(err));

new Date().getTime();
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => doc.body.map(it => new models.ParagraphPreview(it)))

@@ -141,3 +161,7 @@ .catch(err => this.handleError(err));

new Date().getTime();
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => doc.body.map(it => new models.AddedDocumentPreview(it)))

@@ -170,3 +194,7 @@ .catch(err => this.handleError(err));

(ioRequestReference ? "&ioRequestReference=" + ioRequestReference : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.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 => new models.AgreementResponse(doc.body))

@@ -173,0 +201,0 @@ .catch(err => this.handleError(err));

@@ -42,4 +42,20 @@ /**

let _body = null;
const _url = this.host + "/consent/{patientSsin}".replace("{patientSsin}", patientSsin + "") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (patientFirstName ? "&patientFirstName=" + patientFirstName : "") + (patientLastName ? "&patientLastName=" + patientLastName : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url = this.host +
"/consent/{patientSsin}".replace("{patientSsin}", patientSsin + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(patientFirstName ? "&patientFirstName=" + patientFirstName : "") +
(patientLastName ? "&patientLastName=" + patientLastName : "");
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.ConsentMessageDto(doc.body))

@@ -50,4 +66,22 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/consent/{patientSsin}".replace("{patientSsin}", patientSsin + "") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (patientFirstName ? "&patientFirstName=" + patientFirstName : "") + (patientLastName ? "&patientLastName=" + patientLastName : "") + (eidCardNumber ? "&eidCardNumber=" + eidCardNumber : "") + (isiCardNumber ? "&isiCardNumber=" + isiCardNumber : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const _url = this.host +
"/consent/{patientSsin}".replace("{patientSsin}", patientSsin + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(patientFirstName ? "&patientFirstName=" + patientFirstName : "") +
(patientLastName ? "&patientLastName=" + patientLastName : "") +
(eidCardNumber ? "&eidCardNumber=" + eidCardNumber : "") +
(isiCardNumber ? "&isiCardNumber=" + isiCardNumber : "");
const headers = this.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 => new models.ConsentMessageDto(doc.body))

@@ -59,4 +93,20 @@ .catch(err => this.handleError(err));

_body = existingConsent;
const _url = this.host + "/consent/revoke/{patientSsin}" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (eidCardNumber ? "&eidCardNumber=" + eidCardNumber : "") + (isiCardNumber ? "&isiCardNumber=" + isiCardNumber : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const _url = this.host +
"/consent/revoke/{patientSsin}" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(eidCardNumber ? "&eidCardNumber=" + eidCardNumber : "") +
(isiCardNumber ? "&isiCardNumber=" + isiCardNumber : "");
const headers = this.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 => new models.ConsentMessageDto(doc.body))

@@ -63,0 +113,0 @@ .catch(err => this.handleError(err));

@@ -43,4 +43,18 @@ /**

_body = dmgTacks;
const _url = this.host + "/gmd/confirm/acks" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const _url = this.host +
"/gmd/confirm/acks" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "");
const headers = this.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)))

@@ -52,4 +66,18 @@ .catch(err => this.handleError(err));

_body = dmgMessages;
const _url = this.host + "/gmd/confirm/messages" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const _url = this.host +
"/gmd/confirm/messages" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "");
const headers = this.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)))

@@ -60,4 +88,23 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/gmd" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (patientSsin ? "&patientSsin=" + patientSsin : "") + (patientGender ? "&patientGender=" + patientGender : "") + (oa ? "&oa=" + oa : "") + (regNrWithMut ? "&regNrWithMut=" + regNrWithMut : "") + (requestDate ? "&requestDate=" + requestDate : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url = this.host +
"/gmd" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(patientSsin ? "&patientSsin=" + patientSsin : "") +
(patientGender ? "&patientGender=" + patientGender : "") +
(oa ? "&oa=" + oa : "") +
(regNrWithMut ? "&regNrWithMut=" + regNrWithMut : "") +
(requestDate ? "&requestDate=" + requestDate : "");
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.DmgConsultation(doc.body))

@@ -69,4 +116,19 @@ .catch(err => this.handleError(err));

_body = messageNames;
const _url = this.host + "/gmd/messages" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (oa ? "&oa=" + oa : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url = this.host +
"/gmd/messages" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(oa ? "&oa=" + oa : "");
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => doc.body.map(it => new models.DmgMessage(it)))

@@ -77,4 +139,25 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/gmd/notify/{nomenclature}".replace("{nomenclature}", nomenclature + "") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (patientSsin ? "&patientSsin=" + patientSsin : "") + (oa ? "&oa=" + oa : "") + (regNrWithMut ? "&regNrWithMut=" + regNrWithMut : "") + (patientFirstName ? "&patientFirstName=" + patientFirstName : "") + (patientLastName ? "&patientLastName=" + patientLastName : "") + (patientGender ? "&patientGender=" + patientGender : "") + (requestDate ? "&requestDate=" + requestDate : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const _url = this.host +
"/gmd/notify/{nomenclature}".replace("{nomenclature}", nomenclature + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(patientSsin ? "&patientSsin=" + patientSsin : "") +
(oa ? "&oa=" + oa : "") +
(regNrWithMut ? "&regNrWithMut=" + regNrWithMut : "") +
(patientFirstName ? "&patientFirstName=" + patientFirstName : "") +
(patientLastName ? "&patientLastName=" + patientLastName : "") +
(patientGender ? "&patientGender=" + patientGender : "") +
(requestDate ? "&requestDate=" + requestDate : "");
const headers = this.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 => new models.DmgNotification(doc.body))

@@ -85,4 +168,20 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/gmd/reqlist" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (oa ? "&oa=" + oa : "") + (requestDate ? "&requestDate=" + requestDate : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const _url = this.host +
"/gmd/reqlist" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(oa ? "&oa=" + oa : "") +
(requestDate ? "&requestDate=" + requestDate : "");
const headers = this.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)))

@@ -93,4 +192,20 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/gmd/register/{oa}".replace("{oa}", oa + "") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (bic ? "&bic=" + bic : "") + (iban ? "&iban=" + iban : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const _url = this.host +
"/gmd/register/{oa}".replace("{oa}", oa + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(bic ? "&bic=" + bic : "") +
(iban ? "&iban=" + iban : "");
const headers = this.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 => new models.DmgRegistration(doc.body))

@@ -97,0 +212,0 @@ .catch(err => this.handleError(err));

@@ -43,4 +43,20 @@ /**

_body = attest;
const _url = this.host + "/eattest/send/{patientSsin}".replace("{patientSsin}", patientSsin + "") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (hcpCbe ? "&hcpCbe=" + hcpCbe : "") + (date ? "&date=" + date : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const _url = this.host +
"/eattest/send/{patientSsin}".replace("{patientSsin}", patientSsin + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(hcpCbe ? "&hcpCbe=" + hcpCbe : "") +
(date ? "&date=" + date : "");
const headers = this.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 => new models.SendAttestResult(doc.body))

@@ -52,4 +68,20 @@ .catch(err => this.handleError(err));

_body = attest;
const _url = this.host + "/eattest/send/{patientSsin}/verbose".replace("{patientSsin}", patientSsin + "") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (hcpCbe ? "&hcpCbe=" + hcpCbe : "") + (date ? "&date=" + date : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const _url = this.host +
"/eattest/send/{patientSsin}/verbose".replace("{patientSsin}", patientSsin + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(hcpCbe ? "&hcpCbe=" + hcpCbe : "") +
(date ? "&date=" + date : "");
const headers = this.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 => new models.SendAttestResultWithResponse(doc.body))

@@ -56,0 +88,0 @@ .catch(err => this.handleError(err));

@@ -54,3 +54,7 @@ /**

(lastName ? "&lastName=" + lastName : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => doc.body.map(it => new models.EfactMessage(it)))

@@ -69,3 +73,7 @@ .catch(err => this.handleError(err));

(passPhrase ? "&passPhrase=" + passPhrase : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.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 => new models.EfactSendResponse(doc.body))

@@ -72,0 +80,0 @@ .catch(err => this.handleError(err));

@@ -50,3 +50,7 @@ /**

(passPhrase ? "&passPhrase=" + passPhrase : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.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)))

@@ -70,3 +74,7 @@ .catch(err => this.handleError(err));

: "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.Message(doc.body))

@@ -84,3 +92,7 @@ .catch(err => this.handleError(err));

(passPhrase ? "&passPhrase=" + passPhrase : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.BoxInfo(doc.body))

@@ -103,3 +115,7 @@ .catch(err => this.handleError(err));

: "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => doc.body.map(it => new models.Message(it)))

@@ -120,3 +136,7 @@ .catch(err => this.handleError(err));

(passPhrase ? "&passPhrase=" + passPhrase : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.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)))

@@ -137,3 +157,7 @@ .catch(err => this.handleError(err));

(readReceipt ? "&readReceipt=" + readReceipt : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.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)))

@@ -140,0 +164,0 @@ .catch(err => this.handleError(err));

@@ -42,4 +42,23 @@ /**

let _body = null;
const _url = this.host + "/genins/{io}/{ioMembership}".replace("{io}", io + "").replace("{ioMembership}", ioMembership + "") + "?ts=" + new Date().getTime() + (tokenId ? "&tokenId=" + tokenId : "") + (keystoreId ? "&keystoreId=" + keystoreId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpName ? "&hcpName=" + hcpName : "") + (hcpQuality ? "&hcpQuality=" + hcpQuality : "") + (date ? "&date=" + date : "") + (endDate ? "&endDate=" + endDate : "") + (hospitalized ? "&hospitalized=" + hospitalized : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url = this.host +
"/genins/{io}/{ioMembership}"
.replace("{io}", io + "")
.replace("{ioMembership}", ioMembership + "") +
"?ts=" +
new Date().getTime() +
(tokenId ? "&tokenId=" + tokenId : "") +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpName ? "&hcpName=" + hcpName : "") +
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") +
(date ? "&date=" + date : "") +
(endDate ? "&endDate=" + endDate : "") +
(hospitalized ? "&hospitalized=" + hospitalized : "");
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.InsurabilityInfoDto(doc.body))

@@ -50,4 +69,21 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/genins/{ssin}".replace("{ssin}", ssin + "") + "?ts=" + new Date().getTime() + (tokenId ? "&tokenId=" + tokenId : "") + (keystoreId ? "&keystoreId=" + keystoreId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpName ? "&hcpName=" + hcpName : "") + (hcpQuality ? "&hcpQuality=" + hcpQuality : "") + (date ? "&date=" + date : "") + (endDate ? "&endDate=" + endDate : "") + (hospitalized ? "&hospitalized=" + hospitalized : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url = this.host +
"/genins/{ssin}".replace("{ssin}", ssin + "") +
"?ts=" +
new Date().getTime() +
(tokenId ? "&tokenId=" + tokenId : "") +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpName ? "&hcpName=" + hcpName : "") +
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") +
(date ? "&date=" + date : "") +
(endDate ? "&endDate=" + endDate : "") +
(hospitalized ? "&hospitalized=" + hospitalized : "");
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.InsurabilityInfoDto(doc.body))

@@ -54,0 +90,0 @@ .catch(err => this.handleError(err));

@@ -55,3 +55,7 @@ /**

(hubPackageId ? "&hubPackageId=" + hubPackageId : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.HcPartyConsent(doc.body))

@@ -76,3 +80,7 @@ .catch(err => this.handleError(err));

(hcpZip ? "&hcpZip=" + hcpZip : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.Consent(doc.body))

@@ -97,3 +105,7 @@ .catch(err => this.handleError(err));

(hcpZip ? "&hcpZip=" + hcpZip : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.Patient(doc.body))

@@ -122,3 +134,7 @@ .catch(err => this.handleError(err));

(to ? "&to=" + to : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => doc.body.map(it => new models.TherapeuticLink(it)))

@@ -148,3 +164,7 @@ .catch(err => this.handleError(err));

(id ? "&id=" + id : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))

@@ -174,3 +194,7 @@ .catch(err => this.handleError(err));

(id ? "&id=" + id : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))

@@ -201,3 +225,7 @@ .catch(err => this.handleError(err));

(breakTheGlassReason ? "&breakTheGlassReason=" + breakTheGlassReason : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => doc.body.map(it => new models.TransactionSummary(it)))

@@ -227,3 +255,7 @@ .catch(err => this.handleError(err));

(dateOfBirth ? "&dateOfBirth=" + dateOfBirth : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.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 => new models.Patient(doc.body))

@@ -252,3 +284,7 @@ .catch(err => this.handleError(err));

(hubApplication ? "&hubApplication=" + hubApplication : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.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 => new models.PutTransactionSetResponse(doc.body))

@@ -277,3 +313,7 @@ .catch(err => this.handleError(err));

(hubApplication ? "&hubApplication=" + hubApplication : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/xml"));
return XHR.sendCommand("POST", _url, headers, _body)
.then(doc => new models.TransactionIdType(doc.body))

@@ -299,3 +339,7 @@ .catch(err => this.handleError(err));

(patientEidCardNumber ? "&patientEidCardNumber=" + patientEidCardNumber : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.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 => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true))

@@ -322,3 +366,7 @@ .catch(err => this.handleError(err));

(patientEidCardNumber ? "&patientEidCardNumber=" + patientEidCardNumber : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.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 => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true))

@@ -348,3 +396,7 @@ .catch(err => this.handleError(err));

(id ? "&id=" + id : "");
return XHR.sendCommand("DELETE", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("DELETE", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))

@@ -351,0 +403,0 @@ .catch(err => this.handleError(err));

@@ -43,4 +43,18 @@ /**

_body = prescription;
const _url = this.host + "/recipe" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (hcpQuality ? "&hcpQuality=" + hcpQuality : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpName ? "&hcpName=" + hcpName : "") + (passPhrase ? "&passPhrase=" + passPhrase : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const _url = this.host +
"/recipe" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpName ? "&hcpName=" + hcpName : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "");
const headers = this.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 => new models.Prescription(doc.body))

@@ -51,4 +65,11 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/recipe/gal/{galId}".replace("{galId}", galId + "") + "?ts=" + new Date().getTime();
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url = this.host +
"/recipe/gal/{galId}".replace("{galId}", galId + "") +
"?ts=" +
new Date().getTime();
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.Code(doc.body))

@@ -60,3 +81,7 @@ .catch(err => this.handleError(err));

const _url = this.host + "/recipe/{rid}".replace("{rid}", rid + "") + "?ts=" + new Date().getTime();
return XHR.sendCommand("GET", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.PrescriptionFullWithFeedback(doc.body))

@@ -67,4 +92,18 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/recipe/all/feedbacks" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (hcpQuality ? "&hcpQuality=" + hcpQuality : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpName ? "&hcpName=" + hcpName : "") + (passPhrase ? "&passPhrase=" + passPhrase : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url = this.host +
"/recipe/all/feedbacks" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpName ? "&hcpName=" + hcpName : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "");
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => doc.body.map(it => new models.Feedback(it)))

@@ -75,4 +114,18 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/recipe" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (hcpQuality ? "&hcpQuality=" + hcpQuality : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpName ? "&hcpName=" + hcpName : "") + (passPhrase ? "&passPhrase=" + passPhrase : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url = this.host +
"/recipe" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpName ? "&hcpName=" + hcpName : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "");
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => doc.body.map(it => new models.Prescription(it)))

@@ -83,4 +136,19 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/recipe/{rid}".replace("{rid}", rid + "") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (hcpQuality ? "&hcpQuality=" + hcpQuality : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpName ? "&hcpName=" + hcpName : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (reason ? "&reason=" + reason : "");
return XHR.sendCommand("DELETE", _url, this.headers, _body)
const _url = this.host +
"/recipe/{rid}".replace("{rid}", rid + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpName ? "&hcpName=" + hcpName : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(reason ? "&reason=" + reason : "");
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("DELETE", _url, headers, _body)
.then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true))

@@ -91,4 +159,21 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/recipe/notify/{rid}".replace("{rid}", rid + "") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (hcpQuality ? "&hcpQuality=" + hcpQuality : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpName ? "&hcpName=" + hcpName : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (patientId ? "&patientId=" + patientId : "") + (executorId ? "&executorId=" + executorId : "") + (text ? "&text=" + text : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const _url = this.host +
"/recipe/notify/{rid}".replace("{rid}", rid + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpName ? "&hcpName=" + hcpName : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(patientId ? "&patientId=" + patientId : "") +
(executorId ? "&executorId=" + executorId : "") +
(text ? "&text=" + text : "");
const headers = this.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 => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true))

@@ -99,4 +184,20 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/recipe/{rid}/feedback/{feedbackFlag}".replace("{rid}", rid + "").replace("{feedbackFlag}", feedbackFlag + "") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (hcpQuality ? "&hcpQuality=" + hcpQuality : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpName ? "&hcpName=" + hcpName : "") + (passPhrase ? "&passPhrase=" + passPhrase : "");
return XHR.sendCommand("PUT", _url, this.headers, _body)
const _url = this.host +
"/recipe/{rid}/feedback/{feedbackFlag}"
.replace("{rid}", rid + "")
.replace("{feedbackFlag}", feedbackFlag + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(hcpQuality ? "&hcpQuality=" + hcpQuality : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpName ? "&hcpName=" + hcpName : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "");
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("PUT", _url, headers, _body)
.then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true))

@@ -103,0 +204,0 @@ .catch(err => this.handleError(err));

@@ -42,4 +42,11 @@ /**

let _body = null;
const _url = this.host + "/sts/keystore/check/{keystoreId}".replace("{keystoreId}", keystoreId + "") + "?ts=" + new Date().getTime();
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url = this.host +
"/sts/keystore/check/{keystoreId}".replace("{keystoreId}", keystoreId + "") +
"?ts=" +
new Date().getTime();
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))

@@ -50,4 +57,11 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/sts/token/check/{tokenId}".replace("{tokenId}", tokenId + "") + "?ts=" + new Date().getTime();
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url = this.host +
"/sts/token/check/{tokenId}".replace("{tokenId}", tokenId + "") +
"?ts=" +
new Date().getTime();
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => JSON.parse(JSON.stringify(doc.body)))

@@ -59,4 +73,11 @@ .catch(err => this.handleError(err));

_body = token;
const _url = this.host + "/sts/token/{tokenId}".replace("{tokenId}", tokenId + "") + "?ts=" + new Date().getTime();
return XHR.sendCommand("POST", _url, this.headers, _body)
const _url = this.host +
"/sts/token/{tokenId}".replace("{tokenId}", tokenId + "") +
"?ts=" +
new Date().getTime();
const headers = this.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 => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true))

@@ -67,4 +88,14 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/sts/token/{keystoreId}".replace("{keystoreId}", keystoreId + "") + "?ts=" + new Date().getTime() + (passPhrase ? "&passPhrase=" + passPhrase : "") + (ssin ? "&ssin=" + ssin : "") + (isMedicalHouse ? "&isMedicalHouse=" + isMedicalHouse : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url = this.host +
"/sts/token/{keystoreId}".replace("{keystoreId}", keystoreId + "") +
"?ts=" +
new Date().getTime() +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(ssin ? "&ssin=" + ssin : "") +
(isMedicalHouse ? "&isMedicalHouse=" + isMedicalHouse : "");
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.SamlTokenResult(doc.body))

@@ -75,5 +106,10 @@ .catch(err => this.handleError(err));

let _body = null;
file && (_body = (_body || new FormData())).append('file', new Blob(file, { type: "application/octet-stream" }));
file &&
(_body = _body || new FormData()).append("file", new Blob(file, { type: "application/octet-stream" }));
const _url = this.host + "/sts/keystore" + "?ts=" + new Date().getTime();
return XHR.sendCommand("POST", _url, this.headers, _body)
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "multipart/form-data"));
return XHR.sendCommand("POST", _url, headers, _body)
.then(doc => new models.UUIDType(doc.body))

@@ -80,0 +116,0 @@ .catch(err => this.handleError(err));

@@ -43,4 +43,21 @@ /**

_body = codes;
const _url = this.host + "/tarif/{ssin}".replace("{ssin}", ssin + "") + "?ts=" + new Date().getTime() + (tokenId ? "&tokenId=" + tokenId : "") + (keystoreId ? "&keystoreId=" + keystoreId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (date ? "&date=" + date : "") + (gmdNihii ? "&gmdNihii=" + gmdNihii : "") + (justification ? "&justification=" + justification : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const _url = this.host +
"/tarif/{ssin}".replace("{ssin}", ssin + "") +
"?ts=" +
new Date().getTime() +
(tokenId ? "&tokenId=" + tokenId : "") +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(date ? "&date=" + date : "") +
(gmdNihii ? "&gmdNihii=" + gmdNihii : "") +
(justification ? "&justification=" + justification : "");
const headers = this.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 => new models.TarificationConsultationResult(doc.body))

@@ -47,0 +64,0 @@ .catch(err => this.handleError(err));

@@ -43,4 +43,14 @@ /**

_body = therLink;
const _url = this.host + "/therlink/check" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const _url = this.host +
"/therlink/check" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "");
const headers = this.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 => new models.TherapeuticLinkDto(doc.body))

@@ -51,4 +61,27 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/therlink/{patientSsin}/{hcpNihii}".replace("{hcpNihii}", hcpNihii + "").replace("{patientSsin}", patientSsin + "") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (patientFirstName ? "&patientFirstName=" + patientFirstName : "") + (patientLastName ? "&patientLastName=" + patientLastName : "") + (eidCardNumber ? "&eidCardNumber=" + eidCardNumber : "") + (isiCardNumber ? "&isiCardNumber=" + isiCardNumber : "") + (startDate ? "&startDate=" + startDate : "") + (endDate ? "&endDate=" + endDate : "") + (type ? "&type=" + type : "") + (sign ? "&sign=" + sign : "");
return XHR.sendCommand("GET", _url, this.headers, _body)
const _url = this.host +
"/therlink/{patientSsin}/{hcpNihii}"
.replace("{hcpNihii}", hcpNihii + "")
.replace("{patientSsin}", patientSsin + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(patientFirstName ? "&patientFirstName=" + patientFirstName : "") +
(patientLastName ? "&patientLastName=" + patientLastName : "") +
(eidCardNumber ? "&eidCardNumber=" + eidCardNumber : "") +
(isiCardNumber ? "&isiCardNumber=" + isiCardNumber : "") +
(startDate ? "&startDate=" + startDate : "") +
(endDate ? "&endDate=" + endDate : "") +
(type ? "&type=" + type : "") +
(sign ? "&sign=" + sign : "");
const headers = this.headers;
headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => doc.body.map(it => new models.TherapeuticLinkMessageDto(it)))

@@ -60,4 +93,15 @@ .catch(err => this.handleError(err));

_body = queryLink;
const _url = this.host + "/therlink/query" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (sign ? "&sign=" + sign : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const _url = this.host +
"/therlink/query" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(sign ? "&sign=" + sign : "");
const headers = this.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 => doc.body.map(it => new models.TherapeuticLinkMessageDto(it)))

@@ -68,4 +112,28 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/therlink/register" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpNihii ? "&hcpNihii=" + hcpNihii : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (patientSsin ? "&patientSsin=" + patientSsin : "") + (patientFirstName ? "&patientFirstName=" + patientFirstName : "") + (patientLastName ? "&patientLastName=" + patientLastName : "") + (eidCardNumber ? "&eidCardNumber=" + eidCardNumber : "") + (isiCardNumber ? "&isiCardNumber=" + isiCardNumber : "") + (start ? "&start=" + start : "") + (end ? "&end=" + end : "") + (therLinkType ? "&therLinkType=" + therLinkType : "") + (comment ? "&comment=" + comment : "") + (sign ? "&sign=" + sign : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const _url = this.host +
"/therlink/register" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpNihii ? "&hcpNihii=" + hcpNihii : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(patientSsin ? "&patientSsin=" + patientSsin : "") +
(patientFirstName ? "&patientFirstName=" + patientFirstName : "") +
(patientLastName ? "&patientLastName=" + patientLastName : "") +
(eidCardNumber ? "&eidCardNumber=" + eidCardNumber : "") +
(isiCardNumber ? "&isiCardNumber=" + isiCardNumber : "") +
(start ? "&start=" + start : "") +
(end ? "&end=" + end : "") +
(therLinkType ? "&therLinkType=" + therLinkType : "") +
(comment ? "&comment=" + comment : "") +
(sign ? "&sign=" + sign : "");
const headers = this.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 => new models.TherapeuticLinkMessageDto(doc.body))

@@ -76,4 +144,28 @@ .catch(err => this.handleError(err));

let _body = null;
const _url = this.host + "/therlink/revoke/{patientSsin}/{hcpNihii}".replace("{hcpNihii}", hcpNihii + "").replace("{patientSsin}", patientSsin + "") + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (hcpSsin ? "&hcpSsin=" + hcpSsin : "") + (hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") + (hcpLastName ? "&hcpLastName=" + hcpLastName : "") + (patientFirstName ? "&patientFirstName=" + patientFirstName : "") + (patientLastName ? "&patientLastName=" + patientLastName : "") + (eidCardNumber ? "&eidCardNumber=" + eidCardNumber : "") + (isiCardNumber ? "&isiCardNumber=" + isiCardNumber : "") + (start ? "&start=" + start : "") + (end ? "&end=" + end : "") + (therLinkType ? "&therLinkType=" + therLinkType : "") + (comment ? "&comment=" + comment : "") + (sign ? "&sign=" + sign : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const _url = this.host +
"/therlink/revoke/{patientSsin}/{hcpNihii}"
.replace("{hcpNihii}", hcpNihii + "")
.replace("{patientSsin}", patientSsin + "") +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(hcpSsin ? "&hcpSsin=" + hcpSsin : "") +
(hcpFirstName ? "&hcpFirstName=" + hcpFirstName : "") +
(hcpLastName ? "&hcpLastName=" + hcpLastName : "") +
(patientFirstName ? "&patientFirstName=" + patientFirstName : "") +
(patientLastName ? "&patientLastName=" + patientLastName : "") +
(eidCardNumber ? "&eidCardNumber=" + eidCardNumber : "") +
(isiCardNumber ? "&isiCardNumber=" + isiCardNumber : "") +
(start ? "&start=" + start : "") +
(end ? "&end=" + end : "") +
(therLinkType ? "&therLinkType=" + therLinkType : "") +
(comment ? "&comment=" + comment : "") +
(sign ? "&sign=" + sign : "");
const headers = this.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 => new models.TherapeuticLinkMessageDto(doc.body))

@@ -85,4 +177,15 @@ .catch(err => this.handleError(err));

_body = therLink;
const _url = this.host + "/therlink/revoke" + "?ts=" + new Date().getTime() + (keystoreId ? "&keystoreId=" + keystoreId : "") + (tokenId ? "&tokenId=" + tokenId : "") + (passPhrase ? "&passPhrase=" + passPhrase : "") + (sign ? "&sign=" + sign : "");
return XHR.sendCommand("POST", _url, this.headers, _body)
const _url = this.host +
"/therlink/revoke" +
"?ts=" +
new Date().getTime() +
(keystoreId ? "&keystoreId=" + keystoreId : "") +
(tokenId ? "&tokenId=" + tokenId : "") +
(passPhrase ? "&passPhrase=" + passPhrase : "") +
(sign ? "&sign=" + sign : "");
const headers = this.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 => new models.TherapeuticLinkMessageDto(doc.body))

@@ -89,0 +192,0 @@ .catch(err => this.handleError(err));

{
"name": "fhc-api",
"version": "1.0.1",
"version": "1.0.2",
"description": "Typescript version of Freehealth Connector standalone API client",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc