@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
|
@@ -0,0 +1,790 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageXApi = void 0;
|
|
4
|
+
const api_1 = require("@icure/api");
|
|
5
|
+
const _ = require("lodash");
|
|
6
|
+
const moment = require("moment");
|
|
7
|
+
const efact_util_1 = require("./utils/efact-util");
|
|
8
|
+
const formatting_util_1 = require("./utils/formatting-util");
|
|
9
|
+
const models_1 = require("../model/models");
|
|
10
|
+
const efact_parser_1 = require("./utils/efact-parser");
|
|
11
|
+
class EfactSendResponseWithError extends models_1.EfactSendResponse {
|
|
12
|
+
constructor(json) {
|
|
13
|
+
super(json);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
class MessageXApi {
|
|
17
|
+
constructor(api, crypto, documentXApi, insuranceApi, entityReferenceApi, fhcReceiptXApi, invoiceXApi, patientApi) {
|
|
18
|
+
this.api = api;
|
|
19
|
+
this.documentXApi = documentXApi;
|
|
20
|
+
this.insuranceApi = insuranceApi;
|
|
21
|
+
this.entityReferenceApi = entityReferenceApi;
|
|
22
|
+
this.receiptXApi = fhcReceiptXApi;
|
|
23
|
+
this.invoiceXApi = invoiceXApi;
|
|
24
|
+
this.patientApi = patientApi;
|
|
25
|
+
this.crypto = crypto;
|
|
26
|
+
}
|
|
27
|
+
saveDmgsListRequest(user, req, requestDate) {
|
|
28
|
+
return this.api
|
|
29
|
+
.newInstance(user, {
|
|
30
|
+
// tslint:disable-next-line:no-bitwise
|
|
31
|
+
transportGuid: "GMD:OUT:" +
|
|
32
|
+
((req.commonOutput && req.commonOutput.inputReference) ||
|
|
33
|
+
req.tack.appliesTo ||
|
|
34
|
+
"").replace("urn:nip:reference:input:", ""),
|
|
35
|
+
fromHealthcarePartyId: user.healthcarePartyId,
|
|
36
|
+
sent: +new Date(),
|
|
37
|
+
metas: {
|
|
38
|
+
type: "listrequest",
|
|
39
|
+
date: moment().format("DD/MM/YYYY"),
|
|
40
|
+
requestDate: requestDate ? moment(requestDate).format("DD/MM/YYYY") : ""
|
|
41
|
+
},
|
|
42
|
+
subject: "Lists request",
|
|
43
|
+
senderReferences: req.commonOutput
|
|
44
|
+
})
|
|
45
|
+
.then(msg => this.api.createMessage(msg))
|
|
46
|
+
.then(msg => {
|
|
47
|
+
return this.documentXApi
|
|
48
|
+
.newInstance(user, msg, {
|
|
49
|
+
mainUti: "public.json",
|
|
50
|
+
name: `${msg.subject}_content.json`
|
|
51
|
+
})
|
|
52
|
+
.then(doc => this.documentXApi.createDocument(doc))
|
|
53
|
+
.then(doc => this.documentXApi.setDocumentAttachment(doc.id, undefined /*TODO provide keys for encryption*/, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(req)))))
|
|
54
|
+
.then(() => msg);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
processDmgMessagesList(user, hcp, list, docXApi) {
|
|
58
|
+
const ackHashes = [];
|
|
59
|
+
let promAck = Promise.resolve(null);
|
|
60
|
+
_.each(list.acks, ack => {
|
|
61
|
+
const ref = (ack.appliesTo || "").replace("urn:nip:reference:input:", "");
|
|
62
|
+
promAck = promAck
|
|
63
|
+
.then(() => this.api.findMessagesByTransportGuid(`GMD:OUT:${ref}`, false, undefined, undefined, 100))
|
|
64
|
+
.then(parents => {
|
|
65
|
+
const msgsForHcp = ((parents && parents.rows) || []).filter((p) => p.responsible === hcp.id);
|
|
66
|
+
if (!msgsForHcp.length) {
|
|
67
|
+
throw new Error(`Cannot find parent with ref ${ref}`);
|
|
68
|
+
}
|
|
69
|
+
const parent = msgsForHcp[0];
|
|
70
|
+
(parent.metas || (parent.metas = {}))[`tack.${ack.io}`] = ((ack.date && moment(ack.date)) ||
|
|
71
|
+
moment()).format("YYYYMMDDHHmmss");
|
|
72
|
+
return this.api.modifyMessage(parent);
|
|
73
|
+
})
|
|
74
|
+
.catch(e => {
|
|
75
|
+
console.log(e.message);
|
|
76
|
+
return null;
|
|
77
|
+
})
|
|
78
|
+
.then(() => this.receiptXApi.logSCReceipt(ack, user, hcp.id, "dmg", "listAck", [
|
|
79
|
+
`nip:pin:valuehash:${ack.valueHash}`
|
|
80
|
+
]))
|
|
81
|
+
.then(receipt => {
|
|
82
|
+
ack.valueHash && ackHashes.push(ack.valueHash);
|
|
83
|
+
return receipt;
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
const patsDmgs = {};
|
|
87
|
+
const msgHashes = [];
|
|
88
|
+
let promMsg = promAck.then(() => []);
|
|
89
|
+
_.each(list.lists, dmgsMsgList => {
|
|
90
|
+
const metas = { type: "list" };
|
|
91
|
+
_.each(dmgsMsgList.inscriptions, i => {
|
|
92
|
+
i.inss &&
|
|
93
|
+
(patsDmgs[i.inss] || (patsDmgs[i.inss] = [])).push({
|
|
94
|
+
date: moment(i.from).format("DD/MM/YYYY"),
|
|
95
|
+
from: moment(i.from).format("DD/MM/YYYY"),
|
|
96
|
+
to: i.to,
|
|
97
|
+
hcp: this.makeHcp(i.hcParty),
|
|
98
|
+
payments: (i.payment1Amount
|
|
99
|
+
? [
|
|
100
|
+
{
|
|
101
|
+
amount: i.payment1Amount,
|
|
102
|
+
currency: i.payment1Currency,
|
|
103
|
+
date: i.payment1Date,
|
|
104
|
+
ref: i.payment1Ref
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
: []).concat(i.payment2Amount
|
|
108
|
+
? [
|
|
109
|
+
{
|
|
110
|
+
amount: i.payment2Amount,
|
|
111
|
+
currency: i.payment2Currency,
|
|
112
|
+
date: i.payment2Date,
|
|
113
|
+
ref: i.payment2Ref
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
: [])
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
promMsg = promMsg.then(acc => {
|
|
120
|
+
let ref = (dmgsMsgList.appliesTo || "").replace("urn:nip:reference:input:", "");
|
|
121
|
+
return this.api
|
|
122
|
+
.findMessagesByTransportGuid(`GMD:OUT:${ref}`, false, undefined, undefined, 100)
|
|
123
|
+
.then(parents => {
|
|
124
|
+
const msgsForHcp = ((parents && parents.rows) || []).filter((p) => p.responsible === hcp.id);
|
|
125
|
+
if (!msgsForHcp.length) {
|
|
126
|
+
throw new Error(`Cannot find parent with ref ${ref}`);
|
|
127
|
+
}
|
|
128
|
+
const parent = msgsForHcp[0];
|
|
129
|
+
return this.saveMessageInDb(user, "List", dmgsMsgList, hcp, metas, docXApi, dmgsMsgList.date, undefined, parent && parent.id).then(msg => {
|
|
130
|
+
dmgsMsgList.valueHash && msgHashes.push(dmgsMsgList.valueHash);
|
|
131
|
+
acc.push(msg);
|
|
132
|
+
return acc;
|
|
133
|
+
});
|
|
134
|
+
})
|
|
135
|
+
.catch(e => {
|
|
136
|
+
console.log(e.message);
|
|
137
|
+
return acc;
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
_.each(list.closures, closure => {
|
|
142
|
+
const metas = {
|
|
143
|
+
type: "closure",
|
|
144
|
+
date: (closure.endOfPreviousDmg && moment(closure.endOfPreviousDmg).format("DD/MM/YYYY")) ||
|
|
145
|
+
null,
|
|
146
|
+
closure: "true",
|
|
147
|
+
endOfPreviousDmg: (closure.endOfPreviousDmg && moment(closure.endOfPreviousDmg).format("DD/MM/YYYY")) ||
|
|
148
|
+
null,
|
|
149
|
+
beginOfNewDmg: (closure.beginOfNewDmg && moment(closure.beginOfNewDmg).format("DD/MM/YYYY")) || null,
|
|
150
|
+
previousHcp: this.makeHcp(closure.previousHcParty),
|
|
151
|
+
newHcp: this.makeHcp(closure.newHcParty),
|
|
152
|
+
ssin: closure.inss || null,
|
|
153
|
+
firstName: closure.firstName || null,
|
|
154
|
+
lastName: closure.lastName || null,
|
|
155
|
+
io: closure.io || null
|
|
156
|
+
};
|
|
157
|
+
closure.inss && (patsDmgs[closure.inss] || (patsDmgs[closure.inss] = [])).push(metas);
|
|
158
|
+
promMsg = promMsg.then(acc => {
|
|
159
|
+
return this.saveMessageInDb(user, "Closure", closure, hcp, metas, docXApi, closure.endOfPreviousDmg, closure.inss).then(msg => {
|
|
160
|
+
closure.valueHash && msgHashes.push(closure.valueHash);
|
|
161
|
+
acc.push(msg);
|
|
162
|
+
return acc;
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
_.each(list.extensions, ext => {
|
|
167
|
+
const metas = {
|
|
168
|
+
type: "extension",
|
|
169
|
+
date: (ext.encounterDate && moment(ext.encounterDate).format("DD/MM/YYYY")) || null,
|
|
170
|
+
from: (ext.encounterDate && moment(ext.encounterDate).format("DD/MM/YYYY")) || null,
|
|
171
|
+
hcp: this.makeHcp(ext.hcParty),
|
|
172
|
+
claim: ext.claim || null,
|
|
173
|
+
ssin: ext.inss || null,
|
|
174
|
+
firstName: ext.firstName || null,
|
|
175
|
+
lastName: ext.lastName || null,
|
|
176
|
+
io: ext.io || null
|
|
177
|
+
};
|
|
178
|
+
ext.inss && (patsDmgs[ext.inss] || (patsDmgs[ext.inss] = [])).push(metas);
|
|
179
|
+
promMsg = promMsg.then(acc => {
|
|
180
|
+
return this.saveMessageInDb(user, "Extension", ext, hcp, metas, docXApi, ext.encounterDate, ext.inss).then(msg => {
|
|
181
|
+
ext.valueHash && msgHashes.push(ext.valueHash);
|
|
182
|
+
acc.push(msg);
|
|
183
|
+
return acc;
|
|
184
|
+
});
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
return promMsg.then(() => Promise.all(_.chunk(Object.keys(patsDmgs), 100).map(ssins => this.patientApi
|
|
188
|
+
.filterByWithUser(user, new api_1.FilterChainPatient({
|
|
189
|
+
filter: new api_1.AbstractFilterPatient({
|
|
190
|
+
$type: "PatientByHcPartyAndSsinsFilter",
|
|
191
|
+
healthcarePartyId: user.healthcarePartyId,
|
|
192
|
+
ssins: ssins
|
|
193
|
+
})
|
|
194
|
+
}), undefined, undefined, 1000, 0, undefined, false)
|
|
195
|
+
.then((pats) => this.patientApi.bulkUpdatePatients((pats.rows || []).map(p => {
|
|
196
|
+
const actions = _.sortBy(patsDmgs[p.ssin], a => moment(a.date, "DD/MM/YYYY").format("YYYYMMDD"));
|
|
197
|
+
const latestAction = actions.length && actions[actions.length - 1];
|
|
198
|
+
let phcp = (p.patientHealthCareParties || (p.patientHealthCareParties = [])) &&
|
|
199
|
+
p.patientHealthCareParties.find(phcp => phcp.healthcarePartyId === user.healthcarePartyId);
|
|
200
|
+
if (!phcp) {
|
|
201
|
+
p.patientHealthCareParties.push((phcp = new api_1.PatientHealthCareParty({
|
|
202
|
+
healthcarePartyId: user.healthcarePartyId,
|
|
203
|
+
referralPeriods: []
|
|
204
|
+
})));
|
|
205
|
+
}
|
|
206
|
+
if (!phcp.referralPeriods) {
|
|
207
|
+
phcp.referralPeriods = [];
|
|
208
|
+
}
|
|
209
|
+
const rp = (phcp.referralPeriods && phcp.referralPeriods.find(per => !per.endDate)) ||
|
|
210
|
+
(phcp.referralPeriods[phcp.referralPeriods.length] = new api_1.ReferralPeriod({}));
|
|
211
|
+
const actionDate = Number(moment(latestAction.date, "DD/MM/YYYY").format("YYYYMMDD"));
|
|
212
|
+
if (latestAction) {
|
|
213
|
+
if (latestAction.closure) {
|
|
214
|
+
rp.endDate = actionDate;
|
|
215
|
+
rp.comment = `-> ${latestAction.newHcp}`;
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
if (actionDate > (rp.startDate || 0)) {
|
|
219
|
+
rp.endDate = actionDate;
|
|
220
|
+
phcp.referralPeriods.push(new api_1.ReferralPeriod({ startDate: actionDate }));
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return p;
|
|
225
|
+
}))))).then(() => [ackHashes, msgHashes]));
|
|
226
|
+
}
|
|
227
|
+
makeHcp(hcParty) {
|
|
228
|
+
if (!hcParty) {
|
|
229
|
+
return null;
|
|
230
|
+
}
|
|
231
|
+
return `${hcParty.firstname || ""} ${hcParty.familyname || ""} ${hcParty.name ||
|
|
232
|
+
""} [${(hcParty.ids &&
|
|
233
|
+
(hcParty.ids.find(id => id.s === models_1.IDHCPARTY.SEnum.IDHCPARTY) || {}).value) ||
|
|
234
|
+
"-"}]`;
|
|
235
|
+
}
|
|
236
|
+
saveMessageInDb(user, msgName, dmgMessage, hcp, metas, docXApi, date, inss, parentId) {
|
|
237
|
+
return this.api
|
|
238
|
+
.newInstance(user, {
|
|
239
|
+
// tslint:disable-next-line:no-bitwise
|
|
240
|
+
transportGuid: "GMD:IN:" + dmgMessage.reference,
|
|
241
|
+
fromAddress: dmgMessage.io,
|
|
242
|
+
sent: date && +date,
|
|
243
|
+
toHealthcarePartyId: hcp.id,
|
|
244
|
+
recipients: [hcp.id],
|
|
245
|
+
recipientsType: "org.taktik.icure.entities.HealthcareParty",
|
|
246
|
+
received: +new Date(),
|
|
247
|
+
metas: metas,
|
|
248
|
+
parentId: parentId,
|
|
249
|
+
subject: inss
|
|
250
|
+
? `${msgName} from IO ${dmgMessage.io} for ${inss}`
|
|
251
|
+
: `${msgName} from IO ${dmgMessage.io}`,
|
|
252
|
+
senderReferences: {
|
|
253
|
+
inputReference: dmgMessage.commonOutput && dmgMessage.commonOutput.inputReference,
|
|
254
|
+
outputReference: dmgMessage.commonOutput && dmgMessage.commonOutput.outputReference,
|
|
255
|
+
nipReference: dmgMessage.commonOutput && dmgMessage.commonOutput.nipReference
|
|
256
|
+
}
|
|
257
|
+
})
|
|
258
|
+
.then(msg => this.api.createMessage(msg))
|
|
259
|
+
.then(msg => {
|
|
260
|
+
return docXApi
|
|
261
|
+
.newInstance(user, msg, {
|
|
262
|
+
mainUti: "public.json",
|
|
263
|
+
name: `${msg.subject}_content.json`
|
|
264
|
+
})
|
|
265
|
+
.then(doc => docXApi.createDocument(doc))
|
|
266
|
+
.then(doc => docXApi.setDocumentAttachment(doc.id, undefined /*TODO provide keys for encryption*/, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(dmgMessage)))))
|
|
267
|
+
.then(() => msg);
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
saveDmgListRequestInDb(user, tack, resultMajor, appliesTo, hcp, date, inss) {
|
|
271
|
+
return this.api
|
|
272
|
+
.newInstance(user, {
|
|
273
|
+
// tslint:disable-next-line:no-bitwise
|
|
274
|
+
transportGuid: "GMD:OUT:LIST" + appliesTo,
|
|
275
|
+
sent: date && +date,
|
|
276
|
+
toHealthcarePartyId: hcp.id,
|
|
277
|
+
recipients: [hcp.id],
|
|
278
|
+
recipientsType: "org.taktik.icure.entities.HealthcareParty",
|
|
279
|
+
received: +new Date(),
|
|
280
|
+
metas: { tack: tack, resultMajor: resultMajor },
|
|
281
|
+
subject: inss ? `Dmg list request for ${inss}` : `Dmg list request`,
|
|
282
|
+
senderReferences: {
|
|
283
|
+
inputReference: appliesTo && _.last(appliesTo.split(":"))
|
|
284
|
+
}
|
|
285
|
+
})
|
|
286
|
+
.then(msg => this.api.createMessage(msg));
|
|
287
|
+
}
|
|
288
|
+
extractErrorMessage(error) {
|
|
289
|
+
if (!error)
|
|
290
|
+
return;
|
|
291
|
+
const code1 = Number(error.rejectionCode1);
|
|
292
|
+
const code2 = Number(error.rejectionCode2);
|
|
293
|
+
const code3 = Number(error.rejectionCode3);
|
|
294
|
+
const desc1 = (error.rejectionDescr1 && error.rejectionDescr1.trim()) || "";
|
|
295
|
+
const desc2 = (error.rejectionDescr2 && error.rejectionDescr2.trim()) || "";
|
|
296
|
+
const desc3 = (error.rejectionDescr3 && error.rejectionDescr3.trim()) || "";
|
|
297
|
+
return code1 || code2 || code3 || desc1 || desc2 || desc3
|
|
298
|
+
? _([
|
|
299
|
+
code1 || desc1.length ? `${code1 || "XXXXXX"}: ${desc1 || " — "}` : null,
|
|
300
|
+
code2 || desc2.length ? `${code2 || "XXXXXX"}: ${desc2 || " — "}` : null,
|
|
301
|
+
code3 || desc3.length ? `${code3 || "XXXXXX"}: ${desc3 || " — "}` : null
|
|
302
|
+
])
|
|
303
|
+
.compact()
|
|
304
|
+
.uniq()
|
|
305
|
+
.filter(err => err.indexOf("510119") < 0)
|
|
306
|
+
.join("; ")
|
|
307
|
+
: undefined;
|
|
308
|
+
}
|
|
309
|
+
extractErrors(parsedRecords) {
|
|
310
|
+
const errors = (parsedRecords.et10 && parsedRecords.et10.errorDetail
|
|
311
|
+
? [parsedRecords.et10.errorDetail]
|
|
312
|
+
: [])
|
|
313
|
+
.concat(_.flatMap(parsedRecords.records, r => {
|
|
314
|
+
const errors = [];
|
|
315
|
+
if (r.et20 && r.et20.errorDetail) {
|
|
316
|
+
errors.push(r.et20.errorDetail);
|
|
317
|
+
}
|
|
318
|
+
_.each(r.items, i => {
|
|
319
|
+
if (i.et50 && i.et50.errorDetail)
|
|
320
|
+
errors.push(i.et50.errorDetail);
|
|
321
|
+
if (i.et51 && i.et51.errorDetail)
|
|
322
|
+
errors.push(i.et51.errorDetail);
|
|
323
|
+
if (i.et52 && i.et52.errorDetail)
|
|
324
|
+
errors.push(i.et52.errorDetail);
|
|
325
|
+
});
|
|
326
|
+
if (r.et80 && r.et80.errorDetail) {
|
|
327
|
+
errors.push(r.et80.errorDetail);
|
|
328
|
+
}
|
|
329
|
+
return errors;
|
|
330
|
+
}))
|
|
331
|
+
.concat(parsedRecords.et90 && parsedRecords.et90.errorDetail ? [parsedRecords.et90.errorDetail] : []);
|
|
332
|
+
return _.compact(_.map(errors, error => this.extractErrorMessage(error)));
|
|
333
|
+
}
|
|
334
|
+
processTack(user, hcp, efactMessage) {
|
|
335
|
+
if (!efactMessage.tack) {
|
|
336
|
+
return Promise.reject(new Error("Invalid tack"));
|
|
337
|
+
}
|
|
338
|
+
const refStr = _.get(efactMessage, "tack.appliesTo", "")
|
|
339
|
+
.split(":")
|
|
340
|
+
.pop();
|
|
341
|
+
if (!refStr) {
|
|
342
|
+
return Promise.reject(new Error(`Cannot find input reference from tack: ${_.get(efactMessage, "tack.appliesTo")}`));
|
|
343
|
+
}
|
|
344
|
+
const ref = Number(refStr) % 10000000000;
|
|
345
|
+
return this.api
|
|
346
|
+
.findMessagesByTransportGuid("EFACT:BATCH:" + ref, false, undefined, undefined, 100)
|
|
347
|
+
.then(parents => {
|
|
348
|
+
const msgsForHcp = ((parents && parents.rows) || []).filter((p) => p.responsible === hcp.id);
|
|
349
|
+
if (!msgsForHcp.length) {
|
|
350
|
+
throw new Error(`Cannot find parent with ref ${ref}`);
|
|
351
|
+
}
|
|
352
|
+
const parentMessage = msgsForHcp[0];
|
|
353
|
+
return this.receiptXApi.iccApi
|
|
354
|
+
.createReceipt(new api_1.Receipt({
|
|
355
|
+
documentId: parentMessage.id,
|
|
356
|
+
references: [
|
|
357
|
+
`mycarenet:efact:inputReference:${ref}`,
|
|
358
|
+
efactMessage.tack.appliesTo,
|
|
359
|
+
efactMessage.tack.reference
|
|
360
|
+
]
|
|
361
|
+
}))
|
|
362
|
+
.then((rcpt) => this.receiptXApi.iccApi.setReceiptAttachment(rcpt.id, "tack", "", (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(efactMessage)))))
|
|
363
|
+
.then(() => {
|
|
364
|
+
parentMessage.status = parentMessage.status | (1 << 8); /*STATUS_SUBMITTED*/
|
|
365
|
+
// Reset error
|
|
366
|
+
if (parentMessage.metas && parentMessage.metas.errors) {
|
|
367
|
+
parentMessage.metas.sendingError = parentMessage.metas.errors;
|
|
368
|
+
delete parentMessage.metas.errors;
|
|
369
|
+
}
|
|
370
|
+
return this.api.modifyMessage(parentMessage);
|
|
371
|
+
});
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
// Pass invoicePrefix if you want to generate the invoice reference from entityRef
|
|
375
|
+
processEfactMessage(user, hcp, efactMessage, invoicePrefix, invoicePrefixer) {
|
|
376
|
+
const ref = efactMessage.commonOutput.inputReference
|
|
377
|
+
? Number(efactMessage.commonOutput.inputReference) % 10000000000
|
|
378
|
+
: Number(efactMessage.commonOutput.outputReference.replace(/\D+/g, "")) % 10000000000;
|
|
379
|
+
return this.api
|
|
380
|
+
.findMessagesByTransportGuid("EFACT:BATCH:" + ref, false, undefined, undefined, 100)
|
|
381
|
+
.then(parents => {
|
|
382
|
+
const msgsForHcp = _.filter(parents && parents.rows, (p) => p.responsible === hcp.id);
|
|
383
|
+
if (!msgsForHcp.length) {
|
|
384
|
+
throw new Error(`Cannot find parent with ref ${ref}`);
|
|
385
|
+
}
|
|
386
|
+
const messageType = efactMessage.detail.substr(0, 6);
|
|
387
|
+
const parser = messageType === "920098"
|
|
388
|
+
? new efact_parser_1.EfactMessage920098Reader(efactMessage)
|
|
389
|
+
: messageType === "920099"
|
|
390
|
+
? new efact_parser_1.EfactMessage920099Reader(efactMessage)
|
|
391
|
+
: messageType === "920900"
|
|
392
|
+
? new efact_parser_1.EfactMessage920900Reader(efactMessage)
|
|
393
|
+
: messageType === "920999"
|
|
394
|
+
? new efact_parser_1.EfactMessage920999Reader(efactMessage)
|
|
395
|
+
: messageType === "931000"
|
|
396
|
+
? new efact_parser_1.EfactMessage931000Reader(efactMessage)
|
|
397
|
+
: null;
|
|
398
|
+
if (!parser) {
|
|
399
|
+
throw Error(`Unsupported message type ${messageType}`);
|
|
400
|
+
}
|
|
401
|
+
const parsedRecords = parser.read();
|
|
402
|
+
if (!parsedRecords) {
|
|
403
|
+
throw new Error("Cannot parse...");
|
|
404
|
+
}
|
|
405
|
+
// Find message for Hcp based on the invoiceReference if present (!931000)
|
|
406
|
+
const fileReference = _.get(parsedRecords, "et10.invoiceReference");
|
|
407
|
+
const parentMessage = fileReference
|
|
408
|
+
? _.find(msgsForHcp, m => (0, efact_util_1.uuidBase36)(m.id) === fileReference.trim())
|
|
409
|
+
: msgsForHcp[0];
|
|
410
|
+
if (!parentMessage) {
|
|
411
|
+
throw new Error(`Cannot match parent with fileReference for file with ref ${ref}`);
|
|
412
|
+
}
|
|
413
|
+
const errors = this.extractErrors(parsedRecords);
|
|
414
|
+
const statuses = (["920999", "920099"].includes(messageType) ? 1 << 17 /*STATUS_FULL_ERROR*/ : 0) |
|
|
415
|
+
(["920900"].includes(messageType) && errors.length
|
|
416
|
+
? 1 << 16 /*STATUS_PARTIAL_SUCCESS*/
|
|
417
|
+
: 0) |
|
|
418
|
+
(["920900"].includes(messageType) && !errors.length
|
|
419
|
+
? 1 << 15 /*STATUS_FULL_SUCCESS*/
|
|
420
|
+
: 0) |
|
|
421
|
+
(["920999"].includes(messageType) ? 1 << 12 /*STATUS_REJECTED*/ : 0) |
|
|
422
|
+
(["920900", "920098", "920099"].includes(messageType) ? 1 << 11 /*STATUS_ACCEPTED*/ : 0) |
|
|
423
|
+
(["920098"].includes(messageType) && errors.length
|
|
424
|
+
? 1 << 22 /*STATUS_ERRORS_IN_PRELIMINARY_CONTROL*/
|
|
425
|
+
: 0) |
|
|
426
|
+
(["931000"].includes(messageType) ? 1 << 10 /*STATUS_ACCEPTED_FOR_TREATMENT*/ : 0) |
|
|
427
|
+
(["931000", "920999"].includes(messageType) ? 1 << 9 /*STATUS_RECEIVED*/ : 0);
|
|
428
|
+
const batchErrors = _.compact([
|
|
429
|
+
_.get(parsedRecords, "zone200.errorDetail"),
|
|
430
|
+
_.get(parsedRecords, "zone300.errorDetail"),
|
|
431
|
+
_.get(parsedRecords, "et10.errorDetail"),
|
|
432
|
+
_.get(parsedRecords, "et90.errorDetail")
|
|
433
|
+
]);
|
|
434
|
+
const invoicingErrors = parsedRecords.records
|
|
435
|
+
? _.compact(_.flatMap(parsedRecords.records, r => {
|
|
436
|
+
const errors = [];
|
|
437
|
+
let refEt20 = r.et20 && r.et20.reference.trim();
|
|
438
|
+
if (r.et20 && r.et20.errorDetail) {
|
|
439
|
+
errors.push({
|
|
440
|
+
itemId: (0, efact_util_1.decodeBase36Uuid)(refEt20),
|
|
441
|
+
error: r.et20.errorDetail,
|
|
442
|
+
record: "ET20"
|
|
443
|
+
});
|
|
444
|
+
if (r.et80 && r.et80.errorDetail) {
|
|
445
|
+
errors.push({
|
|
446
|
+
itemId: (0, efact_util_1.decodeBase36Uuid)(refEt20),
|
|
447
|
+
error: r.et80.errorDetail,
|
|
448
|
+
record: "ET80"
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
_.each(r.items, i => {
|
|
453
|
+
let ref = (i.et50 && i.et50.itemReference.trim()) || refEt20; //fallback
|
|
454
|
+
if (i.et50 && i.et50.errorDetail) {
|
|
455
|
+
errors.push({
|
|
456
|
+
itemId: ref && (0, efact_util_1.decodeBase36Uuid)(ref),
|
|
457
|
+
error: i.et50.errorDetail,
|
|
458
|
+
record: "ET50"
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
if (i.et51 && i.et51.errorDetail) {
|
|
462
|
+
errors.push({
|
|
463
|
+
itemId: ref && (0, efact_util_1.decodeBase36Uuid)(ref),
|
|
464
|
+
error: i.et51.errorDetail,
|
|
465
|
+
record: "ET51"
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
if (i.et52 && i.et52.errorDetail) {
|
|
469
|
+
errors.push({
|
|
470
|
+
itemId: ref && (0, efact_util_1.decodeBase36Uuid)(ref),
|
|
471
|
+
error: i.et52.errorDetail,
|
|
472
|
+
record: "ET52"
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
});
|
|
476
|
+
return errors;
|
|
477
|
+
}))
|
|
478
|
+
: [];
|
|
479
|
+
return this.api
|
|
480
|
+
.newInstance(user, {
|
|
481
|
+
// tslint:disable-next-line:no-bitwise
|
|
482
|
+
status: (1 << 1) /*STATUS_UNREAD*/ | statuses,
|
|
483
|
+
transportGuid: "EFACT:IN:" + ref,
|
|
484
|
+
fromAddress: "EFACT",
|
|
485
|
+
sent: (0, formatting_util_1.timeEncode)(new Date()),
|
|
486
|
+
fromHealthcarePartyId: hcp.id,
|
|
487
|
+
recipients: [hcp.id],
|
|
488
|
+
recipientsType: "org.taktik.icure.entities.HealthcareParty",
|
|
489
|
+
received: +new Date(),
|
|
490
|
+
subject: messageType,
|
|
491
|
+
parentId: parentMessage.id,
|
|
492
|
+
senderReferences: {
|
|
493
|
+
inputReference: efactMessage.commonOutput.inputReference,
|
|
494
|
+
outputReference: efactMessage.commonOutput.outputReference,
|
|
495
|
+
nipReference: efactMessage.commonOutput.nipReference
|
|
496
|
+
}
|
|
497
|
+
})
|
|
498
|
+
.then(msg => this.api.createMessage(msg))
|
|
499
|
+
.then(msg => Promise.all([
|
|
500
|
+
this.documentXApi.newInstance(user, msg, {
|
|
501
|
+
mainUti: "public.plain-text",
|
|
502
|
+
name: msg.subject
|
|
503
|
+
}),
|
|
504
|
+
this.documentXApi.newInstance(user, msg, {
|
|
505
|
+
mainUti: "public.json",
|
|
506
|
+
name: `${msg.subject}_records`
|
|
507
|
+
}),
|
|
508
|
+
this.documentXApi.newInstance(user, msg, {
|
|
509
|
+
mainUti: "public.json",
|
|
510
|
+
name: `${msg.subject}_parsed_records`
|
|
511
|
+
})
|
|
512
|
+
])
|
|
513
|
+
.then(([doc, jsonDoc, jsonParsedDoc]) => Promise.all([
|
|
514
|
+
this.documentXApi.createDocument(doc),
|
|
515
|
+
this.documentXApi.createDocument(jsonDoc),
|
|
516
|
+
this.documentXApi.createDocument(jsonParsedDoc)
|
|
517
|
+
]))
|
|
518
|
+
.then(([doc, jsonDoc, jsonParsedDoc]) => Promise.all([
|
|
519
|
+
this.documentXApi.setDocumentAttachment(doc.id, undefined /*TODO provide keys for encryption*/, (0, api_1.ua2ab)((0, api_1.string2ua)(efactMessage.detail))),
|
|
520
|
+
this.documentXApi.setDocumentAttachment(jsonDoc.id, undefined /*TODO provide keys for encryption*/, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(efactMessage)))),
|
|
521
|
+
this.documentXApi.setDocumentAttachment(jsonParsedDoc.id, undefined /*TODO provide keys for encryption*/, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(parsedRecords))))
|
|
522
|
+
]))
|
|
523
|
+
.then(() => ["920999", "920099", "920900"].includes(messageType)
|
|
524
|
+
? this.invoiceXApi.getInvoices(new api_1.ListOfIds({ ids: parentMessage.invoiceIds }))
|
|
525
|
+
: Promise.resolve([]))
|
|
526
|
+
.then((invoices) => {
|
|
527
|
+
// RejectAll if "920999", "920099"
|
|
528
|
+
const rejectAll = (statuses & (1 << 17)) /*STATUS_ERROR*/ > 0;
|
|
529
|
+
let promise = Promise.resolve([]);
|
|
530
|
+
_.forEach(invoices, iv => {
|
|
531
|
+
iv.error =
|
|
532
|
+
_(invoicingErrors)
|
|
533
|
+
.filter(it => it.itemId === iv.id)
|
|
534
|
+
.map(e => this.extractErrorMessage(e.error))
|
|
535
|
+
.compact()
|
|
536
|
+
.join("; ") || undefined;
|
|
537
|
+
let newInvoicePromise = null;
|
|
538
|
+
_.each(iv.invoicingCodes, ic => {
|
|
539
|
+
// If the invoicing code is already treated, do not treat it
|
|
540
|
+
if (ic.canceled || ic.accepted) {
|
|
541
|
+
return;
|
|
542
|
+
}
|
|
543
|
+
// Error from the ET50/51/52 linked to the invoicingCode
|
|
544
|
+
const codeError = _(invoicingErrors)
|
|
545
|
+
.filter(it => it.itemId === ic.id)
|
|
546
|
+
.map(e => this.extractErrorMessage(e.error))
|
|
547
|
+
.compact()
|
|
548
|
+
.join("; ") || undefined;
|
|
549
|
+
const record50 = messageType === "920900" &&
|
|
550
|
+
_.compact(_.flatMap(parsedRecords.records, r => r.items.map(i => _.get(i, "et50.itemReference") &&
|
|
551
|
+
(0, efact_util_1.decodeBase36Uuid)(i.et50.itemReference.trim()) === ic.id &&
|
|
552
|
+
i.et50)))[0];
|
|
553
|
+
const zone114amount = record50 &&
|
|
554
|
+
_.get(record50, "errorDetail.zone114") &&
|
|
555
|
+
Number(record50.errorDetail.zone114);
|
|
556
|
+
if (rejectAll || codeError) {
|
|
557
|
+
ic.accepted = false;
|
|
558
|
+
ic.canceled = true;
|
|
559
|
+
ic.pending = false;
|
|
560
|
+
ic.resent = false;
|
|
561
|
+
ic.error = codeError;
|
|
562
|
+
ic.paid = zone114amount ? Number((zone114amount / 100).toFixed(2)) : 0;
|
|
563
|
+
newInvoicePromise = (newInvoicePromise ||
|
|
564
|
+
this.patientApi
|
|
565
|
+
.getPatientIdOfChildDocumentForHcpAndHcpParents(iv, user.healthcarePartyId)
|
|
566
|
+
.then(patientId => this.patientApi.getPatientWithUser(user, patientId))
|
|
567
|
+
.then(pat => this.invoiceXApi.newInstance(user, pat, _.omit(iv, [
|
|
568
|
+
"id",
|
|
569
|
+
"rev",
|
|
570
|
+
"deletionDate",
|
|
571
|
+
"created",
|
|
572
|
+
"modified",
|
|
573
|
+
"sentDate",
|
|
574
|
+
"printedDate",
|
|
575
|
+
"secretForeignKeys",
|
|
576
|
+
"cryptedForeignKeys",
|
|
577
|
+
"delegations",
|
|
578
|
+
"encryptionKeys",
|
|
579
|
+
"invoicingCodes",
|
|
580
|
+
"error",
|
|
581
|
+
"receipts",
|
|
582
|
+
"encryptedSelf"
|
|
583
|
+
])))
|
|
584
|
+
.then(niv => {
|
|
585
|
+
iv.correctiveInvoiceId = niv.id;
|
|
586
|
+
niv.correctedInvoiceId = iv.id;
|
|
587
|
+
return niv;
|
|
588
|
+
})).then(niv => {
|
|
589
|
+
niv.invoicingCodes = (niv.invoicingCodes || []).concat(_.assign({}, ic, {
|
|
590
|
+
id: this.crypto.randomUuid(),
|
|
591
|
+
accepted: false,
|
|
592
|
+
canceled: false,
|
|
593
|
+
pending: true,
|
|
594
|
+
resent: true,
|
|
595
|
+
archived: false
|
|
596
|
+
}));
|
|
597
|
+
return niv;
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
else {
|
|
601
|
+
ic.accepted = true;
|
|
602
|
+
ic.canceled = false;
|
|
603
|
+
ic.pending = false;
|
|
604
|
+
ic.resent = false;
|
|
605
|
+
ic.error = undefined;
|
|
606
|
+
ic.paid = zone114amount
|
|
607
|
+
? Number((zone114amount / 100).toFixed(2))
|
|
608
|
+
: ic.reimbursement;
|
|
609
|
+
}
|
|
610
|
+
});
|
|
611
|
+
promise = promise.then(invoices => {
|
|
612
|
+
return (newInvoicePromise
|
|
613
|
+
? newInvoicePromise
|
|
614
|
+
.then(niv => (invoicePrefixer
|
|
615
|
+
? invoicePrefixer(niv, user.healthcarePartyId)
|
|
616
|
+
: Promise.resolve(invoicePrefix)).then(pfx => this.invoiceXApi.createInvoice(niv, pfx)))
|
|
617
|
+
.then(niv => invoices.push(niv))
|
|
618
|
+
: Promise.resolve(0))
|
|
619
|
+
.then(() => this.invoiceXApi.modifyInvoice(iv))
|
|
620
|
+
.then(iv => invoices.push(iv))
|
|
621
|
+
.then(() => invoices);
|
|
622
|
+
});
|
|
623
|
+
});
|
|
624
|
+
return promise;
|
|
625
|
+
})
|
|
626
|
+
.then(invoices => {
|
|
627
|
+
parentMessage.status = (parentMessage.status || 0) | statuses;
|
|
628
|
+
if (batchErrors.length) {
|
|
629
|
+
parentMessage.metas = _.assign(parentMessage.metas || {}, {
|
|
630
|
+
errors: _(batchErrors)
|
|
631
|
+
.map(this.extractErrorMessage)
|
|
632
|
+
.uniq()
|
|
633
|
+
.compact()
|
|
634
|
+
.value()
|
|
635
|
+
.join("; ")
|
|
636
|
+
});
|
|
637
|
+
}
|
|
638
|
+
if (parsedRecords.et91) {
|
|
639
|
+
let et91s = parsedRecords.et91;
|
|
640
|
+
parentMessage.metas = _.assign(parentMessage.metas || {}, {
|
|
641
|
+
paymentReferenceAccount1: _(et91s)
|
|
642
|
+
.map(et91 => et91.paymentReferenceAccount1)
|
|
643
|
+
.uniq()
|
|
644
|
+
.value()
|
|
645
|
+
.join(", ")
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
if (parsedRecords.et92) {
|
|
649
|
+
let et92 = parsedRecords.et92;
|
|
650
|
+
parentMessage.metas = _.assign(parentMessage.metas || {}, {
|
|
651
|
+
totalAskedAmount: Number(et92.totalAskedAmount) / 100,
|
|
652
|
+
totalAcceptedAmount: Number(et92.totalAcceptedAmount) / 100,
|
|
653
|
+
totalRejectedAmount: Number(et92.totalRejectedAmount) / 100
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
return this.api
|
|
657
|
+
.modifyMessage(parentMessage)
|
|
658
|
+
.then(message => ({ message, invoices }));
|
|
659
|
+
}));
|
|
660
|
+
});
|
|
661
|
+
}
|
|
662
|
+
sendBatch(user, hcp, invoices, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, efactApi, fhcServer = undefined, prefixer, isConnectedAsPmg = false, medicalLocationId = null) {
|
|
663
|
+
const uuid = this.crypto.randomUuid();
|
|
664
|
+
const smallBase36 = (0, efact_util_1.uuidBase36Half)(uuid);
|
|
665
|
+
const fullBase36 = (0, efact_util_1.uuidBase36)(uuid);
|
|
666
|
+
const sentDate = +new Date();
|
|
667
|
+
const errors = [];
|
|
668
|
+
const year = moment().year();
|
|
669
|
+
return (0, efact_util_1.getFederaton)(invoices, this.insuranceApi).then(fed => {
|
|
670
|
+
return (prefixer
|
|
671
|
+
? prefixer(fed, hcp.id)
|
|
672
|
+
: Promise.resolve(`efact:${hcp.id}:${year}:${fed.code === "306" ? "300" : fed.code === "675" ? "600" : fed.code}:`)).then(prefix => {
|
|
673
|
+
return this.entityReferenceApi
|
|
674
|
+
.getLatest(prefix)
|
|
675
|
+
.then((er) => {
|
|
676
|
+
let nextSeqNumber = er && er.id && er.id.startsWith(prefix)
|
|
677
|
+
? (Number(er.id.split(":").pop()) || 0) + 1
|
|
678
|
+
: 1;
|
|
679
|
+
return this.entityReferenceApi.createEntityReference(new api_1.EntityReference({
|
|
680
|
+
id: prefix + _.padStart("" + (nextSeqNumber % 1000000000), 9, "0"),
|
|
681
|
+
docId: uuid
|
|
682
|
+
}));
|
|
683
|
+
})
|
|
684
|
+
.then(er => (0, efact_util_1.toInvoiceBatch)(invoices, hcp, fullBase36, er && er.id ? Number(er.id.substr(prefix.length)) % 1000 : 0, smallBase36, this.insuranceApi, this.invoiceXApi, this.api, medicalLocationId === "medicalhouse"))
|
|
685
|
+
.then(batch => efactApi
|
|
686
|
+
.sendBatchUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, batch)
|
|
687
|
+
//.then(() => { throw "ERREUR FORCEE" })
|
|
688
|
+
.catch(err => {
|
|
689
|
+
// The FHC has crashed but the batch could be sent, so be careful !
|
|
690
|
+
const errorMessage = _.get(err, "message", err.toString ? err.toString() : "Server error");
|
|
691
|
+
const blockingErrors = [
|
|
692
|
+
"Gateway Timeout",
|
|
693
|
+
"Failed to fetch" // is due to internet connection lost (shutdown wifi just before sending batch)
|
|
694
|
+
];
|
|
695
|
+
if (_.includes(blockingErrors, errorMessage.trim())) {
|
|
696
|
+
throw errorMessage;
|
|
697
|
+
}
|
|
698
|
+
return { error: errorMessage };
|
|
699
|
+
})
|
|
700
|
+
.then((r) => {
|
|
701
|
+
const res = r;
|
|
702
|
+
if (res.success || res.error) {
|
|
703
|
+
let promise = Promise.resolve(true);
|
|
704
|
+
let totalAmount = 0;
|
|
705
|
+
_.forEach(invoices, iv => {
|
|
706
|
+
promise = promise.then(() => {
|
|
707
|
+
_.forEach(iv.invoice.invoicingCodes, code => {
|
|
708
|
+
code.pending = true; // STATUS_PENDING
|
|
709
|
+
totalAmount += code.reimbursement || 0;
|
|
710
|
+
});
|
|
711
|
+
iv.invoice.sentDate = sentDate;
|
|
712
|
+
return !!this.invoiceXApi.modifyInvoice(iv.invoice).catch(() => {
|
|
713
|
+
errors.push(`efac-management.CANNOT_UPDATE_INVOICE.${iv.invoice.id}`);
|
|
714
|
+
});
|
|
715
|
+
});
|
|
716
|
+
});
|
|
717
|
+
return promise
|
|
718
|
+
.then(() => this.api.newInstance(user, {
|
|
719
|
+
id: uuid,
|
|
720
|
+
medicalLocationId,
|
|
721
|
+
invoiceIds: invoices.map(i => i.invoice.id),
|
|
722
|
+
// tslint:disable-next-line:no-bitwise
|
|
723
|
+
status: 1 << 6,
|
|
724
|
+
externalRef: _.padStart("" + batch.uniqueSendNumber, 3, "0"),
|
|
725
|
+
transportGuid: "EFACT:BATCH:" + batch.numericalRef,
|
|
726
|
+
sent: (0, formatting_util_1.timeEncode)(new Date()),
|
|
727
|
+
fromHealthcarePartyId: hcp.id,
|
|
728
|
+
recipients: [fed.id],
|
|
729
|
+
recipientsType: "org.taktik.icure.entities.Insurance"
|
|
730
|
+
}))
|
|
731
|
+
.then(message => this.api.createMessage(Object.assign(message, {
|
|
732
|
+
sent: sentDate,
|
|
733
|
+
status: (message.status || 0) | (res.success ? 1 << 7 : 0) /*STATUS_SENT*/,
|
|
734
|
+
metas: {
|
|
735
|
+
ioFederationCode: batch.ioFederationCode,
|
|
736
|
+
numericalRef: batch.numericalRef,
|
|
737
|
+
invoiceMonth: _.padStart("" + batch.invoicingMonth, 2, "0"),
|
|
738
|
+
invoiceYear: _.padStart("" + batch.invoicingYear, 4, "0"),
|
|
739
|
+
totalAmount: totalAmount,
|
|
740
|
+
fhc_server: fhcServer,
|
|
741
|
+
errors: res.error
|
|
742
|
+
}
|
|
743
|
+
})))
|
|
744
|
+
.then((msg) => {
|
|
745
|
+
if (res.success) {
|
|
746
|
+
// Continue even if error ...
|
|
747
|
+
this.saveMessageAttachment(user, msg, res);
|
|
748
|
+
}
|
|
749
|
+
return msg;
|
|
750
|
+
});
|
|
751
|
+
}
|
|
752
|
+
else {
|
|
753
|
+
throw "Cannot send batch";
|
|
754
|
+
}
|
|
755
|
+
}))
|
|
756
|
+
.catch(err => {
|
|
757
|
+
console.log(err);
|
|
758
|
+
errors.push(err);
|
|
759
|
+
throw new Error(errors.join(","));
|
|
760
|
+
});
|
|
761
|
+
});
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
saveMessageAttachment(user, msg, res) {
|
|
765
|
+
return Promise.all([
|
|
766
|
+
this.documentXApi.newInstance(user, msg, {
|
|
767
|
+
mainUti: "public.json",
|
|
768
|
+
name: "920000_records"
|
|
769
|
+
}),
|
|
770
|
+
this.documentXApi.newInstance(user, msg, {
|
|
771
|
+
mainUti: "public.plain-text",
|
|
772
|
+
name: "920000"
|
|
773
|
+
})
|
|
774
|
+
])
|
|
775
|
+
.then(([jsonDoc, doc]) => Promise.all([
|
|
776
|
+
this.documentXApi.createDocument(jsonDoc),
|
|
777
|
+
this.documentXApi.createDocument(doc)
|
|
778
|
+
]))
|
|
779
|
+
.then(([jsonDoc, doc]) => Promise.all([
|
|
780
|
+
this.documentXApi.setDocumentAttachment(jsonDoc.id, undefined /*TODO provide keys for encryption*/, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(res.records)))),
|
|
781
|
+
this.documentXApi.setDocumentAttachment(doc.id, undefined /*TODO provide keys for encryption*/, (0, api_1.ua2ab)((0, api_1.string2ua)(res.detail)))
|
|
782
|
+
]))
|
|
783
|
+
.then(() => this.receiptXApi.iccApi.logReceipt(user, msg.id, [
|
|
784
|
+
`mycarenet:efact:inputReference:${res.inputReference}`,
|
|
785
|
+
res.tack.appliesTo,
|
|
786
|
+
res.tack.reference
|
|
787
|
+
], "tack", (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(res.tack)))));
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
exports.MessageXApi = MessageXApi;
|