Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions icc-api/api/IccBekmehrApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { Content } from '../model/Content'
import { DiaryNoteExportInfo } from '../model/DiaryNoteExportInfo'
import { ImportMapping } from '../model/ImportMapping'
import { ImportResult } from '../model/ImportResult'
import { IncapacityExportInfo } from '../model/IncapacityExportInfo';
import { MedicationSchemeExportInfo } from '../model/MedicationSchemeExportInfo'
import { SoftwareMedicalFileExport } from '../model/SoftwareMedicalFileExport'
import { SumehrContent } from '../model/SumehrContent'
Expand Down Expand Up @@ -228,6 +229,28 @@ export class IccBekmehrApi {
.catch((err) => this.handleError(err))
}

/**
*
* @summary Get Incapacity export
* @param body
* @param patientId
* @param language
* @param xTimezoneOffset
*/
generateIncapacityExport(patientId: string, language: string, xTimezoneOffset?: string, body?: IncapacityExportInfo): Promise<ArrayBuffer> {
let _body = null
_body = body

const _url = this.host + `/be_kmehr/incapacity/${encodeURIComponent(String(patientId))}/export` + "?ts=" + new Date().getTime() + (language ? "&language=" + encodeURIComponent(String(language)) : "")
let headers = this.headers
headers = headers.filter(h => h.header !== "Content-Type").concat(new XHR.Header("Content-Type", "application/json"))
xTimezoneOffset && (headers = headers.concat(new XHR.Header("X-Timezone-Offset", xTimezoneOffset)))
return XHR.sendCommand("POST", _url, headers, _body, this.fetchImpl)
.then(doc =>
doc.body )
.catch(err => this.handleError(err))
}

/**
*
* @summary Get Kmehr note
Expand Down
29 changes: 29 additions & 0 deletions icc-api/model/IncapacityExportInfo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* iCure Data Stack API Documentation
* The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.
*
* OpenAPI spec version: v1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
import { HealthcareParty } from './HealthcareParty';
import { Service } from './Service';

export class IncapacityExportInfo {
constructor(json: JSON | any) {
Object.assign(this as IncapacityExportInfo, json)
}

secretForeignKeys?: Array<string>;
services?: Array<Service>;
serviceAuthors?: Array<HealthcareParty>;
recipient?: HealthcareParty;
comment?: string;
incapacityId?: string;
retraction?: boolean;
dataset?: string;
}

1 change: 1 addition & 0 deletions icc-api/model/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export * from './Identifier'
export * from './IdentityDocumentReader'
export * from './ImportMapping'
export * from './ImportResult'
export * from './IncapacityExportInfo'
export * from './IndexedIdentifier'
export * from './IndexingInfo'
export * from './Ingredient'
Expand Down