@oystehr/sdk 3.0.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/.eslintrc.js +14 -0
- package/LICENSE.md +9 -0
- package/README.md +339 -0
- package/dist/cjs/client/client.d.ts +49 -0
- package/dist/cjs/config.d.ts +45 -0
- package/dist/cjs/errors/index.d.ts +17 -0
- package/dist/cjs/fhir/fhir-types.d.ts +9 -0
- package/dist/cjs/fhir/index.d.ts +2 -0
- package/dist/cjs/fhir/utils.d.ts +14 -0
- package/dist/cjs/index.cjs +1333 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/index.d.cts +16 -0
- package/dist/cjs/index.d.ts +16 -0
- package/dist/cjs/index.min.cjs +2 -0
- package/dist/cjs/index.min.cjs.map +1 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/resources/classes/application.d.ts +62 -0
- package/dist/cjs/resources/classes/charge.d.ts +30 -0
- package/dist/cjs/resources/classes/conversation-ext.d.ts +10 -0
- package/dist/cjs/resources/classes/conversation.d.ts +64 -0
- package/dist/cjs/resources/classes/developer.d.ts +50 -0
- package/dist/cjs/resources/classes/erx.d.ts +18 -0
- package/dist/cjs/resources/classes/fhir-ext.d.ts +58 -0
- package/dist/cjs/resources/classes/fhir.d.ts +21 -0
- package/dist/cjs/resources/classes/index.d.ts +44 -0
- package/dist/cjs/resources/classes/m2m.d.ts +57 -0
- package/dist/cjs/resources/classes/messaging.d.ts +10 -0
- package/dist/cjs/resources/classes/paymentMethod.d.ts +70 -0
- package/dist/cjs/resources/classes/project.d.ts +20 -0
- package/dist/cjs/resources/classes/rcm.d.ts +39 -0
- package/dist/cjs/resources/classes/role.d.ts +42 -0
- package/dist/cjs/resources/classes/secret.d.ts +34 -0
- package/dist/cjs/resources/classes/telemed.d.ts +29 -0
- package/dist/cjs/resources/classes/transactionalSMS.d.ts +22 -0
- package/dist/cjs/resources/classes/user.d.ts +56 -0
- package/dist/cjs/resources/classes/version.d.ts +10 -0
- package/dist/cjs/resources/classes/z3-ext.d.ts +10 -0
- package/dist/cjs/resources/classes/z3.d.ts +51 -0
- package/dist/cjs/resources/classes/zambda-ext.d.ts +6 -0
- package/dist/cjs/resources/classes/zambda.d.ts +63 -0
- package/dist/cjs/resources/classes/zambdaLogStream.d.ts +27 -0
- package/dist/cjs/resources/index.d.ts +1 -0
- package/dist/cjs/resources/types/AccessPolicy.d.ts +7 -0
- package/dist/cjs/resources/types/Application.d.ts +59 -0
- package/dist/cjs/resources/types/ApplicationCreateParams.d.ts +59 -0
- package/dist/cjs/resources/types/ApplicationCreateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ApplicationDeleteParams.d.ts +3 -0
- package/dist/cjs/resources/types/ApplicationGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/ApplicationGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ApplicationListItem.d.ts +15 -0
- package/dist/cjs/resources/types/ApplicationListResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ApplicationRevokeAccessTokenParams.d.ts +4 -0
- package/dist/cjs/resources/types/ApplicationRevokeAccessTokenResponse.d.ts +6 -0
- package/dist/cjs/resources/types/ApplicationRevokeRefreshTokenParams.d.ts +4 -0
- package/dist/cjs/resources/types/ApplicationRevokeRefreshTokenResponse.d.ts +6 -0
- package/dist/cjs/resources/types/ApplicationRotateSecretParams.d.ts +3 -0
- package/dist/cjs/resources/types/ApplicationRotateSecretResponse.d.ts +6 -0
- package/dist/cjs/resources/types/ApplicationUpdateParams.d.ts +59 -0
- package/dist/cjs/resources/types/ApplicationUpdateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/Card.d.ts +8 -0
- package/dist/cjs/resources/types/CardIdentifier.d.ts +7 -0
- package/dist/cjs/resources/types/ChargeDetails.d.ts +8 -0
- package/dist/cjs/resources/types/ChargeIssueParams.d.ts +6 -0
- package/dist/cjs/resources/types/ChargeStatusParams.d.ts +6 -0
- package/dist/cjs/resources/types/ChargeStatusResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ClaimAddress.d.ts +7 -0
- package/dist/cjs/resources/types/ClaimCMS1500.d.ts +100 -0
- package/dist/cjs/resources/types/ClaimDate.d.ts +5 -0
- package/dist/cjs/resources/types/ClaimDatePeriod.d.ts +5 -0
- package/dist/cjs/resources/types/ClaimDateWithQualifier.d.ts +5 -0
- package/dist/cjs/resources/types/ClaimId.d.ts +4 -0
- package/dist/cjs/resources/types/ClaimName.d.ts +6 -0
- package/dist/cjs/resources/types/ConversationAddParticipantParams.d.ts +21 -0
- package/dist/cjs/resources/types/ConversationCreateParams.d.ts +7 -0
- package/dist/cjs/resources/types/ConversationCreateResponse.d.ts +10 -0
- package/dist/cjs/resources/types/ConversationGetTokenResponse.d.ts +9 -0
- package/dist/cjs/resources/types/ConversationMessageParams.d.ts +13 -0
- package/dist/cjs/resources/types/ConversationRemoveParticipantParams.d.ts +11 -0
- package/dist/cjs/resources/types/Developer.d.ts +20 -0
- package/dist/cjs/resources/types/DeveloperDeleteParams.d.ts +3 -0
- package/dist/cjs/resources/types/DeveloperGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/DeveloperGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/DeveloperInviteParams.d.ts +17 -0
- package/dist/cjs/resources/types/DeveloperInviteResponse.d.ts +23 -0
- package/dist/cjs/resources/types/DeveloperListItem.d.ts +7 -0
- package/dist/cjs/resources/types/DeveloperListResponse.d.ts +5 -0
- package/dist/cjs/resources/types/DeveloperListV2Params.d.ts +11 -0
- package/dist/cjs/resources/types/DeveloperListV2Response.d.ts +29 -0
- package/dist/cjs/resources/types/DeveloperUpdateParams.d.ts +9 -0
- package/dist/cjs/resources/types/DeveloperUpdateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ErxAllergySearchParams.d.ts +3 -0
- package/dist/cjs/resources/types/ErxAllergySearchResponse.d.ts +19 -0
- package/dist/cjs/resources/types/ErxMedicationSearchParams.d.ts +6 -0
- package/dist/cjs/resources/types/ErxMedicationSearchResponse.d.ts +38 -0
- package/dist/cjs/resources/types/ErxSyncPatientParams.d.ts +3 -0
- package/dist/cjs/resources/types/ErxSyncPatientResponse.d.ts +9 -0
- package/dist/cjs/resources/types/M2m.d.ts +30 -0
- package/dist/cjs/resources/types/M2mCreateParams.d.ts +20 -0
- package/dist/cjs/resources/types/M2mCreateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/M2mDeleteParams.d.ts +3 -0
- package/dist/cjs/resources/types/M2mGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/M2mGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/M2mListItem.d.ts +25 -0
- package/dist/cjs/resources/types/M2mListResponse.d.ts +5 -0
- package/dist/cjs/resources/types/M2mListV2Params.d.ts +10 -0
- package/dist/cjs/resources/types/M2mListV2Response.d.ts +16 -0
- package/dist/cjs/resources/types/M2mRotateSecretParams.d.ts +3 -0
- package/dist/cjs/resources/types/M2mRotateSecretResponse.d.ts +6 -0
- package/dist/cjs/resources/types/M2mUpdateParams.d.ts +21 -0
- package/dist/cjs/resources/types/M2mUpdateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/MessagingGetMessagingConfigResponse.d.ts +8 -0
- package/dist/cjs/resources/types/MessagingServiceInfo.d.ts +14 -0
- package/dist/cjs/resources/types/PaymentMethodDeleteParams.d.ts +16 -0
- package/dist/cjs/resources/types/PaymentMethodListParams.d.ts +12 -0
- package/dist/cjs/resources/types/PaymentMethodListResponse.d.ts +8 -0
- package/dist/cjs/resources/types/PaymentMethodSetDefaultParams.d.ts +16 -0
- package/dist/cjs/resources/types/PaymentMethodSetUpParams.d.ts +12 -0
- package/dist/cjs/resources/types/PaymentMethodSetUpResponse.d.ts +9 -0
- package/dist/cjs/resources/types/Project.d.ts +17 -0
- package/dist/cjs/resources/types/ProjectGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ProjectUpdateParams.d.ts +16 -0
- package/dist/cjs/resources/types/ProjectUpdateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/RcmEligibilityCheckParams.d.ts +6 -0
- package/dist/cjs/resources/types/RcmEligibilityCheckResponse.d.ts +5 -0
- package/dist/cjs/resources/types/RcmSubmitProfessionalClaimParams.d.ts +10 -0
- package/dist/cjs/resources/types/RcmSubmitProfessionalClaimResponse.d.ts +5 -0
- package/dist/cjs/resources/types/RcmValidateProfessionalClaimParams.d.ts +6 -0
- package/dist/cjs/resources/types/RcmValidateProfessionalClaimResponse.d.ts +21 -0
- package/dist/cjs/resources/types/Role.d.ts +16 -0
- package/dist/cjs/resources/types/RoleCreateParams.d.ts +12 -0
- package/dist/cjs/resources/types/RoleCreateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/RoleDeleteParams.d.ts +3 -0
- package/dist/cjs/resources/types/RoleGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/RoleGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/RoleListItem.d.ts +14 -0
- package/dist/cjs/resources/types/RoleListResponse.d.ts +5 -0
- package/dist/cjs/resources/types/RoleStub.d.ts +10 -0
- package/dist/cjs/resources/types/RoleUpdateParams.d.ts +17 -0
- package/dist/cjs/resources/types/RoleUpdateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/Secret.d.ts +10 -0
- package/dist/cjs/resources/types/SecretDeleteParams.d.ts +3 -0
- package/dist/cjs/resources/types/SecretGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/SecretGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/SecretListItem.d.ts +6 -0
- package/dist/cjs/resources/types/SecretListResponse.d.ts +5 -0
- package/dist/cjs/resources/types/SecretSetParams.d.ts +10 -0
- package/dist/cjs/resources/types/SecretSetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/TelemedCreateMeetingParams.d.ts +7 -0
- package/dist/cjs/resources/types/TelemedCreateMeetingResponse.d.ts +10 -0
- package/dist/cjs/resources/types/TelemedJoinMeetingParams.d.ts +4 -0
- package/dist/cjs/resources/types/TelemedJoinMeetingResponse.d.ts +27 -0
- package/dist/cjs/resources/types/TransactionalSMSSendParams.d.ts +10 -0
- package/dist/cjs/resources/types/TransactionalSMSSendResponse.d.ts +9 -0
- package/dist/cjs/resources/types/User.d.ts +36 -0
- package/dist/cjs/resources/types/UserDeleteParams.d.ts +3 -0
- package/dist/cjs/resources/types/UserGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/UserGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/UserInviteParams.d.ts +35 -0
- package/dist/cjs/resources/types/UserInviteResponse.d.ts +37 -0
- package/dist/cjs/resources/types/UserListItem.d.ts +15 -0
- package/dist/cjs/resources/types/UserListResponse.d.ts +5 -0
- package/dist/cjs/resources/types/UserListV2Params.d.ts +11 -0
- package/dist/cjs/resources/types/UserListV2Response.d.ts +16 -0
- package/dist/cjs/resources/types/UserMeResponse.d.ts +5 -0
- package/dist/cjs/resources/types/UserUpdateParams.d.ts +9 -0
- package/dist/cjs/resources/types/UserUpdateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/VersionGetResponse.d.ts +17 -0
- package/dist/cjs/resources/types/Z3CreateBucketParams.d.ts +3 -0
- package/dist/cjs/resources/types/Z3CreateBucketResponse.d.ts +10 -0
- package/dist/cjs/resources/types/Z3DeleteBucketParams.d.ts +3 -0
- package/dist/cjs/resources/types/Z3DeleteObjectParams.d.ts +8 -0
- package/dist/cjs/resources/types/Z3GetPresignedUrlParams.d.ts +9 -0
- package/dist/cjs/resources/types/Z3GetPresignedUrlResponse.d.ts +9 -0
- package/dist/cjs/resources/types/Z3ListBucketsResponse.d.ts +14 -0
- package/dist/cjs/resources/types/Z3ListObjectsParams.d.ts +4 -0
- package/dist/cjs/resources/types/Z3ListObjectsResponse.d.ts +13 -0
- package/dist/cjs/resources/types/ZambdaCreateParams.d.ts +12 -0
- package/dist/cjs/resources/types/ZambdaCreateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ZambdaDeleteParams.d.ts +3 -0
- package/dist/cjs/resources/types/ZambdaExecuteParams.d.ts +4 -0
- package/dist/cjs/resources/types/ZambdaExecutePublicParams.d.ts +4 -0
- package/dist/cjs/resources/types/ZambdaExecutePublicResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ZambdaExecuteResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ZambdaExecuteResult.d.ts +10 -0
- package/dist/cjs/resources/types/ZambdaFunction.d.ts +38 -0
- package/dist/cjs/resources/types/ZambdaGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/ZambdaGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ZambdaListResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ZambdaLogStreamGetParams.d.ts +8 -0
- package/dist/cjs/resources/types/ZambdaLogStreamGetResponse.d.ts +27 -0
- package/dist/cjs/resources/types/ZambdaLogStreamListParams.d.ts +4 -0
- package/dist/cjs/resources/types/ZambdaLogStreamListResponse.d.ts +46 -0
- package/dist/cjs/resources/types/ZambdaLogStreamSearchParams.d.ts +19 -0
- package/dist/cjs/resources/types/ZambdaLogStreamSearchResponse.d.ts +23 -0
- package/dist/cjs/resources/types/ZambdaS3UploadParams.d.ts +7 -0
- package/dist/cjs/resources/types/ZambdaS3UploadResponse.d.ts +9 -0
- package/dist/cjs/resources/types/ZambdaSchedule.d.ts +30 -0
- package/dist/cjs/resources/types/ZambdaUpdateParams.d.ts +17 -0
- package/dist/cjs/resources/types/ZambdaUpdateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/fhir.d.ts +46 -0
- package/dist/cjs/resources/types/index.d.ts +158 -0
- package/dist/cjs/tests/common.d.ts +2 -0
- package/dist/cjs/tests/setup/constants.d.ts +12 -0
- package/dist/cjs/tests/setup/global.d.ts +1 -0
- package/dist/cjs/tests/setup/per-test.d.ts +1 -0
- package/dist/esm/client/client.d.ts +49 -0
- package/dist/esm/client/client.js +251 -0
- package/dist/esm/client/client.js.map +1 -0
- package/dist/esm/config.d.ts +45 -0
- package/dist/esm/errors/index.d.ts +17 -0
- package/dist/esm/errors/index.js +38 -0
- package/dist/esm/errors/index.js.map +1 -0
- package/dist/esm/fhir/fhir-types.d.ts +9 -0
- package/dist/esm/fhir/index.d.ts +2 -0
- package/dist/esm/fhir/utils.d.ts +14 -0
- package/dist/esm/index.d.ts +16 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/index.min.js +2 -0
- package/dist/esm/index.min.js.map +1 -0
- package/dist/esm/node_modules/tslib/package.json +1 -0
- package/dist/esm/node_modules/tslib/tslib.es6.js +34 -0
- package/dist/esm/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/resources/classes/application.d.ts +62 -0
- package/dist/esm/resources/classes/application.js +67 -0
- package/dist/esm/resources/classes/application.js.map +1 -0
- package/dist/esm/resources/classes/charge.d.ts +30 -0
- package/dist/esm/resources/classes/charge.js +35 -0
- package/dist/esm/resources/classes/charge.js.map +1 -0
- package/dist/esm/resources/classes/conversation-ext.d.ts +10 -0
- package/dist/esm/resources/classes/conversation-ext.js +28 -0
- package/dist/esm/resources/classes/conversation-ext.js.map +1 -0
- package/dist/esm/resources/classes/conversation.d.ts +64 -0
- package/dist/esm/resources/classes/conversation.js +69 -0
- package/dist/esm/resources/classes/conversation.js.map +1 -0
- package/dist/esm/resources/classes/developer.d.ts +50 -0
- package/dist/esm/resources/classes/developer.js +55 -0
- package/dist/esm/resources/classes/developer.js.map +1 -0
- package/dist/esm/resources/classes/erx.d.ts +18 -0
- package/dist/esm/resources/classes/erx.js +23 -0
- package/dist/esm/resources/classes/erx.js.map +1 -0
- package/dist/esm/resources/classes/fhir-ext.d.ts +58 -0
- package/dist/esm/resources/classes/fhir-ext.js +130 -0
- package/dist/esm/resources/classes/fhir-ext.js.map +1 -0
- package/dist/esm/resources/classes/fhir.d.ts +21 -0
- package/dist/esm/resources/classes/fhir.js +27 -0
- package/dist/esm/resources/classes/fhir.js.map +1 -0
- package/dist/esm/resources/classes/index.d.ts +44 -0
- package/dist/esm/resources/classes/index.js +49 -0
- package/dist/esm/resources/classes/index.js.map +1 -0
- package/dist/esm/resources/classes/m2m.d.ts +57 -0
- package/dist/esm/resources/classes/m2m.js +62 -0
- package/dist/esm/resources/classes/m2m.js.map +1 -0
- package/dist/esm/resources/classes/messaging.d.ts +10 -0
- package/dist/esm/resources/classes/messaging.js +15 -0
- package/dist/esm/resources/classes/messaging.js.map +1 -0
- package/dist/esm/resources/classes/paymentMethod.d.ts +70 -0
- package/dist/esm/resources/classes/paymentMethod.js +75 -0
- package/dist/esm/resources/classes/paymentMethod.js.map +1 -0
- package/dist/esm/resources/classes/project.d.ts +20 -0
- package/dist/esm/resources/classes/project.js +25 -0
- package/dist/esm/resources/classes/project.js.map +1 -0
- package/dist/esm/resources/classes/rcm.d.ts +39 -0
- package/dist/esm/resources/classes/rcm.js +44 -0
- package/dist/esm/resources/classes/rcm.js.map +1 -0
- package/dist/esm/resources/classes/role.d.ts +42 -0
- package/dist/esm/resources/classes/role.js +47 -0
- package/dist/esm/resources/classes/role.js.map +1 -0
- package/dist/esm/resources/classes/secret.d.ts +34 -0
- package/dist/esm/resources/classes/secret.js +39 -0
- package/dist/esm/resources/classes/secret.js.map +1 -0
- package/dist/esm/resources/classes/telemed.d.ts +29 -0
- package/dist/esm/resources/classes/telemed.js +34 -0
- package/dist/esm/resources/classes/telemed.js.map +1 -0
- package/dist/esm/resources/classes/transactionalSMS.d.ts +22 -0
- package/dist/esm/resources/classes/transactionalSMS.js +27 -0
- package/dist/esm/resources/classes/transactionalSMS.js.map +1 -0
- package/dist/esm/resources/classes/user.d.ts +56 -0
- package/dist/esm/resources/classes/user.js +61 -0
- package/dist/esm/resources/classes/user.js.map +1 -0
- package/dist/esm/resources/classes/version.d.ts +10 -0
- package/dist/esm/resources/classes/version.js +15 -0
- package/dist/esm/resources/classes/version.js.map +1 -0
- package/dist/esm/resources/classes/z3-ext.d.ts +10 -0
- package/dist/esm/resources/classes/z3-ext.js +34 -0
- package/dist/esm/resources/classes/z3-ext.js.map +1 -0
- package/dist/esm/resources/classes/z3.d.ts +51 -0
- package/dist/esm/resources/classes/z3.js +56 -0
- package/dist/esm/resources/classes/z3.js.map +1 -0
- package/dist/esm/resources/classes/zambda-ext.d.ts +6 -0
- package/dist/esm/resources/classes/zambda-ext.js +14 -0
- package/dist/esm/resources/classes/zambda-ext.js.map +1 -0
- package/dist/esm/resources/classes/zambda.d.ts +63 -0
- package/dist/esm/resources/classes/zambda.js +68 -0
- package/dist/esm/resources/classes/zambda.js.map +1 -0
- package/dist/esm/resources/classes/zambdaLogStream.d.ts +27 -0
- package/dist/esm/resources/classes/zambdaLogStream.js +32 -0
- package/dist/esm/resources/classes/zambdaLogStream.js.map +1 -0
- package/dist/esm/resources/index.d.ts +1 -0
- package/dist/esm/resources/types/AccessPolicy.d.ts +7 -0
- package/dist/esm/resources/types/Application.d.ts +59 -0
- package/dist/esm/resources/types/ApplicationCreateParams.d.ts +59 -0
- package/dist/esm/resources/types/ApplicationCreateResponse.d.ts +5 -0
- package/dist/esm/resources/types/ApplicationDeleteParams.d.ts +3 -0
- package/dist/esm/resources/types/ApplicationGetParams.d.ts +3 -0
- package/dist/esm/resources/types/ApplicationGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/ApplicationListItem.d.ts +15 -0
- package/dist/esm/resources/types/ApplicationListResponse.d.ts +5 -0
- package/dist/esm/resources/types/ApplicationRevokeAccessTokenParams.d.ts +4 -0
- package/dist/esm/resources/types/ApplicationRevokeAccessTokenResponse.d.ts +6 -0
- package/dist/esm/resources/types/ApplicationRevokeRefreshTokenParams.d.ts +4 -0
- package/dist/esm/resources/types/ApplicationRevokeRefreshTokenResponse.d.ts +6 -0
- package/dist/esm/resources/types/ApplicationRotateSecretParams.d.ts +3 -0
- package/dist/esm/resources/types/ApplicationRotateSecretResponse.d.ts +6 -0
- package/dist/esm/resources/types/ApplicationUpdateParams.d.ts +59 -0
- package/dist/esm/resources/types/ApplicationUpdateResponse.d.ts +5 -0
- package/dist/esm/resources/types/Card.d.ts +8 -0
- package/dist/esm/resources/types/CardIdentifier.d.ts +7 -0
- package/dist/esm/resources/types/ChargeDetails.d.ts +8 -0
- package/dist/esm/resources/types/ChargeIssueParams.d.ts +6 -0
- package/dist/esm/resources/types/ChargeStatusParams.d.ts +6 -0
- package/dist/esm/resources/types/ChargeStatusResponse.d.ts +5 -0
- package/dist/esm/resources/types/ClaimAddress.d.ts +7 -0
- package/dist/esm/resources/types/ClaimCMS1500.d.ts +100 -0
- package/dist/esm/resources/types/ClaimDate.d.ts +5 -0
- package/dist/esm/resources/types/ClaimDatePeriod.d.ts +5 -0
- package/dist/esm/resources/types/ClaimDateWithQualifier.d.ts +5 -0
- package/dist/esm/resources/types/ClaimId.d.ts +4 -0
- package/dist/esm/resources/types/ClaimName.d.ts +6 -0
- package/dist/esm/resources/types/ConversationAddParticipantParams.d.ts +21 -0
- package/dist/esm/resources/types/ConversationCreateParams.d.ts +7 -0
- package/dist/esm/resources/types/ConversationCreateResponse.d.ts +10 -0
- package/dist/esm/resources/types/ConversationGetTokenResponse.d.ts +9 -0
- package/dist/esm/resources/types/ConversationMessageParams.d.ts +13 -0
- package/dist/esm/resources/types/ConversationRemoveParticipantParams.d.ts +11 -0
- package/dist/esm/resources/types/Developer.d.ts +20 -0
- package/dist/esm/resources/types/DeveloperDeleteParams.d.ts +3 -0
- package/dist/esm/resources/types/DeveloperGetParams.d.ts +3 -0
- package/dist/esm/resources/types/DeveloperGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/DeveloperInviteParams.d.ts +17 -0
- package/dist/esm/resources/types/DeveloperInviteResponse.d.ts +23 -0
- package/dist/esm/resources/types/DeveloperListItem.d.ts +7 -0
- package/dist/esm/resources/types/DeveloperListResponse.d.ts +5 -0
- package/dist/esm/resources/types/DeveloperListV2Params.d.ts +11 -0
- package/dist/esm/resources/types/DeveloperListV2Response.d.ts +29 -0
- package/dist/esm/resources/types/DeveloperUpdateParams.d.ts +9 -0
- package/dist/esm/resources/types/DeveloperUpdateResponse.d.ts +5 -0
- package/dist/esm/resources/types/ErxAllergySearchParams.d.ts +3 -0
- package/dist/esm/resources/types/ErxAllergySearchResponse.d.ts +19 -0
- package/dist/esm/resources/types/ErxMedicationSearchParams.d.ts +6 -0
- package/dist/esm/resources/types/ErxMedicationSearchResponse.d.ts +38 -0
- package/dist/esm/resources/types/ErxSyncPatientParams.d.ts +3 -0
- package/dist/esm/resources/types/ErxSyncPatientResponse.d.ts +9 -0
- package/dist/esm/resources/types/M2m.d.ts +30 -0
- package/dist/esm/resources/types/M2mCreateParams.d.ts +20 -0
- package/dist/esm/resources/types/M2mCreateResponse.d.ts +5 -0
- package/dist/esm/resources/types/M2mDeleteParams.d.ts +3 -0
- package/dist/esm/resources/types/M2mGetParams.d.ts +3 -0
- package/dist/esm/resources/types/M2mGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/M2mListItem.d.ts +25 -0
- package/dist/esm/resources/types/M2mListResponse.d.ts +5 -0
- package/dist/esm/resources/types/M2mListV2Params.d.ts +10 -0
- package/dist/esm/resources/types/M2mListV2Response.d.ts +16 -0
- package/dist/esm/resources/types/M2mRotateSecretParams.d.ts +3 -0
- package/dist/esm/resources/types/M2mRotateSecretResponse.d.ts +6 -0
- package/dist/esm/resources/types/M2mUpdateParams.d.ts +21 -0
- package/dist/esm/resources/types/M2mUpdateResponse.d.ts +5 -0
- package/dist/esm/resources/types/MessagingGetMessagingConfigResponse.d.ts +8 -0
- package/dist/esm/resources/types/MessagingServiceInfo.d.ts +14 -0
- package/dist/esm/resources/types/PaymentMethodDeleteParams.d.ts +16 -0
- package/dist/esm/resources/types/PaymentMethodListParams.d.ts +12 -0
- package/dist/esm/resources/types/PaymentMethodListResponse.d.ts +8 -0
- package/dist/esm/resources/types/PaymentMethodSetDefaultParams.d.ts +16 -0
- package/dist/esm/resources/types/PaymentMethodSetUpParams.d.ts +12 -0
- package/dist/esm/resources/types/PaymentMethodSetUpResponse.d.ts +9 -0
- package/dist/esm/resources/types/Project.d.ts +17 -0
- package/dist/esm/resources/types/ProjectGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/ProjectUpdateParams.d.ts +16 -0
- package/dist/esm/resources/types/ProjectUpdateResponse.d.ts +5 -0
- package/dist/esm/resources/types/RcmEligibilityCheckParams.d.ts +6 -0
- package/dist/esm/resources/types/RcmEligibilityCheckResponse.d.ts +5 -0
- package/dist/esm/resources/types/RcmSubmitProfessionalClaimParams.d.ts +10 -0
- package/dist/esm/resources/types/RcmSubmitProfessionalClaimResponse.d.ts +5 -0
- package/dist/esm/resources/types/RcmValidateProfessionalClaimParams.d.ts +6 -0
- package/dist/esm/resources/types/RcmValidateProfessionalClaimResponse.d.ts +21 -0
- package/dist/esm/resources/types/Role.d.ts +16 -0
- package/dist/esm/resources/types/RoleCreateParams.d.ts +12 -0
- package/dist/esm/resources/types/RoleCreateResponse.d.ts +5 -0
- package/dist/esm/resources/types/RoleDeleteParams.d.ts +3 -0
- package/dist/esm/resources/types/RoleGetParams.d.ts +3 -0
- package/dist/esm/resources/types/RoleGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/RoleListItem.d.ts +14 -0
- package/dist/esm/resources/types/RoleListResponse.d.ts +5 -0
- package/dist/esm/resources/types/RoleStub.d.ts +10 -0
- package/dist/esm/resources/types/RoleUpdateParams.d.ts +17 -0
- package/dist/esm/resources/types/RoleUpdateResponse.d.ts +5 -0
- package/dist/esm/resources/types/Secret.d.ts +10 -0
- package/dist/esm/resources/types/SecretDeleteParams.d.ts +3 -0
- package/dist/esm/resources/types/SecretGetParams.d.ts +3 -0
- package/dist/esm/resources/types/SecretGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/SecretListItem.d.ts +6 -0
- package/dist/esm/resources/types/SecretListResponse.d.ts +5 -0
- package/dist/esm/resources/types/SecretSetParams.d.ts +10 -0
- package/dist/esm/resources/types/SecretSetResponse.d.ts +5 -0
- package/dist/esm/resources/types/TelemedCreateMeetingParams.d.ts +7 -0
- package/dist/esm/resources/types/TelemedCreateMeetingResponse.d.ts +10 -0
- package/dist/esm/resources/types/TelemedJoinMeetingParams.d.ts +4 -0
- package/dist/esm/resources/types/TelemedJoinMeetingResponse.d.ts +27 -0
- package/dist/esm/resources/types/TransactionalSMSSendParams.d.ts +10 -0
- package/dist/esm/resources/types/TransactionalSMSSendResponse.d.ts +9 -0
- package/dist/esm/resources/types/User.d.ts +36 -0
- package/dist/esm/resources/types/UserDeleteParams.d.ts +3 -0
- package/dist/esm/resources/types/UserGetParams.d.ts +3 -0
- package/dist/esm/resources/types/UserGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/UserInviteParams.d.ts +35 -0
- package/dist/esm/resources/types/UserInviteResponse.d.ts +37 -0
- package/dist/esm/resources/types/UserListItem.d.ts +15 -0
- package/dist/esm/resources/types/UserListResponse.d.ts +5 -0
- package/dist/esm/resources/types/UserListV2Params.d.ts +11 -0
- package/dist/esm/resources/types/UserListV2Response.d.ts +16 -0
- package/dist/esm/resources/types/UserMeResponse.d.ts +5 -0
- package/dist/esm/resources/types/UserUpdateParams.d.ts +9 -0
- package/dist/esm/resources/types/UserUpdateResponse.d.ts +5 -0
- package/dist/esm/resources/types/VersionGetResponse.d.ts +17 -0
- package/dist/esm/resources/types/Z3CreateBucketParams.d.ts +3 -0
- package/dist/esm/resources/types/Z3CreateBucketResponse.d.ts +10 -0
- package/dist/esm/resources/types/Z3DeleteBucketParams.d.ts +3 -0
- package/dist/esm/resources/types/Z3DeleteObjectParams.d.ts +8 -0
- package/dist/esm/resources/types/Z3GetPresignedUrlParams.d.ts +9 -0
- package/dist/esm/resources/types/Z3GetPresignedUrlResponse.d.ts +9 -0
- package/dist/esm/resources/types/Z3ListBucketsResponse.d.ts +14 -0
- package/dist/esm/resources/types/Z3ListObjectsParams.d.ts +4 -0
- package/dist/esm/resources/types/Z3ListObjectsResponse.d.ts +13 -0
- package/dist/esm/resources/types/ZambdaCreateParams.d.ts +12 -0
- package/dist/esm/resources/types/ZambdaCreateResponse.d.ts +5 -0
- package/dist/esm/resources/types/ZambdaDeleteParams.d.ts +3 -0
- package/dist/esm/resources/types/ZambdaExecuteParams.d.ts +4 -0
- package/dist/esm/resources/types/ZambdaExecutePublicParams.d.ts +4 -0
- package/dist/esm/resources/types/ZambdaExecutePublicResponse.d.ts +5 -0
- package/dist/esm/resources/types/ZambdaExecuteResponse.d.ts +5 -0
- package/dist/esm/resources/types/ZambdaExecuteResult.d.ts +10 -0
- package/dist/esm/resources/types/ZambdaFunction.d.ts +38 -0
- package/dist/esm/resources/types/ZambdaGetParams.d.ts +3 -0
- package/dist/esm/resources/types/ZambdaGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/ZambdaListResponse.d.ts +5 -0
- package/dist/esm/resources/types/ZambdaLogStreamGetParams.d.ts +8 -0
- package/dist/esm/resources/types/ZambdaLogStreamGetResponse.d.ts +27 -0
- package/dist/esm/resources/types/ZambdaLogStreamListParams.d.ts +4 -0
- package/dist/esm/resources/types/ZambdaLogStreamListResponse.d.ts +46 -0
- package/dist/esm/resources/types/ZambdaLogStreamSearchParams.d.ts +19 -0
- package/dist/esm/resources/types/ZambdaLogStreamSearchResponse.d.ts +23 -0
- package/dist/esm/resources/types/ZambdaS3UploadParams.d.ts +7 -0
- package/dist/esm/resources/types/ZambdaS3UploadResponse.d.ts +9 -0
- package/dist/esm/resources/types/ZambdaSchedule.d.ts +30 -0
- package/dist/esm/resources/types/ZambdaUpdateParams.d.ts +17 -0
- package/dist/esm/resources/types/ZambdaUpdateResponse.d.ts +5 -0
- package/dist/esm/resources/types/fhir.d.ts +46 -0
- package/dist/esm/resources/types/index.d.ts +158 -0
- package/dist/esm/tests/common.d.ts +2 -0
- package/dist/esm/tests/setup/constants.d.ts +12 -0
- package/dist/esm/tests/setup/global.d.ts +1 -0
- package/dist/esm/tests/setup/per-test.d.ts +1 -0
- package/package.json +59 -0
- package/rollup.config-cjs.mjs +49 -0
- package/rollup.config-mjs.mjs +49 -0
- package/src/client/client.ts +307 -0
- package/src/config.ts +56 -0
- package/src/errors/index.ts +41 -0
- package/src/fhir/fhir-types.ts +15 -0
- package/src/fhir/index.ts +2 -0
- package/src/fhir/utils.ts +68 -0
- package/src/index.cts +22 -0
- package/src/index.ts +27 -0
- package/src/resources/classes/application.ts +100 -0
- package/src/resources/classes/charge.ts +37 -0
- package/src/resources/classes/conversation-ext.ts +31 -0
- package/src/resources/classes/conversation.ts +82 -0
- package/src/resources/classes/developer.ts +72 -0
- package/src/resources/classes/erx.ts +36 -0
- package/src/resources/classes/fhir-ext.ts +214 -0
- package/src/resources/classes/fhir.ts +26 -0
- package/src/resources/classes/index.ts +68 -0
- package/src/resources/classes/m2m.ts +82 -0
- package/src/resources/classes/messaging.ts +16 -0
- package/src/resources/classes/paymentMethod.ts +87 -0
- package/src/resources/classes/project.ts +26 -0
- package/src/resources/classes/rcm.ts +63 -0
- package/src/resources/classes/role.ts +61 -0
- package/src/resources/classes/secret.ts +50 -0
- package/src/resources/classes/telemed.ts +47 -0
- package/src/resources/classes/transactionalSMS.ts +28 -0
- package/src/resources/classes/user.ts +79 -0
- package/src/resources/classes/version.ts +15 -0
- package/src/resources/classes/z3-ext.ts +54 -0
- package/src/resources/classes/z3.ts +74 -0
- package/src/resources/classes/zambda-ext.ts +20 -0
- package/src/resources/classes/zambda.ts +93 -0
- package/src/resources/classes/zambdaLogStream.ts +45 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/types/AccessPolicy.ts +9 -0
- package/src/resources/types/Application.ts +61 -0
- package/src/resources/types/ApplicationCreateParams.ts +61 -0
- package/src/resources/types/ApplicationCreateResponse.ts +7 -0
- package/src/resources/types/ApplicationDeleteParams.ts +5 -0
- package/src/resources/types/ApplicationGetParams.ts +5 -0
- package/src/resources/types/ApplicationGetResponse.ts +7 -0
- package/src/resources/types/ApplicationListItem.ts +17 -0
- package/src/resources/types/ApplicationListResponse.ts +7 -0
- package/src/resources/types/ApplicationRevokeAccessTokenParams.ts +6 -0
- package/src/resources/types/ApplicationRevokeAccessTokenResponse.ts +8 -0
- package/src/resources/types/ApplicationRevokeRefreshTokenParams.ts +6 -0
- package/src/resources/types/ApplicationRevokeRefreshTokenResponse.ts +8 -0
- package/src/resources/types/ApplicationRotateSecretParams.ts +5 -0
- package/src/resources/types/ApplicationRotateSecretResponse.ts +8 -0
- package/src/resources/types/ApplicationUpdateParams.ts +61 -0
- package/src/resources/types/ApplicationUpdateResponse.ts +7 -0
- package/src/resources/types/Card.ts +10 -0
- package/src/resources/types/CardIdentifier.ts +9 -0
- package/src/resources/types/ChargeDetails.ts +11 -0
- package/src/resources/types/ChargeIssueParams.ts +8 -0
- package/src/resources/types/ChargeStatusParams.ts +8 -0
- package/src/resources/types/ChargeStatusResponse.ts +7 -0
- package/src/resources/types/ClaimAddress.ts +9 -0
- package/src/resources/types/ClaimCMS1500.ts +103 -0
- package/src/resources/types/ClaimDate.ts +7 -0
- package/src/resources/types/ClaimDatePeriod.ts +8 -0
- package/src/resources/types/ClaimDateWithQualifier.ts +8 -0
- package/src/resources/types/ClaimId.ts +6 -0
- package/src/resources/types/ClaimName.ts +8 -0
- package/src/resources/types/ConversationAddParticipantParams.ts +23 -0
- package/src/resources/types/ConversationCreateParams.ts +10 -0
- package/src/resources/types/ConversationCreateResponse.ts +12 -0
- package/src/resources/types/ConversationGetTokenResponse.ts +11 -0
- package/src/resources/types/ConversationMessageParams.ts +15 -0
- package/src/resources/types/ConversationRemoveParticipantParams.ts +13 -0
- package/src/resources/types/Developer.ts +23 -0
- package/src/resources/types/DeveloperDeleteParams.ts +5 -0
- package/src/resources/types/DeveloperGetParams.ts +5 -0
- package/src/resources/types/DeveloperGetResponse.ts +7 -0
- package/src/resources/types/DeveloperInviteParams.ts +20 -0
- package/src/resources/types/DeveloperInviteResponse.ts +25 -0
- package/src/resources/types/DeveloperListItem.ts +9 -0
- package/src/resources/types/DeveloperListResponse.ts +7 -0
- package/src/resources/types/DeveloperListV2Params.ts +13 -0
- package/src/resources/types/DeveloperListV2Response.ts +31 -0
- package/src/resources/types/DeveloperUpdateParams.ts +12 -0
- package/src/resources/types/DeveloperUpdateResponse.ts +7 -0
- package/src/resources/types/ErxAllergySearchParams.ts +5 -0
- package/src/resources/types/ErxAllergySearchResponse.ts +21 -0
- package/src/resources/types/ErxMedicationSearchParams.ts +8 -0
- package/src/resources/types/ErxMedicationSearchResponse.ts +40 -0
- package/src/resources/types/ErxSyncPatientParams.ts +5 -0
- package/src/resources/types/ErxSyncPatientResponse.ts +11 -0
- package/src/resources/types/M2m.ts +33 -0
- package/src/resources/types/M2mCreateParams.ts +23 -0
- package/src/resources/types/M2mCreateResponse.ts +7 -0
- package/src/resources/types/M2mDeleteParams.ts +5 -0
- package/src/resources/types/M2mGetParams.ts +5 -0
- package/src/resources/types/M2mGetResponse.ts +7 -0
- package/src/resources/types/M2mListItem.ts +28 -0
- package/src/resources/types/M2mListResponse.ts +7 -0
- package/src/resources/types/M2mListV2Params.ts +12 -0
- package/src/resources/types/M2mListV2Response.ts +18 -0
- package/src/resources/types/M2mRotateSecretParams.ts +5 -0
- package/src/resources/types/M2mRotateSecretResponse.ts +8 -0
- package/src/resources/types/M2mUpdateParams.ts +24 -0
- package/src/resources/types/M2mUpdateResponse.ts +7 -0
- package/src/resources/types/MessagingGetMessagingConfigResponse.ts +10 -0
- package/src/resources/types/MessagingServiceInfo.ts +16 -0
- package/src/resources/types/PaymentMethodDeleteParams.ts +18 -0
- package/src/resources/types/PaymentMethodListParams.ts +14 -0
- package/src/resources/types/PaymentMethodListResponse.ts +10 -0
- package/src/resources/types/PaymentMethodSetDefaultParams.ts +18 -0
- package/src/resources/types/PaymentMethodSetUpParams.ts +14 -0
- package/src/resources/types/PaymentMethodSetUpResponse.ts +11 -0
- package/src/resources/types/Project.ts +20 -0
- package/src/resources/types/ProjectGetResponse.ts +7 -0
- package/src/resources/types/ProjectUpdateParams.ts +18 -0
- package/src/resources/types/ProjectUpdateResponse.ts +7 -0
- package/src/resources/types/RcmEligibilityCheckParams.ts +8 -0
- package/src/resources/types/RcmEligibilityCheckResponse.ts +7 -0
- package/src/resources/types/RcmSubmitProfessionalClaimParams.ts +13 -0
- package/src/resources/types/RcmSubmitProfessionalClaimResponse.ts +7 -0
- package/src/resources/types/RcmValidateProfessionalClaimParams.ts +9 -0
- package/src/resources/types/RcmValidateProfessionalClaimResponse.ts +23 -0
- package/src/resources/types/Role.ts +19 -0
- package/src/resources/types/RoleCreateParams.ts +15 -0
- package/src/resources/types/RoleCreateResponse.ts +7 -0
- package/src/resources/types/RoleDeleteParams.ts +5 -0
- package/src/resources/types/RoleGetParams.ts +5 -0
- package/src/resources/types/RoleGetResponse.ts +7 -0
- package/src/resources/types/RoleListItem.ts +16 -0
- package/src/resources/types/RoleListResponse.ts +7 -0
- package/src/resources/types/RoleStub.ts +12 -0
- package/src/resources/types/RoleUpdateParams.ts +20 -0
- package/src/resources/types/RoleUpdateResponse.ts +7 -0
- package/src/resources/types/Secret.ts +12 -0
- package/src/resources/types/SecretDeleteParams.ts +5 -0
- package/src/resources/types/SecretGetParams.ts +5 -0
- package/src/resources/types/SecretGetResponse.ts +7 -0
- package/src/resources/types/SecretListItem.ts +8 -0
- package/src/resources/types/SecretListResponse.ts +7 -0
- package/src/resources/types/SecretSetParams.ts +12 -0
- package/src/resources/types/SecretSetResponse.ts +7 -0
- package/src/resources/types/TelemedCreateMeetingParams.ts +10 -0
- package/src/resources/types/TelemedCreateMeetingResponse.ts +12 -0
- package/src/resources/types/TelemedJoinMeetingParams.ts +6 -0
- package/src/resources/types/TelemedJoinMeetingResponse.ts +29 -0
- package/src/resources/types/TransactionalSMSSendParams.ts +12 -0
- package/src/resources/types/TransactionalSMSSendResponse.ts +11 -0
- package/src/resources/types/User.ts +39 -0
- package/src/resources/types/UserDeleteParams.ts +5 -0
- package/src/resources/types/UserGetParams.ts +5 -0
- package/src/resources/types/UserGetResponse.ts +7 -0
- package/src/resources/types/UserInviteParams.ts +38 -0
- package/src/resources/types/UserInviteResponse.ts +39 -0
- package/src/resources/types/UserListItem.ts +17 -0
- package/src/resources/types/UserListResponse.ts +7 -0
- package/src/resources/types/UserListV2Params.ts +13 -0
- package/src/resources/types/UserListV2Response.ts +18 -0
- package/src/resources/types/UserMeResponse.ts +7 -0
- package/src/resources/types/UserUpdateParams.ts +12 -0
- package/src/resources/types/UserUpdateResponse.ts +7 -0
- package/src/resources/types/VersionGetResponse.ts +19 -0
- package/src/resources/types/Z3CreateBucketParams.ts +5 -0
- package/src/resources/types/Z3CreateBucketResponse.ts +12 -0
- package/src/resources/types/Z3DeleteBucketParams.ts +5 -0
- package/src/resources/types/Z3DeleteObjectParams.ts +10 -0
- package/src/resources/types/Z3GetPresignedUrlParams.ts +11 -0
- package/src/resources/types/Z3GetPresignedUrlResponse.ts +11 -0
- package/src/resources/types/Z3ListBucketsResponse.ts +16 -0
- package/src/resources/types/Z3ListObjectsParams.ts +6 -0
- package/src/resources/types/Z3ListObjectsResponse.ts +15 -0
- package/src/resources/types/ZambdaCreateParams.ts +15 -0
- package/src/resources/types/ZambdaCreateResponse.ts +7 -0
- package/src/resources/types/ZambdaDeleteParams.ts +5 -0
- package/src/resources/types/ZambdaExecuteParams.ts +6 -0
- package/src/resources/types/ZambdaExecutePublicParams.ts +6 -0
- package/src/resources/types/ZambdaExecutePublicResponse.ts +7 -0
- package/src/resources/types/ZambdaExecuteResponse.ts +7 -0
- package/src/resources/types/ZambdaExecuteResult.ts +12 -0
- package/src/resources/types/ZambdaFunction.ts +41 -0
- package/src/resources/types/ZambdaGetParams.ts +5 -0
- package/src/resources/types/ZambdaGetResponse.ts +7 -0
- package/src/resources/types/ZambdaListResponse.ts +7 -0
- package/src/resources/types/ZambdaLogStreamGetParams.ts +10 -0
- package/src/resources/types/ZambdaLogStreamGetResponse.ts +29 -0
- package/src/resources/types/ZambdaLogStreamListParams.ts +6 -0
- package/src/resources/types/ZambdaLogStreamListResponse.ts +48 -0
- package/src/resources/types/ZambdaLogStreamSearchParams.ts +21 -0
- package/src/resources/types/ZambdaLogStreamSearchResponse.ts +25 -0
- package/src/resources/types/ZambdaS3UploadParams.ts +9 -0
- package/src/resources/types/ZambdaS3UploadResponse.ts +11 -0
- package/src/resources/types/ZambdaSchedule.ts +32 -0
- package/src/resources/types/ZambdaUpdateParams.ts +20 -0
- package/src/resources/types/ZambdaUpdateResponse.ts +7 -0
- package/src/resources/types/fhir.ts +75 -0
- package/src/resources/types/index.ts +160 -0
- package/turbo.json +13 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { SDKResource } from '../../client/client.js';
|
|
2
|
+
|
|
3
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
4
|
+
class Charge extends SDKResource {
|
|
5
|
+
constructor(config) {
|
|
6
|
+
super(config);
|
|
7
|
+
/**
|
|
8
|
+
* Charge patient's default payment method for a specified encounter or charge item.
|
|
9
|
+
*
|
|
10
|
+
* Access Policy Requirements:
|
|
11
|
+
* Action: `Payment:Issue`
|
|
12
|
+
* Access Policy Resource: `Payment:Charge`
|
|
13
|
+
* Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
14
|
+
* Access Policy Resource: `FHIR:ChargeItem:*,`FHIR:PaymentReconciliation:*`
|
|
15
|
+
* Action: `FHIR:Read`
|
|
16
|
+
* Access Policy Resources: `FHIR:Patient:*,FHIR:Encounter:*,FHIR:Coverage:*`
|
|
17
|
+
*/
|
|
18
|
+
this.issue = (params, request) => this.request('/payment/charge/issue', 'post')(params, request);
|
|
19
|
+
/**
|
|
20
|
+
* Retrieve charge status for a specified encounter or charge item.
|
|
21
|
+
*
|
|
22
|
+
* Access Policy Requirements:
|
|
23
|
+
* Action: `Payment:Status`
|
|
24
|
+
* Access Policy Resource: `Payment:Charge`
|
|
25
|
+
* Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
26
|
+
* Access Policy Resource: `FHIR:ChargeItem:*,`FHIR:PaymentReconciliation:*`
|
|
27
|
+
* Action: `FHIR:Read`
|
|
28
|
+
* Access Policy Resources: `FHIR:Patient:*,FHIR:Encounter:*,FHIR:Coverage:*`
|
|
29
|
+
*/
|
|
30
|
+
this.status = (params, request) => this.request('/payment/charge/status', 'post')(params, request);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { Charge };
|
|
35
|
+
//# sourceMappingURL=charge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"charge.js","sources":["../../../../src/resources/classes/charge.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { ChargeIssueParams, ChargeStatusParams, ChargeStatusResponse, OystehrClientRequest } from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Charge extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n /**\n * Charge patient's default payment method for a specified encounter or charge item.\n *\n * Access Policy Requirements:\n * Action: `Payment:Issue`\n * Access Policy Resource: `Payment:Charge`\n * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:ChargeItem:*,`FHIR:PaymentReconciliation:*`\n * Action: `FHIR:Read`\n * Access Policy Resources: `FHIR:Patient:*,FHIR:Encounter:*,FHIR:Coverage:*`\n */\n issue = (params: ChargeIssueParams, request?: OystehrClientRequest): Promise<void> =>\n this.request('/payment/charge/issue', 'post')(params, request);\n /**\n * Retrieve charge status for a specified encounter or charge item.\n *\n * Access Policy Requirements:\n * Action: `Payment:Status`\n * Access Policy Resource: `Payment:Charge`\n * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:ChargeItem:*,`FHIR:PaymentReconciliation:*`\n * Action: `FHIR:Read`\n * Access Policy Resources: `FHIR:Patient:*,FHIR:Encounter:*,FHIR:Coverage:*`\n */\n status = (params: ChargeStatusParams, request?: OystehrClientRequest): Promise<ChargeStatusResponse> =>\n this.request('/payment/charge/status', 'post')(params, request);\n}\n"],"names":[],"mappings":";;AAAA;AAMM,MAAO,MAAO,SAAQ,WAAW,CAAA;AACrC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;AAEhB;;;;;;;;;;AAUG;QACH,IAAK,CAAA,KAAA,GAAG,CAAC,MAAyB,EAAE,OAA8B,KAChE,IAAI,CAAC,OAAO,CAAC,uBAAuB,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACjE;;;;;;;;;;AAUG;QACH,IAAM,CAAA,MAAA,GAAG,CAAC,MAA0B,EAAE,OAA8B,KAClE,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KA1BjE;AA2BF;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Encounter as EncounterR4B } from 'fhir/r4b';
|
|
2
|
+
import { Encounter as EncounterR5 } from 'fhir/r5';
|
|
3
|
+
export declare const ENCOUNTER_VS_EXTENSION_URL = "https://extensions.fhir.zapehr.com/encounter-virtual-service-pre-release";
|
|
4
|
+
export declare const ENCOUNTER_VS_EXTENSION_RELATIVE_URL = "addressString";
|
|
5
|
+
/**
|
|
6
|
+
* Helper function to get a conversationId from an encounter created as an Oystehr Conversation
|
|
7
|
+
* @param encounter well-formed FHIR R4B or R5 Encounter
|
|
8
|
+
* @returns conversationId
|
|
9
|
+
*/
|
|
10
|
+
export declare function getConversationIdFromEncounter(encounter: EncounterR4B | EncounterR5): string | undefined;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const ENCOUNTER_VS_EXTENSION_URL = 'https://extensions.fhir.zapehr.com/encounter-virtual-service-pre-release';
|
|
2
|
+
const ENCOUNTER_VS_EXTENSION_RELATIVE_URL = 'addressString';
|
|
3
|
+
const ENCOUNTER_VS_CODING_SYSTEM = 'https://fhir.zapehr.com/virtual-service-type';
|
|
4
|
+
function isR5Encounter(encounter) {
|
|
5
|
+
return Object.hasOwn(encounter, 'virtualService');
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Helper function to get a conversationId from an encounter created as an Oystehr Conversation
|
|
9
|
+
* @param encounter well-formed FHIR R4B or R5 Encounter
|
|
10
|
+
* @returns conversationId
|
|
11
|
+
*/
|
|
12
|
+
function getConversationIdFromEncounter(encounter) {
|
|
13
|
+
var _a, _b, _c;
|
|
14
|
+
if (isR5Encounter(encounter)) {
|
|
15
|
+
const virtualService = (_a = encounter.virtualService) === null || _a === void 0 ? void 0 : _a.find((vs) => { var _a; return ((_a = vs.channelType) === null || _a === void 0 ? void 0 : _a.system) === ENCOUNTER_VS_CODING_SYSTEM; });
|
|
16
|
+
return virtualService === null || virtualService === void 0 ? void 0 : virtualService.addressString;
|
|
17
|
+
}
|
|
18
|
+
if (!encounter.extension)
|
|
19
|
+
return;
|
|
20
|
+
const virtualServiceExtension = encounter.extension.find((extension) => extension.url === ENCOUNTER_VS_EXTENSION_URL);
|
|
21
|
+
if (!(virtualServiceExtension === null || virtualServiceExtension === void 0 ? void 0 : virtualServiceExtension.extension))
|
|
22
|
+
return;
|
|
23
|
+
const conversationId = (_c = (_b = virtualServiceExtension.extension) === null || _b === void 0 ? void 0 : _b.find((extension) => extension.url === ENCOUNTER_VS_EXTENSION_RELATIVE_URL)) === null || _c === void 0 ? void 0 : _c.valueString;
|
|
24
|
+
return conversationId;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { ENCOUNTER_VS_EXTENSION_RELATIVE_URL, ENCOUNTER_VS_EXTENSION_URL, getConversationIdFromEncounter };
|
|
28
|
+
//# sourceMappingURL=conversation-ext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-ext.js","sources":["../../../../src/resources/classes/conversation-ext.ts"],"sourcesContent":["import { Encounter as EncounterR4B } from 'fhir/r4b';\nimport { Encounter as EncounterR5 } from 'fhir/r5';\n\nexport const ENCOUNTER_VS_EXTENSION_URL = 'https://extensions.fhir.zapehr.com/encounter-virtual-service-pre-release';\nexport const ENCOUNTER_VS_EXTENSION_RELATIVE_URL = 'addressString';\nconst ENCOUNTER_VS_CODING_SYSTEM = 'https://fhir.zapehr.com/virtual-service-type';\n\nfunction isR5Encounter(encounter: EncounterR4B | EncounterR5): encounter is EncounterR5 {\n return Object.hasOwn(encounter as EncounterR5, 'virtualService');\n}\n\n/**\n * Helper function to get a conversationId from an encounter created as an Oystehr Conversation\n * @param encounter well-formed FHIR R4B or R5 Encounter\n * @returns conversationId\n */\nexport function getConversationIdFromEncounter(encounter: EncounterR4B | EncounterR5): string | undefined {\n if (isR5Encounter(encounter)) {\n const virtualService = encounter.virtualService?.find(\n (vs) => vs.channelType?.system === ENCOUNTER_VS_CODING_SYSTEM\n );\n return virtualService?.addressString;\n }\n if (!encounter.extension) return;\n const virtualServiceExtension = encounter.extension.find((extension) => extension.url === ENCOUNTER_VS_EXTENSION_URL);\n if (!virtualServiceExtension?.extension) return;\n const conversationId = virtualServiceExtension.extension?.find(\n (extension) => extension.url === ENCOUNTER_VS_EXTENSION_RELATIVE_URL\n )?.valueString;\n return conversationId;\n}\n"],"names":[],"mappings":"AAGO,MAAM,0BAA0B,GAAG,2EAA2E;AAC9G,MAAM,mCAAmC,GAAG,gBAAgB;AACnE,MAAM,0BAA0B,GAAG,8CAA8C,CAAC;AAElF,SAAS,aAAa,CAAC,SAAqC,EAAA;IAC1D,OAAO,MAAM,CAAC,MAAM,CAAC,SAAwB,EAAE,gBAAgB,CAAC,CAAC;AACnE,CAAC;AAED;;;;AAIG;AACG,SAAU,8BAA8B,CAAC,SAAqC,EAAA;;AAClF,IAAA,IAAI,aAAa,CAAC,SAAS,CAAC,EAAE;QAC5B,MAAM,cAAc,GAAG,CAAA,EAAA,GAAA,SAAS,CAAC,cAAc,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAE,IAAI,CACnD,CAAC,EAAE,KAAK,EAAA,IAAA,EAAA,CAAA,CAAA,OAAA,CAAA,CAAA,EAAA,GAAA,EAAE,CAAC,WAAW,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAE,MAAM,MAAK,0BAA0B,CAAA,EAAA,CAC9D,CAAC;AACF,QAAA,OAAO,cAAc,KAAd,IAAA,IAAA,cAAc,uBAAd,cAAc,CAAE,aAAa,CAAC;AACtC,KAAA;IACD,IAAI,CAAC,SAAS,CAAC,SAAS;QAAE,OAAO;AACjC,IAAA,MAAM,uBAAuB,GAAG,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,SAAS,KAAK,SAAS,CAAC,GAAG,KAAK,0BAA0B,CAAC,CAAC;IACtH,IAAI,EAAC,uBAAuB,KAAA,IAAA,IAAvB,uBAAuB,KAAvB,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,uBAAuB,CAAE,SAAS,CAAA;QAAE,OAAO;IAChD,MAAM,cAAc,GAAG,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,uBAAuB,CAAC,SAAS,MAAE,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAI,CAC5D,CAAC,SAAS,KAAK,SAAS,CAAC,GAAG,KAAK,mCAAmC,CACrE,MAAE,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,WAAW,CAAC;AACf,IAAA,OAAO,cAAc,CAAC;AACxB;;;;"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ConversationAddParticipantParams, ConversationCreateParams, ConversationCreateResponse, ConversationGetTokenResponse, ConversationMessageParams, ConversationRemoveParticipantParams, OystehrClientRequest } from '../..';
|
|
2
|
+
import { SDKResource } from '../../client/client';
|
|
3
|
+
import { OystehrConfig } from '../../config';
|
|
4
|
+
import * as ext from './conversation-ext';
|
|
5
|
+
export declare class Conversation extends SDKResource {
|
|
6
|
+
constructor(config: OystehrConfig);
|
|
7
|
+
ENCOUNTER_VS_EXTENSION_URL: string;
|
|
8
|
+
ENCOUNTER_VS_EXTENSION_RELATIVE_URL: string;
|
|
9
|
+
/**
|
|
10
|
+
* Helper function to get a conversationId from an encounter created as an Oystehr Conversation
|
|
11
|
+
* @param encounter well-formed FHIR R4B or R5 Encounter
|
|
12
|
+
* @returns conversationId
|
|
13
|
+
*/
|
|
14
|
+
getConversationIdFromEncounter: typeof ext.getConversationIdFromEncounter;
|
|
15
|
+
/**
|
|
16
|
+
* Create a new Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
17
|
+
*
|
|
18
|
+
* Access Policy Requirements:
|
|
19
|
+
* Action: `Messaging:CreateConversation`
|
|
20
|
+
* Access Policy Resource: `Messaging:Conversation`
|
|
21
|
+
* Action: `FHIR:Create`
|
|
22
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
23
|
+
* Action: `FHIR:Update`
|
|
24
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
25
|
+
*/
|
|
26
|
+
create: (params: ConversationCreateParams, request?: OystehrClientRequest) => Promise<ConversationCreateResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Get a Conversation Token. Conversation Tokens are used to join the Conversation with the Twilio Conversations SDKs. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
29
|
+
*
|
|
30
|
+
* Access Policy Action: `Messaging:GetConversationToken`
|
|
31
|
+
* Access Policy Resource: `Messaging:Conversation`.
|
|
32
|
+
*/
|
|
33
|
+
getToken: (request?: OystehrClientRequest) => Promise<ConversationGetTokenResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Add a participant to a Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
36
|
+
*
|
|
37
|
+
* Access Policy Requirements:
|
|
38
|
+
* Action: `Messaging:ConversationAddParticipant`
|
|
39
|
+
* Access Policy Resource: `Messaging:Conversation`
|
|
40
|
+
* Action: `FHIR:Read`
|
|
41
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
42
|
+
* Action: `FHIR:Update`
|
|
43
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
44
|
+
*/
|
|
45
|
+
addParticipant: (params: ConversationAddParticipantParams, request?: OystehrClientRequest) => Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Remove a participant from a Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
48
|
+
*
|
|
49
|
+
* Access Policy Requirements:
|
|
50
|
+
* Action: `Messaging:ConversationRemoveParticipant`
|
|
51
|
+
* Access Policy Resource: `Messaging:Conversation`
|
|
52
|
+
* Action: `FHIR:Read`
|
|
53
|
+
* Access Policy Resource: `FHIR:Patient`, `FHIR:Practitioner`, or `FHIR:RelatedPerson`
|
|
54
|
+
*/
|
|
55
|
+
removeParticipant: (params: ConversationRemoveParticipantParams, request?: OystehrClientRequest) => Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* Send a message to a Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
58
|
+
*
|
|
59
|
+
* Access Policy Requirements:
|
|
60
|
+
* Action: `Messaging:ConversationSendMessage`
|
|
61
|
+
* Access Policy Resource: `Messaging:Conversation`
|
|
62
|
+
*/
|
|
63
|
+
message: (params: ConversationMessageParams, request?: OystehrClientRequest) => Promise<void>;
|
|
64
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { SDKResource } from '../../client/client.js';
|
|
2
|
+
import { ENCOUNTER_VS_EXTENSION_URL, ENCOUNTER_VS_EXTENSION_RELATIVE_URL, getConversationIdFromEncounter } from './conversation-ext.js';
|
|
3
|
+
|
|
4
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
5
|
+
class Conversation extends SDKResource {
|
|
6
|
+
constructor(config) {
|
|
7
|
+
super(config);
|
|
8
|
+
this.ENCOUNTER_VS_EXTENSION_URL = ENCOUNTER_VS_EXTENSION_URL;
|
|
9
|
+
this.ENCOUNTER_VS_EXTENSION_RELATIVE_URL = ENCOUNTER_VS_EXTENSION_RELATIVE_URL;
|
|
10
|
+
/**
|
|
11
|
+
* Helper function to get a conversationId from an encounter created as an Oystehr Conversation
|
|
12
|
+
* @param encounter well-formed FHIR R4B or R5 Encounter
|
|
13
|
+
* @returns conversationId
|
|
14
|
+
*/
|
|
15
|
+
this.getConversationIdFromEncounter = getConversationIdFromEncounter;
|
|
16
|
+
/**
|
|
17
|
+
* Create a new Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
18
|
+
*
|
|
19
|
+
* Access Policy Requirements:
|
|
20
|
+
* Action: `Messaging:CreateConversation`
|
|
21
|
+
* Access Policy Resource: `Messaging:Conversation`
|
|
22
|
+
* Action: `FHIR:Create`
|
|
23
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
24
|
+
* Action: `FHIR:Update`
|
|
25
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
26
|
+
*/
|
|
27
|
+
this.create = (params, request) => this.request('/messaging/conversation', 'post')(params, request);
|
|
28
|
+
/**
|
|
29
|
+
* Get a Conversation Token. Conversation Tokens are used to join the Conversation with the Twilio Conversations SDKs. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
30
|
+
*
|
|
31
|
+
* Access Policy Action: `Messaging:GetConversationToken`
|
|
32
|
+
* Access Policy Resource: `Messaging:Conversation`.
|
|
33
|
+
*/
|
|
34
|
+
this.getToken = (request) => this.request('/messaging/conversation/token', 'get')(request);
|
|
35
|
+
/**
|
|
36
|
+
* Add a participant to a Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
37
|
+
*
|
|
38
|
+
* Access Policy Requirements:
|
|
39
|
+
* Action: `Messaging:ConversationAddParticipant`
|
|
40
|
+
* Access Policy Resource: `Messaging:Conversation`
|
|
41
|
+
* Action: `FHIR:Read`
|
|
42
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
43
|
+
* Action: `FHIR:Update`
|
|
44
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
45
|
+
*/
|
|
46
|
+
this.addParticipant = (params, request) => this.request('/messaging/conversation/{conversationId}/participant', 'post')(params, request);
|
|
47
|
+
/**
|
|
48
|
+
* Remove a participant from a Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
49
|
+
*
|
|
50
|
+
* Access Policy Requirements:
|
|
51
|
+
* Action: `Messaging:ConversationRemoveParticipant`
|
|
52
|
+
* Access Policy Resource: `Messaging:Conversation`
|
|
53
|
+
* Action: `FHIR:Read`
|
|
54
|
+
* Access Policy Resource: `FHIR:Patient`, `FHIR:Practitioner`, or `FHIR:RelatedPerson`
|
|
55
|
+
*/
|
|
56
|
+
this.removeParticipant = (params, request) => this.request('/messaging/conversation/{conversationId}/participant', 'delete')(params, request);
|
|
57
|
+
/**
|
|
58
|
+
* Send a message to a Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
59
|
+
*
|
|
60
|
+
* Access Policy Requirements:
|
|
61
|
+
* Action: `Messaging:ConversationSendMessage`
|
|
62
|
+
* Access Policy Resource: `Messaging:Conversation`
|
|
63
|
+
*/
|
|
64
|
+
this.message = (params, request) => this.request('/messaging/conversation/{conversationId}/message', 'post')(params, request);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export { Conversation };
|
|
69
|
+
//# sourceMappingURL=conversation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation.js","sources":["../../../../src/resources/classes/conversation.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n ConversationAddParticipantParams,\n ConversationCreateParams,\n ConversationCreateResponse,\n ConversationGetTokenResponse,\n ConversationMessageParams,\n ConversationRemoveParticipantParams,\n OystehrClientRequest,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\nimport * as ext from './conversation-ext';\n\nexport class Conversation extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n ENCOUNTER_VS_EXTENSION_URL = ext.ENCOUNTER_VS_EXTENSION_URL;\n ENCOUNTER_VS_EXTENSION_RELATIVE_URL = ext.ENCOUNTER_VS_EXTENSION_RELATIVE_URL;\n /**\n * Helper function to get a conversationId from an encounter created as an Oystehr Conversation\n * @param encounter well-formed FHIR R4B or R5 Encounter\n * @returns conversationId\n */\n getConversationIdFromEncounter = ext.getConversationIdFromEncounter;\n /**\n * Create a new Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.\n *\n * Access Policy Requirements:\n * Action: `Messaging:CreateConversation`\n * Access Policy Resource: `Messaging:Conversation`\n * Action: `FHIR:Create`\n * Access Policy Resource: `FHIR:Encounter`\n * Action: `FHIR:Update`\n * Access Policy Resource: `FHIR:Encounter`\n */\n create = (params: ConversationCreateParams, request?: OystehrClientRequest): Promise<ConversationCreateResponse> =>\n this.request('/messaging/conversation', 'post')(params, request);\n /**\n * Get a Conversation Token. Conversation Tokens are used to join the Conversation with the Twilio Conversations SDKs. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.\n *\n * Access Policy Action: `Messaging:GetConversationToken`\n * Access Policy Resource: `Messaging:Conversation`.\n */\n getToken = (request?: OystehrClientRequest): Promise<ConversationGetTokenResponse> =>\n this.request('/messaging/conversation/token', 'get')(request);\n /**\n * Add a participant to a Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.\n *\n * Access Policy Requirements:\n * Action: `Messaging:ConversationAddParticipant`\n * Access Policy Resource: `Messaging:Conversation`\n * Action: `FHIR:Read`\n * Access Policy Resource: `FHIR:Encounter`\n * Action: `FHIR:Update`\n * Access Policy Resource: `FHIR:Encounter`\n */\n addParticipant = (params: ConversationAddParticipantParams, request?: OystehrClientRequest): Promise<void> =>\n this.request('/messaging/conversation/{conversationId}/participant', 'post')(params, request);\n /**\n * Remove a participant from a Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.\n *\n * Access Policy Requirements:\n * Action: `Messaging:ConversationRemoveParticipant`\n * Access Policy Resource: `Messaging:Conversation`\n * Action: `FHIR:Read`\n * Access Policy Resource: `FHIR:Patient`, `FHIR:Practitioner`, or `FHIR:RelatedPerson`\n */\n removeParticipant = (params: ConversationRemoveParticipantParams, request?: OystehrClientRequest): Promise<void> =>\n this.request('/messaging/conversation/{conversationId}/participant', 'delete')(params, request);\n /**\n * Send a message to a Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.\n *\n * Access Policy Requirements:\n * Action: `Messaging:ConversationSendMessage`\n * Access Policy Resource: `Messaging:Conversation`\n */\n message = (params: ConversationMessageParams, request?: OystehrClientRequest): Promise<void> =>\n this.request('/messaging/conversation/{conversationId}/message', 'post')(params, request);\n}\n"],"names":["ext.ENCOUNTER_VS_EXTENSION_URL","ext.ENCOUNTER_VS_EXTENSION_RELATIVE_URL","ext.getConversationIdFromEncounter"],"mappings":";;;AAAA;AAeM,MAAO,YAAa,SAAQ,WAAW,CAAA;AAC3C,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;AAEhB,QAAA,IAAA,CAAA,0BAA0B,GAAGA,0BAA8B,CAAC;AAC5D,QAAA,IAAA,CAAA,mCAAmC,GAAGC,mCAAuC,CAAC;AAC9E;;;;AAIG;AACH,QAAA,IAAA,CAAA,8BAA8B,GAAGC,8BAAkC,CAAC;AACpE;;;;;;;;;;AAUG;QACH,IAAM,CAAA,MAAA,GAAG,CAAC,MAAgC,EAAE,OAA8B,KACxE,IAAI,CAAC,OAAO,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACnE;;;;;AAKG;AACH,QAAA,IAAA,CAAA,QAAQ,GAAG,CAAC,OAA8B,KACxC,IAAI,CAAC,OAAO,CAAC,+BAA+B,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;AAChE;;;;;;;;;;AAUG;QACH,IAAc,CAAA,cAAA,GAAG,CAAC,MAAwC,EAAE,OAA8B,KACxF,IAAI,CAAC,OAAO,CAAC,sDAAsD,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAChG;;;;;;;;AAQG;QACH,IAAiB,CAAA,iBAAA,GAAG,CAAC,MAA2C,EAAE,OAA8B,KAC9F,IAAI,CAAC,OAAO,CAAC,sDAAsD,EAAE,QAAQ,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAClG;;;;;;AAMG;QACH,IAAO,CAAA,OAAA,GAAG,CAAC,MAAiC,EAAE,OAA8B,KAC1E,IAAI,CAAC,OAAO,CAAC,kDAAkD,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KA9D3F;AA+DF;;;;"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { DeveloperDeleteParams, DeveloperGetParams, DeveloperGetResponse, DeveloperInviteParams, DeveloperInviteResponse, DeveloperListResponse, DeveloperListV2Params, DeveloperListV2Response, DeveloperUpdateParams, DeveloperUpdateResponse, OystehrClientRequest } from '../..';
|
|
2
|
+
import { SDKResource } from '../../client/client';
|
|
3
|
+
import { OystehrConfig } from '../../config';
|
|
4
|
+
export declare class Developer extends SDKResource {
|
|
5
|
+
constructor(config: OystehrConfig);
|
|
6
|
+
/**
|
|
7
|
+
* Get the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
8
|
+
*
|
|
9
|
+
* Access Policy Action: `IAM:GetDeveloper`
|
|
10
|
+
* Access Policy Resource: `IAM:Developer`
|
|
11
|
+
*/
|
|
12
|
+
get: (params: DeveloperGetParams, request?: OystehrClientRequest) => Promise<DeveloperGetResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Update the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
15
|
+
*
|
|
16
|
+
* Access Policy Action: `IAM:UpdateDeveloper`
|
|
17
|
+
* Access Policy Resource: `IAM:Developer`
|
|
18
|
+
*/
|
|
19
|
+
update: (params: DeveloperUpdateParams, request?: OystehrClientRequest) => Promise<DeveloperUpdateResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Remove the Developer with the provided ID from the project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
22
|
+
*
|
|
23
|
+
* Access Policy Action: `IAM:RemoveDeveloper`
|
|
24
|
+
* Access Policy Resource: `IAM:Developer`
|
|
25
|
+
*/
|
|
26
|
+
delete: (params: DeveloperDeleteParams, request?: OystehrClientRequest) => Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Invite a new Developer to the Project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
29
|
+
*
|
|
30
|
+
* Access Policy Action: `IAM:InviteDeveloper`
|
|
31
|
+
* Access Policy Resource: `IAM:Developer`
|
|
32
|
+
*/
|
|
33
|
+
invite: (params: DeveloperInviteParams, request?: OystehrClientRequest) => Promise<DeveloperInviteResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_developer-v2-list) instead.
|
|
36
|
+
*
|
|
37
|
+
* Get a list of all Developers who are part of the Project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
38
|
+
*
|
|
39
|
+
* Access Policy Action: `IAM:ListAllDevelopers`
|
|
40
|
+
* Access Policy Resource: `IAM:Developer`
|
|
41
|
+
*/
|
|
42
|
+
list: (request?: OystehrClientRequest) => Promise<DeveloperListResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* Get Developers in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
45
|
+
*
|
|
46
|
+
* Access Policy Action: `Project:ListAllUsers`
|
|
47
|
+
* Access Policy Resource: `Project:Settings`
|
|
48
|
+
*/
|
|
49
|
+
listV2: (params: DeveloperListV2Params, request?: OystehrClientRequest) => Promise<DeveloperListV2Response>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { SDKResource } from '../../client/client.js';
|
|
2
|
+
|
|
3
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
4
|
+
class Developer extends SDKResource {
|
|
5
|
+
constructor(config) {
|
|
6
|
+
super(config);
|
|
7
|
+
/**
|
|
8
|
+
* Get the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
9
|
+
*
|
|
10
|
+
* Access Policy Action: `IAM:GetDeveloper`
|
|
11
|
+
* Access Policy Resource: `IAM:Developer`
|
|
12
|
+
*/
|
|
13
|
+
this.get = (params, request) => this.request('/developer/{id}', 'get')(params, request);
|
|
14
|
+
/**
|
|
15
|
+
* Update the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
16
|
+
*
|
|
17
|
+
* Access Policy Action: `IAM:UpdateDeveloper`
|
|
18
|
+
* Access Policy Resource: `IAM:Developer`
|
|
19
|
+
*/
|
|
20
|
+
this.update = (params, request) => this.request('/developer/{id}', 'patch')(params, request);
|
|
21
|
+
/**
|
|
22
|
+
* Remove the Developer with the provided ID from the project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
23
|
+
*
|
|
24
|
+
* Access Policy Action: `IAM:RemoveDeveloper`
|
|
25
|
+
* Access Policy Resource: `IAM:Developer`
|
|
26
|
+
*/
|
|
27
|
+
this.delete = (params, request) => this.request('/developer/{id}', 'delete')(params, request);
|
|
28
|
+
/**
|
|
29
|
+
* Invite a new Developer to the Project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
30
|
+
*
|
|
31
|
+
* Access Policy Action: `IAM:InviteDeveloper`
|
|
32
|
+
* Access Policy Resource: `IAM:Developer`
|
|
33
|
+
*/
|
|
34
|
+
this.invite = (params, request) => this.request('/developer/invite', 'post')(params, request);
|
|
35
|
+
/**
|
|
36
|
+
* DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_developer-v2-list) instead.
|
|
37
|
+
*
|
|
38
|
+
* Get a list of all Developers who are part of the Project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
39
|
+
*
|
|
40
|
+
* Access Policy Action: `IAM:ListAllDevelopers`
|
|
41
|
+
* Access Policy Resource: `IAM:Developer`
|
|
42
|
+
*/
|
|
43
|
+
this.list = (request) => this.request('/developer', 'get')(request);
|
|
44
|
+
/**
|
|
45
|
+
* Get Developers in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
46
|
+
*
|
|
47
|
+
* Access Policy Action: `Project:ListAllUsers`
|
|
48
|
+
* Access Policy Resource: `Project:Settings`
|
|
49
|
+
*/
|
|
50
|
+
this.listV2 = (params, request) => this.request('/developer/v2/list', 'get')(params, request);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { Developer };
|
|
55
|
+
//# sourceMappingURL=developer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"developer.js","sources":["../../../../src/resources/classes/developer.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n DeveloperDeleteParams,\n DeveloperGetParams,\n DeveloperGetResponse,\n DeveloperInviteParams,\n DeveloperInviteResponse,\n DeveloperListResponse,\n DeveloperListV2Params,\n DeveloperListV2Response,\n DeveloperUpdateParams,\n DeveloperUpdateResponse,\n OystehrClientRequest,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Developer extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n /**\n * Get the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.\n *\n * Access Policy Action: `IAM:GetDeveloper`\n * Access Policy Resource: `IAM:Developer`\n */\n get = (params: DeveloperGetParams, request?: OystehrClientRequest): Promise<DeveloperGetResponse> =>\n this.request('/developer/{id}', 'get')(params, request);\n /**\n * Update the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.\n *\n * Access Policy Action: `IAM:UpdateDeveloper`\n * Access Policy Resource: `IAM:Developer`\n */\n update = (params: DeveloperUpdateParams, request?: OystehrClientRequest): Promise<DeveloperUpdateResponse> =>\n this.request('/developer/{id}', 'patch')(params, request);\n /**\n * Remove the Developer with the provided ID from the project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.\n *\n * Access Policy Action: `IAM:RemoveDeveloper`\n * Access Policy Resource: `IAM:Developer`\n */\n delete = (params: DeveloperDeleteParams, request?: OystehrClientRequest): Promise<void> =>\n this.request('/developer/{id}', 'delete')(params, request);\n /**\n * Invite a new Developer to the Project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.\n *\n * Access Policy Action: `IAM:InviteDeveloper`\n * Access Policy Resource: `IAM:Developer`\n */\n invite = (params: DeveloperInviteParams, request?: OystehrClientRequest): Promise<DeveloperInviteResponse> =>\n this.request('/developer/invite', 'post')(params, request);\n /**\n * DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_developer-v2-list) instead.\n *\n * Get a list of all Developers who are part of the Project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.\n *\n * Access Policy Action: `IAM:ListAllDevelopers`\n * Access Policy Resource: `IAM:Developer`\n */\n list = (request?: OystehrClientRequest): Promise<DeveloperListResponse> => this.request('/developer', 'get')(request);\n /**\n * Get Developers in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.\n *\n * Access Policy Action: `Project:ListAllUsers`\n * Access Policy Resource: `Project:Settings`\n */\n listV2 = (params: DeveloperListV2Params, request?: OystehrClientRequest): Promise<DeveloperListV2Response> =>\n this.request('/developer/v2/list', 'get')(params, request);\n}\n"],"names":[],"mappings":";;AAAA;AAkBM,MAAO,SAAU,SAAQ,WAAW,CAAA;AACxC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;AAEhB;;;;;AAKG;QACH,IAAG,CAAA,GAAA,GAAG,CAAC,MAA0B,EAAE,OAA8B,KAC/D,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC1D;;;;;AAKG;QACH,IAAM,CAAA,MAAA,GAAG,CAAC,MAA6B,EAAE,OAA8B,KACrE,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC5D;;;;;AAKG;QACH,IAAM,CAAA,MAAA,GAAG,CAAC,MAA6B,EAAE,OAA8B,KACrE,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC7D;;;;;AAKG;QACH,IAAM,CAAA,MAAA,GAAG,CAAC,MAA6B,EAAE,OAA8B,KACrE,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC7D;;;;;;;AAOG;AACH,QAAA,IAAA,CAAA,IAAI,GAAG,CAAC,OAA8B,KAAqC,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;AACtH;;;;;AAKG;QACH,IAAM,CAAA,MAAA,GAAG,CAAC,MAA6B,EAAE,OAA8B,KACrE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAjD5D;AAkDF;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ErxAllergySearchParams, ErxAllergySearchResponse, ErxMedicationSearchParams, ErxMedicationSearchResponse, ErxSyncPatientParams, ErxSyncPatientResponse, OystehrClientRequest } from '../..';
|
|
2
|
+
import { SDKResource } from '../../client/client';
|
|
3
|
+
import { OystehrConfig } from '../../config';
|
|
4
|
+
export declare class Erx extends SDKResource {
|
|
5
|
+
constructor(config: OystehrConfig);
|
|
6
|
+
/**
|
|
7
|
+
* Retrieve patient properties from FHIR service and sync them with eRx service
|
|
8
|
+
*/
|
|
9
|
+
syncPatient: (params: ErxSyncPatientParams, request?: OystehrClientRequest) => Promise<ErxSyncPatientResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Search for allergies
|
|
12
|
+
*/
|
|
13
|
+
allergySearch: (params: ErxAllergySearchParams, request?: OystehrClientRequest) => Promise<ErxAllergySearchResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Search for medications. Provide at least one of code or name filters
|
|
16
|
+
*/
|
|
17
|
+
medicationSearch: (params: ErxMedicationSearchParams, request?: OystehrClientRequest) => Promise<ErxMedicationSearchResponse>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SDKResource } from '../../client/client.js';
|
|
2
|
+
|
|
3
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
4
|
+
class Erx extends SDKResource {
|
|
5
|
+
constructor(config) {
|
|
6
|
+
super(config);
|
|
7
|
+
/**
|
|
8
|
+
* Retrieve patient properties from FHIR service and sync them with eRx service
|
|
9
|
+
*/
|
|
10
|
+
this.syncPatient = (params, request) => this.request('/erx/sync-patient/{patientId}', 'post')(params, request);
|
|
11
|
+
/**
|
|
12
|
+
* Search for allergies
|
|
13
|
+
*/
|
|
14
|
+
this.allergySearch = (params, request) => this.request('/erx/allergy/search', 'get')(params, request);
|
|
15
|
+
/**
|
|
16
|
+
* Search for medications. Provide at least one of code or name filters
|
|
17
|
+
*/
|
|
18
|
+
this.medicationSearch = (params, request) => this.request('/erx/medication/search', 'get')(params, request);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { Erx };
|
|
23
|
+
//# sourceMappingURL=erx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"erx.js","sources":["../../../../src/resources/classes/erx.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n ErxAllergySearchParams,\n ErxAllergySearchResponse,\n ErxMedicationSearchParams,\n ErxMedicationSearchResponse,\n ErxSyncPatientParams,\n ErxSyncPatientResponse,\n OystehrClientRequest,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Erx extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n /**\n * Retrieve patient properties from FHIR service and sync them with eRx service\n */\n syncPatient = (params: ErxSyncPatientParams, request?: OystehrClientRequest): Promise<ErxSyncPatientResponse> =>\n this.request('/erx/sync-patient/{patientId}', 'post')(params, request);\n /**\n * Search for allergies\n */\n allergySearch = (params: ErxAllergySearchParams, request?: OystehrClientRequest): Promise<ErxAllergySearchResponse> =>\n this.request('/erx/allergy/search', 'get')(params, request);\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearch = (\n params: ErxMedicationSearchParams,\n request?: OystehrClientRequest\n ): Promise<ErxMedicationSearchResponse> => this.request('/erx/medication/search', 'get')(params, request);\n}\n"],"names":[],"mappings":";;AAAA;AAcM,MAAO,GAAI,SAAQ,WAAW,CAAA;AAClC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;AAEhB;;AAEG;QACH,IAAW,CAAA,WAAA,GAAG,CAAC,MAA4B,EAAE,OAA8B,KACzE,IAAI,CAAC,OAAO,CAAC,+BAA+B,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACzE;;AAEG;QACH,IAAa,CAAA,aAAA,GAAG,CAAC,MAA8B,EAAE,OAA8B,KAC7E,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC9D;;AAEG;QACH,IAAgB,CAAA,gBAAA,GAAG,CACjB,MAAiC,EACjC,OAA8B,KACW,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAjBzG;AAkBF;;;;"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Operation } from 'fast-json-patch';
|
|
2
|
+
import { BatchInput, Bundle, FhirResource } from '../..';
|
|
3
|
+
import { FhirFetcherResponse, OystehrClientRequest, SDKResource } from '../../client/client';
|
|
4
|
+
/**
|
|
5
|
+
* Optional parameter that can be passed to the client methods. It allows
|
|
6
|
+
* overriding the access token or project ID, and setting various headers,
|
|
7
|
+
* such as 'Content-Type'. Also support enabling optimistic locking.
|
|
8
|
+
*/
|
|
9
|
+
export interface OystehrFHIRUpdateClientRequest extends OystehrClientRequest {
|
|
10
|
+
/**
|
|
11
|
+
* Enable optimistic locking for the request. If set to a version ID, the request will
|
|
12
|
+
* include the 'If-Match' header with that value in the FHIR optimistic-locking format.
|
|
13
|
+
* If the resource has been updated since the version provided, the request
|
|
14
|
+
* will fail with a 412 Precondition Failed error.
|
|
15
|
+
*/
|
|
16
|
+
optimisticLockingVersionId?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Performs a FHIR search and returns the results as a Bundle resource
|
|
20
|
+
*
|
|
21
|
+
* @param options FHIR resource type and FHIR search parameters
|
|
22
|
+
* @param request optional OystehrClientRequest object
|
|
23
|
+
* @returns FHIR Bundle resource
|
|
24
|
+
*/
|
|
25
|
+
export declare function search<T extends FhirResource>(this: SDKResource, { resourceType, params }: {
|
|
26
|
+
resourceType: string;
|
|
27
|
+
params?: {
|
|
28
|
+
name: string;
|
|
29
|
+
value: string | number;
|
|
30
|
+
}[];
|
|
31
|
+
}, request?: OystehrClientRequest): Promise<FhirFetcherResponse<Bundle<T>>>;
|
|
32
|
+
export declare function create<T extends FhirResource>(this: SDKResource, params: T, request?: OystehrClientRequest): Promise<FhirFetcherResponse<T>>;
|
|
33
|
+
export declare function get<T extends FhirResource>(this: SDKResource, { resourceType, id }: {
|
|
34
|
+
resourceType: string;
|
|
35
|
+
id: string;
|
|
36
|
+
}, request?: OystehrClientRequest): Promise<FhirFetcherResponse<T>>;
|
|
37
|
+
export declare function update<T extends FhirResource>(this: SDKResource, params: T, request?: OystehrFHIRUpdateClientRequest): Promise<FhirFetcherResponse<T>>;
|
|
38
|
+
export declare function patch<T extends FhirResource>(this: SDKResource, { resourceType, id, operations }: {
|
|
39
|
+
resourceType: string;
|
|
40
|
+
id: string;
|
|
41
|
+
operations: Operation[];
|
|
42
|
+
}, request?: OystehrFHIRUpdateClientRequest): Promise<FhirFetcherResponse<T>>;
|
|
43
|
+
declare function del<T extends FhirResource>(this: SDKResource, { resourceType, id }: {
|
|
44
|
+
resourceType: string;
|
|
45
|
+
id: string;
|
|
46
|
+
}, request?: OystehrClientRequest): Promise<FhirFetcherResponse<T>>;
|
|
47
|
+
export { del as delete };
|
|
48
|
+
export declare function history<T extends FhirResource>(this: SDKResource, { resourceType, id }: {
|
|
49
|
+
resourceType: string;
|
|
50
|
+
id: string;
|
|
51
|
+
}, request?: OystehrClientRequest): Promise<FhirFetcherResponse<Bundle<T>>>;
|
|
52
|
+
export declare function history<T extends FhirResource>(this: SDKResource, { resourceType, id, versionId }: {
|
|
53
|
+
resourceType: string;
|
|
54
|
+
id: string;
|
|
55
|
+
versionId: string;
|
|
56
|
+
}, request?: OystehrClientRequest): Promise<FhirFetcherResponse<T>>;
|
|
57
|
+
export declare const batch: <BundleContentType extends FhirResource>(this: SDKResource, input: BatchInput<BundleContentType>, request?: OystehrClientRequest) => Promise<Bundle<BundleContentType>>;
|
|
58
|
+
export declare const transaction: <BundleContentType extends FhirResource>(this: SDKResource, input: BatchInput<BundleContentType>, request?: OystehrClientRequest) => Promise<Bundle<BundleContentType>>;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import { addParamsToSearch } from '../../client/client.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Performs a FHIR search and returns the results as a Bundle resource
|
|
6
|
+
*
|
|
7
|
+
* @param options FHIR resource type and FHIR search parameters
|
|
8
|
+
* @param request optional OystehrClientRequest object
|
|
9
|
+
* @returns FHIR Bundle resource
|
|
10
|
+
*/
|
|
11
|
+
function search({ resourceType, params }, request) {
|
|
12
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13
|
+
let paramMap;
|
|
14
|
+
if (params) {
|
|
15
|
+
paramMap = Object.entries(params).reduce((acc, [_, param]) => {
|
|
16
|
+
if (!acc[param.name]) {
|
|
17
|
+
acc[param.name] = [];
|
|
18
|
+
}
|
|
19
|
+
acc[param.name].push(param.value);
|
|
20
|
+
return acc;
|
|
21
|
+
}, {});
|
|
22
|
+
}
|
|
23
|
+
const requestBundle = yield this.fhirRequest(`/${resourceType}/_search`, 'POST')(paramMap, Object.assign(Object.assign({}, request), { contentType: 'application/x-www-form-urlencoded' }));
|
|
24
|
+
const bundle = Object.assign(Object.assign({}, requestBundle), { unbundle: function () {
|
|
25
|
+
var _a, _b;
|
|
26
|
+
return (_b = (_a = this.entry) === null || _a === void 0 ? void 0 : _a.map((entry) => entry.resource).filter((entry) => entry !== undefined)) !== null && _b !== void 0 ? _b : [];
|
|
27
|
+
} });
|
|
28
|
+
return bundle;
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function create(params, request) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
const { resourceType } = params;
|
|
34
|
+
return this.fhirRequest(`/${resourceType}`, 'POST')(params, request);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function get({ resourceType, id }, request) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
return this.fhirRequest(`/${resourceType}/${id}`, 'GET')({}, request);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function update(params, request) {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
const { id, resourceType } = params;
|
|
45
|
+
return this.fhirRequest(`/${resourceType}/${id}`, 'PUT')(params, Object.assign(Object.assign({}, request), { ifMatch: (request === null || request === void 0 ? void 0 : request.optimisticLockingVersionId) ? `W/"${request.optimisticLockingVersionId}"` : undefined }));
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function patch({ resourceType, id, operations }, request) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
return this.fhirRequest(`/${resourceType}/${id}`, 'PATCH')(operations, Object.assign(Object.assign({}, request), { contentType: 'application/json-patch+json', ifMatch: (request === null || request === void 0 ? void 0 : request.optimisticLockingVersionId) ? `W/"${request.optimisticLockingVersionId}"` : undefined }));
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function del({ resourceType, id }, request) {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
return this.fhirRequest(`/${resourceType}/${id}`, 'DELETE')({}, request);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function history({ resourceType, id, versionId }, request) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
return this.fhirRequest(`/${resourceType}/${id}/_history${versionId ? `/${versionId}` : ''}`, 'GET')({}, request);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function batchInputRequestToBundleEntryItem(request) {
|
|
64
|
+
const { method, url } = request;
|
|
65
|
+
const baseRequest = {
|
|
66
|
+
request: {
|
|
67
|
+
method,
|
|
68
|
+
url,
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
// Escape query string parameters in entry.request.url
|
|
72
|
+
if (url.split('?').length > 1) {
|
|
73
|
+
const [resource, query] = url.split('?');
|
|
74
|
+
const params = query
|
|
75
|
+
.split('&')
|
|
76
|
+
.map((param) => {
|
|
77
|
+
const [name, value] = param.split('=');
|
|
78
|
+
return { name, value };
|
|
79
|
+
})
|
|
80
|
+
.reduce((acc, { name, value }) => {
|
|
81
|
+
acc[name] = value;
|
|
82
|
+
return acc;
|
|
83
|
+
}, {});
|
|
84
|
+
const search = new URLSearchParams();
|
|
85
|
+
addParamsToSearch(params, search);
|
|
86
|
+
baseRequest.request.url = `${resource}?${search.toString()}`;
|
|
87
|
+
}
|
|
88
|
+
// GET, DELETE, and HEAD require no further parameters
|
|
89
|
+
if (['GET', 'DELETE', 'HEAD'].includes(method)) {
|
|
90
|
+
return baseRequest;
|
|
91
|
+
}
|
|
92
|
+
// PUT updates require a full resource
|
|
93
|
+
if (method === 'PUT') {
|
|
94
|
+
const { resource } = request;
|
|
95
|
+
return Object.assign(Object.assign({}, baseRequest), { resource: resource });
|
|
96
|
+
}
|
|
97
|
+
// PATCH can be Binary resource or JSON patch
|
|
98
|
+
if (method === 'PATCH') {
|
|
99
|
+
if ('resource' in request) {
|
|
100
|
+
return Object.assign(Object.assign({}, baseRequest), { resource: request.resource });
|
|
101
|
+
}
|
|
102
|
+
return Object.assign(Object.assign({}, baseRequest), { resource: {
|
|
103
|
+
resourceType: 'Binary',
|
|
104
|
+
contentType: 'application/json-patch+json',
|
|
105
|
+
data: Buffer.from(JSON.stringify(request.operations), 'utf8').toString('base64'),
|
|
106
|
+
} });
|
|
107
|
+
}
|
|
108
|
+
// POST creates require a full resource
|
|
109
|
+
if (method === 'POST') {
|
|
110
|
+
const { resource, fullUrl } = request;
|
|
111
|
+
return Object.assign(Object.assign({}, baseRequest), { resource: resource, fullUrl });
|
|
112
|
+
}
|
|
113
|
+
throw new Error('Unrecognized method');
|
|
114
|
+
}
|
|
115
|
+
function bundleRequest(type) {
|
|
116
|
+
return function (input, request) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
return this.fhirRequest('/', 'POST')({
|
|
119
|
+
resourceType: 'Bundle',
|
|
120
|
+
type,
|
|
121
|
+
entry: input.requests.map(batchInputRequestToBundleEntryItem),
|
|
122
|
+
}, request);
|
|
123
|
+
});
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
const batch = bundleRequest('batch');
|
|
127
|
+
const transaction = bundleRequest('transaction');
|
|
128
|
+
|
|
129
|
+
export { batch, create, del as delete, get, history, patch, search, transaction, update };
|
|
130
|
+
//# sourceMappingURL=fhir-ext.js.map
|