@icure/be-fhc-api 0.4.0 → 0.4.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 (1563) hide show
  1. package/{dist/api → api}/XHR.d.ts +0 -0
  2. package/{dist/api → api}/XHR.js +0 -0
  3. package/{dist/api → api}/fhcAddressbookApi.d.ts +0 -0
  4. package/{dist/api → api}/fhcAddressbookApi.js +0 -0
  5. package/{dist/api → api}/fhcAdminApi.d.ts +0 -0
  6. package/{dist/api → api}/fhcAdminApi.js +0 -0
  7. package/{dist/api → api}/fhcChapter4Api.d.ts +0 -0
  8. package/{dist/api → api}/fhcChapter4Api.js +0 -0
  9. package/{dist/api → api}/fhcConsentApi.d.ts +0 -0
  10. package/{dist/api → api}/fhcConsentApi.js +0 -0
  11. package/{dist/api → api}/fhcConsultrnApi.d.ts +0 -0
  12. package/{dist/api → api}/fhcConsultrnApi.js +0 -0
  13. package/{dist/api → api}/fhcCryptoApi.d.ts +0 -0
  14. package/{dist/api → api}/fhcCryptoApi.js +0 -0
  15. package/{dist/api → api}/fhcDmgApi.d.ts +0 -0
  16. package/{dist/api → api}/fhcDmgApi.js +0 -0
  17. package/{dist/api → api}/fhcEattestApi.d.ts +0 -0
  18. package/{dist/api → api}/fhcEattestApi.js +0 -0
  19. package/{dist/api → api}/fhcEattestV2Api.d.ts +0 -0
  20. package/{dist/api → api}/fhcEattestV2Api.js +0 -0
  21. package/{dist/api → api}/fhcEfactApi.d.ts +0 -0
  22. package/{dist/api → api}/fhcEfactApi.js +0 -0
  23. package/{dist/api → api}/fhcEhboxApi.d.ts +0 -0
  24. package/{dist/api → api}/fhcEhboxApi.js +0 -0
  25. package/{dist/api → api}/fhcEhboxV3Api.d.ts +0 -0
  26. package/{dist/api → api}/fhcEhboxV3Api.js +0 -0
  27. package/{dist/api → api}/fhcGenInsApi.d.ts +0 -0
  28. package/{dist/api → api}/fhcGenInsApi.js +0 -0
  29. package/api/fhcHubApi.d.ts +454 -0
  30. package/api/fhcHubApi.js +994 -0
  31. package/{dist/api → api}/fhcMemberDataApi.d.ts +0 -0
  32. package/{dist/api → api}/fhcMemberDataApi.js +0 -0
  33. package/api/fhcMhmApi.d.ts +81 -0
  34. package/api/fhcMhmApi.js +169 -0
  35. package/api/fhcRecipeApi.d.ts +169 -0
  36. package/api/fhcRecipeApi.js +368 -0
  37. package/api/fhcRnConsultApi.d.ts +82 -0
  38. package/api/fhcRnConsultApi.js +167 -0
  39. package/api/fhcStsApi.d.ts +99 -0
  40. package/api/fhcStsApi.js +225 -0
  41. package/{dist/api → api}/fhcTarificationApi.d.ts +0 -0
  42. package/{dist/api → api}/fhcTarificationApi.js +0 -0
  43. package/{dist/api → api}/fhcTherLinkApi.d.ts +0 -0
  44. package/{dist/api → api}/fhcTherLinkApi.js +0 -0
  45. package/api/fhcVaccinnetApi.d.ts +69 -0
  46. package/api/fhcVaccinnetApi.js +146 -0
  47. package/fhcApi.d.ts +28 -0
  48. package/fhcApi.js +41 -0
  49. package/{dist/index.d.ts → index.d.ts} +0 -0
  50. package/{dist/index.js → index.js} +0 -0
  51. package/{dist/model → model}/AccessRightListType.d.ts +0 -0
  52. package/{dist/model → model}/AccessRightListType.js +0 -0
  53. package/{dist/model → model}/AccessRightType.d.ts +0 -0
  54. package/{dist/model → model}/AccessRightType.js +0 -0
  55. package/{dist/model → model}/AcknowledgeType.d.ts +0 -0
  56. package/{dist/model → model}/AcknowledgeType.js +0 -0
  57. package/{dist/model → model}/AcknowledgmentType.d.ts +0 -0
  58. package/{dist/model → model}/AcknowledgmentType.js +0 -0
  59. package/model/ActType.d.ts +16 -0
  60. package/model/ActType.js +20 -0
  61. package/model/AddVaccinationsResponseType.d.ts +19 -0
  62. package/model/AddVaccinationsResponseType.js +9 -0
  63. package/{dist/model → model}/AddedDocumentPreview.d.ts +0 -0
  64. package/{dist/model → model}/AddedDocumentPreview.js +0 -0
  65. package/model/Address.d.ts +39 -0
  66. package/model/Address.js +24 -0
  67. package/model/AddressBaseType.d.ts +23 -0
  68. package/model/AddressBaseType.js +9 -0
  69. package/model/AddressCbssBaseType.d.ts +16 -0
  70. package/model/AddressCbssBaseType.js +9 -0
  71. package/model/AddressDeclarationType.d.ts +16 -0
  72. package/model/AddressDeclarationType.js +9 -0
  73. package/{dist/model → model}/AddressType.d.ts +0 -0
  74. package/{dist/model → model}/AddressType.js +0 -0
  75. package/{dist/model → model}/AddressTypeBase.d.ts +0 -0
  76. package/{dist/model → model}/AddressTypeBase.js +0 -0
  77. package/{dist/model → model}/Addressee.d.ts +0 -0
  78. package/{dist/model → model}/Addressee.js +0 -0
  79. package/{dist/model → model}/AdministrationQuantity.d.ts +0 -0
  80. package/{dist/model → model}/AdministrationQuantity.js +0 -0
  81. package/{dist/model → model}/AdministrationunitType.d.ts +0 -0
  82. package/{dist/model → model}/AdministrationunitType.js +0 -0
  83. package/model/AdministratorBaseType.d.ts +19 -0
  84. package/model/AdministratorBaseType.js +9 -0
  85. package/{dist/model → model}/AdviceType.d.ts +0 -0
  86. package/{dist/model → model}/AdviceType.js +0 -0
  87. package/{dist/model → model}/AgreementResponse.d.ts +0 -0
  88. package/model/AgreementResponse.js +10 -0
  89. package/{dist/model → model}/AgreementTransaction.d.ts +0 -0
  90. package/model/AgreementTransaction.js +21 -0
  91. package/{dist/model → model}/AltKeystore.d.ts +0 -0
  92. package/{dist/model → model}/AltKeystore.js +0 -0
  93. package/{dist/model → model}/AltKeystoresList.d.ts +0 -0
  94. package/{dist/model → model}/AltKeystoresList.js +0 -0
  95. package/model/AnomaliesType.d.ts +15 -0
  96. package/model/AnomaliesType.js +20 -0
  97. package/model/Appendix.d.ts +19 -0
  98. package/model/Appendix.js +21 -0
  99. package/{dist/model → model}/Assertion.d.ts +0 -0
  100. package/{dist/model → model}/Assertion.js +0 -0
  101. package/{dist/model → model}/AuthorDto.d.ts +0 -0
  102. package/{dist/model → model}/AuthorDto.js +0 -0
  103. package/{dist/model → model}/AuthorType.d.ts +0 -0
  104. package/{dist/model → model}/AuthorType.js +0 -0
  105. package/{dist/model → model}/AuthorWithPatientDto.d.ts +0 -0
  106. package/{dist/model → model}/AuthorWithPatientDto.js +0 -0
  107. package/model/Base64EncodedKmehr.d.ts +15 -0
  108. package/model/Base64EncodedKmehr.js +21 -0
  109. package/{dist/model → model}/Base64EncryptedDataType.d.ts +0 -0
  110. package/{dist/model → model}/Base64EncryptedDataType.js +0 -0
  111. package/{dist/model → model}/Base64EncryptedValueType.d.ts +0 -0
  112. package/model/Base64EncryptedValueType.js +21 -0
  113. package/{dist/model → model}/BaseID.d.ts +0 -0
  114. package/{dist/model → model}/BaseID.js +0 -0
  115. package/{dist/model → model}/BearerToken.d.ts +0 -0
  116. package/{dist/model → model}/BearerToken.js +0 -0
  117. package/model/BestIdentifierType.d.ts +17 -0
  118. package/model/BestIdentifierType.js +20 -0
  119. package/model/BirthDeceaseType.d.ts +26 -0
  120. package/{dist/model → model}/BirthDeceaseType.js +0 -0
  121. package/model/BirthInfoBaseType.d.ts +19 -0
  122. package/model/BirthInfoBaseType.js +9 -0
  123. package/model/BirthInfoDeclarationType.d.ts +17 -0
  124. package/model/BirthInfoDeclarationType.js +9 -0
  125. package/model/BirthPlace.d.ts +19 -0
  126. package/{dist/model → model}/BirthPlace.js +0 -0
  127. package/{dist/model → model}/BirthResponseType.d.ts +0 -0
  128. package/{dist/model → model}/BirthResponseType.js +0 -0
  129. package/{dist/model → model}/BoxInfo.d.ts +0 -0
  130. package/{dist/model → model}/BoxInfo.js +0 -0
  131. package/{dist/model → model}/BusinessAnomalyType.d.ts +0 -0
  132. package/{dist/model → model}/BusinessAnomalyType.js +0 -0
  133. package/{dist/model → model}/CDACCESSRIGHT.d.ts +0 -0
  134. package/{dist/model → model}/CDACCESSRIGHT.js +0 -0
  135. package/{dist/model → model}/CDACKNOWLEDGMENT.d.ts +0 -0
  136. package/{dist/model → model}/CDACKNOWLEDGMENT.js +0 -0
  137. package/{dist/model → model}/CDADDRESS.d.ts +0 -0
  138. package/{dist/model → model}/CDADDRESS.js +0 -0
  139. package/{dist/model → model}/CDADMINISTRATIONUNIT.d.ts +0 -0
  140. package/{dist/model → model}/CDADMINISTRATIONUNIT.js +0 -0
  141. package/{dist/model → model}/CDCARENETPERSONALPART.d.ts +0 -0
  142. package/{dist/model → model}/CDCARENETPERSONALPART.js +0 -0
  143. package/{dist/model → model}/CDCARENETTHIRDPAYERCONTRACT.d.ts +0 -0
  144. package/{dist/model → model}/CDCARENETTHIRDPAYERCONTRACT.js +0 -0
  145. package/{dist/model → model}/CDCERTAINTY.d.ts +0 -0
  146. package/{dist/model → model}/CDCERTAINTY.js +0 -0
  147. package/{dist/model → model}/CDCIVILSTATE.d.ts +0 -0
  148. package/{dist/model → model}/CDCIVILSTATE.js +0 -0
  149. package/{dist/model → model}/CDCONSENT.d.ts +0 -0
  150. package/{dist/model → model}/CDCONSENT.js +0 -0
  151. package/{dist/model → model}/CDCONTENT.d.ts +0 -0
  152. package/{dist/model → model}/CDCONTENT.js +0 -0
  153. package/{dist/model → model}/CDCOUNTRY.d.ts +0 -0
  154. package/{dist/model → model}/CDCOUNTRY.js +0 -0
  155. package/{dist/model → model}/CDDAYPERIOD.d.ts +0 -0
  156. package/{dist/model → model}/CDDAYPERIOD.js +0 -0
  157. package/{dist/model → model}/CDDRUGCNK.d.ts +0 -0
  158. package/{dist/model → model}/CDDRUGCNK.js +0 -0
  159. package/{dist/model → model}/CDDRUGPRESENTATION.d.ts +0 -0
  160. package/{dist/model → model}/CDDRUGPRESENTATION.js +0 -0
  161. package/{dist/model → model}/CDDRUGROUTE.d.ts +0 -0
  162. package/{dist/model → model}/CDDRUGROUTE.js +0 -0
  163. package/{dist/model → model}/CDEBIRTHPLACE.d.ts +0 -0
  164. package/{dist/model → model}/CDEBIRTHPLACE.js +0 -0
  165. package/{dist/model → model}/CDEMPLOYMENTSITUATION.d.ts +0 -0
  166. package/{dist/model → model}/CDEMPLOYMENTSITUATION.js +0 -0
  167. package/{dist/model → model}/CDENCRYPTIONMETHOD.d.ts +0 -0
  168. package/{dist/model → model}/CDENCRYPTIONMETHOD.js +0 -0
  169. package/{dist/model → model}/CDERROR.d.ts +0 -0
  170. package/{dist/model → model}/CDERROR.js +0 -0
  171. package/{dist/model → model}/CDEXTERNALSOURCE.d.ts +0 -0
  172. package/{dist/model → model}/CDEXTERNALSOURCE.js +0 -0
  173. package/{dist/model → model}/CDFORMULARY.d.ts +0 -0
  174. package/{dist/model → model}/CDFORMULARY.js +0 -0
  175. package/{dist/model → model}/CDGALENICFORM.d.ts +0 -0
  176. package/{dist/model → model}/CDGALENICFORM.js +0 -0
  177. package/{dist/model → model}/CDHCPARTY.d.ts +0 -0
  178. package/{dist/model → model}/CDHCPARTY.js +0 -0
  179. package/model/CDHEADING.d.ts +30 -0
  180. package/{dist/model → model}/CDHEADING.js +0 -0
  181. package/{dist/model → model}/CDINCAPACITY.d.ts +0 -0
  182. package/{dist/model → model}/CDINCAPACITY.js +0 -0
  183. package/{dist/model → model}/CDINCAPACITYREASON.d.ts +0 -0
  184. package/{dist/model → model}/CDINCAPACITYREASON.js +0 -0
  185. package/model/CDINNCLUSTER.d.ts +26 -0
  186. package/{dist/model → model}/CDINNCLUSTER.js +0 -0
  187. package/model/CDITEM.d.ts +56 -0
  188. package/{dist/model → model}/CDITEM.js +0 -0
  189. package/{dist/model → model}/CDLIFECYCLE.d.ts +0 -0
  190. package/{dist/model → model}/CDLIFECYCLE.js +0 -0
  191. package/{dist/model → model}/CDMEDICATION.d.ts +0 -0
  192. package/{dist/model → model}/CDMEDICATION.js +0 -0
  193. package/{dist/model → model}/CDMESSAGE.d.ts +0 -0
  194. package/{dist/model → model}/CDMESSAGE.js +0 -0
  195. package/{dist/model → model}/CDPERIODICITY.d.ts +0 -0
  196. package/{dist/model → model}/CDPERIODICITY.js +0 -0
  197. package/{dist/model → model}/CDQUANTITYPREFIX.d.ts +0 -0
  198. package/{dist/model → model}/CDQUANTITYPREFIX.js +0 -0
  199. package/{dist/model → model}/CDREFSCOPE.d.ts +0 -0
  200. package/{dist/model → model}/CDREFSCOPE.js +0 -0
  201. package/{dist/model → model}/CDSEVERITY.d.ts +0 -0
  202. package/{dist/model → model}/CDSEVERITY.js +0 -0
  203. package/{dist/model → model}/CDSEX.d.ts +0 -0
  204. package/{dist/model → model}/CDSEX.js +0 -0
  205. package/{dist/model → model}/CDSITE.d.ts +0 -0
  206. package/{dist/model → model}/CDSITE.js +0 -0
  207. package/{dist/model → model}/CDSTANDARD.d.ts +0 -0
  208. package/{dist/model → model}/CDSTANDARD.js +0 -0
  209. package/{dist/model → model}/CDSUBSTANCE.d.ts +0 -0
  210. package/{dist/model → model}/CDSUBSTANCE.js +0 -0
  211. package/{dist/model → model}/CDTELECOM.d.ts +0 -0
  212. package/{dist/model → model}/CDTELECOM.js +0 -0
  213. package/{dist/model → model}/CDTEMPORALITY.d.ts +0 -0
  214. package/{dist/model → model}/CDTEMPORALITY.js +0 -0
  215. package/{dist/model → model}/CDTIMEUNIT.d.ts +0 -0
  216. package/{dist/model → model}/CDTIMEUNIT.js +0 -0
  217. package/{dist/model → model}/CDTRANSACTION.d.ts +0 -0
  218. package/{dist/model → model}/CDTRANSACTION.js +0 -0
  219. package/{dist/model → model}/CDUNIT.d.ts +0 -0
  220. package/{dist/model → model}/CDUNIT.js +0 -0
  221. package/{dist/model → model}/CDURGENCY.d.ts +0 -0
  222. package/{dist/model → model}/CDURGENCY.js +0 -0
  223. package/{dist/model → model}/CancelSubscriptionResultWithResponse.d.ts +0 -0
  224. package/model/CancelSubscriptionResultWithResponse.js +10 -0
  225. package/{dist/model → model}/CanonicalizationMethod.d.ts +0 -0
  226. package/{dist/model → model}/CanonicalizationMethod.js +0 -0
  227. package/model/CbssPersonRequestType.d.ts +30 -0
  228. package/model/CbssPersonRequestType.js +9 -0
  229. package/model/CbssPersonResponseType.d.ts +35 -0
  230. package/model/CbssPersonResponseType.js +9 -0
  231. package/{dist/model → model}/CertaintyType.d.ts +0 -0
  232. package/{dist/model → model}/CertaintyType.js +0 -0
  233. package/{dist/model → model}/CertificateInfo.d.ts +0 -0
  234. package/{dist/model → model}/CertificateInfo.js +0 -0
  235. package/{dist/model → model}/CipherData.d.ts +0 -0
  236. package/model/CipherData.js +10 -0
  237. package/{dist/model → model}/CipherReference.d.ts +0 -0
  238. package/{dist/model → model}/CipherReference.js +0 -0
  239. package/model/CivilStateInfoBaseType.d.ts +26 -0
  240. package/model/CivilStateInfoBaseType.js +9 -0
  241. package/model/CivilStateInfoDeclarationType.d.ts +20 -0
  242. package/model/CivilStateInfoDeclarationType.js +9 -0
  243. package/{dist/model → model}/CivilStateResponseType.d.ts +0 -0
  244. package/{dist/model → model}/CivilStateResponseType.js +0 -0
  245. package/model/CivilStateType.d.ts +30 -0
  246. package/{dist/model → model}/CivilStateType.js +0 -0
  247. package/model/CivilStatesBaseType.d.ts +16 -0
  248. package/model/CivilStatesBaseType.js +9 -0
  249. package/model/CivilStatesDeclarationType.d.ts +16 -0
  250. package/model/CivilStatesDeclarationType.js +9 -0
  251. package/{dist/model → model}/CivilStatesResponseType.d.ts +0 -0
  252. package/{dist/model → model}/CivilStatesResponseType.js +0 -0
  253. package/{dist/model → model}/Civilstate.d.ts +0 -0
  254. package/{dist/model → model}/Civilstate.js +0 -0
  255. package/model/Code.d.ts +27 -0
  256. package/{dist/model → model}/Code.js +0 -0
  257. package/{dist/model → model}/CodeResult.d.ts +0 -0
  258. package/{dist/model → model}/CodeResult.js +0 -0
  259. package/{dist/model → model}/CommonOutput.d.ts +0 -0
  260. package/{dist/model → model}/CommonOutput.js +0 -0
  261. package/{dist/model → model}/CommonOutputType.d.ts +0 -0
  262. package/{dist/model → model}/CommonOutputType.js +0 -0
  263. package/{dist/model → model}/CompoundPrescription.d.ts +0 -0
  264. package/{dist/model → model}/CompoundPrescription.js +0 -0
  265. package/{dist/model → model}/CompoundType.d.ts +0 -0
  266. package/{dist/model → model}/CompoundType.js +0 -0
  267. package/{dist/model → model}/CompoundprescriptionType.d.ts +0 -0
  268. package/{dist/model → model}/CompoundprescriptionType.js +0 -0
  269. package/{dist/model → model}/ConditionAbstractType.d.ts +0 -0
  270. package/{dist/model → model}/ConditionAbstractType.js +0 -0
  271. package/{dist/model → model}/Conditions.d.ts +0 -0
  272. package/{dist/model → model}/Conditions.js +0 -0
  273. package/{dist/model → model}/ConfidentialityType.d.ts +0 -0
  274. package/{dist/model → model}/ConfidentialityType.js +0 -0
  275. package/{dist/model → model}/Consent.d.ts +0 -0
  276. package/{dist/model → model}/Consent.js +0 -0
  277. package/{dist/model → model}/ConsentMessageDto.d.ts +0 -0
  278. package/{dist/model → model}/ConsentMessageDto.js +0 -0
  279. package/{dist/model → model}/ConsentTypeDto.d.ts +0 -0
  280. package/{dist/model → model}/ConsentTypeDto.js +0 -0
  281. package/{dist/model → model}/ConsultCurrentSsinResponse.d.ts +0 -0
  282. package/{dist/model → model}/ConsultCurrentSsinResponse.js +0 -0
  283. package/model/ConsultRnAddressDto.d.ts +27 -0
  284. package/{dist/model → model}/ConsultRnAddressDto.js +0 -0
  285. package/{dist/model → model}/ConsultRnPersonDataDto.d.ts +0 -0
  286. package/{dist/model → model}/ConsultRnPersonDataDto.js +0 -0
  287. package/model/ConsultRnPersonDto.d.ts +27 -0
  288. package/{dist/model → model}/ConsultRnPersonDto.js +0 -0
  289. package/{dist/model → model}/ConsultRnPlainAddressDto.d.ts +0 -0
  290. package/{dist/model → model}/ConsultRnPlainAddressDto.js +0 -0
  291. package/model/ContactAddress.d.ts +22 -0
  292. package/model/ContactAddress.js +20 -0
  293. package/model/ContactAddressBaseType.d.ts +34 -0
  294. package/model/ContactAddressBaseType.js +9 -0
  295. package/model/ContactAddressDeclarationType.d.ts +28 -0
  296. package/model/ContactAddressDeclarationType.js +9 -0
  297. package/{dist/model → model}/Content.d.ts +0 -0
  298. package/model/Content.js +10 -0
  299. package/{dist/model → model}/ContentType.d.ts +0 -0
  300. package/{dist/model → model}/ContentType.js +0 -0
  301. package/{dist/model → model}/ContentlocalitemattributeType.d.ts +0 -0
  302. package/{dist/model → model}/ContentlocalitemattributeType.js +0 -0
  303. package/{dist/model → model}/CostType.d.ts +0 -0
  304. package/{dist/model → model}/CostType.js +0 -0
  305. package/{dist/model → model}/CountryType.d.ts +0 -0
  306. package/{dist/model → model}/CountryType.js +0 -0
  307. package/{dist/model → model}/DateType.d.ts +0 -0
  308. package/{dist/model → model}/DateType.js +0 -0
  309. package/{dist/model → model}/DayperiodType.d.ts +0 -0
  310. package/{dist/model → model}/DayperiodType.js +0 -0
  311. package/model/DeceaseInfoBaseType.d.ts +17 -0
  312. package/model/DeceaseInfoBaseType.js +9 -0
  313. package/model/DeceaseInfoDeclarationType.d.ts +17 -0
  314. package/model/DeceaseInfoDeclarationType.js +9 -0
  315. package/{dist/model → model}/DeceaseResponseType.d.ts +0 -0
  316. package/{dist/model → model}/DeceaseResponseType.js +0 -0
  317. package/{dist/model → model}/Denominator.d.ts +0 -0
  318. package/{dist/model → model}/Denominator.js +0 -0
  319. package/{dist/model → model}/DetailType.d.ts +0 -0
  320. package/{dist/model → model}/DetailType.js +0 -0
  321. package/{dist/model → model}/DetailsType.d.ts +0 -0
  322. package/{dist/model → model}/DetailsType.js +0 -0
  323. package/{dist/model → model}/DigestMethod.d.ts +0 -0
  324. package/{dist/model → model}/DigestMethod.js +0 -0
  325. package/{dist/model → model}/DimensionDto.d.ts +0 -0
  326. package/{dist/model → model}/DimensionDto.js +0 -0
  327. package/{dist/model → model}/DiplomaticInformationType.d.ts +0 -0
  328. package/{dist/model → model}/DiplomaticInformationType.js +0 -0
  329. package/model/DiplomaticPostType.d.ts +20 -0
  330. package/{dist/model → model}/DiplomaticPostType.js +0 -0
  331. package/{dist/model → model}/DmgAcknowledge.d.ts +0 -0
  332. package/{dist/model → model}/DmgAcknowledge.js +0 -0
  333. package/{dist/model → model}/DmgClosure.d.ts +0 -0
  334. package/{dist/model → model}/DmgClosure.js +0 -0
  335. package/{dist/model → model}/DmgConsultation.d.ts +0 -0
  336. package/{dist/model → model}/DmgConsultation.js +0 -0
  337. package/{dist/model → model}/DmgExtension.d.ts +0 -0
  338. package/{dist/model → model}/DmgExtension.js +0 -0
  339. package/{dist/model → model}/DmgInscription.d.ts +0 -0
  340. package/{dist/model → model}/DmgInscription.js +0 -0
  341. package/{dist/model → model}/DmgNotification.d.ts +0 -0
  342. package/{dist/model → model}/DmgNotification.js +0 -0
  343. package/{dist/model → model}/DmgRegistration.d.ts +0 -0
  344. package/{dist/model → model}/DmgRegistration.js +0 -0
  345. package/{dist/model → model}/DmgsList.d.ts +0 -0
  346. package/{dist/model → model}/DmgsList.js +0 -0
  347. package/model/Document.d.ts +21 -0
  348. package/model/Document.js +10 -0
  349. package/model/DocumentMessage.d.ts +45 -0
  350. package/{dist/model → model}/DocumentMessage.js +0 -0
  351. package/{dist/model → model}/Duration.d.ts +0 -0
  352. package/{dist/model → model}/Duration.js +0 -0
  353. package/{dist/model → model}/DurationType.d.ts +0 -0
  354. package/{dist/model → model}/DurationType.js +0 -0
  355. package/{dist/model → model}/EHealthBoxType.d.ts +0 -0
  356. package/{dist/model → model}/EHealthBoxType.js +0 -0
  357. package/{dist/model → model}/EIDItem.d.ts +0 -0
  358. package/{dist/model → model}/EIDItem.js +0 -0
  359. package/{dist/model → model}/Eattest.d.ts +0 -0
  360. package/{dist/model → model}/Eattest.js +0 -0
  361. package/{dist/model → model}/EattestAcknowledgeType.d.ts +0 -0
  362. package/{dist/model → model}/EattestAcknowledgeType.js +0 -0
  363. package/{dist/model → model}/EattestCardReading.d.ts +0 -0
  364. package/{dist/model → model}/EattestCardReading.js +0 -0
  365. package/{dist/model → model}/EattestCode.d.ts +0 -0
  366. package/{dist/model → model}/EattestCode.js +0 -0
  367. package/{dist/model → model}/EattestHcParty.d.ts +0 -0
  368. package/{dist/model → model}/EattestHcParty.js +0 -0
  369. package/{dist/model → model}/EattestRequestor.d.ts +0 -0
  370. package/{dist/model → model}/EattestRequestor.js +0 -0
  371. package/{dist/model → model}/EfactMessage.d.ts +0 -0
  372. package/{dist/model → model}/EfactMessage.js +0 -0
  373. package/{dist/model → model}/EfactSendResponse.d.ts +0 -0
  374. package/{dist/model → model}/EfactSendResponse.js +0 -0
  375. package/{dist/model → model}/EncodedSSINType.d.ts +0 -0
  376. package/{dist/model → model}/EncodedSSINType.js +0 -0
  377. package/{dist/model → model}/EncryptedData.d.ts +0 -0
  378. package/{dist/model → model}/EncryptedData.js +0 -0
  379. package/{dist/model → model}/EncryptedElementType.d.ts +0 -0
  380. package/{dist/model → model}/EncryptedElementType.js +0 -0
  381. package/{dist/model → model}/EncryptedKey.d.ts +0 -0
  382. package/{dist/model → model}/EncryptedKey.js +0 -0
  383. package/{dist/model → model}/EncryptedType.d.ts +0 -0
  384. package/{dist/model → model}/EncryptedType.js +0 -0
  385. package/{dist/model → model}/EncryptionMethodType.d.ts +0 -0
  386. package/{dist/model → model}/EncryptionMethodType.js +0 -0
  387. package/{dist/model → model}/EncryptionProperties.d.ts +0 -0
  388. package/{dist/model → model}/EncryptionProperties.js +0 -0
  389. package/{dist/model → model}/EncryptionProperty.d.ts +0 -0
  390. package/{dist/model → model}/EncryptionProperty.js +0 -0
  391. package/{dist/model → model}/EndSubscriptionResultWithResponse.d.ts +0 -0
  392. package/model/EndSubscriptionResultWithResponse.js +10 -0
  393. package/model/EndpointDistributorStatusDto.d.ts +22 -0
  394. package/{dist/model → model}/EndpointDistributorStatusDto.js +0 -0
  395. package/{dist/model → model}/ErrorDetail.d.ts +0 -0
  396. package/{dist/model → model}/ErrorDetail.js +0 -0
  397. package/{dist/model → model}/ErrorDto.d.ts +0 -0
  398. package/{dist/model → model}/ErrorDto.js +0 -0
  399. package/{dist/model → model}/ErrorType.d.ts +0 -0
  400. package/{dist/model → model}/ErrorType.js +0 -0
  401. package/model/Exception.d.ts +21 -0
  402. package/model/Exception.js +9 -0
  403. package/model/ExistingPersons.d.ts +15 -0
  404. package/model/ExistingPersons.js +20 -0
  405. package/{dist/model → model}/ExistingPersonsType.d.ts +0 -0
  406. package/{dist/model → model}/ExistingPersonsType.js +0 -0
  407. package/{dist/model → model}/Externalsource.d.ts +0 -0
  408. package/{dist/model → model}/Externalsource.js +0 -0
  409. package/{dist/model → model}/FCMAXType.d.ts +0 -0
  410. package/{dist/model → model}/FCMAXType.js +0 -0
  411. package/{dist/model → model}/FCMINType.d.ts +0 -0
  412. package/{dist/model → model}/FCMINType.js +0 -0
  413. package/model/FacetDto.d.ts +17 -0
  414. package/{dist/model → model}/FacetDto.js +0 -0
  415. package/{dist/model → model}/FaultType.d.ts +0 -0
  416. package/{dist/model → model}/FaultType.js +0 -0
  417. package/{dist/model → model}/Feedback.d.ts +0 -0
  418. package/{dist/model → model}/Feedback.js +0 -0
  419. package/{dist/model → model}/FinancialInstitutionInformation.d.ts +0 -0
  420. package/{dist/model → model}/FinancialInstitutionInformation.js +0 -0
  421. package/{dist/model → model}/FlatFileMetadata.d.ts +0 -0
  422. package/{dist/model → model}/FlatFileMetadata.js +0 -0
  423. package/{dist/model → model}/FlatFileWithMetadata.d.ts +0 -0
  424. package/{dist/model → model}/FlatFileWithMetadata.js +0 -0
  425. package/{dist/model → model}/FolderType.d.ts +0 -0
  426. package/{dist/model → model}/FolderType.js +0 -0
  427. package/model/ForeignAddressDeclarationType.d.ts +24 -0
  428. package/model/ForeignAddressDeclarationType.js +9 -0
  429. package/{dist/model → model}/FormularyreferenceType.d.ts +0 -0
  430. package/{dist/model → model}/FormularyreferenceType.js +0 -0
  431. package/{dist/model → model}/FrequencyType.d.ts +0 -0
  432. package/{dist/model → model}/FrequencyType.js +0 -0
  433. package/{dist/model → model}/GalenicForm.d.ts +0 -0
  434. package/{dist/model → model}/GalenicForm.js +0 -0
  435. package/{dist/model → model}/GalenicformType.d.ts +0 -0
  436. package/{dist/model → model}/GalenicformType.js +0 -0
  437. package/{dist/model → model}/GenAsyncResponse.d.ts +0 -0
  438. package/{dist/model → model}/GenAsyncResponse.js +0 -0
  439. package/model/GenderInfoBaseType.d.ts +16 -0
  440. package/model/GenderInfoBaseType.js +20 -0
  441. package/model/GenderInfoDeclarationType.d.ts +16 -0
  442. package/model/GenderInfoDeclarationType.js +20 -0
  443. package/model/GenderType.d.ts +32 -0
  444. package/{dist/model → model}/GenderType.js +0 -0
  445. package/{dist/model → model}/GetAccessRightResponse.d.ts +0 -0
  446. package/{dist/model → model}/GetAccessRightResponse.js +0 -0
  447. package/{dist/model → model}/GetPatientAuditTrailResponse.d.ts +0 -0
  448. package/{dist/model → model}/GetPatientAuditTrailResponse.js +0 -0
  449. package/model/GetPrescriptionStatusResult.d.ts +30 -0
  450. package/model/GetPrescriptionStatusResult.js +19 -0
  451. package/model/GetVaccinationsResponseType.d.ts +19 -0
  452. package/model/GetVaccinationsResponseType.js +9 -0
  453. package/model/GivenNameType.d.ts +16 -0
  454. package/model/GivenNameType.js +20 -0
  455. package/{dist/model → model}/HasTherapeuticLinkMessage.d.ts +0 -0
  456. package/{dist/model → model}/HasTherapeuticLinkMessage.js +0 -0
  457. package/{dist/model → model}/HcPartyConsentDto.d.ts +0 -0
  458. package/{dist/model → model}/HcPartyConsentDto.js +0 -0
  459. package/{dist/model → model}/HcPartyDto.d.ts +0 -0
  460. package/{dist/model → model}/HcPartyDto.js +0 -0
  461. package/{dist/model → model}/HcPartyIdDto.d.ts +0 -0
  462. package/{dist/model → model}/HcPartyIdDto.js +0 -0
  463. package/{dist/model → model}/HcpartyType.d.ts +0 -0
  464. package/{dist/model → model}/HcpartyType.js +0 -0
  465. package/{dist/model → model}/HeaderType.d.ts +0 -0
  466. package/{dist/model → model}/HeaderType.js +0 -0
  467. package/{dist/model → model}/HeadingType.d.ts +0 -0
  468. package/{dist/model → model}/HeadingType.js +0 -0
  469. package/model/HealthcareParty.d.ts +50 -0
  470. package/{dist/model → model}/HealthcareParty.js +0 -0
  471. package/{dist/model → model}/HolterType.d.ts +0 -0
  472. package/{dist/model → model}/HolterType.js +0 -0
  473. package/{dist/model → model}/HospitalizedInfoDto.d.ts +0 -0
  474. package/{dist/model → model}/HospitalizedInfoDto.js +0 -0
  475. package/{dist/model → model}/IDHCPARTY.d.ts +0 -0
  476. package/{dist/model → model}/IDHCPARTY.js +0 -0
  477. package/{dist/model → model}/IDINSURANCE.d.ts +0 -0
  478. package/{dist/model → model}/IDINSURANCE.js +0 -0
  479. package/{dist/model → model}/IDKMEHR.d.ts +0 -0
  480. package/{dist/model → model}/IDKMEHR.js +0 -0
  481. package/{dist/model → model}/IDPATIENT.d.ts +0 -0
  482. package/{dist/model → model}/IDPATIENT.js +0 -0
  483. package/{dist/model → model}/IDPROFESSION.d.ts +0 -0
  484. package/{dist/model → model}/IDPROFESSION.js +0 -0
  485. package/model/Id.d.ts +16 -0
  486. package/model/Id.js +20 -0
  487. package/{dist/model → model}/IdentifierType.d.ts +0 -0
  488. package/{dist/model → model}/IdentifierType.js +0 -0
  489. package/{dist/model → model}/IncapacityType.d.ts +0 -0
  490. package/{dist/model → model}/IncapacityType.js +0 -0
  491. package/{dist/model → model}/IncapacityreasonType.d.ts +0 -0
  492. package/{dist/model → model}/IncapacityreasonType.js +0 -0
  493. package/{dist/model → model}/InformationType.d.ts +0 -0
  494. package/{dist/model → model}/InformationType.js +0 -0
  495. package/{dist/model → model}/InhabitantType.d.ts +0 -0
  496. package/{dist/model → model}/InhabitantType.js +0 -0
  497. package/{dist/model → model}/InputStream.d.ts +0 -0
  498. package/{dist/model → model}/InputStream.js +0 -0
  499. package/{dist/model → model}/Insurability.d.ts +0 -0
  500. package/{dist/model → model}/Insurability.js +0 -0
  501. package/{dist/model → model}/InsurabilityInfoDto.d.ts +0 -0
  502. package/{dist/model → model}/InsurabilityInfoDto.js +0 -0
  503. package/{dist/model → model}/InsurabilityItemDto.d.ts +0 -0
  504. package/{dist/model → model}/InsurabilityItemDto.js +0 -0
  505. package/{dist/model → model}/InsuranceType.d.ts +0 -0
  506. package/{dist/model → model}/InsuranceType.js +0 -0
  507. package/{dist/model → model}/Invoice.d.ts +0 -0
  508. package/{dist/model → model}/Invoice.js +0 -0
  509. package/model/InvoiceItem.d.ts +91 -0
  510. package/{dist/model → model}/InvoiceItem.js +0 -0
  511. package/{dist/model → model}/InvoiceSender.d.ts +0 -0
  512. package/{dist/model → model}/InvoiceSender.js +0 -0
  513. package/{dist/model → model}/InvoicesBatch.d.ts +0 -0
  514. package/{dist/model → model}/InvoicesBatch.js +0 -0
  515. package/{dist/model → model}/ItemType.d.ts +0 -0
  516. package/{dist/model → model}/ItemType.js +0 -0
  517. package/{dist/model → model}/JAXBElementReferenceType.d.ts +0 -0
  518. package/{dist/model → model}/JAXBElementReferenceType.js +0 -0
  519. package/{dist/model → model}/JAXBElementSignature.d.ts +0 -0
  520. package/{dist/model → model}/JAXBElementSignature.js +0 -0
  521. package/{dist/model → model}/JAXBElementobject.d.ts +0 -0
  522. package/{dist/model → model}/JAXBElementobject.js +0 -0
  523. package/model/JudgmentType.d.ts +17 -0
  524. package/model/JudgmentType.js +9 -0
  525. package/{dist/model → model}/KeyInfo.d.ts +0 -0
  526. package/{dist/model → model}/KeyInfo.js +0 -0
  527. package/{dist/model → model}/KmehrCd.d.ts +0 -0
  528. package/{dist/model → model}/KmehrCd.js +0 -0
  529. package/{dist/model → model}/KmehrId.d.ts +0 -0
  530. package/{dist/model → model}/KmehrId.js +0 -0
  531. package/{dist/model → model}/KmehrPatientDto.d.ts +0 -0
  532. package/{dist/model → model}/KmehrPatientDto.js +0 -0
  533. package/{dist/model → model}/KmehrQuantity.d.ts +0 -0
  534. package/{dist/model → model}/KmehrQuantity.js +0 -0
  535. package/model/Kmehrmessage.d.ts +26 -0
  536. package/{dist/model → model}/Kmehrmessage.js +0 -0
  537. package/{dist/model → model}/LOCAL.d.ts +0 -0
  538. package/{dist/model → model}/LOCAL.js +0 -0
  539. package/model/LegalCohabitationBaseType.d.ts +19 -0
  540. package/model/LegalCohabitationBaseType.js +9 -0
  541. package/model/LegalCohabitationRegistrationType.d.ts +19 -0
  542. package/model/LegalCohabitationRegistrationType.js +9 -0
  543. package/{dist/model → model}/LifecycleType.d.ts +0 -0
  544. package/{dist/model → model}/LifecycleType.js +0 -0
  545. package/{dist/model → model}/LnkType.d.ts +0 -0
  546. package/model/LnkType.js +61 -0
  547. package/{dist/model → model}/LocalisedString.d.ts +0 -0
  548. package/{dist/model → model}/LocalisedString.js +0 -0
  549. package/{dist/model → model}/LocalitemattributeType.d.ts +0 -0
  550. package/{dist/model → model}/LocalitemattributeType.js +0 -0
  551. package/model/LocalizedDescriptionType.d.ts +16 -0
  552. package/model/LocalizedDescriptionType.js +20 -0
  553. package/{dist/model → model}/LocationBirthPlaceType.d.ts +0 -0
  554. package/{dist/model → model}/LocationBirthPlaceType.js +0 -0
  555. package/model/LocationDeclarationType.d.ts +20 -0
  556. package/model/LocationDeclarationType.js +9 -0
  557. package/model/LocationType.d.ts +20 -0
  558. package/model/LocationType.js +9 -0
  559. package/{dist/model → model}/MaxrefType.d.ts +0 -0
  560. package/{dist/model → model}/MaxrefType.js +0 -0
  561. package/{dist/model → model}/MdaStatus.d.ts +0 -0
  562. package/{dist/model → model}/MdaStatus.js +0 -0
  563. package/{dist/model → model}/Measure.d.ts +0 -0
  564. package/{dist/model → model}/Measure.js +0 -0
  565. package/{dist/model → model}/MedicalHouseInfoDto.d.ts +0 -0
  566. package/{dist/model → model}/MedicalHouseInfoDto.js +0 -0
  567. package/model/Medication.d.ts +57 -0
  568. package/{dist/model → model}/Medication.js +0 -0
  569. package/{dist/model → model}/MedicationRenewal.d.ts +0 -0
  570. package/{dist/model → model}/MedicationRenewal.js +0 -0
  571. package/{dist/model → model}/MedicationType.d.ts +0 -0
  572. package/{dist/model → model}/MedicationType.js +0 -0
  573. package/{dist/model → model}/MedicinalProductType.d.ts +0 -0
  574. package/{dist/model → model}/MedicinalProductType.js +0 -0
  575. package/{dist/model → model}/Medicinalproduct.d.ts +0 -0
  576. package/{dist/model → model}/Medicinalproduct.js +0 -0
  577. package/{dist/model → model}/MemberDataAck.d.ts +0 -0
  578. package/{dist/model → model}/MemberDataAck.js +0 -0
  579. package/model/MemberDataBatchRequestDto.d.ts +18 -0
  580. package/{dist/model → model}/MemberDataBatchRequestDto.js +0 -0
  581. package/{dist/model → model}/MemberDataBatchResponse.d.ts +0 -0
  582. package/{dist/model → model}/MemberDataBatchResponse.js +0 -0
  583. package/{dist/model → model}/MemberDataList.d.ts +0 -0
  584. package/{dist/model → model}/MemberDataList.js +0 -0
  585. package/{dist/model → model}/MemberDataMessage.d.ts +0 -0
  586. package/{dist/model → model}/MemberDataMessage.js +0 -0
  587. package/{dist/model → model}/MemberDataResponse.d.ts +0 -0
  588. package/{dist/model → model}/MemberDataResponse.js +0 -0
  589. package/model/MemberInfoDto.d.ts +19 -0
  590. package/{dist/model → model}/MemberInfoDto.js +0 -0
  591. package/{dist/model → model}/MemberinsuranceType.d.ts +0 -0
  592. package/{dist/model → model}/MemberinsuranceType.js +0 -0
  593. package/{dist/model → model}/Message.d.ts +0 -0
  594. package/{dist/model → model}/Message.js +0 -0
  595. package/{dist/model → model}/MessageOperationResponse.d.ts +0 -0
  596. package/{dist/model → model}/MessageOperationResponse.js +0 -0
  597. package/{dist/model → model}/MessageResponse.d.ts +0 -0
  598. package/{dist/model → model}/MessageResponse.js +0 -0
  599. package/{dist/model → model}/MessagesResponse.d.ts +0 -0
  600. package/{dist/model → model}/MessagesResponse.js +0 -0
  601. package/{dist/model → model}/MiddleNameType.d.ts +0 -0
  602. package/{dist/model → model}/MiddleNameType.js +0 -0
  603. package/model/MinimalAddressType.d.ts +23 -0
  604. package/model/MinimalAddressType.js +9 -0
  605. package/model/MinimalAdministratorType.d.ts +19 -0
  606. package/model/MinimalAdministratorType.js +9 -0
  607. package/model/MinimalBirthInfoType.d.ts +15 -0
  608. package/model/MinimalBirthInfoType.js +20 -0
  609. package/model/MinimalGenderInfoType.d.ts +16 -0
  610. package/model/MinimalGenderInfoType.js +20 -0
  611. package/model/MinimalNameInfoType.d.ts +18 -0
  612. package/model/MinimalNameInfoType.js +9 -0
  613. package/{dist/model → model}/MinrefType.d.ts +0 -0
  614. package/{dist/model → model}/MinrefType.js +0 -0
  615. package/{dist/model → model}/ModelError.d.ts +0 -0
  616. package/{dist/model → model}/ModelError.js +0 -0
  617. package/{dist/model → model}/ModelHelper.d.ts +0 -0
  618. package/{dist/model → model}/ModelHelper.js +0 -0
  619. package/{dist/model → model}/ModelObject.d.ts +0 -0
  620. package/{dist/model → model}/ModelObject.js +0 -0
  621. package/{dist/model → model}/MomentType.d.ts +0 -0
  622. package/{dist/model → model}/MomentType.js +0 -0
  623. package/{dist/model → model}/MppId.d.ts +0 -0
  624. package/{dist/model → model}/MppId.js +0 -0
  625. package/{dist/model → model}/MppPreview.d.ts +0 -0
  626. package/{dist/model → model}/MppPreview.js +0 -0
  627. package/{dist/model → model}/MunicipalityType.d.ts +0 -0
  628. package/{dist/model → model}/MunicipalityType.js +0 -0
  629. package/model/MycarenetConversation.d.ts +19 -0
  630. package/{dist/model → model}/MycarenetConversation.js +0 -0
  631. package/{dist/model → model}/MycarenetError.d.ts +0 -0
  632. package/{dist/model → model}/MycarenetError.js +0 -0
  633. package/{dist/model → model}/NameIDType.d.ts +0 -0
  634. package/{dist/model → model}/NameIDType.js +0 -0
  635. package/model/NameInfoBaseType.d.ts +18 -0
  636. package/model/NameInfoBaseType.js +9 -0
  637. package/model/NameInfoDeclarationType.d.ts +18 -0
  638. package/model/NameInfoDeclarationType.js +9 -0
  639. package/{dist/model → model}/NameType.d.ts +0 -0
  640. package/{dist/model → model}/NameType.js +0 -0
  641. package/model/NationalitiesBaseType.d.ts +16 -0
  642. package/model/NationalitiesBaseType.js +9 -0
  643. package/model/NationalitiesDeclarationType.d.ts +16 -0
  644. package/model/NationalitiesDeclarationType.js +9 -0
  645. package/{dist/model → model}/NationalitiesType.d.ts +0 -0
  646. package/{dist/model → model}/NationalitiesType.js +0 -0
  647. package/{dist/model → model}/Nationality.d.ts +0 -0
  648. package/{dist/model → model}/Nationality.js +0 -0
  649. package/model/NationalityInfoBaseType.d.ts +17 -0
  650. package/model/NationalityInfoBaseType.js +20 -0
  651. package/model/NationalityType.d.ts +31 -0
  652. package/{dist/model → model}/NationalityType.js +0 -0
  653. package/model/NobilityTitleBaseType.d.ts +17 -0
  654. package/model/NobilityTitleBaseType.js +20 -0
  655. package/{dist/model → model}/NobilityTitleType.d.ts +0 -0
  656. package/{dist/model → model}/NobilityTitleType.js +0 -0
  657. package/{dist/model → model}/Nominator.d.ts +0 -0
  658. package/{dist/model → model}/Nominator.js +0 -0
  659. package/{dist/model → model}/PackageType.d.ts +0 -0
  660. package/{dist/model → model}/PackageType.js +0 -0
  661. package/{dist/model → model}/Paginationrequestinfo.d.ts +0 -0
  662. package/{dist/model → model}/Paginationrequestinfo.js +0 -0
  663. package/{dist/model → model}/Paginationresponseinfo.d.ts +0 -0
  664. package/{dist/model → model}/Paginationresponseinfo.js +0 -0
  665. package/{dist/model → model}/ParagraphInfos.d.ts +0 -0
  666. package/{dist/model → model}/ParagraphInfos.js +0 -0
  667. package/{dist/model → model}/ParagraphPreview.d.ts +0 -0
  668. package/{dist/model → model}/ParagraphPreview.js +0 -0
  669. package/model/PartnerType.d.ts +18 -0
  670. package/{dist/model → model}/PartnerType.js +0 -0
  671. package/model/Patient.d.ts +74 -0
  672. package/model/Patient.js +34 -0
  673. package/{dist/model → model}/PatientId.d.ts +0 -0
  674. package/{dist/model → model}/PatientId.js +0 -0
  675. package/{dist/model → model}/PatientIdType.d.ts +0 -0
  676. package/{dist/model → model}/PatientIdType.js +0 -0
  677. package/{dist/model → model}/Payment.d.ts +0 -0
  678. package/{dist/model → model}/Payment.js +0 -0
  679. package/{dist/model → model}/PeriodDto.d.ts +0 -0
  680. package/{dist/model → model}/PeriodDto.js +0 -0
  681. package/{dist/model → model}/PeriodicityType.d.ts +0 -0
  682. package/{dist/model → model}/PeriodicityType.js +0 -0
  683. package/model/PersonIdentificationType.d.ts +31 -0
  684. package/model/PersonIdentificationType.js +9 -0
  685. package/model/PersonIdentificationsResponseType.d.ts +16 -0
  686. package/model/PersonIdentificationsResponseType.js +9 -0
  687. package/model/PersonMid.d.ts +23 -0
  688. package/{dist/model → model}/PersonMid.js +0 -0
  689. package/{dist/model → model}/PersonNameResponseType.d.ts +0 -0
  690. package/{dist/model → model}/PersonNameResponseType.js +0 -0
  691. package/model/PersonResponseResultsType.d.ts +16 -0
  692. package/model/PersonResponseResultsType.js +9 -0
  693. package/{dist/model → model}/PersonResponseType.d.ts +0 -0
  694. package/{dist/model → model}/PersonResponseType.js +0 -0
  695. package/{dist/model → model}/PersonType.d.ts +0 -0
  696. package/{dist/model → model}/PersonType.js +0 -0
  697. package/{dist/model → model}/Personalpart.d.ts +0 -0
  698. package/{dist/model → model}/Personalpart.js +0 -0
  699. package/model/PlainAddressOptionalInceptionDateType.d.ts +20 -0
  700. package/model/PlainAddressOptionalInceptionDateType.js +9 -0
  701. package/model/PlainAddressType.d.ts +20 -0
  702. package/model/PlainAddressType.js +9 -0
  703. package/model/Posology.d.ts +22 -0
  704. package/{dist/model → model}/Posology.js +0 -0
  705. package/model/Prescription.d.ts +21 -0
  706. package/{dist/model → model}/Prescription.js +0 -0
  707. package/model/PrescriptionFullWithFeedback.d.ts +29 -0
  708. package/{dist/model → model}/PrescriptionFullWithFeedback.js +0 -0
  709. package/model/PrescriptionRequest.d.ts +33 -0
  710. package/{dist/model → model}/PrescriptionRequest.js +0 -0
  711. package/{dist/model → model}/PresentationType.d.ts +0 -0
  712. package/{dist/model → model}/PresentationType.js +0 -0
  713. package/{dist/model → model}/ProfessionCode.d.ts +0 -0
  714. package/{dist/model → model}/ProfessionCode.js +0 -0
  715. package/{dist/model → model}/ProfessionType.d.ts +0 -0
  716. package/{dist/model → model}/ProfessionType.js +0 -0
  717. package/{dist/model → model}/PutAccessRightResponse.d.ts +0 -0
  718. package/{dist/model → model}/PutAccessRightResponse.js +0 -0
  719. package/{dist/model → model}/PutPatientConsentResponse.d.ts +0 -0
  720. package/{dist/model → model}/PutPatientConsentResponse.js +0 -0
  721. package/{dist/model → model}/PutTherapeuticLinkResponse.d.ts +0 -0
  722. package/{dist/model → model}/PutTherapeuticLinkResponse.js +0 -0
  723. package/{dist/model → model}/PutTransactionResponseDto.d.ts +0 -0
  724. package/{dist/model → model}/PutTransactionResponseDto.js +0 -0
  725. package/{dist/model → model}/PutTransactionSetResponse.d.ts +0 -0
  726. package/{dist/model → model}/PutTransactionSetResponse.js +0 -0
  727. package/model/PutVisionResult.d.ts +17 -0
  728. package/model/PutVisionResult.js +9 -0
  729. package/{dist/model → model}/QName.d.ts +0 -0
  730. package/{dist/model → model}/QName.js +0 -0
  731. package/{dist/model → model}/QuantityType.d.ts +0 -0
  732. package/{dist/model → model}/QuantityType.js +0 -0
  733. package/{dist/model → model}/Quantityprefix.d.ts +0 -0
  734. package/{dist/model → model}/Quantityprefix.js +0 -0
  735. package/{dist/model → model}/RRMAXType.d.ts +0 -0
  736. package/{dist/model → model}/RRMAXType.js +0 -0
  737. package/{dist/model → model}/RRMINType.d.ts +0 -0
  738. package/{dist/model → model}/RRMINType.js +0 -0
  739. package/{dist/model → model}/RecipeCDHEADING.d.ts +0 -0
  740. package/{dist/model → model}/RecipeCDHEADING.js +0 -0
  741. package/{dist/model → model}/RecipeCDINNCLUSTER.d.ts +0 -0
  742. package/{dist/model → model}/RecipeCDINNCLUSTER.js +0 -0
  743. package/{dist/model → model}/RecipeCDITEM.d.ts +0 -0
  744. package/{dist/model → model}/RecipeCDITEM.js +0 -0
  745. package/{dist/model → model}/RecipeCDTRANSACTION.d.ts +0 -0
  746. package/{dist/model → model}/RecipeCDTRANSACTION.js +0 -0
  747. package/model/RecipeKmehrmessageType.d.ts +18 -0
  748. package/model/RecipeKmehrmessageType.js +9 -0
  749. package/model/RecipePosology.d.ts +16 -0
  750. package/model/RecipePosology.js +9 -0
  751. package/model/RecipeRegimen.d.ts +15 -0
  752. package/model/RecipeRegimen.js +20 -0
  753. package/{dist/model → model}/RecipeauthorType.d.ts +0 -0
  754. package/{dist/model → model}/RecipeauthorType.js +0 -0
  755. package/model/RecipebasicIDKMEHR.d.ts +28 -0
  756. package/{dist/model → model}/RecipebasicIDKMEHR.js +0 -0
  757. package/{dist/model → model}/RecipecompoundprescriptionType.d.ts +0 -0
  758. package/{dist/model → model}/RecipecompoundprescriptionType.js +0 -0
  759. package/{dist/model → model}/RecipecontentType.d.ts +0 -0
  760. package/{dist/model → model}/RecipecontentType.js +0 -0
  761. package/{dist/model → model}/RecipedurationType.d.ts +0 -0
  762. package/{dist/model → model}/RecipedurationType.js +0 -0
  763. package/{dist/model → model}/RecipefolderType.d.ts +0 -0
  764. package/{dist/model → model}/RecipefolderType.js +0 -0
  765. package/{dist/model → model}/RecipefrequencyType.d.ts +0 -0
  766. package/{dist/model → model}/RecipefrequencyType.js +0 -0
  767. package/{dist/model → model}/RecipeheaderType.d.ts +0 -0
  768. package/{dist/model → model}/RecipeheaderType.js +0 -0
  769. package/model/RecipeitemType.d.ts +47 -0
  770. package/{dist/model → model}/RecipeitemType.js +0 -0
  771. package/{dist/model → model}/RecipelifecycleType.d.ts +0 -0
  772. package/{dist/model → model}/RecipelifecycleType.js +0 -0
  773. package/{dist/model → model}/RecipemedicinalProductType.d.ts +0 -0
  774. package/{dist/model → model}/RecipemedicinalProductType.js +0 -0
  775. package/{dist/model → model}/RecipemomentType.d.ts +0 -0
  776. package/{dist/model → model}/RecipemomentType.js +0 -0
  777. package/{dist/model → model}/RecipepatientpersonType.d.ts +0 -0
  778. package/{dist/model → model}/RecipepatientpersonType.js +0 -0
  779. package/{dist/model → model}/RecipequantityType.d.ts +0 -0
  780. package/{dist/model → model}/RecipequantityType.js +0 -0
  781. package/{dist/model → model}/ReciperenewalType.d.ts +0 -0
  782. package/{dist/model → model}/ReciperenewalType.js +0 -0
  783. package/{dist/model → model}/ReciperouteType.d.ts +0 -0
  784. package/{dist/model → model}/ReciperouteType.js +0 -0
  785. package/{dist/model → model}/RecipetemporalityType.d.ts +0 -0
  786. package/{dist/model → model}/RecipetemporalityType.js +0 -0
  787. package/{dist/model → model}/RecipetransactionType.d.ts +0 -0
  788. package/{dist/model → model}/RecipetransactionType.js +0 -0
  789. package/{dist/model → model}/RecipetransactionheadingType.d.ts +0 -0
  790. package/{dist/model → model}/RecipetransactionheadingType.js +0 -0
  791. package/{dist/model → model}/RecipientType.d.ts +0 -0
  792. package/{dist/model → model}/RecipientType.js +0 -0
  793. package/{dist/model → model}/Record.d.ts +0 -0
  794. package/{dist/model → model}/Record.js +0 -0
  795. package/{dist/model → model}/RecordOrSegmentDescription.d.ts +0 -0
  796. package/{dist/model → model}/RecordOrSegmentDescription.js +0 -0
  797. package/{dist/model → model}/Reference.d.ts +0 -0
  798. package/model/Reference.js +10 -0
  799. package/{dist/model → model}/ReferenceList.d.ts +0 -0
  800. package/{dist/model → model}/ReferenceList.js +0 -0
  801. package/{dist/model → model}/ReferenceType.d.ts +0 -0
  802. package/{dist/model → model}/ReferenceType.js +0 -0
  803. package/{dist/model → model}/RefscopeType.d.ts +0 -0
  804. package/{dist/model → model}/RefscopeType.js +0 -0
  805. package/{dist/model → model}/Refvalue.d.ts +0 -0
  806. package/{dist/model → model}/Refvalue.js +0 -0
  807. package/{dist/model → model}/Regimen.d.ts +0 -0
  808. package/{dist/model → model}/Regimen.js +0 -0
  809. package/{dist/model → model}/RegimenItem.d.ts +0 -0
  810. package/{dist/model → model}/RegimenItem.js +0 -0
  811. package/model/RegisterPersonDeclarationType.d.ts +16 -0
  812. package/model/RegisterPersonDeclarationType.js +9 -0
  813. package/{dist/model → model}/RegisterPersonResponseDto.d.ts +0 -0
  814. package/{dist/model → model}/RegisterPersonResponseDto.js +0 -0
  815. package/model/RegisterPersonResultType.d.ts +18 -0
  816. package/model/RegisterPersonResultType.js +9 -0
  817. package/model/RegistrationBailiffType.d.ts +17 -0
  818. package/model/RegistrationBailiffType.js +9 -0
  819. package/model/RemoveVaccinationResponseType.d.ts +18 -0
  820. package/model/RemoveVaccinationResponseType.js +9 -0
  821. package/{dist/model → model}/RenewalType.d.ts +0 -0
  822. package/{dist/model → model}/RenewalType.js +0 -0
  823. package/{dist/model → model}/RequestListType.d.ts +0 -0
  824. package/{dist/model → model}/RequestListType.js +0 -0
  825. package/{dist/model → model}/RequestType.d.ts +0 -0
  826. package/{dist/model → model}/RequestType.js +0 -0
  827. package/model/ResidentialAddress.d.ts +22 -0
  828. package/model/ResidentialAddress.js +20 -0
  829. package/model/ResidentialAddressOptionalInceptionDateType.d.ts +32 -0
  830. package/model/ResidentialAddressOptionalInceptionDateType.js +9 -0
  831. package/{dist/model → model}/ResidentialAddressResponseType.d.ts +0 -0
  832. package/{dist/model → model}/ResidentialAddressResponseType.js +0 -0
  833. package/model/ResidentialAddressType.d.ts +32 -0
  834. package/model/ResidentialAddressType.js +9 -0
  835. package/{dist/model → model}/ResponseListType.d.ts +0 -0
  836. package/{dist/model → model}/ResponseListType.js +0 -0
  837. package/{dist/model → model}/ResponseType.d.ts +0 -0
  838. package/{dist/model → model}/ResponseType.js +0 -0
  839. package/{dist/model → model}/ResultType.d.ts +0 -0
  840. package/{dist/model → model}/ResultType.js +0 -0
  841. package/model/Results.d.ts +20 -0
  842. package/model/Results.js +9 -0
  843. package/{dist/model → model}/RevokeAccessRightResponse.d.ts +0 -0
  844. package/{dist/model → model}/RevokeAccessRightResponse.js +0 -0
  845. package/{dist/model → model}/RevokePatientConsentResponse.d.ts +0 -0
  846. package/{dist/model → model}/RevokePatientConsentResponse.js +0 -0
  847. package/{dist/model → model}/RevokeTherapeuticLinkResponse.d.ts +0 -0
  848. package/{dist/model → model}/RevokeTherapeuticLinkResponse.js +0 -0
  849. package/model/RnConsultConversationDto.d.ts +16 -0
  850. package/model/RnConsultConversationDto.js +20 -0
  851. package/model/RnConsultDeceaseType.d.ts +18 -0
  852. package/model/RnConsultDeceaseType.js +9 -0
  853. package/model/RnConsultNameType.d.ts +17 -0
  854. package/model/RnConsultNameType.js +20 -0
  855. package/model/RnConsultPersonDto.d.ts +43 -0
  856. package/model/RnConsultPersonDto.js +9 -0
  857. package/model/RnConsultPersonMid.d.ts +27 -0
  858. package/model/RnConsultPersonMid.js +9 -0
  859. package/model/RnConsultRegisterPersonResponseDto.d.ts +27 -0
  860. package/model/RnConsultRegisterPersonResponseDto.js +9 -0
  861. package/model/RnConsultSearchByNissResultDto.d.ts +16 -0
  862. package/model/RnConsultSearchByNissResultDto.js +9 -0
  863. package/model/RnConsultSearchPersonBySsinResponseDto.d.ts +27 -0
  864. package/model/RnConsultSearchPersonBySsinResponseDto.js +9 -0
  865. package/model/RnConsultSearchPersonPhoneticallyResponseDto.d.ts +25 -0
  866. package/model/RnConsultSearchPersonPhoneticallyResponseDto.js +9 -0
  867. package/{dist/model → model}/RouteType.d.ts +0 -0
  868. package/{dist/model → model}/RouteType.js +0 -0
  869. package/{dist/model → model}/SamlTokenResult.d.ts +0 -0
  870. package/{dist/model → model}/SamlTokenResult.js +0 -0
  871. package/{dist/model → model}/SearchBySSINReplyDto.d.ts +0 -0
  872. package/{dist/model → model}/SearchBySSINReplyDto.js +0 -0
  873. package/{dist/model → model}/SearchPhoneticReplyDto.d.ts +0 -0
  874. package/{dist/model → model}/SearchPhoneticReplyDto.js +0 -0
  875. package/{dist/model → model}/SendAttestResult.d.ts +0 -0
  876. package/{dist/model → model}/SendAttestResult.js +0 -0
  877. package/{dist/model → model}/SendAttestResultWithResponse.d.ts +0 -0
  878. package/model/SendAttestResultWithResponse.js +10 -0
  879. package/{dist/model → model}/SenderType.d.ts +0 -0
  880. package/{dist/model → model}/SenderType.js +0 -0
  881. package/{dist/model → model}/Serializable.d.ts +0 -0
  882. package/{dist/model → model}/Serializable.js +0 -0
  883. package/{dist/model → model}/SeverityType.d.ts +0 -0
  884. package/{dist/model → model}/SeverityType.js +0 -0
  885. package/{dist/model → model}/SexType.d.ts +0 -0
  886. package/{dist/model → model}/SexType.js +0 -0
  887. package/{dist/model → model}/Signature.d.ts +0 -0
  888. package/{dist/model → model}/Signature.js +0 -0
  889. package/{dist/model → model}/SignatureMethod.d.ts +0 -0
  890. package/{dist/model → model}/SignatureMethod.js +0 -0
  891. package/{dist/model → model}/SignatureValue.d.ts +0 -0
  892. package/model/SignatureValue.js +21 -0
  893. package/{dist/model → model}/SignedInfo.d.ts +0 -0
  894. package/{dist/model → model}/SignedInfo.js +0 -0
  895. package/{dist/model → model}/SigningValue.d.ts +0 -0
  896. package/{dist/model → model}/SigningValue.js +0 -0
  897. package/{dist/model → model}/SiteType.d.ts +0 -0
  898. package/{dist/model → model}/SiteType.js +0 -0
  899. package/{dist/model → model}/Source.d.ts +0 -0
  900. package/{dist/model → model}/Source.js +0 -0
  901. package/model/SpecialNotionType.d.ts +16 -0
  902. package/model/SpecialNotionType.js +20 -0
  903. package/{dist/model → model}/Specialisation.d.ts +0 -0
  904. package/{dist/model → model}/Specialisation.js +0 -0
  905. package/{dist/model → model}/SsinStatusType.d.ts +0 -0
  906. package/{dist/model → model}/SsinStatusType.js +0 -0
  907. package/model/SsinWithCanceledAndReplacesStatusType.d.ts +17 -0
  908. package/model/SsinWithCanceledAndReplacesStatusType.js +20 -0
  909. package/model/StackTraceElement.d.ts +19 -0
  910. package/model/StackTraceElement.js +20 -0
  911. package/{dist/model → model}/StandardAddressType.d.ts +0 -0
  912. package/{dist/model → model}/StandardAddressType.js +0 -0
  913. package/{dist/model → model}/StandardType.d.ts +0 -0
  914. package/{dist/model → model}/StandardType.js +0 -0
  915. package/{dist/model → model}/StartSubscriptionResultWithResponse.d.ts +0 -0
  916. package/model/StartSubscriptionResultWithResponse.js +10 -0
  917. package/{dist/model → model}/StatementAbstractType.d.ts +0 -0
  918. package/{dist/model → model}/StatementAbstractType.js +0 -0
  919. package/{dist/model → model}/Status.d.ts +0 -0
  920. package/{dist/model → model}/Status.js +0 -0
  921. package/{dist/model → model}/StatusCode.d.ts +0 -0
  922. package/{dist/model → model}/StatusCode.js +0 -0
  923. package/{dist/model → model}/StatusDetail.d.ts +0 -0
  924. package/{dist/model → model}/StatusDetail.js +0 -0
  925. package/{dist/model → model}/StatusDto.d.ts +0 -0
  926. package/{dist/model → model}/StatusDto.js +0 -0
  927. package/model/StatusType.d.ts +20 -0
  928. package/model/StatusType.js +9 -0
  929. package/{dist/model → model}/StreetType.d.ts +0 -0
  930. package/{dist/model → model}/StreetType.js +0 -0
  931. package/{dist/model → model}/StrengthType.d.ts +0 -0
  932. package/{dist/model → model}/StrengthType.js +0 -0
  933. package/{dist/model → model}/StringLangType.d.ts +0 -0
  934. package/{dist/model → model}/StringLangType.js +0 -0
  935. package/{dist/model → model}/Subject.d.ts +0 -0
  936. package/{dist/model → model}/Subject.js +0 -0
  937. package/{dist/model → model}/SubjectConfirmation.d.ts +0 -0
  938. package/{dist/model → model}/SubjectConfirmation.js +0 -0
  939. package/{dist/model → model}/SubjectConfirmationDataType.d.ts +0 -0
  940. package/{dist/model → model}/SubjectConfirmationDataType.js +0 -0
  941. package/model/SubregisterBaseType.d.ts +18 -0
  942. package/model/SubregisterBaseType.js +9 -0
  943. package/{dist/model → model}/SubstanceType.d.ts +0 -0
  944. package/{dist/model → model}/SubstanceType.js +0 -0
  945. package/{dist/model → model}/Substanceproduct.d.ts +0 -0
  946. package/{dist/model → model}/Substanceproduct.js +0 -0
  947. package/{dist/model → model}/TAck.d.ts +0 -0
  948. package/model/TAck.js +21 -0
  949. package/{dist/model → model}/Takes.d.ts +0 -0
  950. package/{dist/model → model}/Takes.js +0 -0
  951. package/{dist/model → model}/TarificationConsultationResult.d.ts +0 -0
  952. package/{dist/model → model}/TarificationConsultationResult.js +0 -0
  953. package/model/Telecom.d.ts +33 -0
  954. package/{dist/model → model}/Telecom.js +0 -0
  955. package/{dist/model → model}/TelecomType.d.ts +0 -0
  956. package/{dist/model → model}/TelecomType.js +0 -0
  957. package/{dist/model → model}/TemporalityType.d.ts +0 -0
  958. package/{dist/model → model}/TemporalityType.js +0 -0
  959. package/{dist/model → model}/TemporaryAddressType.d.ts +0 -0
  960. package/{dist/model → model}/TemporaryAddressType.js +0 -0
  961. package/{dist/model → model}/TextType.d.ts +0 -0
  962. package/{dist/model → model}/TextType.js +0 -0
  963. package/{dist/model → model}/TextWithLayoutType.d.ts +0 -0
  964. package/{dist/model → model}/TextWithLayoutType.js +0 -0
  965. package/{dist/model → model}/TherapeuticLinkDto.d.ts +0 -0
  966. package/{dist/model → model}/TherapeuticLinkDto.js +0 -0
  967. package/{dist/model → model}/TherapeuticLinkMessageDto.d.ts +0 -0
  968. package/{dist/model → model}/TherapeuticLinkMessageDto.js +0 -0
  969. package/{dist/model → model}/Thirdpayercontract.d.ts +0 -0
  970. package/{dist/model → model}/Thirdpayercontract.js +0 -0
  971. package/model/Throwable.d.ts +20 -0
  972. package/model/Throwable.js +9 -0
  973. package/{dist/model → model}/TimequantityType.d.ts +0 -0
  974. package/{dist/model → model}/TimequantityType.js +0 -0
  975. package/{dist/model → model}/TimeunitType.d.ts +0 -0
  976. package/{dist/model → model}/TimeunitType.js +0 -0
  977. package/model/TokenResponse.d.ts +14 -0
  978. package/model/TokenResponse.js +20 -0
  979. package/{dist/model → model}/TransactionAccessListType.d.ts +0 -0
  980. package/{dist/model → model}/TransactionAccessListType.js +0 -0
  981. package/{dist/model → model}/TransactionIdType.d.ts +0 -0
  982. package/{dist/model → model}/TransactionIdType.js +0 -0
  983. package/{dist/model → model}/TransactionSummaryDto.d.ts +0 -0
  984. package/{dist/model → model}/TransactionSummaryDto.js +0 -0
  985. package/{dist/model → model}/TransactionType.d.ts +0 -0
  986. package/{dist/model → model}/TransactionType.js +0 -0
  987. package/{dist/model → model}/TransactionWithSpecificTime.d.ts +0 -0
  988. package/{dist/model → model}/TransactionWithSpecificTime.js +0 -0
  989. package/{dist/model → model}/Transactionaccess.d.ts +0 -0
  990. package/{dist/model → model}/Transactionaccess.js +0 -0
  991. package/model/TranscriptionType.d.ts +17 -0
  992. package/model/TranscriptionType.js +9 -0
  993. package/{dist/model → model}/TransferDto.d.ts +0 -0
  994. package/{dist/model → model}/TransferDto.js +0 -0
  995. package/{dist/model → model}/Transform.d.ts +0 -0
  996. package/{dist/model → model}/Transform.js +0 -0
  997. package/{dist/model → model}/Transforms.d.ts +0 -0
  998. package/{dist/model → model}/Transforms.js +0 -0
  999. package/{dist/model → model}/TransformsType.d.ts +0 -0
  1000. package/{dist/model → model}/TransformsType.js +0 -0
  1001. package/{dist/model → model}/UUIDType.d.ts +0 -0
  1002. package/{dist/model → model}/UUIDType.js +0 -0
  1003. package/{dist/model → model}/UnitType.d.ts +0 -0
  1004. package/{dist/model → model}/UnitType.js +0 -0
  1005. package/model/UpdateFeedbackFlagResult.d.ts +17 -0
  1006. package/model/UpdateFeedbackFlagResult.js +9 -0
  1007. package/{dist/model → model}/UrgencyType.d.ts +0 -0
  1008. package/{dist/model → model}/UrgencyType.js +0 -0
  1009. package/model/VaccinationId.d.ts +16 -0
  1010. package/model/VaccinationId.js +20 -0
  1011. package/model/VaccinationStatusType.d.ts +16 -0
  1012. package/model/VaccinationStatusType.js +20 -0
  1013. package/model/VaccineInjection.d.ts +18 -0
  1014. package/model/VaccineInjection.js +20 -0
  1015. package/model/ValidationInfoType.d.ts +17 -0
  1016. package/model/ValidationInfoType.js +20 -0
  1017. package/model/ValidationResult.d.ts +20 -0
  1018. package/model/ValidationResult.js +9 -0
  1019. package/model/VerifyIdResponse.d.ts +21 -0
  1020. package/model/VerifyIdResponse.js +9 -0
  1021. package/{dist/model → model}/VerseInfos.d.ts +0 -0
  1022. package/{dist/model → model}/VerseInfos.js +0 -0
  1023. package/{dist/model → model}/Weekday.d.ts +0 -0
  1024. package/{dist/model → model}/Weekday.js +0 -0
  1025. package/{dist/model → model}/WhereResponseType.d.ts +0 -0
  1026. package/{dist/model → model}/WhereResponseType.js +0 -0
  1027. package/{dist/model → model}/WhereType.d.ts +0 -0
  1028. package/{dist/model → model}/WhereType.js +0 -0
  1029. package/{dist/model → model}/XMLGregorianCalendar.d.ts +0 -0
  1030. package/{dist/model → model}/XMLGregorianCalendar.js +0 -0
  1031. package/{dist/model → model}/Zone.d.ts +0 -0
  1032. package/{dist/model → model}/Zone.js +0 -0
  1033. package/{dist/model → model}/ZoneDescription.d.ts +0 -0
  1034. package/{dist/model → model}/ZoneDescription.js +0 -0
  1035. package/model/models.d.ts +491 -0
  1036. package/model/models.js +503 -0
  1037. package/package.json +4 -37
  1038. package/x-api/message-x-api.d.ts +35 -0
  1039. package/x-api/message-x-api.js +790 -0
  1040. package/x-api/receipt-x-api.d.ts +10 -0
  1041. package/x-api/receipt-x-api.js +42 -0
  1042. package/x-api/utils/efact-parser.d.ts +234 -0
  1043. package/x-api/utils/efact-parser.js +1121 -0
  1044. package/x-api/utils/efact-util.d.ts +28 -0
  1045. package/x-api/utils/efact-util.js +316 -0
  1046. package/x-api/utils/fhc-invoice-sender-util.d.ts +3 -0
  1047. package/x-api/utils/fhc-invoice-sender-util.js +31 -0
  1048. package/x-api/utils/fhc-patient-util.d.ts +3 -0
  1049. package/x-api/utils/fhc-patient-util.js +20 -0
  1050. package/x-api/utils/formatting-util.d.ts +76 -0
  1051. package/x-api/utils/formatting-util.js +218 -0
  1052. package/x-api/utils/hcp-util.d.ts +16 -0
  1053. package/x-api/utils/hcp-util.js +131 -0
  1054. package/x-api/utils/insurability-util.d.ts +22 -0
  1055. package/x-api/utils/insurability-util.js +56 -0
  1056. package/x-api/utils/uuid-encoder.d.ts +44 -0
  1057. package/x-api/utils/uuid-encoder.js +110 -0
  1058. package/.editorconfig +0 -8
  1059. package/.swagger-codegen/VERSION +0 -1
  1060. package/.swagger-codegen-ignore +0 -23
  1061. package/LICENSE +0 -201
  1062. package/api/XHR.ts +0 -142
  1063. package/api/fhcAddressbookApi.ts +0 -274
  1064. package/api/fhcAdminApi.ts +0 -86
  1065. package/api/fhcChapter4Api.ts +0 -516
  1066. package/api/fhcConsentApi.ts +0 -196
  1067. package/api/fhcConsultrnApi.ts +0 -177
  1068. package/api/fhcCryptoApi.ts +0 -182
  1069. package/api/fhcDmgApi.ts +0 -413
  1070. package/api/fhcEattestApi.ts +0 -227
  1071. package/api/fhcEattestV2Api.ts +0 -403
  1072. package/api/fhcEfactApi.ts +0 -261
  1073. package/api/fhcEhboxApi.ts +0 -329
  1074. package/api/fhcEhboxV3Api.ts +0 -378
  1075. package/api/fhcGenInsApi.ts +0 -141
  1076. package/api/fhcHubApi.ts +0 -1400
  1077. package/api/fhcMemberDataApi.ts +0 -445
  1078. package/api/fhcMhmApi.ts +0 -231
  1079. package/api/fhcRecipeApi.ts +0 -473
  1080. package/api/fhcStsApi.ts +0 -252
  1081. package/api/fhcTarificationApi.ts +0 -120
  1082. package/api/fhcTherLinkApi.ts +0 -431
  1083. package/dist/api/fhcHubApi.d.ts +0 -450
  1084. package/dist/api/fhcHubApi.js +0 -986
  1085. package/dist/api/fhcMhmApi.d.ts +0 -81
  1086. package/dist/api/fhcMhmApi.js +0 -169
  1087. package/dist/api/fhcRecipeApi.d.ts +0 -158
  1088. package/dist/api/fhcRecipeApi.js +0 -346
  1089. package/dist/api/fhcStsApi.d.ts +0 -88
  1090. package/dist/api/fhcStsApi.js +0 -201
  1091. package/dist/fhcApi.d.ts +0 -20
  1092. package/dist/fhcApi.js +0 -32
  1093. package/dist/model/Address.d.ts +0 -35
  1094. package/dist/model/Address.js +0 -20
  1095. package/dist/model/AgreementResponse.js +0 -10
  1096. package/dist/model/AgreementTransaction.js +0 -21
  1097. package/dist/model/Appendix.d.ts +0 -19
  1098. package/dist/model/Appendix.js +0 -21
  1099. package/dist/model/Base64EncryptedValueType.js +0 -21
  1100. package/dist/model/BirthDeceaseType.d.ts +0 -26
  1101. package/dist/model/BirthPlace.d.ts +0 -17
  1102. package/dist/model/CDHEADING.d.ts +0 -30
  1103. package/dist/model/CDINNCLUSTER.d.ts +0 -26
  1104. package/dist/model/CDITEM.d.ts +0 -56
  1105. package/dist/model/CancelSubscriptionResultWithResponse.js +0 -10
  1106. package/dist/model/CipherData.js +0 -10
  1107. package/dist/model/CivilStateType.d.ts +0 -30
  1108. package/dist/model/Code.d.ts +0 -27
  1109. package/dist/model/ConsultRnAddressDto.d.ts +0 -27
  1110. package/dist/model/ConsultRnPersonDto.d.ts +0 -27
  1111. package/dist/model/Content.js +0 -10
  1112. package/dist/model/DiplomaticPostType.d.ts +0 -19
  1113. package/dist/model/Document.d.ts +0 -21
  1114. package/dist/model/Document.js +0 -10
  1115. package/dist/model/DocumentMessage.d.ts +0 -45
  1116. package/dist/model/EndSubscriptionResultWithResponse.js +0 -10
  1117. package/dist/model/EndpointDistributorStatusDto.d.ts +0 -16
  1118. package/dist/model/FacetDto.d.ts +0 -17
  1119. package/dist/model/GenderType.d.ts +0 -32
  1120. package/dist/model/HealthcareParty.d.ts +0 -50
  1121. package/dist/model/InvoiceItem.d.ts +0 -90
  1122. package/dist/model/Kmehrmessage.d.ts +0 -18
  1123. package/dist/model/LnkType.js +0 -61
  1124. package/dist/model/Medication.d.ts +0 -57
  1125. package/dist/model/MemberDataBatchRequestDto.d.ts +0 -18
  1126. package/dist/model/MemberInfoDto.d.ts +0 -19
  1127. package/dist/model/MycarenetConversation.d.ts +0 -18
  1128. package/dist/model/NationalityType.d.ts +0 -31
  1129. package/dist/model/PartnerType.d.ts +0 -19
  1130. package/dist/model/Patient.d.ts +0 -70
  1131. package/dist/model/Patient.js +0 -30
  1132. package/dist/model/PersonMid.d.ts +0 -23
  1133. package/dist/model/Posology.d.ts +0 -16
  1134. package/dist/model/Prescription.d.ts +0 -20
  1135. package/dist/model/PrescriptionFullWithFeedback.d.ts +0 -28
  1136. package/dist/model/PrescriptionRequest.d.ts +0 -33
  1137. package/dist/model/RecipebasicIDKMEHR.d.ts +0 -28
  1138. package/dist/model/RecipeitemType.d.ts +0 -47
  1139. package/dist/model/Reference.js +0 -10
  1140. package/dist/model/SendAttestResultWithResponse.js +0 -10
  1141. package/dist/model/SignatureValue.js +0 -21
  1142. package/dist/model/StartSubscriptionResultWithResponse.js +0 -10
  1143. package/dist/model/TAck.js +0 -21
  1144. package/dist/model/Telecom.d.ts +0 -33
  1145. package/dist/model/models.d.ts +0 -402
  1146. package/dist/model/models.js +0 -414
  1147. package/fhcApi.ts +0 -20
  1148. package/index.ts +0 -3
  1149. package/model/AccessRightListType.ts +0 -22
  1150. package/model/AccessRightType.ts +0 -26
  1151. package/model/AcknowledgeType.ts +0 -23
  1152. package/model/AcknowledgmentType.ts +0 -22
  1153. package/model/AddedDocumentPreview.ts +0 -28
  1154. package/model/Address.ts +0 -48
  1155. package/model/AddressType.ts +0 -35
  1156. package/model/AddressTypeBase.ts +0 -35
  1157. package/model/Addressee.ts +0 -29
  1158. package/model/AdministrationQuantity.ts +0 -24
  1159. package/model/AdministrationunitType.ts +0 -22
  1160. package/model/AdviceType.ts +0 -22
  1161. package/model/AgreementResponse.ts +0 -35
  1162. package/model/AgreementTransaction.ts +0 -45
  1163. package/model/AltKeystore.ts +0 -22
  1164. package/model/AltKeystoresList.ts +0 -22
  1165. package/model/Appendix.ts +0 -25
  1166. package/model/Assertion.ts +0 -36
  1167. package/model/AuthorDto.ts +0 -22
  1168. package/model/AuthorType.ts +0 -22
  1169. package/model/AuthorWithPatientDto.ts +0 -24
  1170. package/model/Base64EncryptedDataType.ts +0 -24
  1171. package/model/Base64EncryptedValueType.ts +0 -26
  1172. package/model/BaseID.ts +0 -22
  1173. package/model/BearerToken.ts +0 -21
  1174. package/model/BirthDeceaseType.ts +0 -32
  1175. package/model/BirthPlace.ts +0 -23
  1176. package/model/BirthResponseType.ts +0 -23
  1177. package/model/BoxInfo.ts +0 -27
  1178. package/model/BusinessAnomalyType.ts +0 -23
  1179. package/model/CDACCESSRIGHT.ts +0 -38
  1180. package/model/CDACKNOWLEDGMENT.ts +0 -34
  1181. package/model/CDADDRESS.ts +0 -33
  1182. package/model/CDADMINISTRATIONUNIT.ts +0 -25
  1183. package/model/CDCARENETPERSONALPART.ts +0 -33
  1184. package/model/CDCARENETTHIRDPAYERCONTRACT.ts +0 -25
  1185. package/model/CDCERTAINTY.ts +0 -35
  1186. package/model/CDCIVILSTATE.ts +0 -26
  1187. package/model/CDCONSENT.ts +0 -39
  1188. package/model/CDCONTENT.ts +0 -368
  1189. package/model/CDCOUNTRY.ts +0 -33
  1190. package/model/CDDAYPERIOD.ts +0 -68
  1191. package/model/CDDRUGCNK.ts +0 -32
  1192. package/model/CDDRUGPRESENTATION.ts +0 -25
  1193. package/model/CDDRUGROUTE.ts +0 -25
  1194. package/model/CDEBIRTHPLACE.ts +0 -33
  1195. package/model/CDEMPLOYMENTSITUATION.ts +0 -34
  1196. package/model/CDENCRYPTIONMETHOD.ts +0 -35
  1197. package/model/CDERROR.ts +0 -33
  1198. package/model/CDEXTERNALSOURCE.ts +0 -33
  1199. package/model/CDFORMULARY.ts +0 -32
  1200. package/model/CDGALENICFORM.ts +0 -32
  1201. package/model/CDHCPARTY.ts +0 -36
  1202. package/model/CDHEADING.ts +0 -36
  1203. package/model/CDINCAPACITY.ts +0 -46
  1204. package/model/CDINCAPACITYREASON.ts +0 -52
  1205. package/model/CDINNCLUSTER.ts +0 -32
  1206. package/model/CDITEM.ts +0 -92
  1207. package/model/CDLIFECYCLE.ts +0 -86
  1208. package/model/CDMEDICATION.ts +0 -34
  1209. package/model/CDMESSAGE.ts +0 -42
  1210. package/model/CDPERIODICITY.ts +0 -25
  1211. package/model/CDQUANTITYPREFIX.ts +0 -34
  1212. package/model/CDREFSCOPE.ts +0 -33
  1213. package/model/CDSEVERITY.ts +0 -32
  1214. package/model/CDSEX.ts +0 -35
  1215. package/model/CDSITE.ts +0 -32
  1216. package/model/CDSTANDARD.ts +0 -25
  1217. package/model/CDSUBSTANCE.ts +0 -34
  1218. package/model/CDTELECOM.ts +0 -32
  1219. package/model/CDTEMPORALITY.ts +0 -42
  1220. package/model/CDTIMEUNIT.ts +0 -33
  1221. package/model/CDTRANSACTION.ts +0 -51
  1222. package/model/CDUNIT.ts +0 -34
  1223. package/model/CDURGENCY.ts +0 -25
  1224. package/model/CancelSubscriptionResultWithResponse.ts +0 -37
  1225. package/model/CanonicalizationMethod.ts +0 -22
  1226. package/model/CertaintyType.ts +0 -22
  1227. package/model/CertificateInfo.ts +0 -25
  1228. package/model/CipherData.ts +0 -27
  1229. package/model/CipherReference.ts +0 -23
  1230. package/model/CivilStateResponseType.ts +0 -29
  1231. package/model/CivilStateType.ts +0 -36
  1232. package/model/CivilStatesResponseType.ts +0 -22
  1233. package/model/Civilstate.ts +0 -22
  1234. package/model/Code.ts +0 -29
  1235. package/model/CodeResult.ts +0 -27
  1236. package/model/CommonOutput.ts +0 -23
  1237. package/model/CommonOutputType.ts +0 -23
  1238. package/model/CompoundPrescription.ts +0 -24
  1239. package/model/CompoundType.ts +0 -30
  1240. package/model/CompoundprescriptionType.ts +0 -32
  1241. package/model/ConditionAbstractType.ts +0 -19
  1242. package/model/Conditions.ts +0 -25
  1243. package/model/ConfidentialityType.ts +0 -22
  1244. package/model/Consent.ts +0 -28
  1245. package/model/ConsentMessageDto.ts +0 -25
  1246. package/model/ConsentTypeDto.ts +0 -28
  1247. package/model/ConsultCurrentSsinResponse.ts +0 -27
  1248. package/model/ConsultRnAddressDto.ts +0 -33
  1249. package/model/ConsultRnPersonDataDto.ts +0 -33
  1250. package/model/ConsultRnPersonDto.ts +0 -33
  1251. package/model/ConsultRnPlainAddressDto.ts +0 -23
  1252. package/model/Content.ts +0 -30
  1253. package/model/ContentType.ts +0 -68
  1254. package/model/ContentlocalitemattributeType.ts +0 -37
  1255. package/model/CostType.ts +0 -23
  1256. package/model/CountryType.ts +0 -22
  1257. package/model/DateType.ts +0 -27
  1258. package/model/DayperiodType.ts +0 -22
  1259. package/model/DeceaseResponseType.ts +0 -23
  1260. package/model/Denominator.ts +0 -22
  1261. package/model/DetailType.ts +0 -25
  1262. package/model/DetailsType.ts +0 -22
  1263. package/model/DigestMethod.ts +0 -22
  1264. package/model/DimensionDto.ts +0 -22
  1265. package/model/DiplomaticInformationType.ts +0 -25
  1266. package/model/DiplomaticPostType.ts +0 -25
  1267. package/model/DmgAcknowledge.ts +0 -35
  1268. package/model/DmgClosure.ts +0 -45
  1269. package/model/DmgConsultation.ts +0 -44
  1270. package/model/DmgExtension.ts +0 -43
  1271. package/model/DmgInscription.ts +0 -51
  1272. package/model/DmgNotification.ts +0 -35
  1273. package/model/DmgRegistration.ts +0 -33
  1274. package/model/DmgsList.ts +0 -41
  1275. package/model/Document.ts +0 -31
  1276. package/model/DocumentMessage.ts +0 -47
  1277. package/model/Duration.ts +0 -23
  1278. package/model/DurationType.ts +0 -23
  1279. package/model/EHealthBoxType.ts +0 -24
  1280. package/model/EIDItem.ts +0 -25
  1281. package/model/Eattest.ts +0 -22
  1282. package/model/EattestAcknowledgeType.ts +0 -23
  1283. package/model/EattestCardReading.ts +0 -27
  1284. package/model/EattestCode.ts +0 -56
  1285. package/model/EattestHcParty.ts +0 -25
  1286. package/model/EattestRequestor.ts +0 -23
  1287. package/model/EfactMessage.ts +0 -31
  1288. package/model/EfactSendResponse.ts +0 -31
  1289. package/model/EncodedSSINType.ts +0 -22
  1290. package/model/EncryptedData.ts +0 -32
  1291. package/model/EncryptedElementType.ts +0 -24
  1292. package/model/EncryptedKey.ts +0 -36
  1293. package/model/EncryptedType.ts +0 -32
  1294. package/model/EncryptionMethodType.ts +0 -22
  1295. package/model/EncryptionProperties.ts +0 -23
  1296. package/model/EncryptionProperty.ts +0 -24
  1297. package/model/EndSubscriptionResultWithResponse.ts +0 -37
  1298. package/model/EndpointDistributorStatusDto.ts +0 -22
  1299. package/model/ErrorDetail.ts +0 -45
  1300. package/model/ErrorDto.ts +0 -25
  1301. package/model/ErrorType.ts +0 -27
  1302. package/model/ExistingPersonsType.ts +0 -22
  1303. package/model/Externalsource.ts +0 -22
  1304. package/model/FCMAXType.ts +0 -22
  1305. package/model/FCMINType.ts +0 -22
  1306. package/model/FacetDto.ts +0 -23
  1307. package/model/FaultType.ts +0 -26
  1308. package/model/Feedback.ts +0 -24
  1309. package/model/FinancialInstitutionInformation.ts +0 -26
  1310. package/model/FlatFileMetadata.ts +0 -26
  1311. package/model/FlatFileWithMetadata.ts +0 -23
  1312. package/model/FolderType.ts +0 -32
  1313. package/model/FormularyreferenceType.ts +0 -23
  1314. package/model/FrequencyType.ts +0 -31
  1315. package/model/GalenicForm.ts +0 -23
  1316. package/model/GalenicformType.ts +0 -24
  1317. package/model/GenAsyncResponse.ts +0 -27
  1318. package/model/GenderType.ts +0 -38
  1319. package/model/GetAccessRightResponse.ts +0 -26
  1320. package/model/GetPatientAuditTrailResponse.ts +0 -26
  1321. package/model/HasTherapeuticLinkMessage.ts +0 -23
  1322. package/model/HcPartyConsentDto.ts +0 -27
  1323. package/model/HcPartyDto.ts +0 -34
  1324. package/model/HcPartyIdDto.ts +0 -22
  1325. package/model/HcpartyType.ts +0 -31
  1326. package/model/HeaderType.ts +0 -43
  1327. package/model/HeadingType.ts +0 -33
  1328. package/model/HealthcareParty.ts +0 -56
  1329. package/model/HolterType.ts +0 -48
  1330. package/model/HospitalizedInfoDto.ts +0 -23
  1331. package/model/IDHCPARTY.ts +0 -45
  1332. package/model/IDINSURANCE.ts +0 -31
  1333. package/model/IDKMEHR.ts +0 -34
  1334. package/model/IDPATIENT.ts +0 -35
  1335. package/model/IDPROFESSION.ts +0 -31
  1336. package/model/IdentifierType.ts +0 -21
  1337. package/model/IncapacityType.ts +0 -26
  1338. package/model/IncapacityreasonType.ts +0 -22
  1339. package/model/InformationType.ts +0 -22
  1340. package/model/InhabitantType.ts +0 -26
  1341. package/model/InputStream.ts +0 -19
  1342. package/model/Insurability.ts +0 -30
  1343. package/model/InsurabilityInfoDto.ts +0 -46
  1344. package/model/InsurabilityItemDto.ts +0 -28
  1345. package/model/InsuranceType.ts +0 -37
  1346. package/model/Invoice.ts +0 -53
  1347. package/model/InvoiceItem.ts +0 -116
  1348. package/model/InvoiceSender.ts +0 -31
  1349. package/model/InvoicesBatch.ts +0 -33
  1350. package/model/ItemType.ts +0 -83
  1351. package/model/JAXBElementReferenceType.ts +0 -27
  1352. package/model/JAXBElementSignature.ts +0 -27
  1353. package/model/JAXBElementobject.ts +0 -26
  1354. package/model/KeyInfo.ts +0 -22
  1355. package/model/KmehrCd.ts +0 -26
  1356. package/model/KmehrId.ts +0 -26
  1357. package/model/KmehrPatientDto.ts +0 -32
  1358. package/model/KmehrQuantity.ts +0 -23
  1359. package/model/Kmehrmessage.ts +0 -24
  1360. package/model/LOCAL.ts +0 -26
  1361. package/model/LifecycleType.ts +0 -22
  1362. package/model/LnkType.ts +0 -101
  1363. package/model/LocalisedString.ts +0 -32
  1364. package/model/LocalitemattributeType.ts +0 -26
  1365. package/model/LocationBirthPlaceType.ts +0 -26
  1366. package/model/MaxrefType.ts +0 -23
  1367. package/model/MdaStatus.ts +0 -22
  1368. package/model/Measure.ts +0 -28
  1369. package/model/MedicalHouseInfoDto.ts +0 -25
  1370. package/model/Medication.ts +0 -69
  1371. package/model/MedicationRenewal.ts +0 -23
  1372. package/model/MedicationType.ts +0 -41
  1373. package/model/MedicinalProductType.ts +0 -25
  1374. package/model/Medicinalproduct.ts +0 -26
  1375. package/model/MemberDataAck.ts +0 -24
  1376. package/model/MemberDataBatchRequestDto.ts +0 -24
  1377. package/model/MemberDataBatchResponse.ts +0 -31
  1378. package/model/MemberDataList.ts +0 -29
  1379. package/model/MemberDataMessage.ts +0 -33
  1380. package/model/MemberDataResponse.ts +0 -32
  1381. package/model/MemberInfoDto.ts +0 -25
  1382. package/model/MemberinsuranceType.ts +0 -23
  1383. package/model/Message.ts +0 -37
  1384. package/model/MessageOperationResponse.ts +0 -22
  1385. package/model/MessageResponse.ts +0 -23
  1386. package/model/MessagesResponse.ts +0 -23
  1387. package/model/MiddleNameType.ts +0 -22
  1388. package/model/MinrefType.ts +0 -23
  1389. package/model/ModelError.ts +0 -25
  1390. package/model/ModelHelper.ts +0 -17
  1391. package/model/ModelObject.ts +0 -24
  1392. package/model/MomentType.ts +0 -27
  1393. package/model/MppId.ts +0 -22
  1394. package/model/MppPreview.ts +0 -47
  1395. package/model/MunicipalityType.ts +0 -24
  1396. package/model/MycarenetConversation.ts +0 -24
  1397. package/model/MycarenetError.ts +0 -35
  1398. package/model/NameIDType.ts +0 -25
  1399. package/model/NameType.ts +0 -34
  1400. package/model/NationalitiesType.ts +0 -22
  1401. package/model/Nationality.ts +0 -22
  1402. package/model/NationalityType.ts +0 -37
  1403. package/model/NobilityTitleType.ts +0 -23
  1404. package/model/Nominator.ts +0 -22
  1405. package/model/PackageType.ts +0 -22
  1406. package/model/Paginationrequestinfo.ts +0 -21
  1407. package/model/Paginationresponseinfo.ts +0 -22
  1408. package/model/ParagraphInfos.ts +0 -40
  1409. package/model/ParagraphPreview.ts +0 -26
  1410. package/model/PartnerType.ts +0 -25
  1411. package/model/Patient.ts +0 -82
  1412. package/model/PatientId.ts +0 -22
  1413. package/model/PatientIdType.ts +0 -22
  1414. package/model/Payment.ts +0 -22
  1415. package/model/PeriodDto.ts +0 -22
  1416. package/model/PeriodicityType.ts +0 -22
  1417. package/model/PersonMid.ts +0 -29
  1418. package/model/PersonNameResponseType.ts +0 -25
  1419. package/model/PersonResponseType.ts +0 -38
  1420. package/model/PersonType.ts +0 -50
  1421. package/model/Personalpart.ts +0 -27
  1422. package/model/Posology.ts +0 -22
  1423. package/model/Prescription.ts +0 -26
  1424. package/model/PrescriptionFullWithFeedback.ts +0 -34
  1425. package/model/PrescriptionRequest.ts +0 -39
  1426. package/model/PresentationType.ts +0 -22
  1427. package/model/ProfessionCode.ts +0 -23
  1428. package/model/ProfessionType.ts +0 -24
  1429. package/model/PutAccessRightResponse.ts +0 -24
  1430. package/model/PutPatientConsentResponse.ts +0 -24
  1431. package/model/PutTherapeuticLinkResponse.ts +0 -24
  1432. package/model/PutTransactionResponseDto.ts +0 -24
  1433. package/model/PutTransactionSetResponse.ts +0 -26
  1434. package/model/QName.ts +0 -23
  1435. package/model/QuantityType.ts +0 -23
  1436. package/model/Quantityprefix.ts +0 -22
  1437. package/model/RRMAXType.ts +0 -22
  1438. package/model/RRMINType.ts +0 -22
  1439. package/model/RecipeCDHEADING.ts +0 -36
  1440. package/model/RecipeCDINNCLUSTER.ts +0 -32
  1441. package/model/RecipeCDITEM.ts +0 -92
  1442. package/model/RecipeCDTRANSACTION.ts +0 -49
  1443. package/model/RecipeauthorType.ts +0 -22
  1444. package/model/RecipebasicIDKMEHR.ts +0 -34
  1445. package/model/RecipecompoundprescriptionType.ts +0 -22
  1446. package/model/RecipecontentType.ts +0 -26
  1447. package/model/RecipedurationType.ts +0 -23
  1448. package/model/RecipefolderType.ts +0 -26
  1449. package/model/RecipefrequencyType.ts +0 -31
  1450. package/model/RecipeheaderType.ts +0 -41
  1451. package/model/RecipeitemType.ts +0 -53
  1452. package/model/RecipelifecycleType.ts +0 -22
  1453. package/model/RecipemedicinalProductType.ts +0 -25
  1454. package/model/RecipemomentType.ts +0 -27
  1455. package/model/RecipepatientpersonType.ts +0 -51
  1456. package/model/RecipequantityType.ts +0 -23
  1457. package/model/ReciperenewalType.ts +0 -23
  1458. package/model/ReciperouteType.ts +0 -22
  1459. package/model/RecipetemporalityType.ts +0 -22
  1460. package/model/RecipetransactionType.ts +0 -33
  1461. package/model/RecipetransactionheadingType.ts +0 -26
  1462. package/model/RecipientType.ts +0 -23
  1463. package/model/Record.ts +0 -26
  1464. package/model/RecordOrSegmentDescription.ts +0 -22
  1465. package/model/Reference.ts +0 -32
  1466. package/model/ReferenceList.ts +0 -22
  1467. package/model/ReferenceType.ts +0 -22
  1468. package/model/RefscopeType.ts +0 -24
  1469. package/model/Refvalue.ts +0 -26
  1470. package/model/Regimen.ts +0 -21
  1471. package/model/RegimenItem.ts +0 -29
  1472. package/model/RegisterPersonResponseDto.ts +0 -29
  1473. package/model/RenewalType.ts +0 -25
  1474. package/model/RequestListType.ts +0 -30
  1475. package/model/RequestType.ts +0 -28
  1476. package/model/ResidentialAddressResponseType.ts +0 -31
  1477. package/model/ResponseListType.ts +0 -30
  1478. package/model/ResponseType.ts +0 -28
  1479. package/model/ResultType.ts +0 -24
  1480. package/model/RevokeAccessRightResponse.ts +0 -24
  1481. package/model/RevokePatientConsentResponse.ts +0 -24
  1482. package/model/RevokeTherapeuticLinkResponse.ts +0 -24
  1483. package/model/RouteType.ts +0 -22
  1484. package/model/SamlTokenResult.ts +0 -25
  1485. package/model/SearchBySSINReplyDto.ts +0 -27
  1486. package/model/SearchPhoneticReplyDto.ts +0 -27
  1487. package/model/SendAttestResult.ts +0 -29
  1488. package/model/SendAttestResultWithResponse.ts +0 -36
  1489. package/model/SenderType.ts +0 -22
  1490. package/model/Serializable.ts +0 -19
  1491. package/model/SeverityType.ts +0 -22
  1492. package/model/SexType.ts +0 -22
  1493. package/model/Signature.ts +0 -28
  1494. package/model/SignatureMethod.ts +0 -22
  1495. package/model/SignatureValue.ts +0 -26
  1496. package/model/SignedInfo.ts +0 -27
  1497. package/model/SigningValue.ts +0 -23
  1498. package/model/SiteType.ts +0 -24
  1499. package/model/Source.ts +0 -25
  1500. package/model/Specialisation.ts +0 -23
  1501. package/model/SsinStatusType.ts +0 -23
  1502. package/model/StandardAddressType.ts +0 -28
  1503. package/model/StandardType.ts +0 -24
  1504. package/model/StartSubscriptionResultWithResponse.ts +0 -38
  1505. package/model/StatementAbstractType.ts +0 -19
  1506. package/model/Status.ts +0 -25
  1507. package/model/StatusCode.ts +0 -22
  1508. package/model/StatusDetail.ts +0 -21
  1509. package/model/StatusDto.ts +0 -23
  1510. package/model/StreetType.ts +0 -22
  1511. package/model/StrengthType.ts +0 -23
  1512. package/model/StringLangType.ts +0 -22
  1513. package/model/Subject.ts +0 -28
  1514. package/model/SubjectConfirmation.ts +0 -29
  1515. package/model/SubjectConfirmationDataType.ts +0 -28
  1516. package/model/SubstanceType.ts +0 -23
  1517. package/model/Substanceproduct.ts +0 -28
  1518. package/model/TAck.ts +0 -28
  1519. package/model/Takes.ts +0 -22
  1520. package/model/TarificationConsultationResult.ts +0 -46
  1521. package/model/Telecom.ts +0 -51
  1522. package/model/TelecomType.ts +0 -25
  1523. package/model/TemporalityType.ts +0 -22
  1524. package/model/TemporaryAddressType.ts +0 -25
  1525. package/model/TextType.ts +0 -22
  1526. package/model/TextWithLayoutType.ts +0 -22
  1527. package/model/TherapeuticLinkDto.ts +0 -29
  1528. package/model/TherapeuticLinkMessageDto.ts +0 -25
  1529. package/model/Thirdpayercontract.ts +0 -22
  1530. package/model/TimequantityType.ts +0 -23
  1531. package/model/TimeunitType.ts +0 -22
  1532. package/model/TransactionAccessListType.ts +0 -22
  1533. package/model/TransactionIdType.ts +0 -22
  1534. package/model/TransactionSummaryDto.ts +0 -33
  1535. package/model/TransactionType.ts +0 -46
  1536. package/model/TransactionWithSpecificTime.ts +0 -28
  1537. package/model/Transactionaccess.ts +0 -28
  1538. package/model/TransferDto.ts +0 -23
  1539. package/model/Transform.ts +0 -22
  1540. package/model/Transforms.ts +0 -22
  1541. package/model/TransformsType.ts +0 -22
  1542. package/model/UUIDType.ts +0 -21
  1543. package/model/UnitType.ts +0 -22
  1544. package/model/UrgencyType.ts +0 -22
  1545. package/model/VerseInfos.ts +0 -60
  1546. package/model/Weekday.ts +0 -23
  1547. package/model/WhereResponseType.ts +0 -25
  1548. package/model/WhereType.ts +0 -26
  1549. package/model/XMLGregorianCalendar.ts +0 -34
  1550. package/model/Zone.ts +0 -25
  1551. package/model/ZoneDescription.ts +0 -35
  1552. package/model/models.ts +0 -402
  1553. package/swagger-codegen-generators.jar +0 -0
  1554. package/tsconfig.json +0 -21
  1555. package/x-api/message-x-api.ts +0 -1169
  1556. package/x-api/utils/efact-parser.ts +0 -1600
  1557. package/x-api/utils/efact-util.ts +0 -451
  1558. package/x-api/utils/fhc-invoice-sender-util.ts +0 -36
  1559. package/x-api/utils/fhc-patient-util.ts +0 -18
  1560. package/x-api/utils/formatting-util.ts +0 -220
  1561. package/x-api/utils/hcp-util.ts +0 -138
  1562. package/x-api/utils/insurability-util.ts +0 -57
  1563. package/x-api/utils/uuid-encoder.ts +0 -127
@@ -0,0 +1,790 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MessageXApi = void 0;
4
+ const api_1 = require("@icure/api");
5
+ const _ = require("lodash");
6
+ const moment = require("moment");
7
+ const efact_util_1 = require("./utils/efact-util");
8
+ const formatting_util_1 = require("./utils/formatting-util");
9
+ const models_1 = require("../model/models");
10
+ const efact_parser_1 = require("./utils/efact-parser");
11
+ class EfactSendResponseWithError extends models_1.EfactSendResponse {
12
+ constructor(json) {
13
+ super(json);
14
+ }
15
+ }
16
+ class MessageXApi {
17
+ constructor(api, crypto, documentXApi, insuranceApi, entityReferenceApi, fhcReceiptXApi, invoiceXApi, patientApi) {
18
+ this.api = api;
19
+ this.documentXApi = documentXApi;
20
+ this.insuranceApi = insuranceApi;
21
+ this.entityReferenceApi = entityReferenceApi;
22
+ this.receiptXApi = fhcReceiptXApi;
23
+ this.invoiceXApi = invoiceXApi;
24
+ this.patientApi = patientApi;
25
+ this.crypto = crypto;
26
+ }
27
+ saveDmgsListRequest(user, req, requestDate) {
28
+ return this.api
29
+ .newInstance(user, {
30
+ // tslint:disable-next-line:no-bitwise
31
+ transportGuid: "GMD:OUT:" +
32
+ ((req.commonOutput && req.commonOutput.inputReference) ||
33
+ req.tack.appliesTo ||
34
+ "").replace("urn:nip:reference:input:", ""),
35
+ fromHealthcarePartyId: user.healthcarePartyId,
36
+ sent: +new Date(),
37
+ metas: {
38
+ type: "listrequest",
39
+ date: moment().format("DD/MM/YYYY"),
40
+ requestDate: requestDate ? moment(requestDate).format("DD/MM/YYYY") : ""
41
+ },
42
+ subject: "Lists request",
43
+ senderReferences: req.commonOutput
44
+ })
45
+ .then(msg => this.api.createMessage(msg))
46
+ .then(msg => {
47
+ return this.documentXApi
48
+ .newInstance(user, msg, {
49
+ mainUti: "public.json",
50
+ name: `${msg.subject}_content.json`
51
+ })
52
+ .then(doc => this.documentXApi.createDocument(doc))
53
+ .then(doc => this.documentXApi.setDocumentAttachment(doc.id, undefined /*TODO provide keys for encryption*/, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(req)))))
54
+ .then(() => msg);
55
+ });
56
+ }
57
+ processDmgMessagesList(user, hcp, list, docXApi) {
58
+ const ackHashes = [];
59
+ let promAck = Promise.resolve(null);
60
+ _.each(list.acks, ack => {
61
+ const ref = (ack.appliesTo || "").replace("urn:nip:reference:input:", "");
62
+ promAck = promAck
63
+ .then(() => this.api.findMessagesByTransportGuid(`GMD:OUT:${ref}`, false, undefined, undefined, 100))
64
+ .then(parents => {
65
+ const msgsForHcp = ((parents && parents.rows) || []).filter((p) => p.responsible === hcp.id);
66
+ if (!msgsForHcp.length) {
67
+ throw new Error(`Cannot find parent with ref ${ref}`);
68
+ }
69
+ const parent = msgsForHcp[0];
70
+ (parent.metas || (parent.metas = {}))[`tack.${ack.io}`] = ((ack.date && moment(ack.date)) ||
71
+ moment()).format("YYYYMMDDHHmmss");
72
+ return this.api.modifyMessage(parent);
73
+ })
74
+ .catch(e => {
75
+ console.log(e.message);
76
+ return null;
77
+ })
78
+ .then(() => this.receiptXApi.logSCReceipt(ack, user, hcp.id, "dmg", "listAck", [
79
+ `nip:pin:valuehash:${ack.valueHash}`
80
+ ]))
81
+ .then(receipt => {
82
+ ack.valueHash && ackHashes.push(ack.valueHash);
83
+ return receipt;
84
+ });
85
+ });
86
+ const patsDmgs = {};
87
+ const msgHashes = [];
88
+ let promMsg = promAck.then(() => []);
89
+ _.each(list.lists, dmgsMsgList => {
90
+ const metas = { type: "list" };
91
+ _.each(dmgsMsgList.inscriptions, i => {
92
+ i.inss &&
93
+ (patsDmgs[i.inss] || (patsDmgs[i.inss] = [])).push({
94
+ date: moment(i.from).format("DD/MM/YYYY"),
95
+ from: moment(i.from).format("DD/MM/YYYY"),
96
+ to: i.to,
97
+ hcp: this.makeHcp(i.hcParty),
98
+ payments: (i.payment1Amount
99
+ ? [
100
+ {
101
+ amount: i.payment1Amount,
102
+ currency: i.payment1Currency,
103
+ date: i.payment1Date,
104
+ ref: i.payment1Ref
105
+ }
106
+ ]
107
+ : []).concat(i.payment2Amount
108
+ ? [
109
+ {
110
+ amount: i.payment2Amount,
111
+ currency: i.payment2Currency,
112
+ date: i.payment2Date,
113
+ ref: i.payment2Ref
114
+ }
115
+ ]
116
+ : [])
117
+ });
118
+ });
119
+ promMsg = promMsg.then(acc => {
120
+ let ref = (dmgsMsgList.appliesTo || "").replace("urn:nip:reference:input:", "");
121
+ return this.api
122
+ .findMessagesByTransportGuid(`GMD:OUT:${ref}`, false, undefined, undefined, 100)
123
+ .then(parents => {
124
+ const msgsForHcp = ((parents && parents.rows) || []).filter((p) => p.responsible === hcp.id);
125
+ if (!msgsForHcp.length) {
126
+ throw new Error(`Cannot find parent with ref ${ref}`);
127
+ }
128
+ const parent = msgsForHcp[0];
129
+ return this.saveMessageInDb(user, "List", dmgsMsgList, hcp, metas, docXApi, dmgsMsgList.date, undefined, parent && parent.id).then(msg => {
130
+ dmgsMsgList.valueHash && msgHashes.push(dmgsMsgList.valueHash);
131
+ acc.push(msg);
132
+ return acc;
133
+ });
134
+ })
135
+ .catch(e => {
136
+ console.log(e.message);
137
+ return acc;
138
+ });
139
+ });
140
+ });
141
+ _.each(list.closures, closure => {
142
+ const metas = {
143
+ type: "closure",
144
+ date: (closure.endOfPreviousDmg && moment(closure.endOfPreviousDmg).format("DD/MM/YYYY")) ||
145
+ null,
146
+ closure: "true",
147
+ endOfPreviousDmg: (closure.endOfPreviousDmg && moment(closure.endOfPreviousDmg).format("DD/MM/YYYY")) ||
148
+ null,
149
+ beginOfNewDmg: (closure.beginOfNewDmg && moment(closure.beginOfNewDmg).format("DD/MM/YYYY")) || null,
150
+ previousHcp: this.makeHcp(closure.previousHcParty),
151
+ newHcp: this.makeHcp(closure.newHcParty),
152
+ ssin: closure.inss || null,
153
+ firstName: closure.firstName || null,
154
+ lastName: closure.lastName || null,
155
+ io: closure.io || null
156
+ };
157
+ closure.inss && (patsDmgs[closure.inss] || (patsDmgs[closure.inss] = [])).push(metas);
158
+ promMsg = promMsg.then(acc => {
159
+ return this.saveMessageInDb(user, "Closure", closure, hcp, metas, docXApi, closure.endOfPreviousDmg, closure.inss).then(msg => {
160
+ closure.valueHash && msgHashes.push(closure.valueHash);
161
+ acc.push(msg);
162
+ return acc;
163
+ });
164
+ });
165
+ });
166
+ _.each(list.extensions, ext => {
167
+ const metas = {
168
+ type: "extension",
169
+ date: (ext.encounterDate && moment(ext.encounterDate).format("DD/MM/YYYY")) || null,
170
+ from: (ext.encounterDate && moment(ext.encounterDate).format("DD/MM/YYYY")) || null,
171
+ hcp: this.makeHcp(ext.hcParty),
172
+ claim: ext.claim || null,
173
+ ssin: ext.inss || null,
174
+ firstName: ext.firstName || null,
175
+ lastName: ext.lastName || null,
176
+ io: ext.io || null
177
+ };
178
+ ext.inss && (patsDmgs[ext.inss] || (patsDmgs[ext.inss] = [])).push(metas);
179
+ promMsg = promMsg.then(acc => {
180
+ return this.saveMessageInDb(user, "Extension", ext, hcp, metas, docXApi, ext.encounterDate, ext.inss).then(msg => {
181
+ ext.valueHash && msgHashes.push(ext.valueHash);
182
+ acc.push(msg);
183
+ return acc;
184
+ });
185
+ });
186
+ });
187
+ return promMsg.then(() => Promise.all(_.chunk(Object.keys(patsDmgs), 100).map(ssins => this.patientApi
188
+ .filterByWithUser(user, new api_1.FilterChainPatient({
189
+ filter: new api_1.AbstractFilterPatient({
190
+ $type: "PatientByHcPartyAndSsinsFilter",
191
+ healthcarePartyId: user.healthcarePartyId,
192
+ ssins: ssins
193
+ })
194
+ }), undefined, undefined, 1000, 0, undefined, false)
195
+ .then((pats) => this.patientApi.bulkUpdatePatients((pats.rows || []).map(p => {
196
+ const actions = _.sortBy(patsDmgs[p.ssin], a => moment(a.date, "DD/MM/YYYY").format("YYYYMMDD"));
197
+ const latestAction = actions.length && actions[actions.length - 1];
198
+ let phcp = (p.patientHealthCareParties || (p.patientHealthCareParties = [])) &&
199
+ p.patientHealthCareParties.find(phcp => phcp.healthcarePartyId === user.healthcarePartyId);
200
+ if (!phcp) {
201
+ p.patientHealthCareParties.push((phcp = new api_1.PatientHealthCareParty({
202
+ healthcarePartyId: user.healthcarePartyId,
203
+ referralPeriods: []
204
+ })));
205
+ }
206
+ if (!phcp.referralPeriods) {
207
+ phcp.referralPeriods = [];
208
+ }
209
+ const rp = (phcp.referralPeriods && phcp.referralPeriods.find(per => !per.endDate)) ||
210
+ (phcp.referralPeriods[phcp.referralPeriods.length] = new api_1.ReferralPeriod({}));
211
+ const actionDate = Number(moment(latestAction.date, "DD/MM/YYYY").format("YYYYMMDD"));
212
+ if (latestAction) {
213
+ if (latestAction.closure) {
214
+ rp.endDate = actionDate;
215
+ rp.comment = `-> ${latestAction.newHcp}`;
216
+ }
217
+ else {
218
+ if (actionDate > (rp.startDate || 0)) {
219
+ rp.endDate = actionDate;
220
+ phcp.referralPeriods.push(new api_1.ReferralPeriod({ startDate: actionDate }));
221
+ }
222
+ }
223
+ }
224
+ return p;
225
+ }))))).then(() => [ackHashes, msgHashes]));
226
+ }
227
+ makeHcp(hcParty) {
228
+ if (!hcParty) {
229
+ return null;
230
+ }
231
+ return `${hcParty.firstname || ""} ${hcParty.familyname || ""} ${hcParty.name ||
232
+ ""} [${(hcParty.ids &&
233
+ (hcParty.ids.find(id => id.s === models_1.IDHCPARTY.SEnum.IDHCPARTY) || {}).value) ||
234
+ "-"}]`;
235
+ }
236
+ saveMessageInDb(user, msgName, dmgMessage, hcp, metas, docXApi, date, inss, parentId) {
237
+ return this.api
238
+ .newInstance(user, {
239
+ // tslint:disable-next-line:no-bitwise
240
+ transportGuid: "GMD:IN:" + dmgMessage.reference,
241
+ fromAddress: dmgMessage.io,
242
+ sent: date && +date,
243
+ toHealthcarePartyId: hcp.id,
244
+ recipients: [hcp.id],
245
+ recipientsType: "org.taktik.icure.entities.HealthcareParty",
246
+ received: +new Date(),
247
+ metas: metas,
248
+ parentId: parentId,
249
+ subject: inss
250
+ ? `${msgName} from IO ${dmgMessage.io} for ${inss}`
251
+ : `${msgName} from IO ${dmgMessage.io}`,
252
+ senderReferences: {
253
+ inputReference: dmgMessage.commonOutput && dmgMessage.commonOutput.inputReference,
254
+ outputReference: dmgMessage.commonOutput && dmgMessage.commonOutput.outputReference,
255
+ nipReference: dmgMessage.commonOutput && dmgMessage.commonOutput.nipReference
256
+ }
257
+ })
258
+ .then(msg => this.api.createMessage(msg))
259
+ .then(msg => {
260
+ return docXApi
261
+ .newInstance(user, msg, {
262
+ mainUti: "public.json",
263
+ name: `${msg.subject}_content.json`
264
+ })
265
+ .then(doc => docXApi.createDocument(doc))
266
+ .then(doc => docXApi.setDocumentAttachment(doc.id, undefined /*TODO provide keys for encryption*/, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(dmgMessage)))))
267
+ .then(() => msg);
268
+ });
269
+ }
270
+ saveDmgListRequestInDb(user, tack, resultMajor, appliesTo, hcp, date, inss) {
271
+ return this.api
272
+ .newInstance(user, {
273
+ // tslint:disable-next-line:no-bitwise
274
+ transportGuid: "GMD:OUT:LIST" + appliesTo,
275
+ sent: date && +date,
276
+ toHealthcarePartyId: hcp.id,
277
+ recipients: [hcp.id],
278
+ recipientsType: "org.taktik.icure.entities.HealthcareParty",
279
+ received: +new Date(),
280
+ metas: { tack: tack, resultMajor: resultMajor },
281
+ subject: inss ? `Dmg list request for ${inss}` : `Dmg list request`,
282
+ senderReferences: {
283
+ inputReference: appliesTo && _.last(appliesTo.split(":"))
284
+ }
285
+ })
286
+ .then(msg => this.api.createMessage(msg));
287
+ }
288
+ extractErrorMessage(error) {
289
+ if (!error)
290
+ return;
291
+ const code1 = Number(error.rejectionCode1);
292
+ const code2 = Number(error.rejectionCode2);
293
+ const code3 = Number(error.rejectionCode3);
294
+ const desc1 = (error.rejectionDescr1 && error.rejectionDescr1.trim()) || "";
295
+ const desc2 = (error.rejectionDescr2 && error.rejectionDescr2.trim()) || "";
296
+ const desc3 = (error.rejectionDescr3 && error.rejectionDescr3.trim()) || "";
297
+ return code1 || code2 || code3 || desc1 || desc2 || desc3
298
+ ? _([
299
+ code1 || desc1.length ? `${code1 || "XXXXXX"}: ${desc1 || " — "}` : null,
300
+ code2 || desc2.length ? `${code2 || "XXXXXX"}: ${desc2 || " — "}` : null,
301
+ code3 || desc3.length ? `${code3 || "XXXXXX"}: ${desc3 || " — "}` : null
302
+ ])
303
+ .compact()
304
+ .uniq()
305
+ .filter(err => err.indexOf("510119") < 0)
306
+ .join("; ")
307
+ : undefined;
308
+ }
309
+ extractErrors(parsedRecords) {
310
+ const errors = (parsedRecords.et10 && parsedRecords.et10.errorDetail
311
+ ? [parsedRecords.et10.errorDetail]
312
+ : [])
313
+ .concat(_.flatMap(parsedRecords.records, r => {
314
+ const errors = [];
315
+ if (r.et20 && r.et20.errorDetail) {
316
+ errors.push(r.et20.errorDetail);
317
+ }
318
+ _.each(r.items, i => {
319
+ if (i.et50 && i.et50.errorDetail)
320
+ errors.push(i.et50.errorDetail);
321
+ if (i.et51 && i.et51.errorDetail)
322
+ errors.push(i.et51.errorDetail);
323
+ if (i.et52 && i.et52.errorDetail)
324
+ errors.push(i.et52.errorDetail);
325
+ });
326
+ if (r.et80 && r.et80.errorDetail) {
327
+ errors.push(r.et80.errorDetail);
328
+ }
329
+ return errors;
330
+ }))
331
+ .concat(parsedRecords.et90 && parsedRecords.et90.errorDetail ? [parsedRecords.et90.errorDetail] : []);
332
+ return _.compact(_.map(errors, error => this.extractErrorMessage(error)));
333
+ }
334
+ processTack(user, hcp, efactMessage) {
335
+ if (!efactMessage.tack) {
336
+ return Promise.reject(new Error("Invalid tack"));
337
+ }
338
+ const refStr = _.get(efactMessage, "tack.appliesTo", "")
339
+ .split(":")
340
+ .pop();
341
+ if (!refStr) {
342
+ return Promise.reject(new Error(`Cannot find input reference from tack: ${_.get(efactMessage, "tack.appliesTo")}`));
343
+ }
344
+ const ref = Number(refStr) % 10000000000;
345
+ return this.api
346
+ .findMessagesByTransportGuid("EFACT:BATCH:" + ref, false, undefined, undefined, 100)
347
+ .then(parents => {
348
+ const msgsForHcp = ((parents && parents.rows) || []).filter((p) => p.responsible === hcp.id);
349
+ if (!msgsForHcp.length) {
350
+ throw new Error(`Cannot find parent with ref ${ref}`);
351
+ }
352
+ const parentMessage = msgsForHcp[0];
353
+ return this.receiptXApi.iccApi
354
+ .createReceipt(new api_1.Receipt({
355
+ documentId: parentMessage.id,
356
+ references: [
357
+ `mycarenet:efact:inputReference:${ref}`,
358
+ efactMessage.tack.appliesTo,
359
+ efactMessage.tack.reference
360
+ ]
361
+ }))
362
+ .then((rcpt) => this.receiptXApi.iccApi.setReceiptAttachment(rcpt.id, "tack", "", (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(efactMessage)))))
363
+ .then(() => {
364
+ parentMessage.status = parentMessage.status | (1 << 8); /*STATUS_SUBMITTED*/
365
+ // Reset error
366
+ if (parentMessage.metas && parentMessage.metas.errors) {
367
+ parentMessage.metas.sendingError = parentMessage.metas.errors;
368
+ delete parentMessage.metas.errors;
369
+ }
370
+ return this.api.modifyMessage(parentMessage);
371
+ });
372
+ });
373
+ }
374
+ // Pass invoicePrefix if you want to generate the invoice reference from entityRef
375
+ processEfactMessage(user, hcp, efactMessage, invoicePrefix, invoicePrefixer) {
376
+ const ref = efactMessage.commonOutput.inputReference
377
+ ? Number(efactMessage.commonOutput.inputReference) % 10000000000
378
+ : Number(efactMessage.commonOutput.outputReference.replace(/\D+/g, "")) % 10000000000;
379
+ return this.api
380
+ .findMessagesByTransportGuid("EFACT:BATCH:" + ref, false, undefined, undefined, 100)
381
+ .then(parents => {
382
+ const msgsForHcp = _.filter(parents && parents.rows, (p) => p.responsible === hcp.id);
383
+ if (!msgsForHcp.length) {
384
+ throw new Error(`Cannot find parent with ref ${ref}`);
385
+ }
386
+ const messageType = efactMessage.detail.substr(0, 6);
387
+ const parser = messageType === "920098"
388
+ ? new efact_parser_1.EfactMessage920098Reader(efactMessage)
389
+ : messageType === "920099"
390
+ ? new efact_parser_1.EfactMessage920099Reader(efactMessage)
391
+ : messageType === "920900"
392
+ ? new efact_parser_1.EfactMessage920900Reader(efactMessage)
393
+ : messageType === "920999"
394
+ ? new efact_parser_1.EfactMessage920999Reader(efactMessage)
395
+ : messageType === "931000"
396
+ ? new efact_parser_1.EfactMessage931000Reader(efactMessage)
397
+ : null;
398
+ if (!parser) {
399
+ throw Error(`Unsupported message type ${messageType}`);
400
+ }
401
+ const parsedRecords = parser.read();
402
+ if (!parsedRecords) {
403
+ throw new Error("Cannot parse...");
404
+ }
405
+ // Find message for Hcp based on the invoiceReference if present (!931000)
406
+ const fileReference = _.get(parsedRecords, "et10.invoiceReference");
407
+ const parentMessage = fileReference
408
+ ? _.find(msgsForHcp, m => (0, efact_util_1.uuidBase36)(m.id) === fileReference.trim())
409
+ : msgsForHcp[0];
410
+ if (!parentMessage) {
411
+ throw new Error(`Cannot match parent with fileReference for file with ref ${ref}`);
412
+ }
413
+ const errors = this.extractErrors(parsedRecords);
414
+ const statuses = (["920999", "920099"].includes(messageType) ? 1 << 17 /*STATUS_FULL_ERROR*/ : 0) |
415
+ (["920900"].includes(messageType) && errors.length
416
+ ? 1 << 16 /*STATUS_PARTIAL_SUCCESS*/
417
+ : 0) |
418
+ (["920900"].includes(messageType) && !errors.length
419
+ ? 1 << 15 /*STATUS_FULL_SUCCESS*/
420
+ : 0) |
421
+ (["920999"].includes(messageType) ? 1 << 12 /*STATUS_REJECTED*/ : 0) |
422
+ (["920900", "920098", "920099"].includes(messageType) ? 1 << 11 /*STATUS_ACCEPTED*/ : 0) |
423
+ (["920098"].includes(messageType) && errors.length
424
+ ? 1 << 22 /*STATUS_ERRORS_IN_PRELIMINARY_CONTROL*/
425
+ : 0) |
426
+ (["931000"].includes(messageType) ? 1 << 10 /*STATUS_ACCEPTED_FOR_TREATMENT*/ : 0) |
427
+ (["931000", "920999"].includes(messageType) ? 1 << 9 /*STATUS_RECEIVED*/ : 0);
428
+ const batchErrors = _.compact([
429
+ _.get(parsedRecords, "zone200.errorDetail"),
430
+ _.get(parsedRecords, "zone300.errorDetail"),
431
+ _.get(parsedRecords, "et10.errorDetail"),
432
+ _.get(parsedRecords, "et90.errorDetail")
433
+ ]);
434
+ const invoicingErrors = parsedRecords.records
435
+ ? _.compact(_.flatMap(parsedRecords.records, r => {
436
+ const errors = [];
437
+ let refEt20 = r.et20 && r.et20.reference.trim();
438
+ if (r.et20 && r.et20.errorDetail) {
439
+ errors.push({
440
+ itemId: (0, efact_util_1.decodeBase36Uuid)(refEt20),
441
+ error: r.et20.errorDetail,
442
+ record: "ET20"
443
+ });
444
+ if (r.et80 && r.et80.errorDetail) {
445
+ errors.push({
446
+ itemId: (0, efact_util_1.decodeBase36Uuid)(refEt20),
447
+ error: r.et80.errorDetail,
448
+ record: "ET80"
449
+ });
450
+ }
451
+ }
452
+ _.each(r.items, i => {
453
+ let ref = (i.et50 && i.et50.itemReference.trim()) || refEt20; //fallback
454
+ if (i.et50 && i.et50.errorDetail) {
455
+ errors.push({
456
+ itemId: ref && (0, efact_util_1.decodeBase36Uuid)(ref),
457
+ error: i.et50.errorDetail,
458
+ record: "ET50"
459
+ });
460
+ }
461
+ if (i.et51 && i.et51.errorDetail) {
462
+ errors.push({
463
+ itemId: ref && (0, efact_util_1.decodeBase36Uuid)(ref),
464
+ error: i.et51.errorDetail,
465
+ record: "ET51"
466
+ });
467
+ }
468
+ if (i.et52 && i.et52.errorDetail) {
469
+ errors.push({
470
+ itemId: ref && (0, efact_util_1.decodeBase36Uuid)(ref),
471
+ error: i.et52.errorDetail,
472
+ record: "ET52"
473
+ });
474
+ }
475
+ });
476
+ return errors;
477
+ }))
478
+ : [];
479
+ return this.api
480
+ .newInstance(user, {
481
+ // tslint:disable-next-line:no-bitwise
482
+ status: (1 << 1) /*STATUS_UNREAD*/ | statuses,
483
+ transportGuid: "EFACT:IN:" + ref,
484
+ fromAddress: "EFACT",
485
+ sent: (0, formatting_util_1.timeEncode)(new Date()),
486
+ fromHealthcarePartyId: hcp.id,
487
+ recipients: [hcp.id],
488
+ recipientsType: "org.taktik.icure.entities.HealthcareParty",
489
+ received: +new Date(),
490
+ subject: messageType,
491
+ parentId: parentMessage.id,
492
+ senderReferences: {
493
+ inputReference: efactMessage.commonOutput.inputReference,
494
+ outputReference: efactMessage.commonOutput.outputReference,
495
+ nipReference: efactMessage.commonOutput.nipReference
496
+ }
497
+ })
498
+ .then(msg => this.api.createMessage(msg))
499
+ .then(msg => Promise.all([
500
+ this.documentXApi.newInstance(user, msg, {
501
+ mainUti: "public.plain-text",
502
+ name: msg.subject
503
+ }),
504
+ this.documentXApi.newInstance(user, msg, {
505
+ mainUti: "public.json",
506
+ name: `${msg.subject}_records`
507
+ }),
508
+ this.documentXApi.newInstance(user, msg, {
509
+ mainUti: "public.json",
510
+ name: `${msg.subject}_parsed_records`
511
+ })
512
+ ])
513
+ .then(([doc, jsonDoc, jsonParsedDoc]) => Promise.all([
514
+ this.documentXApi.createDocument(doc),
515
+ this.documentXApi.createDocument(jsonDoc),
516
+ this.documentXApi.createDocument(jsonParsedDoc)
517
+ ]))
518
+ .then(([doc, jsonDoc, jsonParsedDoc]) => Promise.all([
519
+ this.documentXApi.setDocumentAttachment(doc.id, undefined /*TODO provide keys for encryption*/, (0, api_1.ua2ab)((0, api_1.string2ua)(efactMessage.detail))),
520
+ this.documentXApi.setDocumentAttachment(jsonDoc.id, undefined /*TODO provide keys for encryption*/, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(efactMessage)))),
521
+ this.documentXApi.setDocumentAttachment(jsonParsedDoc.id, undefined /*TODO provide keys for encryption*/, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(parsedRecords))))
522
+ ]))
523
+ .then(() => ["920999", "920099", "920900"].includes(messageType)
524
+ ? this.invoiceXApi.getInvoices(new api_1.ListOfIds({ ids: parentMessage.invoiceIds }))
525
+ : Promise.resolve([]))
526
+ .then((invoices) => {
527
+ // RejectAll if "920999", "920099"
528
+ const rejectAll = (statuses & (1 << 17)) /*STATUS_ERROR*/ > 0;
529
+ let promise = Promise.resolve([]);
530
+ _.forEach(invoices, iv => {
531
+ iv.error =
532
+ _(invoicingErrors)
533
+ .filter(it => it.itemId === iv.id)
534
+ .map(e => this.extractErrorMessage(e.error))
535
+ .compact()
536
+ .join("; ") || undefined;
537
+ let newInvoicePromise = null;
538
+ _.each(iv.invoicingCodes, ic => {
539
+ // If the invoicing code is already treated, do not treat it
540
+ if (ic.canceled || ic.accepted) {
541
+ return;
542
+ }
543
+ // Error from the ET50/51/52 linked to the invoicingCode
544
+ const codeError = _(invoicingErrors)
545
+ .filter(it => it.itemId === ic.id)
546
+ .map(e => this.extractErrorMessage(e.error))
547
+ .compact()
548
+ .join("; ") || undefined;
549
+ const record50 = messageType === "920900" &&
550
+ _.compact(_.flatMap(parsedRecords.records, r => r.items.map(i => _.get(i, "et50.itemReference") &&
551
+ (0, efact_util_1.decodeBase36Uuid)(i.et50.itemReference.trim()) === ic.id &&
552
+ i.et50)))[0];
553
+ const zone114amount = record50 &&
554
+ _.get(record50, "errorDetail.zone114") &&
555
+ Number(record50.errorDetail.zone114);
556
+ if (rejectAll || codeError) {
557
+ ic.accepted = false;
558
+ ic.canceled = true;
559
+ ic.pending = false;
560
+ ic.resent = false;
561
+ ic.error = codeError;
562
+ ic.paid = zone114amount ? Number((zone114amount / 100).toFixed(2)) : 0;
563
+ newInvoicePromise = (newInvoicePromise ||
564
+ this.patientApi
565
+ .getPatientIdOfChildDocumentForHcpAndHcpParents(iv, user.healthcarePartyId)
566
+ .then(patientId => this.patientApi.getPatientWithUser(user, patientId))
567
+ .then(pat => this.invoiceXApi.newInstance(user, pat, _.omit(iv, [
568
+ "id",
569
+ "rev",
570
+ "deletionDate",
571
+ "created",
572
+ "modified",
573
+ "sentDate",
574
+ "printedDate",
575
+ "secretForeignKeys",
576
+ "cryptedForeignKeys",
577
+ "delegations",
578
+ "encryptionKeys",
579
+ "invoicingCodes",
580
+ "error",
581
+ "receipts",
582
+ "encryptedSelf"
583
+ ])))
584
+ .then(niv => {
585
+ iv.correctiveInvoiceId = niv.id;
586
+ niv.correctedInvoiceId = iv.id;
587
+ return niv;
588
+ })).then(niv => {
589
+ niv.invoicingCodes = (niv.invoicingCodes || []).concat(_.assign({}, ic, {
590
+ id: this.crypto.randomUuid(),
591
+ accepted: false,
592
+ canceled: false,
593
+ pending: true,
594
+ resent: true,
595
+ archived: false
596
+ }));
597
+ return niv;
598
+ });
599
+ }
600
+ else {
601
+ ic.accepted = true;
602
+ ic.canceled = false;
603
+ ic.pending = false;
604
+ ic.resent = false;
605
+ ic.error = undefined;
606
+ ic.paid = zone114amount
607
+ ? Number((zone114amount / 100).toFixed(2))
608
+ : ic.reimbursement;
609
+ }
610
+ });
611
+ promise = promise.then(invoices => {
612
+ return (newInvoicePromise
613
+ ? newInvoicePromise
614
+ .then(niv => (invoicePrefixer
615
+ ? invoicePrefixer(niv, user.healthcarePartyId)
616
+ : Promise.resolve(invoicePrefix)).then(pfx => this.invoiceXApi.createInvoice(niv, pfx)))
617
+ .then(niv => invoices.push(niv))
618
+ : Promise.resolve(0))
619
+ .then(() => this.invoiceXApi.modifyInvoice(iv))
620
+ .then(iv => invoices.push(iv))
621
+ .then(() => invoices);
622
+ });
623
+ });
624
+ return promise;
625
+ })
626
+ .then(invoices => {
627
+ parentMessage.status = (parentMessage.status || 0) | statuses;
628
+ if (batchErrors.length) {
629
+ parentMessage.metas = _.assign(parentMessage.metas || {}, {
630
+ errors: _(batchErrors)
631
+ .map(this.extractErrorMessage)
632
+ .uniq()
633
+ .compact()
634
+ .value()
635
+ .join("; ")
636
+ });
637
+ }
638
+ if (parsedRecords.et91) {
639
+ let et91s = parsedRecords.et91;
640
+ parentMessage.metas = _.assign(parentMessage.metas || {}, {
641
+ paymentReferenceAccount1: _(et91s)
642
+ .map(et91 => et91.paymentReferenceAccount1)
643
+ .uniq()
644
+ .value()
645
+ .join(", ")
646
+ });
647
+ }
648
+ if (parsedRecords.et92) {
649
+ let et92 = parsedRecords.et92;
650
+ parentMessage.metas = _.assign(parentMessage.metas || {}, {
651
+ totalAskedAmount: Number(et92.totalAskedAmount) / 100,
652
+ totalAcceptedAmount: Number(et92.totalAcceptedAmount) / 100,
653
+ totalRejectedAmount: Number(et92.totalRejectedAmount) / 100
654
+ });
655
+ }
656
+ return this.api
657
+ .modifyMessage(parentMessage)
658
+ .then(message => ({ message, invoices }));
659
+ }));
660
+ });
661
+ }
662
+ sendBatch(user, hcp, invoices, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, efactApi, fhcServer = undefined, prefixer, isConnectedAsPmg = false, medicalLocationId = null) {
663
+ const uuid = this.crypto.randomUuid();
664
+ const smallBase36 = (0, efact_util_1.uuidBase36Half)(uuid);
665
+ const fullBase36 = (0, efact_util_1.uuidBase36)(uuid);
666
+ const sentDate = +new Date();
667
+ const errors = [];
668
+ const year = moment().year();
669
+ return (0, efact_util_1.getFederaton)(invoices, this.insuranceApi).then(fed => {
670
+ return (prefixer
671
+ ? prefixer(fed, hcp.id)
672
+ : Promise.resolve(`efact:${hcp.id}:${year}:${fed.code === "306" ? "300" : fed.code === "675" ? "600" : fed.code}:`)).then(prefix => {
673
+ return this.entityReferenceApi
674
+ .getLatest(prefix)
675
+ .then((er) => {
676
+ let nextSeqNumber = er && er.id && er.id.startsWith(prefix)
677
+ ? (Number(er.id.split(":").pop()) || 0) + 1
678
+ : 1;
679
+ return this.entityReferenceApi.createEntityReference(new api_1.EntityReference({
680
+ id: prefix + _.padStart("" + (nextSeqNumber % 1000000000), 9, "0"),
681
+ docId: uuid
682
+ }));
683
+ })
684
+ .then(er => (0, efact_util_1.toInvoiceBatch)(invoices, hcp, fullBase36, er && er.id ? Number(er.id.substr(prefix.length)) % 1000 : 0, smallBase36, this.insuranceApi, this.invoiceXApi, this.api, medicalLocationId === "medicalhouse"))
685
+ .then(batch => efactApi
686
+ .sendBatchUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, batch)
687
+ //.then(() => { throw "ERREUR FORCEE" })
688
+ .catch(err => {
689
+ // The FHC has crashed but the batch could be sent, so be careful !
690
+ const errorMessage = _.get(err, "message", err.toString ? err.toString() : "Server error");
691
+ const blockingErrors = [
692
+ "Gateway Timeout",
693
+ "Failed to fetch" // is due to internet connection lost (shutdown wifi just before sending batch)
694
+ ];
695
+ if (_.includes(blockingErrors, errorMessage.trim())) {
696
+ throw errorMessage;
697
+ }
698
+ return { error: errorMessage };
699
+ })
700
+ .then((r) => {
701
+ const res = r;
702
+ if (res.success || res.error) {
703
+ let promise = Promise.resolve(true);
704
+ let totalAmount = 0;
705
+ _.forEach(invoices, iv => {
706
+ promise = promise.then(() => {
707
+ _.forEach(iv.invoice.invoicingCodes, code => {
708
+ code.pending = true; // STATUS_PENDING
709
+ totalAmount += code.reimbursement || 0;
710
+ });
711
+ iv.invoice.sentDate = sentDate;
712
+ return !!this.invoiceXApi.modifyInvoice(iv.invoice).catch(() => {
713
+ errors.push(`efac-management.CANNOT_UPDATE_INVOICE.${iv.invoice.id}`);
714
+ });
715
+ });
716
+ });
717
+ return promise
718
+ .then(() => this.api.newInstance(user, {
719
+ id: uuid,
720
+ medicalLocationId,
721
+ invoiceIds: invoices.map(i => i.invoice.id),
722
+ // tslint:disable-next-line:no-bitwise
723
+ status: 1 << 6,
724
+ externalRef: _.padStart("" + batch.uniqueSendNumber, 3, "0"),
725
+ transportGuid: "EFACT:BATCH:" + batch.numericalRef,
726
+ sent: (0, formatting_util_1.timeEncode)(new Date()),
727
+ fromHealthcarePartyId: hcp.id,
728
+ recipients: [fed.id],
729
+ recipientsType: "org.taktik.icure.entities.Insurance"
730
+ }))
731
+ .then(message => this.api.createMessage(Object.assign(message, {
732
+ sent: sentDate,
733
+ status: (message.status || 0) | (res.success ? 1 << 7 : 0) /*STATUS_SENT*/,
734
+ metas: {
735
+ ioFederationCode: batch.ioFederationCode,
736
+ numericalRef: batch.numericalRef,
737
+ invoiceMonth: _.padStart("" + batch.invoicingMonth, 2, "0"),
738
+ invoiceYear: _.padStart("" + batch.invoicingYear, 4, "0"),
739
+ totalAmount: totalAmount,
740
+ fhc_server: fhcServer,
741
+ errors: res.error
742
+ }
743
+ })))
744
+ .then((msg) => {
745
+ if (res.success) {
746
+ // Continue even if error ...
747
+ this.saveMessageAttachment(user, msg, res);
748
+ }
749
+ return msg;
750
+ });
751
+ }
752
+ else {
753
+ throw "Cannot send batch";
754
+ }
755
+ }))
756
+ .catch(err => {
757
+ console.log(err);
758
+ errors.push(err);
759
+ throw new Error(errors.join(","));
760
+ });
761
+ });
762
+ });
763
+ }
764
+ saveMessageAttachment(user, msg, res) {
765
+ return Promise.all([
766
+ this.documentXApi.newInstance(user, msg, {
767
+ mainUti: "public.json",
768
+ name: "920000_records"
769
+ }),
770
+ this.documentXApi.newInstance(user, msg, {
771
+ mainUti: "public.plain-text",
772
+ name: "920000"
773
+ })
774
+ ])
775
+ .then(([jsonDoc, doc]) => Promise.all([
776
+ this.documentXApi.createDocument(jsonDoc),
777
+ this.documentXApi.createDocument(doc)
778
+ ]))
779
+ .then(([jsonDoc, doc]) => Promise.all([
780
+ this.documentXApi.setDocumentAttachment(jsonDoc.id, undefined /*TODO provide keys for encryption*/, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(res.records)))),
781
+ this.documentXApi.setDocumentAttachment(doc.id, undefined /*TODO provide keys for encryption*/, (0, api_1.ua2ab)((0, api_1.string2ua)(res.detail)))
782
+ ]))
783
+ .then(() => this.receiptXApi.iccApi.logReceipt(user, msg.id, [
784
+ `mycarenet:efact:inputReference:${res.inputReference}`,
785
+ res.tack.appliesTo,
786
+ res.tack.reference
787
+ ], "tack", (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(res.tack)))));
788
+ }
789
+ }
790
+ exports.MessageXApi = MessageXApi;