@icure/api 4.1.4 → 4.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/icc-api/api/IccBesamv2Api.d.ts +43 -0
  2. package/icc-api/api/IccBesamv2Api.js +100 -0
  3. package/icc-api/api/IccBesamv2Api.js.map +1 -1
  4. package/icc-api/api/IccInvoiceApi.d.ts +2 -2
  5. package/icc-api/api/IccInvoiceApi.js +2 -2
  6. package/icc-api/api/IccInvoiceApi.js.map +1 -1
  7. package/icc-api/api/IccPatientApi.d.ts +1 -1
  8. package/icc-api/api/IccPatientApi.js +1 -1
  9. package/icc-api/api/IccPatientApi.js.map +1 -1
  10. package/icc-api/model/{Authentication.d.ts → AddedDocument.d.ts} +10 -3
  11. package/icc-api/model/AddedDocument.js +21 -0
  12. package/icc-api/model/AddedDocument.js.map +1 -0
  13. package/icc-api/model/Device.d.ts +20 -0
  14. package/icc-api/model/Device.js.map +1 -1
  15. package/icc-api/model/HealthcareParty.d.ts +20 -0
  16. package/icc-api/model/HealthcareParty.js.map +1 -1
  17. package/icc-api/model/Invoice.d.ts +3 -0
  18. package/icc-api/model/Invoice.js.map +1 -1
  19. package/icc-api/model/InvoicingCode.d.ts +1 -0
  20. package/icc-api/model/InvoicingCode.js.map +1 -1
  21. package/icc-api/model/MedicationSchemeExportInfo.d.ts +1 -0
  22. package/icc-api/model/MedicationSchemeExportInfo.js.map +1 -1
  23. package/icc-api/model/Paragraph.d.ts +37 -0
  24. package/icc-api/model/Paragraph.js +21 -0
  25. package/icc-api/model/Paragraph.js.map +1 -0
  26. package/icc-api/model/Patient.d.ts +20 -0
  27. package/icc-api/model/Patient.js.map +1 -1
  28. package/icc-api/model/Suspension.d.ts +1 -0
  29. package/icc-api/model/Suspension.js.map +1 -1
  30. package/icc-api/model/Verse.d.ts +61 -0
  31. package/icc-api/model/{Authentication.js → Verse.js} +4 -4
  32. package/icc-api/model/Verse.js.map +1 -0
  33. package/icc-api/model/models.d.ts +3 -1
  34. package/icc-api/model/models.js +3 -1
  35. package/icc-api/model/models.js.map +1 -1
  36. package/icc-x-api/icc-crypto-x-api.d.ts +14 -6
  37. package/icc-x-api/icc-crypto-x-api.js +28 -44
  38. package/icc-x-api/icc-crypto-x-api.js.map +1 -1
  39. package/icc-x-api/index.d.ts +2 -0
  40. package/icc-x-api/index.js +3 -0
  41. package/icc-x-api/index.js.map +1 -1
  42. package/package.json +3 -4
  43. package/icc-api/model/Authentication.js.map +0 -1
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * iCure Data Stack API Documentation
4
+ * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.
5
+ *
6
+ * OpenAPI spec version: v1
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by the swagger code generator program.
10
+ * https://github.com/swagger-api/swagger-codegen.git
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.AddedDocument = void 0;
15
+ class AddedDocument {
16
+ constructor(json) {
17
+ Object.assign(this, json);
18
+ }
19
+ }
20
+ exports.AddedDocument = AddedDocument;
21
+ //# sourceMappingURL=AddedDocument.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AddedDocument.js","sourceRoot":"","sources":["../../../icc-api/model/AddedDocument.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,aAAa;IACxB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAqB,EAAE,IAAI,CAAC,CAAA;IAC5C,CAAC;CAWF;AAdD,sCAcC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\n\nexport class AddedDocument {\n constructor(json: JSON | any) {\n Object.assign(this as AddedDocument, json)\n }\n\n from?: number\n to?: number\n verseSeq?: number\n documentSeq?: number\n mimeType?: string\n addressUrl?: string\n descrNl?: string\n descrFr?: string\n localPath?: string\n}\n"]}
@@ -68,6 +68,26 @@ export declare class Device {
68
68
  hcPartyKeys?: {
69
69
  [key: string]: Array<string>;
70
70
  };
71
+ /**
72
+ * Extra AES exchange keys, usually the ones we lost access to at some point. The structure is { publicKey: { delegateId: [aesExKey_for_this, aesExKey_for_delegate] } }
73
+ */
74
+ aesExchangeKeys?: {
75
+ [key: string]: {
76
+ [key: string]: Array<string>;
77
+ };
78
+ };
79
+ /**
80
+ * Our private keys encrypted with our public keys. The structure is { publicKey1: { publicKey2: privateKey2_encrypted_with_publicKey1, publicKey3: privateKey3_encrypted_with_publicKey1 } }
81
+ */
82
+ transferKeys?: {
83
+ [key: string]: {
84
+ [key: string]: string;
85
+ };
86
+ };
87
+ /**
88
+ * The hcparty keys (first of the pair) for which we are asking a re-encryption by the delegate using our new publicKey.
89
+ */
90
+ lostHcPartyKeys?: Array<string>;
71
91
  /**
72
92
  * The privateKeyShamirPartitions are used to share this hcp's private RSA key with a series of other hcParties using Shamir's algorithm. The key of the map is the hcp Id with whom this partition has been shared. The value is \"threshold⎮partition in hex\" encrypted using the the partition's holder's public RSA key
73
93
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Device.js","sourceRoot":"","sources":["../../../icc-api/model/Device.ts"],"names":[],"mappings":";;;AAeA;;GAEG;AACH,+CAAuC;AACvC,MAAa,MAAM;IACjB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAc,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,qBAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IAC7F,CAAC;CA8DF;AAjED,wBAiEC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\nimport { CodeStub } from './CodeStub'\nimport { Identifier } from './Identifier'\nimport { PropertyStub } from './PropertyStub'\n\n/**\n * This entity is a root level object. It represents a device. It is serialized in JSON and saved in the underlying icure-base CouchDB database.\n */\nimport { b64_2ab } from './ModelHelper'\nexport class Device {\n constructor(json: JSON | any) {\n Object.assign(this as Device, json, json.picture ? { picture: b64_2ab(json.picture) } : {})\n }\n\n id?: string\n rev?: string\n /**\n * hard delete (unix epoch in ms) timestamp of the object. Filled automatically when deletePatient is called.\n */\n deletionDate?: number\n identifiers?: Array<Identifier>\n /**\n * The timestamp (unix epoch in ms) of creation of this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n created?: number\n /**\n * The date (unix epoch in ms) of the latest modification of this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n modified?: number\n /**\n * The id of the User that has created this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n author?: string\n /**\n * The id of the HealthcareParty that is responsible for this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n responsible?: string\n /**\n * A tag is an item from a codification system that qualifies an entity as being member of a certain class, whatever the value it might have taken. If the tag qualifies the content of a field, it means that whatever the content of the field, the tag will always apply. For example, the label of a field is qualified using a tag. LOINC is a codification system typically used for tags.\n */\n tags?: Array<CodeStub>\n /**\n * A code is an item from a codification system that qualifies the content of this entity. SNOMED-CT, ICPC-2 or ICD-10 codifications systems can be used for codes\n */\n codes?: Array<CodeStub>\n /**\n * Soft delete (unix epoch in ms) timestamp of the object.\n */\n endOfLife?: number\n /**\n * The id of the medical location where this entity was created.\n */\n medicalLocationId?: string\n externalId?: string\n name?: string\n type?: string\n brand?: string\n model?: string\n serialNumber?: string\n parentId?: string\n picture?: ArrayBuffer\n properties?: Array<PropertyStub>\n /**\n * For each couple of HcParties (delegator and delegate), this map contains the exchange AES key. The delegator is always this hcp, the key of the map is the id of the delegate. The AES exchange key is encrypted using RSA twice : once using this hcp public key (index 0 in the Array) and once using the other hcp public key (index 1 in the Array). For a pair of HcParties. Each HcParty always has one AES exchange key for himself.\n */\n hcPartyKeys?: { [key: string]: Array<string> }\n /**\n * The privateKeyShamirPartitions are used to share this hcp's private RSA key with a series of other hcParties using Shamir's algorithm. The key of the map is the hcp Id with whom this partition has been shared. The value is \\\"threshold⎮partition in hex\\\" encrypted using the the partition's holder's public RSA key\n */\n privateKeyShamirPartitions?: { [key: string]: string }\n /**\n * The public key of this hcp\n */\n publicKey?: string\n}\n"]}
1
+ {"version":3,"file":"Device.js","sourceRoot":"","sources":["../../../icc-api/model/Device.ts"],"names":[],"mappings":";;;AAeA;;GAEG;AACH,+CAAuC;AACvC,MAAa,MAAM;IACjB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAc,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,qBAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IAC7F,CAAC;CA0EF;AA7ED,wBA6EC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\nimport { CodeStub } from './CodeStub'\nimport { Identifier } from './Identifier'\nimport { PropertyStub } from './PropertyStub'\n\n/**\n * This entity is a root level object. It represents a device. It is serialized in JSON and saved in the underlying icure-base CouchDB database.\n */\nimport { b64_2ab } from './ModelHelper'\nexport class Device {\n constructor(json: JSON | any) {\n Object.assign(this as Device, json, json.picture ? { picture: b64_2ab(json.picture) } : {})\n }\n\n id?: string\n rev?: string\n /**\n * hard delete (unix epoch in ms) timestamp of the object. Filled automatically when deletePatient is called.\n */\n deletionDate?: number\n identifiers?: Array<Identifier>\n /**\n * The timestamp (unix epoch in ms) of creation of this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n created?: number\n /**\n * The date (unix epoch in ms) of the latest modification of this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n modified?: number\n /**\n * The id of the User that has created this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n author?: string\n /**\n * The id of the HealthcareParty that is responsible for this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n responsible?: string\n /**\n * A tag is an item from a codification system that qualifies an entity as being member of a certain class, whatever the value it might have taken. If the tag qualifies the content of a field, it means that whatever the content of the field, the tag will always apply. For example, the label of a field is qualified using a tag. LOINC is a codification system typically used for tags.\n */\n tags?: Array<CodeStub>\n /**\n * A code is an item from a codification system that qualifies the content of this entity. SNOMED-CT, ICPC-2 or ICD-10 codifications systems can be used for codes\n */\n codes?: Array<CodeStub>\n /**\n * Soft delete (unix epoch in ms) timestamp of the object.\n */\n endOfLife?: number\n /**\n * The id of the medical location where this entity was created.\n */\n medicalLocationId?: string\n externalId?: string\n name?: string\n type?: string\n brand?: string\n model?: string\n serialNumber?: string\n parentId?: string\n picture?: ArrayBuffer\n properties?: Array<PropertyStub>\n /**\n * For each couple of HcParties (delegator and delegate), this map contains the exchange AES key. The delegator is always this hcp, the key of the map is the id of the delegate. The AES exchange key is encrypted using RSA twice : once using this hcp public key (index 0 in the Array) and once using the other hcp public key (index 1 in the Array). For a pair of HcParties. Each HcParty always has one AES exchange key for himself.\n */\n hcPartyKeys?: { [key: string]: Array<string> }\n /**\n * Extra AES exchange keys, usually the ones we lost access to at some point. The structure is { publicKey: { delegateId: [aesExKey_for_this, aesExKey_for_delegate] } }\n */\n aesExchangeKeys?: { [key: string]: { [key: string]: Array<string> } }\n /**\n * Our private keys encrypted with our public keys. The structure is { publicKey1: { publicKey2: privateKey2_encrypted_with_publicKey1, publicKey3: privateKey3_encrypted_with_publicKey1 } }\n */\n transferKeys?: { [key: string]: { [key: string]: string } }\n /**\n * The hcparty keys (first of the pair) for which we are asking a re-encryption by the delegate using our new publicKey.\n */\n lostHcPartyKeys?: Array<string>\n /**\n * The privateKeyShamirPartitions are used to share this hcp's private RSA key with a series of other hcParties using Shamir's algorithm. The key of the map is the hcp Id with whom this partition has been shared. The value is \\\"threshold⎮partition in hex\\\" encrypted using the the partition's holder's public RSA key\n */\n privateKeyShamirPartitions?: { [key: string]: string }\n /**\n * The public key of this hcp\n */\n publicKey?: string\n}\n"]}
@@ -170,6 +170,26 @@ export declare class HealthcareParty {
170
170
  hcPartyKeys?: {
171
171
  [key: string]: Array<string>;
172
172
  };
173
+ /**
174
+ * Extra AES exchange keys, usually the ones we lost access to at some point. The structure is { publicKey: { delegateId: [aesExKey_for_this, aesExKey_for_delegate] } }
175
+ */
176
+ aesExchangeKeys?: {
177
+ [key: string]: {
178
+ [key: string]: Array<string>;
179
+ };
180
+ };
181
+ /**
182
+ * Our private keys encrypted with our public keys. The structure is { publicKey1: { publicKey2: privateKey2_encrypted_with_publicKey1, publicKey3: privateKey3_encrypted_with_publicKey1 } }
183
+ */
184
+ transferKeys?: {
185
+ [key: string]: {
186
+ [key: string]: string;
187
+ };
188
+ };
189
+ /**
190
+ * The hcparty keys (first of the pair) for which we are asking a re-encryption by the delegate using our new publicKey.
191
+ */
192
+ lostHcPartyKeys?: Array<string>;
173
193
  /**
174
194
  * The privateKeyShamirPartitions are used to share this hcp's private RSA key with a series of other hcParties using Shamir's algorithm. The key of the map is the hcp Id with whom this partition has been shared. The value is \"threshold⎮partition in hex\" encrypted using the the partition's holder's public RSA key
175
195
  */
@@ -1 +1 @@
1
- {"version":3,"file":"HealthcareParty.js","sourceRoot":"","sources":["../../../icc-api/model/HealthcareParty.ts"],"names":[],"mappings":";;;AAmBA;;GAEG;AACH,+CAAuC;AACvC,MAAa,eAAe;IAC1B,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAuB,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,qBAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IACtG,CAAC;CA0JF;AA7JD,0CA6JC;AACD,WAAiB,eAAe;IAEjB,0BAAU,GAAG;QACxB,IAAI,EAAE,MAAoB;QAC1B,MAAM,EAAE,QAAsB;QAC9B,aAAa,EAAE,eAA6B;QAC5C,OAAO,EAAE,SAAuB;QAChC,aAAa,EAAE,eAA6B;QAC5C,eAAe,EAAE,iBAA+B;QAChD,OAAO,EAAE,SAAuB;KACjC,CAAA;IAEY,4BAAY,GAAG;QAC1B,OAAO,EAAE,SAAyB;QAClC,cAAc,EAAE,gBAAgC;QAChD,YAAY,EAAE,cAA8B;KAC7C,CAAA;AACH,CAAC,EAjBgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAiB/B","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\nimport { Address } from './Address'\nimport { CodeStub } from './CodeStub'\nimport { FinancialInstitutionInformation } from './FinancialInstitutionInformation'\nimport { FlatRateTarification } from './FlatRateTarification'\nimport { HealthcarePartyHistoryStatus } from './HealthcarePartyHistoryStatus'\nimport { PersonName } from './PersonName'\nimport { PropertyStub } from './PropertyStub'\n\n/**\n * This entity is a root level object. It represents a healthcare party. It is serialized in JSON and saved in the underlying icure-healthdata CouchDB database.\n */\nimport { b64_2ab } from './ModelHelper'\nexport class HealthcareParty {\n constructor(json: JSON | any) {\n Object.assign(this as HealthcareParty, json, json.picture ? { picture: b64_2ab(json.picture) } : {})\n }\n\n /**\n * the Id of the healthcare party. We encourage using either a v4 UUID or a HL7 Id.\n */\n id?: string\n /**\n * the revision of the healthcare party in the database, used for conflict management / optimistic locking.\n */\n rev?: string\n /**\n * creation timestamp of the object.\n */\n created?: number\n /**\n * last modification timestamp of the object.\n */\n modified?: number\n /**\n * hard delete (unix epoch in ms) timestamp of the object. Filled automatically when deletePatient is called.\n */\n deletionDate?: number\n /**\n * The full name of the healthcare party, used mainly when the healthcare party is an organization\n */\n name?: string\n /**\n * the lastname (surname) of the healthcare party. This is the official lastname that should be used for official administrative purposes.\n */\n lastName?: string\n /**\n * the firstname (name) of the healthcare party.\n */\n firstName?: string\n /**\n * the list of all names of the healthcare party, also containing the official full name information. Ordered by preference of use. First element is therefore the official name used for the healthcare party in the application\n */\n names?: Array<PersonName>\n /**\n * the gender of the healthcare party: male, female, indeterminate, changed, changedToMale, changedToFemale, unknown\n */\n gender?: HealthcareParty.GenderEnum\n /**\n * Mr., Ms., Pr., Dr. ...\n */\n civility?: string\n /**\n * The name of the company this healthcare party is member of\n */\n companyName?: string\n /**\n * Medical specialty of the healthcare party\n */\n speciality?: string\n /**\n * Bank Account identifier of the healhtcare party, IBAN, deprecated, use financial institutions instead\n */\n bankAccount?: string\n /**\n * Bank Identifier Code, the SWIFT Address assigned to the bank, use financial institutions instead\n */\n bic?: string\n proxyBankAccount?: string\n proxyBic?: string\n /**\n * All details included in the invoice header\n */\n invoiceHeader?: string\n /**\n * Identifier number for institution type if the healthcare party is an enterprise\n */\n cbe?: string\n /**\n * Identifier number for the institution if the healthcare party is an organization\n */\n ehp?: string\n /**\n * The id of the user that usually handles this healthcare party.\n */\n userId?: string\n /**\n * Id of parent of the user representing the healthcare party.\n */\n parentId?: string\n convention?: number\n /**\n * National Institute for Health and Invalidity Insurance number assigned to healthcare parties (institution or person).\n */\n nihii?: string\n nihiiSpecCode?: string\n /**\n * Social security inscription number.\n */\n ssin?: string\n /**\n * The list of addresses (with address type).\n */\n addresses?: Array<Address>\n /**\n * The list of languages spoken by the patient ordered by fluency (alpha-2 code http://www.loc.gov/standards/iso639-2/ascii_8bits.html).\n */\n languages?: Array<string>\n /**\n * A picture usually saved in JPEG format.\n */\n picture?: ArrayBuffer\n /**\n * The healthcare party's status: 'trainee' or 'withconvention' or 'accredited'\n */\n statuses?: Array<HealthcareParty.StatusesEnum>\n /**\n * The healthcare party's status history\n */\n statusHistory?: Array<HealthcarePartyHistoryStatus>\n /**\n * Medical specialty of the healthcare party codified using FHIR or Kmehr codificaiton scheme\n */\n specialityCodes?: Array<CodeStub>\n /**\n * The type of format for contacting the healthcare party, ex: mobile, phone, email, etc.\n */\n sendFormats?: { [key: string]: string }\n /**\n * Text notes.\n */\n notes?: string\n /**\n * List of financial information (Bank, bank account).\n */\n financialInstitutionInformation?: Array<FinancialInstitutionInformation>\n /**\n * The invoicing scheme this healthcare party adheres to : 'service fee' or 'flat rate'\n */\n billingType?: string\n type?: string\n contactPerson?: string\n contactPersonHcpId?: string\n supervisorId?: string\n flatRateTarifications?: Array<FlatRateTarification>\n importedData?: { [key: string]: string }\n options?: { [key: string]: string }\n properties?: Array<PropertyStub>\n /**\n * For each couple of HcParties (delegator and delegate), this map contains the exchange AES key. The delegator is always this hcp, the key of the map is the id of the delegate. The AES exchange key is encrypted using RSA twice : once using this hcp public key (index 0 in the Array) and once using the other hcp public key (index 1 in the Array). For a pair of HcParties. Each HcParty always has one AES exchange key for himself.\n */\n hcPartyKeys?: { [key: string]: Array<string> }\n /**\n * The privateKeyShamirPartitions are used to share this hcp's private RSA key with a series of other hcParties using Shamir's algorithm. The key of the map is the hcp Id with whom this partition has been shared. The value is \\\"threshold⎮partition in hex\\\" encrypted using the the partition's holder's public RSA key\n */\n privateKeyShamirPartitions?: { [key: string]: string }\n /**\n * The public key of this hcp\n */\n publicKey?: string\n}\nexport namespace HealthcareParty {\n export type GenderEnum = 'male' | 'female' | 'indeterminate' | 'changed' | 'changedToMale' | 'changedToFemale' | 'unknown'\n export const GenderEnum = {\n Male: 'male' as GenderEnum,\n Female: 'female' as GenderEnum,\n Indeterminate: 'indeterminate' as GenderEnum,\n Changed: 'changed' as GenderEnum,\n ChangedToMale: 'changedToMale' as GenderEnum,\n ChangedToFemale: 'changedToFemale' as GenderEnum,\n Unknown: 'unknown' as GenderEnum,\n }\n export type StatusesEnum = 'trainee' | 'withconvention' | 'accreditated'\n export const StatusesEnum = {\n Trainee: 'trainee' as StatusesEnum,\n Withconvention: 'withconvention' as StatusesEnum,\n Accreditated: 'accreditated' as StatusesEnum,\n }\n}\n"]}
1
+ {"version":3,"file":"HealthcareParty.js","sourceRoot":"","sources":["../../../icc-api/model/HealthcareParty.ts"],"names":[],"mappings":";;;AAmBA;;GAEG;AACH,+CAAuC;AACvC,MAAa,eAAe;IAC1B,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAuB,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,qBAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IACtG,CAAC;CAsKF;AAzKD,0CAyKC;AACD,WAAiB,eAAe;IAEjB,0BAAU,GAAG;QACxB,IAAI,EAAE,MAAoB;QAC1B,MAAM,EAAE,QAAsB;QAC9B,aAAa,EAAE,eAA6B;QAC5C,OAAO,EAAE,SAAuB;QAChC,aAAa,EAAE,eAA6B;QAC5C,eAAe,EAAE,iBAA+B;QAChD,OAAO,EAAE,SAAuB;KACjC,CAAA;IAEY,4BAAY,GAAG;QAC1B,OAAO,EAAE,SAAyB;QAClC,cAAc,EAAE,gBAAgC;QAChD,YAAY,EAAE,cAA8B;KAC7C,CAAA;AACH,CAAC,EAjBgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAiB/B","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\nimport { Address } from './Address'\nimport { CodeStub } from './CodeStub'\nimport { FinancialInstitutionInformation } from './FinancialInstitutionInformation'\nimport { FlatRateTarification } from './FlatRateTarification'\nimport { HealthcarePartyHistoryStatus } from './HealthcarePartyHistoryStatus'\nimport { PersonName } from './PersonName'\nimport { PropertyStub } from './PropertyStub'\n\n/**\n * This entity is a root level object. It represents a healthcare party. It is serialized in JSON and saved in the underlying icure-healthdata CouchDB database.\n */\nimport { b64_2ab } from './ModelHelper'\nexport class HealthcareParty {\n constructor(json: JSON | any) {\n Object.assign(this as HealthcareParty, json, json.picture ? { picture: b64_2ab(json.picture) } : {})\n }\n\n /**\n * the Id of the healthcare party. We encourage using either a v4 UUID or a HL7 Id.\n */\n id?: string\n /**\n * the revision of the healthcare party in the database, used for conflict management / optimistic locking.\n */\n rev?: string\n /**\n * creation timestamp of the object.\n */\n created?: number\n /**\n * last modification timestamp of the object.\n */\n modified?: number\n /**\n * hard delete (unix epoch in ms) timestamp of the object. Filled automatically when deletePatient is called.\n */\n deletionDate?: number\n /**\n * The full name of the healthcare party, used mainly when the healthcare party is an organization\n */\n name?: string\n /**\n * the lastname (surname) of the healthcare party. This is the official lastname that should be used for official administrative purposes.\n */\n lastName?: string\n /**\n * the firstname (name) of the healthcare party.\n */\n firstName?: string\n /**\n * the list of all names of the healthcare party, also containing the official full name information. Ordered by preference of use. First element is therefore the official name used for the healthcare party in the application\n */\n names?: Array<PersonName>\n /**\n * the gender of the healthcare party: male, female, indeterminate, changed, changedToMale, changedToFemale, unknown\n */\n gender?: HealthcareParty.GenderEnum\n /**\n * Mr., Ms., Pr., Dr. ...\n */\n civility?: string\n /**\n * The name of the company this healthcare party is member of\n */\n companyName?: string\n /**\n * Medical specialty of the healthcare party\n */\n speciality?: string\n /**\n * Bank Account identifier of the healhtcare party, IBAN, deprecated, use financial institutions instead\n */\n bankAccount?: string\n /**\n * Bank Identifier Code, the SWIFT Address assigned to the bank, use financial institutions instead\n */\n bic?: string\n proxyBankAccount?: string\n proxyBic?: string\n /**\n * All details included in the invoice header\n */\n invoiceHeader?: string\n /**\n * Identifier number for institution type if the healthcare party is an enterprise\n */\n cbe?: string\n /**\n * Identifier number for the institution if the healthcare party is an organization\n */\n ehp?: string\n /**\n * The id of the user that usually handles this healthcare party.\n */\n userId?: string\n /**\n * Id of parent of the user representing the healthcare party.\n */\n parentId?: string\n convention?: number\n /**\n * National Institute for Health and Invalidity Insurance number assigned to healthcare parties (institution or person).\n */\n nihii?: string\n nihiiSpecCode?: string\n /**\n * Social security inscription number.\n */\n ssin?: string\n /**\n * The list of addresses (with address type).\n */\n addresses?: Array<Address>\n /**\n * The list of languages spoken by the patient ordered by fluency (alpha-2 code http://www.loc.gov/standards/iso639-2/ascii_8bits.html).\n */\n languages?: Array<string>\n /**\n * A picture usually saved in JPEG format.\n */\n picture?: ArrayBuffer\n /**\n * The healthcare party's status: 'trainee' or 'withconvention' or 'accredited'\n */\n statuses?: Array<HealthcareParty.StatusesEnum>\n /**\n * The healthcare party's status history\n */\n statusHistory?: Array<HealthcarePartyHistoryStatus>\n /**\n * Medical specialty of the healthcare party codified using FHIR or Kmehr codificaiton scheme\n */\n specialityCodes?: Array<CodeStub>\n /**\n * The type of format for contacting the healthcare party, ex: mobile, phone, email, etc.\n */\n sendFormats?: { [key: string]: string }\n /**\n * Text notes.\n */\n notes?: string\n /**\n * List of financial information (Bank, bank account).\n */\n financialInstitutionInformation?: Array<FinancialInstitutionInformation>\n /**\n * The invoicing scheme this healthcare party adheres to : 'service fee' or 'flat rate'\n */\n billingType?: string\n type?: string\n contactPerson?: string\n contactPersonHcpId?: string\n supervisorId?: string\n flatRateTarifications?: Array<FlatRateTarification>\n importedData?: { [key: string]: string }\n options?: { [key: string]: string }\n properties?: Array<PropertyStub>\n /**\n * For each couple of HcParties (delegator and delegate), this map contains the exchange AES key. The delegator is always this hcp, the key of the map is the id of the delegate. The AES exchange key is encrypted using RSA twice : once using this hcp public key (index 0 in the Array) and once using the other hcp public key (index 1 in the Array). For a pair of HcParties. Each HcParty always has one AES exchange key for himself.\n */\n hcPartyKeys?: { [key: string]: Array<string> }\n /**\n * Extra AES exchange keys, usually the ones we lost access to at some point. The structure is { publicKey: { delegateId: [aesExKey_for_this, aesExKey_for_delegate] } }\n */\n aesExchangeKeys?: { [key: string]: { [key: string]: Array<string> } }\n /**\n * Our private keys encrypted with our public keys. The structure is { publicKey1: { publicKey2: privateKey2_encrypted_with_publicKey1, publicKey3: privateKey3_encrypted_with_publicKey1 } }\n */\n transferKeys?: { [key: string]: { [key: string]: string } }\n /**\n * The hcparty keys (first of the pair) for which we are asking a re-encryption by the delegate using our new publicKey.\n */\n lostHcPartyKeys?: Array<string>\n /**\n * The privateKeyShamirPartitions are used to share this hcp's private RSA key with a series of other hcParties using Shamir's algorithm. The key of the map is the hcp Id with whom this partition has been shared. The value is \\\"threshold⎮partition in hex\\\" encrypted using the the partition's holder's public RSA key\n */\n privateKeyShamirPartitions?: { [key: string]: string }\n /**\n * The public key of this hcp\n */\n publicKey?: string\n}\nexport namespace HealthcareParty {\n export type GenderEnum = 'male' | 'female' | 'indeterminate' | 'changed' | 'changedToMale' | 'changedToFemale' | 'unknown'\n export const GenderEnum = {\n Male: 'male' as GenderEnum,\n Female: 'female' as GenderEnum,\n Indeterminate: 'indeterminate' as GenderEnum,\n Changed: 'changed' as GenderEnum,\n ChangedToMale: 'changedToMale' as GenderEnum,\n ChangedToFemale: 'changedToFemale' as GenderEnum,\n Unknown: 'unknown' as GenderEnum,\n }\n export type StatusesEnum = 'trainee' | 'withconvention' | 'accreditated'\n export const StatusesEnum = {\n Trainee: 'trainee' as StatusesEnum,\n Withconvention: 'withconvention' as StatusesEnum,\n Accreditated: 'accreditated' as StatusesEnum,\n }\n}\n"]}
@@ -137,6 +137,9 @@ export declare class Invoice {
137
137
  creditNote?: boolean;
138
138
  creditNoteRelatedInvoiceId?: string;
139
139
  idDocument?: IdentityDocumentReader;
140
+ admissionDate?: number;
141
+ locationNihii?: string;
142
+ locationService?: number;
140
143
  cancelReason?: string;
141
144
  cancelDate?: number;
142
145
  options?: {
@@ -1 +1 @@
1
- {"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../icc-api/model/Invoice.ts"],"names":[],"mappings":";;;AAiBA;;GAEG;AACH,MAAa,OAAO;IAClB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAe,EAAE,IAAI,CAAC,CAAA;IACtC,CAAC;CA6IF;AAhJD,0BAgJC;AACD,WAAiB,OAAO;IAET,uBAAe,GAAG;QAC7B,OAAO,EAAE,SAA4B;QACrC,UAAU,EAAE,YAA+B;QAC3C,YAAY,EAAE,cAAiC;QAC/C,SAAS,EAAE,WAA8B;QACzC,KAAK,EAAE,OAA0B;QACjC,KAAK,EAAE,OAA0B;KAClC,CAAA;IAEY,0BAAkB,GAAG;QAChC,KAAK,EAAE,OAA6B;QACpC,OAAO,EAAE,SAA+B;QACxC,KAAK,EAAE,OAA6B;QACpC,KAAK,EAAE,OAA6B;QACpC,SAAS,EAAE,WAAiC;QAC5C,KAAK,EAAE,OAA6B;QACpC,IAAI,EAAE,MAA4B;KACnC,CAAA;IAEY,4BAAoB,GAAG;QAClC,KAAK,EAAE,OAA+B;QACtC,QAAQ,EAAE,UAAkC;KAC7C,CAAA;IAEY,uBAAe,GAAG;QAC7B,IAAI,EAAE,MAAyB;QAC/B,KAAK,EAAE,OAA0B;QACjC,SAAS,EAAE,WAA8B;QACzC,UAAU,EAAE,YAA+B;QAC3C,SAAS,EAAE,WAA8B;QACzC,MAAM,EAAE,QAA2B;QACnC,OAAO,EAAE,SAA4B;QACrC,KAAK,EAAE,OAA0B;KAClC,CAAA;AACH,CAAC,EApCgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAoCvB","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\nimport { CodeStub } from './CodeStub'\nimport { Delegation } from './Delegation'\nimport { IdentityDocumentReader } from './IdentityDocumentReader'\nimport { InvoicingCode } from './InvoicingCode'\nimport { Payment } from './Payment'\n\n/**\n * This entity is a root level object. It represents an Invoice. It is serialized in JSON and saved in the underlying iCure CouchDB database.\n */\nexport class Invoice {\n constructor(json: JSON | any) {\n Object.assign(this as Invoice, json)\n }\n\n /**\n * The Id of the Invoice. We encourage using either a v4 UUID or a HL7 Id.\n */\n id?: string\n /**\n * The revision of the invoice in the database, used for conflict management / optimistic locking.\n */\n rev?: string\n /**\n * The timestamp (unix epoch in ms) of creation of this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n created?: number\n /**\n * The date (unix epoch in ms) of the latest modification of this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n modified?: number\n /**\n * The id of the User that has created this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n author?: string\n /**\n * The id of the HealthcareParty that is responsible for this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n responsible?: string\n /**\n * The id of the medical location where this entity was created.\n */\n medicalLocationId?: string\n /**\n * A tag is an item from a codification system that qualifies an entity as being member of a certain class, whatever the value it might have taken. If the tag qualifies the content of a field, it means that whatever the content of the field, the tag will always apply. For example, the label of a field is qualified using a tag. LOINC is a codification system typically used for tags.\n */\n tags?: Array<CodeStub>\n /**\n * A code is an item from a codification system that qualifies the content of this entity. SNOMED-CT, ICPC-2 or ICD-10 codifications systems can be used for codes\n */\n codes?: Array<CodeStub>\n /**\n * Soft delete (unix epoch in ms) timestamp of the object.\n */\n endOfLife?: number\n /**\n * hard delete (unix epoch in ms) timestamp of the object. Filled automatically when deletePatient is called.\n */\n deletionDate?: number\n /**\n * The timestamp (unix epoch in ms) when the invoice was drafted, will be filled automatically if missing. Not enforced by the application server.\n */\n invoiceDate?: number\n /**\n * The timestamp (unix epoch in ms) when the invoice was sent, will be filled automatically if missing. Not enforced by the application server.\n */\n sentDate?: number\n /**\n * The timestamp (unix epoch in ms) when the invoice is printed, will be filled automatically if missing. Not enforced by the application server.\n */\n printedDate?: number\n invoicingCodes?: Array<InvoicingCode>\n receipts?: { [key: string]: string }\n /**\n * The type of user that receives the invoice, a patient or a healthcare party\n */\n recipientType?: string\n /**\n * Id of the recipient of the invoice. For healthcare party and insurance, patient link happens through secretForeignKeys\n */\n recipientId?: string\n invoiceReference?: string\n thirdPartyReference?: string\n thirdPartyPaymentJustification?: string\n thirdPartyPaymentReason?: string\n reason?: string\n /**\n * The format the invoice should follow based on the recipient which could be a patient, mutual fund or paying agency such as the CPAS\n */\n invoiceType?: Invoice.InvoiceTypeEnum\n /**\n * Medium of the invoice: CD ROM, Email, paper, etc.\n */\n sentMediumType?: Invoice.SentMediumTypeEnum\n interventionType?: Invoice.InterventionTypeEnum\n groupId?: string\n /**\n * Type of payment, ex: cash, wired, insurance, debit card, etc.\n */\n paymentType?: Invoice.PaymentTypeEnum\n paid?: number\n payments?: Array<Payment>\n gnotionNihii?: string\n gnotionSsin?: string\n gnotionLastName?: string\n gnotionFirstName?: string\n gnotionCdHcParty?: string\n invoicePeriod?: number\n careProviderType?: string\n internshipNihii?: string\n internshipSsin?: string\n internshipLastName?: string\n internshipFirstName?: string\n internshipCdHcParty?: string\n internshipCbe?: string\n supervisorNihii?: string\n supervisorSsin?: string\n supervisorLastName?: string\n supervisorFirstName?: string\n supervisorCdHcParty?: string\n supervisorCbe?: string\n error?: string\n encounterLocationName?: string\n encounterLocationNihii?: string\n encounterLocationNorm?: number\n longDelayJustification?: number\n correctiveInvoiceId?: string\n correctedInvoiceId?: string\n creditNote?: boolean\n creditNoteRelatedInvoiceId?: string\n idDocument?: IdentityDocumentReader\n cancelReason?: string\n cancelDate?: number\n options?: { [key: string]: string }\n /**\n * The secretForeignKeys are filled at the to many end of a one to many relationship (for example inside Contact for the Patient -> Contacts relationship). Used when we want to find all contacts for a specific patient. These keys are in clear. You can have several to partition the medical document space.\n */\n secretForeignKeys?: Array<string>\n /**\n * The secretForeignKeys are filled at the to many end of a one to many relationship (for example inside Contact for the Patient -> Contacts relationship). Used when we want to find the patient for a specific contact. These keys are the encrypted id (using the hcParty key for the delegate) that can be found in clear inside the patient. ids encrypted using the hcParty keys.\n */\n cryptedForeignKeys?: { [key: string]: Array<Delegation> }\n /**\n * When a document is created, the responsible generates a cryptographically random master key (never to be used for something else than referencing from other entities). He/she encrypts it using his own AES exchange key and stores it as a delegation. The responsible is thus always in the delegations as well\n */\n delegations?: { [key: string]: Array<Delegation> }\n /**\n * When a document needs to be encrypted, the responsible generates a cryptographically random master key (different from the delegation key, never to appear in clear anywhere in the db. He/she encrypts it using his own AES exchange key and stores it as a delegation\n */\n encryptionKeys?: { [key: string]: Array<Delegation> }\n /**\n * The base64 encoded data of this object, formatted as JSON and encrypted in AES using the random master key from encryptionKeys.\n */\n encryptedSelf?: string\n}\nexport namespace Invoice {\n export type InvoiceTypeEnum = 'patient' | 'mutualfund' | 'payingagency' | 'insurance' | 'efact' | 'other'\n export const InvoiceTypeEnum = {\n Patient: 'patient' as InvoiceTypeEnum,\n Mutualfund: 'mutualfund' as InvoiceTypeEnum,\n Payingagency: 'payingagency' as InvoiceTypeEnum,\n Insurance: 'insurance' as InvoiceTypeEnum,\n Efact: 'efact' as InvoiceTypeEnum,\n Other: 'other' as InvoiceTypeEnum,\n }\n export type SentMediumTypeEnum = 'cdrom' | 'eattest' | 'efact' | 'email' | 'mediprima' | 'paper' | 'stat'\n export const SentMediumTypeEnum = {\n Cdrom: 'cdrom' as SentMediumTypeEnum,\n Eattest: 'eattest' as SentMediumTypeEnum,\n Efact: 'efact' as SentMediumTypeEnum,\n Email: 'email' as SentMediumTypeEnum,\n Mediprima: 'mediprima' as SentMediumTypeEnum,\n Paper: 'paper' as SentMediumTypeEnum,\n Stat: 'stat' as SentMediumTypeEnum,\n }\n export type InterventionTypeEnum = 'total' | 'userfees'\n export const InterventionTypeEnum = {\n Total: 'total' as InterventionTypeEnum,\n Userfees: 'userfees' as InterventionTypeEnum,\n }\n export type PaymentTypeEnum = 'cash' | 'wired' | 'insurance' | 'creditcard' | 'debitcard' | 'paypal' | 'bitcoin' | 'other'\n export const PaymentTypeEnum = {\n Cash: 'cash' as PaymentTypeEnum,\n Wired: 'wired' as PaymentTypeEnum,\n Insurance: 'insurance' as PaymentTypeEnum,\n Creditcard: 'creditcard' as PaymentTypeEnum,\n Debitcard: 'debitcard' as PaymentTypeEnum,\n Paypal: 'paypal' as PaymentTypeEnum,\n Bitcoin: 'bitcoin' as PaymentTypeEnum,\n Other: 'other' as PaymentTypeEnum,\n }\n}\n"]}
1
+ {"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../icc-api/model/Invoice.ts"],"names":[],"mappings":";;;AAiBA;;GAEG;AACH,MAAa,OAAO;IAClB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAe,EAAE,IAAI,CAAC,CAAA;IACtC,CAAC;CAgJF;AAnJD,0BAmJC;AACD,WAAiB,OAAO;IAET,uBAAe,GAAG;QAC7B,OAAO,EAAE,SAA4B;QACrC,UAAU,EAAE,YAA+B;QAC3C,YAAY,EAAE,cAAiC;QAC/C,SAAS,EAAE,WAA8B;QACzC,KAAK,EAAE,OAA0B;QACjC,KAAK,EAAE,OAA0B;KAClC,CAAA;IAEY,0BAAkB,GAAG;QAChC,KAAK,EAAE,OAA6B;QACpC,OAAO,EAAE,SAA+B;QACxC,KAAK,EAAE,OAA6B;QACpC,KAAK,EAAE,OAA6B;QACpC,SAAS,EAAE,WAAiC;QAC5C,KAAK,EAAE,OAA6B;QACpC,IAAI,EAAE,MAA4B;KACnC,CAAA;IAEY,4BAAoB,GAAG;QAClC,KAAK,EAAE,OAA+B;QACtC,QAAQ,EAAE,UAAkC;KAC7C,CAAA;IAEY,uBAAe,GAAG;QAC7B,IAAI,EAAE,MAAyB;QAC/B,KAAK,EAAE,OAA0B;QACjC,SAAS,EAAE,WAA8B;QACzC,UAAU,EAAE,YAA+B;QAC3C,SAAS,EAAE,WAA8B;QACzC,MAAM,EAAE,QAA2B;QACnC,OAAO,EAAE,SAA4B;QACrC,KAAK,EAAE,OAA0B;KAClC,CAAA;AACH,CAAC,EApCgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAoCvB","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\nimport { CodeStub } from './CodeStub'\nimport { Delegation } from './Delegation'\nimport { IdentityDocumentReader } from './IdentityDocumentReader'\nimport { InvoicingCode } from './InvoicingCode'\nimport { Payment } from './Payment'\n\n/**\n * This entity is a root level object. It represents an Invoice. It is serialized in JSON and saved in the underlying iCure CouchDB database.\n */\nexport class Invoice {\n constructor(json: JSON | any) {\n Object.assign(this as Invoice, json)\n }\n\n /**\n * The Id of the Invoice. We encourage using either a v4 UUID or a HL7 Id.\n */\n id?: string\n /**\n * The revision of the invoice in the database, used for conflict management / optimistic locking.\n */\n rev?: string\n /**\n * The timestamp (unix epoch in ms) of creation of this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n created?: number\n /**\n * The date (unix epoch in ms) of the latest modification of this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n modified?: number\n /**\n * The id of the User that has created this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n author?: string\n /**\n * The id of the HealthcareParty that is responsible for this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n responsible?: string\n /**\n * The id of the medical location where this entity was created.\n */\n medicalLocationId?: string\n /**\n * A tag is an item from a codification system that qualifies an entity as being member of a certain class, whatever the value it might have taken. If the tag qualifies the content of a field, it means that whatever the content of the field, the tag will always apply. For example, the label of a field is qualified using a tag. LOINC is a codification system typically used for tags.\n */\n tags?: Array<CodeStub>\n /**\n * A code is an item from a codification system that qualifies the content of this entity. SNOMED-CT, ICPC-2 or ICD-10 codifications systems can be used for codes\n */\n codes?: Array<CodeStub>\n /**\n * Soft delete (unix epoch in ms) timestamp of the object.\n */\n endOfLife?: number\n /**\n * hard delete (unix epoch in ms) timestamp of the object. Filled automatically when deletePatient is called.\n */\n deletionDate?: number\n /**\n * The timestamp (unix epoch in ms) when the invoice was drafted, will be filled automatically if missing. Not enforced by the application server.\n */\n invoiceDate?: number\n /**\n * The timestamp (unix epoch in ms) when the invoice was sent, will be filled automatically if missing. Not enforced by the application server.\n */\n sentDate?: number\n /**\n * The timestamp (unix epoch in ms) when the invoice is printed, will be filled automatically if missing. Not enforced by the application server.\n */\n printedDate?: number\n invoicingCodes?: Array<InvoicingCode>\n receipts?: { [key: string]: string }\n /**\n * The type of user that receives the invoice, a patient or a healthcare party\n */\n recipientType?: string\n /**\n * Id of the recipient of the invoice. For healthcare party and insurance, patient link happens through secretForeignKeys\n */\n recipientId?: string\n invoiceReference?: string\n thirdPartyReference?: string\n thirdPartyPaymentJustification?: string\n thirdPartyPaymentReason?: string\n reason?: string\n /**\n * The format the invoice should follow based on the recipient which could be a patient, mutual fund or paying agency such as the CPAS\n */\n invoiceType?: Invoice.InvoiceTypeEnum\n /**\n * Medium of the invoice: CD ROM, Email, paper, etc.\n */\n sentMediumType?: Invoice.SentMediumTypeEnum\n interventionType?: Invoice.InterventionTypeEnum\n groupId?: string\n /**\n * Type of payment, ex: cash, wired, insurance, debit card, etc.\n */\n paymentType?: Invoice.PaymentTypeEnum\n paid?: number\n payments?: Array<Payment>\n gnotionNihii?: string\n gnotionSsin?: string\n gnotionLastName?: string\n gnotionFirstName?: string\n gnotionCdHcParty?: string\n invoicePeriod?: number\n careProviderType?: string\n internshipNihii?: string\n internshipSsin?: string\n internshipLastName?: string\n internshipFirstName?: string\n internshipCdHcParty?: string\n internshipCbe?: string\n supervisorNihii?: string\n supervisorSsin?: string\n supervisorLastName?: string\n supervisorFirstName?: string\n supervisorCdHcParty?: string\n supervisorCbe?: string\n error?: string\n encounterLocationName?: string\n encounterLocationNihii?: string\n encounterLocationNorm?: number\n longDelayJustification?: number\n correctiveInvoiceId?: string\n correctedInvoiceId?: string\n creditNote?: boolean\n creditNoteRelatedInvoiceId?: string\n idDocument?: IdentityDocumentReader\n admissionDate?: number\n locationNihii?: string\n locationService?: number\n cancelReason?: string\n cancelDate?: number\n options?: { [key: string]: string }\n /**\n * The secretForeignKeys are filled at the to many end of a one to many relationship (for example inside Contact for the Patient -> Contacts relationship). Used when we want to find all contacts for a specific patient. These keys are in clear. You can have several to partition the medical document space.\n */\n secretForeignKeys?: Array<string>\n /**\n * The secretForeignKeys are filled at the to many end of a one to many relationship (for example inside Contact for the Patient -> Contacts relationship). Used when we want to find the patient for a specific contact. These keys are the encrypted id (using the hcParty key for the delegate) that can be found in clear inside the patient. ids encrypted using the hcParty keys.\n */\n cryptedForeignKeys?: { [key: string]: Array<Delegation> }\n /**\n * When a document is created, the responsible generates a cryptographically random master key (never to be used for something else than referencing from other entities). He/she encrypts it using his own AES exchange key and stores it as a delegation. The responsible is thus always in the delegations as well\n */\n delegations?: { [key: string]: Array<Delegation> }\n /**\n * When a document needs to be encrypted, the responsible generates a cryptographically random master key (different from the delegation key, never to appear in clear anywhere in the db. He/she encrypts it using his own AES exchange key and stores it as a delegation\n */\n encryptionKeys?: { [key: string]: Array<Delegation> }\n /**\n * The base64 encoded data of this object, formatted as JSON and encrypted in AES using the random master key from encryptionKeys.\n */\n encryptedSelf?: string\n}\nexport namespace Invoice {\n export type InvoiceTypeEnum = 'patient' | 'mutualfund' | 'payingagency' | 'insurance' | 'efact' | 'other'\n export const InvoiceTypeEnum = {\n Patient: 'patient' as InvoiceTypeEnum,\n Mutualfund: 'mutualfund' as InvoiceTypeEnum,\n Payingagency: 'payingagency' as InvoiceTypeEnum,\n Insurance: 'insurance' as InvoiceTypeEnum,\n Efact: 'efact' as InvoiceTypeEnum,\n Other: 'other' as InvoiceTypeEnum,\n }\n export type SentMediumTypeEnum = 'cdrom' | 'eattest' | 'efact' | 'email' | 'mediprima' | 'paper' | 'stat'\n export const SentMediumTypeEnum = {\n Cdrom: 'cdrom' as SentMediumTypeEnum,\n Eattest: 'eattest' as SentMediumTypeEnum,\n Efact: 'efact' as SentMediumTypeEnum,\n Email: 'email' as SentMediumTypeEnum,\n Mediprima: 'mediprima' as SentMediumTypeEnum,\n Paper: 'paper' as SentMediumTypeEnum,\n Stat: 'stat' as SentMediumTypeEnum,\n }\n export type InterventionTypeEnum = 'total' | 'userfees'\n export const InterventionTypeEnum = {\n Total: 'total' as InterventionTypeEnum,\n Userfees: 'userfees' as InterventionTypeEnum,\n }\n export type PaymentTypeEnum = 'cash' | 'wired' | 'insurance' | 'creditcard' | 'debitcard' | 'paypal' | 'bitcoin' | 'other'\n export const PaymentTypeEnum = {\n Cash: 'cash' as PaymentTypeEnum,\n Wired: 'wired' as PaymentTypeEnum,\n Insurance: 'insurance' as PaymentTypeEnum,\n Creditcard: 'creditcard' as PaymentTypeEnum,\n Debitcard: 'debitcard' as PaymentTypeEnum,\n Paypal: 'paypal' as PaymentTypeEnum,\n Bitcoin: 'bitcoin' as PaymentTypeEnum,\n Other: 'other' as PaymentTypeEnum,\n }\n}\n"]}
@@ -52,6 +52,7 @@ export declare class InvoicingCode {
52
52
  locationNihii?: string;
53
53
  locationCdHcParty?: string;
54
54
  locationService?: number;
55
+ admissionDate?: number;
55
56
  canceled?: boolean;
56
57
  accepted?: boolean;
57
58
  pending?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"InvoicingCode.js","sourceRoot":"","sources":["../../../icc-api/model/InvoicingCode.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,aAAa;IACxB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAqB,EAAE,IAAI,CAAC,CAAA;IAC5C,CAAC;CAwDF;AA3DD,sCA2DC;AACD,WAAiB,aAAa;IAEf,6BAAe,GAAG;QAC7B,IAAI,EAAE,MAAyB;QAC/B,KAAK,EAAE,OAA0B;QACjC,SAAS,EAAE,WAA8B;QACzC,UAAU,EAAE,YAA+B;QAC3C,SAAS,EAAE,WAA8B;QACzC,MAAM,EAAE,QAA2B;QACnC,OAAO,EAAE,SAA4B;QACrC,KAAK,EAAE,OAA0B;KAClC,CAAA;AACH,CAAC,EAZgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAY7B","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\n\nexport class InvoicingCode {\n constructor(json: JSON | any) {\n Object.assign(this as InvoicingCode, json)\n }\n\n id?: string\n dateCode?: number\n logicalId?: string\n label?: string\n userId?: string\n contactId?: string\n serviceId?: string\n tarificationId?: string\n code?: string\n paymentType?: InvoicingCode.PaymentTypeEnum\n paid?: number\n totalAmount?: number\n reimbursement?: number\n patientIntervention?: number\n doctorSupplement?: number\n conventionAmount?: number\n vat?: number\n error?: string\n contract?: string\n contractDate?: number\n units?: number\n side?: number\n timeOfDay?: number\n eidReadingHour?: number\n eidReadingValue?: string\n override3rdPayerCode?: number\n override3rdPayerReason?: string\n transplantationCode?: number\n prescriberNorm?: number\n percentNorm?: number\n prescriberNihii?: string\n relatedCode?: string\n prescriptionDate?: number\n derogationMaxNumber?: number\n prescriberSsin?: string\n prescriberLastName?: string\n prescriberFirstName?: string\n prescriberCdHcParty?: string\n locationNihii?: string\n locationCdHcParty?: string\n locationService?: number\n canceled?: boolean\n accepted?: boolean\n pending?: boolean\n resent?: boolean\n archived?: boolean\n lost?: boolean\n insuranceJustification?: number\n cancelPatientInterventionReason?: number\n status?: number\n /**\n * The base64 encoded data of this object, formatted as JSON and encrypted in AES using the random master key from encryptionKeys.\n */\n encryptedSelf?: string\n}\nexport namespace InvoicingCode {\n export type PaymentTypeEnum = 'cash' | 'wired' | 'insurance' | 'creditcard' | 'debitcard' | 'paypal' | 'bitcoin' | 'other'\n export const PaymentTypeEnum = {\n Cash: 'cash' as PaymentTypeEnum,\n Wired: 'wired' as PaymentTypeEnum,\n Insurance: 'insurance' as PaymentTypeEnum,\n Creditcard: 'creditcard' as PaymentTypeEnum,\n Debitcard: 'debitcard' as PaymentTypeEnum,\n Paypal: 'paypal' as PaymentTypeEnum,\n Bitcoin: 'bitcoin' as PaymentTypeEnum,\n Other: 'other' as PaymentTypeEnum,\n }\n}\n"]}
1
+ {"version":3,"file":"InvoicingCode.js","sourceRoot":"","sources":["../../../icc-api/model/InvoicingCode.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,aAAa;IACxB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAqB,EAAE,IAAI,CAAC,CAAA;IAC5C,CAAC;CAyDF;AA5DD,sCA4DC;AACD,WAAiB,aAAa;IAEf,6BAAe,GAAG;QAC7B,IAAI,EAAE,MAAyB;QAC/B,KAAK,EAAE,OAA0B;QACjC,SAAS,EAAE,WAA8B;QACzC,UAAU,EAAE,YAA+B;QAC3C,SAAS,EAAE,WAA8B;QACzC,MAAM,EAAE,QAA2B;QACnC,OAAO,EAAE,SAA4B;QACrC,KAAK,EAAE,OAA0B;KAClC,CAAA;AACH,CAAC,EAZgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAY7B","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\n\nexport class InvoicingCode {\n constructor(json: JSON | any) {\n Object.assign(this as InvoicingCode, json)\n }\n\n id?: string\n dateCode?: number\n logicalId?: string\n label?: string\n userId?: string\n contactId?: string\n serviceId?: string\n tarificationId?: string\n code?: string\n paymentType?: InvoicingCode.PaymentTypeEnum\n paid?: number\n totalAmount?: number\n reimbursement?: number\n patientIntervention?: number\n doctorSupplement?: number\n conventionAmount?: number\n vat?: number\n error?: string\n contract?: string\n contractDate?: number\n units?: number\n side?: number\n timeOfDay?: number\n eidReadingHour?: number\n eidReadingValue?: string\n override3rdPayerCode?: number\n override3rdPayerReason?: string\n transplantationCode?: number\n prescriberNorm?: number\n percentNorm?: number\n prescriberNihii?: string\n relatedCode?: string\n prescriptionDate?: number\n derogationMaxNumber?: number\n prescriberSsin?: string\n prescriberLastName?: string\n prescriberFirstName?: string\n prescriberCdHcParty?: string\n locationNihii?: string\n locationCdHcParty?: string\n locationService?: number\n admissionDate?: number\n canceled?: boolean\n accepted?: boolean\n pending?: boolean\n resent?: boolean\n archived?: boolean\n lost?: boolean\n insuranceJustification?: number\n cancelPatientInterventionReason?: number\n status?: number\n /**\n * The base64 encoded data of this object, formatted as JSON and encrypted in AES using the random master key from encryptionKeys.\n */\n encryptedSelf?: string\n}\nexport namespace InvoicingCode {\n export type PaymentTypeEnum = 'cash' | 'wired' | 'insurance' | 'creditcard' | 'debitcard' | 'paypal' | 'bitcoin' | 'other'\n export const PaymentTypeEnum = {\n Cash: 'cash' as PaymentTypeEnum,\n Wired: 'wired' as PaymentTypeEnum,\n Insurance: 'insurance' as PaymentTypeEnum,\n Creditcard: 'creditcard' as PaymentTypeEnum,\n Debitcard: 'debitcard' as PaymentTypeEnum,\n Paypal: 'paypal' as PaymentTypeEnum,\n Bitcoin: 'bitcoin' as PaymentTypeEnum,\n Other: 'other' as PaymentTypeEnum,\n }\n}\n"]}
@@ -15,6 +15,7 @@ export declare class MedicationSchemeExportInfo {
15
15
  constructor(json: JSON | any);
16
16
  secretForeignKeys?: Array<string>;
17
17
  services?: Array<Service>;
18
+ serviceAuthors?: Array<HealthcareParty>;
18
19
  recipient?: HealthcareParty;
19
20
  comment?: string;
20
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"MedicationSchemeExportInfo.js","sourceRoot":"","sources":["../../../icc-api/model/MedicationSchemeExportInfo.ts"],"names":[],"mappings":";;;AAcA,MAAa,0BAA0B;IACrC,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAkC,EAAE,IAAI,CAAC,CAAA;IACzD,CAAC;CAMF;AATD,gEASC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\nimport { HealthcareParty } from './HealthcareParty'\nimport { Service } from './Service'\n\nexport class MedicationSchemeExportInfo {\n constructor(json: JSON | any) {\n Object.assign(this as MedicationSchemeExportInfo, json)\n }\n\n secretForeignKeys?: Array<string>\n services?: Array<Service>\n recipient?: HealthcareParty\n comment?: string\n}\n"]}
1
+ {"version":3,"file":"MedicationSchemeExportInfo.js","sourceRoot":"","sources":["../../../icc-api/model/MedicationSchemeExportInfo.ts"],"names":[],"mappings":";;;AAcA,MAAa,0BAA0B;IACrC,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAkC,EAAE,IAAI,CAAC,CAAA;IACzD,CAAC;CAOF;AAVD,gEAUC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\nimport { HealthcareParty } from './HealthcareParty'\nimport { Service } from './Service'\n\nexport class MedicationSchemeExportInfo {\n constructor(json: JSON | any) {\n Object.assign(this as MedicationSchemeExportInfo, json)\n }\n\n secretForeignKeys?: Array<string>\n services?: Array<Service>\n serviceAuthors?: Array<HealthcareParty>\n recipient?: HealthcareParty\n comment?: string\n}\n"]}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * iCure Data Stack API Documentation
3
+ * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.
4
+ *
5
+ * OpenAPI spec version: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ export declare class Paragraph {
13
+ constructor(json: JSON | any);
14
+ id?: string;
15
+ rev?: string;
16
+ /**
17
+ * hard delete (unix epoch in ms) timestamp of the object. Filled automatically when deletePatient is called.
18
+ */
19
+ deletionDate?: number;
20
+ chapterName?: string;
21
+ paragraphName?: string;
22
+ startDate?: number;
23
+ createdTms?: number;
24
+ createdUserId?: string;
25
+ endDate?: number;
26
+ keyStringNl?: string;
27
+ keyStringFr?: string;
28
+ agreementType?: string;
29
+ processType?: number;
30
+ legalReference?: string;
31
+ publicationDate?: number;
32
+ modificationDate?: number;
33
+ processTypeOverrule?: string;
34
+ paragraphVersion?: number;
35
+ agreementTypePro?: string;
36
+ modificationStatus?: string;
37
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * iCure Data Stack API Documentation
4
+ * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.
5
+ *
6
+ * OpenAPI spec version: v1
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by the swagger code generator program.
10
+ * https://github.com/swagger-api/swagger-codegen.git
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.Paragraph = void 0;
15
+ class Paragraph {
16
+ constructor(json) {
17
+ Object.assign(this, json);
18
+ }
19
+ }
20
+ exports.Paragraph = Paragraph;
21
+ //# sourceMappingURL=Paragraph.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Paragraph.js","sourceRoot":"","sources":["../../../icc-api/model/Paragraph.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,SAAS;IACpB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAiB,EAAE,IAAI,CAAC,CAAA;IACxC,CAAC;CAyBF;AA5BD,8BA4BC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\n\nexport class Paragraph {\n constructor(json: JSON | any) {\n Object.assign(this as Paragraph, json)\n }\n\n id?: string\n rev?: string\n /**\n * hard delete (unix epoch in ms) timestamp of the object. Filled automatically when deletePatient is called.\n */\n deletionDate?: number\n chapterName?: string\n paragraphName?: string\n startDate?: number\n createdTms?: number\n createdUserId?: string\n endDate?: number\n keyStringNl?: string\n keyStringFr?: string\n agreementType?: string\n processType?: number\n legalReference?: string\n publicationDate?: number\n modificationDate?: number\n processTypeOverrule?: string\n paragraphVersion?: number\n agreementTypePro?: string\n modificationStatus?: string\n}\n"]}
@@ -245,6 +245,26 @@ export declare class Patient {
245
245
  hcPartyKeys?: {
246
246
  [key: string]: Array<string>;
247
247
  };
248
+ /**
249
+ * Extra AES exchange keys, usually the ones we lost access to at some point. The structure is { publicKey: { delegateId: [aesExKey_for_this, aesExKey_for_delegate] } }
250
+ */
251
+ aesExchangeKeys?: {
252
+ [key: string]: {
253
+ [key: string]: Array<string>;
254
+ };
255
+ };
256
+ /**
257
+ * Our private keys encrypted with our public keys. The structure is { publicKey1: { publicKey2: privateKey2_encrypted_with_publicKey1, publicKey3: privateKey3_encrypted_with_publicKey1 } }
258
+ */
259
+ transferKeys?: {
260
+ [key: string]: {
261
+ [key: string]: string;
262
+ };
263
+ };
264
+ /**
265
+ * The hcparty keys (first of the pair) for which we are asking a re-encryption by the delegate using our new publicKey.
266
+ */
267
+ lostHcPartyKeys?: Array<string>;
248
268
  /**
249
269
  * The privateKeyShamirPartitions are used to share this hcp's private RSA key with a series of other hcParties using Shamir's algorithm. The key of the map is the hcp Id with whom this partition has been shared. The value is \"threshold⎮partition in hex\" encrypted using the the partition's holder's public RSA key
250
270
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Patient.js","sourceRoot":"","sources":["../../../icc-api/model/Patient.ts"],"names":[],"mappings":";;;AAyBA;;GAEG;AACH,+CAAuC;AACvC,MAAa,OAAO;IAClB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAe,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,qBAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IAC9F,CAAC;CAsQF;AAzQD,0BAyQC;AACD,WAAiB,OAAO;IAET,kBAAU,GAAG;QACxB,IAAI,EAAE,MAAoB;QAC1B,MAAM,EAAE,QAAsB;QAC9B,aAAa,EAAE,eAA6B;QAC5C,OAAO,EAAE,SAAuB;QAChC,aAAa,EAAE,eAA6B;QAC5C,eAAe,EAAE,iBAA+B;QAChD,OAAO,EAAE,SAAuB;KACjC,CAAA;IAEY,oBAAY,GAAG;QAC1B,IAAI,EAAE,MAAsB;QAC5B,MAAM,EAAE,QAAwB;QAChC,aAAa,EAAE,eAA+B;QAC9C,OAAO,EAAE,SAAyB;QAClC,aAAa,EAAE,eAA+B;QAC9C,eAAe,EAAE,iBAAiC;QAClD,OAAO,EAAE,SAAyB;KACnC,CAAA;IAEY,8BAAsB,GAAG;QACpC,QAAQ,EAAE,UAAoC;QAC9C,KAAK,EAAE,OAAiC;QACxC,WAAW,EAAE,cAAwC;QACrD,OAAO,EAAE,SAAmC;QAC5C,SAAS,EAAE,YAAsC;QACjD,OAAO,EAAE,SAAmC;QAC5C,IAAI,EAAE,MAAgC;KACvC,CAAA;IAgBY,0BAAkB,GAAG;QAChC,MAAM,EAAE,QAA8B;QACtC,QAAQ,EAAE,WAAiC;QAC3C,OAAO,EAAE,SAA+B;QACxC,SAAS,EAAE,WAAiC;QAC5C,QAAQ,EAAE,UAAgC;QAC1C,SAAS,EAAE,WAAiC;QAC5C,OAAO,EAAE,SAA+B;QACxC,OAAO,EAAE,SAA+B;QACxC,WAAW,EAAE,aAAmC;QAChD,OAAO,EAAE,SAA+B;QACxC,QAAQ,EAAE,UAAgC;QAC1C,KAAK,EAAE,OAA6B;QACpC,QAAQ,EAAE,UAAgC;QAC1C,UAAU,EAAE,YAAkC;KAC/C,CAAA;AACH,CAAC,EA9DgB,OAAO,GAAP,eAAO,KAAP,eAAO,QA8DvB","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\nimport { Address } from './Address'\nimport { CodeStub } from './CodeStub'\nimport { Delegation } from './Delegation'\nimport { EmploymentInfo } from './EmploymentInfo'\nimport { FinancialInstitutionInformation } from './FinancialInstitutionInformation'\nimport { Identifier } from './Identifier'\nimport { Insurability } from './Insurability'\nimport { MedicalHouseContract } from './MedicalHouseContract'\nimport { Partnership } from './Partnership'\nimport { PatientHealthCareParty } from './PatientHealthCareParty'\nimport { PersonName } from './PersonName'\nimport { PropertyStub } from './PropertyStub'\nimport { SchoolingInfo } from './SchoolingInfo'\n\n/**\n * This entity is a root level object. It represents a patient It is serialized in JSON and saved in the underlying icure-patient CouchDB database.\n */\nimport { b64_2ab } from './ModelHelper'\nexport class Patient {\n constructor(json: JSON | any) {\n Object.assign(this as Patient, json, json.picture ? { picture: b64_2ab(json.picture) } : {})\n }\n\n /**\n * the Id of the patient. We encourage using either a v4 UUID or a HL7 Id.\n */\n id?: string\n /**\n * the revision of the patient in the database, used for conflict management / optimistic locking.\n */\n rev?: string\n identifier?: Array<Identifier>\n /**\n * The timestamp (unix epoch in ms) of creation of this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n created?: number\n /**\n * The date (unix epoch in ms) of the latest modification of this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n modified?: number\n /**\n * The id of the User that has created this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n author?: string\n /**\n * The id of the HealthcareParty that is responsible for this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n responsible?: string\n /**\n * A tag is an item from a codification system that qualifies an entity as being member of a certain class, whatever the value it might have taken. If the tag qualifies the content of a field, it means that whatever the content of the field, the tag will always apply. For example, the label of a field is qualified using a tag. LOINC is a codification system typically used for tags.\n */\n tags?: Array<CodeStub>\n /**\n * A code is an item from a codification system that qualifies the content of this entity. SNOMED-CT, ICPC-2 or ICD-10 codifications systems can be used for codes\n */\n codes?: Array<CodeStub>\n /**\n * Soft delete (unix epoch in ms) timestamp of the object.\n */\n endOfLife?: number\n /**\n * hard delete (unix epoch in ms) timestamp of the object. Filled automatically when deletePatient is called.\n */\n deletionDate?: number\n /**\n * the firstname (name) of the patient.\n */\n firstName?: string\n /**\n * the lastname (surname) of the patient. This is the official lastname that should be used for official administrative purposes.\n */\n lastName?: string\n /**\n * the list of all names of the patient, also containing the official full name information. Ordered by preference of use. First element is therefore the official name used for the patient in the application\n */\n names?: Array<PersonName>\n /**\n * the name of the company this patient is member of.\n */\n companyName?: string\n /**\n * the list of languages spoken by the patient ordered by fluency (alpha-2 code http://www.loc.gov/standards/iso639-2/ascii_8bits.html).\n */\n languages?: Array<string>\n /**\n * the list of addresses (with address type).\n */\n addresses?: Array<Address>\n /**\n * Mr., Ms., Pr., Dr. ...\n */\n civility?: string\n /**\n * the gender of the patient: male, female, indeterminate, changed, changedToMale, changedToFemale, unknown\n */\n gender?: Patient.GenderEnum\n /**\n * the birth sex of the patient: male, female, indeterminate, unknown\n */\n birthSex?: Patient.BirthSexEnum\n /**\n * The id of the patient this patient has been merged with.\n */\n mergeToPatientId?: string\n /**\n * The ids of the patients that have been merged inside this patient.\n */\n mergedIds?: Array<string>\n /**\n * An alias of the person, nickname, ...\n */\n alias?: string\n /**\n * Is the patient active (boolean).\n */\n active?: boolean\n /**\n * When not active, the reason for deactivation.\n */\n deactivationReason?: Patient.DeactivationReasonEnum\n /**\n * Social security inscription number.\n */\n ssin?: string\n /**\n * Lastname at birth (can be different of the current name), depending on the country, must be used to design the patient .\n */\n maidenName?: string\n /**\n * Lastname of the spouse for a married woman, depending on the country, can be used to design the patient.\n */\n spouseName?: string\n /**\n * Lastname of the partner, should not be used to design the patient.\n */\n partnerName?: string\n /**\n * any of `single`, `in_couple`, `married`, `separated`, `divorced`, `divorcing`, `widowed`, `widower`, `complicated`, `unknown`, `contract`, `other`.\n */\n personalStatus?: Patient.PersonalStatusEnum\n /**\n * The birthdate encoded as a fuzzy date on 8 positions (YYYYMMDD) MM and/or DD can be set to 00 if unknown (19740000 is a valid date).\n */\n dateOfBirth?: number\n /**\n * The date of death encoded as a fuzzy date on 8 positions (YYYYMMDD) MM and/or DD can be set to 00 if unknown (19740000 is a valid date).\n */\n dateOfDeath?: number\n /**\n * Timestamp of the latest validation of the eID of the person..\n */\n timestampOfLatestEidReading?: number\n /**\n * The place of birth.\n */\n placeOfBirth?: string\n /**\n * The place of death.\n */\n placeOfDeath?: string\n /**\n * Is the patient deceased.\n */\n deceased?: boolean\n /**\n * The level of education (college degree, undergraduate, phd).\n */\n education?: string\n /**\n * The current professional activity.\n */\n profession?: string\n /**\n * A text note (can be confidential, encrypted by default).\n */\n note?: string\n /**\n * An administrative note, not confidential.\n */\n administrativeNote?: string\n /**\n * The nationality of the patient.\n */\n nationality?: string\n /**\n * The race of the patient.\n */\n race?: string\n /**\n * The ethnicity of the patient.\n */\n ethnicity?: string\n /**\n * The id of the user that usually handles this patient.\n */\n preferredUserId?: string\n /**\n * A picture usually saved in JPEG format.\n */\n picture?: ArrayBuffer\n /**\n * An external (from another source) id with no guarantee or requirement for unicity .\n */\n externalId?: string\n /**\n * List of insurance coverages (of class Insurability, see below).\n */\n insurabilities?: Array<Insurability>\n /**\n * List of partners, or persons of contact (of class Partnership, see below).\n */\n partnerships?: Array<Partnership>\n /**\n * Links (usually for therapeutic reasons) between this patient and healthcare parties (of class PatientHealthcareParty).\n */\n patientHealthCareParties?: Array<PatientHealthCareParty>\n /**\n * Financial information (Bank, bank account) used to reimburse the patient.\n */\n financialInstitutionInformation?: Array<FinancialInstitutionInformation>\n /**\n * Contracts between the patient and the healthcare entity.\n */\n medicalHouseContracts?: Array<MedicalHouseContract>\n /**\n * Codified list of professions exercised by this patient.\n */\n patientProfessions?: Array<CodeStub>\n /**\n * Extra parameters\n */\n parameters?: { [key: string]: Array<string> }\n /**\n * Extra properties\n */\n properties?: Array<PropertyStub>\n /**\n * For each couple of HcParties (delegator and delegate), this map contains the exchange AES key. The delegator is always this hcp, the key of the map is the id of the delegate. The AES exchange key is encrypted using RSA twice : once using this hcp public key (index 0 in the Array) and once using the other hcp public key (index 1 in the Array). For a pair of HcParties. Each HcParty always has one AES exchange key for himself.\n */\n hcPartyKeys?: { [key: string]: Array<string> }\n /**\n * The privateKeyShamirPartitions are used to share this hcp's private RSA key with a series of other hcParties using Shamir's algorithm. The key of the map is the hcp Id with whom this partition has been shared. The value is \\\"threshold⎮partition in hex\\\" encrypted using the the partition's holder's public RSA key\n */\n privateKeyShamirPartitions?: { [key: string]: string }\n /**\n * The public key of this hcp\n */\n publicKey?: string\n /**\n * The secretForeignKeys are filled at the to many end of a one to many relationship (for example inside Contact for the Patient -> Contacts relationship). Used when we want to find all contacts for a specific patient. These keys are in clear. You can have several to partition the medical document space.\n */\n secretForeignKeys?: Array<string>\n /**\n * The secretForeignKeys are filled at the to many end of a one to many relationship (for example inside Contact for the Patient -> Contacts relationship). Used when we want to find the patient for a specific contact. These keys are the encrypted id (using the hcParty key for the delegate) that can be found in clear inside the patient. ids encrypted using the hcParty keys.\n */\n cryptedForeignKeys?: { [key: string]: Array<Delegation> }\n /**\n * When a document is created, the responsible generates a cryptographically random master key (never to be used for something else than referencing from other entities). He/she encrypts it using his own AES exchange key and stores it as a delegation. The responsible is thus always in the delegations as well\n */\n delegations?: { [key: string]: Array<Delegation> }\n /**\n * When a document needs to be encrypted, the responsible generates a cryptographically random master key (different from the delegation key, never to appear in clear anywhere in the db. He/she encrypts it using his own AES exchange key and stores it as a delegation\n */\n encryptionKeys?: { [key: string]: Array<Delegation> }\n /**\n * The base64 encoded data of this object, formatted as JSON and encrypted in AES using the random master key from encryptionKeys.\n */\n encryptedSelf?: string\n /**\n * The id of the medical location where this entity was created.\n */\n medicalLocationId?: string\n nonDuplicateIds?: Array<string>\n encryptedAdministrativesDocuments?: Array<string>\n comment?: string\n warning?: string\n fatherBirthCountry?: CodeStub\n birthCountry?: CodeStub\n nativeCountry?: CodeStub\n socialStatus?: CodeStub\n mainSourceOfIncome?: CodeStub\n schoolingInfos?: Array<SchoolingInfo>\n employementInfos?: Array<EmploymentInfo>\n}\nexport namespace Patient {\n export type GenderEnum = 'male' | 'female' | 'indeterminate' | 'changed' | 'changedToMale' | 'changedToFemale' | 'unknown'\n export const GenderEnum = {\n Male: 'male' as GenderEnum,\n Female: 'female' as GenderEnum,\n Indeterminate: 'indeterminate' as GenderEnum,\n Changed: 'changed' as GenderEnum,\n ChangedToMale: 'changedToMale' as GenderEnum,\n ChangedToFemale: 'changedToFemale' as GenderEnum,\n Unknown: 'unknown' as GenderEnum,\n }\n export type BirthSexEnum = 'male' | 'female' | 'indeterminate' | 'changed' | 'changedToMale' | 'changedToFemale' | 'unknown'\n export const BirthSexEnum = {\n Male: 'male' as BirthSexEnum,\n Female: 'female' as BirthSexEnum,\n Indeterminate: 'indeterminate' as BirthSexEnum,\n Changed: 'changed' as BirthSexEnum,\n ChangedToMale: 'changedToMale' as BirthSexEnum,\n ChangedToFemale: 'changedToFemale' as BirthSexEnum,\n Unknown: 'unknown' as BirthSexEnum,\n }\n export type DeactivationReasonEnum = 'deceased' | 'moved' | 'other_doctor' | 'retired' | 'no_contact' | 'unknown' | 'none'\n export const DeactivationReasonEnum = {\n Deceased: 'deceased' as DeactivationReasonEnum,\n Moved: 'moved' as DeactivationReasonEnum,\n OtherDoctor: 'other_doctor' as DeactivationReasonEnum,\n Retired: 'retired' as DeactivationReasonEnum,\n NoContact: 'no_contact' as DeactivationReasonEnum,\n Unknown: 'unknown' as DeactivationReasonEnum,\n None: 'none' as DeactivationReasonEnum,\n }\n export type PersonalStatusEnum =\n | 'single'\n | 'in_couple'\n | 'married'\n | 'separated'\n | 'divorced'\n | 'divorcing'\n | 'widowed'\n | 'widower'\n | 'complicated'\n | 'unknown'\n | 'contract'\n | 'other'\n | 'annulled'\n | 'polygamous'\n export const PersonalStatusEnum = {\n Single: 'single' as PersonalStatusEnum,\n InCouple: 'in_couple' as PersonalStatusEnum,\n Married: 'married' as PersonalStatusEnum,\n Separated: 'separated' as PersonalStatusEnum,\n Divorced: 'divorced' as PersonalStatusEnum,\n Divorcing: 'divorcing' as PersonalStatusEnum,\n Widowed: 'widowed' as PersonalStatusEnum,\n Widower: 'widower' as PersonalStatusEnum,\n Complicated: 'complicated' as PersonalStatusEnum,\n Unknown: 'unknown' as PersonalStatusEnum,\n Contract: 'contract' as PersonalStatusEnum,\n Other: 'other' as PersonalStatusEnum,\n Annulled: 'annulled' as PersonalStatusEnum,\n Polygamous: 'polygamous' as PersonalStatusEnum,\n }\n}\n"]}
1
+ {"version":3,"file":"Patient.js","sourceRoot":"","sources":["../../../icc-api/model/Patient.ts"],"names":[],"mappings":";;;AAyBA;;GAEG;AACH,+CAAuC;AACvC,MAAa,OAAO;IAClB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAe,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,qBAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IAC9F,CAAC;CAkRF;AArRD,0BAqRC;AACD,WAAiB,OAAO;IAET,kBAAU,GAAG;QACxB,IAAI,EAAE,MAAoB;QAC1B,MAAM,EAAE,QAAsB;QAC9B,aAAa,EAAE,eAA6B;QAC5C,OAAO,EAAE,SAAuB;QAChC,aAAa,EAAE,eAA6B;QAC5C,eAAe,EAAE,iBAA+B;QAChD,OAAO,EAAE,SAAuB;KACjC,CAAA;IAEY,oBAAY,GAAG;QAC1B,IAAI,EAAE,MAAsB;QAC5B,MAAM,EAAE,QAAwB;QAChC,aAAa,EAAE,eAA+B;QAC9C,OAAO,EAAE,SAAyB;QAClC,aAAa,EAAE,eAA+B;QAC9C,eAAe,EAAE,iBAAiC;QAClD,OAAO,EAAE,SAAyB;KACnC,CAAA;IAEY,8BAAsB,GAAG;QACpC,QAAQ,EAAE,UAAoC;QAC9C,KAAK,EAAE,OAAiC;QACxC,WAAW,EAAE,cAAwC;QACrD,OAAO,EAAE,SAAmC;QAC5C,SAAS,EAAE,YAAsC;QACjD,OAAO,EAAE,SAAmC;QAC5C,IAAI,EAAE,MAAgC;KACvC,CAAA;IAgBY,0BAAkB,GAAG;QAChC,MAAM,EAAE,QAA8B;QACtC,QAAQ,EAAE,WAAiC;QAC3C,OAAO,EAAE,SAA+B;QACxC,SAAS,EAAE,WAAiC;QAC5C,QAAQ,EAAE,UAAgC;QAC1C,SAAS,EAAE,WAAiC;QAC5C,OAAO,EAAE,SAA+B;QACxC,OAAO,EAAE,SAA+B;QACxC,WAAW,EAAE,aAAmC;QAChD,OAAO,EAAE,SAA+B;QACxC,QAAQ,EAAE,UAAgC;QAC1C,KAAK,EAAE,OAA6B;QACpC,QAAQ,EAAE,UAAgC;QAC1C,UAAU,EAAE,YAAkC;KAC/C,CAAA;AACH,CAAC,EA9DgB,OAAO,GAAP,eAAO,KAAP,eAAO,QA8DvB","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\nimport { Address } from './Address'\nimport { CodeStub } from './CodeStub'\nimport { Delegation } from './Delegation'\nimport { EmploymentInfo } from './EmploymentInfo'\nimport { FinancialInstitutionInformation } from './FinancialInstitutionInformation'\nimport { Identifier } from './Identifier'\nimport { Insurability } from './Insurability'\nimport { MedicalHouseContract } from './MedicalHouseContract'\nimport { Partnership } from './Partnership'\nimport { PatientHealthCareParty } from './PatientHealthCareParty'\nimport { PersonName } from './PersonName'\nimport { PropertyStub } from './PropertyStub'\nimport { SchoolingInfo } from './SchoolingInfo'\n\n/**\n * This entity is a root level object. It represents a patient It is serialized in JSON and saved in the underlying icure-patient CouchDB database.\n */\nimport { b64_2ab } from './ModelHelper'\nexport class Patient {\n constructor(json: JSON | any) {\n Object.assign(this as Patient, json, json.picture ? { picture: b64_2ab(json.picture) } : {})\n }\n\n /**\n * the Id of the patient. We encourage using either a v4 UUID or a HL7 Id.\n */\n id?: string\n /**\n * the revision of the patient in the database, used for conflict management / optimistic locking.\n */\n rev?: string\n identifier?: Array<Identifier>\n /**\n * The timestamp (unix epoch in ms) of creation of this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n created?: number\n /**\n * The date (unix epoch in ms) of the latest modification of this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n modified?: number\n /**\n * The id of the User that has created this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n author?: string\n /**\n * The id of the HealthcareParty that is responsible for this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n responsible?: string\n /**\n * A tag is an item from a codification system that qualifies an entity as being member of a certain class, whatever the value it might have taken. If the tag qualifies the content of a field, it means that whatever the content of the field, the tag will always apply. For example, the label of a field is qualified using a tag. LOINC is a codification system typically used for tags.\n */\n tags?: Array<CodeStub>\n /**\n * A code is an item from a codification system that qualifies the content of this entity. SNOMED-CT, ICPC-2 or ICD-10 codifications systems can be used for codes\n */\n codes?: Array<CodeStub>\n /**\n * Soft delete (unix epoch in ms) timestamp of the object.\n */\n endOfLife?: number\n /**\n * hard delete (unix epoch in ms) timestamp of the object. Filled automatically when deletePatient is called.\n */\n deletionDate?: number\n /**\n * the firstname (name) of the patient.\n */\n firstName?: string\n /**\n * the lastname (surname) of the patient. This is the official lastname that should be used for official administrative purposes.\n */\n lastName?: string\n /**\n * the list of all names of the patient, also containing the official full name information. Ordered by preference of use. First element is therefore the official name used for the patient in the application\n */\n names?: Array<PersonName>\n /**\n * the name of the company this patient is member of.\n */\n companyName?: string\n /**\n * the list of languages spoken by the patient ordered by fluency (alpha-2 code http://www.loc.gov/standards/iso639-2/ascii_8bits.html).\n */\n languages?: Array<string>\n /**\n * the list of addresses (with address type).\n */\n addresses?: Array<Address>\n /**\n * Mr., Ms., Pr., Dr. ...\n */\n civility?: string\n /**\n * the gender of the patient: male, female, indeterminate, changed, changedToMale, changedToFemale, unknown\n */\n gender?: Patient.GenderEnum\n /**\n * the birth sex of the patient: male, female, indeterminate, unknown\n */\n birthSex?: Patient.BirthSexEnum\n /**\n * The id of the patient this patient has been merged with.\n */\n mergeToPatientId?: string\n /**\n * The ids of the patients that have been merged inside this patient.\n */\n mergedIds?: Array<string>\n /**\n * An alias of the person, nickname, ...\n */\n alias?: string\n /**\n * Is the patient active (boolean).\n */\n active?: boolean\n /**\n * When not active, the reason for deactivation.\n */\n deactivationReason?: Patient.DeactivationReasonEnum\n /**\n * Social security inscription number.\n */\n ssin?: string\n /**\n * Lastname at birth (can be different of the current name), depending on the country, must be used to design the patient .\n */\n maidenName?: string\n /**\n * Lastname of the spouse for a married woman, depending on the country, can be used to design the patient.\n */\n spouseName?: string\n /**\n * Lastname of the partner, should not be used to design the patient.\n */\n partnerName?: string\n /**\n * any of `single`, `in_couple`, `married`, `separated`, `divorced`, `divorcing`, `widowed`, `widower`, `complicated`, `unknown`, `contract`, `other`.\n */\n personalStatus?: Patient.PersonalStatusEnum\n /**\n * The birthdate encoded as a fuzzy date on 8 positions (YYYYMMDD) MM and/or DD can be set to 00 if unknown (19740000 is a valid date).\n */\n dateOfBirth?: number\n /**\n * The date of death encoded as a fuzzy date on 8 positions (YYYYMMDD) MM and/or DD can be set to 00 if unknown (19740000 is a valid date).\n */\n dateOfDeath?: number\n /**\n * Timestamp of the latest validation of the eID of the person..\n */\n timestampOfLatestEidReading?: number\n /**\n * The place of birth.\n */\n placeOfBirth?: string\n /**\n * The place of death.\n */\n placeOfDeath?: string\n /**\n * Is the patient deceased.\n */\n deceased?: boolean\n /**\n * The level of education (college degree, undergraduate, phd).\n */\n education?: string\n /**\n * The current professional activity.\n */\n profession?: string\n /**\n * A text note (can be confidential, encrypted by default).\n */\n note?: string\n /**\n * An administrative note, not confidential.\n */\n administrativeNote?: string\n /**\n * The nationality of the patient.\n */\n nationality?: string\n /**\n * The race of the patient.\n */\n race?: string\n /**\n * The ethnicity of the patient.\n */\n ethnicity?: string\n /**\n * The id of the user that usually handles this patient.\n */\n preferredUserId?: string\n /**\n * A picture usually saved in JPEG format.\n */\n picture?: ArrayBuffer\n /**\n * An external (from another source) id with no guarantee or requirement for unicity .\n */\n externalId?: string\n /**\n * List of insurance coverages (of class Insurability, see below).\n */\n insurabilities?: Array<Insurability>\n /**\n * List of partners, or persons of contact (of class Partnership, see below).\n */\n partnerships?: Array<Partnership>\n /**\n * Links (usually for therapeutic reasons) between this patient and healthcare parties (of class PatientHealthcareParty).\n */\n patientHealthCareParties?: Array<PatientHealthCareParty>\n /**\n * Financial information (Bank, bank account) used to reimburse the patient.\n */\n financialInstitutionInformation?: Array<FinancialInstitutionInformation>\n /**\n * Contracts between the patient and the healthcare entity.\n */\n medicalHouseContracts?: Array<MedicalHouseContract>\n /**\n * Codified list of professions exercised by this patient.\n */\n patientProfessions?: Array<CodeStub>\n /**\n * Extra parameters\n */\n parameters?: { [key: string]: Array<string> }\n /**\n * Extra properties\n */\n properties?: Array<PropertyStub>\n /**\n * For each couple of HcParties (delegator and delegate), this map contains the exchange AES key. The delegator is always this hcp, the key of the map is the id of the delegate. The AES exchange key is encrypted using RSA twice : once using this hcp public key (index 0 in the Array) and once using the other hcp public key (index 1 in the Array). For a pair of HcParties. Each HcParty always has one AES exchange key for himself.\n */\n hcPartyKeys?: { [key: string]: Array<string> }\n /**\n * Extra AES exchange keys, usually the ones we lost access to at some point. The structure is { publicKey: { delegateId: [aesExKey_for_this, aesExKey_for_delegate] } }\n */\n aesExchangeKeys?: { [key: string]: { [key: string]: Array<string> } }\n /**\n * Our private keys encrypted with our public keys. The structure is { publicKey1: { publicKey2: privateKey2_encrypted_with_publicKey1, publicKey3: privateKey3_encrypted_with_publicKey1 } }\n */\n transferKeys?: { [key: string]: { [key: string]: string } }\n /**\n * The hcparty keys (first of the pair) for which we are asking a re-encryption by the delegate using our new publicKey.\n */\n lostHcPartyKeys?: Array<string>\n /**\n * The privateKeyShamirPartitions are used to share this hcp's private RSA key with a series of other hcParties using Shamir's algorithm. The key of the map is the hcp Id with whom this partition has been shared. The value is \\\"threshold⎮partition in hex\\\" encrypted using the the partition's holder's public RSA key\n */\n privateKeyShamirPartitions?: { [key: string]: string }\n /**\n * The public key of this hcp\n */\n publicKey?: string\n /**\n * The secretForeignKeys are filled at the to many end of a one to many relationship (for example inside Contact for the Patient -> Contacts relationship). Used when we want to find all contacts for a specific patient. These keys are in clear. You can have several to partition the medical document space.\n */\n secretForeignKeys?: Array<string>\n /**\n * The secretForeignKeys are filled at the to many end of a one to many relationship (for example inside Contact for the Patient -> Contacts relationship). Used when we want to find the patient for a specific contact. These keys are the encrypted id (using the hcParty key for the delegate) that can be found in clear inside the patient. ids encrypted using the hcParty keys.\n */\n cryptedForeignKeys?: { [key: string]: Array<Delegation> }\n /**\n * When a document is created, the responsible generates a cryptographically random master key (never to be used for something else than referencing from other entities). He/she encrypts it using his own AES exchange key and stores it as a delegation. The responsible is thus always in the delegations as well\n */\n delegations?: { [key: string]: Array<Delegation> }\n /**\n * When a document needs to be encrypted, the responsible generates a cryptographically random master key (different from the delegation key, never to appear in clear anywhere in the db. He/she encrypts it using his own AES exchange key and stores it as a delegation\n */\n encryptionKeys?: { [key: string]: Array<Delegation> }\n /**\n * The base64 encoded data of this object, formatted as JSON and encrypted in AES using the random master key from encryptionKeys.\n */\n encryptedSelf?: string\n /**\n * The id of the medical location where this entity was created.\n */\n medicalLocationId?: string\n nonDuplicateIds?: Array<string>\n encryptedAdministrativesDocuments?: Array<string>\n comment?: string\n warning?: string\n fatherBirthCountry?: CodeStub\n birthCountry?: CodeStub\n nativeCountry?: CodeStub\n socialStatus?: CodeStub\n mainSourceOfIncome?: CodeStub\n schoolingInfos?: Array<SchoolingInfo>\n employementInfos?: Array<EmploymentInfo>\n}\nexport namespace Patient {\n export type GenderEnum = 'male' | 'female' | 'indeterminate' | 'changed' | 'changedToMale' | 'changedToFemale' | 'unknown'\n export const GenderEnum = {\n Male: 'male' as GenderEnum,\n Female: 'female' as GenderEnum,\n Indeterminate: 'indeterminate' as GenderEnum,\n Changed: 'changed' as GenderEnum,\n ChangedToMale: 'changedToMale' as GenderEnum,\n ChangedToFemale: 'changedToFemale' as GenderEnum,\n Unknown: 'unknown' as GenderEnum,\n }\n export type BirthSexEnum = 'male' | 'female' | 'indeterminate' | 'changed' | 'changedToMale' | 'changedToFemale' | 'unknown'\n export const BirthSexEnum = {\n Male: 'male' as BirthSexEnum,\n Female: 'female' as BirthSexEnum,\n Indeterminate: 'indeterminate' as BirthSexEnum,\n Changed: 'changed' as BirthSexEnum,\n ChangedToMale: 'changedToMale' as BirthSexEnum,\n ChangedToFemale: 'changedToFemale' as BirthSexEnum,\n Unknown: 'unknown' as BirthSexEnum,\n }\n export type DeactivationReasonEnum = 'deceased' | 'moved' | 'other_doctor' | 'retired' | 'no_contact' | 'unknown' | 'none'\n export const DeactivationReasonEnum = {\n Deceased: 'deceased' as DeactivationReasonEnum,\n Moved: 'moved' as DeactivationReasonEnum,\n OtherDoctor: 'other_doctor' as DeactivationReasonEnum,\n Retired: 'retired' as DeactivationReasonEnum,\n NoContact: 'no_contact' as DeactivationReasonEnum,\n Unknown: 'unknown' as DeactivationReasonEnum,\n None: 'none' as DeactivationReasonEnum,\n }\n export type PersonalStatusEnum =\n | 'single'\n | 'in_couple'\n | 'married'\n | 'separated'\n | 'divorced'\n | 'divorcing'\n | 'widowed'\n | 'widower'\n | 'complicated'\n | 'unknown'\n | 'contract'\n | 'other'\n | 'annulled'\n | 'polygamous'\n export const PersonalStatusEnum = {\n Single: 'single' as PersonalStatusEnum,\n InCouple: 'in_couple' as PersonalStatusEnum,\n Married: 'married' as PersonalStatusEnum,\n Separated: 'separated' as PersonalStatusEnum,\n Divorced: 'divorced' as PersonalStatusEnum,\n Divorcing: 'divorcing' as PersonalStatusEnum,\n Widowed: 'widowed' as PersonalStatusEnum,\n Widower: 'widower' as PersonalStatusEnum,\n Complicated: 'complicated' as PersonalStatusEnum,\n Unknown: 'unknown' as PersonalStatusEnum,\n Contract: 'contract' as PersonalStatusEnum,\n Other: 'other' as PersonalStatusEnum,\n Annulled: 'annulled' as PersonalStatusEnum,\n Polygamous: 'polygamous' as PersonalStatusEnum,\n }\n}\n"]}
@@ -14,4 +14,5 @@ export declare class Suspension {
14
14
  beginMoment?: number;
15
15
  endMoment?: number;
16
16
  suspensionReason?: string;
17
+ lifecycle?: string;
17
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Suspension.js","sourceRoot":"","sources":["../../../icc-api/model/Suspension.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,UAAU;IACrB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAkB,EAAE,IAAI,CAAC,CAAA;IACzC,CAAC;CAKF;AARD,gCAQC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\n\nexport class Suspension {\n constructor(json: JSON | any) {\n Object.assign(this as Suspension, json)\n }\n\n beginMoment?: number\n endMoment?: number\n suspensionReason?: string\n}\n"]}
1
+ {"version":3,"file":"Suspension.js","sourceRoot":"","sources":["../../../icc-api/model/Suspension.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,UAAU;IACrB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAkB,EAAE,IAAI,CAAC,CAAA;IACzC,CAAC;CAMF;AATD,gCASC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\n\nexport class Suspension {\n constructor(json: JSON | any) {\n Object.assign(this as Suspension, json)\n }\n\n beginMoment?: number\n endMoment?: number\n suspensionReason?: string\n lifecycle?: string\n}\n"]}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * iCure Data Stack API Documentation
3
+ * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.
4
+ *
5
+ * OpenAPI spec version: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AddedDocument } from './AddedDocument';
13
+ export declare class Verse {
14
+ constructor(json: JSON | any);
15
+ id?: string;
16
+ rev?: string;
17
+ /**
18
+ * hard delete (unix epoch in ms) timestamp of the object. Filled automatically when deletePatient is called.
19
+ */
20
+ deletionDate?: number;
21
+ chapterName?: string;
22
+ paragraphName?: string;
23
+ verseSeq?: number;
24
+ startDate?: number;
25
+ createdTms?: number;
26
+ createdUserId?: string;
27
+ endDate?: number;
28
+ verseNum?: number;
29
+ verseSeqParent?: number;
30
+ verseLevel?: number;
31
+ verseType?: string;
32
+ checkBoxInd?: string;
33
+ minCheckNum?: number;
34
+ andClauseNum?: number;
35
+ textFr?: string;
36
+ textNl?: string;
37
+ requestType?: string;
38
+ agreementTerm?: number;
39
+ agreementTermUnit?: string;
40
+ maxPackageNumber?: number;
41
+ purchasingAdvisorQualList?: string;
42
+ legalReference?: string;
43
+ modificationDate?: number;
44
+ addedDocuments?: Array<AddedDocument>;
45
+ agreementYearMax?: number;
46
+ agreementRenewalMax?: number;
47
+ sexRestricted?: string;
48
+ minimumAgeAuthorized?: number;
49
+ maximumAgeAuthorized?: number;
50
+ maximumContentQuantity?: number;
51
+ maximumContentUnit?: string;
52
+ maximumStrengthQuantity?: number;
53
+ maximumStrengthUnit?: string;
54
+ maximumDurationQuantity?: number;
55
+ maximumDurationUnit?: string;
56
+ otherAddedDocumentInd?: string;
57
+ minimumAgeAuthorizedUnit?: string;
58
+ maximumAgeAuthorizedUnit?: string;
59
+ modificationStatus?: string;
60
+ children?: Array<Verse>;
61
+ }
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Authentication = void 0;
4
- class Authentication {
3
+ exports.Verse = void 0;
4
+ class Verse {
5
5
  constructor(json) {
6
6
  Object.assign(this, json);
7
7
  }
8
8
  }
9
- exports.Authentication = Authentication;
10
- //# sourceMappingURL=Authentication.js.map
9
+ exports.Verse = Verse;
10
+ //# sourceMappingURL=Verse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Verse.js","sourceRoot":"","sources":["../../../icc-api/model/Verse.ts"],"names":[],"mappings":";;;AAaA,MAAa,KAAK;IAChB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAa,EAAE,IAAI,CAAC,CAAA;IACpC,CAAC;CAgDF;AAnDD,sBAmDC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\nimport { AddedDocument } from './AddedDocument'\n\nexport class Verse {\n constructor(json: JSON | any) {\n Object.assign(this as Verse, json)\n }\n\n id?: string\n rev?: string\n /**\n * hard delete (unix epoch in ms) timestamp of the object. Filled automatically when deletePatient is called.\n */\n deletionDate?: number\n chapterName?: string\n paragraphName?: string\n verseSeq?: number\n startDate?: number\n createdTms?: number\n createdUserId?: string\n endDate?: number\n verseNum?: number\n verseSeqParent?: number\n verseLevel?: number\n verseType?: string\n checkBoxInd?: string\n minCheckNum?: number\n andClauseNum?: number\n textFr?: string\n textNl?: string\n requestType?: string\n agreementTerm?: number\n agreementTermUnit?: string\n maxPackageNumber?: number\n purchasingAdvisorQualList?: string\n legalReference?: string\n modificationDate?: number\n addedDocuments?: Array<AddedDocument>\n agreementYearMax?: number\n agreementRenewalMax?: number\n sexRestricted?: string\n minimumAgeAuthorized?: number\n maximumAgeAuthorized?: number\n maximumContentQuantity?: number\n maximumContentUnit?: string\n maximumStrengthQuantity?: number\n maximumStrengthUnit?: string\n maximumDurationQuantity?: number\n maximumDurationUnit?: string\n otherAddedDocumentInd?: string\n minimumAgeAuthorizedUnit?: string\n maximumAgeAuthorizedUnit?: string\n modificationStatus?: string\n children?: Array<Verse>\n}\n"]}
@@ -8,6 +8,7 @@ export * from './AbstractFilterPatient';
8
8
  export * from './AbstractFilterService';
9
9
  export * from './AbstractFilterUser';
10
10
  export * from './AccessLog';
11
+ export * from './AddedDocument';
11
12
  export * from './Address';
12
13
  export * from './AdministrationQuantity';
13
14
  export * from './Agenda';
@@ -23,7 +24,6 @@ export * from './AppointmentImport';
23
24
  export * from './AppointmentTypeAndPlace';
24
25
  export * from './Article';
25
26
  export * from './Atc';
26
- export * from './Authentication';
27
27
  export * from './AuthenticationResponse';
28
28
  export * from './AuthenticationToken';
29
29
  export * from './Basic';
@@ -163,6 +163,7 @@ export * from './PaginatedListTarification';
163
163
  export * from './PaginatedListUser';
164
164
  export * from './PaginatedListVmp';
165
165
  export * from './PaginatedListVmpGroup';
166
+ export * from './Paragraph';
166
167
  export * from './ParagraphAgreement';
167
168
  export * from './Partnership';
168
169
  export * from './Patient';
@@ -235,6 +236,7 @@ export * from './User';
235
236
  export * from './UserAndHealthcareParty';
236
237
  export * from './UserGroup';
237
238
  export * from './Valorisation';
239
+ export * from './Verse';
238
240
  export * from './VirtualForm';
239
241
  export * from './VirtualIngredient';
240
242
  export * from './Vmp';
@@ -20,6 +20,7 @@ __exportStar(require("./AbstractFilterPatient"), exports);
20
20
  __exportStar(require("./AbstractFilterService"), exports);
21
21
  __exportStar(require("./AbstractFilterUser"), exports);
22
22
  __exportStar(require("./AccessLog"), exports);
23
+ __exportStar(require("./AddedDocument"), exports);
23
24
  __exportStar(require("./Address"), exports);
24
25
  __exportStar(require("./AdministrationQuantity"), exports);
25
26
  __exportStar(require("./Agenda"), exports);
@@ -35,7 +36,6 @@ __exportStar(require("./AppointmentImport"), exports);
35
36
  __exportStar(require("./AppointmentTypeAndPlace"), exports);
36
37
  __exportStar(require("./Article"), exports);
37
38
  __exportStar(require("./Atc"), exports);
38
- __exportStar(require("./Authentication"), exports);
39
39
  __exportStar(require("./AuthenticationResponse"), exports);
40
40
  __exportStar(require("./AuthenticationToken"), exports);
41
41
  __exportStar(require("./Basic"), exports);
@@ -175,6 +175,7 @@ __exportStar(require("./PaginatedListTarification"), exports);
175
175
  __exportStar(require("./PaginatedListUser"), exports);
176
176
  __exportStar(require("./PaginatedListVmp"), exports);
177
177
  __exportStar(require("./PaginatedListVmpGroup"), exports);
178
+ __exportStar(require("./Paragraph"), exports);
178
179
  __exportStar(require("./ParagraphAgreement"), exports);
179
180
  __exportStar(require("./Partnership"), exports);
180
181
  __exportStar(require("./Patient"), exports);
@@ -247,6 +248,7 @@ __exportStar(require("./User"), exports);
247
248
  __exportStar(require("./UserAndHealthcareParty"), exports);
248
249
  __exportStar(require("./UserGroup"), exports);
249
250
  __exportStar(require("./Valorisation"), exports);
251
+ __exportStar(require("./Verse"), exports);
250
252
  __exportStar(require("./VirtualForm"), exports);
251
253
  __exportStar(require("./VirtualIngredient"), exports);
252
254
  __exportStar(require("./Vmp"), exports);