candidhealth 1.12.1 → 1.13.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 -0
- package/Client.js +63 -58
- 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/api/resources/encounterSupplementalInformation/resources/index.js +37 -0
- 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/encounterSupplementalInformation/resources/v1/client/get.js +55 -0
- 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/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/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/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/users/resources/index.js +37 -0
- 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/dist/Client.d.ts +3 -0
- package/dist/Client.js +63 -58
- 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/encounterSupplementalInformation/resources/v1/client/get.js +55 -0
- 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/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/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/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/serialization/resources/commons/types/ReportTransmissionCode.d.ts +7 -0
- package/{serialization/resources/encounters/resources/v4 → dist/serialization/resources/commons}/types/ReportTransmissionCode.js +1 -1
- package/{serialization/resources/encounters/resources/v4 → dist/serialization/resources/commons}/types/ReportTypeCode.d.ts +4 -4
- package/dist/serialization/resources/{encounters/resources/v4 → 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/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/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/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/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +235 -2
- package/serialization/resources/commons/types/ReportTransmissionCode.d.ts +7 -0
- package/{dist/serialization/resources/encounters/resources/v4 → serialization/resources/commons}/types/ReportTransmissionCode.js +1 -1
- package/{dist/serialization/resources/encounters/resources/v4 → serialization/resources/commons}/types/ReportTypeCode.d.ts +4 -4
- package/serialization/resources/{encounters/resources/v4 → 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/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/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/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/version.d.ts +1 -1
- package/version.js +1 -1
- 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
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as CandidApi from "../../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* type: "auth_zero_metadata",
|
|
6
|
+
* auth0Id: "auth0|5f9b3b5a7b0b0d006a2b0b0b"
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export type IdpUserMetadata = CandidApi.users.v2.IdpUserMetadata.AuthZeroMetadata | CandidApi.users.v2.IdpUserMetadata.GoogleAppsMetadata | CandidApi.users.v2.IdpUserMetadata.OtherIdpMetadata;
|
|
10
|
+
export declare namespace IdpUserMetadata {
|
|
11
|
+
interface AuthZeroMetadata extends CandidApi.users.v2.AuthZeroMetadata {
|
|
12
|
+
type: "auth_zero_metadata";
|
|
13
|
+
}
|
|
14
|
+
interface GoogleAppsMetadata extends CandidApi.users.v2.GoogleAppsMetadata {
|
|
15
|
+
type: "google_apps_metadata";
|
|
16
|
+
}
|
|
17
|
+
interface OtherIdpMetadata extends CandidApi.users.v2.OtherIdpMetadata {
|
|
18
|
+
type: "other_idp_metadata";
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as CandidApi from "../../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* type: "human_user_metadata",
|
|
6
|
+
* firstName: "John",
|
|
7
|
+
* lastName: "Doe",
|
|
8
|
+
* email: "john.doe@example.com"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export type UserMetadata = CandidApi.users.v2.UserMetadata.MachineUserMetadata | CandidApi.users.v2.UserMetadata.HumanUserMetadata;
|
|
12
|
+
export declare namespace UserMetadata {
|
|
13
|
+
interface MachineUserMetadata extends CandidApi.users.v2.MachineUserMetadata {
|
|
14
|
+
type: "machine_user_metadata";
|
|
15
|
+
}
|
|
16
|
+
interface HumanUserMetadata extends CandidApi.users.v2.HumanUserMetadata {
|
|
17
|
+
type: "human_user_metadata";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as CandidApi from "../../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* userId: CandidApi.UserId("1503a782-35f6-45a7-b5c3-53ca2ebe8887"),
|
|
6
|
+
* idpMetadata: [{
|
|
7
|
+
* type: "auth_zero_metadata",
|
|
8
|
+
* auth0Id: "auth0|5f9b3b5a7b0b0d006a2b0b0b"
|
|
9
|
+
* }],
|
|
10
|
+
* primaryOrganizationId: CandidApi.OrganizationId("83a2a782-35f6-45a7-b5c3-53ca2ebe8887"),
|
|
11
|
+
* userMetadata: {
|
|
12
|
+
* type: "human_user_metadata",
|
|
13
|
+
* firstName: "John",
|
|
14
|
+
* lastName: "Doe",
|
|
15
|
+
* email: "john.doe@example.com"
|
|
16
|
+
* }
|
|
17
|
+
* }
|
|
18
|
+
*/
|
|
19
|
+
export interface UserV2 {
|
|
20
|
+
userId: CandidApi.UserId;
|
|
21
|
+
idpMetadata: CandidApi.users.v2.IdpUserMetadata[];
|
|
22
|
+
primaryOrganizationId?: CandidApi.OrganizationId;
|
|
23
|
+
userMetadata: CandidApi.users.v2.UserMetadata;
|
|
24
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./AuthZeroMetadata";
|
|
2
|
+
export * from "./GoogleAppsMetadata";
|
|
3
|
+
export * from "./HumanUserMetadata";
|
|
4
|
+
export * from "./IdpUserMetadata";
|
|
5
|
+
export * from "./MachineUserMetadata";
|
|
6
|
+
export * from "./OtherIdpMetadata";
|
|
7
|
+
export * from "./UserMetadata";
|
|
8
|
+
export * from "./UserV2";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AuthZeroMetadata"), exports);
|
|
18
|
+
__exportStar(require("./GoogleAppsMetadata"), exports);
|
|
19
|
+
__exportStar(require("./HumanUserMetadata"), exports);
|
|
20
|
+
__exportStar(require("./IdpUserMetadata"), exports);
|
|
21
|
+
__exportStar(require("./MachineUserMetadata"), exports);
|
|
22
|
+
__exportStar(require("./OtherIdpMetadata"), exports);
|
|
23
|
+
__exportStar(require("./UserMetadata"), exports);
|
|
24
|
+
__exportStar(require("./UserV2"), exports);
|
package/dist/Client.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { Diagnoses } from "./api/resources/diagnoses/client/Client";
|
|
|
9
9
|
import { Eligibility } from "./api/resources/eligibility/client/Client";
|
|
10
10
|
import { EncounterAttachments } from "./api/resources/encounterAttachments/client/Client";
|
|
11
11
|
import { EncounterProviders } from "./api/resources/encounterProviders/client/Client";
|
|
12
|
+
import { EncounterSupplementalInformation } from "./api/resources/encounterSupplementalInformation/client/Client";
|
|
12
13
|
import { Encounters } from "./api/resources/encounters/client/Client";
|
|
13
14
|
import { ExpectedNetworkStatus } from "./api/resources/expectedNetworkStatus/client/Client";
|
|
14
15
|
import { Exports } from "./api/resources/exports/client/Client";
|
|
@@ -60,6 +61,7 @@ export declare class CandidApiClient {
|
|
|
60
61
|
protected _eligibility: Eligibility | undefined;
|
|
61
62
|
protected _encounterAttachments: EncounterAttachments | undefined;
|
|
62
63
|
protected _encounterProviders: EncounterProviders | undefined;
|
|
64
|
+
protected _encounterSupplementalInformation: EncounterSupplementalInformation | undefined;
|
|
63
65
|
protected _encounters: Encounters | undefined;
|
|
64
66
|
protected _expectedNetworkStatus: ExpectedNetworkStatus | undefined;
|
|
65
67
|
protected _exports: Exports | undefined;
|
|
@@ -100,6 +102,7 @@ export declare class CandidApiClient {
|
|
|
100
102
|
get eligibility(): Eligibility;
|
|
101
103
|
get encounterAttachments(): EncounterAttachments;
|
|
102
104
|
get encounterProviders(): EncounterProviders;
|
|
105
|
+
get encounterSupplementalInformation(): EncounterSupplementalInformation;
|
|
103
106
|
get encounters(): Encounters;
|
|
104
107
|
get expectedNetworkStatus(): ExpectedNetworkStatus;
|
|
105
108
|
get exports(): Exports;
|
package/dist/Client.js
CHANGED
|
@@ -56,34 +56,35 @@ const Client_9 = require("./api/resources/diagnoses/client/Client");
|
|
|
56
56
|
const Client_10 = require("./api/resources/eligibility/client/Client");
|
|
57
57
|
const Client_11 = require("./api/resources/encounterAttachments/client/Client");
|
|
58
58
|
const Client_12 = require("./api/resources/encounterProviders/client/Client");
|
|
59
|
-
const Client_13 = require("./api/resources/
|
|
60
|
-
const Client_14 = require("./api/resources/
|
|
61
|
-
const Client_15 = require("./api/resources/
|
|
62
|
-
const Client_16 = require("./api/resources/
|
|
63
|
-
const Client_17 = require("./api/resources/
|
|
64
|
-
const Client_18 = require("./api/resources/
|
|
65
|
-
const Client_19 = require("./api/resources/
|
|
66
|
-
const Client_20 = require("./api/resources/
|
|
67
|
-
const Client_21 = require("./api/resources/
|
|
68
|
-
const Client_22 = require("./api/resources/
|
|
69
|
-
const Client_23 = require("./api/resources/
|
|
70
|
-
const Client_24 = require("./api/resources/
|
|
71
|
-
const Client_25 = require("./api/resources/
|
|
72
|
-
const Client_26 = require("./api/resources/
|
|
73
|
-
const Client_27 = require("./api/resources/
|
|
74
|
-
const Client_28 = require("./api/resources/
|
|
75
|
-
const Client_29 = require("./api/resources/
|
|
76
|
-
const Client_30 = require("./api/resources/
|
|
77
|
-
const Client_31 = require("./api/resources/
|
|
78
|
-
const Client_32 = require("./api/resources/
|
|
79
|
-
const Client_33 = require("./api/resources/
|
|
80
|
-
const Client_34 = require("./api/resources/
|
|
81
|
-
const Client_35 = require("./api/resources/
|
|
82
|
-
const Client_36 = require("./api/resources/
|
|
83
|
-
const Client_37 = require("./api/resources/
|
|
84
|
-
const Client_38 = require("./api/resources/
|
|
85
|
-
const Client_39 = require("./api/resources/
|
|
86
|
-
const Client_40 = require("./api/resources/
|
|
59
|
+
const Client_13 = require("./api/resources/encounterSupplementalInformation/client/Client");
|
|
60
|
+
const Client_14 = require("./api/resources/encounters/client/Client");
|
|
61
|
+
const Client_15 = require("./api/resources/expectedNetworkStatus/client/Client");
|
|
62
|
+
const Client_16 = require("./api/resources/exports/client/Client");
|
|
63
|
+
const Client_17 = require("./api/resources/externalPaymentAccountConfig/client/Client");
|
|
64
|
+
const Client_18 = require("./api/resources/feeSchedules/client/Client");
|
|
65
|
+
const Client_19 = require("./api/resources/guarantor/client/Client");
|
|
66
|
+
const Client_20 = require("./api/resources/healthCareCodeInformation/client/Client");
|
|
67
|
+
const Client_21 = require("./api/resources/importInvoice/client/Client");
|
|
68
|
+
const Client_22 = require("./api/resources/insuranceAdjudications/client/Client");
|
|
69
|
+
const Client_23 = require("./api/resources/insurancePayments/client/Client");
|
|
70
|
+
const Client_24 = require("./api/resources/insuranceRefunds/client/Client");
|
|
71
|
+
const Client_25 = require("./api/resources/medicationDispense/client/Client");
|
|
72
|
+
const Client_26 = require("./api/resources/nonInsurancePayerPayments/client/Client");
|
|
73
|
+
const Client_27 = require("./api/resources/nonInsurancePayerRefunds/client/Client");
|
|
74
|
+
const Client_28 = require("./api/resources/nonInsurancePayers/client/Client");
|
|
75
|
+
const Client_29 = require("./api/resources/organizationProviders/client/Client");
|
|
76
|
+
const Client_30 = require("./api/resources/organizationServiceFacilities/client/Client");
|
|
77
|
+
const Client_31 = require("./api/resources/patientAr/client/Client");
|
|
78
|
+
const Client_32 = require("./api/resources/patientPayments/client/Client");
|
|
79
|
+
const Client_33 = require("./api/resources/patientRefunds/client/Client");
|
|
80
|
+
const Client_34 = require("./api/resources/payerPlanGroups/client/Client");
|
|
81
|
+
const Client_35 = require("./api/resources/payers/client/Client");
|
|
82
|
+
const Client_36 = require("./api/resources/preEncounter/client/Client");
|
|
83
|
+
const Client_37 = require("./api/resources/serviceFacility/client/Client");
|
|
84
|
+
const Client_38 = require("./api/resources/serviceLines/client/Client");
|
|
85
|
+
const Client_39 = require("./api/resources/superbills/client/Client");
|
|
86
|
+
const Client_40 = require("./api/resources/tasks/client/Client");
|
|
87
|
+
const Client_41 = require("./api/resources/writeOffs/client/Client");
|
|
87
88
|
const core = __importStar(require("./core"));
|
|
88
89
|
const headers_1 = require("./core/headers");
|
|
89
90
|
class CandidApiClient {
|
|
@@ -91,8 +92,8 @@ class CandidApiClient {
|
|
|
91
92
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_1.mergeHeaders)({
|
|
92
93
|
"X-Fern-Language": "JavaScript",
|
|
93
94
|
"X-Fern-SDK-Name": "candidhealth",
|
|
94
|
-
"X-Fern-SDK-Version": "1.
|
|
95
|
-
"User-Agent": "candidhealth/1.
|
|
95
|
+
"X-Fern-SDK-Version": "1.13.0",
|
|
96
|
+
"User-Agent": "candidhealth/1.13.0",
|
|
96
97
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
97
98
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
98
99
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -142,113 +143,117 @@ class CandidApiClient {
|
|
|
142
143
|
var _a;
|
|
143
144
|
return ((_a = this._encounterProviders) !== null && _a !== void 0 ? _a : (this._encounterProviders = new Client_12.EncounterProviders(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
144
145
|
}
|
|
146
|
+
get encounterSupplementalInformation() {
|
|
147
|
+
var _a;
|
|
148
|
+
return ((_a = this._encounterSupplementalInformation) !== null && _a !== void 0 ? _a : (this._encounterSupplementalInformation = new Client_13.EncounterSupplementalInformation(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
149
|
+
}
|
|
145
150
|
get encounters() {
|
|
146
151
|
var _a;
|
|
147
|
-
return ((_a = this._encounters) !== null && _a !== void 0 ? _a : (this._encounters = new
|
|
152
|
+
return ((_a = this._encounters) !== null && _a !== void 0 ? _a : (this._encounters = new Client_14.Encounters(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
148
153
|
}
|
|
149
154
|
get expectedNetworkStatus() {
|
|
150
155
|
var _a;
|
|
151
|
-
return ((_a = this._expectedNetworkStatus) !== null && _a !== void 0 ? _a : (this._expectedNetworkStatus = new
|
|
156
|
+
return ((_a = this._expectedNetworkStatus) !== null && _a !== void 0 ? _a : (this._expectedNetworkStatus = new Client_15.ExpectedNetworkStatus(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
152
157
|
}
|
|
153
158
|
get exports() {
|
|
154
159
|
var _a;
|
|
155
|
-
return ((_a = this._exports) !== null && _a !== void 0 ? _a : (this._exports = new
|
|
160
|
+
return ((_a = this._exports) !== null && _a !== void 0 ? _a : (this._exports = new Client_16.Exports(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
156
161
|
}
|
|
157
162
|
get externalPaymentAccountConfig() {
|
|
158
163
|
var _a;
|
|
159
|
-
return ((_a = this._externalPaymentAccountConfig) !== null && _a !== void 0 ? _a : (this._externalPaymentAccountConfig = new
|
|
164
|
+
return ((_a = this._externalPaymentAccountConfig) !== null && _a !== void 0 ? _a : (this._externalPaymentAccountConfig = new Client_17.ExternalPaymentAccountConfig(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
160
165
|
}
|
|
161
166
|
get feeSchedules() {
|
|
162
167
|
var _a;
|
|
163
|
-
return ((_a = this._feeSchedules) !== null && _a !== void 0 ? _a : (this._feeSchedules = new
|
|
168
|
+
return ((_a = this._feeSchedules) !== null && _a !== void 0 ? _a : (this._feeSchedules = new Client_18.FeeSchedules(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
164
169
|
}
|
|
165
170
|
get guarantor() {
|
|
166
171
|
var _a;
|
|
167
|
-
return ((_a = this._guarantor) !== null && _a !== void 0 ? _a : (this._guarantor = new
|
|
172
|
+
return ((_a = this._guarantor) !== null && _a !== void 0 ? _a : (this._guarantor = new Client_19.Guarantor(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
168
173
|
}
|
|
169
174
|
get healthCareCodeInformation() {
|
|
170
175
|
var _a;
|
|
171
|
-
return ((_a = this._healthCareCodeInformation) !== null && _a !== void 0 ? _a : (this._healthCareCodeInformation = new
|
|
176
|
+
return ((_a = this._healthCareCodeInformation) !== null && _a !== void 0 ? _a : (this._healthCareCodeInformation = new Client_20.HealthCareCodeInformation(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
172
177
|
}
|
|
173
178
|
get importInvoice() {
|
|
174
179
|
var _a;
|
|
175
|
-
return ((_a = this._importInvoice) !== null && _a !== void 0 ? _a : (this._importInvoice = new
|
|
180
|
+
return ((_a = this._importInvoice) !== null && _a !== void 0 ? _a : (this._importInvoice = new Client_21.ImportInvoice(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
176
181
|
}
|
|
177
182
|
get insuranceAdjudications() {
|
|
178
183
|
var _a;
|
|
179
|
-
return ((_a = this._insuranceAdjudications) !== null && _a !== void 0 ? _a : (this._insuranceAdjudications = new
|
|
184
|
+
return ((_a = this._insuranceAdjudications) !== null && _a !== void 0 ? _a : (this._insuranceAdjudications = new Client_22.InsuranceAdjudications(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
180
185
|
}
|
|
181
186
|
get insurancePayments() {
|
|
182
187
|
var _a;
|
|
183
|
-
return ((_a = this._insurancePayments) !== null && _a !== void 0 ? _a : (this._insurancePayments = new
|
|
188
|
+
return ((_a = this._insurancePayments) !== null && _a !== void 0 ? _a : (this._insurancePayments = new Client_23.InsurancePayments(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
184
189
|
}
|
|
185
190
|
get insuranceRefunds() {
|
|
186
191
|
var _a;
|
|
187
|
-
return ((_a = this._insuranceRefunds) !== null && _a !== void 0 ? _a : (this._insuranceRefunds = new
|
|
192
|
+
return ((_a = this._insuranceRefunds) !== null && _a !== void 0 ? _a : (this._insuranceRefunds = new Client_24.InsuranceRefunds(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
188
193
|
}
|
|
189
194
|
get medicationDispense() {
|
|
190
195
|
var _a;
|
|
191
|
-
return ((_a = this._medicationDispense) !== null && _a !== void 0 ? _a : (this._medicationDispense = new
|
|
196
|
+
return ((_a = this._medicationDispense) !== null && _a !== void 0 ? _a : (this._medicationDispense = new Client_25.MedicationDispense(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
192
197
|
}
|
|
193
198
|
get nonInsurancePayerPayments() {
|
|
194
199
|
var _a;
|
|
195
|
-
return ((_a = this._nonInsurancePayerPayments) !== null && _a !== void 0 ? _a : (this._nonInsurancePayerPayments = new
|
|
200
|
+
return ((_a = this._nonInsurancePayerPayments) !== null && _a !== void 0 ? _a : (this._nonInsurancePayerPayments = new Client_26.NonInsurancePayerPayments(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
196
201
|
}
|
|
197
202
|
get nonInsurancePayerRefunds() {
|
|
198
203
|
var _a;
|
|
199
|
-
return ((_a = this._nonInsurancePayerRefunds) !== null && _a !== void 0 ? _a : (this._nonInsurancePayerRefunds = new
|
|
204
|
+
return ((_a = this._nonInsurancePayerRefunds) !== null && _a !== void 0 ? _a : (this._nonInsurancePayerRefunds = new Client_27.NonInsurancePayerRefunds(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
200
205
|
}
|
|
201
206
|
get nonInsurancePayers() {
|
|
202
207
|
var _a;
|
|
203
|
-
return ((_a = this._nonInsurancePayers) !== null && _a !== void 0 ? _a : (this._nonInsurancePayers = new
|
|
208
|
+
return ((_a = this._nonInsurancePayers) !== null && _a !== void 0 ? _a : (this._nonInsurancePayers = new Client_28.NonInsurancePayers(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
204
209
|
}
|
|
205
210
|
get organizationProviders() {
|
|
206
211
|
var _a;
|
|
207
|
-
return ((_a = this._organizationProviders) !== null && _a !== void 0 ? _a : (this._organizationProviders = new
|
|
212
|
+
return ((_a = this._organizationProviders) !== null && _a !== void 0 ? _a : (this._organizationProviders = new Client_29.OrganizationProviders(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
208
213
|
}
|
|
209
214
|
get organizationServiceFacilities() {
|
|
210
215
|
var _a;
|
|
211
|
-
return ((_a = this._organizationServiceFacilities) !== null && _a !== void 0 ? _a : (this._organizationServiceFacilities = new
|
|
216
|
+
return ((_a = this._organizationServiceFacilities) !== null && _a !== void 0 ? _a : (this._organizationServiceFacilities = new Client_30.OrganizationServiceFacilities(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
212
217
|
}
|
|
213
218
|
get patientAr() {
|
|
214
219
|
var _a;
|
|
215
|
-
return ((_a = this._patientAr) !== null && _a !== void 0 ? _a : (this._patientAr = new
|
|
220
|
+
return ((_a = this._patientAr) !== null && _a !== void 0 ? _a : (this._patientAr = new Client_31.PatientAr(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
216
221
|
}
|
|
217
222
|
get patientPayments() {
|
|
218
223
|
var _a;
|
|
219
|
-
return ((_a = this._patientPayments) !== null && _a !== void 0 ? _a : (this._patientPayments = new
|
|
224
|
+
return ((_a = this._patientPayments) !== null && _a !== void 0 ? _a : (this._patientPayments = new Client_32.PatientPayments(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
220
225
|
}
|
|
221
226
|
get patientRefunds() {
|
|
222
227
|
var _a;
|
|
223
|
-
return ((_a = this._patientRefunds) !== null && _a !== void 0 ? _a : (this._patientRefunds = new
|
|
228
|
+
return ((_a = this._patientRefunds) !== null && _a !== void 0 ? _a : (this._patientRefunds = new Client_33.PatientRefunds(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
224
229
|
}
|
|
225
230
|
get payerPlanGroups() {
|
|
226
231
|
var _a;
|
|
227
|
-
return ((_a = this._payerPlanGroups) !== null && _a !== void 0 ? _a : (this._payerPlanGroups = new
|
|
232
|
+
return ((_a = this._payerPlanGroups) !== null && _a !== void 0 ? _a : (this._payerPlanGroups = new Client_34.PayerPlanGroups(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
228
233
|
}
|
|
229
234
|
get payers() {
|
|
230
235
|
var _a;
|
|
231
|
-
return ((_a = this._payers) !== null && _a !== void 0 ? _a : (this._payers = new
|
|
236
|
+
return ((_a = this._payers) !== null && _a !== void 0 ? _a : (this._payers = new Client_35.Payers(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
232
237
|
}
|
|
233
238
|
get serviceLines() {
|
|
234
239
|
var _a;
|
|
235
|
-
return ((_a = this._serviceLines) !== null && _a !== void 0 ? _a : (this._serviceLines = new
|
|
240
|
+
return ((_a = this._serviceLines) !== null && _a !== void 0 ? _a : (this._serviceLines = new Client_38.ServiceLines(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
236
241
|
}
|
|
237
242
|
get superbills() {
|
|
238
243
|
var _a;
|
|
239
|
-
return ((_a = this._superbills) !== null && _a !== void 0 ? _a : (this._superbills = new
|
|
244
|
+
return ((_a = this._superbills) !== null && _a !== void 0 ? _a : (this._superbills = new Client_39.Superbills(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
240
245
|
}
|
|
241
246
|
get tasks() {
|
|
242
247
|
var _a;
|
|
243
|
-
return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new
|
|
248
|
+
return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_40.Tasks(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
244
249
|
}
|
|
245
250
|
get writeOffs() {
|
|
246
251
|
var _a;
|
|
247
|
-
return ((_a = this._writeOffs) !== null && _a !== void 0 ? _a : (this._writeOffs = new
|
|
252
|
+
return ((_a = this._writeOffs) !== null && _a !== void 0 ? _a : (this._writeOffs = new Client_41.WriteOffs(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
248
253
|
}
|
|
249
254
|
get preEncounter() {
|
|
250
255
|
var _a;
|
|
251
|
-
return ((_a = this._preEncounter) !== null && _a !== void 0 ? _a : (this._preEncounter = new
|
|
256
|
+
return ((_a = this._preEncounter) !== null && _a !== void 0 ? _a : (this._preEncounter = new Client_36.PreEncounter(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
252
257
|
}
|
|
253
258
|
get diagnoses() {
|
|
254
259
|
var _a;
|
|
@@ -256,7 +261,7 @@ class CandidApiClient {
|
|
|
256
261
|
}
|
|
257
262
|
get serviceFacility() {
|
|
258
263
|
var _a;
|
|
259
|
-
return ((_a = this._serviceFacility) !== null && _a !== void 0 ? _a : (this._serviceFacility = new
|
|
264
|
+
return ((_a = this._serviceFacility) !== null && _a !== void 0 ? _a : (this._serviceFacility = new Client_37.ServiceFacility(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
260
265
|
}
|
|
261
266
|
}
|
|
262
267
|
exports.CandidApiClient = CandidApiClient;
|
|
@@ -51,6 +51,8 @@ export * from "./RegionNational";
|
|
|
51
51
|
export * from "./RegionStates";
|
|
52
52
|
export * from "./Regions";
|
|
53
53
|
export * from "./RemovableDateRangeOptionalEnd";
|
|
54
|
+
export * from "./ReportTransmissionCode";
|
|
55
|
+
export * from "./ReportTypeCode";
|
|
54
56
|
export * from "./RequestValidationError";
|
|
55
57
|
export * from "./ResourcePage";
|
|
56
58
|
export * from "./SchemaId";
|
|
@@ -67,6 +67,8 @@ __exportStar(require("./RegionNational"), exports);
|
|
|
67
67
|
__exportStar(require("./RegionStates"), exports);
|
|
68
68
|
__exportStar(require("./Regions"), exports);
|
|
69
69
|
__exportStar(require("./RemovableDateRangeOptionalEnd"), exports);
|
|
70
|
+
__exportStar(require("./ReportTransmissionCode"), exports);
|
|
71
|
+
__exportStar(require("./ReportTypeCode"), exports);
|
|
70
72
|
__exportStar(require("./RequestValidationError"), exports);
|
|
71
73
|
__exportStar(require("./ResourcePage"), exports);
|
|
72
74
|
__exportStar(require("./SchemaId"), exports);
|
|
@@ -24,7 +24,7 @@ export declare class V1 {
|
|
|
24
24
|
private __get;
|
|
25
25
|
/**
|
|
26
26
|
* Uploads a file to the encounter. The file will be stored in the
|
|
27
|
-
* encounter's attachments.
|
|
27
|
+
* encounter's attachments. Deprecated: Use create-v2 instead.
|
|
28
28
|
*
|
|
29
29
|
* @param {File | fs.ReadStream | Blob} attachmentFile
|
|
30
30
|
* @param {CandidApi.EncounterId} encounterId
|
|
@@ -33,6 +33,17 @@ export declare class V1 {
|
|
|
33
33
|
*/
|
|
34
34
|
create(attachmentFile: File | fs.ReadStream | Blob, encounterId: CandidApi.EncounterId, request: CandidApi.encounterAttachments.v1.CreateAttachmentRequest, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.encounterAttachments.v1.AttachmentId, CandidApi.encounterAttachments.v1.create.Error>>;
|
|
35
35
|
private __create;
|
|
36
|
+
/**
|
|
37
|
+
* Uploads a file to the encounter. The file will be stored in the
|
|
38
|
+
* encounter's attachments.
|
|
39
|
+
*
|
|
40
|
+
* @param {File | fs.ReadStream | Blob} attachmentFile
|
|
41
|
+
* @param {CandidApi.EncounterId} encounterId
|
|
42
|
+
* @param {CandidApi.encounterAttachments.v1.CreateAttachmentV2Request} request
|
|
43
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
+
*/
|
|
45
|
+
createWithDescription(attachmentFile: File | fs.ReadStream | Blob, encounterId: CandidApi.EncounterId, request: CandidApi.encounterAttachments.v1.CreateAttachmentV2Request, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.encounterAttachments.v1.AttachmentId, CandidApi.encounterAttachments.v1.createWithDescription.Error>>;
|
|
46
|
+
private __createWithDescription;
|
|
36
47
|
/**
|
|
37
48
|
* @param {CandidApi.EncounterId} encounterId
|
|
38
49
|
* @param {CandidApi.encounterAttachments.v1.DeleteAttachmentRequest} request
|
|
@@ -104,7 +104,7 @@ class V1 {
|
|
|
104
104
|
}
|
|
105
105
|
/**
|
|
106
106
|
* Uploads a file to the encounter. The file will be stored in the
|
|
107
|
-
* encounter's attachments.
|
|
107
|
+
* encounter's attachments. Deprecated: Use create-v2 instead.
|
|
108
108
|
*
|
|
109
109
|
* @param {File | fs.ReadStream | Blob} attachmentFile
|
|
110
110
|
* @param {CandidApi.EncounterId} encounterId
|
|
@@ -162,6 +162,69 @@ class V1 {
|
|
|
162
162
|
};
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
|
+
/**
|
|
166
|
+
* Uploads a file to the encounter. The file will be stored in the
|
|
167
|
+
* encounter's attachments.
|
|
168
|
+
*
|
|
169
|
+
* @param {File | fs.ReadStream | Blob} attachmentFile
|
|
170
|
+
* @param {CandidApi.EncounterId} encounterId
|
|
171
|
+
* @param {CandidApi.encounterAttachments.v1.CreateAttachmentV2Request} request
|
|
172
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
173
|
+
*/
|
|
174
|
+
createWithDescription(attachmentFile, encounterId, request, requestOptions) {
|
|
175
|
+
return core.HttpResponsePromise.fromPromise(this.__createWithDescription(attachmentFile, encounterId, request, requestOptions));
|
|
176
|
+
}
|
|
177
|
+
__createWithDescription(attachmentFile, encounterId, request, requestOptions) {
|
|
178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
179
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
180
|
+
const _request = yield core.newFormData();
|
|
181
|
+
yield _request.appendFile("attachment_file", attachmentFile);
|
|
182
|
+
_request.append("attachment_type", serializers.encounterAttachments.v1.EncounterAttachmentType.jsonOrThrow(request.attachmentType, {
|
|
183
|
+
unrecognizedObjectKeys: "strip",
|
|
184
|
+
}));
|
|
185
|
+
if (request.description != null) {
|
|
186
|
+
_request.append("description", request.description);
|
|
187
|
+
}
|
|
188
|
+
const _maybeEncodedRequest = yield _request.getRequest();
|
|
189
|
+
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
190
|
+
const _response = yield core.fetcher({
|
|
191
|
+
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/encounter-attachments/v1/${core.url.encodePathParam(serializers.EncounterId.jsonOrThrow(encounterId))}/v2`),
|
|
192
|
+
method: "PUT",
|
|
193
|
+
headers: _headers,
|
|
194
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
195
|
+
requestType: "file",
|
|
196
|
+
duplex: _maybeEncodedRequest.duplex,
|
|
197
|
+
body: _maybeEncodedRequest.body,
|
|
198
|
+
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,
|
|
199
|
+
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,
|
|
200
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
201
|
+
});
|
|
202
|
+
if (_response.ok) {
|
|
203
|
+
return {
|
|
204
|
+
data: {
|
|
205
|
+
ok: true,
|
|
206
|
+
body: serializers.encounterAttachments.v1.AttachmentId.parseOrThrow(_response.body, {
|
|
207
|
+
unrecognizedObjectKeys: "passthrough",
|
|
208
|
+
allowUnrecognizedUnionMembers: true,
|
|
209
|
+
allowUnrecognizedEnumValues: true,
|
|
210
|
+
breadcrumbsPrefix: ["response"],
|
|
211
|
+
}),
|
|
212
|
+
headers: _response.headers,
|
|
213
|
+
rawResponse: _response.rawResponse,
|
|
214
|
+
},
|
|
215
|
+
rawResponse: _response.rawResponse,
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
return {
|
|
219
|
+
data: {
|
|
220
|
+
ok: false,
|
|
221
|
+
error: CandidApi.encounterAttachments.v1.createWithDescription.Error._unknown(_response.error),
|
|
222
|
+
rawResponse: _response.rawResponse,
|
|
223
|
+
},
|
|
224
|
+
rawResponse: _response.rawResponse,
|
|
225
|
+
};
|
|
226
|
+
});
|
|
227
|
+
}
|
|
165
228
|
/**
|
|
166
229
|
* @param {CandidApi.EncounterId} encounterId
|
|
167
230
|
* @param {CandidApi.encounterAttachments.v1.DeleteAttachmentRequest} request
|
package/dist/api/resources/encounterAttachments/resources/v1/client/createWithDescription.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as core from "../../../../../../core";
|
|
2
|
+
import * as CandidApi from "../../../../../index";
|
|
3
|
+
export type Error = CandidApi.encounterAttachments.v1.createWithDescription.Error._Unknown;
|
|
4
|
+
export declare namespace Error {
|
|
5
|
+
interface _Unknown extends _Utils {
|
|
6
|
+
errorName: void;
|
|
7
|
+
content: core.Fetcher.Error;
|
|
8
|
+
}
|
|
9
|
+
interface _Utils {
|
|
10
|
+
_visit: <_Result>(visitor: CandidApi.encounterAttachments.v1.createWithDescription.Error._Visitor<_Result>) => _Result;
|
|
11
|
+
}
|
|
12
|
+
interface _Visitor<_Result> {
|
|
13
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export declare const Error: {
|
|
17
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounterAttachments.v1.createWithDescription.Error._Unknown;
|
|
18
|
+
readonly _visit: <_Result>(value: CandidApi.encounterAttachments.v1.createWithDescription.Error, visitor: CandidApi.encounterAttachments.v1.createWithDescription.Error._Visitor<_Result>) => _Result;
|
|
19
|
+
};
|