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,55 @@
|
|
|
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
|
+
_unknown: (fetcherError) => {
|
|
41
|
+
return {
|
|
42
|
+
errorName: undefined,
|
|
43
|
+
content: fetcherError,
|
|
44
|
+
_visit: function (visitor) {
|
|
45
|
+
return CandidApi.encounterAttachments.v1.createWithDescription.Error._visit(this, visitor);
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
_visit: (value, visitor) => {
|
|
50
|
+
switch (value.errorName) {
|
|
51
|
+
default:
|
|
52
|
+
return visitor._other(value);
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
};
|
|
@@ -36,8 +36,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.get = exports.delete = exports.create = void 0;
|
|
39
|
+
exports.get = exports.delete = exports.createWithDescription = exports.create = void 0;
|
|
40
40
|
exports.create = __importStar(require("./create"));
|
|
41
|
+
exports.createWithDescription = __importStar(require("./createWithDescription"));
|
|
41
42
|
exports.delete = __importStar(require("./delete"));
|
|
42
43
|
exports.get = __importStar(require("./get"));
|
|
43
44
|
__exportStar(require("./requests"), exports);
|
|
@@ -2,4 +2,6 @@ import type * as CandidApi from "../../../../../index";
|
|
|
2
2
|
export interface EncounterAttachment extends CandidApi.encounterAttachments.v1.BaseAttachment {
|
|
3
3
|
encounterId: CandidApi.EncounterId;
|
|
4
4
|
attachmentType: CandidApi.encounterAttachments.v1.EncounterAttachmentType;
|
|
5
|
+
createdAt: Date;
|
|
6
|
+
createdBy: CandidApi.users.v2.UserV2;
|
|
5
7
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { BaseClientOptions } from "../../../../BaseClient";
|
|
2
|
+
import type * as core from "../../../../core";
|
|
3
|
+
import { V1 } from "../resources/v1/client/Client";
|
|
4
|
+
export declare namespace EncounterSupplementalInformation {
|
|
5
|
+
interface Options extends BaseClientOptions {
|
|
6
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare class EncounterSupplementalInformation {
|
|
10
|
+
protected readonly _options: EncounterSupplementalInformation.Options;
|
|
11
|
+
protected _v1: V1 | undefined;
|
|
12
|
+
constructor(_options?: EncounterSupplementalInformation.Options);
|
|
13
|
+
get v1(): V1;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.EncounterSupplementalInformation = void 0;
|
|
5
|
+
const Client_1 = require("../resources/v1/client/Client");
|
|
6
|
+
class EncounterSupplementalInformation {
|
|
7
|
+
constructor(_options = {}) {
|
|
8
|
+
this._options = _options;
|
|
9
|
+
}
|
|
10
|
+
get v1() {
|
|
11
|
+
var _a;
|
|
12
|
+
return ((_a = this._v1) !== null && _a !== void 0 ? _a : (this._v1 = new Client_1.V1(this._options)));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.EncounterSupplementalInformation = EncounterSupplementalInformation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./client"), exports);
|
|
18
|
+
__exportStar(require("./resources"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as v1 from "./v1";
|
|
@@ -0,0 +1,37 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.v1 = void 0;
|
|
37
|
+
exports.v1 = __importStar(require("./v1"));
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient";
|
|
2
|
+
import * as core from "../../../../../../core";
|
|
3
|
+
import * as CandidApi from "../../../../../index";
|
|
4
|
+
export declare namespace V1 {
|
|
5
|
+
interface Options extends BaseClientOptions {
|
|
6
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
7
|
+
}
|
|
8
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare class V1 {
|
|
12
|
+
protected readonly _options: V1.Options;
|
|
13
|
+
constructor(_options?: V1.Options);
|
|
14
|
+
/**
|
|
15
|
+
* @param {CandidApi.EncounterId} encounterId
|
|
16
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* await client.encounterSupplementalInformation.v1.get(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
20
|
+
*/
|
|
21
|
+
get(encounterId: CandidApi.EncounterId, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.encounterSupplementalInformation.v1.SupplementalInformation[], CandidApi.encounterSupplementalInformation.v1.get.Error>>;
|
|
22
|
+
private __get;
|
|
23
|
+
/**
|
|
24
|
+
* @param {CandidApi.EncounterId} encounterId
|
|
25
|
+
* @param {CandidApi.encounterSupplementalInformation.v1.CreateSupplementalInformationRequest} request
|
|
26
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* await client.encounterSupplementalInformation.v1.create(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
30
|
+
* attachmentReportTypeCode: "03",
|
|
31
|
+
* attachmentTransmissionCode: "BM",
|
|
32
|
+
* attachmentInclusion: "not_included"
|
|
33
|
+
* })
|
|
34
|
+
*/
|
|
35
|
+
create(encounterId: CandidApi.EncounterId, request: CandidApi.encounterSupplementalInformation.v1.CreateSupplementalInformationRequest, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.encounterSupplementalInformation.v1.SupplementalInformation, CandidApi.encounterSupplementalInformation.v1.create.Error>>;
|
|
36
|
+
private __create;
|
|
37
|
+
/**
|
|
38
|
+
* @param {CandidApi.EncounterId} encounterId
|
|
39
|
+
* @param {CandidApi.encounterSupplementalInformation.v1.SupplementalInformationId} supplementalInformationId
|
|
40
|
+
* @param {CandidApi.encounterSupplementalInformation.v1.UpdateSupplementalInformationRequest} request
|
|
41
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* await client.encounterSupplementalInformation.v1.update(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.encounterSupplementalInformation.v1.SupplementalInformationId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {})
|
|
45
|
+
*/
|
|
46
|
+
update(encounterId: CandidApi.EncounterId, supplementalInformationId: CandidApi.encounterSupplementalInformation.v1.SupplementalInformationId, request: CandidApi.encounterSupplementalInformation.v1.UpdateSupplementalInformationRequest, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.encounterSupplementalInformation.v1.SupplementalInformation, CandidApi.encounterSupplementalInformation.v1.update.Error>>;
|
|
47
|
+
private __update;
|
|
48
|
+
/**
|
|
49
|
+
* @param {CandidApi.EncounterId} encounterId
|
|
50
|
+
* @param {CandidApi.encounterSupplementalInformation.v1.SupplementalInformationId} supplementalInformationId
|
|
51
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* await client.encounterSupplementalInformation.v1.delete(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.encounterSupplementalInformation.v1.SupplementalInformationId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
55
|
+
*/
|
|
56
|
+
delete(encounterId: CandidApi.EncounterId, supplementalInformationId: CandidApi.encounterSupplementalInformation.v1.SupplementalInformationId, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, CandidApi.encounterSupplementalInformation.v1.delete.Error>>;
|
|
57
|
+
private __delete;
|
|
58
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,328 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.V1 = void 0;
|
|
47
|
+
const core = __importStar(require("../../../../../../core"));
|
|
48
|
+
const headers_1 = require("../../../../../../core/headers");
|
|
49
|
+
const environments = __importStar(require("../../../../../../environments"));
|
|
50
|
+
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
51
|
+
const CandidApi = __importStar(require("../../../../../index"));
|
|
52
|
+
class V1 {
|
|
53
|
+
constructor(_options = {}) {
|
|
54
|
+
this._options = _options;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @param {CandidApi.EncounterId} encounterId
|
|
58
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* await client.encounterSupplementalInformation.v1.get(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
62
|
+
*/
|
|
63
|
+
get(encounterId, requestOptions) {
|
|
64
|
+
return core.HttpResponsePromise.fromPromise(this.__get(encounterId, requestOptions));
|
|
65
|
+
}
|
|
66
|
+
__get(encounterId, requestOptions) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
69
|
+
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);
|
|
70
|
+
const _response = yield core.fetcher({
|
|
71
|
+
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-supplemental-information/v1/${core.url.encodePathParam(serializers.EncounterId.jsonOrThrow(encounterId))}`),
|
|
72
|
+
method: "GET",
|
|
73
|
+
headers: _headers,
|
|
74
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
75
|
+
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,
|
|
76
|
+
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,
|
|
77
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
78
|
+
});
|
|
79
|
+
if (_response.ok) {
|
|
80
|
+
return {
|
|
81
|
+
data: {
|
|
82
|
+
ok: true,
|
|
83
|
+
body: serializers.encounterSupplementalInformation.v1.get.Response.parseOrThrow(_response.body, {
|
|
84
|
+
unrecognizedObjectKeys: "passthrough",
|
|
85
|
+
allowUnrecognizedUnionMembers: true,
|
|
86
|
+
allowUnrecognizedEnumValues: true,
|
|
87
|
+
breadcrumbsPrefix: ["response"],
|
|
88
|
+
}),
|
|
89
|
+
headers: _response.headers,
|
|
90
|
+
rawResponse: _response.rawResponse,
|
|
91
|
+
},
|
|
92
|
+
rawResponse: _response.rawResponse,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
data: {
|
|
97
|
+
ok: false,
|
|
98
|
+
error: CandidApi.encounterSupplementalInformation.v1.get.Error._unknown(_response.error),
|
|
99
|
+
rawResponse: _response.rawResponse,
|
|
100
|
+
},
|
|
101
|
+
rawResponse: _response.rawResponse,
|
|
102
|
+
};
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* @param {CandidApi.EncounterId} encounterId
|
|
107
|
+
* @param {CandidApi.encounterSupplementalInformation.v1.CreateSupplementalInformationRequest} request
|
|
108
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* await client.encounterSupplementalInformation.v1.create(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
112
|
+
* attachmentReportTypeCode: "03",
|
|
113
|
+
* attachmentTransmissionCode: "BM",
|
|
114
|
+
* attachmentInclusion: "not_included"
|
|
115
|
+
* })
|
|
116
|
+
*/
|
|
117
|
+
create(encounterId, request, requestOptions) {
|
|
118
|
+
return core.HttpResponsePromise.fromPromise(this.__create(encounterId, request, requestOptions));
|
|
119
|
+
}
|
|
120
|
+
__create(encounterId, request, requestOptions) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
123
|
+
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);
|
|
124
|
+
const _response = yield core.fetcher({
|
|
125
|
+
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-supplemental-information/v1/${core.url.encodePathParam(serializers.EncounterId.jsonOrThrow(encounterId))}`),
|
|
126
|
+
method: "PUT",
|
|
127
|
+
headers: _headers,
|
|
128
|
+
contentType: "application/json",
|
|
129
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
130
|
+
requestType: "json",
|
|
131
|
+
body: serializers.encounterSupplementalInformation.v1.CreateSupplementalInformationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
132
|
+
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,
|
|
133
|
+
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,
|
|
134
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
135
|
+
});
|
|
136
|
+
if (_response.ok) {
|
|
137
|
+
return {
|
|
138
|
+
data: {
|
|
139
|
+
ok: true,
|
|
140
|
+
body: serializers.encounterSupplementalInformation.v1.SupplementalInformation.parseOrThrow(_response.body, {
|
|
141
|
+
unrecognizedObjectKeys: "passthrough",
|
|
142
|
+
allowUnrecognizedUnionMembers: true,
|
|
143
|
+
allowUnrecognizedEnumValues: true,
|
|
144
|
+
breadcrumbsPrefix: ["response"],
|
|
145
|
+
}),
|
|
146
|
+
headers: _response.headers,
|
|
147
|
+
rawResponse: _response.rawResponse,
|
|
148
|
+
},
|
|
149
|
+
rawResponse: _response.rawResponse,
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
if (_response.error.reason === "status-code") {
|
|
153
|
+
switch ((_j = _response.error.body) === null || _j === void 0 ? void 0 : _j.errorName) {
|
|
154
|
+
case "EntityNotFoundError":
|
|
155
|
+
return {
|
|
156
|
+
data: {
|
|
157
|
+
ok: false,
|
|
158
|
+
error: serializers.encounterSupplementalInformation.v1.create.Error.parseOrThrow(_response.error
|
|
159
|
+
.body, {
|
|
160
|
+
unrecognizedObjectKeys: "passthrough",
|
|
161
|
+
allowUnrecognizedUnionMembers: true,
|
|
162
|
+
allowUnrecognizedEnumValues: true,
|
|
163
|
+
breadcrumbsPrefix: ["response"],
|
|
164
|
+
}),
|
|
165
|
+
rawResponse: _response.rawResponse,
|
|
166
|
+
},
|
|
167
|
+
rawResponse: _response.rawResponse,
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
return {
|
|
172
|
+
data: {
|
|
173
|
+
ok: false,
|
|
174
|
+
error: CandidApi.encounterSupplementalInformation.v1.create.Error._unknown(_response.error),
|
|
175
|
+
rawResponse: _response.rawResponse,
|
|
176
|
+
},
|
|
177
|
+
rawResponse: _response.rawResponse,
|
|
178
|
+
};
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* @param {CandidApi.EncounterId} encounterId
|
|
183
|
+
* @param {CandidApi.encounterSupplementalInformation.v1.SupplementalInformationId} supplementalInformationId
|
|
184
|
+
* @param {CandidApi.encounterSupplementalInformation.v1.UpdateSupplementalInformationRequest} request
|
|
185
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
186
|
+
*
|
|
187
|
+
* @example
|
|
188
|
+
* await client.encounterSupplementalInformation.v1.update(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.encounterSupplementalInformation.v1.SupplementalInformationId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {})
|
|
189
|
+
*/
|
|
190
|
+
update(encounterId, supplementalInformationId, request, requestOptions) {
|
|
191
|
+
return core.HttpResponsePromise.fromPromise(this.__update(encounterId, supplementalInformationId, request, requestOptions));
|
|
192
|
+
}
|
|
193
|
+
__update(encounterId, supplementalInformationId, request, requestOptions) {
|
|
194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
195
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
196
|
+
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);
|
|
197
|
+
const _response = yield core.fetcher({
|
|
198
|
+
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-supplemental-information/v1/${core.url.encodePathParam(serializers.EncounterId.jsonOrThrow(encounterId))}/${core.url.encodePathParam(serializers.encounterSupplementalInformation.v1.SupplementalInformationId.jsonOrThrow(supplementalInformationId))}`),
|
|
199
|
+
method: "PATCH",
|
|
200
|
+
headers: _headers,
|
|
201
|
+
contentType: "application/json",
|
|
202
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
203
|
+
requestType: "json",
|
|
204
|
+
body: serializers.encounterSupplementalInformation.v1.UpdateSupplementalInformationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
205
|
+
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,
|
|
206
|
+
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,
|
|
207
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
208
|
+
});
|
|
209
|
+
if (_response.ok) {
|
|
210
|
+
return {
|
|
211
|
+
data: {
|
|
212
|
+
ok: true,
|
|
213
|
+
body: serializers.encounterSupplementalInformation.v1.SupplementalInformation.parseOrThrow(_response.body, {
|
|
214
|
+
unrecognizedObjectKeys: "passthrough",
|
|
215
|
+
allowUnrecognizedUnionMembers: true,
|
|
216
|
+
allowUnrecognizedEnumValues: true,
|
|
217
|
+
breadcrumbsPrefix: ["response"],
|
|
218
|
+
}),
|
|
219
|
+
headers: _response.headers,
|
|
220
|
+
rawResponse: _response.rawResponse,
|
|
221
|
+
},
|
|
222
|
+
rawResponse: _response.rawResponse,
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
if (_response.error.reason === "status-code") {
|
|
226
|
+
switch ((_j = _response.error.body) === null || _j === void 0 ? void 0 : _j.errorName) {
|
|
227
|
+
case "EntityNotFoundError":
|
|
228
|
+
return {
|
|
229
|
+
data: {
|
|
230
|
+
ok: false,
|
|
231
|
+
error: serializers.encounterSupplementalInformation.v1.update.Error.parseOrThrow(_response.error
|
|
232
|
+
.body, {
|
|
233
|
+
unrecognizedObjectKeys: "passthrough",
|
|
234
|
+
allowUnrecognizedUnionMembers: true,
|
|
235
|
+
allowUnrecognizedEnumValues: true,
|
|
236
|
+
breadcrumbsPrefix: ["response"],
|
|
237
|
+
}),
|
|
238
|
+
rawResponse: _response.rawResponse,
|
|
239
|
+
},
|
|
240
|
+
rawResponse: _response.rawResponse,
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
return {
|
|
245
|
+
data: {
|
|
246
|
+
ok: false,
|
|
247
|
+
error: CandidApi.encounterSupplementalInformation.v1.update.Error._unknown(_response.error),
|
|
248
|
+
rawResponse: _response.rawResponse,
|
|
249
|
+
},
|
|
250
|
+
rawResponse: _response.rawResponse,
|
|
251
|
+
};
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* @param {CandidApi.EncounterId} encounterId
|
|
256
|
+
* @param {CandidApi.encounterSupplementalInformation.v1.SupplementalInformationId} supplementalInformationId
|
|
257
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
258
|
+
*
|
|
259
|
+
* @example
|
|
260
|
+
* await client.encounterSupplementalInformation.v1.delete(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.encounterSupplementalInformation.v1.SupplementalInformationId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
261
|
+
*/
|
|
262
|
+
delete(encounterId, supplementalInformationId, requestOptions) {
|
|
263
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(encounterId, supplementalInformationId, requestOptions));
|
|
264
|
+
}
|
|
265
|
+
__delete(encounterId, supplementalInformationId, requestOptions) {
|
|
266
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
267
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
268
|
+
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);
|
|
269
|
+
const _response = yield core.fetcher({
|
|
270
|
+
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-supplemental-information/v1/${core.url.encodePathParam(serializers.EncounterId.jsonOrThrow(encounterId))}/${core.url.encodePathParam(serializers.encounterSupplementalInformation.v1.SupplementalInformationId.jsonOrThrow(supplementalInformationId))}`),
|
|
271
|
+
method: "DELETE",
|
|
272
|
+
headers: _headers,
|
|
273
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
274
|
+
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,
|
|
275
|
+
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,
|
|
276
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
277
|
+
});
|
|
278
|
+
if (_response.ok) {
|
|
279
|
+
return {
|
|
280
|
+
data: {
|
|
281
|
+
ok: true,
|
|
282
|
+
body: undefined,
|
|
283
|
+
headers: _response.headers,
|
|
284
|
+
rawResponse: _response.rawResponse,
|
|
285
|
+
},
|
|
286
|
+
rawResponse: _response.rawResponse,
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
if (_response.error.reason === "status-code") {
|
|
290
|
+
switch ((_j = _response.error.body) === null || _j === void 0 ? void 0 : _j.errorName) {
|
|
291
|
+
case "EntityNotFoundError":
|
|
292
|
+
return {
|
|
293
|
+
data: {
|
|
294
|
+
ok: false,
|
|
295
|
+
error: serializers.encounterSupplementalInformation.v1.delete.Error.parseOrThrow(_response.error
|
|
296
|
+
.body, {
|
|
297
|
+
unrecognizedObjectKeys: "passthrough",
|
|
298
|
+
allowUnrecognizedUnionMembers: true,
|
|
299
|
+
allowUnrecognizedEnumValues: true,
|
|
300
|
+
breadcrumbsPrefix: ["response"],
|
|
301
|
+
}),
|
|
302
|
+
rawResponse: _response.rawResponse,
|
|
303
|
+
},
|
|
304
|
+
rawResponse: _response.rawResponse,
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
return {
|
|
309
|
+
data: {
|
|
310
|
+
ok: false,
|
|
311
|
+
error: CandidApi.encounterSupplementalInformation.v1.delete.Error._unknown(_response.error),
|
|
312
|
+
rawResponse: _response.rawResponse,
|
|
313
|
+
},
|
|
314
|
+
rawResponse: _response.rawResponse,
|
|
315
|
+
};
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
_getAuthorizationHeader() {
|
|
319
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
320
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
321
|
+
if (bearer != null) {
|
|
322
|
+
return `Bearer ${bearer}`;
|
|
323
|
+
}
|
|
324
|
+
return undefined;
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
exports.V1 = V1;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type * as core from "../../../../../../core";
|
|
2
|
+
import * as CandidApi from "../../../../../index";
|
|
3
|
+
export type Error = CandidApi.encounterSupplementalInformation.v1.create.Error.EntityNotFoundError | CandidApi.encounterSupplementalInformation.v1.create.Error._Unknown;
|
|
4
|
+
export declare namespace Error {
|
|
5
|
+
interface EntityNotFoundError extends _Utils {
|
|
6
|
+
errorName: "EntityNotFoundError";
|
|
7
|
+
content: CandidApi.EntityNotFoundErrorMessage;
|
|
8
|
+
}
|
|
9
|
+
interface _Unknown extends _Utils {
|
|
10
|
+
errorName: void;
|
|
11
|
+
content: core.Fetcher.Error;
|
|
12
|
+
}
|
|
13
|
+
interface _Utils {
|
|
14
|
+
_visit: <_Result>(visitor: CandidApi.encounterSupplementalInformation.v1.create.Error._Visitor<_Result>) => _Result;
|
|
15
|
+
}
|
|
16
|
+
interface _Visitor<_Result> {
|
|
17
|
+
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
18
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export declare const Error: {
|
|
22
|
+
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.encounterSupplementalInformation.v1.create.Error.EntityNotFoundError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounterSupplementalInformation.v1.create.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: CandidApi.encounterSupplementalInformation.v1.create.Error, visitor: CandidApi.encounterSupplementalInformation.v1.create.Error._Visitor<_Result>) => _Result;
|
|
25
|
+
};
|