@icure/api 8.0.0-RC.1 → 8.0.0-RC.3

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 (345) hide show
  1. package/icc-api/api/IccAccesslogApi.d.ts +12 -4
  2. package/icc-api/api/IccAccesslogApi.js +23 -18
  3. package/icc-api/api/IccAccesslogApi.js.map +1 -1
  4. package/icc-api/api/IccAgendaApi.d.ts +13 -4
  5. package/icc-api/api/IccAgendaApi.js +42 -19
  6. package/icc-api/api/IccAgendaApi.js.map +1 -1
  7. package/icc-api/api/IccApplicationsettingsApi.d.ts +1 -1
  8. package/icc-api/api/IccApplicationsettingsApi.js +2 -2
  9. package/icc-api/api/IccApplicationsettingsApi.js.map +1 -1
  10. package/icc-api/api/IccArticleApi.d.ts +13 -4
  11. package/icc-api/api/IccArticleApi.js +50 -26
  12. package/icc-api/api/IccArticleApi.js.map +1 -1
  13. package/icc-api/api/IccAuthApi.d.ts +1 -1
  14. package/icc-api/api/IccAuthApi.js +2 -2
  15. package/icc-api/api/IccAuthApi.js.map +1 -1
  16. package/icc-api/api/IccCalendarItemApi.d.ts +8 -4
  17. package/icc-api/api/IccCalendarItemApi.js +15 -22
  18. package/icc-api/api/IccCalendarItemApi.js.map +1 -1
  19. package/icc-api/api/IccCalendarItemTypeApi.d.ts +6 -4
  20. package/icc-api/api/IccCalendarItemTypeApi.js +60 -45
  21. package/icc-api/api/IccCalendarItemTypeApi.js.map +1 -1
  22. package/icc-api/api/IccClassificationApi.d.ts +14 -5
  23. package/icc-api/api/IccClassificationApi.js +22 -12
  24. package/icc-api/api/IccClassificationApi.js.map +1 -1
  25. package/icc-api/api/IccClassificationTemplateApi.d.ts +14 -5
  26. package/icc-api/api/IccClassificationTemplateApi.js +102 -70
  27. package/icc-api/api/IccClassificationTemplateApi.js.map +1 -1
  28. package/icc-api/api/IccCodeApi.d.ts +1 -1
  29. package/icc-api/api/IccCodeApi.js +2 -2
  30. package/icc-api/api/IccCodeApi.js.map +1 -1
  31. package/icc-api/api/IccContactApi.d.ts +11 -4
  32. package/icc-api/api/IccContactApi.js +20 -13
  33. package/icc-api/api/IccContactApi.js.map +1 -1
  34. package/icc-api/api/IccDataownerApi.d.ts +1 -1
  35. package/icc-api/api/IccDataownerApi.js +44 -27
  36. package/icc-api/api/IccDataownerApi.js.map +1 -1
  37. package/icc-api/api/IccDeviceApi.d.ts +1 -1
  38. package/icc-api/api/IccDeviceApi.js +43 -32
  39. package/icc-api/api/IccDeviceApi.js.map +1 -1
  40. package/icc-api/api/IccDoctemplateApi.d.ts +10 -8
  41. package/icc-api/api/IccDoctemplateApi.js +121 -101
  42. package/icc-api/api/IccDoctemplateApi.js.map +1 -1
  43. package/icc-api/api/IccDocumentApi.d.ts +19 -5
  44. package/icc-api/api/IccDocumentApi.js +38 -13
  45. package/icc-api/api/IccDocumentApi.js.map +1 -1
  46. package/icc-api/api/IccEntityrefApi.d.ts +1 -1
  47. package/icc-api/api/IccEntityrefApi.js +27 -16
  48. package/icc-api/api/IccEntityrefApi.js.map +1 -1
  49. package/icc-api/api/IccEntitytemplateApi.d.ts +6 -4
  50. package/icc-api/api/IccEntitytemplateApi.js +118 -97
  51. package/icc-api/api/IccEntitytemplateApi.js.map +1 -1
  52. package/icc-api/api/IccExchangeDataApi.d.ts +2 -2
  53. package/icc-api/api/IccExchangeDataApi.js +73 -52
  54. package/icc-api/api/IccExchangeDataApi.js.map +1 -1
  55. package/icc-api/api/IccExchangeDataMapApi.d.ts +2 -2
  56. package/icc-api/api/IccExchangeDataMapApi.js +53 -34
  57. package/icc-api/api/IccExchangeDataMapApi.js.map +1 -1
  58. package/icc-api/api/IccFormApi.d.ts +13 -5
  59. package/icc-api/api/IccFormApi.js +24 -18
  60. package/icc-api/api/IccFormApi.js.map +1 -1
  61. package/icc-api/api/IccFrontendmigrationApi.d.ts +1 -1
  62. package/icc-api/api/IccFrontendmigrationApi.js +19 -10
  63. package/icc-api/api/IccFrontendmigrationApi.js.map +1 -1
  64. package/icc-api/api/IccGroupApi.d.ts +16 -2
  65. package/icc-api/api/IccGroupApi.js +29 -3
  66. package/icc-api/api/IccGroupApi.js.map +1 -1
  67. package/icc-api/api/IccHcpartyApi.d.ts +25 -10
  68. package/icc-api/api/IccHcpartyApi.js +84 -53
  69. package/icc-api/api/IccHcpartyApi.js.map +1 -1
  70. package/icc-api/api/IccHelementApi.d.ts +13 -5
  71. package/icc-api/api/IccHelementApi.js +25 -21
  72. package/icc-api/api/IccHelementApi.js.map +1 -1
  73. package/icc-api/api/IccIcureApi.d.ts +1 -1
  74. package/icc-api/api/IccIcureApi.js +2 -2
  75. package/icc-api/api/IccIcureApi.js.map +1 -1
  76. package/icc-api/api/IccInsuranceApi.d.ts +1 -1
  77. package/icc-api/api/IccInsuranceApi.js +67 -50
  78. package/icc-api/api/IccInsuranceApi.js.map +1 -1
  79. package/icc-api/api/IccInvoiceApi.d.ts +1 -1
  80. package/icc-api/api/IccInvoiceApi.js +5 -11
  81. package/icc-api/api/IccInvoiceApi.js.map +1 -1
  82. package/icc-api/api/IccKeywordApi.d.ts +6 -5
  83. package/icc-api/api/IccKeywordApi.js +59 -45
  84. package/icc-api/api/IccKeywordApi.js.map +1 -1
  85. package/icc-api/api/IccMaintenanceTaskApi.d.ts +13 -4
  86. package/icc-api/api/IccMaintenanceTaskApi.js +22 -12
  87. package/icc-api/api/IccMaintenanceTaskApi.js.map +1 -1
  88. package/icc-api/api/IccMedexApi.d.ts +1 -1
  89. package/icc-api/api/IccMedexApi.js +19 -10
  90. package/icc-api/api/IccMedexApi.js.map +1 -1
  91. package/icc-api/api/IccMedicallocationApi.d.ts +6 -4
  92. package/icc-api/api/IccMedicallocationApi.js +52 -39
  93. package/icc-api/api/IccMedicallocationApi.js.map +1 -1
  94. package/icc-api/api/IccMessageApi.d.ts +25 -7
  95. package/icc-api/api/IccMessageApi.js +52 -22
  96. package/icc-api/api/IccMessageApi.js.map +1 -1
  97. package/icc-api/api/IccPatientApi.d.ts +13 -5
  98. package/icc-api/api/IccPatientApi.js +23 -13
  99. package/icc-api/api/IccPatientApi.js.map +1 -1
  100. package/icc-api/api/IccPermissionApi.d.ts +1 -1
  101. package/icc-api/api/IccPermissionApi.js +19 -10
  102. package/icc-api/api/IccPermissionApi.js.map +1 -1
  103. package/icc-api/api/IccPlaceApi.d.ts +7 -5
  104. package/icc-api/api/IccPlaceApi.js +53 -40
  105. package/icc-api/api/IccPlaceApi.js.map +1 -1
  106. package/icc-api/api/IccReceiptApi.d.ts +13 -4
  107. package/icc-api/api/IccReceiptApi.js +23 -13
  108. package/icc-api/api/IccReceiptApi.js.map +1 -1
  109. package/icc-api/api/IccReplicationApi.d.ts +1 -1
  110. package/icc-api/api/IccReplicationApi.js +3 -5
  111. package/icc-api/api/IccReplicationApi.js.map +1 -1
  112. package/icc-api/api/IccRoleApi.d.ts +16 -0
  113. package/icc-api/api/IccRoleApi.js +42 -0
  114. package/icc-api/api/IccRoleApi.js.map +1 -0
  115. package/icc-api/api/IccSecureDelegationKeyMapApi.d.ts +26 -0
  116. package/icc-api/api/IccSecureDelegationKeyMapApi.js +71 -0
  117. package/icc-api/api/IccSecureDelegationKeyMapApi.js.map +1 -0
  118. package/icc-api/api/IccTarificationApi.d.ts +1 -1
  119. package/icc-api/api/IccTarificationApi.js +19 -10
  120. package/icc-api/api/IccTarificationApi.js.map +1 -1
  121. package/icc-api/api/IccTimeTableApi.d.ts +13 -4
  122. package/icc-api/api/IccTimeTableApi.js +21 -9
  123. package/icc-api/api/IccTimeTableApi.js.map +1 -1
  124. package/icc-api/api/IccTopicApi.d.ts +97 -0
  125. package/icc-api/api/IccTopicApi.js +208 -0
  126. package/icc-api/api/IccTopicApi.js.map +1 -0
  127. package/icc-api/api/IccUserApi.d.ts +31 -1
  128. package/icc-api/api/IccUserApi.js +65 -2
  129. package/icc-api/api/IccUserApi.js.map +1 -1
  130. package/icc-api/index.d.ts +1 -0
  131. package/icc-api/index.js +1 -0
  132. package/icc-api/index.js.map +1 -1
  133. package/icc-api/model/AbstractFilterMessage.d.ts +15 -0
  134. package/icc-api/model/AbstractFilterMessage.js +21 -0
  135. package/icc-api/model/AbstractFilterMessage.js.map +1 -0
  136. package/icc-api/model/AbstractFilterTopic.d.ts +15 -0
  137. package/icc-api/model/AbstractFilterTopic.js +21 -0
  138. package/icc-api/model/AbstractFilterTopic.js.map +1 -0
  139. package/icc-api/model/AccessLog.d.ts +0 -2
  140. package/icc-api/model/AccessLog.js +0 -1
  141. package/icc-api/model/AccessLog.js.map +1 -1
  142. package/icc-api/model/Article.d.ts +0 -2
  143. package/icc-api/model/Article.js +0 -1
  144. package/icc-api/model/Article.js.map +1 -1
  145. package/icc-api/model/CalendarItem.d.ts +0 -2
  146. package/icc-api/model/CalendarItem.js +0 -1
  147. package/icc-api/model/CalendarItem.js.map +1 -1
  148. package/icc-api/model/Classification.d.ts +0 -2
  149. package/icc-api/model/Classification.js +0 -1
  150. package/icc-api/model/Classification.js.map +1 -1
  151. package/icc-api/model/Connection.d.ts +1 -1
  152. package/icc-api/model/Connection.js.map +1 -1
  153. package/icc-api/model/Contact.d.ts +0 -2
  154. package/icc-api/model/Contact.js +0 -1
  155. package/icc-api/model/Contact.js.map +1 -1
  156. package/icc-api/model/Document.d.ts +0 -2
  157. package/icc-api/model/Document.js +0 -1
  158. package/icc-api/model/Document.js.map +1 -1
  159. package/icc-api/model/FilterChainMessage.d.ts +19 -0
  160. package/icc-api/model/FilterChainMessage.js +11 -0
  161. package/icc-api/model/FilterChainMessage.js.map +1 -0
  162. package/icc-api/model/FilterChainTopic.d.ts +19 -0
  163. package/icc-api/model/FilterChainTopic.js +11 -0
  164. package/icc-api/model/FilterChainTopic.js.map +1 -0
  165. package/icc-api/model/Form.d.ts +0 -2
  166. package/icc-api/model/Form.js +0 -1
  167. package/icc-api/model/Form.js.map +1 -1
  168. package/icc-api/model/Group.d.ts +4 -0
  169. package/icc-api/model/Group.js.map +1 -1
  170. package/icc-api/model/HealthElement.d.ts +0 -2
  171. package/icc-api/model/HealthElement.js +0 -1
  172. package/icc-api/model/HealthElement.js.map +1 -1
  173. package/icc-api/model/HealthcareParty.js +13 -1
  174. package/icc-api/model/HealthcareParty.js.map +1 -1
  175. package/icc-api/model/Invoice.d.ts +0 -2
  176. package/icc-api/model/Invoice.js +0 -1
  177. package/icc-api/model/Invoice.js.map +1 -1
  178. package/icc-api/model/MaintenanceTask.d.ts +11 -10
  179. package/icc-api/model/MaintenanceTask.js +13 -12
  180. package/icc-api/model/MaintenanceTask.js.map +1 -1
  181. package/icc-api/model/Message.d.ts +5 -2
  182. package/icc-api/model/Message.js +0 -1
  183. package/icc-api/model/Message.js.map +1 -1
  184. package/icc-api/model/MessageAttachment.d.ts +10 -0
  185. package/icc-api/model/MessageAttachment.js +10 -0
  186. package/icc-api/model/MessageAttachment.js.map +1 -0
  187. package/icc-api/model/PaginatedListExchangeData.d.ts +1 -1
  188. package/icc-api/model/PaginatedListExchangeData.js.map +1 -1
  189. package/icc-api/model/PaginatedListTopic.d.ts +20 -0
  190. package/icc-api/model/PaginatedListTopic.js +10 -0
  191. package/icc-api/model/PaginatedListTopic.js.map +1 -0
  192. package/icc-api/model/Patient.d.ts +0 -2
  193. package/icc-api/model/Patient.js +0 -1
  194. package/icc-api/model/Patient.js.map +1 -1
  195. package/icc-api/model/Receipt.d.ts +0 -2
  196. package/icc-api/model/Receipt.js +0 -1
  197. package/icc-api/model/Receipt.js.map +1 -1
  198. package/icc-api/model/Role.d.ts +11 -0
  199. package/icc-api/model/Role.js +10 -0
  200. package/icc-api/model/Role.js.map +1 -0
  201. package/icc-api/model/RoleConfiguration.d.ts +6 -0
  202. package/icc-api/model/RoleConfiguration.js +10 -0
  203. package/icc-api/model/RoleConfiguration.js.map +1 -0
  204. package/icc-api/model/RoleSourceEnum.d.ts +11 -0
  205. package/icc-api/model/RoleSourceEnum.js +16 -0
  206. package/icc-api/model/RoleSourceEnum.js.map +1 -0
  207. package/icc-api/model/TimeTable.d.ts +0 -2
  208. package/icc-api/model/TimeTable.js +0 -1
  209. package/icc-api/model/TimeTable.js.map +1 -1
  210. package/icc-api/model/Topic.d.ts +95 -0
  211. package/icc-api/model/Topic.js +16 -0
  212. package/icc-api/model/Topic.js.map +1 -0
  213. package/icc-api/model/UserTypeEnum.d.ts +9 -0
  214. package/icc-api/model/UserTypeEnum.js +14 -0
  215. package/icc-api/model/UserTypeEnum.js.map +1 -0
  216. package/icc-api/model/{ExchangeData.d.ts → internal/ExchangeData.d.ts} +3 -0
  217. package/icc-api/model/{ExchangeData.js → internal/ExchangeData.js} +3 -0
  218. package/icc-api/model/internal/ExchangeData.js.map +1 -0
  219. package/icc-api/model/{ExchangeDataMap.d.ts → internal/ExchangeDataMap.d.ts} +3 -0
  220. package/icc-api/model/{ExchangeDataMap.js → internal/ExchangeDataMap.js} +3 -0
  221. package/icc-api/model/internal/ExchangeDataMap.js.map +1 -0
  222. package/icc-api/model/internal/SecureDelegationKeyMap.d.ts +14 -0
  223. package/icc-api/model/internal/SecureDelegationKeyMap.js +13 -0
  224. package/icc-api/model/internal/SecureDelegationKeyMap.js.map +1 -0
  225. package/icc-api/model/models.d.ts +11 -1
  226. package/icc-api/model/models.js +9 -0
  227. package/icc-api/model/models.js.map +1 -1
  228. package/icc-x-api/basexapi/EncryptedEntityXApi.d.ts +52 -4
  229. package/icc-x-api/basexapi/EncryptedEntityXApi.js.map +1 -1
  230. package/icc-x-api/crypto/AccessControlKeysHeadersProvider.d.ts +2 -0
  231. package/icc-x-api/crypto/AccessControlKeysHeadersProvider.js +13 -4
  232. package/icc-x-api/crypto/AccessControlKeysHeadersProvider.js.map +1 -1
  233. package/icc-x-api/crypto/AccessControlSecretUtils.d.ts +1 -0
  234. package/icc-x-api/crypto/AccessControlSecretUtils.js +11 -0
  235. package/icc-x-api/crypto/AccessControlSecretUtils.js.map +1 -1
  236. package/icc-x-api/crypto/BaseExchangeDataManager.d.ts +1 -1
  237. package/icc-x-api/crypto/BaseExchangeDataManager.js +1 -1
  238. package/icc-x-api/crypto/BaseExchangeDataManager.js.map +1 -1
  239. package/icc-x-api/crypto/DelegationsDeAnonymization.d.ts +44 -0
  240. package/icc-x-api/crypto/DelegationsDeAnonymization.js +235 -0
  241. package/icc-x-api/crypto/DelegationsDeAnonymization.js.map +1 -0
  242. package/icc-x-api/crypto/ExchangeDataManager.d.ts +3 -1
  243. package/icc-x-api/crypto/ExchangeDataManager.js +27 -19
  244. package/icc-x-api/crypto/ExchangeDataManager.js.map +1 -1
  245. package/icc-x-api/crypto/ExchangeDataMapManager.d.ts +1 -1
  246. package/icc-x-api/crypto/ExchangeDataMapManager.js.map +1 -1
  247. package/icc-x-api/crypto/ExtendedApisUtils.d.ts +0 -10
  248. package/icc-x-api/crypto/ExtendedApisUtils.js.map +1 -1
  249. package/icc-x-api/crypto/ExtendedApisUtilsImpl.d.ts +0 -7
  250. package/icc-x-api/crypto/ExtendedApisUtilsImpl.js +4 -7
  251. package/icc-x-api/crypto/ExtendedApisUtilsImpl.js.map +1 -1
  252. package/icc-x-api/crypto/LegacyDelegationSecurityMetadataDecryptor.d.ts +0 -6
  253. package/icc-x-api/crypto/LegacyDelegationSecurityMetadataDecryptor.js +0 -9
  254. package/icc-x-api/crypto/LegacyDelegationSecurityMetadataDecryptor.js.map +1 -1
  255. package/icc-x-api/crypto/SecureDelegationsManager.js.map +1 -1
  256. package/icc-x-api/crypto/SecureDelegationsSecurityMetadataDecryptor.d.ts +14 -5
  257. package/icc-x-api/crypto/SecureDelegationsSecurityMetadataDecryptor.js +44 -26
  258. package/icc-x-api/crypto/SecureDelegationsSecurityMetadataDecryptor.js.map +1 -1
  259. package/icc-x-api/crypto/SecurityMetadataDecryptor.d.ts +1 -18
  260. package/icc-x-api/crypto/SecurityMetadataDecryptor.js +4 -23
  261. package/icc-x-api/crypto/SecurityMetadataDecryptor.js.map +1 -1
  262. package/icc-x-api/crypto/UserSignatureKeysManager.d.ts +1 -1
  263. package/icc-x-api/crypto/UserSignatureKeysManager.js +2 -2
  264. package/icc-x-api/crypto/UserSignatureKeysManager.js.map +1 -1
  265. package/icc-x-api/filters/LatestMessageByHcPartyTransportGuidFilter.d.ts +8 -0
  266. package/icc-x-api/filters/LatestMessageByHcPartyTransportGuidFilter.js +13 -0
  267. package/icc-x-api/filters/LatestMessageByHcPartyTransportGuidFilter.js.map +1 -0
  268. package/icc-x-api/filters/MessageByHcPartyFilter.d.ts +7 -0
  269. package/icc-x-api/filters/MessageByHcPartyFilter.js +13 -0
  270. package/icc-x-api/filters/MessageByHcPartyFilter.js.map +1 -0
  271. package/icc-x-api/filters/MessageByHcPartyTransportGuidFilter.d.ts +8 -0
  272. package/icc-x-api/filters/MessageByHcPartyTransportGuidFilter.js +13 -0
  273. package/icc-x-api/filters/MessageByHcPartyTransportGuidFilter.js.map +1 -0
  274. package/icc-x-api/filters/TopicByHcPartyFilter.d.ts +7 -0
  275. package/icc-x-api/filters/TopicByHcPartyFilter.js +13 -0
  276. package/icc-x-api/filters/TopicByHcPartyFilter.js.map +1 -0
  277. package/icc-x-api/filters/TopicByParticipantFilter.d.ts +7 -0
  278. package/icc-x-api/filters/TopicByParticipantFilter.js +13 -0
  279. package/icc-x-api/filters/TopicByParticipantFilter.js.map +1 -0
  280. package/icc-x-api/filters/filters.d.ts +5 -0
  281. package/icc-x-api/filters/filters.js +5 -0
  282. package/icc-x-api/filters/filters.js.map +1 -1
  283. package/icc-x-api/icc-accesslog-x-api.d.ts +3 -1
  284. package/icc-x-api/icc-accesslog-x-api.js +7 -3
  285. package/icc-x-api/icc-accesslog-x-api.js.map +1 -1
  286. package/icc-x-api/icc-calendar-item-x-api.d.ts +3 -1
  287. package/icc-x-api/icc-calendar-item-x-api.js +7 -3
  288. package/icc-x-api/icc-calendar-item-x-api.js.map +1 -1
  289. package/icc-x-api/icc-classification-x-api.d.ts +3 -1
  290. package/icc-x-api/icc-classification-x-api.js +7 -3
  291. package/icc-x-api/icc-classification-x-api.js.map +1 -1
  292. package/icc-x-api/icc-contact-x-api.d.ts +3 -1
  293. package/icc-x-api/icc-contact-x-api.js +8 -4
  294. package/icc-x-api/icc-contact-x-api.js.map +1 -1
  295. package/icc-x-api/icc-crypto-x-api.d.ts +7 -1
  296. package/icc-x-api/icc-crypto-x-api.js +8 -1
  297. package/icc-x-api/icc-crypto-x-api.js.map +1 -1
  298. package/icc-x-api/icc-document-x-api.d.ts +3 -1
  299. package/icc-x-api/icc-document-x-api.js +8 -4
  300. package/icc-x-api/icc-document-x-api.js.map +1 -1
  301. package/icc-x-api/icc-form-x-api.d.ts +3 -1
  302. package/icc-x-api/icc-form-x-api.js +7 -3
  303. package/icc-x-api/icc-form-x-api.js.map +1 -1
  304. package/icc-x-api/icc-helement-x-api.d.ts +4 -2
  305. package/icc-x-api/icc-helement-x-api.js +8 -8
  306. package/icc-x-api/icc-helement-x-api.js.map +1 -1
  307. package/icc-x-api/icc-invoice-x-api.d.ts +3 -1
  308. package/icc-x-api/icc-invoice-x-api.js +7 -3
  309. package/icc-x-api/icc-invoice-x-api.js.map +1 -1
  310. package/icc-x-api/icc-maintenance-task-x-api.d.ts +8 -4
  311. package/icc-x-api/icc-maintenance-task-x-api.js +14 -4
  312. package/icc-x-api/icc-maintenance-task-x-api.js.map +1 -1
  313. package/icc-x-api/icc-message-x-api.d.ts +24 -6
  314. package/icc-x-api/icc-message-x-api.js +66 -6
  315. package/icc-x-api/icc-message-x-api.js.map +1 -1
  316. package/icc-x-api/icc-patient-x-api.d.ts +3 -1
  317. package/icc-x-api/icc-patient-x-api.js +7 -3
  318. package/icc-x-api/icc-patient-x-api.js.map +1 -1
  319. package/icc-x-api/icc-receipt-x-api.d.ts +3 -1
  320. package/icc-x-api/icc-receipt-x-api.js +7 -3
  321. package/icc-x-api/icc-receipt-x-api.js.map +1 -1
  322. package/icc-x-api/icc-time-table-x-api.d.ts +3 -1
  323. package/icc-x-api/icc-time-table-x-api.js +7 -3
  324. package/icc-x-api/icc-time-table-x-api.js.map +1 -1
  325. package/icc-x-api/icc-topic-x-api.d.ts +191 -0
  326. package/icc-x-api/icc-topic-x-api.js +307 -0
  327. package/icc-x-api/icc-topic-x-api.js.map +1 -0
  328. package/icc-x-api/index.d.ts +17 -0
  329. package/icc-x-api/index.js +104 -70
  330. package/icc-x-api/index.js.map +1 -1
  331. package/icc-x-api/maintenance/KeyPairUpdateRequest.d.ts +1 -1
  332. package/icc-x-api/storage/KeyStorageImpl.d.ts +1 -0
  333. package/icc-x-api/storage/KeyStorageImpl.js +20 -12
  334. package/icc-x-api/storage/KeyStorageImpl.js.map +1 -1
  335. package/icc-x-api/utils/EntityWithDelegationTypeName.d.ts +1 -1
  336. package/icc-x-api/utils/EntityWithDelegationTypeName.js.map +1 -1
  337. package/icc-x-api/utils/websocket.d.ts +4 -0
  338. package/icc-x-api/utils/websocket.js +8 -0
  339. package/icc-x-api/utils/websocket.js.map +1 -1
  340. package/package.json +1 -1
  341. package/icc-api/api/IccDocumentTemplateApi.d.ts +0 -106
  342. package/icc-api/api/IccDocumentTemplateApi.js +0 -223
  343. package/icc-api/api/IccDocumentTemplateApi.js.map +0 -1
  344. package/icc-api/model/ExchangeData.js.map +0 -1
  345. package/icc-api/model/ExchangeDataMap.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Patient.js","sourceRoot":"","sources":["../../../icc-api/model/Patient.ts"],"names":[],"mappings":";;;AA0BA;;GAEG;AACH,+CAAuC;AAGvC,MAAa,OAAO;IAClB,YAAY,IAAgB;QAySnB,UAAK,GAAkC,SAAS,CAAA;QAxSvD,IAAI,WAAW,GAA8B,EAAE,CAAA;QAC/C,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE;YAClB,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,EAAE;gBACpC,WAAW,CAAC,OAAO,GAAG,IAAA,qBAAO,EAAC,IAAI,CAAC,OAAO,CAAC,CAAA;aAC5C;iBAAM,IAAI,IAAI,CAAC,OAAO,YAAY,WAAW,IAAI,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;gBAClF,WAAW,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;aACnC;iBAAM;gBACL,MAAM,IAAI,KAAK,CAAC,6BAA6B,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC,CAAA;aACpE;SACF;QACD,MAAM,CAAC,MAAM,CAAC,IAAe,EAAE,IAAI,EAAE,WAAW,CAAC,CAAA;IACnD,CAAC;CA8RF;AA3SD,0BA2SC;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'\nimport { Annotation } from './Annotation'\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'\nimport { SecurityMetadata } from './SecurityMetadata'\nimport { EntityWithDelegationTypeName } from '../../icc-x-api/utils/EntityWithDelegationTypeName'\nexport class Patient {\n constructor(json: JSON | any) {\n let pictureData: { picture?: ArrayBuffer } = {}\n if (!!json.picture) {\n if (typeof json.picture === 'string') {\n pictureData.picture = b64_2ab(json.picture)\n } else if (json.picture instanceof ArrayBuffer || ArrayBuffer.isView(json.picture)) {\n pictureData.picture = json.picture\n } else {\n throw new Error(`Invalid type for picture: ${typeof json.picture}`)\n }\n }\n Object.assign(this as Patient, json, pictureData)\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 * Deactivation date of the patient\n */\n deactivationDate?: number\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 * @deprecated use notes instead with proper tags\n */\n note?: string\n /**\n * An administrative note, not confidential.\n * @deprecated use notes instead with proper tags\n */\n administrativeNote?: string\n /**\n * A list of localized notes.\n */\n notes?: Annotation[]\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: { myPubKey1: aesExKey_for_this, delegatePubKey1: aesExKey_for_delegate } } }\n */\n aesExchangeKeys?: { [key: string]: { [key: string]: { [key: string]: 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 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 public keys of this actor that are generates using the OAEP Sha-256 standard\n */\n publicKeysForOaepWithSha256?: 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 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 securityMetadata?: SecurityMetadata\n readonly _type?: EntityWithDelegationTypeName = 'Patient'\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":";;;AA0BA;;GAEG;AACH,+CAAuC;AAGvC,MAAa,OAAO;IAClB,YAAY,IAAgB;QAC1B,IAAI,WAAW,GAA8B,EAAE,CAAA;QAC/C,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE;YAClB,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,EAAE;gBACpC,WAAW,CAAC,OAAO,GAAG,IAAA,qBAAO,EAAC,IAAI,CAAC,OAAO,CAAC,CAAA;aAC5C;iBAAM,IAAI,IAAI,CAAC,OAAO,YAAY,WAAW,IAAI,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;gBAClF,WAAW,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;aACnC;iBAAM;gBACL,MAAM,IAAI,KAAK,CAAC,6BAA6B,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC,CAAA;aACpE;SACF;QACD,MAAM,CAAC,MAAM,CAAC,IAAe,EAAE,IAAI,EAAE,WAAW,CAAC,CAAA;IACnD,CAAC;CA8RF;AA3SD,0BA2SC;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'\nimport { Annotation } from './Annotation'\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'\nimport { SecurityMetadata } from './SecurityMetadata'\nimport { EntityWithDelegationTypeName } from '../../icc-x-api/utils/EntityWithDelegationTypeName'\nexport class Patient {\n constructor(json: JSON | any) {\n let pictureData: { picture?: ArrayBuffer } = {}\n if (!!json.picture) {\n if (typeof json.picture === 'string') {\n pictureData.picture = b64_2ab(json.picture)\n } else if (json.picture instanceof ArrayBuffer || ArrayBuffer.isView(json.picture)) {\n pictureData.picture = json.picture\n } else {\n throw new Error(`Invalid type for picture: ${typeof json.picture}`)\n }\n }\n Object.assign(this as Patient, json, pictureData)\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 * Deactivation date of the patient\n */\n deactivationDate?: number\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 * @deprecated use notes instead with proper tags\n */\n note?: string\n /**\n * An administrative note, not confidential.\n * @deprecated use notes instead with proper tags\n */\n administrativeNote?: string\n /**\n * A list of localized notes.\n */\n notes?: Annotation[]\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: { myPubKey1: aesExKey_for_this, delegatePubKey1: aesExKey_for_delegate } } }\n */\n aesExchangeKeys?: { [key: string]: { [key: string]: { [key: string]: 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 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 public keys of this actor that are generates using the OAEP Sha-256 standard\n */\n publicKeysForOaepWithSha256?: 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 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 securityMetadata?: SecurityMetadata\n \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"]}
@@ -12,7 +12,6 @@
12
12
  import { CodeStub } from './CodeStub';
13
13
  import { Delegation } from './Delegation';
14
14
  import { SecurityMetadata } from './SecurityMetadata';
15
- import { EntityWithDelegationTypeName } from '../../icc-x-api/utils/EntityWithDelegationTypeName';
16
15
  export declare class Receipt {
17
16
  constructor(json: JSON | any);
18
17
  id?: string;
@@ -87,5 +86,4 @@ export declare class Receipt {
87
86
  */
88
87
  encryptedSelf?: string;
89
88
  securityMetadata?: SecurityMetadata;
90
- readonly _type?: EntityWithDelegationTypeName;
91
89
  }
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Receipt = void 0;
4
4
  class Receipt {
5
5
  constructor(json) {
6
- this._type = 'Receipt';
7
6
  Object.assign(this, json);
8
7
  }
9
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Receipt.js","sourceRoot":"","sources":["../../../icc-api/model/Receipt.ts"],"names":[],"mappings":";;;AAgBA,MAAa,OAAO;IAClB,YAAY,IAAgB;QAoEnB,UAAK,GAAkC,SAAS,CAAA;QAnEvD,MAAM,CAAC,MAAM,CAAC,IAAe,EAAE,IAAI,CAAC,CAAA;IACtC,CAAC;CAmEF;AAtED,0BAsEC","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 { SecurityMetadata } from './SecurityMetadata'\nimport { EntityWithDelegationTypeName } from '../../icc-x-api/utils/EntityWithDelegationTypeName'\n\nexport class Receipt {\n constructor(json: JSON | any) {\n Object.assign(this as Receipt, json)\n }\n\n id?: string\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 attachmentIds?: { [key: string]: string }\n references?: Array<string>\n documentId?: string\n category?: string\n subCategory?: 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 securityMetadata?: SecurityMetadata\n readonly _type?: EntityWithDelegationTypeName = 'Receipt'\n}\n"]}
1
+ {"version":3,"file":"Receipt.js","sourceRoot":"","sources":["../../../icc-api/model/Receipt.ts"],"names":[],"mappings":";;;AAgBA,MAAa,OAAO;IAClB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAe,EAAE,IAAI,CAAC,CAAA;IACtC,CAAC;CAmEF;AAtED,0BAsEC","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 { SecurityMetadata } from './SecurityMetadata'\nimport { EntityWithDelegationTypeName } from '../../icc-x-api/utils/EntityWithDelegationTypeName'\n\nexport class Receipt {\n constructor(json: JSON | any) {\n Object.assign(this as Receipt, json)\n }\n\n id?: string\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 attachmentIds?: { [key: string]: string }\n references?: Array<string>\n documentId?: string\n category?: string\n subCategory?: 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 securityMetadata?: SecurityMetadata\n \n}\n"]}
@@ -0,0 +1,11 @@
1
+ export declare class Role {
2
+ constructor(json: JSON | any);
3
+ id?: string;
4
+ rev?: string;
5
+ /**
6
+ * hard delete (unix epoch in ms) timestamp of the object. Filled automatically when deletePatient is called.
7
+ */
8
+ deletionDate?: number;
9
+ name?: string;
10
+ permissions?: Array<string>;
11
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Role = void 0;
4
+ class Role {
5
+ constructor(json) {
6
+ Object.assign(this, json);
7
+ }
8
+ }
9
+ exports.Role = Role;
10
+ //# sourceMappingURL=Role.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../icc-api/model/Role.ts"],"names":[],"mappings":";;;AAAA,MAAa,IAAI;IACf,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAY,EAAE,IAAI,CAAC,CAAA;IACnC,CAAC;CAUF;AAbD,oBAaC","sourcesContent":["export class Role {\n constructor(json: JSON | any) {\n Object.assign(this as Role, 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 name?: string\n permissions?: Array<string>\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import { RoleSourceEnum } from './RoleSourceEnum';
2
+ export declare class RoleConfiguration {
3
+ constructor(json: JSON | any);
4
+ source?: RoleSourceEnum;
5
+ roles?: Array<string>;
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RoleConfiguration = void 0;
4
+ class RoleConfiguration {
5
+ constructor(json) {
6
+ Object.assign(this, json);
7
+ }
8
+ }
9
+ exports.RoleConfiguration = RoleConfiguration;
10
+ //# sourceMappingURL=RoleConfiguration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RoleConfiguration.js","sourceRoot":"","sources":["../../../icc-api/model/RoleConfiguration.ts"],"names":[],"mappings":";;;AAEA,MAAa,iBAAiB;IAC5B,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAyB,EAAE,IAAI,CAAC,CAAA;IAChD,CAAC;CAIF;AAPD,8CAOC","sourcesContent":["import { RoleSourceEnum } from './RoleSourceEnum'\n\nexport class RoleConfiguration {\n constructor(json: JSON | any) {\n Object.assign(this as RoleConfiguration, json)\n }\n\n source?: RoleSourceEnum\n roles?: Array<string>\n}\n"]}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Represent where the default roles for a certain type of user come from.
3
+ * Default: the roles are the ones defined by iCure.
4
+ * Inherited: the roles are defined in a supergroup of the current group.
5
+ * Configuration: the roles are defined in the current group.
6
+ */
7
+ export declare enum RoleSourceEnum {
8
+ Default = "DEFAULT",
9
+ Inherited = "INHERITED",
10
+ Configuration = "CONFIGURATION"
11
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RoleSourceEnum = void 0;
4
+ /**
5
+ * Represent where the default roles for a certain type of user come from.
6
+ * Default: the roles are the ones defined by iCure.
7
+ * Inherited: the roles are defined in a supergroup of the current group.
8
+ * Configuration: the roles are defined in the current group.
9
+ */
10
+ var RoleSourceEnum;
11
+ (function (RoleSourceEnum) {
12
+ RoleSourceEnum["Default"] = "DEFAULT";
13
+ RoleSourceEnum["Inherited"] = "INHERITED";
14
+ RoleSourceEnum["Configuration"] = "CONFIGURATION";
15
+ })(RoleSourceEnum = exports.RoleSourceEnum || (exports.RoleSourceEnum = {}));
16
+ //# sourceMappingURL=RoleSourceEnum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RoleSourceEnum.js","sourceRoot":"","sources":["../../../icc-api/model/RoleSourceEnum.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,yCAAuB,CAAA;IACvB,iDAA+B,CAAA;AACjC,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB","sourcesContent":["/**\n * Represent where the default roles for a certain type of user come from.\n * Default: the roles are the ones defined by iCure.\n * Inherited: the roles are defined in a supergroup of the current group.\n * Configuration: the roles are defined in the current group.\n */\nexport enum RoleSourceEnum {\n Default = 'DEFAULT',\n Inherited = 'INHERITED',\n Configuration = 'CONFIGURATION',\n}\n"]}
@@ -13,7 +13,6 @@ import { CodeStub } from './CodeStub';
13
13
  import { Delegation } from './Delegation';
14
14
  import { TimeTableItem } from './TimeTableItem';
15
15
  import { SecurityMetadata } from './SecurityMetadata';
16
- import { EntityWithDelegationTypeName } from '../../icc-x-api/utils/EntityWithDelegationTypeName';
17
16
  export declare class TimeTable {
18
17
  constructor(json: JSON | any);
19
18
  id?: string;
@@ -86,5 +85,4 @@ export declare class TimeTable {
86
85
  */
87
86
  encryptedSelf?: string;
88
87
  securityMetadata?: SecurityMetadata;
89
- readonly _type?: EntityWithDelegationTypeName;
90
88
  }
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TimeTable = void 0;
4
4
  class TimeTable {
5
5
  constructor(json) {
6
- this._type = 'TimeTable';
7
6
  Object.assign(this, json);
8
7
  }
9
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TimeTable.js","sourceRoot":"","sources":["../../../icc-api/model/TimeTable.ts"],"names":[],"mappings":";;;AAiBA,MAAa,SAAS;IACpB,YAAY,IAAgB;QAoEnB,UAAK,GAAkC,WAAW,CAAA;QAnEzD,MAAM,CAAC,MAAM,CAAC,IAAiB,EAAE,IAAI,CAAC,CAAA;IACxC,CAAC;CAmEF;AAtED,8BAsEC","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 { TimeTableItem } from './TimeTableItem'\nimport { SecurityMetadata } from './SecurityMetadata'\nimport { EntityWithDelegationTypeName } from '../../icc-x-api/utils/EntityWithDelegationTypeName'\n\nexport class TimeTable {\n constructor(json: JSON | any) {\n Object.assign(this as TimeTable, json)\n }\n\n id?: string\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 name?: string\n agendaId?: string\n startTime?: number\n endTime?: number\n items?: Array<TimeTableItem>\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 securityMetadata?: SecurityMetadata\n readonly _type?: EntityWithDelegationTypeName = 'TimeTable'\n}\n"]}
1
+ {"version":3,"file":"TimeTable.js","sourceRoot":"","sources":["../../../icc-api/model/TimeTable.ts"],"names":[],"mappings":";;;AAiBA,MAAa,SAAS;IACpB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAiB,EAAE,IAAI,CAAC,CAAA;IACxC,CAAC;CAmEF;AAtED,8BAsEC","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 { TimeTableItem } from './TimeTableItem'\nimport { SecurityMetadata } from './SecurityMetadata'\nimport { EntityWithDelegationTypeName } from '../../icc-x-api/utils/EntityWithDelegationTypeName'\n\nexport class TimeTable {\n constructor(json: JSON | any) {\n Object.assign(this as TimeTable, json)\n }\n\n id?: string\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 name?: string\n agendaId?: string\n startTime?: number\n endTime?: number\n items?: Array<TimeTableItem>\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 securityMetadata?: SecurityMetadata\n \n}\n"]}
@@ -0,0 +1,95 @@
1
+ import { CodeStub } from "./CodeStub";
2
+ import { SecurityMetadata } from "./SecurityMetadata";
3
+ import { Delegation } from "./Delegation";
4
+ export declare class Topic {
5
+ constructor(json: JSON | any);
6
+ /**
7
+ * The id of the topic. We encourage using either a v4 UUID or a HL7 Id.
8
+ */
9
+ id?: string;
10
+ /**
11
+ * The revision of the topic in the database, used for conflict management / optimistic locking.
12
+ */
13
+ rev?: string;
14
+ /**
15
+ * The timestamp (unix epoch in ms) of creation of this entity, will be filled automatically if missing. Not enforced by the application server.
16
+ */
17
+ created?: number;
18
+ /**
19
+ * The timestamp (unix epoch in ms) of the latest modification of this entity, will be filled automatically if missing. Not enforced by the application server.
20
+ */
21
+ modified?: number;
22
+ /**
23
+ * Name/basic description of the topic
24
+ */
25
+ description?: string;
26
+ /**
27
+ * 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.
28
+ */
29
+ tags?: Array<CodeStub>;
30
+ /**
31
+ * 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
32
+ */
33
+ codes?: Array<CodeStub>;
34
+ /**
35
+ * The id of the User that has created this entity, will be filled automatically if missing. Not enforced by the application server.
36
+ */
37
+ author?: string;
38
+ /**
39
+ * The id of the HealthcareParty that is responsible for this entity, will be filled automatically if missing. Not enforced by the application server.
40
+ */
41
+ responsible?: string;
42
+ /**
43
+ * The id of the medical location where this entity was created.
44
+ */
45
+ medicalLocationId?: string;
46
+ /**
47
+ * Soft delete (unix epoch in ms) timestamp of the object.
48
+ */
49
+ endOfLife?: number;
50
+ /**
51
+ * hard delete (unix epoch in ms) timestamp of the object. Filled automatically when deletePatient is called.
52
+ */
53
+ deletionDate?: number;
54
+ /**
55
+ * List of participants to the topic and their role in the topic {@link TopicRole}
56
+ *
57
+ * This should not be used directly, in the future the format may change. Make sure to only edit this through methods of {@link IccTopicXApi}.
58
+ */
59
+ activeParticipants?: {
60
+ [key: string]: TopicRole;
61
+ };
62
+ linkedServices?: string[];
63
+ linkedHealthElements?: string[];
64
+ securityMetadata?: SecurityMetadata;
65
+ /**
66
+ * 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.
67
+ */
68
+ secretForeignKeys?: Array<string>;
69
+ /**
70
+ * 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.
71
+ */
72
+ cryptedForeignKeys?: {
73
+ [key: string]: Array<Delegation>;
74
+ };
75
+ /**
76
+ * 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
77
+ */
78
+ delegations?: {
79
+ [key: string]: Array<Delegation>;
80
+ };
81
+ /**
82
+ * 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 */
83
+ encryptionKeys?: {
84
+ [key: string]: Array<Delegation>;
85
+ };
86
+ /**
87
+ * The base64 encoded data of this object, formatted as JSON and encrypted in AES using the random master key from encryptionKeys.
88
+ */
89
+ encryptedSelf?: string;
90
+ }
91
+ export declare enum TopicRole {
92
+ PARTICIPANT = "PARTICIPANT",
93
+ ADMIN = "ADMIN",
94
+ OWNER = "OWNER"
95
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TopicRole = exports.Topic = void 0;
4
+ class Topic {
5
+ constructor(json) {
6
+ Object.assign(this, json);
7
+ }
8
+ }
9
+ exports.Topic = Topic;
10
+ var TopicRole;
11
+ (function (TopicRole) {
12
+ TopicRole["PARTICIPANT"] = "PARTICIPANT";
13
+ TopicRole["ADMIN"] = "ADMIN";
14
+ TopicRole["OWNER"] = "OWNER";
15
+ })(TopicRole = exports.TopicRole || (exports.TopicRole = {}));
16
+ //# sourceMappingURL=Topic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Topic.js","sourceRoot":"","sources":["../../../icc-api/model/Topic.ts"],"names":[],"mappings":";;;AAKA,MAAa,KAAK;IACd,YAAY,IAAgB;QACxB,MAAM,CAAC,MAAM,CAAC,IAAa,EAAE,IAAI,CAAC,CAAA;IACtC,CAAC;CAmFJ;AAtFD,sBAsFC;AAED,IAAY,SAIX;AAJD,WAAY,SAAS;IACjB,wCAA2B,CAAA;IAC3B,4BAAe,CAAA;IACf,4BAAe,CAAA;AACnB,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB","sourcesContent":["import {CodeStub} from \"./CodeStub\";\nimport {SecurityMetadata} from \"./SecurityMetadata\";\nimport {Delegation} from \"./Delegation\";\nimport {EntityWithDelegationTypeName} from \"../../icc-x-api/utils/EntityWithDelegationTypeName\";\n\nexport class Topic {\n constructor(json: JSON | any) {\n Object.assign(this as Topic, json)\n }\n\n /**\n * The id of the topic. We encourage using either a v4 UUID or a HL7 Id.\n */\n id?: string\n /**\n * The revision of the topic 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 timestamp (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 * Name/basic description of the topic\n */\n description?: 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 * 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 * 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 * List of participants to the topic and their role in the topic {@link TopicRole}\n *\n * This should not be used directly, in the future the format may change. Make sure to only edit this through methods of {@link IccTopicXApi}.\n */\n activeParticipants?: { [key: string]: TopicRole }\n\n linkedServices?: string[]\n\n linkedHealthElements?: string[]\n\n securityMetadata?: SecurityMetadata\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\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 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}\n\nexport enum TopicRole {\n PARTICIPANT = 'PARTICIPANT',\n ADMIN = 'ADMIN',\n OWNER = 'OWNER',\n}\n"]}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Represents the type of a owner
3
+ */
4
+ export declare enum UserTypeEnum {
5
+ Patient = "PATIENT",
6
+ Hcp = "HCP",
7
+ Device = "DEVICE",
8
+ User = "USER"
9
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserTypeEnum = void 0;
4
+ /**
5
+ * Represents the type of a owner
6
+ */
7
+ var UserTypeEnum;
8
+ (function (UserTypeEnum) {
9
+ UserTypeEnum["Patient"] = "PATIENT";
10
+ UserTypeEnum["Hcp"] = "HCP";
11
+ UserTypeEnum["Device"] = "DEVICE";
12
+ UserTypeEnum["User"] = "USER";
13
+ })(UserTypeEnum = exports.UserTypeEnum || (exports.UserTypeEnum = {}));
14
+ //# sourceMappingURL=UserTypeEnum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserTypeEnum.js","sourceRoot":"","sources":["../../../icc-api/model/UserTypeEnum.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,2BAAW,CAAA;IACX,iCAAiB,CAAA;IACjB,6BAAa,CAAA;AACf,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB","sourcesContent":["/**\n * Represents the type of a owner\n */\nexport enum UserTypeEnum {\n Patient = 'PATIENT',\n Hcp = 'HCP',\n Device = 'DEVICE',\n User = 'USER',\n}\n"]}
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @internal this entity is meant for internal use only
3
+ */
1
4
  export declare class ExchangeData {
2
5
  constructor(json: JSON | any);
3
6
  /**
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ExchangeData = void 0;
4
+ /**
5
+ * @internal this entity is meant for internal use only
6
+ */
4
7
  class ExchangeData {
5
8
  constructor(json) {
6
9
  if (!json.delegator || !json.delegate || !json.exchangeKey || !json.accessControlSecret || !json.signature)
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExchangeData.js","sourceRoot":"","sources":["../../../../icc-api/model/internal/ExchangeData.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAa,YAAY;IACvB,YAAY,IAAgB;QAC1B,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,mBAAmB,IAAI,CAAC,IAAI,CAAC,SAAS;YACxG,MAAM,IAAI,KAAK,CAAC,uDAAuD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAChG,MAAM,CAAC,MAAM,CAAC,IAAoB,EAAE,IAAI,CAAC,CAAA;IAC3C,CAAC;CAsDF;AA3DD,oCA2DC","sourcesContent":["/**\n * @internal this entity is meant for internal use only\n */\nexport class ExchangeData {\n constructor(json: JSON | any) {\n if (!json.delegator || !json.delegate || !json.exchangeKey || !json.accessControlSecret || !json.signature)\n throw new Error(`Exchange data json is missing required properties.\\n${JSON.stringify(json)}`)\n Object.assign(this as ExchangeData, json)\n }\n\n /**\n * the Id of the exchange data. We encourage using either a v4 UUID or a HL7 Id.\n */\n id?: string\n /**\n * the revision of the exchange data in the database, used for conflict management / optimistic locking.\n */\n rev?: string\n /**\n * ID of the data owner which created this exchange data, in order to share some data with the [delegate].\n */\n delegator!: string\n /**\n * ID of a data owner which can use this exchange data to access data shared with him by [delegator].\n */\n delegate!: string\n /**\n * Aes key to use for sharing data from the delegator to the delegate, encrypted with the public keys of both delegate\n * and delegator. This key should never be sent decrypted to the server, as it allows to read medical data.\n */\n exchangeKey!: { [keyPairFingerprint: string]: string }\n /**\n * Key used for access control to data shared from the delegator to the delegate, encrypted with the public keys of both\n * delegate and delegator.\n *\n * This key will be used by the client to calculate the keys of [HasSecureDelegationsAccessControl.securityMetadata] which\n * allows to implement a form of access control where the identity of data owners with access to a specific entity can't be\n * deduced from the database alone. This is useful for example to allow patients to access their medical data without creating\n * a deducible link between the patient and the medical data in the database.\n *\n * There are no strict requirements on how the client should use this secret to create the security metadata key, but for\n * authentication the client must be able to provide a 128 bit long access control key (see [DataOwnerAuthenticationDetails.accessControlKeys])\n * which once hashed using sha256 will give the key of the security metadata.\n * However, in order to avoid introducing undesired links between entities which could be detrimental to the patients privacy\n * the access control keys should be created also using information on the entity class and confidentiality level of information\n * in applications where hcps share information using a hierarchical structure.\n * ```\n * accessControlKey = sha256Bytes(accessControlSecret + entityClass + confidentialityLevel).take(16)\n * securityMetadataKey = sha256Hex(accessControlKey)\n * ```\n */\n accessControlSecret!: { [keyPairFingerprint: string]: string }\n /**\n * Signature to ensure the key data has not been tampered with: when creating new exchange data the delegator will hash\n * the content of [exchangeKey] and [accessControlSecret] then use his trusted private keys to sign this hash. This field\n * will contain the signature by fingerprint of the public key to use for verification.\n */\n signature!: { [keyPairFingerprint: string]: string }\n /**\n * hard delete (unix epoch in ms) timestamp of the object. Filled automatically when the delete method is called.\n */\n deletionDate?: number\n}\n"]}
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @internal this entity is meant for internal use only
3
+ */
1
4
  export declare class ExchangeDataMap {
2
5
  constructor(json: JSON | any);
3
6
  /**
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ExchangeDataMap = void 0;
4
+ /**
5
+ * @internal this entity is meant for internal use only
6
+ */
4
7
  class ExchangeDataMap {
5
8
  constructor(json) {
6
9
  Object.assign(this, json);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExchangeDataMap.js","sourceRoot":"","sources":["../../../../icc-api/model/internal/ExchangeDataMap.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAa,eAAe;IAC1B,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAuB,EAAE,IAAI,CAAC,CAAA;IAC9C,CAAC;CAkBF;AArBD,0CAqBC","sourcesContent":["/**\n * @internal this entity is meant for internal use only\n */\nexport class ExchangeDataMap {\n constructor(json: JSON | any) {\n Object.assign(this as ExchangeDataMap, json)\n }\n\n /**\n * the Id of the exchange data. It is the hex-encoded string of the hashed version of the access control key\n */\n id!: string\n /**\n * the revision of the exchange data in the database, used for conflict management / optimistic locking.\n */\n rev?: string\n /**\n * a map where each key is the fingerprint of a public key and the value is an exchange data id, encrypted with the private key corresponding to that public key.\n */\n encryptedExchangeDataIds!: { [keyPairFingerprint: string]: string }\n /**\n * hard delete (unix epoch in ms) timestamp of the object. Filled automatically when the delete method is called.\n */\n deletionDate?: number\n}\n"]}
@@ -0,0 +1,14 @@
1
+ import { SecurityMetadata } from '../SecurityMetadata';
2
+ /**
3
+ * @internal this entity is meant for internal use only
4
+ */
5
+ export declare class SecureDelegationKeyMap {
6
+ constructor(json: JSON | any);
7
+ id: string;
8
+ rev?: string;
9
+ delegationKey: string;
10
+ delegator?: string;
11
+ delegate?: string;
12
+ encryptedSelf?: string;
13
+ securityMetadata?: SecurityMetadata;
14
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SecureDelegationKeyMap = void 0;
4
+ /**
5
+ * @internal this entity is meant for internal use only
6
+ */
7
+ class SecureDelegationKeyMap {
8
+ constructor(json) {
9
+ Object.assign(this, json);
10
+ }
11
+ }
12
+ exports.SecureDelegationKeyMap = SecureDelegationKeyMap;
13
+ //# sourceMappingURL=SecureDelegationKeyMap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SecureDelegationKeyMap.js","sourceRoot":"","sources":["../../../../icc-api/model/internal/SecureDelegationKeyMap.ts"],"names":[],"mappings":";;;AAIA;;GAEG;AACH,MAAa,sBAAsB;IACjC,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAA8B,EAAE,IAAI,CAAC,CAAA;IACrD,CAAC;CASF;AAZD,wDAYC","sourcesContent":["import { SecurityMetadata } from '../SecurityMetadata'\nimport { b64_2ab } from '../ModelHelper'\nimport { Patient } from '../Patient'\n\n/**\n * @internal this entity is meant for internal use only\n */\nexport class SecureDelegationKeyMap {\n constructor(json: JSON | any) {\n Object.assign(this as SecureDelegationKeyMap, json)\n }\n\n id!: string\n rev?: string\n delegationKey!: string\n delegator?: string\n delegate?: string\n encryptedSelf?: string\n securityMetadata?: SecurityMetadata\n}\n"]}
@@ -14,6 +14,7 @@ import { Patient } from './Patient';
14
14
  import { Delegation } from './Delegation';
15
15
  import { SecurityMetadata } from './SecurityMetadata';
16
16
  import { IcureStub } from './IcureStub';
17
+ import { Topic } from './Topic';
17
18
  export * from './AbstractFilterCode';
18
19
  export * from './AbstractFilterContact';
19
20
  export * from './AbstractFilterDevice';
@@ -153,6 +154,7 @@ export * from './Medication';
153
154
  export * from './MedicationSchemeExportInfo';
154
155
  export * from './Medicinalproduct';
155
156
  export * from './Message';
157
+ export * from './MessageAttachment';
156
158
  export * from './MessageReadStatus';
157
159
  export * from './MessageWithBatch';
158
160
  export * from './MessagesReadStatusUpdate';
@@ -184,6 +186,7 @@ export * from './PaginatedListPatient';
184
186
  export * from './PaginatedListService';
185
187
  export * from './PaginatedListString';
186
188
  export * from './PaginatedListTarification';
189
+ export * from './PaginatedListTopic';
187
190
  export * from './PaginatedListUser';
188
191
  export * from './PaginatedListVmp';
189
192
  export * from './PaginatedListVmpGroup';
@@ -226,6 +229,9 @@ export * from './ReplicatorDocument';
226
229
  export * from './ReplicatorResponse';
227
230
  export * from './ResultInfo';
228
231
  export * from './Right';
232
+ export * from './Role';
233
+ export * from './RoleConfiguration';
234
+ export * from './RoleSourceEnum';
229
235
  export * from './RouteOfAdministration';
230
236
  export * from './SamText';
231
237
  export * from './SamVersion';
@@ -260,6 +266,7 @@ export * from './Unit';
260
266
  export * from './User';
261
267
  export * from './UserAndHealthcareParty';
262
268
  export * from './UserGroup';
269
+ export * from './UserTypeEnum';
263
270
  export * from './Valorisation';
264
271
  export * from './Verse';
265
272
  export * from './VirtualForm';
@@ -274,7 +281,10 @@ export * from './Wada';
274
281
  export * from './Weekday';
275
282
  export * from './SecurityMetadata';
276
283
  export * from './SecureDelegation';
277
- export type EncryptedEntity = AccessLog | Article | CalendarItem | Classification | Contact | Document | Form | HealthElement | Invoice | MaintenanceTask | Message | Patient | Receipt;
284
+ export * from './Topic';
285
+ export * from './Connection';
286
+ export * from './ISO639_1';
287
+ export type EncryptedEntity = AccessLog | Article | CalendarItem | Classification | Contact | Document | Form | HealthElement | Invoice | MaintenanceTask | Message | Patient | Receipt | Topic;
278
288
  export type EncryptedEntityStub = {
279
289
  id?: string;
280
290
  secretForeignKeys?: Array<string>;
@@ -153,6 +153,7 @@ __exportStar(require("./Medication"), exports);
153
153
  __exportStar(require("./MedicationSchemeExportInfo"), exports);
154
154
  __exportStar(require("./Medicinalproduct"), exports);
155
155
  __exportStar(require("./Message"), exports);
156
+ __exportStar(require("./MessageAttachment"), exports);
156
157
  __exportStar(require("./MessageReadStatus"), exports);
157
158
  __exportStar(require("./MessageWithBatch"), exports);
158
159
  __exportStar(require("./MessagesReadStatusUpdate"), exports);
@@ -184,6 +185,7 @@ __exportStar(require("./PaginatedListPatient"), exports);
184
185
  __exportStar(require("./PaginatedListService"), exports);
185
186
  __exportStar(require("./PaginatedListString"), exports);
186
187
  __exportStar(require("./PaginatedListTarification"), exports);
188
+ __exportStar(require("./PaginatedListTopic"), exports);
187
189
  __exportStar(require("./PaginatedListUser"), exports);
188
190
  __exportStar(require("./PaginatedListVmp"), exports);
189
191
  __exportStar(require("./PaginatedListVmpGroup"), exports);
@@ -226,6 +228,9 @@ __exportStar(require("./ReplicatorDocument"), exports);
226
228
  __exportStar(require("./ReplicatorResponse"), exports);
227
229
  __exportStar(require("./ResultInfo"), exports);
228
230
  __exportStar(require("./Right"), exports);
231
+ __exportStar(require("./Role"), exports);
232
+ __exportStar(require("./RoleConfiguration"), exports);
233
+ __exportStar(require("./RoleSourceEnum"), exports);
229
234
  __exportStar(require("./RouteOfAdministration"), exports);
230
235
  __exportStar(require("./SamText"), exports);
231
236
  __exportStar(require("./SamVersion"), exports);
@@ -260,6 +265,7 @@ __exportStar(require("./Unit"), exports);
260
265
  __exportStar(require("./User"), exports);
261
266
  __exportStar(require("./UserAndHealthcareParty"), exports);
262
267
  __exportStar(require("./UserGroup"), exports);
268
+ __exportStar(require("./UserTypeEnum"), exports);
263
269
  __exportStar(require("./Valorisation"), exports);
264
270
  __exportStar(require("./Verse"), exports);
265
271
  __exportStar(require("./VirtualForm"), exports);
@@ -274,4 +280,7 @@ __exportStar(require("./Wada"), exports);
274
280
  __exportStar(require("./Weekday"), exports);
275
281
  __exportStar(require("./SecurityMetadata"), exports);
276
282
  __exportStar(require("./SecureDelegation"), exports);
283
+ __exportStar(require("./Topic"), exports);
284
+ __exportStar(require("./Connection"), exports);
285
+ __exportStar(require("./ISO639_1"), exports);
277
286
  //# sourceMappingURL=models.js.map