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