candidhealth 1.12.1 → 1.14.0
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/Client.d.ts +3 -3
- package/Client.js +53 -53
- package/api/resources/commons/types/ProcedureModifier.d.ts +3 -0
- package/api/resources/commons/types/ProcedureModifier.js +3 -0
- package/api/resources/commons/types/index.d.ts +2 -0
- package/api/resources/commons/types/index.js +2 -0
- package/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +12 -1
- package/api/resources/encounterAttachments/resources/v1/client/Client.js +64 -1
- package/api/resources/encounterAttachments/resources/v1/client/createWithDescription.d.ts +19 -0
- package/api/resources/encounterAttachments/resources/v1/client/createWithDescription.js +55 -0
- package/api/resources/encounterAttachments/resources/v1/client/index.d.ts +1 -0
- package/api/resources/encounterAttachments/resources/v1/client/index.js +2 -1
- package/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentV2Request.d.ts +5 -0
- package/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentV2Request.js +3 -0
- package/api/resources/encounterAttachments/resources/v1/client/requests/index.d.ts +1 -0
- package/api/resources/encounterAttachments/resources/v1/types/EncounterAttachment.d.ts +2 -0
- package/api/resources/encounterSupplementalInformation/client/Client.d.ts +14 -0
- package/api/resources/encounterSupplementalInformation/client/Client.js +15 -0
- package/api/resources/encounterSupplementalInformation/client/index.d.ts +1 -0
- package/api/resources/encounterSupplementalInformation/client/index.js +2 -0
- package/api/resources/encounterSupplementalInformation/index.d.ts +2 -0
- package/api/resources/encounterSupplementalInformation/index.js +18 -0
- package/api/resources/encounterSupplementalInformation/resources/index.d.ts +1 -0
- package/{dist/api/resources/serviceFacility/client → api/resources/encounterSupplementalInformation/resources}/index.js +2 -2
- package/api/resources/encounterSupplementalInformation/resources/v1/client/Client.d.ts +59 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/client/Client.js +328 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/client/create.d.ts +25 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/client/create.js +66 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/client/delete.d.ts +25 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/client/delete.js +66 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/client/get.d.ts +19 -0
- package/api/resources/{serviceFacility/client/update.js → encounterSupplementalInformation/resources/v1/client/get.js} +2 -2
- package/api/resources/encounterSupplementalInformation/resources/v1/client/index.d.ts +4 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/client/index.js +40 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/client/update.d.ts +25 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/client/update.js +66 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/index.d.ts +2 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/index.js +18 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.d.ts +6 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.js +9 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.d.ts +8 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.js +3 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.d.ts +10 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.js +3 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.d.ts +5 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.js +7 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.d.ts +8 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.js +3 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/types/index.d.ts +5 -0
- package/api/resources/encounterSupplementalInformation/resources/v1/types/index.js +21 -0
- package/api/resources/encounters/resources/v4/client/Client.d.ts +97 -0
- package/api/resources/encounters/resources/v4/client/Client.js +312 -0
- package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +67 -0
- package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +143 -0
- package/api/resources/encounters/resources/v4/client/createUniversal.d.ts +91 -0
- package/api/resources/encounters/resources/v4/client/createUniversal.js +187 -0
- package/api/resources/encounters/resources/v4/client/index.d.ts +3 -0
- package/api/resources/encounters/resources/v4/client/index.js +4 -1
- package/api/resources/encounters/resources/v4/client/updateUniversal.d.ts +67 -0
- package/api/resources/encounters/resources/v4/client/updateUniversal.js +143 -0
- package/api/resources/encounters/resources/v4/types/ClaimSupplementalInformation.d.ts +2 -2
- package/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +2 -2
- package/api/resources/encounters/resources/v4/types/index.d.ts +0 -2
- package/api/resources/encounters/resources/v4/types/index.js +0 -2
- package/api/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +46 -0
- package/api/resources/encountersUniversal/types/UniversalEncounterCreate.js +3 -0
- package/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +44 -0
- package/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +3 -0
- package/api/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +36 -0
- package/api/resources/encountersUniversal/types/UniversalEncounterUpdate.js +3 -0
- package/api/resources/encountersUniversal/types/index.d.ts +3 -0
- package/api/resources/encountersUniversal/types/index.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +8 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +8 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +8 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +9 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +27 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +15 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +9 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +9 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +15 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +8 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +9 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +15 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +8 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +9 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +4 -2
- package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +2 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +2 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +2 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +2 -2
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +6 -3
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientScanRequest.d.ts +1 -0
- package/api/resources/serviceFacility/index.d.ts +0 -1
- package/api/resources/serviceFacility/index.js +0 -1
- package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +8 -0
- package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +3 -0
- package/api/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/api/resources/serviceLines/resources/v2/types/index.js +1 -0
- package/api/resources/users/index.d.ts +1 -0
- package/api/resources/users/index.js +17 -0
- package/api/resources/users/resources/index.d.ts +1 -0
- package/api/resources/{serviceFacility/client → users/resources}/index.js +2 -2
- package/api/resources/users/resources/v2/index.d.ts +1 -0
- package/api/resources/users/resources/v2/index.js +17 -0
- package/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +9 -0
- package/api/resources/users/resources/v2/types/AuthZeroMetadata.js +3 -0
- package/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +3 -0
- package/api/resources/users/resources/v2/types/GoogleAppsMetadata.js +3 -0
- package/api/resources/users/resources/v2/types/HumanUserMetadata.d.ts +13 -0
- package/api/resources/users/resources/v2/types/HumanUserMetadata.js +3 -0
- package/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +20 -0
- package/api/resources/users/resources/v2/types/IdpUserMetadata.js +3 -0
- package/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +3 -0
- package/api/resources/users/resources/v2/types/MachineUserMetadata.js +3 -0
- package/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +3 -0
- package/api/resources/users/resources/v2/types/OtherIdpMetadata.js +3 -0
- package/api/resources/users/resources/v2/types/UserMetadata.d.ts +19 -0
- package/api/resources/users/resources/v2/types/UserMetadata.js +3 -0
- package/api/resources/users/resources/v2/types/UserV2.d.ts +24 -0
- package/api/resources/users/resources/v2/types/UserV2.js +3 -0
- package/api/resources/users/resources/v2/types/index.d.ts +8 -0
- package/api/resources/users/resources/v2/types/index.js +24 -0
- package/api/resources/x12/resources/v1/types/Carc.d.ts +1 -0
- package/api/resources/x12/resources/v1/types/Carc.js +1 -0
- package/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +27 -0
- package/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js +3 -0
- package/api/resources/x12/resources/v1/types/index.d.ts +1 -0
- package/api/resources/x12/resources/v1/types/index.js +1 -0
- package/dist/Client.d.ts +3 -3
- package/dist/Client.js +53 -53
- package/dist/api/resources/commons/types/ProcedureModifier.d.ts +3 -0
- package/dist/api/resources/commons/types/ProcedureModifier.js +3 -0
- package/dist/api/resources/commons/types/index.d.ts +2 -0
- package/dist/api/resources/commons/types/index.js +2 -0
- package/dist/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +12 -1
- package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +64 -1
- package/dist/api/resources/encounterAttachments/resources/v1/client/createWithDescription.d.ts +19 -0
- package/dist/api/resources/encounterAttachments/resources/v1/client/createWithDescription.js +55 -0
- package/dist/api/resources/encounterAttachments/resources/v1/client/index.d.ts +1 -0
- package/dist/api/resources/encounterAttachments/resources/v1/client/index.js +2 -1
- package/dist/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentV2Request.d.ts +5 -0
- package/dist/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentV2Request.js +3 -0
- package/dist/api/resources/encounterAttachments/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/api/resources/encounterAttachments/resources/v1/types/EncounterAttachment.d.ts +2 -0
- package/dist/api/resources/encounterSupplementalInformation/client/Client.d.ts +14 -0
- package/dist/api/resources/encounterSupplementalInformation/client/Client.js +15 -0
- package/dist/api/resources/encounterSupplementalInformation/client/index.d.ts +1 -0
- package/dist/api/resources/encounterSupplementalInformation/client/index.js +2 -0
- package/dist/api/resources/encounterSupplementalInformation/index.d.ts +2 -0
- package/dist/api/resources/encounterSupplementalInformation/index.js +18 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/index.d.ts +1 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/index.js +37 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/Client.d.ts +59 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/Client.js +328 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/create.d.ts +25 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/create.js +66 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/delete.d.ts +25 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/delete.js +66 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/get.d.ts +19 -0
- package/dist/api/resources/{serviceFacility/client/update.js → encounterSupplementalInformation/resources/v1/client/get.js} +2 -2
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/index.d.ts +4 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/index.js +40 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/update.d.ts +25 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/update.js +66 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/index.d.ts +2 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/index.js +18 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.d.ts +6 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.js +9 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.d.ts +8 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.js +3 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.d.ts +10 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.js +3 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.d.ts +5 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.js +7 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.d.ts +8 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.js +3 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/index.d.ts +5 -0
- package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/index.js +21 -0
- package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +97 -0
- package/dist/api/resources/encounters/resources/v4/client/Client.js +312 -0
- package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +67 -0
- package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +143 -0
- package/dist/api/resources/encounters/resources/v4/client/createUniversal.d.ts +91 -0
- package/dist/api/resources/encounters/resources/v4/client/createUniversal.js +187 -0
- package/dist/api/resources/encounters/resources/v4/client/index.d.ts +3 -0
- package/dist/api/resources/encounters/resources/v4/client/index.js +4 -1
- package/dist/api/resources/encounters/resources/v4/client/updateUniversal.d.ts +67 -0
- package/dist/api/resources/encounters/resources/v4/client/updateUniversal.js +143 -0
- package/dist/api/resources/encounters/resources/v4/types/ClaimSupplementalInformation.d.ts +2 -2
- package/dist/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +2 -2
- package/dist/api/resources/encounters/resources/v4/types/index.d.ts +0 -2
- package/dist/api/resources/encounters/resources/v4/types/index.js +0 -2
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +46 -0
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreate.js +3 -0
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +44 -0
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +3 -0
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +36 -0
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterUpdate.js +3 -0
- package/dist/api/resources/encountersUniversal/types/index.d.ts +3 -0
- package/dist/api/resources/encountersUniversal/types/index.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +8 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +8 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +8 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +9 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +27 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +15 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +9 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +9 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +15 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +8 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +9 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +15 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +8 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +9 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +4 -2
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +2 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +2 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +2 -2
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +6 -3
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientScanRequest.d.ts +1 -0
- package/dist/api/resources/serviceFacility/index.d.ts +0 -1
- package/dist/api/resources/serviceFacility/index.js +0 -1
- package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +8 -0
- package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +3 -0
- package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/dist/api/resources/serviceLines/resources/v2/types/index.js +1 -0
- package/dist/api/resources/users/index.d.ts +1 -0
- package/dist/api/resources/users/index.js +17 -0
- package/dist/api/resources/users/resources/index.d.ts +1 -0
- package/dist/api/resources/users/resources/index.js +37 -0
- package/dist/api/resources/users/resources/v2/index.d.ts +1 -0
- package/dist/api/resources/users/resources/v2/index.js +17 -0
- package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +9 -0
- package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.js +3 -0
- package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +3 -0
- package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.js +3 -0
- package/dist/api/resources/users/resources/v2/types/HumanUserMetadata.d.ts +13 -0
- package/dist/api/resources/users/resources/v2/types/HumanUserMetadata.js +3 -0
- package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +20 -0
- package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.js +3 -0
- package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +3 -0
- package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.js +3 -0
- package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +3 -0
- package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.js +3 -0
- package/dist/api/resources/users/resources/v2/types/UserMetadata.d.ts +19 -0
- package/dist/api/resources/users/resources/v2/types/UserMetadata.js +3 -0
- package/dist/api/resources/users/resources/v2/types/UserV2.d.ts +24 -0
- package/dist/api/resources/users/resources/v2/types/UserV2.js +3 -0
- package/dist/api/resources/users/resources/v2/types/index.d.ts +8 -0
- package/dist/api/resources/users/resources/v2/types/index.js +24 -0
- package/dist/api/resources/x12/resources/v1/types/Carc.d.ts +1 -0
- package/dist/api/resources/x12/resources/v1/types/Carc.js +1 -0
- package/dist/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +27 -0
- package/dist/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js +3 -0
- package/dist/api/resources/x12/resources/v1/types/index.d.ts +1 -0
- package/dist/api/resources/x12/resources/v1/types/index.js +1 -0
- package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
- package/dist/serialization/resources/commons/types/ProcedureModifier.js +1 -0
- package/dist/serialization/resources/commons/types/ReportTransmissionCode.d.ts +7 -0
- package/dist/serialization/resources/{encounters/resources/v4 → commons}/types/ReportTransmissionCode.js +1 -1
- package/{serialization/resources/encounters/resources/v4 → dist/serialization/resources/commons}/types/ReportTypeCode.d.ts +4 -4
- package/{serialization/resources/encounters/resources/v4 → dist/serialization/resources/commons}/types/ReportTypeCode.js +1 -1
- package/dist/serialization/resources/commons/types/index.d.ts +2 -0
- package/dist/serialization/resources/commons/types/index.js +2 -0
- package/dist/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachment.d.ts +3 -0
- package/dist/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachment.js +3 -0
- package/dist/serialization/resources/encounterSupplementalInformation/index.d.ts +1 -0
- package/dist/serialization/resources/encounterSupplementalInformation/index.js +17 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/index.d.ts +1 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/index.js +37 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/create.d.ts +12 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/create.js +69 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/delete.d.ts +12 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/delete.js +69 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/get.d.ts +8 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/get.js +40 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/index.d.ts +4 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/index.js +40 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/update.d.ts +12 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/update.js +69 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/index.d.ts +2 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/index.js +18 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.d.ts +7 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.js +39 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.d.ts +17 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.js +49 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.d.ts +21 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.js +53 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.d.ts +7 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.js +43 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.d.ts +17 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.js +49 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/index.d.ts +5 -0
- package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/index.js +21 -0
- package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +46 -0
- package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +110 -0
- package/dist/serialization/resources/encounters/resources/v4/client/createUniversal.d.ts +66 -0
- package/dist/serialization/resources/encounters/resources/v4/client/createUniversal.js +134 -0
- package/dist/serialization/resources/encounters/resources/v4/client/index.d.ts +3 -0
- package/dist/serialization/resources/encounters/resources/v4/client/index.js +4 -1
- package/dist/serialization/resources/encounters/resources/v4/client/updateUniversal.d.ts +47 -0
- package/dist/serialization/resources/encounters/resources/v4/client/updateUniversal.js +111 -0
- package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformation.d.ts +2 -2
- package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformation.js +2 -2
- package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +2 -2
- package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +2 -2
- package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +0 -2
- package/dist/serialization/resources/encounters/resources/v4/types/index.js +0 -2
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +36 -0
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.js +70 -0
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +34 -0
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +68 -0
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +29 -0
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.js +63 -0
- package/dist/serialization/resources/encountersUniversal/types/index.d.ts +3 -0
- package/dist/serialization/resources/encountersUniversal/types/index.js +3 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +13 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +47 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +13 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +47 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +13 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +47 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +15 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +49 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +34 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +66 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +15 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +49 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +15 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +49 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +15 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +49 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +15 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +49 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +13 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +47 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +15 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +49 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +15 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +49 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +13 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +47 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +15 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +49 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +4 -2
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +1 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.js +1 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +1 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.js +1 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +1 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.js +1 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +2 -2
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +2 -2
- package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +12 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +46 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +1 -0
- package/dist/serialization/resources/users/index.d.ts +1 -0
- package/dist/serialization/resources/users/index.js +17 -0
- package/dist/serialization/resources/users/resources/index.d.ts +1 -0
- package/dist/serialization/resources/users/resources/index.js +37 -0
- package/dist/serialization/resources/users/resources/v2/index.d.ts +1 -0
- package/dist/serialization/resources/users/resources/v2/index.js +17 -0
- package/dist/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +9 -0
- package/dist/serialization/resources/users/resources/v2/types/AuthZeroMetadata.js +41 -0
- package/dist/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +9 -0
- package/dist/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.js +41 -0
- package/dist/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +11 -0
- package/dist/serialization/resources/users/resources/v2/types/HumanUserMetadata.js +43 -0
- package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +19 -0
- package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.js +51 -0
- package/dist/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +9 -0
- package/dist/serialization/resources/users/resources/v2/types/MachineUserMetadata.js +41 -0
- package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +9 -0
- package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +41 -0
- package/dist/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +15 -0
- package/dist/serialization/resources/users/resources/v2/types/UserMetadata.js +49 -0
- package/dist/serialization/resources/users/resources/v2/types/UserV2.d.ts +16 -0
- package/dist/serialization/resources/users/resources/v2/types/UserV2.js +48 -0
- package/dist/serialization/resources/users/resources/v2/types/index.d.ts +8 -0
- package/dist/serialization/resources/users/resources/v2/types/index.js +24 -0
- package/dist/serialization/resources/x12/resources/v1/types/Carc.d.ts +1 -1
- package/dist/serialization/resources/x12/resources/v1/types/Carc.js +1 -0
- package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +15 -0
- package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js +50 -0
- package/dist/serialization/resources/x12/resources/v1/types/index.d.ts +1 -0
- package/dist/serialization/resources/x12/resources/v1/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +471 -60
- package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
- package/serialization/resources/commons/types/ProcedureModifier.js +1 -0
- package/serialization/resources/commons/types/ReportTransmissionCode.d.ts +7 -0
- package/serialization/resources/{encounters/resources/v4 → commons}/types/ReportTransmissionCode.js +1 -1
- package/{dist/serialization/resources/encounters/resources/v4 → serialization/resources/commons}/types/ReportTypeCode.d.ts +4 -4
- package/{dist/serialization/resources/encounters/resources/v4 → serialization/resources/commons}/types/ReportTypeCode.js +1 -1
- package/serialization/resources/commons/types/index.d.ts +2 -0
- package/serialization/resources/commons/types/index.js +2 -0
- package/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachment.d.ts +3 -0
- package/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachment.js +3 -0
- package/serialization/resources/encounterSupplementalInformation/index.d.ts +1 -0
- package/serialization/resources/encounterSupplementalInformation/index.js +17 -0
- package/serialization/resources/encounterSupplementalInformation/resources/index.d.ts +1 -0
- package/serialization/resources/encounterSupplementalInformation/resources/index.js +37 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/client/create.d.ts +12 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/client/create.js +69 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/client/delete.d.ts +12 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/client/delete.js +69 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/client/get.d.ts +8 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/client/get.js +40 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/client/index.d.ts +4 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/client/index.js +40 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/client/update.d.ts +12 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/client/update.js +69 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/index.d.ts +2 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/index.js +18 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.d.ts +7 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.js +39 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.d.ts +17 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.js +49 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.d.ts +21 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.js +53 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.d.ts +7 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.js +43 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.d.ts +17 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.js +49 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/types/index.d.ts +5 -0
- package/serialization/resources/encounterSupplementalInformation/resources/v1/types/index.js +21 -0
- package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +46 -0
- package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +110 -0
- package/serialization/resources/encounters/resources/v4/client/createUniversal.d.ts +66 -0
- package/serialization/resources/encounters/resources/v4/client/createUniversal.js +134 -0
- package/serialization/resources/encounters/resources/v4/client/index.d.ts +3 -0
- package/serialization/resources/encounters/resources/v4/client/index.js +4 -1
- package/serialization/resources/encounters/resources/v4/client/updateUniversal.d.ts +47 -0
- package/serialization/resources/encounters/resources/v4/client/updateUniversal.js +111 -0
- package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformation.d.ts +2 -2
- package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformation.js +2 -2
- package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +2 -2
- package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +2 -2
- package/serialization/resources/encounters/resources/v4/types/index.d.ts +0 -2
- package/serialization/resources/encounters/resources/v4/types/index.js +0 -2
- package/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +36 -0
- package/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.js +70 -0
- package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +34 -0
- package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +68 -0
- package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +29 -0
- package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.js +63 -0
- package/serialization/resources/encountersUniversal/types/index.d.ts +3 -0
- package/serialization/resources/encountersUniversal/types/index.js +3 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +13 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +47 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +13 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +47 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +13 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +47 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +15 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +49 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +34 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +66 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +15 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +49 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +15 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +49 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +15 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +49 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +15 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +49 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +13 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +47 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +15 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +49 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +15 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +49 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +13 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +47 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +15 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +49 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +4 -2
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +1 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.js +1 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +1 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.js +1 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +1 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.js +1 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +2 -2
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +2 -2
- package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +12 -0
- package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +46 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.js +1 -0
- package/serialization/resources/users/index.d.ts +1 -0
- package/serialization/resources/users/index.js +17 -0
- package/serialization/resources/users/resources/index.d.ts +1 -0
- package/serialization/resources/users/resources/index.js +37 -0
- package/serialization/resources/users/resources/v2/index.d.ts +1 -0
- package/serialization/resources/users/resources/v2/index.js +17 -0
- package/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +9 -0
- package/serialization/resources/users/resources/v2/types/AuthZeroMetadata.js +41 -0
- package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +9 -0
- package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.js +41 -0
- package/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +11 -0
- package/serialization/resources/users/resources/v2/types/HumanUserMetadata.js +43 -0
- package/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +19 -0
- package/serialization/resources/users/resources/v2/types/IdpUserMetadata.js +51 -0
- package/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +9 -0
- package/serialization/resources/users/resources/v2/types/MachineUserMetadata.js +41 -0
- package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +9 -0
- package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +41 -0
- package/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +15 -0
- package/serialization/resources/users/resources/v2/types/UserMetadata.js +49 -0
- package/serialization/resources/users/resources/v2/types/UserV2.d.ts +16 -0
- package/serialization/resources/users/resources/v2/types/UserV2.js +48 -0
- package/serialization/resources/users/resources/v2/types/index.d.ts +8 -0
- package/serialization/resources/users/resources/v2/types/index.js +24 -0
- package/serialization/resources/x12/resources/v1/types/Carc.d.ts +1 -1
- package/serialization/resources/x12/resources/v1/types/Carc.js +1 -0
- package/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +15 -0
- package/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js +50 -0
- package/serialization/resources/x12/resources/v1/types/index.d.ts +1 -0
- package/serialization/resources/x12/resources/v1/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/serviceFacility/client/Client.d.ts +0 -25
- package/api/resources/serviceFacility/client/Client.js +0 -119
- package/api/resources/serviceFacility/client/index.d.ts +0 -1
- package/api/resources/serviceFacility/client/update.d.ts +0 -19
- package/dist/api/resources/serviceFacility/client/Client.d.ts +0 -25
- package/dist/api/resources/serviceFacility/client/Client.js +0 -119
- package/dist/api/resources/serviceFacility/client/index.d.ts +0 -1
- package/dist/api/resources/serviceFacility/client/update.d.ts +0 -19
- package/dist/serialization/resources/encounters/resources/v4/types/ReportTransmissionCode.d.ts +0 -7
- package/serialization/resources/encounters/resources/v4/types/ReportTransmissionCode.d.ts +0 -7
- /package/api/resources/{encounters/resources/v4 → commons}/types/ReportTransmissionCode.d.ts +0 -0
- /package/api/resources/{encounters/resources/v4 → commons}/types/ReportTransmissionCode.js +0 -0
- /package/api/resources/{encounters/resources/v4 → commons}/types/ReportTypeCode.d.ts +0 -0
- /package/api/resources/{encounters/resources/v4 → commons}/types/ReportTypeCode.js +0 -0
- /package/dist/api/resources/{encounters/resources/v4 → commons}/types/ReportTransmissionCode.d.ts +0 -0
- /package/dist/api/resources/{encounters/resources/v4 → commons}/types/ReportTransmissionCode.js +0 -0
- /package/dist/api/resources/{encounters/resources/v4 → commons}/types/ReportTypeCode.d.ts +0 -0
- /package/dist/api/resources/{encounters/resources/v4 → commons}/types/ReportTypeCode.js +0 -0
|
@@ -223,6 +223,121 @@ class V4 {
|
|
|
223
223
|
};
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* @param {CandidApi.encountersUniversal.UniversalEncounterCreate} request
|
|
228
|
+
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
229
|
+
*
|
|
230
|
+
* @example
|
|
231
|
+
* await client.encounters.v4.createUniversal({
|
|
232
|
+
* billingProvider: {
|
|
233
|
+
* address: {
|
|
234
|
+
* zipPlusFourCode: "zip_plus_four_code",
|
|
235
|
+
* address1: "address1",
|
|
236
|
+
* city: "city",
|
|
237
|
+
* state: "AA",
|
|
238
|
+
* zipCode: "zip_code"
|
|
239
|
+
* },
|
|
240
|
+
* taxId: "tax_id",
|
|
241
|
+
* npi: "npi"
|
|
242
|
+
* },
|
|
243
|
+
* submissionExpectation: "TARGET_PROFESSIONAL",
|
|
244
|
+
* patient: {
|
|
245
|
+
* externalId: "external_id",
|
|
246
|
+
* dateOfBirth: "2023-01-15",
|
|
247
|
+
* address: {
|
|
248
|
+
* address1: "address1",
|
|
249
|
+
* city: "city",
|
|
250
|
+
* state: "AA",
|
|
251
|
+
* zipCode: "zip_code"
|
|
252
|
+
* },
|
|
253
|
+
* firstName: "first_name",
|
|
254
|
+
* lastName: "last_name",
|
|
255
|
+
* gender: "male"
|
|
256
|
+
* },
|
|
257
|
+
* responsibleParty: "INSURANCE_PAY",
|
|
258
|
+
* externalId: CandidApi.EncounterExternalId("external_id"),
|
|
259
|
+
* patientAuthorizedRelease: true,
|
|
260
|
+
* benefitsAssignedToProvider: true,
|
|
261
|
+
* providerAcceptsAssignment: true,
|
|
262
|
+
* billableStatus: "BILLABLE"
|
|
263
|
+
* })
|
|
264
|
+
*/
|
|
265
|
+
createUniversal(request, requestOptions) {
|
|
266
|
+
return core.HttpResponsePromise.fromPromise(this.__createUniversal(request, requestOptions));
|
|
267
|
+
}
|
|
268
|
+
__createUniversal(request, requestOptions) {
|
|
269
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
270
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
271
|
+
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
272
|
+
const _response = yield core.fetcher({
|
|
273
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).candidApi, "/api/encounters/v4/universal"),
|
|
274
|
+
method: "POST",
|
|
275
|
+
headers: _headers,
|
|
276
|
+
contentType: "application/json",
|
|
277
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
278
|
+
requestType: "json",
|
|
279
|
+
body: serializers.encountersUniversal.UniversalEncounterCreate.jsonOrThrow(request, {
|
|
280
|
+
unrecognizedObjectKeys: "strip",
|
|
281
|
+
}),
|
|
282
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
283
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
284
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
285
|
+
});
|
|
286
|
+
if (_response.ok) {
|
|
287
|
+
return {
|
|
288
|
+
data: {
|
|
289
|
+
ok: true,
|
|
290
|
+
body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
|
|
291
|
+
unrecognizedObjectKeys: "passthrough",
|
|
292
|
+
allowUnrecognizedUnionMembers: true,
|
|
293
|
+
allowUnrecognizedEnumValues: true,
|
|
294
|
+
breadcrumbsPrefix: ["response"],
|
|
295
|
+
}),
|
|
296
|
+
headers: _response.headers,
|
|
297
|
+
rawResponse: _response.rawResponse,
|
|
298
|
+
},
|
|
299
|
+
rawResponse: _response.rawResponse,
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
if (_response.error.reason === "status-code") {
|
|
303
|
+
switch ((_j = _response.error.body) === null || _j === void 0 ? void 0 : _j.errorName) {
|
|
304
|
+
case "EncounterExternalIdUniquenessError":
|
|
305
|
+
case "EncounterPatientControlNumberUniquenessError":
|
|
306
|
+
case "EntityNotFoundError":
|
|
307
|
+
case "UnauthorizedError":
|
|
308
|
+
case "EncounterGuarantorMissingContactInfoError":
|
|
309
|
+
case "HttpRequestValidationsError":
|
|
310
|
+
case "CashPayPayerError":
|
|
311
|
+
case "SchemaInstanceValidationHttpFailure":
|
|
312
|
+
case "InvalidTagNamesError":
|
|
313
|
+
case "HttpRequestValidationError":
|
|
314
|
+
case "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError":
|
|
315
|
+
case "EncounterRenderingOrAttendingProviderRequired":
|
|
316
|
+
return {
|
|
317
|
+
data: {
|
|
318
|
+
ok: false,
|
|
319
|
+
error: serializers.encounters.v4.createUniversal.Error.parseOrThrow(_response.error.body, {
|
|
320
|
+
unrecognizedObjectKeys: "passthrough",
|
|
321
|
+
allowUnrecognizedUnionMembers: true,
|
|
322
|
+
allowUnrecognizedEnumValues: true,
|
|
323
|
+
breadcrumbsPrefix: ["response"],
|
|
324
|
+
}),
|
|
325
|
+
rawResponse: _response.rawResponse,
|
|
326
|
+
},
|
|
327
|
+
rawResponse: _response.rawResponse,
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
return {
|
|
332
|
+
data: {
|
|
333
|
+
ok: false,
|
|
334
|
+
error: CandidApi.encounters.v4.createUniversal.Error._unknown(_response.error),
|
|
335
|
+
rawResponse: _response.rawResponse,
|
|
336
|
+
},
|
|
337
|
+
rawResponse: _response.rawResponse,
|
|
338
|
+
};
|
|
339
|
+
});
|
|
340
|
+
}
|
|
226
341
|
/**
|
|
227
342
|
* @param {CandidApi.encounters.v4.EncounterCreate} request
|
|
228
343
|
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -346,6 +461,123 @@ class V4 {
|
|
|
346
461
|
};
|
|
347
462
|
});
|
|
348
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
* Create an encounter from a pre-encounter patient and appointment. This endpoint is intended to be used by consumers who are managing
|
|
466
|
+
* patients and appointments in the pre-encounter service and is currently under development. Consumers who are not taking advantage
|
|
467
|
+
* of the pre-encounter service should use the standard create endpoint.
|
|
468
|
+
*
|
|
469
|
+
* The endpoint will create an encounter from the provided fields, pulling information from the provided patient and appointment objects
|
|
470
|
+
* where applicable. In particular, the following fields are populated from the patient and appointment objects:
|
|
471
|
+
* - Patient
|
|
472
|
+
* - Referring Provider
|
|
473
|
+
* - Subscriber Primary
|
|
474
|
+
* - Subscriber Secondary
|
|
475
|
+
* - Referral Number
|
|
476
|
+
* - Responsible Party
|
|
477
|
+
* - Guarantor
|
|
478
|
+
*
|
|
479
|
+
* Utilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the
|
|
480
|
+
* encounter has not already been submitted or adjudicated.
|
|
481
|
+
*
|
|
482
|
+
* @param {CandidApi.encountersUniversal.UniversalEncounterCreateFromPreEncounter} request
|
|
483
|
+
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
484
|
+
*
|
|
485
|
+
* @example
|
|
486
|
+
* await client.encounters.v4.createFromPreEncounterPatientUniversal({
|
|
487
|
+
* submissionExpectation: "TARGET_PROFESSIONAL",
|
|
488
|
+
* preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
489
|
+
* preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
|
|
490
|
+
* billingProvider: {
|
|
491
|
+
* address: {
|
|
492
|
+
* zipPlusFourCode: "zip_plus_four_code",
|
|
493
|
+
* address1: "address1",
|
|
494
|
+
* city: "city",
|
|
495
|
+
* state: "AA",
|
|
496
|
+
* zipCode: "zip_code"
|
|
497
|
+
* },
|
|
498
|
+
* taxId: "tax_id",
|
|
499
|
+
* npi: "npi"
|
|
500
|
+
* },
|
|
501
|
+
* externalId: CandidApi.EncounterExternalId("external_id"),
|
|
502
|
+
* patientAuthorizedRelease: true,
|
|
503
|
+
* benefitsAssignedToProvider: true,
|
|
504
|
+
* providerAcceptsAssignment: true,
|
|
505
|
+
* billableStatus: "BILLABLE"
|
|
506
|
+
* })
|
|
507
|
+
*/
|
|
508
|
+
createFromPreEncounterPatientUniversal(request, requestOptions) {
|
|
509
|
+
return core.HttpResponsePromise.fromPromise(this.__createFromPreEncounterPatientUniversal(request, requestOptions));
|
|
510
|
+
}
|
|
511
|
+
__createFromPreEncounterPatientUniversal(request, requestOptions) {
|
|
512
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
513
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
514
|
+
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
515
|
+
const _response = yield core.fetcher({
|
|
516
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).candidApi, "/api/encounters/v4/create-from-pre-encounter/universal"),
|
|
517
|
+
method: "POST",
|
|
518
|
+
headers: _headers,
|
|
519
|
+
contentType: "application/json",
|
|
520
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
521
|
+
requestType: "json",
|
|
522
|
+
body: serializers.encountersUniversal.UniversalEncounterCreateFromPreEncounter.jsonOrThrow(request, {
|
|
523
|
+
unrecognizedObjectKeys: "strip",
|
|
524
|
+
}),
|
|
525
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
526
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
527
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
528
|
+
});
|
|
529
|
+
if (_response.ok) {
|
|
530
|
+
return {
|
|
531
|
+
data: {
|
|
532
|
+
ok: true,
|
|
533
|
+
body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
|
|
534
|
+
unrecognizedObjectKeys: "passthrough",
|
|
535
|
+
allowUnrecognizedUnionMembers: true,
|
|
536
|
+
allowUnrecognizedEnumValues: true,
|
|
537
|
+
breadcrumbsPrefix: ["response"],
|
|
538
|
+
}),
|
|
539
|
+
headers: _response.headers,
|
|
540
|
+
rawResponse: _response.rawResponse,
|
|
541
|
+
},
|
|
542
|
+
rawResponse: _response.rawResponse,
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
if (_response.error.reason === "status-code") {
|
|
546
|
+
switch ((_j = _response.error.body) === null || _j === void 0 ? void 0 : _j.errorName) {
|
|
547
|
+
case "EncounterExternalIdUniquenessError":
|
|
548
|
+
case "EncounterPatientControlNumberUniquenessError":
|
|
549
|
+
case "EntityNotFoundError":
|
|
550
|
+
case "UnauthorizedError":
|
|
551
|
+
case "HttpRequestValidationsError":
|
|
552
|
+
case "SchemaInstanceValidationHttpFailure":
|
|
553
|
+
case "HttpRequestValidationError":
|
|
554
|
+
case "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError":
|
|
555
|
+
return {
|
|
556
|
+
data: {
|
|
557
|
+
ok: false,
|
|
558
|
+
error: serializers.encounters.v4.createFromPreEncounterPatientUniversal.Error.parseOrThrow(_response.error
|
|
559
|
+
.body, {
|
|
560
|
+
unrecognizedObjectKeys: "passthrough",
|
|
561
|
+
allowUnrecognizedUnionMembers: true,
|
|
562
|
+
allowUnrecognizedEnumValues: true,
|
|
563
|
+
breadcrumbsPrefix: ["response"],
|
|
564
|
+
}),
|
|
565
|
+
rawResponse: _response.rawResponse,
|
|
566
|
+
},
|
|
567
|
+
rawResponse: _response.rawResponse,
|
|
568
|
+
};
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
return {
|
|
572
|
+
data: {
|
|
573
|
+
ok: false,
|
|
574
|
+
error: CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error._unknown(_response.error),
|
|
575
|
+
rawResponse: _response.rawResponse,
|
|
576
|
+
},
|
|
577
|
+
rawResponse: _response.rawResponse,
|
|
578
|
+
};
|
|
579
|
+
});
|
|
580
|
+
}
|
|
349
581
|
/**
|
|
350
582
|
* Create an encounter from a pre-encounter patient and appointment. This endpoint is intended to be used by consumers who are managing
|
|
351
583
|
* patients and appointments in the pre-encounter service and is currently under development. Consumers who are not taking advantage
|
|
@@ -473,6 +705,86 @@ class V4 {
|
|
|
473
705
|
};
|
|
474
706
|
});
|
|
475
707
|
}
|
|
708
|
+
/**
|
|
709
|
+
* @param {CandidApi.EncounterId} encounterId
|
|
710
|
+
* @param {CandidApi.encountersUniversal.UniversalEncounterUpdate} request
|
|
711
|
+
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
712
|
+
*
|
|
713
|
+
* @example
|
|
714
|
+
* await client.encounters.v4.updateUniversal(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {})
|
|
715
|
+
*/
|
|
716
|
+
updateUniversal(encounterId, request, requestOptions) {
|
|
717
|
+
return core.HttpResponsePromise.fromPromise(this.__updateUniversal(encounterId, request, requestOptions));
|
|
718
|
+
}
|
|
719
|
+
__updateUniversal(encounterId, request, requestOptions) {
|
|
720
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
721
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
722
|
+
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
723
|
+
const _response = yield core.fetcher({
|
|
724
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).candidApi, `/api/encounters/v4/${core.url.encodePathParam(serializers.EncounterId.jsonOrThrow(encounterId))}/universal`),
|
|
725
|
+
method: "PATCH",
|
|
726
|
+
headers: _headers,
|
|
727
|
+
contentType: "application/json",
|
|
728
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
729
|
+
requestType: "json",
|
|
730
|
+
body: serializers.encountersUniversal.UniversalEncounterUpdate.jsonOrThrow(request, {
|
|
731
|
+
unrecognizedObjectKeys: "strip",
|
|
732
|
+
}),
|
|
733
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
734
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
735
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
736
|
+
});
|
|
737
|
+
if (_response.ok) {
|
|
738
|
+
return {
|
|
739
|
+
data: {
|
|
740
|
+
ok: true,
|
|
741
|
+
body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
|
|
742
|
+
unrecognizedObjectKeys: "passthrough",
|
|
743
|
+
allowUnrecognizedUnionMembers: true,
|
|
744
|
+
allowUnrecognizedEnumValues: true,
|
|
745
|
+
breadcrumbsPrefix: ["response"],
|
|
746
|
+
}),
|
|
747
|
+
headers: _response.headers,
|
|
748
|
+
rawResponse: _response.rawResponse,
|
|
749
|
+
},
|
|
750
|
+
rawResponse: _response.rawResponse,
|
|
751
|
+
};
|
|
752
|
+
}
|
|
753
|
+
if (_response.error.reason === "status-code") {
|
|
754
|
+
switch ((_j = _response.error.body) === null || _j === void 0 ? void 0 : _j.errorName) {
|
|
755
|
+
case "EncounterExternalIdUniquenessError":
|
|
756
|
+
case "EntityNotFoundError":
|
|
757
|
+
case "UnauthorizedError":
|
|
758
|
+
case "HttpRequestValidationsError":
|
|
759
|
+
case "SchemaInstanceValidationHttpFailure":
|
|
760
|
+
case "UnprocessableEntityError":
|
|
761
|
+
case "InvalidTagNamesError":
|
|
762
|
+
case "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError":
|
|
763
|
+
return {
|
|
764
|
+
data: {
|
|
765
|
+
ok: false,
|
|
766
|
+
error: serializers.encounters.v4.updateUniversal.Error.parseOrThrow(_response.error.body, {
|
|
767
|
+
unrecognizedObjectKeys: "passthrough",
|
|
768
|
+
allowUnrecognizedUnionMembers: true,
|
|
769
|
+
allowUnrecognizedEnumValues: true,
|
|
770
|
+
breadcrumbsPrefix: ["response"],
|
|
771
|
+
}),
|
|
772
|
+
rawResponse: _response.rawResponse,
|
|
773
|
+
},
|
|
774
|
+
rawResponse: _response.rawResponse,
|
|
775
|
+
};
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
return {
|
|
779
|
+
data: {
|
|
780
|
+
ok: false,
|
|
781
|
+
error: CandidApi.encounters.v4.updateUniversal.Error._unknown(_response.error),
|
|
782
|
+
rawResponse: _response.rawResponse,
|
|
783
|
+
},
|
|
784
|
+
rawResponse: _response.rawResponse,
|
|
785
|
+
};
|
|
786
|
+
});
|
|
787
|
+
}
|
|
476
788
|
/**
|
|
477
789
|
* @param {CandidApi.EncounterId} encounterId
|
|
478
790
|
* @param {CandidApi.encounters.v4.EncounterUpdate} request
|
package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type * as core from "../../../../../../core";
|
|
2
|
+
import * as CandidApi from "../../../../../index";
|
|
3
|
+
export type Error = CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.EncounterPatientControlNumberUniquenessError | CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.EntityNotFoundError | CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.UnauthorizedError | CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.HttpRequestValidationsError | CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.SchemaInstanceValidationHttpFailure | CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.HttpRequestValidationError | CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError | CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error._Unknown;
|
|
4
|
+
export declare namespace Error {
|
|
5
|
+
interface EncounterExternalIdUniquenessError extends _Utils {
|
|
6
|
+
errorName: "EncounterExternalIdUniquenessError";
|
|
7
|
+
content: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType;
|
|
8
|
+
}
|
|
9
|
+
interface EncounterPatientControlNumberUniquenessError extends _Utils {
|
|
10
|
+
errorName: "EncounterPatientControlNumberUniquenessError";
|
|
11
|
+
content: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType;
|
|
12
|
+
}
|
|
13
|
+
interface EntityNotFoundError extends _Utils {
|
|
14
|
+
errorName: "EntityNotFoundError";
|
|
15
|
+
content: CandidApi.EntityNotFoundErrorMessage;
|
|
16
|
+
}
|
|
17
|
+
interface UnauthorizedError extends _Utils {
|
|
18
|
+
errorName: "UnauthorizedError";
|
|
19
|
+
content: CandidApi.UnauthorizedErrorMessage;
|
|
20
|
+
}
|
|
21
|
+
interface HttpRequestValidationsError extends _Utils {
|
|
22
|
+
errorName: "HttpRequestValidationsError";
|
|
23
|
+
content: CandidApi.RequestValidationError[];
|
|
24
|
+
}
|
|
25
|
+
interface SchemaInstanceValidationHttpFailure extends _Utils {
|
|
26
|
+
errorName: "SchemaInstanceValidationHttpFailure";
|
|
27
|
+
content: CandidApi.encounters.v4.SchemaInstanceValidationFailure;
|
|
28
|
+
}
|
|
29
|
+
interface HttpRequestValidationError extends _Utils {
|
|
30
|
+
errorName: "HttpRequestValidationError";
|
|
31
|
+
content: CandidApi.RequestValidationError;
|
|
32
|
+
}
|
|
33
|
+
interface PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError extends _Utils {
|
|
34
|
+
errorName: "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError";
|
|
35
|
+
content: CandidApi.encounters.v4.PayerPlanGroupPayerDoesNotMatchInsuranceCardError;
|
|
36
|
+
}
|
|
37
|
+
interface _Unknown extends _Utils {
|
|
38
|
+
errorName: void;
|
|
39
|
+
content: core.Fetcher.Error;
|
|
40
|
+
}
|
|
41
|
+
interface _Utils {
|
|
42
|
+
_visit: <_Result>(visitor: CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error._Visitor<_Result>) => _Result;
|
|
43
|
+
}
|
|
44
|
+
interface _Visitor<_Result> {
|
|
45
|
+
encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => _Result;
|
|
46
|
+
encounterPatientControlNumberUniquenessError: (value: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType) => _Result;
|
|
47
|
+
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
48
|
+
unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
|
|
49
|
+
httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
|
|
50
|
+
schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => _Result;
|
|
51
|
+
httpRequestValidationError: (value: CandidApi.RequestValidationError) => _Result;
|
|
52
|
+
payerPlanGroupPayerDoesNotMatchInsuranceCardHttpError: (value: CandidApi.encounters.v4.PayerPlanGroupPayerDoesNotMatchInsuranceCardError) => _Result;
|
|
53
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export declare const Error: {
|
|
57
|
+
readonly encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.EncounterExternalIdUniquenessError;
|
|
58
|
+
readonly encounterPatientControlNumberUniquenessError: (value: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType) => CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.EncounterPatientControlNumberUniquenessError;
|
|
59
|
+
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.EntityNotFoundError;
|
|
60
|
+
readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.UnauthorizedError;
|
|
61
|
+
readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.HttpRequestValidationsError;
|
|
62
|
+
readonly schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.SchemaInstanceValidationHttpFailure;
|
|
63
|
+
readonly httpRequestValidationError: (value: CandidApi.RequestValidationError) => CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.HttpRequestValidationError;
|
|
64
|
+
readonly payerPlanGroupPayerDoesNotMatchInsuranceCardHttpError: (value: CandidApi.encounters.v4.PayerPlanGroupPayerDoesNotMatchInsuranceCardError) => CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error.PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError;
|
|
65
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error._Unknown;
|
|
66
|
+
readonly _visit: <_Result>(value: CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error, visitor: CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error._Visitor<_Result>) => _Result;
|
|
67
|
+
};
|
package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.Error = void 0;
|
|
38
|
+
const CandidApi = __importStar(require("../../../../../index"));
|
|
39
|
+
exports.Error = {
|
|
40
|
+
encounterExternalIdUniquenessError: (value) => {
|
|
41
|
+
return {
|
|
42
|
+
content: value,
|
|
43
|
+
errorName: "EncounterExternalIdUniquenessError",
|
|
44
|
+
_visit: function (visitor) {
|
|
45
|
+
return CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error._visit(this, visitor);
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
encounterPatientControlNumberUniquenessError: (value) => {
|
|
50
|
+
return {
|
|
51
|
+
content: value,
|
|
52
|
+
errorName: "EncounterPatientControlNumberUniquenessError",
|
|
53
|
+
_visit: function (visitor) {
|
|
54
|
+
return CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error._visit(this, visitor);
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
entityNotFoundError: (value) => {
|
|
59
|
+
return {
|
|
60
|
+
content: value,
|
|
61
|
+
errorName: "EntityNotFoundError",
|
|
62
|
+
_visit: function (visitor) {
|
|
63
|
+
return CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error._visit(this, visitor);
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
},
|
|
67
|
+
unauthorizedError: (value) => {
|
|
68
|
+
return {
|
|
69
|
+
content: value,
|
|
70
|
+
errorName: "UnauthorizedError",
|
|
71
|
+
_visit: function (visitor) {
|
|
72
|
+
return CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error._visit(this, visitor);
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
},
|
|
76
|
+
httpRequestValidationsError: (value) => {
|
|
77
|
+
return {
|
|
78
|
+
content: value,
|
|
79
|
+
errorName: "HttpRequestValidationsError",
|
|
80
|
+
_visit: function (visitor) {
|
|
81
|
+
return CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error._visit(this, visitor);
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
},
|
|
85
|
+
schemaInstanceValidationHttpFailure: (value) => {
|
|
86
|
+
return {
|
|
87
|
+
content: value,
|
|
88
|
+
errorName: "SchemaInstanceValidationHttpFailure",
|
|
89
|
+
_visit: function (visitor) {
|
|
90
|
+
return CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error._visit(this, visitor);
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
},
|
|
94
|
+
httpRequestValidationError: (value) => {
|
|
95
|
+
return {
|
|
96
|
+
content: value,
|
|
97
|
+
errorName: "HttpRequestValidationError",
|
|
98
|
+
_visit: function (visitor) {
|
|
99
|
+
return CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error._visit(this, visitor);
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
},
|
|
103
|
+
payerPlanGroupPayerDoesNotMatchInsuranceCardHttpError: (value) => {
|
|
104
|
+
return {
|
|
105
|
+
content: value,
|
|
106
|
+
errorName: "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError",
|
|
107
|
+
_visit: function (visitor) {
|
|
108
|
+
return CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error._visit(this, visitor);
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
},
|
|
112
|
+
_unknown: (fetcherError) => {
|
|
113
|
+
return {
|
|
114
|
+
errorName: undefined,
|
|
115
|
+
content: fetcherError,
|
|
116
|
+
_visit: function (visitor) {
|
|
117
|
+
return CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error._visit(this, visitor);
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
},
|
|
121
|
+
_visit: (value, visitor) => {
|
|
122
|
+
switch (value.errorName) {
|
|
123
|
+
case "EncounterExternalIdUniquenessError":
|
|
124
|
+
return visitor.encounterExternalIdUniquenessError(value.content);
|
|
125
|
+
case "EncounterPatientControlNumberUniquenessError":
|
|
126
|
+
return visitor.encounterPatientControlNumberUniquenessError(value.content);
|
|
127
|
+
case "EntityNotFoundError":
|
|
128
|
+
return visitor.entityNotFoundError(value.content);
|
|
129
|
+
case "UnauthorizedError":
|
|
130
|
+
return visitor.unauthorizedError(value.content);
|
|
131
|
+
case "HttpRequestValidationsError":
|
|
132
|
+
return visitor.httpRequestValidationsError(value.content);
|
|
133
|
+
case "SchemaInstanceValidationHttpFailure":
|
|
134
|
+
return visitor.schemaInstanceValidationHttpFailure(value.content);
|
|
135
|
+
case "HttpRequestValidationError":
|
|
136
|
+
return visitor.httpRequestValidationError(value.content);
|
|
137
|
+
case "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError":
|
|
138
|
+
return visitor.payerPlanGroupPayerDoesNotMatchInsuranceCardHttpError(value.content);
|
|
139
|
+
default:
|
|
140
|
+
return visitor._other(value);
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type * as core from "../../../../../../core";
|
|
2
|
+
import * as CandidApi from "../../../../../index";
|
|
3
|
+
export type Error = CandidApi.encounters.v4.createUniversal.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.createUniversal.Error.EncounterPatientControlNumberUniquenessError | CandidApi.encounters.v4.createUniversal.Error.EntityNotFoundError | CandidApi.encounters.v4.createUniversal.Error.UnauthorizedError | CandidApi.encounters.v4.createUniversal.Error.EncounterGuarantorMissingContactInfoError | CandidApi.encounters.v4.createUniversal.Error.HttpRequestValidationsError | CandidApi.encounters.v4.createUniversal.Error.CashPayPayerError | CandidApi.encounters.v4.createUniversal.Error.SchemaInstanceValidationHttpFailure | CandidApi.encounters.v4.createUniversal.Error.InvalidTagNamesError | CandidApi.encounters.v4.createUniversal.Error.HttpRequestValidationError | CandidApi.encounters.v4.createUniversal.Error.PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError | CandidApi.encounters.v4.createUniversal.Error.EncounterRenderingOrAttendingProviderRequired | CandidApi.encounters.v4.createUniversal.Error._Unknown;
|
|
4
|
+
export declare namespace Error {
|
|
5
|
+
interface EncounterExternalIdUniquenessError extends _Utils {
|
|
6
|
+
errorName: "EncounterExternalIdUniquenessError";
|
|
7
|
+
content: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType;
|
|
8
|
+
}
|
|
9
|
+
interface EncounterPatientControlNumberUniquenessError extends _Utils {
|
|
10
|
+
errorName: "EncounterPatientControlNumberUniquenessError";
|
|
11
|
+
content: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType;
|
|
12
|
+
}
|
|
13
|
+
interface EntityNotFoundError extends _Utils {
|
|
14
|
+
errorName: "EntityNotFoundError";
|
|
15
|
+
content: CandidApi.EntityNotFoundErrorMessage;
|
|
16
|
+
}
|
|
17
|
+
interface UnauthorizedError extends _Utils {
|
|
18
|
+
errorName: "UnauthorizedError";
|
|
19
|
+
content: CandidApi.UnauthorizedErrorMessage;
|
|
20
|
+
}
|
|
21
|
+
interface EncounterGuarantorMissingContactInfoError extends _Utils {
|
|
22
|
+
errorName: "EncounterGuarantorMissingContactInfoError";
|
|
23
|
+
content: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType;
|
|
24
|
+
}
|
|
25
|
+
interface HttpRequestValidationsError extends _Utils {
|
|
26
|
+
errorName: "HttpRequestValidationsError";
|
|
27
|
+
content: CandidApi.RequestValidationError[];
|
|
28
|
+
}
|
|
29
|
+
interface CashPayPayerError extends _Utils {
|
|
30
|
+
errorName: "CashPayPayerError";
|
|
31
|
+
content: CandidApi.encounters.v4.CashPayPayerErrorMessage;
|
|
32
|
+
}
|
|
33
|
+
interface SchemaInstanceValidationHttpFailure extends _Utils {
|
|
34
|
+
errorName: "SchemaInstanceValidationHttpFailure";
|
|
35
|
+
content: CandidApi.encounters.v4.SchemaInstanceValidationFailure;
|
|
36
|
+
}
|
|
37
|
+
interface InvalidTagNamesError extends _Utils {
|
|
38
|
+
errorName: "InvalidTagNamesError";
|
|
39
|
+
content: CandidApi.encounters.v4.InvalidTagNamesErrorType;
|
|
40
|
+
}
|
|
41
|
+
interface HttpRequestValidationError extends _Utils {
|
|
42
|
+
errorName: "HttpRequestValidationError";
|
|
43
|
+
content: CandidApi.RequestValidationError;
|
|
44
|
+
}
|
|
45
|
+
interface PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError extends _Utils {
|
|
46
|
+
errorName: "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError";
|
|
47
|
+
content: CandidApi.encounters.v4.PayerPlanGroupPayerDoesNotMatchInsuranceCardError;
|
|
48
|
+
}
|
|
49
|
+
interface EncounterRenderingOrAttendingProviderRequired extends _Utils {
|
|
50
|
+
errorName: "EncounterRenderingOrAttendingProviderRequired";
|
|
51
|
+
content: CandidApi.encounters.v4.EncounterRenderingOrAttendingProviderRequiredError;
|
|
52
|
+
}
|
|
53
|
+
interface _Unknown extends _Utils {
|
|
54
|
+
errorName: void;
|
|
55
|
+
content: core.Fetcher.Error;
|
|
56
|
+
}
|
|
57
|
+
interface _Utils {
|
|
58
|
+
_visit: <_Result>(visitor: CandidApi.encounters.v4.createUniversal.Error._Visitor<_Result>) => _Result;
|
|
59
|
+
}
|
|
60
|
+
interface _Visitor<_Result> {
|
|
61
|
+
encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => _Result;
|
|
62
|
+
encounterPatientControlNumberUniquenessError: (value: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType) => _Result;
|
|
63
|
+
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
64
|
+
unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
|
|
65
|
+
encounterGuarantorMissingContactInfoError: (value: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType) => _Result;
|
|
66
|
+
httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
|
|
67
|
+
cashPayPayerError: (value: CandidApi.encounters.v4.CashPayPayerErrorMessage) => _Result;
|
|
68
|
+
schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => _Result;
|
|
69
|
+
invalidTagNamesError: (value: CandidApi.encounters.v4.InvalidTagNamesErrorType) => _Result;
|
|
70
|
+
httpRequestValidationError: (value: CandidApi.RequestValidationError) => _Result;
|
|
71
|
+
payerPlanGroupPayerDoesNotMatchInsuranceCardHttpError: (value: CandidApi.encounters.v4.PayerPlanGroupPayerDoesNotMatchInsuranceCardError) => _Result;
|
|
72
|
+
encounterRenderingOrAttendingProviderRequired: (value: CandidApi.encounters.v4.EncounterRenderingOrAttendingProviderRequiredError) => _Result;
|
|
73
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export declare const Error: {
|
|
77
|
+
readonly encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => CandidApi.encounters.v4.createUniversal.Error.EncounterExternalIdUniquenessError;
|
|
78
|
+
readonly encounterPatientControlNumberUniquenessError: (value: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType) => CandidApi.encounters.v4.createUniversal.Error.EncounterPatientControlNumberUniquenessError;
|
|
79
|
+
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.encounters.v4.createUniversal.Error.EntityNotFoundError;
|
|
80
|
+
readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.encounters.v4.createUniversal.Error.UnauthorizedError;
|
|
81
|
+
readonly encounterGuarantorMissingContactInfoError: (value: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType) => CandidApi.encounters.v4.createUniversal.Error.EncounterGuarantorMissingContactInfoError;
|
|
82
|
+
readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.encounters.v4.createUniversal.Error.HttpRequestValidationsError;
|
|
83
|
+
readonly cashPayPayerError: (value: CandidApi.encounters.v4.CashPayPayerErrorMessage) => CandidApi.encounters.v4.createUniversal.Error.CashPayPayerError;
|
|
84
|
+
readonly schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => CandidApi.encounters.v4.createUniversal.Error.SchemaInstanceValidationHttpFailure;
|
|
85
|
+
readonly invalidTagNamesError: (value: CandidApi.encounters.v4.InvalidTagNamesErrorType) => CandidApi.encounters.v4.createUniversal.Error.InvalidTagNamesError;
|
|
86
|
+
readonly httpRequestValidationError: (value: CandidApi.RequestValidationError) => CandidApi.encounters.v4.createUniversal.Error.HttpRequestValidationError;
|
|
87
|
+
readonly payerPlanGroupPayerDoesNotMatchInsuranceCardHttpError: (value: CandidApi.encounters.v4.PayerPlanGroupPayerDoesNotMatchInsuranceCardError) => CandidApi.encounters.v4.createUniversal.Error.PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError;
|
|
88
|
+
readonly encounterRenderingOrAttendingProviderRequired: (value: CandidApi.encounters.v4.EncounterRenderingOrAttendingProviderRequiredError) => CandidApi.encounters.v4.createUniversal.Error.EncounterRenderingOrAttendingProviderRequired;
|
|
89
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounters.v4.createUniversal.Error._Unknown;
|
|
90
|
+
readonly _visit: <_Result>(value: CandidApi.encounters.v4.createUniversal.Error, visitor: CandidApi.encounters.v4.createUniversal.Error._Visitor<_Result>) => _Result;
|
|
91
|
+
};
|