saferx-pharma-sdk 1.4.3 → 2.0.2
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/README.md +31 -0
- package/dist/client.d.ts +47 -0
- package/dist/client.js +166 -0
- package/package.json +11 -85
- package/src/client.ts +117 -0
- package/dist/cjs/BaseClient.d.ts +0 -39
- package/dist/cjs/BaseClient.js +0 -62
- package/dist/cjs/Client.d.ts +0 -29
- package/dist/cjs/Client.js +0 -88
- package/dist/cjs/api/errors/BadRequestError.d.ts +0 -5
- package/dist/cjs/api/errors/BadRequestError.js +0 -54
- package/dist/cjs/api/errors/ForbiddenError.d.ts +0 -5
- package/dist/cjs/api/errors/ForbiddenError.js +0 -54
- package/dist/cjs/api/errors/InternalServerError.d.ts +0 -5
- package/dist/cjs/api/errors/InternalServerError.js +0 -54
- package/dist/cjs/api/errors/TooManyRequestsError.d.ts +0 -5
- package/dist/cjs/api/errors/TooManyRequestsError.js +0 -54
- package/dist/cjs/api/errors/UnauthorizedError.d.ts +0 -6
- package/dist/cjs/api/errors/UnauthorizedError.js +0 -54
- package/dist/cjs/api/errors/index.d.ts +0 -5
- package/dist/cjs/api/errors/index.js +0 -21
- package/dist/cjs/api/index.d.ts +0 -3
- package/dist/cjs/api/index.js +0 -19
- package/dist/cjs/api/resources/developers/client/Client.d.ts +0 -56
- package/dist/cjs/api/resources/developers/client/Client.js +0 -186
- package/dist/cjs/api/resources/developers/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/developers/client/index.js +0 -17
- package/dist/cjs/api/resources/developers/client/requests/CreateFreeKeyDevelopersRequest.d.ts +0 -10
- package/dist/cjs/api/resources/developers/client/requests/CreateFreeKeyDevelopersRequest.js +0 -3
- package/dist/cjs/api/resources/developers/client/requests/VerifyFreeKeyDevelopersRequest.d.ts +0 -13
- package/dist/cjs/api/resources/developers/client/requests/VerifyFreeKeyDevelopersRequest.js +0 -3
- package/dist/cjs/api/resources/developers/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/developers/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/developers/exports.d.ts +0 -2
- package/dist/cjs/api/resources/developers/exports.js +0 -21
- package/dist/cjs/api/resources/developers/index.d.ts +0 -2
- package/dist/cjs/api/resources/developers/index.js +0 -18
- package/dist/cjs/api/resources/developers/types/CreateFreeKeyDevelopersResponse.d.ts +0 -18
- package/dist/cjs/api/resources/developers/types/CreateFreeKeyDevelopersResponse.js +0 -3
- package/dist/cjs/api/resources/developers/types/VerifyFreeKeyDevelopersResponse.d.ts +0 -12
- package/dist/cjs/api/resources/developers/types/VerifyFreeKeyDevelopersResponse.js +0 -3
- package/dist/cjs/api/resources/developers/types/index.d.ts +0 -2
- package/dist/cjs/api/resources/developers/types/index.js +0 -18
- package/dist/cjs/api/resources/drugSafety/client/Client.d.ts +0 -132
- package/dist/cjs/api/resources/drugSafety/client/Client.js +0 -290
- package/dist/cjs/api/resources/drugSafety/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/drugSafety/client/index.js +0 -17
- package/dist/cjs/api/resources/drugSafety/client/requests/DrugSafetyCheckRequest.d.ts +0 -98
- package/dist/cjs/api/resources/drugSafety/client/requests/DrugSafetyCheckRequest.js +0 -15
- package/dist/cjs/api/resources/drugSafety/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/drugSafety/client/requests/index.js +0 -5
- package/dist/cjs/api/resources/drugSafety/exports.d.ts +0 -2
- package/dist/cjs/api/resources/drugSafety/exports.js +0 -21
- package/dist/cjs/api/resources/drugSafety/index.d.ts +0 -2
- package/dist/cjs/api/resources/drugSafety/index.js +0 -18
- package/dist/cjs/api/resources/drugSafety/types/GetDrugSafetyHealthResponse.d.ts +0 -14
- package/dist/cjs/api/resources/drugSafety/types/GetDrugSafetyHealthResponse.js +0 -11
- package/dist/cjs/api/resources/drugSafety/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/drugSafety/types/index.js +0 -17
- package/dist/cjs/api/resources/index.d.ts +0 -6
- package/dist/cjs/api/resources/index.js +0 -45
- package/dist/cjs/api/types/AdverseEffect.d.ts +0 -43
- package/dist/cjs/api/types/AdverseEffect.js +0 -3
- package/dist/cjs/api/types/Alert.d.ts +0 -70
- package/dist/cjs/api/types/Alert.js +0 -41
- package/dist/cjs/api/types/AllergyCrossReactivityReference.d.ts +0 -16
- package/dist/cjs/api/types/AllergyCrossReactivityReference.js +0 -3
- package/dist/cjs/api/types/AllergyData.d.ts +0 -24
- package/dist/cjs/api/types/AllergyData.js +0 -11
- package/dist/cjs/api/types/AllergyFamilyReference.d.ts +0 -10
- package/dist/cjs/api/types/AllergyFamilyReference.js +0 -3
- package/dist/cjs/api/types/AllergyInputEntry.d.ts +0 -10
- package/dist/cjs/api/types/AllergyInputEntry.js +0 -3
- package/dist/cjs/api/types/AllergyProductFamilyReference.d.ts +0 -9
- package/dist/cjs/api/types/AllergyProductFamilyReference.js +0 -3
- package/dist/cjs/api/types/AllergySummary.d.ts +0 -14
- package/dist/cjs/api/types/AllergySummary.js +0 -3
- package/dist/cjs/api/types/AllergyWarning.d.ts +0 -30
- package/dist/cjs/api/types/AllergyWarning.js +0 -11
- package/dist/cjs/api/types/BadRequestErrorBody.d.ts +0 -3
- package/dist/cjs/api/types/BadRequestErrorBody.js +0 -3
- package/dist/cjs/api/types/BlackBoxWarning.d.ts +0 -15
- package/dist/cjs/api/types/BlackBoxWarning.js +0 -3
- package/dist/cjs/api/types/BlockedResponse.d.ts +0 -9
- package/dist/cjs/api/types/BlockedResponse.js +0 -3
- package/dist/cjs/api/types/ClinicalAlert.d.ts +0 -56
- package/dist/cjs/api/types/ClinicalAlert.js +0 -3
- package/dist/cjs/api/types/ClinicalConcern.d.ts +0 -15
- package/dist/cjs/api/types/ClinicalConcern.js +0 -3
- package/dist/cjs/api/types/ClinicalContextApplied.d.ts +0 -10
- package/dist/cjs/api/types/ClinicalContextApplied.js +0 -3
- package/dist/cjs/api/types/ClinicalData.d.ts +0 -17
- package/dist/cjs/api/types/ClinicalData.js +0 -3
- package/dist/cjs/api/types/Condition.d.ts +0 -22
- package/dist/cjs/api/types/Condition.js +0 -25
- package/dist/cjs/api/types/DailyLimit.d.ts +0 -20
- package/dist/cjs/api/types/DailyLimit.js +0 -13
- package/dist/cjs/api/types/DomainCode.d.ts +0 -20
- package/dist/cjs/api/types/DomainCode.js +0 -23
- package/dist/cjs/api/types/DoseClassification.d.ts +0 -40
- package/dist/cjs/api/types/DoseClassification.js +0 -22
- package/dist/cjs/api/types/DoseComponent.d.ts +0 -30
- package/dist/cjs/api/types/DoseComponent.js +0 -12
- package/dist/cjs/api/types/DosingData.d.ts +0 -63
- package/dist/cjs/api/types/DosingData.js +0 -18
- package/dist/cjs/api/types/DrugClinicalData.d.ts +0 -7
- package/dist/cjs/api/types/DrugClinicalData.js +0 -3
- package/dist/cjs/api/types/DrugSafetyCheckResponse.d.ts +0 -29
- package/dist/cjs/api/types/DrugSafetyCheckResponse.js +0 -11
- package/dist/cjs/api/types/ErrorResponse.d.ts +0 -29
- package/dist/cjs/api/types/ErrorResponse.js +0 -3
- package/dist/cjs/api/types/FoodConflict.d.ts +0 -21
- package/dist/cjs/api/types/FoodConflict.js +0 -3
- package/dist/cjs/api/types/FoodData.d.ts +0 -11
- package/dist/cjs/api/types/FoodData.js +0 -3
- package/dist/cjs/api/types/ForbiddenErrorBody.d.ts +0 -4
- package/dist/cjs/api/types/ForbiddenErrorBody.js +0 -3
- package/dist/cjs/api/types/IdentityMatch.d.ts +0 -13
- package/dist/cjs/api/types/IdentityMatch.js +0 -3
- package/dist/cjs/api/types/IntelligenceClinicalProfile.d.ts +0 -24
- package/dist/cjs/api/types/IntelligenceClinicalProfile.js +0 -13
- package/dist/cjs/api/types/IntelligenceContext.d.ts +0 -17
- package/dist/cjs/api/types/IntelligenceContext.js +0 -3
- package/dist/cjs/api/types/IntelligenceProcessorError.d.ts +0 -4
- package/dist/cjs/api/types/IntelligenceProcessorError.js +0 -3
- package/dist/cjs/api/types/IntelligenceResult.d.ts +0 -16
- package/dist/cjs/api/types/IntelligenceResult.js +0 -3
- package/dist/cjs/api/types/IntelligenceSynthesis.d.ts +0 -6
- package/dist/cjs/api/types/IntelligenceSynthesis.js +0 -3
- package/dist/cjs/api/types/Interaction.d.ts +0 -59
- package/dist/cjs/api/types/Interaction.js +0 -14
- package/dist/cjs/api/types/InteractionSummary.d.ts +0 -13
- package/dist/cjs/api/types/InteractionSummary.js +0 -3
- package/dist/cjs/api/types/InteractionsData.d.ts +0 -11
- package/dist/cjs/api/types/InteractionsData.js +0 -3
- package/dist/cjs/api/types/InternalServerErrorBody.d.ts +0 -3
- package/dist/cjs/api/types/InternalServerErrorBody.js +0 -3
- package/dist/cjs/api/types/MealTiming.d.ts +0 -26
- package/dist/cjs/api/types/MealTiming.js +0 -3
- package/dist/cjs/api/types/MedicationHistoryItem.d.ts +0 -22
- package/dist/cjs/api/types/MedicationHistoryItem.js +0 -15
- package/dist/cjs/api/types/Meta.d.ts +0 -29
- package/dist/cjs/api/types/Meta.js +0 -14
- package/dist/cjs/api/types/MetadataResponse.d.ts +0 -93
- package/dist/cjs/api/types/MetadataResponse.js +0 -17
- package/dist/cjs/api/types/Monitoring.d.ts +0 -22
- package/dist/cjs/api/types/Monitoring.js +0 -3
- package/dist/cjs/api/types/PatientProfile.d.ts +0 -43
- package/dist/cjs/api/types/PatientProfile.js +0 -20
- package/dist/cjs/api/types/Population.d.ts +0 -16
- package/dist/cjs/api/types/Population.js +0 -19
- package/dist/cjs/api/types/PopulationMonitoring.d.ts +0 -26
- package/dist/cjs/api/types/PopulationMonitoring.js +0 -3
- package/dist/cjs/api/types/QuotaMeta.d.ts +0 -11
- package/dist/cjs/api/types/QuotaMeta.js +0 -3
- package/dist/cjs/api/types/RateLimitResponse.d.ts +0 -37
- package/dist/cjs/api/types/RateLimitResponse.js +0 -13
- package/dist/cjs/api/types/ReferenceDose.d.ts +0 -11
- package/dist/cjs/api/types/ReferenceDose.js +0 -3
- package/dist/cjs/api/types/ReproductiveSafetyData.d.ts +0 -58
- package/dist/cjs/api/types/ReproductiveSafetyData.js +0 -3
- package/dist/cjs/api/types/ReproductiveWarning.d.ts +0 -13
- package/dist/cjs/api/types/ReproductiveWarning.js +0 -3
- package/dist/cjs/api/types/ResolvedDrug.d.ts +0 -70
- package/dist/cjs/api/types/ResolvedDrug.js +0 -3
- package/dist/cjs/api/types/SafetyData.d.ts +0 -23
- package/dist/cjs/api/types/SafetyData.js +0 -3
- package/dist/cjs/api/types/SideEffectsData.d.ts +0 -38
- package/dist/cjs/api/types/SideEffectsData.js +0 -18
- package/dist/cjs/api/types/TooManyRequestsErrorBody.d.ts +0 -3
- package/dist/cjs/api/types/TooManyRequestsErrorBody.js +0 -3
- package/dist/cjs/api/types/index.d.ts +0 -55
- package/dist/cjs/api/types/index.js +0 -71
- package/dist/cjs/auth/HeaderAuthProvider.d.ts +0 -20
- package/dist/cjs/auth/HeaderAuthProvider.js +0 -80
- package/dist/cjs/auth/index.d.ts +0 -1
- package/dist/cjs/auth/index.js +0 -5
- package/dist/cjs/core/auth/AuthProvider.d.ts +0 -7
- package/dist/cjs/core/auth/AuthProvider.js +0 -2
- package/dist/cjs/core/auth/AuthRequest.d.ts +0 -9
- package/dist/cjs/core/auth/AuthRequest.js +0 -2
- package/dist/cjs/core/auth/BasicAuth.d.ts +0 -8
- package/dist/cjs/core/auth/BasicAuth.js +0 -27
- package/dist/cjs/core/auth/BearerToken.d.ts +0 -7
- package/dist/cjs/core/auth/BearerToken.js +0 -16
- package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +0 -5
- package/dist/cjs/core/auth/NoOpAuthProvider.js +0 -9
- package/dist/cjs/core/auth/index.d.ts +0 -5
- package/dist/cjs/core/auth/index.js +0 -9
- package/dist/cjs/core/base64.d.ts +0 -2
- package/dist/cjs/core/base64.js +0 -26
- package/dist/cjs/core/exports.d.ts +0 -1
- package/dist/cjs/core/exports.js +0 -17
- package/dist/cjs/core/fetcher/APIResponse.d.ts +0 -20
- package/dist/cjs/core/fetcher/APIResponse.js +0 -2
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +0 -19
- package/dist/cjs/core/fetcher/BinaryResponse.js +0 -17
- package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +0 -13
- package/dist/cjs/core/fetcher/EndpointMetadata.js +0 -2
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +0 -12
- package/dist/cjs/core/fetcher/EndpointSupplier.js +0 -22
- package/dist/cjs/core/fetcher/Fetcher.d.ts +0 -48
- package/dist/cjs/core/fetcher/Fetcher.js +0 -322
- package/dist/cjs/core/fetcher/Headers.d.ts +0 -2
- package/dist/cjs/core/fetcher/Headers.js +0 -84
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +0 -58
- package/dist/cjs/core/fetcher/HttpResponsePromise.js +0 -103
- package/dist/cjs/core/fetcher/RawResponse.d.ts +0 -29
- package/dist/cjs/core/fetcher/RawResponse.js +0 -44
- package/dist/cjs/core/fetcher/Supplier.d.ts +0 -4
- package/dist/cjs/core/fetcher/Supplier.js +0 -22
- package/dist/cjs/core/fetcher/createRequestUrl.d.ts +0 -1
- package/dist/cjs/core/fetcher/createRequestUrl.js +0 -8
- package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +0 -1
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +0 -45
- package/dist/cjs/core/fetcher/getFetchFn.d.ts +0 -1
- package/dist/cjs/core/fetcher/getFetchFn.js +0 -17
- package/dist/cjs/core/fetcher/getHeader.d.ts +0 -1
- package/dist/cjs/core/fetcher/getHeader.js +0 -11
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +0 -7
- package/dist/cjs/core/fetcher/getRequestBody.js +0 -27
- package/dist/cjs/core/fetcher/getResponseBody.d.ts +0 -1
- package/dist/cjs/core/fetcher/getResponseBody.js +0 -69
- package/dist/cjs/core/fetcher/index.d.ts +0 -13
- package/dist/cjs/core/fetcher/index.js +0 -19
- package/dist/cjs/core/fetcher/makePassthroughRequest.d.ts +0 -49
- package/dist/cjs/core/fetcher/makePassthroughRequest.js +0 -135
- package/dist/cjs/core/fetcher/makeRequest.d.ts +0 -6
- package/dist/cjs/core/fetcher/makeRequest.js +0 -61
- package/dist/cjs/core/fetcher/requestWithRetries.d.ts +0 -1
- package/dist/cjs/core/fetcher/requestWithRetries.js +0 -67
- package/dist/cjs/core/fetcher/signals.d.ts +0 -5
- package/dist/cjs/core/fetcher/signals.js +0 -24
- package/dist/cjs/core/headers.d.ts +0 -2
- package/dist/cjs/core/headers.js +0 -31
- package/dist/cjs/core/index.d.ts +0 -6
- package/dist/cjs/core/index.js +0 -45
- package/dist/cjs/core/json.d.ts +0 -15
- package/dist/cjs/core/json.js +0 -24
- package/dist/cjs/core/logging/exports.d.ts +0 -18
- package/dist/cjs/core/logging/exports.js +0 -45
- package/dist/cjs/core/logging/index.d.ts +0 -1
- package/dist/cjs/core/logging/index.js +0 -17
- package/dist/cjs/core/logging/logger.d.ts +0 -126
- package/dist/cjs/core/logging/logger.js +0 -144
- package/dist/cjs/core/runtime/index.d.ts +0 -1
- package/dist/cjs/core/runtime/index.js +0 -5
- package/dist/cjs/core/runtime/runtime.d.ts +0 -9
- package/dist/cjs/core/runtime/runtime.js +0 -104
- package/dist/cjs/core/url/encodePathParam.d.ts +0 -1
- package/dist/cjs/core/url/encodePathParam.js +0 -21
- package/dist/cjs/core/url/index.d.ts +0 -3
- package/dist/cjs/core/url/index.js +0 -9
- package/dist/cjs/core/url/join.d.ts +0 -1
- package/dist/cjs/core/url/join.js +0 -68
- package/dist/cjs/core/url/qs.d.ts +0 -6
- package/dist/cjs/core/url/qs.js +0 -64
- package/dist/cjs/environments.d.ts +0 -4
- package/dist/cjs/environments.js +0 -7
- package/dist/cjs/errors/SafeRxError.d.ts +0 -12
- package/dist/cjs/errors/SafeRxError.js +0 -32
- package/dist/cjs/errors/SafeRxTimeoutError.d.ts +0 -3
- package/dist/cjs/errors/SafeRxTimeoutError.js +0 -15
- package/dist/cjs/errors/handleNonStatusCodeError.d.ts +0 -2
- package/dist/cjs/errors/handleNonStatusCodeError.js +0 -65
- package/dist/cjs/errors/index.d.ts +0 -2
- package/dist/cjs/errors/index.js +0 -7
- package/dist/cjs/exports.d.ts +0 -1
- package/dist/cjs/exports.js +0 -17
- package/dist/cjs/index.d.ts +0 -6
- package/dist/cjs/index.js +0 -48
- package/dist/cjs/version.d.ts +0 -1
- package/dist/cjs/version.js +0 -4
- package/dist/esm/BaseClient.d.mts +0 -39
- package/dist/esm/BaseClient.mjs +0 -25
- package/dist/esm/Client.d.mts +0 -29
- package/dist/esm/Client.mjs +0 -51
- package/dist/esm/api/errors/BadRequestError.d.mts +0 -5
- package/dist/esm/api/errors/BadRequestError.mjs +0 -17
- package/dist/esm/api/errors/ForbiddenError.d.mts +0 -5
- package/dist/esm/api/errors/ForbiddenError.mjs +0 -17
- package/dist/esm/api/errors/InternalServerError.d.mts +0 -5
- package/dist/esm/api/errors/InternalServerError.mjs +0 -17
- package/dist/esm/api/errors/TooManyRequestsError.d.mts +0 -5
- package/dist/esm/api/errors/TooManyRequestsError.mjs +0 -17
- package/dist/esm/api/errors/UnauthorizedError.d.mts +0 -6
- package/dist/esm/api/errors/UnauthorizedError.mjs +0 -17
- package/dist/esm/api/errors/index.d.mts +0 -5
- package/dist/esm/api/errors/index.mjs +0 -5
- package/dist/esm/api/index.d.mts +0 -3
- package/dist/esm/api/index.mjs +0 -3
- package/dist/esm/api/resources/developers/client/Client.d.mts +0 -56
- package/dist/esm/api/resources/developers/client/Client.mjs +0 -149
- package/dist/esm/api/resources/developers/client/index.d.mts +0 -1
- package/dist/esm/api/resources/developers/client/index.mjs +0 -1
- package/dist/esm/api/resources/developers/client/requests/CreateFreeKeyDevelopersRequest.d.mts +0 -10
- package/dist/esm/api/resources/developers/client/requests/CreateFreeKeyDevelopersRequest.mjs +0 -2
- package/dist/esm/api/resources/developers/client/requests/VerifyFreeKeyDevelopersRequest.d.mts +0 -13
- package/dist/esm/api/resources/developers/client/requests/VerifyFreeKeyDevelopersRequest.mjs +0 -2
- package/dist/esm/api/resources/developers/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/developers/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/developers/exports.d.mts +0 -2
- package/dist/esm/api/resources/developers/exports.mjs +0 -3
- package/dist/esm/api/resources/developers/index.d.mts +0 -2
- package/dist/esm/api/resources/developers/index.mjs +0 -2
- package/dist/esm/api/resources/developers/types/CreateFreeKeyDevelopersResponse.d.mts +0 -18
- package/dist/esm/api/resources/developers/types/CreateFreeKeyDevelopersResponse.mjs +0 -2
- package/dist/esm/api/resources/developers/types/VerifyFreeKeyDevelopersResponse.d.mts +0 -12
- package/dist/esm/api/resources/developers/types/VerifyFreeKeyDevelopersResponse.mjs +0 -2
- package/dist/esm/api/resources/developers/types/index.d.mts +0 -2
- package/dist/esm/api/resources/developers/types/index.mjs +0 -2
- package/dist/esm/api/resources/drugSafety/client/Client.d.mts +0 -132
- package/dist/esm/api/resources/drugSafety/client/Client.mjs +0 -253
- package/dist/esm/api/resources/drugSafety/client/index.d.mts +0 -1
- package/dist/esm/api/resources/drugSafety/client/index.mjs +0 -1
- package/dist/esm/api/resources/drugSafety/client/requests/DrugSafetyCheckRequest.d.mts +0 -98
- package/dist/esm/api/resources/drugSafety/client/requests/DrugSafetyCheckRequest.mjs +0 -12
- package/dist/esm/api/resources/drugSafety/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/drugSafety/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/drugSafety/exports.d.mts +0 -2
- package/dist/esm/api/resources/drugSafety/exports.mjs +0 -3
- package/dist/esm/api/resources/drugSafety/index.d.mts +0 -2
- package/dist/esm/api/resources/drugSafety/index.mjs +0 -2
- package/dist/esm/api/resources/drugSafety/types/GetDrugSafetyHealthResponse.d.mts +0 -14
- package/dist/esm/api/resources/drugSafety/types/GetDrugSafetyHealthResponse.mjs +0 -8
- package/dist/esm/api/resources/drugSafety/types/index.d.mts +0 -1
- package/dist/esm/api/resources/drugSafety/types/index.mjs +0 -1
- package/dist/esm/api/resources/index.d.mts +0 -6
- package/dist/esm/api/resources/index.mjs +0 -6
- package/dist/esm/api/types/AdverseEffect.d.mts +0 -43
- package/dist/esm/api/types/AdverseEffect.mjs +0 -2
- package/dist/esm/api/types/Alert.d.mts +0 -70
- package/dist/esm/api/types/Alert.mjs +0 -38
- package/dist/esm/api/types/AllergyCrossReactivityReference.d.mts +0 -16
- package/dist/esm/api/types/AllergyCrossReactivityReference.mjs +0 -2
- package/dist/esm/api/types/AllergyData.d.mts +0 -24
- package/dist/esm/api/types/AllergyData.mjs +0 -8
- package/dist/esm/api/types/AllergyFamilyReference.d.mts +0 -10
- package/dist/esm/api/types/AllergyFamilyReference.mjs +0 -2
- package/dist/esm/api/types/AllergyInputEntry.d.mts +0 -10
- package/dist/esm/api/types/AllergyInputEntry.mjs +0 -2
- package/dist/esm/api/types/AllergyProductFamilyReference.d.mts +0 -9
- package/dist/esm/api/types/AllergyProductFamilyReference.mjs +0 -2
- package/dist/esm/api/types/AllergySummary.d.mts +0 -14
- package/dist/esm/api/types/AllergySummary.mjs +0 -2
- package/dist/esm/api/types/AllergyWarning.d.mts +0 -30
- package/dist/esm/api/types/AllergyWarning.mjs +0 -8
- package/dist/esm/api/types/BadRequestErrorBody.d.mts +0 -3
- package/dist/esm/api/types/BadRequestErrorBody.mjs +0 -2
- package/dist/esm/api/types/BlackBoxWarning.d.mts +0 -15
- package/dist/esm/api/types/BlackBoxWarning.mjs +0 -2
- package/dist/esm/api/types/BlockedResponse.d.mts +0 -9
- package/dist/esm/api/types/BlockedResponse.mjs +0 -2
- package/dist/esm/api/types/ClinicalAlert.d.mts +0 -56
- package/dist/esm/api/types/ClinicalAlert.mjs +0 -2
- package/dist/esm/api/types/ClinicalConcern.d.mts +0 -15
- package/dist/esm/api/types/ClinicalConcern.mjs +0 -2
- package/dist/esm/api/types/ClinicalContextApplied.d.mts +0 -10
- package/dist/esm/api/types/ClinicalContextApplied.mjs +0 -2
- package/dist/esm/api/types/ClinicalData.d.mts +0 -17
- package/dist/esm/api/types/ClinicalData.mjs +0 -2
- package/dist/esm/api/types/Condition.d.mts +0 -22
- package/dist/esm/api/types/Condition.mjs +0 -22
- package/dist/esm/api/types/DailyLimit.d.mts +0 -20
- package/dist/esm/api/types/DailyLimit.mjs +0 -10
- package/dist/esm/api/types/DomainCode.d.mts +0 -20
- package/dist/esm/api/types/DomainCode.mjs +0 -20
- package/dist/esm/api/types/DoseClassification.d.mts +0 -40
- package/dist/esm/api/types/DoseClassification.mjs +0 -19
- package/dist/esm/api/types/DoseComponent.d.mts +0 -30
- package/dist/esm/api/types/DoseComponent.mjs +0 -9
- package/dist/esm/api/types/DosingData.d.mts +0 -63
- package/dist/esm/api/types/DosingData.mjs +0 -15
- package/dist/esm/api/types/DrugClinicalData.d.mts +0 -7
- package/dist/esm/api/types/DrugClinicalData.mjs +0 -2
- package/dist/esm/api/types/DrugSafetyCheckResponse.d.mts +0 -29
- package/dist/esm/api/types/DrugSafetyCheckResponse.mjs +0 -8
- package/dist/esm/api/types/ErrorResponse.d.mts +0 -29
- package/dist/esm/api/types/ErrorResponse.mjs +0 -2
- package/dist/esm/api/types/FoodConflict.d.mts +0 -21
- package/dist/esm/api/types/FoodConflict.mjs +0 -2
- package/dist/esm/api/types/FoodData.d.mts +0 -11
- package/dist/esm/api/types/FoodData.mjs +0 -2
- package/dist/esm/api/types/ForbiddenErrorBody.d.mts +0 -4
- package/dist/esm/api/types/ForbiddenErrorBody.mjs +0 -2
- package/dist/esm/api/types/IdentityMatch.d.mts +0 -13
- package/dist/esm/api/types/IdentityMatch.mjs +0 -2
- package/dist/esm/api/types/IntelligenceClinicalProfile.d.mts +0 -24
- package/dist/esm/api/types/IntelligenceClinicalProfile.mjs +0 -10
- package/dist/esm/api/types/IntelligenceContext.d.mts +0 -17
- package/dist/esm/api/types/IntelligenceContext.mjs +0 -2
- package/dist/esm/api/types/IntelligenceProcessorError.d.mts +0 -4
- package/dist/esm/api/types/IntelligenceProcessorError.mjs +0 -2
- package/dist/esm/api/types/IntelligenceResult.d.mts +0 -16
- package/dist/esm/api/types/IntelligenceResult.mjs +0 -2
- package/dist/esm/api/types/IntelligenceSynthesis.d.mts +0 -6
- package/dist/esm/api/types/IntelligenceSynthesis.mjs +0 -2
- package/dist/esm/api/types/Interaction.d.mts +0 -59
- package/dist/esm/api/types/Interaction.mjs +0 -11
- package/dist/esm/api/types/InteractionSummary.d.mts +0 -13
- package/dist/esm/api/types/InteractionSummary.mjs +0 -2
- package/dist/esm/api/types/InteractionsData.d.mts +0 -11
- package/dist/esm/api/types/InteractionsData.mjs +0 -2
- package/dist/esm/api/types/InternalServerErrorBody.d.mts +0 -3
- package/dist/esm/api/types/InternalServerErrorBody.mjs +0 -2
- package/dist/esm/api/types/MealTiming.d.mts +0 -26
- package/dist/esm/api/types/MealTiming.mjs +0 -2
- package/dist/esm/api/types/MedicationHistoryItem.d.mts +0 -22
- package/dist/esm/api/types/MedicationHistoryItem.mjs +0 -12
- package/dist/esm/api/types/Meta.d.mts +0 -29
- package/dist/esm/api/types/Meta.mjs +0 -11
- package/dist/esm/api/types/MetadataResponse.d.mts +0 -93
- package/dist/esm/api/types/MetadataResponse.mjs +0 -14
- package/dist/esm/api/types/Monitoring.d.mts +0 -22
- package/dist/esm/api/types/Monitoring.mjs +0 -2
- package/dist/esm/api/types/PatientProfile.d.mts +0 -43
- package/dist/esm/api/types/PatientProfile.mjs +0 -17
- package/dist/esm/api/types/Population.d.mts +0 -16
- package/dist/esm/api/types/Population.mjs +0 -16
- package/dist/esm/api/types/PopulationMonitoring.d.mts +0 -26
- package/dist/esm/api/types/PopulationMonitoring.mjs +0 -2
- package/dist/esm/api/types/QuotaMeta.d.mts +0 -11
- package/dist/esm/api/types/QuotaMeta.mjs +0 -2
- package/dist/esm/api/types/RateLimitResponse.d.mts +0 -37
- package/dist/esm/api/types/RateLimitResponse.mjs +0 -10
- package/dist/esm/api/types/ReferenceDose.d.mts +0 -11
- package/dist/esm/api/types/ReferenceDose.mjs +0 -2
- package/dist/esm/api/types/ReproductiveSafetyData.d.mts +0 -58
- package/dist/esm/api/types/ReproductiveSafetyData.mjs +0 -2
- package/dist/esm/api/types/ReproductiveWarning.d.mts +0 -13
- package/dist/esm/api/types/ReproductiveWarning.mjs +0 -2
- package/dist/esm/api/types/ResolvedDrug.d.mts +0 -70
- package/dist/esm/api/types/ResolvedDrug.mjs +0 -2
- package/dist/esm/api/types/SafetyData.d.mts +0 -23
- package/dist/esm/api/types/SafetyData.mjs +0 -2
- package/dist/esm/api/types/SideEffectsData.d.mts +0 -38
- package/dist/esm/api/types/SideEffectsData.mjs +0 -15
- package/dist/esm/api/types/TooManyRequestsErrorBody.d.mts +0 -3
- package/dist/esm/api/types/TooManyRequestsErrorBody.mjs +0 -2
- package/dist/esm/api/types/index.d.mts +0 -55
- package/dist/esm/api/types/index.mjs +0 -55
- package/dist/esm/auth/HeaderAuthProvider.d.mts +0 -20
- package/dist/esm/auth/HeaderAuthProvider.mjs +0 -43
- package/dist/esm/auth/index.d.mts +0 -1
- package/dist/esm/auth/index.mjs +0 -1
- package/dist/esm/core/auth/AuthProvider.d.mts +0 -7
- package/dist/esm/core/auth/AuthProvider.mjs +0 -1
- package/dist/esm/core/auth/AuthRequest.d.mts +0 -9
- package/dist/esm/core/auth/AuthRequest.mjs +0 -1
- package/dist/esm/core/auth/BasicAuth.d.mts +0 -8
- package/dist/esm/core/auth/BasicAuth.mjs +0 -24
- package/dist/esm/core/auth/BearerToken.d.mts +0 -7
- package/dist/esm/core/auth/BearerToken.mjs +0 -13
- package/dist/esm/core/auth/NoOpAuthProvider.d.mts +0 -5
- package/dist/esm/core/auth/NoOpAuthProvider.mjs +0 -5
- package/dist/esm/core/auth/index.d.mts +0 -5
- package/dist/esm/core/auth/index.mjs +0 -3
- package/dist/esm/core/base64.d.mts +0 -2
- package/dist/esm/core/base64.mjs +0 -22
- package/dist/esm/core/exports.d.mts +0 -1
- package/dist/esm/core/exports.mjs +0 -1
- package/dist/esm/core/fetcher/APIResponse.d.mts +0 -20
- package/dist/esm/core/fetcher/APIResponse.mjs +0 -1
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +0 -19
- package/dist/esm/core/fetcher/BinaryResponse.mjs +0 -14
- package/dist/esm/core/fetcher/EndpointMetadata.d.mts +0 -13
- package/dist/esm/core/fetcher/EndpointMetadata.mjs +0 -1
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +0 -12
- package/dist/esm/core/fetcher/EndpointSupplier.mjs +0 -19
- package/dist/esm/core/fetcher/Fetcher.d.mts +0 -48
- package/dist/esm/core/fetcher/Fetcher.mjs +0 -318
- package/dist/esm/core/fetcher/Headers.d.mts +0 -2
- package/dist/esm/core/fetcher/Headers.mjs +0 -82
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +0 -58
- package/dist/esm/core/fetcher/HttpResponsePromise.mjs +0 -99
- package/dist/esm/core/fetcher/RawResponse.d.mts +0 -29
- package/dist/esm/core/fetcher/RawResponse.mjs +0 -40
- package/dist/esm/core/fetcher/Supplier.d.mts +0 -4
- package/dist/esm/core/fetcher/Supplier.mjs +0 -19
- package/dist/esm/core/fetcher/createRequestUrl.d.mts +0 -1
- package/dist/esm/core/fetcher/createRequestUrl.mjs +0 -5
- package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +0 -1
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +0 -42
- package/dist/esm/core/fetcher/getFetchFn.d.mts +0 -1
- package/dist/esm/core/fetcher/getFetchFn.mjs +0 -14
- package/dist/esm/core/fetcher/getHeader.d.mts +0 -1
- package/dist/esm/core/fetcher/getHeader.mjs +0 -8
- package/dist/esm/core/fetcher/getRequestBody.d.mts +0 -7
- package/dist/esm/core/fetcher/getRequestBody.mjs +0 -24
- package/dist/esm/core/fetcher/getResponseBody.d.mts +0 -1
- package/dist/esm/core/fetcher/getResponseBody.mjs +0 -66
- package/dist/esm/core/fetcher/index.d.mts +0 -13
- package/dist/esm/core/fetcher/index.mjs +0 -7
- package/dist/esm/core/fetcher/makePassthroughRequest.d.mts +0 -49
- package/dist/esm/core/fetcher/makePassthroughRequest.mjs +0 -132
- package/dist/esm/core/fetcher/makeRequest.d.mts +0 -6
- package/dist/esm/core/fetcher/makeRequest.mjs +0 -55
- package/dist/esm/core/fetcher/requestWithRetries.d.mts +0 -1
- package/dist/esm/core/fetcher/requestWithRetries.mjs +0 -64
- package/dist/esm/core/fetcher/signals.d.mts +0 -5
- package/dist/esm/core/fetcher/signals.mjs +0 -20
- package/dist/esm/core/headers.d.mts +0 -2
- package/dist/esm/core/headers.mjs +0 -27
- package/dist/esm/core/index.d.mts +0 -6
- package/dist/esm/core/index.mjs +0 -6
- package/dist/esm/core/json.d.mts +0 -15
- package/dist/esm/core/json.mjs +0 -19
- package/dist/esm/core/logging/exports.d.mts +0 -18
- package/dist/esm/core/logging/exports.mjs +0 -9
- package/dist/esm/core/logging/index.d.mts +0 -1
- package/dist/esm/core/logging/index.mjs +0 -1
- package/dist/esm/core/logging/logger.d.mts +0 -126
- package/dist/esm/core/logging/logger.mjs +0 -138
- package/dist/esm/core/runtime/index.d.mts +0 -1
- package/dist/esm/core/runtime/index.mjs +0 -1
- package/dist/esm/core/runtime/runtime.d.mts +0 -9
- package/dist/esm/core/runtime/runtime.mjs +0 -101
- package/dist/esm/core/url/encodePathParam.d.mts +0 -1
- package/dist/esm/core/url/encodePathParam.mjs +0 -18
- package/dist/esm/core/url/index.d.mts +0 -3
- package/dist/esm/core/url/index.mjs +0 -3
- package/dist/esm/core/url/join.d.mts +0 -1
- package/dist/esm/core/url/join.mjs +0 -65
- package/dist/esm/core/url/qs.d.mts +0 -6
- package/dist/esm/core/url/qs.mjs +0 -61
- package/dist/esm/environments.d.mts +0 -4
- package/dist/esm/environments.mjs +0 -4
- package/dist/esm/errors/SafeRxError.d.mts +0 -12
- package/dist/esm/errors/SafeRxError.mjs +0 -28
- package/dist/esm/errors/SafeRxTimeoutError.d.mts +0 -3
- package/dist/esm/errors/SafeRxTimeoutError.mjs +0 -11
- package/dist/esm/errors/handleNonStatusCodeError.d.mts +0 -2
- package/dist/esm/errors/handleNonStatusCodeError.mjs +0 -29
- package/dist/esm/errors/index.d.mts +0 -2
- package/dist/esm/errors/index.mjs +0 -2
- package/dist/esm/exports.d.mts +0 -1
- package/dist/esm/exports.mjs +0 -1
- package/dist/esm/index.d.mts +0 -6
- package/dist/esm/index.mjs +0 -5
- package/dist/esm/version.d.mts +0 -1
- package/dist/esm/version.mjs +0 -1
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type * as SafeRx from "../index.mjs";
|
|
2
|
-
export interface ErrorResponse {
|
|
3
|
-
/** Error indicator or error message */
|
|
4
|
-
error?: ErrorResponse.Error_ | undefined;
|
|
5
|
-
/** Machine-readable error code */
|
|
6
|
-
code?: string | undefined;
|
|
7
|
-
/** Human-readable error description */
|
|
8
|
-
message?: string | undefined;
|
|
9
|
-
/** HTTP status code */
|
|
10
|
-
status?: number | undefined;
|
|
11
|
-
/** API tier of the caller (present on limit errors) */
|
|
12
|
-
tier?: string | undefined;
|
|
13
|
-
/** Number of items submitted (present on count limit errors) */
|
|
14
|
-
your_count?: number | undefined;
|
|
15
|
-
/** Upgrade guidance */
|
|
16
|
-
hint?: string | undefined;
|
|
17
|
-
/** Support email for assistance */
|
|
18
|
-
support?: string | undefined;
|
|
19
|
-
/** Invalid safety domain codes supplied in `include`. */
|
|
20
|
-
invalid_domains?: string[] | undefined;
|
|
21
|
-
/** Valid safety domain codes. */
|
|
22
|
-
valid_domains?: SafeRx.DomainCode[] | undefined;
|
|
23
|
-
}
|
|
24
|
-
export declare namespace ErrorResponse {
|
|
25
|
-
/**
|
|
26
|
-
* Error indicator or error message
|
|
27
|
-
*/
|
|
28
|
-
type Error_ = boolean | string;
|
|
29
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A specific food-drug interaction (bilingual)
|
|
3
|
-
*/
|
|
4
|
-
export interface FoodConflict {
|
|
5
|
-
/** Food item or food category involved */
|
|
6
|
-
food?: string | undefined;
|
|
7
|
-
/** Food category identifier */
|
|
8
|
-
food_category?: string | undefined;
|
|
9
|
-
/** Specific foods affected */
|
|
10
|
-
affected_foods?: string[] | undefined;
|
|
11
|
-
/** Interaction severity (1-5) */
|
|
12
|
-
severity?: number | undefined;
|
|
13
|
-
/** Pharmacological interaction mechanism */
|
|
14
|
-
interaction_type?: string | undefined;
|
|
15
|
-
/** Patient guidance in English */
|
|
16
|
-
brief_en?: string | undefined;
|
|
17
|
-
/** Patient guidance in Arabic */
|
|
18
|
-
brief_ar?: string | undefined;
|
|
19
|
-
/** Required patient action */
|
|
20
|
-
action_required?: string | undefined;
|
|
21
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type * as SafeRx from "../index.mjs";
|
|
2
|
-
/**
|
|
3
|
-
* Food-drug interaction data for a single drug
|
|
4
|
-
*/
|
|
5
|
-
export interface FoodData {
|
|
6
|
-
timing?: SafeRx.MealTiming | undefined;
|
|
7
|
-
/** Specific food-drug conflicts */
|
|
8
|
-
conflicts?: SafeRx.FoodConflict[] | undefined;
|
|
9
|
-
/** Total number of food conflicts (may exceed items in `conflicts` array) */
|
|
10
|
-
conflict_count?: number | undefined;
|
|
11
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Non-sensitive drug identity resolution metadata for auditability.
|
|
3
|
-
*/
|
|
4
|
-
export interface IdentityMatch {
|
|
5
|
-
/** Resolver path that produced the match. */
|
|
6
|
-
method?: string | undefined;
|
|
7
|
-
/** Match confidence score. */
|
|
8
|
-
confidence?: number | undefined;
|
|
9
|
-
/** Public drug field used for the match. */
|
|
10
|
-
matched_field?: string | undefined;
|
|
11
|
-
/** Public-safe value that matched the input. */
|
|
12
|
-
matched_value?: string | undefined;
|
|
13
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Patient profile fields used by intelligence processors.
|
|
3
|
-
*/
|
|
4
|
-
export interface IntelligenceClinicalProfile {
|
|
5
|
-
age?: number | undefined;
|
|
6
|
-
/** Creatinine clearance in mL/min. */
|
|
7
|
-
crcl?: number | undefined;
|
|
8
|
-
hepatic_status?: IntelligenceClinicalProfile.HepaticStatus | undefined;
|
|
9
|
-
pregnancy?: boolean | undefined;
|
|
10
|
-
lactation?: boolean | undefined;
|
|
11
|
-
conditions?: string[] | undefined;
|
|
12
|
-
populations?: string[] | undefined;
|
|
13
|
-
allergies?: string[] | undefined;
|
|
14
|
-
diet_habits?: string[] | undefined;
|
|
15
|
-
}
|
|
16
|
-
export declare namespace IntelligenceClinicalProfile {
|
|
17
|
-
const HepaticStatus: {
|
|
18
|
-
readonly Normal: "normal";
|
|
19
|
-
readonly Mild: "mild";
|
|
20
|
-
readonly Moderate: "moderate";
|
|
21
|
-
readonly Severe: "severe";
|
|
22
|
-
};
|
|
23
|
-
type HepaticStatus = (typeof HepaticStatus)[keyof typeof HepaticStatus];
|
|
24
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export var IntelligenceClinicalProfile;
|
|
3
|
-
(function (IntelligenceClinicalProfile) {
|
|
4
|
-
IntelligenceClinicalProfile.HepaticStatus = {
|
|
5
|
-
Normal: "normal",
|
|
6
|
-
Mild: "mild",
|
|
7
|
-
Moderate: "moderate",
|
|
8
|
-
Severe: "severe",
|
|
9
|
-
};
|
|
10
|
-
})(IntelligenceClinicalProfile || (IntelligenceClinicalProfile = {}));
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type * as SafeRx from "../index.mjs";
|
|
2
|
-
/**
|
|
3
|
-
* Optional Medication Intelligence Platform context. When present and the
|
|
4
|
-
* intelligence layer is enabled, SafeRx adds a top-level `intelligence`
|
|
5
|
-
* block without changing the standard safety response.
|
|
6
|
-
*/
|
|
7
|
-
export interface IntelligenceContext {
|
|
8
|
-
/** Optional caller-side patient or profile identifier. */
|
|
9
|
-
user_id?: string | undefined;
|
|
10
|
-
clinical_profile?: SafeRx.IntelligenceClinicalProfile | undefined;
|
|
11
|
-
/**
|
|
12
|
-
* Longitudinal medication list used for active-medication cumulative
|
|
13
|
-
* dose tracking. Items with `status: historical` are retained as
|
|
14
|
-
* context but excluded from active overdose aggregation.
|
|
15
|
-
*/
|
|
16
|
-
medication_history?: SafeRx.MedicationHistoryItem[] | undefined;
|
|
17
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type * as SafeRx from "../index.mjs";
|
|
2
|
-
/**
|
|
3
|
-
* Optional Medication Intelligence Platform post-processing output.
|
|
4
|
-
*/
|
|
5
|
-
export interface IntelligenceResult {
|
|
6
|
-
status?: string | undefined;
|
|
7
|
-
/** Active-medication cumulative dose warnings. */
|
|
8
|
-
cumulative_warnings?: Record<string, unknown>[] | undefined;
|
|
9
|
-
synthesis?: SafeRx.IntelligenceSynthesis | undefined;
|
|
10
|
-
/** Allergy/profile-filtered alternative candidates keyed by source `sfrx_id`. */
|
|
11
|
-
safer_alternatives?: Record<string, unknown> | undefined;
|
|
12
|
-
/** Best-effort processor errors; standard safety output remains valid. */
|
|
13
|
-
processor_errors?: SafeRx.IntelligenceProcessorError[] | undefined;
|
|
14
|
-
/** Top-level degradation reason when the whole intelligence layer fails. */
|
|
15
|
-
error?: string | undefined;
|
|
16
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export interface IntelligenceSynthesis {
|
|
2
|
-
cross_domain_findings?: Record<string, unknown>[] | undefined;
|
|
3
|
-
summary?: string | undefined;
|
|
4
|
-
/** Condition-specific adverse effects elevated for the supplied context. */
|
|
5
|
-
predictive_ae?: Record<string, unknown>[] | undefined;
|
|
6
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export interface Interaction {
|
|
2
|
-
/** sfrx_id of the first drug in the interaction pair */
|
|
3
|
-
sfrx_id_1?: string | undefined;
|
|
4
|
-
/** sfrx_id of the second drug in the interaction pair */
|
|
5
|
-
sfrx_id_2?: string | undefined;
|
|
6
|
-
/**
|
|
7
|
-
* Interaction severity level (clinical interactions only).
|
|
8
|
-
* - `1` — Minor: minimal clinical significance
|
|
9
|
-
* - `2` — Moderate: may require monitoring or dose adjustment
|
|
10
|
-
* - `3` — Major: avoid combination if possible, close monitoring required
|
|
11
|
-
* - `4` — Contraindicated: do not use together
|
|
12
|
-
*
|
|
13
|
-
* The API filters out noise interactions (severity ≤ 0) by default.
|
|
14
|
-
* The internal V8 scale extends to -3 (noise) and 0 (unknown),
|
|
15
|
-
* but these are never returned in the public response.
|
|
16
|
-
*/
|
|
17
|
-
severity?: number | undefined;
|
|
18
|
-
/**
|
|
19
|
-
* Original severity before route-based or noise adjustments.
|
|
20
|
-
* Uses the full V8 scale: -3 (decreased efficacy), -2 (pharmacokinetic),
|
|
21
|
-
* -1 (metabolic), 0 (unknown), 1-4 (clinical). May differ from
|
|
22
|
-
* `severity` when route adjustments apply.
|
|
23
|
-
*/
|
|
24
|
-
base_severity?: number | undefined;
|
|
25
|
-
/** Human-readable severity label */
|
|
26
|
-
severity_name?: Interaction.SeverityName | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Noise classification for this interaction, if applicable.
|
|
29
|
-
* Null for clinically significant interactions. Possible values:
|
|
30
|
-
* `"DECREASED_EFFICACY"`, `"PHARMACOKINETIC"`, `"METABOLIC"`.
|
|
31
|
-
*/
|
|
32
|
-
noise_type?: (string | null) | undefined;
|
|
33
|
-
/** Interaction mechanism or clinical description (English) */
|
|
34
|
-
description?: string | undefined;
|
|
35
|
-
/** Interaction description in Arabic */
|
|
36
|
-
description_ar?: string | undefined;
|
|
37
|
-
/** Expected clinical effect of the interaction (English) */
|
|
38
|
-
clinical_effect?: (string | null) | undefined;
|
|
39
|
-
/** Expected clinical effect in Arabic */
|
|
40
|
-
clinical_effect_ar?: (string | null) | undefined;
|
|
41
|
-
/** Clinical management strategy (English) */
|
|
42
|
-
management?: (string | null) | undefined;
|
|
43
|
-
/** Clinical management strategy in Arabic */
|
|
44
|
-
management_ar?: (string | null) | undefined;
|
|
45
|
-
/** Clinical recommendation for managing this interaction (English) */
|
|
46
|
-
recommendation?: string | undefined;
|
|
47
|
-
/** Clinical recommendation in Arabic */
|
|
48
|
-
recommendation_ar?: string | undefined;
|
|
49
|
-
}
|
|
50
|
-
export declare namespace Interaction {
|
|
51
|
-
/** Human-readable severity label */
|
|
52
|
-
const SeverityName: {
|
|
53
|
-
readonly Minor: "MINOR";
|
|
54
|
-
readonly Moderate: "MODERATE";
|
|
55
|
-
readonly Major: "MAJOR";
|
|
56
|
-
readonly Contraindicated: "CONTRAINDICATED";
|
|
57
|
-
};
|
|
58
|
-
type SeverityName = (typeof SeverityName)[keyof typeof SeverityName];
|
|
59
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export var Interaction;
|
|
3
|
-
(function (Interaction) {
|
|
4
|
-
/** Human-readable severity label */
|
|
5
|
-
Interaction.SeverityName = {
|
|
6
|
-
Minor: "MINOR",
|
|
7
|
-
Moderate: "MODERATE",
|
|
8
|
-
Major: "MAJOR",
|
|
9
|
-
Contraindicated: "CONTRAINDICATED",
|
|
10
|
-
};
|
|
11
|
-
})(Interaction || (Interaction = {}));
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Interaction count by severity level for quick triage
|
|
3
|
-
*/
|
|
4
|
-
export interface InteractionSummary {
|
|
5
|
-
/** Number of contraindicated (severity 4) interactions */
|
|
6
|
-
contraindicated?: number | undefined;
|
|
7
|
-
/** Number of major (severity 3) interactions */
|
|
8
|
-
major?: number | undefined;
|
|
9
|
-
/** Number of moderate (severity 2) interactions */
|
|
10
|
-
moderate?: number | undefined;
|
|
11
|
-
/** Number of minor (severity 1) interactions */
|
|
12
|
-
minor?: number | undefined;
|
|
13
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type * as SafeRx from "../index.mjs";
|
|
2
|
-
/**
|
|
3
|
-
* Drug-drug interaction results. Requires 2 or more resolved drugs.
|
|
4
|
-
* If only 1 drug is resolved, returns count=0 with empty interactions array.
|
|
5
|
-
*/
|
|
6
|
-
export interface InteractionsData {
|
|
7
|
-
/** Total number of interactions found */
|
|
8
|
-
count?: number | undefined;
|
|
9
|
-
summary?: SafeRx.InteractionSummary | undefined;
|
|
10
|
-
interactions?: SafeRx.Interaction[] | undefined;
|
|
11
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Meal timing recommendation
|
|
3
|
-
*/
|
|
4
|
-
export interface MealTiming {
|
|
5
|
-
/**
|
|
6
|
-
* Timing category code.
|
|
7
|
-
* Common values: `WITH_FOOD`, `EMPTY_STOMACH`, `WITH_OR_WITHOUT_FOOD`,
|
|
8
|
-
* `NO_RESTRICTION`, `BEFORE_MEALS`, `AFTER_MEALS`
|
|
9
|
-
*/
|
|
10
|
-
category?: string | undefined;
|
|
11
|
-
/**
|
|
12
|
-
* How important is adherence to this timing.
|
|
13
|
-
* Values: `MUST`, `PREFERRED`, `OPTIONAL`, `NO_RESTRICTION`
|
|
14
|
-
*/
|
|
15
|
-
importance?: string | undefined;
|
|
16
|
-
/** Full recommendation text (English) */
|
|
17
|
-
recommendation?: string | undefined;
|
|
18
|
-
/** Full recommendation text (Arabic) */
|
|
19
|
-
recommendation_ar?: string | undefined;
|
|
20
|
-
/** Evidence source for this recommendation */
|
|
21
|
-
evidence_level?: string | undefined;
|
|
22
|
-
/** Severity of non-adherence consequences (1-5) */
|
|
23
|
-
severity?: number | undefined;
|
|
24
|
-
/** Clinical rationale for the timing recommendation */
|
|
25
|
-
rationale?: string | undefined;
|
|
26
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface MedicationHistoryItem {
|
|
2
|
-
/** SafeRx product identifier. */
|
|
3
|
-
sfrx_id: string;
|
|
4
|
-
/** Caller-provided start date, preferably ISO 8601. */
|
|
5
|
-
start_date?: string | undefined;
|
|
6
|
-
/**
|
|
7
|
-
* Active medications participate in cumulative dose checks.
|
|
8
|
-
* Historical medications are retained as context only.
|
|
9
|
-
*/
|
|
10
|
-
status?: MedicationHistoryItem.Status | undefined;
|
|
11
|
-
}
|
|
12
|
-
export declare namespace MedicationHistoryItem {
|
|
13
|
-
/**
|
|
14
|
-
* Active medications participate in cumulative dose checks.
|
|
15
|
-
* Historical medications are retained as context only.
|
|
16
|
-
*/
|
|
17
|
-
const Status: {
|
|
18
|
-
readonly Active: "active";
|
|
19
|
-
readonly Historical: "historical";
|
|
20
|
-
};
|
|
21
|
-
type Status = (typeof Status)[keyof typeof Status];
|
|
22
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export var MedicationHistoryItem;
|
|
3
|
-
(function (MedicationHistoryItem) {
|
|
4
|
-
/**
|
|
5
|
-
* Active medications participate in cumulative dose checks.
|
|
6
|
-
* Historical medications are retained as context only.
|
|
7
|
-
*/
|
|
8
|
-
MedicationHistoryItem.Status = {
|
|
9
|
-
Active: "active",
|
|
10
|
-
Historical: "historical",
|
|
11
|
-
};
|
|
12
|
-
})(MedicationHistoryItem || (MedicationHistoryItem = {}));
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type * as SafeRx from "../index.mjs";
|
|
2
|
-
/**
|
|
3
|
-
* Request metadata and performance information
|
|
4
|
-
*/
|
|
5
|
-
export interface Meta {
|
|
6
|
-
/** Server-side processing time in milliseconds */
|
|
7
|
-
processing_time_ms?: number | undefined;
|
|
8
|
-
/** Domains that were actually checked */
|
|
9
|
-
domains_checked?: SafeRx.DomainCode[] | undefined;
|
|
10
|
-
/** Number of drugs submitted */
|
|
11
|
-
drug_count?: number | undefined;
|
|
12
|
-
/** Number of drugs successfully resolved */
|
|
13
|
-
resolved_count?: number | undefined;
|
|
14
|
-
/** Number of drugs that could not be resolved */
|
|
15
|
-
unresolved_count?: number | undefined;
|
|
16
|
-
/** Caller's current tier */
|
|
17
|
-
tier?: Meta.Tier | undefined;
|
|
18
|
-
quota?: SafeRx.QuotaMeta | undefined;
|
|
19
|
-
}
|
|
20
|
-
export declare namespace Meta {
|
|
21
|
-
/** Caller's current tier */
|
|
22
|
-
const Tier: {
|
|
23
|
-
readonly Free: "free";
|
|
24
|
-
readonly Startup: "startup";
|
|
25
|
-
readonly Pro: "pro";
|
|
26
|
-
readonly Enterprise: "enterprise";
|
|
27
|
-
};
|
|
28
|
-
type Tier = (typeof Tier)[keyof typeof Tier];
|
|
29
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export var Meta;
|
|
3
|
-
(function (Meta) {
|
|
4
|
-
/** Caller's current tier */
|
|
5
|
-
Meta.Tier = {
|
|
6
|
-
Free: "free",
|
|
7
|
-
Startup: "startup",
|
|
8
|
-
Pro: "pro",
|
|
9
|
-
Enterprise: "enterprise",
|
|
10
|
-
};
|
|
11
|
-
})(Meta || (Meta = {}));
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import type * as SafeRx from "../index.mjs";
|
|
2
|
-
export interface MetadataResponse {
|
|
3
|
-
status: MetadataResponse.Status;
|
|
4
|
-
/** Maximum drugs allowed per request for your tier */
|
|
5
|
-
max_drugs_per_request?: number | undefined;
|
|
6
|
-
/** All available safety domains */
|
|
7
|
-
available_domains: SafeRx.DomainCode[];
|
|
8
|
-
/** Valid values for the `patient_profile` field */
|
|
9
|
-
patient_profile_options: MetadataResponse.PatientProfileOptions;
|
|
10
|
-
/** Risk/severity scales used across domains */
|
|
11
|
-
risk_scales: MetadataResponse.RiskScales;
|
|
12
|
-
/** Current database versions */
|
|
13
|
-
database_versions?: MetadataResponse.DatabaseVersions | undefined;
|
|
14
|
-
/** Database coverage statistics */
|
|
15
|
-
database_stats?: MetadataResponse.DatabaseStats | undefined;
|
|
16
|
-
/** Supported response languages */
|
|
17
|
-
supported_languages?: string[] | undefined;
|
|
18
|
-
/** Caller's current tier */
|
|
19
|
-
tier?: MetadataResponse.Tier | undefined;
|
|
20
|
-
}
|
|
21
|
-
export declare namespace MetadataResponse {
|
|
22
|
-
const Status: {
|
|
23
|
-
readonly Success: "success";
|
|
24
|
-
};
|
|
25
|
-
type Status = (typeof Status)[keyof typeof Status];
|
|
26
|
-
/**
|
|
27
|
-
* Valid values for the `patient_profile` field
|
|
28
|
-
*/
|
|
29
|
-
interface PatientProfileOptions {
|
|
30
|
-
populations?: SafeRx.Population[] | undefined;
|
|
31
|
-
conditions?: SafeRx.Condition[] | undefined;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Risk/severity scales used across domains
|
|
35
|
-
*/
|
|
36
|
-
interface RiskScales {
|
|
37
|
-
/** Pregnancy risk scale: integer key → label */
|
|
38
|
-
pllr_pregnancy?: Record<string, string> | undefined;
|
|
39
|
-
/** Lactation risk scale: integer key → label */
|
|
40
|
-
pllr_lactation?: Record<string, string> | undefined;
|
|
41
|
-
/** Adverse effect risk levels */
|
|
42
|
-
ae_risk_levels?: string[] | undefined;
|
|
43
|
-
/** DDI severity scale: integer key → label */
|
|
44
|
-
ddi_severity?: Record<string, string> | undefined;
|
|
45
|
-
/** Allergy warning severity scale: integer key → label */
|
|
46
|
-
allergy_severity?: Record<string, string> | undefined;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Current database versions
|
|
50
|
-
*/
|
|
51
|
-
interface DatabaseVersions {
|
|
52
|
-
ae?: string | undefined;
|
|
53
|
-
ddi?: string | undefined;
|
|
54
|
-
clinical?: string | undefined;
|
|
55
|
-
pllr?: string | undefined;
|
|
56
|
-
food?: string | undefined;
|
|
57
|
-
clinical_dose?: string | undefined;
|
|
58
|
-
allergy?: string | undefined;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Database coverage statistics
|
|
62
|
-
*/
|
|
63
|
-
interface DatabaseStats {
|
|
64
|
-
/** Products with adverse effect data */
|
|
65
|
-
ae_products?: number | undefined;
|
|
66
|
-
/** Percentage of products with AE coverage */
|
|
67
|
-
ae_coverage_percent?: number | undefined;
|
|
68
|
-
/** Total drug-drug interaction pairs */
|
|
69
|
-
ddi_total_pairs?: number | undefined;
|
|
70
|
-
/** Number of supported conditions */
|
|
71
|
-
clinical_conditions?: number | undefined;
|
|
72
|
-
/** Number of supported populations */
|
|
73
|
-
clinical_populations?: number | undefined;
|
|
74
|
-
/** Products with dose data */
|
|
75
|
-
clinical_dose_products?: number | undefined;
|
|
76
|
-
/** Dose data schema version */
|
|
77
|
-
clinical_dose_schema_version?: string | undefined;
|
|
78
|
-
/** Products with allergy reference data */
|
|
79
|
-
allergy_products?: number | undefined;
|
|
80
|
-
/** Allergy family count */
|
|
81
|
-
allergy_families?: number | undefined;
|
|
82
|
-
/** Allergy family cross-reaction pair count */
|
|
83
|
-
allergy_cross_reaction_pairs?: number | undefined;
|
|
84
|
-
}
|
|
85
|
-
/** Caller's current tier */
|
|
86
|
-
const Tier: {
|
|
87
|
-
readonly Free: "free";
|
|
88
|
-
readonly Startup: "startup";
|
|
89
|
-
readonly Pro: "pro";
|
|
90
|
-
readonly Enterprise: "enterprise";
|
|
91
|
-
};
|
|
92
|
-
type Tier = (typeof Tier)[keyof typeof Tier];
|
|
93
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export var MetadataResponse;
|
|
3
|
-
(function (MetadataResponse) {
|
|
4
|
-
MetadataResponse.Status = {
|
|
5
|
-
Success: "success",
|
|
6
|
-
};
|
|
7
|
-
/** Caller's current tier */
|
|
8
|
-
MetadataResponse.Tier = {
|
|
9
|
-
Free: "free",
|
|
10
|
-
Startup: "startup",
|
|
11
|
-
Pro: "pro",
|
|
12
|
-
Enterprise: "enterprise",
|
|
13
|
-
};
|
|
14
|
-
})(MetadataResponse || (MetadataResponse = {}));
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type * as SafeRx from "../index.mjs";
|
|
2
|
-
/**
|
|
3
|
-
* Recommended monitoring parameters for this drug
|
|
4
|
-
*/
|
|
5
|
-
export interface Monitoring {
|
|
6
|
-
/** Drug name for context */
|
|
7
|
-
drug?: string | undefined;
|
|
8
|
-
/** Lab tests and clinical parameters to monitor */
|
|
9
|
-
parameters?: string[] | undefined;
|
|
10
|
-
/** Recommended monitoring frequency */
|
|
11
|
-
schedule?: string | undefined;
|
|
12
|
-
/** Contraindication notes */
|
|
13
|
-
contraindications?: string[] | undefined;
|
|
14
|
-
/** Population-specific monitoring considerations */
|
|
15
|
-
populations?: Record<string, SafeRx.PopulationMonitoring> | undefined;
|
|
16
|
-
/** Maximum daily dose information, if available */
|
|
17
|
-
daily_dose_limit?: (SafeRx.DailyLimit | null) | undefined;
|
|
18
|
-
/** Whether this drug has a BBW (duplicated for convenience) */
|
|
19
|
-
has_black_box_warning?: boolean | undefined;
|
|
20
|
-
/** Data sources used for monitoring recommendations */
|
|
21
|
-
data_sources?: string[] | undefined;
|
|
22
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type * as SafeRx from "../index.mjs";
|
|
2
|
-
/**
|
|
3
|
-
* Patient context for personalized safety screening. When provided,
|
|
4
|
-
* the `clinical` domain returns population-specific warnings and
|
|
5
|
-
* condition-drug interaction alerts tailored to this patient.
|
|
6
|
-
*/
|
|
7
|
-
export interface PatientProfile {
|
|
8
|
-
/** Patient populations (e.g., geriatric, renal impairment) */
|
|
9
|
-
populations?: SafeRx.Population[] | undefined;
|
|
10
|
-
/** Patient comorbidities (e.g., diabetes, hypertension) */
|
|
11
|
-
conditions?: SafeRx.Condition[] | undefined;
|
|
12
|
-
/** Known patient allergies for the `allergy` domain. */
|
|
13
|
-
allergies?: string[] | undefined;
|
|
14
|
-
/** Patient age in years. Used to infer pediatric or geriatric clinical-dose context. */
|
|
15
|
-
age?: number | undefined;
|
|
16
|
-
/** Patient weight in kilograms. Used for pediatric weight-based dose context when available. */
|
|
17
|
-
weight_kg?: number | undefined;
|
|
18
|
-
/** Creatinine clearance in mL/min. Supplying this infers the `renal` population and returns matched renal dose-adjustment context when available. */
|
|
19
|
-
crcl?: number | undefined;
|
|
20
|
-
/** eGFR value accepted as a fallback renal-function input when `crcl` is not supplied. */
|
|
21
|
-
egfr?: number | undefined;
|
|
22
|
-
/** Child-Pugh class. Supplying this infers the `hepatic` population and returns matched hepatic dose-adjustment context when available. */
|
|
23
|
-
child_pugh?: PatientProfile.ChildPugh | undefined;
|
|
24
|
-
/** Hepatic impairment severity. `mild`, `moderate`, and `severe` map to hepatic clinical-dose context when `child_pugh` is not supplied. */
|
|
25
|
-
hepatic_status?: PatientProfile.HepaticStatus | undefined;
|
|
26
|
-
}
|
|
27
|
-
export declare namespace PatientProfile {
|
|
28
|
-
/** Child-Pugh class. Supplying this infers the `hepatic` population and returns matched hepatic dose-adjustment context when available. */
|
|
29
|
-
const ChildPugh: {
|
|
30
|
-
readonly A: "A";
|
|
31
|
-
readonly B: "B";
|
|
32
|
-
readonly C: "C";
|
|
33
|
-
};
|
|
34
|
-
type ChildPugh = (typeof ChildPugh)[keyof typeof ChildPugh];
|
|
35
|
-
/** Hepatic impairment severity. `mild`, `moderate`, and `severe` map to hepatic clinical-dose context when `child_pugh` is not supplied. */
|
|
36
|
-
const HepaticStatus: {
|
|
37
|
-
readonly Normal: "normal";
|
|
38
|
-
readonly Mild: "mild";
|
|
39
|
-
readonly Moderate: "moderate";
|
|
40
|
-
readonly Severe: "severe";
|
|
41
|
-
};
|
|
42
|
-
type HepaticStatus = (typeof HepaticStatus)[keyof typeof HepaticStatus];
|
|
43
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export var PatientProfile;
|
|
3
|
-
(function (PatientProfile) {
|
|
4
|
-
/** Child-Pugh class. Supplying this infers the `hepatic` population and returns matched hepatic dose-adjustment context when available. */
|
|
5
|
-
PatientProfile.ChildPugh = {
|
|
6
|
-
A: "A",
|
|
7
|
-
B: "B",
|
|
8
|
-
C: "C",
|
|
9
|
-
};
|
|
10
|
-
/** Hepatic impairment severity. `mild`, `moderate`, and `severe` map to hepatic clinical-dose context when `child_pugh` is not supplied. */
|
|
11
|
-
PatientProfile.HepaticStatus = {
|
|
12
|
-
Normal: "normal",
|
|
13
|
-
Mild: "mild",
|
|
14
|
-
Moderate: "moderate",
|
|
15
|
-
Severe: "severe",
|
|
16
|
-
};
|
|
17
|
-
})(PatientProfile || (PatientProfile = {}));
|