@icure/cardinal-sdk 2.0.0-PREVIEW-18.1 → 2.0.0-PREVIEW-21

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 (384) hide show
  1. package/Kermit-kermit-core.mjs +45 -40
  2. package/Kermit-kermit.mjs +6 -6
  3. package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1577 -1577
  4. package/api/HealthcarePartyApi.d.mts +2 -0
  5. package/api/HealthcarePartyApiInGroup.d.mts +5 -0
  6. package/api/HealthcarePartyApiInGroup.mjs +1 -0
  7. package/api/RecoveryApi.d.mts +5 -1
  8. package/api.d.mts +1 -0
  9. package/api.mjs +1 -0
  10. package/bitops-library-bits.mjs +197 -0
  11. package/bitops-library-endian.mjs +117 -0
  12. package/cardinal-sdk-ts.d.mts +2 -2
  13. package/cardinal-sdk-ts.mjs +57007 -56794
  14. package/cardinal-sdk.mjs +120895 -120501
  15. package/core-library-digest.mjs +186 -0
  16. package/crypto/CryptoService.d.mts +17 -7
  17. package/error-library-error.mjs +42 -0
  18. package/hash-library-sha2.mjs +183 -0
  19. package/internal/BytesEncoding.d.mts +3 -0
  20. package/internal/BytesEncoding.mjs +99 -0
  21. package/internal/JsonDecodeUtils.d.mts +20 -0
  22. package/internal/JsonDecodeUtils.mjs +99 -0
  23. package/kerberus.mjs +557 -389
  24. package/kotlin-kotlin-stdlib.mjs +2445 -2713
  25. package/kotlinx-atomicfu.mjs +13 -13
  26. package/kotlinx-coroutines-core.mjs +2455 -2450
  27. package/kotlinx-io-kotlinx-io-bytestring.mjs +36 -36
  28. package/kotlinx-io-kotlinx-io-core.mjs +459 -459
  29. package/kotlinx-serialization-kotlinx-serialization-core.mjs +2029 -2029
  30. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1952 -1952
  31. package/kryptom-lib.mjs +3263 -1967
  32. package/ktor-ktor-client-content-negotiation.mjs +184 -184
  33. package/ktor-ktor-client-core.mjs +2713 -2713
  34. package/ktor-ktor-events.mjs +6 -6
  35. package/ktor-ktor-http-cio.mjs +481 -481
  36. package/ktor-ktor-http.mjs +693 -693
  37. package/ktor-ktor-io.mjs +963 -963
  38. package/ktor-ktor-serialization-kotlinx-json.mjs +7 -7
  39. package/ktor-ktor-serialization-kotlinx.mjs +238 -238
  40. package/ktor-ktor-serialization.mjs +109 -109
  41. package/ktor-ktor-utils.mjs +557 -557
  42. package/ktor-ktor-websockets.mjs +673 -673
  43. package/model/AccessLog.d.mts +5 -0
  44. package/model/AccessLog.mjs +168 -0
  45. package/model/Agenda.d.mts +2 -0
  46. package/model/Agenda.mjs +82 -0
  47. package/model/ApplicationSettings.d.mts +5 -0
  48. package/model/ApplicationSettings.mjs +140 -0
  49. package/model/BooleanResponse.d.mts +2 -0
  50. package/model/BooleanResponse.mjs +20 -0
  51. package/model/CalendarItem.d.mts +5 -0
  52. package/model/CalendarItem.mjs +290 -0
  53. package/model/CalendarItemType.d.mts +7 -0
  54. package/model/CalendarItemType.mjs +117 -0
  55. package/model/Classification.d.mts +5 -0
  56. package/model/Classification.mjs +148 -0
  57. package/model/Code.d.mts +2 -0
  58. package/model/Code.mjs +69 -0
  59. package/model/Contact.d.mts +5 -0
  60. package/model/Contact.mjs +218 -0
  61. package/model/CryptoActorStub.d.mts +2 -0
  62. package/model/CryptoActorStub.mjs +45 -0
  63. package/model/CryptoActorStubWithType.d.mts +2 -0
  64. package/model/CryptoActorStubWithType.mjs +25 -0
  65. package/model/DataOwnerRegistrationSuccess.d.mts +2 -0
  66. package/model/DataOwnerRegistrationSuccess.mjs +24 -0
  67. package/model/DataOwnerWithType.d.mts +7 -0
  68. package/model/DataOwnerWithType.mjs +80 -0
  69. package/model/DatabaseInitialisation.d.mts +2 -0
  70. package/model/DatabaseInitialisation.mjs +34 -0
  71. package/model/Device.d.mts +2 -0
  72. package/model/Device.mjs +99 -0
  73. package/model/Document.d.mts +5 -0
  74. package/model/Document.mjs +246 -0
  75. package/model/DocumentTemplate.d.mts +2 -0
  76. package/model/DocumentTemplate.mjs +91 -0
  77. package/model/EntityReference.d.mts +2 -0
  78. package/model/EntityReference.mjs +29 -0
  79. package/model/EntityReferenceInGroup.d.mts +2 -0
  80. package/model/EntityReferenceInGroup.mjs +23 -0
  81. package/model/EntityTemplate.d.mts +2 -0
  82. package/model/EntityTemplate.mjs +46 -0
  83. package/model/Form.d.mts +5 -0
  84. package/model/Form.mjs +204 -0
  85. package/model/FormTemplate.d.mts +2 -0
  86. package/model/FormTemplate.mjs +82 -0
  87. package/model/FrontEndMigration.d.mts +2 -0
  88. package/model/FrontEndMigration.mjs +57 -0
  89. package/model/Group.d.mts +2 -0
  90. package/model/Group.mjs +68 -0
  91. package/model/GroupDeletionReport.d.mts +2 -0
  92. package/model/GroupDeletionReport.mjs +24 -0
  93. package/model/HealthElement.d.mts +5 -0
  94. package/model/HealthElement.mjs +226 -0
  95. package/model/HealthcareParty.d.mts +2 -0
  96. package/model/HealthcareParty.mjs +182 -0
  97. package/model/IdWithRev.d.mts +2 -0
  98. package/model/IdWithRev.mjs +23 -0
  99. package/model/IndexingInfo.d.mts +2 -0
  100. package/model/IndexingInfo.mjs +21 -0
  101. package/model/Insurance.d.mts +2 -0
  102. package/model/Insurance.mjs +46 -0
  103. package/model/Invoice.d.mts +5 -0
  104. package/model/Invoice.mjs +468 -0
  105. package/model/Keyword.d.mts +2 -0
  106. package/model/Keyword.mjs +58 -0
  107. package/model/ListOfIds.d.mts +2 -0
  108. package/model/ListOfIds.mjs +20 -0
  109. package/model/ListOfProperties.d.mts +2 -0
  110. package/model/ListOfProperties.mjs +22 -0
  111. package/model/MaintenanceTask.d.mts +5 -0
  112. package/model/MaintenanceTask.mjs +152 -0
  113. package/model/MedicalLocation.d.mts +2 -0
  114. package/model/MedicalLocation.mjs +63 -0
  115. package/model/Message.d.mts +5 -0
  116. package/model/Message.mjs +248 -0
  117. package/model/PaginatedDocumentKeyIdPair.d.mts +2 -0
  118. package/model/PaginatedDocumentKeyIdPair.mjs +24 -0
  119. package/model/Patient.d.mts +5 -0
  120. package/model/Patient.mjs +491 -0
  121. package/model/Place.d.mts +2 -0
  122. package/model/Place.mjs +33 -0
  123. package/model/PropertyStub.d.mts +5 -0
  124. package/model/PropertyStub.mjs +74 -0
  125. package/model/PropertyTypeStub.d.mts +2 -0
  126. package/model/PropertyTypeStub.mjs +26 -0
  127. package/model/PublicAgendasAndCalendarItemTypes.d.mts +2 -0
  128. package/model/PublicAgendasAndCalendarItemTypes.mjs +25 -0
  129. package/model/PublicKey.d.mts +2 -0
  130. package/model/PublicKey.mjs +24 -0
  131. package/model/Receipt.d.mts +5 -0
  132. package/model/Receipt.mjs +159 -0
  133. package/model/RegistrationInformation.d.mts +2 -0
  134. package/model/RegistrationInformation.mjs +43 -0
  135. package/model/RegistrationSuccess.d.mts +2 -0
  136. package/model/RegistrationSuccess.mjs +24 -0
  137. package/model/Replication.d.mts +2 -0
  138. package/model/Replication.mjs +35 -0
  139. package/model/ReplicationInfo.d.mts +2 -0
  140. package/model/ReplicationInfo.mjs +28 -0
  141. package/model/Role.d.mts +2 -0
  142. package/model/Role.mjs +34 -0
  143. package/model/StoredDocumentIdentifier.d.mts +2 -0
  144. package/model/StoredDocumentIdentifier.mjs +22 -0
  145. package/model/Tarification.d.mts +2 -0
  146. package/model/Tarification.mjs +92 -0
  147. package/model/TimeTable.d.mts +2 -0
  148. package/model/TimeTable.mjs +64 -0
  149. package/model/Topic.d.mts +5 -0
  150. package/model/Topic.mjs +163 -0
  151. package/model/User.d.mts +4 -0
  152. package/model/User.mjs +118 -0
  153. package/model/UserGroup.d.mts +2 -0
  154. package/model/UserGroup.mjs +55 -0
  155. package/model/base/CodeStub.d.mts +2 -0
  156. package/model/base/CodeStub.mjs +40 -0
  157. package/model/base/CryptoActor.d.mts +3 -0
  158. package/model/base/CryptoActor.mjs +19 -1
  159. package/model/base/Identifier.d.mts +2 -0
  160. package/model/base/Identifier.mjs +44 -0
  161. package/model/couchdb/Basic.d.mts +2 -0
  162. package/model/couchdb/Basic.mjs +22 -0
  163. package/model/couchdb/DatabaseInfo.d.mts +2 -0
  164. package/model/couchdb/DatabaseInfo.mjs +47 -0
  165. package/model/couchdb/DesignDocument.d.mts +2 -0
  166. package/model/couchdb/DesignDocument.mjs +40 -0
  167. package/model/couchdb/DocIdentifier.d.mts +2 -0
  168. package/model/couchdb/DocIdentifier.mjs +24 -0
  169. package/model/couchdb/GroupDatabasesInfo.d.mts +2 -0
  170. package/model/couchdb/GroupDatabasesInfo.mjs +26 -0
  171. package/model/couchdb/Remote.d.mts +2 -0
  172. package/model/couchdb/Remote.mjs +25 -0
  173. package/model/couchdb/RemoteAuthentication.d.mts +2 -0
  174. package/model/couchdb/RemoteAuthentication.mjs +23 -0
  175. package/model/couchdb/ReplicationStats.d.mts +2 -0
  176. package/model/couchdb/ReplicationStats.mjs +45 -0
  177. package/model/couchdb/ReplicatorDocument.d.mts +2 -0
  178. package/model/couchdb/ReplicatorDocument.mjs +61 -0
  179. package/model/couchdb/View.d.mts +2 -0
  180. package/model/couchdb/View.mjs +23 -0
  181. package/model/data/LabelledOccurence.d.mts +2 -0
  182. package/model/data/LabelledOccurence.mjs +22 -0
  183. package/model/embed/Address.d.mts +5 -0
  184. package/model/embed/Address.mjs +133 -0
  185. package/model/embed/AdministrationQuantity.d.mts +2 -0
  186. package/model/embed/AdministrationQuantity.mjs +29 -0
  187. package/model/embed/AgendaSlottingAlgorithm.d.mts +3 -0
  188. package/model/embed/AgendaSlottingAlgorithm.mjs +30 -0
  189. package/model/embed/AgreementAppendix.d.mts +2 -0
  190. package/model/embed/AgreementAppendix.mjs +30 -0
  191. package/model/embed/Annotation.d.mts +2 -0
  192. package/model/embed/Annotation.mjs +46 -0
  193. package/model/embed/CalendarItemTag.d.mts +5 -0
  194. package/model/embed/CalendarItemTag.mjs +72 -0
  195. package/model/embed/CareTeamMember.d.mts +5 -0
  196. package/model/embed/CareTeamMember.mjs +71 -0
  197. package/model/embed/CareTeamMembership.d.mts +5 -0
  198. package/model/embed/CareTeamMembership.mjs +73 -0
  199. package/model/embed/Content.d.mts +5 -0
  200. package/model/embed/Content.mjs +125 -0
  201. package/model/embed/DataAttachment.d.mts +2 -0
  202. package/model/embed/DataAttachment.mjs +26 -0
  203. package/model/embed/DatabaseSynchronization.d.mts +2 -0
  204. package/model/embed/DatabaseSynchronization.mjs +30 -0
  205. package/model/embed/Delegation.d.mts +2 -0
  206. package/model/embed/Delegation.mjs +30 -0
  207. package/model/embed/DeletedAttachment.d.mts +2 -0
  208. package/model/embed/DeletedAttachment.mjs +30 -0
  209. package/model/embed/DocumentGroup.d.mts +2 -0
  210. package/model/embed/DocumentGroup.mjs +24 -0
  211. package/model/embed/Duration.d.mts +2 -0
  212. package/model/embed/Duration.mjs +26 -0
  213. package/model/embed/EmbeddedTimeTableHour.d.mts +2 -0
  214. package/model/embed/EmbeddedTimeTableHour.mjs +22 -0
  215. package/model/embed/EmbeddedTimeTableItem.d.mts +2 -0
  216. package/model/embed/EmbeddedTimeTableItem.mjs +41 -0
  217. package/model/embed/Employer.d.mts +2 -0
  218. package/model/embed/Employer.mjs +26 -0
  219. package/model/embed/EmploymentInfo.d.mts +5 -0
  220. package/model/embed/EmploymentInfo.mjs +74 -0
  221. package/model/embed/Episode.d.mts +5 -0
  222. package/model/embed/Episode.mjs +75 -0
  223. package/model/embed/FinancialInstitutionInformation.d.mts +5 -0
  224. package/model/embed/FinancialInstitutionInformation.mjs +88 -0
  225. package/model/embed/FlatRateTarification.d.mts +5 -0
  226. package/model/embed/FlatRateTarification.mjs +72 -0
  227. package/model/embed/FlowItem.d.mts +2 -0
  228. package/model/embed/FlowItem.mjs +117 -0
  229. package/model/embed/HealthcarePartyHistoryStatus.d.mts +2 -0
  230. package/model/embed/HealthcarePartyHistoryStatus.mjs +28 -0
  231. package/model/embed/IdentityDocumentReader.d.mts +2 -0
  232. package/model/embed/IdentityDocumentReader.mjs +33 -0
  233. package/model/embed/Insurability.d.mts +5 -0
  234. package/model/embed/Insurability.mjs +100 -0
  235. package/model/embed/InvoicingCode.d.mts +5 -0
  236. package/model/embed/InvoicingCode.mjs +377 -0
  237. package/model/embed/KeywordSubword.d.mts +2 -0
  238. package/model/embed/KeywordSubword.mjs +25 -0
  239. package/model/embed/LetterValue.d.mts +2 -0
  240. package/model/embed/LetterValue.mjs +30 -0
  241. package/model/embed/Measure.d.mts +2 -0
  242. package/model/embed/Measure.mjs +57 -0
  243. package/model/embed/MedicalHouseContract.d.mts +5 -0
  244. package/model/embed/MedicalHouseContract.mjs +223 -0
  245. package/model/embed/Medication.d.mts +2 -0
  246. package/model/embed/Medication.mjs +157 -0
  247. package/model/embed/Medicinalproduct.d.mts +2 -0
  248. package/model/embed/Medicinalproduct.mjs +33 -0
  249. package/model/embed/MessageAttachment.d.mts +2 -0
  250. package/model/embed/MessageAttachment.mjs +25 -0
  251. package/model/embed/MessageReadStatus.d.mts +2 -0
  252. package/model/embed/MessageReadStatus.mjs +23 -0
  253. package/model/embed/ParagraphAgreement.d.mts +2 -0
  254. package/model/embed/ParagraphAgreement.mjs +86 -0
  255. package/model/embed/Partnership.d.mts +2 -0
  256. package/model/embed/Partnership.mjs +36 -0
  257. package/model/embed/PatientHealthCareParty.d.mts +9 -0
  258. package/model/embed/PatientHealthCareParty.mjs +88 -0
  259. package/model/embed/Payment.d.mts +2 -0
  260. package/model/embed/Payment.mjs +28 -0
  261. package/model/embed/Periodicity.d.mts +2 -0
  262. package/model/embed/Periodicity.mjs +26 -0
  263. package/model/embed/PersonName.d.mts +2 -0
  264. package/model/embed/PersonName.mjs +41 -0
  265. package/model/embed/PlanOfAction.d.mts +8 -3
  266. package/model/embed/PlanOfAction.mjs +179 -0
  267. package/model/embed/Range.d.mts +2 -0
  268. package/model/embed/Range.mjs +24 -0
  269. package/model/embed/ReferenceRange.d.mts +2 -0
  270. package/model/embed/ReferenceRange.mjs +40 -0
  271. package/model/embed/ReferralPeriod.d.mts +2 -0
  272. package/model/embed/ReferralPeriod.mjs +27 -0
  273. package/model/embed/RegimenItem.d.mts +2 -0
  274. package/model/embed/RegimenItem.mjs +40 -0
  275. package/model/embed/Renewal.d.mts +2 -0
  276. package/model/embed/Renewal.mjs +26 -0
  277. package/model/embed/ResourceGroupAllocationSchedule.d.mts +2 -0
  278. package/model/embed/ResourceGroupAllocationSchedule.mjs +39 -0
  279. package/model/embed/Right.d.mts +2 -0
  280. package/model/embed/Right.mjs +27 -0
  281. package/model/embed/RoleConfiguration.d.mts +2 -0
  282. package/model/embed/RoleConfiguration.mjs +22 -0
  283. package/model/embed/SchoolingInfo.d.mts +5 -0
  284. package/model/embed/SchoolingInfo.mjs +73 -0
  285. package/model/embed/SecureDelegation.d.mts +2 -0
  286. package/model/embed/SecureDelegation.mjs +39 -0
  287. package/model/embed/SecurityMetadata.d.mts +2 -0
  288. package/model/embed/SecurityMetadata.mjs +22 -0
  289. package/model/embed/Service.d.mts +5 -0
  290. package/model/embed/Service.mjs +240 -0
  291. package/model/embed/ServiceLink.d.mts +2 -0
  292. package/model/embed/ServiceLink.mjs +21 -0
  293. package/model/embed/SubContact.d.mts +5 -0
  294. package/model/embed/SubContact.mjs +146 -0
  295. package/model/embed/Substanceproduct.d.mts +2 -0
  296. package/model/embed/Substanceproduct.mjs +33 -0
  297. package/model/embed/Suspension.d.mts +2 -0
  298. package/model/embed/Suspension.mjs +30 -0
  299. package/model/embed/Telecom.d.mts +5 -0
  300. package/model/embed/Telecom.mjs +67 -0
  301. package/model/embed/TimeSeries.d.mts +2 -0
  302. package/model/embed/TimeSeries.mjs +32 -0
  303. package/model/embed/TimeTableHour.d.mts +2 -0
  304. package/model/embed/TimeTableHour.mjs +24 -0
  305. package/model/embed/TimeTableItem.d.mts +2 -0
  306. package/model/embed/TimeTableItem.mjs +57 -0
  307. package/model/embed/TypedValue.d.mts +5 -0
  308. package/model/embed/TypedValue.mjs +85 -0
  309. package/model/embed/Valorisation.d.mts +5 -0
  310. package/model/embed/Valorisation.mjs +108 -0
  311. package/model/embed/ValueWithPrecision.d.mts +2 -0
  312. package/model/embed/ValueWithPrecision.mjs +22 -0
  313. package/model/embed/Weekday.d.mts +2 -0
  314. package/model/embed/Weekday.mjs +26 -0
  315. package/model/embed/form/template/Action.d.mts +2 -0
  316. package/model/embed/form/template/Action.mjs +30 -0
  317. package/model/embed/form/template/CheckBox.d.mts +2 -0
  318. package/model/embed/form/template/CheckBox.mjs +71 -0
  319. package/model/embed/form/template/DatePicker.d.mts +2 -0
  320. package/model/embed/form/template/DatePicker.mjs +71 -0
  321. package/model/embed/form/template/DateTimePicker.d.mts +2 -0
  322. package/model/embed/form/template/DateTimePicker.mjs +71 -0
  323. package/model/embed/form/template/DropdownField.d.mts +2 -0
  324. package/model/embed/form/template/DropdownField.mjs +71 -0
  325. package/model/embed/form/template/FieldsGroup.d.mts +2 -0
  326. package/model/embed/form/template/FieldsGroup.mjs +28 -0
  327. package/model/embed/form/template/FormTemplateLayout.d.mts +2 -0
  328. package/model/embed/form/template/FormTemplateLayout.mjs +33 -0
  329. package/model/embed/form/template/Launcher.d.mts +2 -0
  330. package/model/embed/form/template/Launcher.mjs +26 -0
  331. package/model/embed/form/template/MeasureField.d.mts +2 -0
  332. package/model/embed/form/template/MeasureField.mjs +71 -0
  333. package/model/embed/form/template/MultipleChoice.d.mts +2 -0
  334. package/model/embed/form/template/MultipleChoice.mjs +71 -0
  335. package/model/embed/form/template/NumberField.d.mts +2 -0
  336. package/model/embed/form/template/NumberField.mjs +71 -0
  337. package/model/embed/form/template/RadioButton.d.mts +2 -0
  338. package/model/embed/form/template/RadioButton.mjs +71 -0
  339. package/model/embed/form/template/Section.d.mts +2 -0
  340. package/model/embed/form/template/Section.mjs +30 -0
  341. package/model/embed/form/template/State.d.mts +2 -0
  342. package/model/embed/form/template/State.mjs +26 -0
  343. package/model/embed/form/template/StructureElement.d.mts +3 -0
  344. package/model/embed/form/template/StructureElement.mjs +32 -1
  345. package/model/embed/form/template/TextField.d.mts +2 -0
  346. package/model/embed/form/template/TextField.mjs +71 -0
  347. package/model/embed/form/template/TimePicker.d.mts +2 -0
  348. package/model/embed/form/template/TimePicker.mjs +71 -0
  349. package/model/filter/predicate/AlwaysPredicate.d.mts +2 -0
  350. package/model/filter/predicate/AlwaysPredicate.mjs +20 -0
  351. package/model/filter/predicate/AndPredicate.d.mts +2 -0
  352. package/model/filter/predicate/AndPredicate.mjs +25 -0
  353. package/model/filter/predicate/KeyValuePredicate.d.mts +2 -0
  354. package/model/filter/predicate/KeyValuePredicate.mjs +32 -0
  355. package/model/filter/predicate/NotPredicate.d.mts +2 -0
  356. package/model/filter/predicate/NotPredicate.mjs +25 -0
  357. package/model/filter/predicate/OrPredicate.d.mts +2 -0
  358. package/model/filter/predicate/OrPredicate.mjs +25 -0
  359. package/model/filter/predicate/Predicate.d.mts +3 -0
  360. package/model/filter/predicate/Predicate.mjs +20 -1
  361. package/model/security/AlwaysPermissionItem.d.mts +2 -0
  362. package/model/security/AlwaysPermissionItem.mjs +25 -0
  363. package/model/security/AuthenticationToken.d.mts +2 -0
  364. package/model/security/AuthenticationToken.mjs +28 -0
  365. package/model/security/Enable2faRequest.d.mts +2 -0
  366. package/model/security/Enable2faRequest.mjs +22 -0
  367. package/model/security/ExternalJwtConfig.d.mts +18 -0
  368. package/model/security/ExternalJwtConfig.mjs +199 -0
  369. package/model/security/LoginIdentifier.d.mts +2 -0
  370. package/model/security/LoginIdentifier.mjs +22 -0
  371. package/model/security/OperationToken.d.mts +2 -0
  372. package/model/security/OperationToken.mjs +31 -0
  373. package/model/security/Permission.d.mts +2 -0
  374. package/model/security/Permission.mjs +24 -0
  375. package/model/security/PermissionItem.d.mts +3 -0
  376. package/model/security/PermissionItem.mjs +12 -1
  377. package/model/security/TokenWithGroup.d.mts +2 -0
  378. package/model/security/TokenWithGroup.mjs +25 -0
  379. package/options/SdkOptions.d.mts +3 -23
  380. package/package.json +1 -1
  381. package/utils/Id.d.mts +5 -0
  382. package/utils/Id.mjs +19 -10
  383. package/KotlinBigInteger-bignum.mjs +0 -5902
  384. /package/{KotlinBigInteger-bignum-serialization-kotlinx.mjs → core-library-core.mjs} +0 -0
@@ -1,3 +1,6 @@
1
+ // auto-generated file
2
+ import { expectBoolean, expectMap, expectNumber, expectString, expectStringEnum, extractEntry } from '../../internal/JsonDecodeUtils.mjs';
3
+ import { PaymentType } from './PaymentType.mjs';
1
4
  export class DecryptedInvoicingCode {
2
5
  constructor(partial) {
3
6
  this.dateCode = undefined;
@@ -170,6 +173,193 @@ export class DecryptedInvoicingCode {
170
173
  if ('encryptedSelf' in partial)
171
174
  this.encryptedSelf = partial.encryptedSelf;
172
175
  }
176
+ toJSON() {
177
+ var _a;
178
+ const res = {};
179
+ res['id'] = (_a = this.id) !== null && _a !== void 0 ? _a : null;
180
+ if (this.dateCode != undefined)
181
+ res['dateCode'] = this.dateCode;
182
+ if (this.logicalId != undefined)
183
+ res['logicalId'] = this.logicalId;
184
+ if (this.label != undefined)
185
+ res['label'] = this.label;
186
+ if (this.userId != undefined)
187
+ res['userId'] = this.userId;
188
+ if (this.contactId != undefined)
189
+ res['contactId'] = this.contactId;
190
+ if (this.serviceId != undefined)
191
+ res['serviceId'] = this.serviceId;
192
+ if (this.tarificationId != undefined)
193
+ res['tarificationId'] = this.tarificationId;
194
+ if (this.code != undefined)
195
+ res['code'] = this.code;
196
+ if (this.paymentType != undefined)
197
+ res['paymentType'] = this.paymentType;
198
+ if (this.paid != undefined)
199
+ res['paid'] = this.paid;
200
+ if (this.totalAmount != undefined)
201
+ res['totalAmount'] = this.totalAmount;
202
+ if (this.reimbursement != undefined)
203
+ res['reimbursement'] = this.reimbursement;
204
+ if (this.patientIntervention != undefined)
205
+ res['patientIntervention'] = this.patientIntervention;
206
+ if (this.amiIntervention != undefined)
207
+ res['amiIntervention'] = this.amiIntervention;
208
+ if (this.doctorSupplement != undefined)
209
+ res['doctorSupplement'] = this.doctorSupplement;
210
+ if (this.conventionAmount != undefined)
211
+ res['conventionAmount'] = this.conventionAmount;
212
+ if (this.vat != undefined)
213
+ res['vat'] = this.vat;
214
+ if (this.error != undefined)
215
+ res['error'] = this.error;
216
+ if (this.contract != undefined)
217
+ res['contract'] = this.contract;
218
+ if (this.contractDate != undefined)
219
+ res['contractDate'] = this.contractDate;
220
+ if (this.units != undefined)
221
+ res['units'] = this.units;
222
+ if (this.side != undefined)
223
+ res['side'] = this.side;
224
+ if (this.timeOfDay != undefined)
225
+ res['timeOfDay'] = this.timeOfDay;
226
+ if (this.eidReadingHour != undefined)
227
+ res['eidReadingHour'] = this.eidReadingHour;
228
+ if (this.eidReadingValue != undefined)
229
+ res['eidReadingValue'] = this.eidReadingValue;
230
+ if (this.override3rdPayerCode != undefined)
231
+ res['override3rdPayerCode'] = this.override3rdPayerCode;
232
+ if (this.override3rdPayerReason != undefined)
233
+ res['override3rdPayerReason'] = this.override3rdPayerReason;
234
+ if (this.transplantationCode != undefined)
235
+ res['transplantationCode'] = this.transplantationCode;
236
+ if (this.prescriberNorm != undefined)
237
+ res['prescriberNorm'] = this.prescriberNorm;
238
+ if (this.productLabel != undefined)
239
+ res['productLabel'] = this.productLabel;
240
+ if (this.percentNorm != undefined)
241
+ res['percentNorm'] = this.percentNorm;
242
+ if (this.prescriberNihii != undefined)
243
+ res['prescriberNihii'] = this.prescriberNihii;
244
+ if (this.relatedCode != undefined)
245
+ res['relatedCode'] = this.relatedCode;
246
+ if (this.prescriptionDate != undefined)
247
+ res['prescriptionDate'] = this.prescriptionDate;
248
+ if (this.derogationMaxNumber != undefined)
249
+ res['derogationMaxNumber'] = this.derogationMaxNumber;
250
+ if (this.prescriberSsin != undefined)
251
+ res['prescriberSsin'] = this.prescriberSsin;
252
+ if (this.prescriberLastName != undefined)
253
+ res['prescriberLastName'] = this.prescriberLastName;
254
+ if (this.prescriberFirstName != undefined)
255
+ res['prescriberFirstName'] = this.prescriberFirstName;
256
+ if (this.prescriberCdHcParty != undefined)
257
+ res['prescriberCdHcParty'] = this.prescriberCdHcParty;
258
+ if (this.locationNihii != undefined)
259
+ res['locationNihii'] = this.locationNihii;
260
+ if (this.locationCdHcParty != undefined)
261
+ res['locationCdHcParty'] = this.locationCdHcParty;
262
+ if (this.locationService != undefined)
263
+ res['locationService'] = this.locationService;
264
+ if (this.admissionDate != undefined)
265
+ res['admissionDate'] = this.admissionDate;
266
+ if (this.canceled != undefined)
267
+ res['canceled'] = this.canceled;
268
+ if (this.accepted != undefined)
269
+ res['accepted'] = this.accepted;
270
+ if (this.pending != undefined)
271
+ res['pending'] = this.pending;
272
+ if (this.resent != undefined)
273
+ res['resent'] = this.resent;
274
+ if (this.archived != undefined)
275
+ res['archived'] = this.archived;
276
+ if (this.lost != undefined)
277
+ res['lost'] = this.lost;
278
+ if (this.insuranceJustification != undefined)
279
+ res['insuranceJustification'] = this.insuranceJustification;
280
+ if (this.cancelPatientInterventionReason != undefined)
281
+ res['cancelPatientInterventionReason'] = this.cancelPatientInterventionReason;
282
+ if (this.status != undefined)
283
+ res['status'] = this.status;
284
+ if (this.codeLabel != undefined)
285
+ res['codeLabel'] = this.codeLabel;
286
+ res['options'] = Object.fromEntries(Object.entries(this.options).map(([k0, v0]) => [k0, v0]));
287
+ if (this.encryptedSelf != undefined)
288
+ res['encryptedSelf'] = this.encryptedSelf;
289
+ res['isEncrypted'] = false;
290
+ return res;
291
+ }
292
+ static fromJSON(json, ignoreUnknownKeys = false, path = ['DecryptedInvoicingCode']) {
293
+ if (typeof json != 'object')
294
+ throw new Error(`Expected json object at path ${path.join("")}`);
295
+ const jCpy = Object.assign({}, json);
296
+ if (extractEntry(jCpy, "isEncrypted", true, path) !== false)
297
+ throw new Error(`Unexpected value for ${path.join("")} isEncrypted marker, should be false. The provided json doesn't represent a DecryptedInvoicingCode`);
298
+ const res = new DecryptedInvoicingCode({
299
+ id: expectString(extractEntry(jCpy, 'id', true, path), true, [...path, ".id"]),
300
+ dateCode: expectNumber(extractEntry(jCpy, 'dateCode', false, path), true, true, [...path, ".dateCode"]),
301
+ logicalId: expectString(extractEntry(jCpy, 'logicalId', false, path), true, [...path, ".logicalId"]),
302
+ label: expectString(extractEntry(jCpy, 'label', false, path), true, [...path, ".label"]),
303
+ userId: expectString(extractEntry(jCpy, 'userId', false, path), true, [...path, ".userId"]),
304
+ contactId: expectString(extractEntry(jCpy, 'contactId', false, path), true, [...path, ".contactId"]),
305
+ serviceId: expectString(extractEntry(jCpy, 'serviceId', false, path), true, [...path, ".serviceId"]),
306
+ tarificationId: expectString(extractEntry(jCpy, 'tarificationId', false, path), true, [...path, ".tarificationId"]),
307
+ code: expectString(extractEntry(jCpy, 'code', false, path), true, [...path, ".code"]),
308
+ paymentType: expectStringEnum(extractEntry(jCpy, 'paymentType', false, path), true, [...path, ".paymentType"], PaymentType, 'PaymentType'),
309
+ paid: expectNumber(extractEntry(jCpy, 'paid', false, path), true, false, [...path, ".paid"]),
310
+ totalAmount: expectNumber(extractEntry(jCpy, 'totalAmount', false, path), true, false, [...path, ".totalAmount"]),
311
+ reimbursement: expectNumber(extractEntry(jCpy, 'reimbursement', false, path), true, false, [...path, ".reimbursement"]),
312
+ patientIntervention: expectNumber(extractEntry(jCpy, 'patientIntervention', false, path), true, false, [...path, ".patientIntervention"]),
313
+ amiIntervention: expectNumber(extractEntry(jCpy, 'amiIntervention', false, path), true, false, [...path, ".amiIntervention"]),
314
+ doctorSupplement: expectNumber(extractEntry(jCpy, 'doctorSupplement', false, path), true, false, [...path, ".doctorSupplement"]),
315
+ conventionAmount: expectNumber(extractEntry(jCpy, 'conventionAmount', false, path), true, false, [...path, ".conventionAmount"]),
316
+ vat: expectNumber(extractEntry(jCpy, 'vat', false, path), true, false, [...path, ".vat"]),
317
+ error: expectString(extractEntry(jCpy, 'error', false, path), true, [...path, ".error"]),
318
+ contract: expectString(extractEntry(jCpy, 'contract', false, path), true, [...path, ".contract"]),
319
+ contractDate: expectNumber(extractEntry(jCpy, 'contractDate', false, path), true, true, [...path, ".contractDate"]),
320
+ units: expectNumber(extractEntry(jCpy, 'units', false, path), true, true, [...path, ".units"]),
321
+ side: expectNumber(extractEntry(jCpy, 'side', false, path), true, true, [...path, ".side"]),
322
+ timeOfDay: expectNumber(extractEntry(jCpy, 'timeOfDay', false, path), true, true, [...path, ".timeOfDay"]),
323
+ eidReadingHour: expectNumber(extractEntry(jCpy, 'eidReadingHour', false, path), true, true, [...path, ".eidReadingHour"]),
324
+ eidReadingValue: expectString(extractEntry(jCpy, 'eidReadingValue', false, path), true, [...path, ".eidReadingValue"]),
325
+ override3rdPayerCode: expectNumber(extractEntry(jCpy, 'override3rdPayerCode', false, path), true, true, [...path, ".override3rdPayerCode"]),
326
+ override3rdPayerReason: expectString(extractEntry(jCpy, 'override3rdPayerReason', false, path), true, [...path, ".override3rdPayerReason"]),
327
+ transplantationCode: expectNumber(extractEntry(jCpy, 'transplantationCode', false, path), true, true, [...path, ".transplantationCode"]),
328
+ prescriberNorm: expectNumber(extractEntry(jCpy, 'prescriberNorm', false, path), true, true, [...path, ".prescriberNorm"]),
329
+ productLabel: expectString(extractEntry(jCpy, 'productLabel', false, path), true, [...path, ".productLabel"]),
330
+ percentNorm: expectNumber(extractEntry(jCpy, 'percentNorm', false, path), true, true, [...path, ".percentNorm"]),
331
+ prescriberNihii: expectString(extractEntry(jCpy, 'prescriberNihii', false, path), true, [...path, ".prescriberNihii"]),
332
+ relatedCode: expectString(extractEntry(jCpy, 'relatedCode', false, path), true, [...path, ".relatedCode"]),
333
+ prescriptionDate: expectNumber(extractEntry(jCpy, 'prescriptionDate', false, path), true, true, [...path, ".prescriptionDate"]),
334
+ derogationMaxNumber: expectNumber(extractEntry(jCpy, 'derogationMaxNumber', false, path), true, true, [...path, ".derogationMaxNumber"]),
335
+ prescriberSsin: expectString(extractEntry(jCpy, 'prescriberSsin', false, path), true, [...path, ".prescriberSsin"]),
336
+ prescriberLastName: expectString(extractEntry(jCpy, 'prescriberLastName', false, path), true, [...path, ".prescriberLastName"]),
337
+ prescriberFirstName: expectString(extractEntry(jCpy, 'prescriberFirstName', false, path), true, [...path, ".prescriberFirstName"]),
338
+ prescriberCdHcParty: expectString(extractEntry(jCpy, 'prescriberCdHcParty', false, path), true, [...path, ".prescriberCdHcParty"]),
339
+ locationNihii: expectString(extractEntry(jCpy, 'locationNihii', false, path), true, [...path, ".locationNihii"]),
340
+ locationCdHcParty: expectString(extractEntry(jCpy, 'locationCdHcParty', false, path), true, [...path, ".locationCdHcParty"]),
341
+ locationService: expectNumber(extractEntry(jCpy, 'locationService', false, path), true, true, [...path, ".locationService"]),
342
+ admissionDate: expectNumber(extractEntry(jCpy, 'admissionDate', false, path), true, true, [...path, ".admissionDate"]),
343
+ canceled: expectBoolean(extractEntry(jCpy, 'canceled', false, path), true, [...path, ".canceled"]),
344
+ accepted: expectBoolean(extractEntry(jCpy, 'accepted', false, path), true, [...path, ".accepted"]),
345
+ pending: expectBoolean(extractEntry(jCpy, 'pending', false, path), true, [...path, ".pending"]),
346
+ resent: expectBoolean(extractEntry(jCpy, 'resent', false, path), true, [...path, ".resent"]),
347
+ archived: expectBoolean(extractEntry(jCpy, 'archived', false, path), true, [...path, ".archived"]),
348
+ lost: expectBoolean(extractEntry(jCpy, 'lost', false, path), true, [...path, ".lost"]),
349
+ insuranceJustification: expectNumber(extractEntry(jCpy, 'insuranceJustification', false, path), true, true, [...path, ".insuranceJustification"]),
350
+ cancelPatientInterventionReason: expectNumber(extractEntry(jCpy, 'cancelPatientInterventionReason', false, path), true, true, [...path, ".cancelPatientInterventionReason"]),
351
+ status: expectNumber(extractEntry(jCpy, 'status', false, path), true, true, [...path, ".status"]),
352
+ codeLabel: expectString(extractEntry(jCpy, 'codeLabel', false, path), true, [...path, ".codeLabel"]),
353
+ options: expectMap(extractEntry(jCpy, 'options', false, path), false, [...path, ".options"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectString(v0, false, p0)),
354
+ encryptedSelf: expectString(extractEntry(jCpy, 'encryptedSelf', false, path), true, [...path, ".encryptedSelf"]),
355
+ });
356
+ if (!ignoreUnknownKeys) {
357
+ const unused = Object.keys(jCpy);
358
+ if (unused.length > 0)
359
+ throw new Error(`Unexpected key(s) for json object DecryptedInvoicingCode at path ${path.join("")}: ${unused}`);
360
+ }
361
+ return res;
362
+ }
173
363
  }
174
364
  export class EncryptedInvoicingCode {
175
365
  constructor(partial) {
@@ -343,4 +533,191 @@ export class EncryptedInvoicingCode {
343
533
  if ('encryptedSelf' in partial)
344
534
  this.encryptedSelf = partial.encryptedSelf;
345
535
  }
536
+ toJSON() {
537
+ var _a;
538
+ const res = {};
539
+ res['id'] = (_a = this.id) !== null && _a !== void 0 ? _a : null;
540
+ if (this.dateCode != undefined)
541
+ res['dateCode'] = this.dateCode;
542
+ if (this.logicalId != undefined)
543
+ res['logicalId'] = this.logicalId;
544
+ if (this.label != undefined)
545
+ res['label'] = this.label;
546
+ if (this.userId != undefined)
547
+ res['userId'] = this.userId;
548
+ if (this.contactId != undefined)
549
+ res['contactId'] = this.contactId;
550
+ if (this.serviceId != undefined)
551
+ res['serviceId'] = this.serviceId;
552
+ if (this.tarificationId != undefined)
553
+ res['tarificationId'] = this.tarificationId;
554
+ if (this.code != undefined)
555
+ res['code'] = this.code;
556
+ if (this.paymentType != undefined)
557
+ res['paymentType'] = this.paymentType;
558
+ if (this.paid != undefined)
559
+ res['paid'] = this.paid;
560
+ if (this.totalAmount != undefined)
561
+ res['totalAmount'] = this.totalAmount;
562
+ if (this.reimbursement != undefined)
563
+ res['reimbursement'] = this.reimbursement;
564
+ if (this.patientIntervention != undefined)
565
+ res['patientIntervention'] = this.patientIntervention;
566
+ if (this.amiIntervention != undefined)
567
+ res['amiIntervention'] = this.amiIntervention;
568
+ if (this.doctorSupplement != undefined)
569
+ res['doctorSupplement'] = this.doctorSupplement;
570
+ if (this.conventionAmount != undefined)
571
+ res['conventionAmount'] = this.conventionAmount;
572
+ if (this.vat != undefined)
573
+ res['vat'] = this.vat;
574
+ if (this.error != undefined)
575
+ res['error'] = this.error;
576
+ if (this.contract != undefined)
577
+ res['contract'] = this.contract;
578
+ if (this.contractDate != undefined)
579
+ res['contractDate'] = this.contractDate;
580
+ if (this.units != undefined)
581
+ res['units'] = this.units;
582
+ if (this.side != undefined)
583
+ res['side'] = this.side;
584
+ if (this.timeOfDay != undefined)
585
+ res['timeOfDay'] = this.timeOfDay;
586
+ if (this.eidReadingHour != undefined)
587
+ res['eidReadingHour'] = this.eidReadingHour;
588
+ if (this.eidReadingValue != undefined)
589
+ res['eidReadingValue'] = this.eidReadingValue;
590
+ if (this.override3rdPayerCode != undefined)
591
+ res['override3rdPayerCode'] = this.override3rdPayerCode;
592
+ if (this.override3rdPayerReason != undefined)
593
+ res['override3rdPayerReason'] = this.override3rdPayerReason;
594
+ if (this.transplantationCode != undefined)
595
+ res['transplantationCode'] = this.transplantationCode;
596
+ if (this.prescriberNorm != undefined)
597
+ res['prescriberNorm'] = this.prescriberNorm;
598
+ if (this.productLabel != undefined)
599
+ res['productLabel'] = this.productLabel;
600
+ if (this.percentNorm != undefined)
601
+ res['percentNorm'] = this.percentNorm;
602
+ if (this.prescriberNihii != undefined)
603
+ res['prescriberNihii'] = this.prescriberNihii;
604
+ if (this.relatedCode != undefined)
605
+ res['relatedCode'] = this.relatedCode;
606
+ if (this.prescriptionDate != undefined)
607
+ res['prescriptionDate'] = this.prescriptionDate;
608
+ if (this.derogationMaxNumber != undefined)
609
+ res['derogationMaxNumber'] = this.derogationMaxNumber;
610
+ if (this.prescriberSsin != undefined)
611
+ res['prescriberSsin'] = this.prescriberSsin;
612
+ if (this.prescriberLastName != undefined)
613
+ res['prescriberLastName'] = this.prescriberLastName;
614
+ if (this.prescriberFirstName != undefined)
615
+ res['prescriberFirstName'] = this.prescriberFirstName;
616
+ if (this.prescriberCdHcParty != undefined)
617
+ res['prescriberCdHcParty'] = this.prescriberCdHcParty;
618
+ if (this.locationNihii != undefined)
619
+ res['locationNihii'] = this.locationNihii;
620
+ if (this.locationCdHcParty != undefined)
621
+ res['locationCdHcParty'] = this.locationCdHcParty;
622
+ if (this.locationService != undefined)
623
+ res['locationService'] = this.locationService;
624
+ if (this.admissionDate != undefined)
625
+ res['admissionDate'] = this.admissionDate;
626
+ if (this.canceled != undefined)
627
+ res['canceled'] = this.canceled;
628
+ if (this.accepted != undefined)
629
+ res['accepted'] = this.accepted;
630
+ if (this.pending != undefined)
631
+ res['pending'] = this.pending;
632
+ if (this.resent != undefined)
633
+ res['resent'] = this.resent;
634
+ if (this.archived != undefined)
635
+ res['archived'] = this.archived;
636
+ if (this.lost != undefined)
637
+ res['lost'] = this.lost;
638
+ if (this.insuranceJustification != undefined)
639
+ res['insuranceJustification'] = this.insuranceJustification;
640
+ if (this.cancelPatientInterventionReason != undefined)
641
+ res['cancelPatientInterventionReason'] = this.cancelPatientInterventionReason;
642
+ if (this.status != undefined)
643
+ res['status'] = this.status;
644
+ if (this.codeLabel != undefined)
645
+ res['codeLabel'] = this.codeLabel;
646
+ res['options'] = Object.fromEntries(Object.entries(this.options).map(([k0, v0]) => [k0, v0]));
647
+ if (this.encryptedSelf != undefined)
648
+ res['encryptedSelf'] = this.encryptedSelf;
649
+ res['isEncrypted'] = true;
650
+ return res;
651
+ }
652
+ static fromJSON(json, ignoreUnknownKeys = false, path = ['EncryptedInvoicingCode']) {
653
+ if (typeof json != 'object')
654
+ throw new Error(`Expected json object at path ${path.join("")}`);
655
+ const jCpy = Object.assign({}, json);
656
+ if (extractEntry(jCpy, "isEncrypted", true, path) !== true)
657
+ throw new Error(`Unexpected value for ${path.join("")} isEncrypted marker, should be true. The provided json doesn't represent a EncryptedInvoicingCode`);
658
+ const res = new EncryptedInvoicingCode({
659
+ id: expectString(extractEntry(jCpy, 'id', true, path), true, [...path, ".id"]),
660
+ dateCode: expectNumber(extractEntry(jCpy, 'dateCode', false, path), true, true, [...path, ".dateCode"]),
661
+ logicalId: expectString(extractEntry(jCpy, 'logicalId', false, path), true, [...path, ".logicalId"]),
662
+ label: expectString(extractEntry(jCpy, 'label', false, path), true, [...path, ".label"]),
663
+ userId: expectString(extractEntry(jCpy, 'userId', false, path), true, [...path, ".userId"]),
664
+ contactId: expectString(extractEntry(jCpy, 'contactId', false, path), true, [...path, ".contactId"]),
665
+ serviceId: expectString(extractEntry(jCpy, 'serviceId', false, path), true, [...path, ".serviceId"]),
666
+ tarificationId: expectString(extractEntry(jCpy, 'tarificationId', false, path), true, [...path, ".tarificationId"]),
667
+ code: expectString(extractEntry(jCpy, 'code', false, path), true, [...path, ".code"]),
668
+ paymentType: expectStringEnum(extractEntry(jCpy, 'paymentType', false, path), true, [...path, ".paymentType"], PaymentType, 'PaymentType'),
669
+ paid: expectNumber(extractEntry(jCpy, 'paid', false, path), true, false, [...path, ".paid"]),
670
+ totalAmount: expectNumber(extractEntry(jCpy, 'totalAmount', false, path), true, false, [...path, ".totalAmount"]),
671
+ reimbursement: expectNumber(extractEntry(jCpy, 'reimbursement', false, path), true, false, [...path, ".reimbursement"]),
672
+ patientIntervention: expectNumber(extractEntry(jCpy, 'patientIntervention', false, path), true, false, [...path, ".patientIntervention"]),
673
+ amiIntervention: expectNumber(extractEntry(jCpy, 'amiIntervention', false, path), true, false, [...path, ".amiIntervention"]),
674
+ doctorSupplement: expectNumber(extractEntry(jCpy, 'doctorSupplement', false, path), true, false, [...path, ".doctorSupplement"]),
675
+ conventionAmount: expectNumber(extractEntry(jCpy, 'conventionAmount', false, path), true, false, [...path, ".conventionAmount"]),
676
+ vat: expectNumber(extractEntry(jCpy, 'vat', false, path), true, false, [...path, ".vat"]),
677
+ error: expectString(extractEntry(jCpy, 'error', false, path), true, [...path, ".error"]),
678
+ contract: expectString(extractEntry(jCpy, 'contract', false, path), true, [...path, ".contract"]),
679
+ contractDate: expectNumber(extractEntry(jCpy, 'contractDate', false, path), true, true, [...path, ".contractDate"]),
680
+ units: expectNumber(extractEntry(jCpy, 'units', false, path), true, true, [...path, ".units"]),
681
+ side: expectNumber(extractEntry(jCpy, 'side', false, path), true, true, [...path, ".side"]),
682
+ timeOfDay: expectNumber(extractEntry(jCpy, 'timeOfDay', false, path), true, true, [...path, ".timeOfDay"]),
683
+ eidReadingHour: expectNumber(extractEntry(jCpy, 'eidReadingHour', false, path), true, true, [...path, ".eidReadingHour"]),
684
+ eidReadingValue: expectString(extractEntry(jCpy, 'eidReadingValue', false, path), true, [...path, ".eidReadingValue"]),
685
+ override3rdPayerCode: expectNumber(extractEntry(jCpy, 'override3rdPayerCode', false, path), true, true, [...path, ".override3rdPayerCode"]),
686
+ override3rdPayerReason: expectString(extractEntry(jCpy, 'override3rdPayerReason', false, path), true, [...path, ".override3rdPayerReason"]),
687
+ transplantationCode: expectNumber(extractEntry(jCpy, 'transplantationCode', false, path), true, true, [...path, ".transplantationCode"]),
688
+ prescriberNorm: expectNumber(extractEntry(jCpy, 'prescriberNorm', false, path), true, true, [...path, ".prescriberNorm"]),
689
+ productLabel: expectString(extractEntry(jCpy, 'productLabel', false, path), true, [...path, ".productLabel"]),
690
+ percentNorm: expectNumber(extractEntry(jCpy, 'percentNorm', false, path), true, true, [...path, ".percentNorm"]),
691
+ prescriberNihii: expectString(extractEntry(jCpy, 'prescriberNihii', false, path), true, [...path, ".prescriberNihii"]),
692
+ relatedCode: expectString(extractEntry(jCpy, 'relatedCode', false, path), true, [...path, ".relatedCode"]),
693
+ prescriptionDate: expectNumber(extractEntry(jCpy, 'prescriptionDate', false, path), true, true, [...path, ".prescriptionDate"]),
694
+ derogationMaxNumber: expectNumber(extractEntry(jCpy, 'derogationMaxNumber', false, path), true, true, [...path, ".derogationMaxNumber"]),
695
+ prescriberSsin: expectString(extractEntry(jCpy, 'prescriberSsin', false, path), true, [...path, ".prescriberSsin"]),
696
+ prescriberLastName: expectString(extractEntry(jCpy, 'prescriberLastName', false, path), true, [...path, ".prescriberLastName"]),
697
+ prescriberFirstName: expectString(extractEntry(jCpy, 'prescriberFirstName', false, path), true, [...path, ".prescriberFirstName"]),
698
+ prescriberCdHcParty: expectString(extractEntry(jCpy, 'prescriberCdHcParty', false, path), true, [...path, ".prescriberCdHcParty"]),
699
+ locationNihii: expectString(extractEntry(jCpy, 'locationNihii', false, path), true, [...path, ".locationNihii"]),
700
+ locationCdHcParty: expectString(extractEntry(jCpy, 'locationCdHcParty', false, path), true, [...path, ".locationCdHcParty"]),
701
+ locationService: expectNumber(extractEntry(jCpy, 'locationService', false, path), true, true, [...path, ".locationService"]),
702
+ admissionDate: expectNumber(extractEntry(jCpy, 'admissionDate', false, path), true, true, [...path, ".admissionDate"]),
703
+ canceled: expectBoolean(extractEntry(jCpy, 'canceled', false, path), true, [...path, ".canceled"]),
704
+ accepted: expectBoolean(extractEntry(jCpy, 'accepted', false, path), true, [...path, ".accepted"]),
705
+ pending: expectBoolean(extractEntry(jCpy, 'pending', false, path), true, [...path, ".pending"]),
706
+ resent: expectBoolean(extractEntry(jCpy, 'resent', false, path), true, [...path, ".resent"]),
707
+ archived: expectBoolean(extractEntry(jCpy, 'archived', false, path), true, [...path, ".archived"]),
708
+ lost: expectBoolean(extractEntry(jCpy, 'lost', false, path), true, [...path, ".lost"]),
709
+ insuranceJustification: expectNumber(extractEntry(jCpy, 'insuranceJustification', false, path), true, true, [...path, ".insuranceJustification"]),
710
+ cancelPatientInterventionReason: expectNumber(extractEntry(jCpy, 'cancelPatientInterventionReason', false, path), true, true, [...path, ".cancelPatientInterventionReason"]),
711
+ status: expectNumber(extractEntry(jCpy, 'status', false, path), true, true, [...path, ".status"]),
712
+ codeLabel: expectString(extractEntry(jCpy, 'codeLabel', false, path), true, [...path, ".codeLabel"]),
713
+ options: expectMap(extractEntry(jCpy, 'options', false, path), false, [...path, ".options"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectString(v0, false, p0)),
714
+ encryptedSelf: expectString(extractEntry(jCpy, 'encryptedSelf', false, path), true, [...path, ".encryptedSelf"]),
715
+ });
716
+ if (!ignoreUnknownKeys) {
717
+ const unused = Object.keys(jCpy);
718
+ if (unused.length > 0)
719
+ throw new Error(`Unexpected key(s) for json object EncryptedInvoicingCode at path ${path.join("")}: ${unused}`);
720
+ }
721
+ return res;
722
+ }
346
723
  }
@@ -3,4 +3,6 @@ export declare class KeywordSubword {
3
3
  value: string | undefined;
4
4
  subWords: Array<KeywordSubword_> | undefined;
5
5
  constructor(partial: Partial<KeywordSubword>);
6
+ toJSON(): object;
7
+ static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): KeywordSubword;
6
8
  }
@@ -1,3 +1,5 @@
1
+ // auto-generated file
2
+ import { expectArray, expectObject, expectString, extractEntry } from '../../internal/JsonDecodeUtils.mjs';
1
3
  export class KeywordSubword {
2
4
  constructor(partial) {
3
5
  this.value = undefined;
@@ -7,4 +9,27 @@ export class KeywordSubword {
7
9
  if ('subWords' in partial)
8
10
  this.subWords = partial.subWords;
9
11
  }
12
+ toJSON() {
13
+ const res = {};
14
+ if (this.value != undefined)
15
+ res['value'] = this.value;
16
+ if (this.subWords != undefined)
17
+ res['subWords'] = this.subWords.map((x0) => x0.toJSON());
18
+ return res;
19
+ }
20
+ static fromJSON(json, ignoreUnknownKeys = false, path = ['KeywordSubword']) {
21
+ if (typeof json != 'object')
22
+ throw new Error(`Expected json object at path ${path.join("")}`);
23
+ const jCpy = Object.assign({}, json);
24
+ const res = new KeywordSubword({
25
+ value: expectString(extractEntry(jCpy, 'value', false, path), true, [...path, ".value"]),
26
+ subWords: expectArray(extractEntry(jCpy, 'subWords', false, path), true, [...path, ".subWords"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, KeywordSubword.fromJSON)),
27
+ });
28
+ if (!ignoreUnknownKeys) {
29
+ const unused = Object.keys(jCpy);
30
+ if (unused.length > 0)
31
+ throw new Error(`Unexpected key(s) for json object KeywordSubword at path ${path.join("")}: ${unused}`);
32
+ }
33
+ return res;
34
+ }
10
35
  }
@@ -4,4 +4,6 @@ export declare class LetterValue {
4
4
  coefficient: number | undefined;
5
5
  value: number | undefined;
6
6
  constructor(partial: Partial<LetterValue>);
7
+ toJSON(): object;
8
+ static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): LetterValue;
7
9
  }
@@ -1,4 +1,5 @@
1
1
  // auto-generated file
2
+ import { expectNumber, expectString, extractEntry } from '../../internal/JsonDecodeUtils.mjs';
2
3
  export class LetterValue {
3
4
  constructor(partial) {
4
5
  this.letter = undefined;
@@ -14,4 +15,33 @@ export class LetterValue {
14
15
  if ('value' in partial)
15
16
  this.value = partial.value;
16
17
  }
18
+ toJSON() {
19
+ const res = {};
20
+ if (this.letter != undefined)
21
+ res['letter'] = this.letter;
22
+ if (this.index != undefined)
23
+ res['index'] = this.index;
24
+ if (this.coefficient != undefined)
25
+ res['coefficient'] = this.coefficient;
26
+ if (this.value != undefined)
27
+ res['value'] = this.value;
28
+ return res;
29
+ }
30
+ static fromJSON(json, ignoreUnknownKeys = false, path = ['LetterValue']) {
31
+ if (typeof json != 'object')
32
+ throw new Error(`Expected json object at path ${path.join("")}`);
33
+ const jCpy = Object.assign({}, json);
34
+ const res = new LetterValue({
35
+ letter: expectString(extractEntry(jCpy, 'letter', false, path), true, [...path, ".letter"]),
36
+ index: expectString(extractEntry(jCpy, 'index', false, path), true, [...path, ".index"]),
37
+ coefficient: expectNumber(extractEntry(jCpy, 'coefficient', false, path), true, false, [...path, ".coefficient"]),
38
+ value: expectNumber(extractEntry(jCpy, 'value', false, path), true, false, [...path, ".value"]),
39
+ });
40
+ if (!ignoreUnknownKeys) {
41
+ const unused = Object.keys(jCpy);
42
+ if (unused.length > 0)
43
+ throw new Error(`Unexpected key(s) for json object LetterValue at path ${path.join("")}: ${unused}`);
44
+ }
45
+ return res;
46
+ }
17
47
  }
@@ -15,4 +15,6 @@ export declare class Measure {
15
15
  referenceRanges: Array<ReferenceRange>;
16
16
  valueWithPrecision: ValueWithPrecision | undefined;
17
17
  constructor(partial: Partial<Measure>);
18
+ toJSON(): object;
19
+ static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): Measure;
18
20
  }
@@ -1,3 +1,8 @@
1
+ // auto-generated file
2
+ import { expectArray, expectNumber, expectObject, expectString, extractEntry } from '../../internal/JsonDecodeUtils.mjs';
3
+ import { CodeStub } from '../base/CodeStub.mjs';
4
+ import { ReferenceRange } from './ReferenceRange.mjs';
5
+ import { ValueWithPrecision } from './ValueWithPrecision.mjs';
1
6
  export class Measure {
2
7
  constructor(partial) {
3
8
  this.value = undefined;
@@ -37,4 +42,56 @@ export class Measure {
37
42
  if ('valueWithPrecision' in partial)
38
43
  this.valueWithPrecision = partial.valueWithPrecision;
39
44
  }
45
+ toJSON() {
46
+ const res = {};
47
+ if (this.value != undefined)
48
+ res['value'] = this.value;
49
+ if (this.ref != undefined)
50
+ res['ref'] = this.ref;
51
+ if (this.severity != undefined)
52
+ res['severity'] = this.severity;
53
+ if (this.severityCode != undefined)
54
+ res['severityCode'] = this.severityCode;
55
+ if (this.evolution != undefined)
56
+ res['evolution'] = this.evolution;
57
+ if (this.unit != undefined)
58
+ res['unit'] = this.unit;
59
+ if (this.unitCodes != undefined)
60
+ res['unitCodes'] = this.unitCodes.map((x0) => x0.toJSON());
61
+ if (this.comment != undefined)
62
+ res['comment'] = this.comment;
63
+ if (this.comparator != undefined)
64
+ res['comparator'] = this.comparator;
65
+ if (this.sign != undefined)
66
+ res['sign'] = this.sign;
67
+ res['referenceRanges'] = this.referenceRanges.map((x0) => x0.toJSON());
68
+ if (this.valueWithPrecision != undefined)
69
+ res['valueWithPrecision'] = this.valueWithPrecision.toJSON();
70
+ return res;
71
+ }
72
+ static fromJSON(json, ignoreUnknownKeys = false, path = ['Measure']) {
73
+ if (typeof json != 'object')
74
+ throw new Error(`Expected json object at path ${path.join("")}`);
75
+ const jCpy = Object.assign({}, json);
76
+ const res = new Measure({
77
+ value: expectNumber(extractEntry(jCpy, 'value', false, path), true, false, [...path, ".value"]),
78
+ ref: expectNumber(extractEntry(jCpy, 'ref', false, path), true, false, [...path, ".ref"]),
79
+ severity: expectNumber(extractEntry(jCpy, 'severity', false, path), true, true, [...path, ".severity"]),
80
+ severityCode: expectString(extractEntry(jCpy, 'severityCode', false, path), true, [...path, ".severityCode"]),
81
+ evolution: expectNumber(extractEntry(jCpy, 'evolution', false, path), true, true, [...path, ".evolution"]),
82
+ unit: expectString(extractEntry(jCpy, 'unit', false, path), true, [...path, ".unit"]),
83
+ unitCodes: expectArray(extractEntry(jCpy, 'unitCodes', false, path), true, [...path, ".unitCodes"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, CodeStub.fromJSON)),
84
+ comment: expectString(extractEntry(jCpy, 'comment', false, path), true, [...path, ".comment"]),
85
+ comparator: expectString(extractEntry(jCpy, 'comparator', false, path), true, [...path, ".comparator"]),
86
+ sign: expectString(extractEntry(jCpy, 'sign', false, path), true, [...path, ".sign"]),
87
+ referenceRanges: expectArray(extractEntry(jCpy, 'referenceRanges', false, path), false, [...path, ".referenceRanges"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, ReferenceRange.fromJSON)),
88
+ valueWithPrecision: expectObject(extractEntry(jCpy, 'valueWithPrecision', false, path), true, ignoreUnknownKeys, [...path, ".valueWithPrecision"], ValueWithPrecision.fromJSON),
89
+ });
90
+ if (!ignoreUnknownKeys) {
91
+ const unused = Object.keys(jCpy);
92
+ if (unused.length > 0)
93
+ throw new Error(`Unexpected key(s) for json object Measure at path ${path.join("")}: ${unused}`);
94
+ }
95
+ return res;
96
+ }
40
97
  }
@@ -41,6 +41,7 @@ export interface MedicalHouseContract extends Encryptable {
41
41
  [key: string]: string;
42
42
  };
43
43
  readonly isEncrypted: boolean;
44
+ toJSON(): object;
44
45
  }
45
46
  export declare class DecryptedMedicalHouseContract {
46
47
  contractId: string | undefined;
@@ -82,6 +83,8 @@ export declare class DecryptedMedicalHouseContract {
82
83
  encryptedSelf: Base64String | undefined;
83
84
  readonly isEncrypted: false;
84
85
  constructor(partial: Partial<DecryptedMedicalHouseContract>);
86
+ toJSON(): object;
87
+ static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): DecryptedMedicalHouseContract;
85
88
  }
86
89
  export declare class EncryptedMedicalHouseContract {
87
90
  contractId: string | undefined;
@@ -123,4 +126,6 @@ export declare class EncryptedMedicalHouseContract {
123
126
  encryptedSelf: Base64String | undefined;
124
127
  readonly isEncrypted: true;
125
128
  constructor(partial: Partial<EncryptedMedicalHouseContract>);
129
+ toJSON(): object;
130
+ static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): EncryptedMedicalHouseContract;
126
131
  }