phenoml 17.7.0 → 17.9.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/dist/cjs/BaseClient.d.ts +12 -0
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +6 -0
- package/dist/cjs/Client.js +20 -10
- package/dist/cjs/api/resources/agent/client/Client.js +4 -3
- package/dist/cjs/api/resources/agent/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/agent/errors/ConflictError.js +1 -1
- package/dist/cjs/api/resources/agent/errors/ForbiddenError.js +1 -1
- package/dist/cjs/api/resources/agent/errors/GatewayTimeoutError.js +1 -1
- package/dist/cjs/api/resources/agent/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/resources/agent/errors/NotFoundError.js +1 -1
- package/dist/cjs/api/resources/agent/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/agent/resources/chat/client/Client.js +3 -2
- package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +4 -3
- package/dist/cjs/api/resources/authtoken/client/Client.js +2 -1
- package/dist/cjs/api/resources/authtoken/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/authtoken/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/cohort/client/Client.js +2 -1
- package/dist/cjs/api/resources/cohort/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/cohort/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/construe/client/Client.js +2 -1
- package/dist/cjs/api/resources/construe/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/construe/errors/ConflictError.js +1 -1
- package/dist/cjs/api/resources/construe/errors/FailedDependencyError.js +1 -1
- package/dist/cjs/api/resources/construe/errors/ForbiddenError.js +1 -1
- package/dist/cjs/api/resources/construe/errors/GatewayTimeoutError.js +1 -1
- package/dist/cjs/api/resources/construe/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/resources/construe/errors/NotFoundError.js +1 -1
- package/dist/cjs/api/resources/construe/errors/NotImplementedError.js +1 -1
- package/dist/cjs/api/resources/construe/errors/ServiceUnavailableError.js +1 -1
- package/dist/cjs/api/resources/construe/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/Client.js +2 -1
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.ts +1 -1
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/ExportRequest.d.ts +1 -1
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/FindRequest.d.ts +1 -1
- package/dist/cjs/api/resources/construe/resources/codes/client/Client.d.ts +47 -0
- package/dist/cjs/api/resources/construe/resources/codes/client/Client.js +97 -1
- package/dist/cjs/api/resources/construe/resources/codes/client/requests/CodesListRequest.d.ts +1 -1
- package/dist/cjs/api/resources/construe/resources/codes/client/requests/ExtractRequest.d.ts +12 -0
- package/dist/cjs/api/resources/construe/resources/codes/client/requests/LookupRequest.d.ts +1 -1
- package/dist/cjs/api/resources/construe/resources/codes/client/requests/PhenoCrRequest.d.ts +16 -0
- package/dist/cjs/api/resources/construe/resources/codes/client/requests/SearchSemanticRequest.d.ts +1 -1
- package/dist/cjs/api/resources/construe/resources/codes/client/requests/SearchTextRequest.d.ts +1 -1
- package/dist/cjs/api/resources/construe/resources/codes/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.d.ts +11 -8
- package/dist/cjs/api/resources/construe/types/PhenocrExtractRequestSystem.d.ts +6 -0
- package/dist/cjs/api/resources/construe/types/PhenocrExtractRequestSystem.js +3 -0
- package/dist/cjs/api/resources/construe/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/construe/types/index.js +1 -0
- package/dist/cjs/api/resources/fhir/client/Client.js +5 -4
- package/dist/cjs/api/resources/fhir2Omop/client/Client.js +2 -1
- package/dist/cjs/api/resources/fhir2Omop/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/fhir2Omop/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/resources/fhir2Omop/errors/ServiceUnavailableError.js +1 -1
- package/dist/cjs/api/resources/fhir2Omop/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/fhir2Omop/types/CareSiteRow.d.ts +8 -0
- package/dist/cjs/api/resources/fhir2Omop/types/CareSiteRow.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ConditionOccurrenceRow.d.ts +1 -0
- package/dist/cjs/api/resources/fhir2Omop/types/DeathRow.d.ts +9 -0
- package/dist/cjs/api/resources/fhir2Omop/types/DeathRow.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/types/DrugExposureRow.d.ts +1 -0
- package/dist/cjs/api/resources/fhir2Omop/types/LocationRow.d.ts +14 -0
- package/dist/cjs/api/resources/fhir2Omop/types/LocationRow.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/types/MeasurementRow.d.ts +1 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ObservationPeriodRow.d.ts +7 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ObservationPeriodRow.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ObservationRow.d.ts +1 -0
- package/dist/cjs/api/resources/fhir2Omop/types/OmopTables.d.ts +5 -0
- package/dist/cjs/api/resources/fhir2Omop/types/PersonRow.d.ts +1 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ProcedureOccurrenceRow.d.ts +1 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ProviderRow.d.ts +15 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ProviderRow.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/types/VisitOccurrenceRow.d.ts +2 -0
- package/dist/cjs/api/resources/fhir2Omop/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/fhir2Omop/types/index.js +5 -0
- package/dist/cjs/api/resources/fhirProvider/client/Client.js +2 -1
- package/dist/cjs/api/resources/fhirProvider/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/fhirProvider/errors/ForbiddenError.js +1 -1
- package/dist/cjs/api/resources/fhirProvider/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/resources/fhirProvider/errors/NotFoundError.js +1 -1
- package/dist/cjs/api/resources/fhirProvider/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/Client.js +4 -3
- package/dist/cjs/api/resources/implementationGuides/client/Client.d.ts +12 -0
- package/dist/cjs/api/resources/implementationGuides/client/Client.js +16 -0
- package/dist/cjs/api/resources/implementationGuides/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/implementationGuides/client/index.js +2 -0
- package/dist/cjs/api/resources/implementationGuides/errors/BadRequestError.d.ts +5 -0
- package/dist/cjs/api/resources/implementationGuides/errors/BadRequestError.js +54 -0
- package/dist/cjs/api/resources/implementationGuides/errors/ForbiddenError.d.ts +5 -0
- package/dist/cjs/api/resources/implementationGuides/errors/ForbiddenError.js +54 -0
- package/dist/cjs/api/resources/implementationGuides/errors/InternalServerError.d.ts +5 -0
- package/dist/cjs/api/resources/implementationGuides/errors/InternalServerError.js +54 -0
- package/dist/cjs/api/resources/implementationGuides/errors/NotFoundError.d.ts +5 -0
- package/dist/cjs/api/resources/implementationGuides/errors/NotFoundError.js +54 -0
- package/dist/cjs/api/resources/implementationGuides/errors/UnauthorizedError.d.ts +5 -0
- package/dist/cjs/api/resources/implementationGuides/errors/UnauthorizedError.js +54 -0
- package/dist/cjs/api/resources/implementationGuides/errors/index.d.ts +5 -0
- package/dist/cjs/api/resources/implementationGuides/errors/index.js +21 -0
- package/dist/cjs/api/resources/implementationGuides/exports.d.ts +3 -0
- package/dist/cjs/api/resources/implementationGuides/exports.js +22 -0
- package/dist/cjs/api/resources/implementationGuides/index.d.ts +4 -0
- package/dist/cjs/api/resources/implementationGuides/index.js +20 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/Client.d.ts +91 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/Client.js +316 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/index.js +17 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/requests/UpdateImplementationGuideRequest.d.ts +8 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/requests/UpdateImplementationGuideRequest.js +3 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/exports.d.ts +2 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/exports.js +21 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/index.d.ts +1 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/index.js +17 -0
- package/dist/cjs/api/resources/implementationGuides/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/implementationGuides/resources/index.js +41 -0
- package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideDetail.d.ts +5 -0
- package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideDetail.js +3 -0
- package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideListResponse.d.ts +4 -0
- package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideListResponse.js +3 -0
- package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideSummary.d.ts +15 -0
- package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideSummary.js +3 -0
- package/dist/cjs/api/resources/implementationGuides/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/implementationGuides/types/index.js +19 -0
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +3 -1
- package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +8 -0
- package/dist/cjs/api/resources/lang2Fhir/client/Client.js +15 -6
- package/dist/cjs/api/resources/lang2Fhir/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/ClientClosedRequestError.js +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.js +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/GatewayTimeoutError.js +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/NotFoundError.js +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/UnprocessableEntityError.js +1 -1
- package/dist/cjs/api/resources/lang2Fhir/types/CreateMultiResponse.d.ts +2 -0
- package/dist/cjs/api/resources/lang2Fhir/{client/requests → types}/ProfileUploadRequest.d.ts +2 -10
- package/dist/cjs/api/resources/lang2Fhir/types/ProfileUploadRequest.js +3 -0
- package/dist/cjs/api/resources/lang2Fhir/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/lang2Fhir/types/index.js +1 -0
- package/dist/cjs/api/resources/profiles/client/Client.d.ts +12 -0
- package/dist/cjs/api/resources/profiles/client/Client.js +16 -0
- package/dist/cjs/api/resources/profiles/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/profiles/client/index.js +2 -0
- package/dist/cjs/api/resources/profiles/errors/BadRequestError.d.ts +5 -0
- package/dist/cjs/api/resources/profiles/errors/BadRequestError.js +54 -0
- package/dist/cjs/api/resources/profiles/errors/ForbiddenError.d.ts +5 -0
- package/dist/cjs/api/resources/profiles/errors/ForbiddenError.js +54 -0
- package/dist/cjs/api/resources/profiles/errors/InternalServerError.d.ts +5 -0
- package/dist/cjs/api/resources/profiles/errors/InternalServerError.js +54 -0
- package/dist/cjs/api/resources/profiles/errors/NotFoundError.d.ts +5 -0
- package/dist/cjs/api/resources/profiles/errors/NotFoundError.js +54 -0
- package/dist/cjs/api/resources/profiles/errors/UnauthorizedError.d.ts +5 -0
- package/dist/cjs/api/resources/profiles/errors/UnauthorizedError.js +54 -0
- package/dist/cjs/api/resources/profiles/errors/index.d.ts +5 -0
- package/dist/cjs/api/resources/profiles/errors/index.js +21 -0
- package/dist/cjs/api/resources/profiles/exports.d.ts +3 -0
- package/dist/cjs/api/resources/profiles/exports.js +22 -0
- package/dist/cjs/api/resources/profiles/index.d.ts +4 -0
- package/dist/cjs/api/resources/profiles/index.js +20 -0
- package/dist/cjs/api/resources/profiles/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/profiles/resources/index.js +41 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/client/Client.d.ts +127 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/client/Client.js +397 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/client/index.js +17 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/client/requests/ListRequest.d.ts +10 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/client/requests/ListRequest.js +3 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/exports.d.ts +2 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/exports.js +21 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/index.d.ts +1 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/index.js +17 -0
- package/dist/cjs/api/resources/profiles/types/FhirResource.d.ts +4 -0
- package/dist/cjs/api/resources/profiles/types/FhirResource.js +3 -0
- package/dist/cjs/api/resources/profiles/types/ProfileGetResponse.d.ts +5 -0
- package/dist/cjs/api/resources/profiles/types/ProfileGetResponse.js +3 -0
- package/dist/cjs/api/resources/profiles/types/ProfileListResponse.d.ts +4 -0
- package/dist/cjs/api/resources/profiles/types/ProfileListResponse.js +3 -0
- package/dist/cjs/api/resources/profiles/types/ProfileSummary.d.ts +26 -0
- package/dist/cjs/api/resources/profiles/types/ProfileSummary.js +12 -0
- package/dist/cjs/api/resources/profiles/types/ProfileUploadRequest.d.ts +7 -0
- package/dist/cjs/api/resources/profiles/types/ProfileUploadRequest.js +3 -0
- package/dist/cjs/api/resources/profiles/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/profiles/types/index.js +21 -0
- package/dist/cjs/api/resources/summary/client/Client.js +2 -1
- package/dist/cjs/api/resources/summary/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/summary/errors/ForbiddenError.js +1 -1
- package/dist/cjs/api/resources/summary/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/resources/summary/errors/NotFoundError.js +1 -1
- package/dist/cjs/api/resources/summary/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/summary/resources/templates/client/Client.js +3 -2
- package/dist/cjs/api/resources/tools/client/Client.js +5 -4
- package/dist/cjs/api/resources/tools/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/tools/errors/ForbiddenError.js +1 -1
- package/dist/cjs/api/resources/tools/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/resources/tools/errors/NotFoundError.js +1 -1
- package/dist/cjs/api/resources/tools/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/tools/resources/mcpServers/client/Client.js +2 -1
- package/dist/cjs/api/resources/voice/errors/BadGatewayError.js +1 -1
- package/dist/cjs/api/resources/voice/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/voice/errors/ContentTooLargeError.js +1 -1
- package/dist/cjs/api/resources/voice/errors/GatewayTimeoutError.js +1 -1
- package/dist/cjs/api/resources/voice/errors/PaymentRequiredError.js +1 -1
- package/dist/cjs/api/resources/voice/errors/ServiceUnavailableError.js +1 -1
- package/dist/cjs/api/resources/voice/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/workflows/client/Client.js +4 -3
- package/dist/cjs/api/resources/workflows/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/workflows/errors/ForbiddenError.js +1 -1
- package/dist/cjs/api/resources/workflows/errors/GatewayTimeoutError.js +1 -1
- package/dist/cjs/api/resources/workflows/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/resources/workflows/errors/NotFoundError.js +1 -1
- package/dist/cjs/api/resources/workflows/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/core/file/file.js +3 -0
- package/dist/cjs/core/requestBody.d.ts +12 -0
- package/dist/cjs/core/requestBody.js +26 -0
- package/dist/cjs/core/stream/Stream.d.ts +45 -1
- package/dist/cjs/core/stream/Stream.js +323 -84
- package/dist/cjs/core/stream/index.d.ts +1 -0
- package/dist/cjs/core/url/qs.js +2 -2
- package/dist/cjs/errors/phenomlError.d.ts +1 -0
- package/dist/cjs/errors/phenomlError.js +5 -1
- package/dist/cjs/errors/phenomlTimeoutError.d.ts +2 -2
- package/dist/cjs/errors/phenomlTimeoutError.js +40 -6
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +12 -0
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +6 -0
- package/dist/esm/Client.mjs +10 -0
- package/dist/esm/api/resources/agent/client/Client.mjs +4 -3
- package/dist/esm/api/resources/agent/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/agent/errors/ConflictError.mjs +1 -1
- package/dist/esm/api/resources/agent/errors/ForbiddenError.mjs +1 -1
- package/dist/esm/api/resources/agent/errors/GatewayTimeoutError.mjs +1 -1
- package/dist/esm/api/resources/agent/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/resources/agent/errors/NotFoundError.mjs +1 -1
- package/dist/esm/api/resources/agent/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/agent/resources/chat/client/Client.mjs +3 -2
- package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +4 -3
- package/dist/esm/api/resources/authtoken/client/Client.mjs +2 -1
- package/dist/esm/api/resources/authtoken/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/authtoken/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/cohort/client/Client.mjs +2 -1
- package/dist/esm/api/resources/cohort/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/cohort/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/resources/cohort/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/construe/client/Client.mjs +2 -1
- package/dist/esm/api/resources/construe/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/construe/errors/ConflictError.mjs +1 -1
- package/dist/esm/api/resources/construe/errors/FailedDependencyError.mjs +1 -1
- package/dist/esm/api/resources/construe/errors/ForbiddenError.mjs +1 -1
- package/dist/esm/api/resources/construe/errors/GatewayTimeoutError.mjs +1 -1
- package/dist/esm/api/resources/construe/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/resources/construe/errors/NotFoundError.mjs +1 -1
- package/dist/esm/api/resources/construe/errors/NotImplementedError.mjs +1 -1
- package/dist/esm/api/resources/construe/errors/ServiceUnavailableError.mjs +1 -1
- package/dist/esm/api/resources/construe/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/construe/resources/codeSystems/client/Client.mjs +2 -1
- package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.mts +1 -1
- package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/ExportRequest.d.mts +1 -1
- package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/FindRequest.d.mts +1 -1
- package/dist/esm/api/resources/construe/resources/codes/client/Client.d.mts +47 -0
- package/dist/esm/api/resources/construe/resources/codes/client/Client.mjs +97 -1
- package/dist/esm/api/resources/construe/resources/codes/client/requests/CodesListRequest.d.mts +1 -1
- package/dist/esm/api/resources/construe/resources/codes/client/requests/ExtractRequest.d.mts +12 -0
- package/dist/esm/api/resources/construe/resources/codes/client/requests/LookupRequest.d.mts +1 -1
- package/dist/esm/api/resources/construe/resources/codes/client/requests/PhenoCrRequest.d.mts +16 -0
- package/dist/esm/api/resources/construe/resources/codes/client/requests/SearchSemanticRequest.d.mts +1 -1
- package/dist/esm/api/resources/construe/resources/codes/client/requests/SearchTextRequest.d.mts +1 -1
- package/dist/esm/api/resources/construe/resources/codes/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/construe/types/ExtractRequestSystem.d.mts +11 -8
- package/dist/esm/api/resources/construe/types/PhenocrExtractRequestSystem.d.mts +6 -0
- package/dist/esm/api/resources/construe/types/PhenocrExtractRequestSystem.mjs +2 -0
- package/dist/esm/api/resources/construe/types/index.d.mts +1 -0
- package/dist/esm/api/resources/construe/types/index.mjs +1 -0
- package/dist/esm/api/resources/fhir/client/Client.mjs +5 -4
- package/dist/esm/api/resources/fhir2Omop/client/Client.mjs +2 -1
- package/dist/esm/api/resources/fhir2Omop/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/fhir2Omop/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/resources/fhir2Omop/errors/ServiceUnavailableError.mjs +1 -1
- package/dist/esm/api/resources/fhir2Omop/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/fhir2Omop/types/CareSiteRow.d.mts +8 -0
- package/dist/esm/api/resources/fhir2Omop/types/CareSiteRow.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/ConditionOccurrenceRow.d.mts +1 -0
- package/dist/esm/api/resources/fhir2Omop/types/DeathRow.d.mts +9 -0
- package/dist/esm/api/resources/fhir2Omop/types/DeathRow.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/DrugExposureRow.d.mts +1 -0
- package/dist/esm/api/resources/fhir2Omop/types/LocationRow.d.mts +14 -0
- package/dist/esm/api/resources/fhir2Omop/types/LocationRow.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/MeasurementRow.d.mts +1 -0
- package/dist/esm/api/resources/fhir2Omop/types/ObservationPeriodRow.d.mts +7 -0
- package/dist/esm/api/resources/fhir2Omop/types/ObservationPeriodRow.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/ObservationRow.d.mts +1 -0
- package/dist/esm/api/resources/fhir2Omop/types/OmopTables.d.mts +5 -0
- package/dist/esm/api/resources/fhir2Omop/types/PersonRow.d.mts +1 -0
- package/dist/esm/api/resources/fhir2Omop/types/ProcedureOccurrenceRow.d.mts +1 -0
- package/dist/esm/api/resources/fhir2Omop/types/ProviderRow.d.mts +15 -0
- package/dist/esm/api/resources/fhir2Omop/types/ProviderRow.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/VisitOccurrenceRow.d.mts +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/index.d.mts +5 -0
- package/dist/esm/api/resources/fhir2Omop/types/index.mjs +5 -0
- package/dist/esm/api/resources/fhirProvider/client/Client.mjs +2 -1
- package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.mjs +1 -1
- package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.mjs +1 -1
- package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/Client.mjs +4 -3
- package/dist/esm/api/resources/implementationGuides/client/Client.d.mts +12 -0
- package/dist/esm/api/resources/implementationGuides/client/Client.mjs +12 -0
- package/dist/esm/api/resources/implementationGuides/client/index.d.mts +1 -0
- package/dist/esm/api/resources/implementationGuides/client/index.mjs +1 -0
- package/dist/esm/api/resources/implementationGuides/errors/BadRequestError.d.mts +5 -0
- package/dist/esm/api/resources/implementationGuides/errors/BadRequestError.mjs +17 -0
- package/dist/esm/api/resources/implementationGuides/errors/ForbiddenError.d.mts +5 -0
- package/dist/esm/api/resources/implementationGuides/errors/ForbiddenError.mjs +17 -0
- package/dist/esm/api/resources/implementationGuides/errors/InternalServerError.d.mts +5 -0
- package/dist/esm/api/resources/implementationGuides/errors/InternalServerError.mjs +17 -0
- package/dist/esm/api/resources/implementationGuides/errors/NotFoundError.d.mts +5 -0
- package/dist/esm/api/resources/implementationGuides/errors/NotFoundError.mjs +17 -0
- package/dist/esm/api/resources/implementationGuides/errors/UnauthorizedError.d.mts +5 -0
- package/dist/esm/api/resources/implementationGuides/errors/UnauthorizedError.mjs +17 -0
- package/dist/esm/api/resources/implementationGuides/errors/index.d.mts +5 -0
- package/dist/esm/api/resources/implementationGuides/errors/index.mjs +5 -0
- package/dist/esm/api/resources/implementationGuides/exports.d.mts +3 -0
- package/dist/esm/api/resources/implementationGuides/exports.mjs +4 -0
- package/dist/esm/api/resources/implementationGuides/index.d.mts +4 -0
- package/dist/esm/api/resources/implementationGuides/index.mjs +4 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/Client.d.mts +91 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/Client.mjs +279 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/index.d.mts +1 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/index.mjs +1 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/requests/UpdateImplementationGuideRequest.d.mts +8 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/requests/UpdateImplementationGuideRequest.mjs +2 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/exports.d.mts +2 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/exports.mjs +3 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/index.d.mts +1 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/index.mjs +1 -0
- package/dist/esm/api/resources/implementationGuides/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/implementationGuides/resources/index.mjs +2 -0
- package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideDetail.d.mts +5 -0
- package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideDetail.mjs +2 -0
- package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideListResponse.d.mts +4 -0
- package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideListResponse.mjs +2 -0
- package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideSummary.d.mts +15 -0
- package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideSummary.mjs +2 -0
- package/dist/esm/api/resources/implementationGuides/types/index.d.mts +3 -0
- package/dist/esm/api/resources/implementationGuides/types/index.mjs +3 -0
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +8 -0
- package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +15 -6
- package/dist/esm/api/resources/lang2Fhir/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/ClientClosedRequestError.mjs +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.mjs +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/GatewayTimeoutError.mjs +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/NotFoundError.mjs +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/UnprocessableEntityError.mjs +1 -1
- package/dist/esm/api/resources/lang2Fhir/types/CreateMultiResponse.d.mts +2 -0
- package/dist/esm/api/resources/lang2Fhir/{client/requests → types}/ProfileUploadRequest.d.mts +2 -10
- package/dist/esm/api/resources/lang2Fhir/types/ProfileUploadRequest.mjs +2 -0
- package/dist/esm/api/resources/lang2Fhir/types/index.d.mts +1 -0
- package/dist/esm/api/resources/lang2Fhir/types/index.mjs +1 -0
- package/dist/esm/api/resources/profiles/client/Client.d.mts +12 -0
- package/dist/esm/api/resources/profiles/client/Client.mjs +12 -0
- package/dist/esm/api/resources/profiles/client/index.d.mts +1 -0
- package/dist/esm/api/resources/profiles/client/index.mjs +1 -0
- package/dist/esm/api/resources/profiles/errors/BadRequestError.d.mts +5 -0
- package/dist/esm/api/resources/profiles/errors/BadRequestError.mjs +17 -0
- package/dist/esm/api/resources/profiles/errors/ForbiddenError.d.mts +5 -0
- package/dist/esm/api/resources/profiles/errors/ForbiddenError.mjs +17 -0
- package/dist/esm/api/resources/profiles/errors/InternalServerError.d.mts +5 -0
- package/dist/esm/api/resources/profiles/errors/InternalServerError.mjs +17 -0
- package/dist/esm/api/resources/profiles/errors/NotFoundError.d.mts +5 -0
- package/dist/esm/api/resources/profiles/errors/NotFoundError.mjs +17 -0
- package/dist/esm/api/resources/profiles/errors/UnauthorizedError.d.mts +5 -0
- package/dist/esm/api/resources/profiles/errors/UnauthorizedError.mjs +17 -0
- package/dist/esm/api/resources/profiles/errors/index.d.mts +5 -0
- package/dist/esm/api/resources/profiles/errors/index.mjs +5 -0
- package/dist/esm/api/resources/profiles/exports.d.mts +3 -0
- package/dist/esm/api/resources/profiles/exports.mjs +4 -0
- package/dist/esm/api/resources/profiles/index.d.mts +4 -0
- package/dist/esm/api/resources/profiles/index.mjs +4 -0
- package/dist/esm/api/resources/profiles/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/profiles/resources/index.mjs +2 -0
- package/dist/esm/api/resources/profiles/resources/profiles/client/Client.d.mts +127 -0
- package/dist/esm/api/resources/profiles/resources/profiles/client/Client.mjs +360 -0
- package/dist/esm/api/resources/profiles/resources/profiles/client/index.d.mts +1 -0
- package/dist/esm/api/resources/profiles/resources/profiles/client/index.mjs +1 -0
- package/dist/esm/api/resources/profiles/resources/profiles/client/requests/ListRequest.d.mts +10 -0
- package/dist/esm/api/resources/profiles/resources/profiles/client/requests/ListRequest.mjs +2 -0
- package/dist/esm/api/resources/profiles/resources/profiles/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/profiles/resources/profiles/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/profiles/resources/profiles/exports.d.mts +2 -0
- package/dist/esm/api/resources/profiles/resources/profiles/exports.mjs +3 -0
- package/dist/esm/api/resources/profiles/resources/profiles/index.d.mts +1 -0
- package/dist/esm/api/resources/profiles/resources/profiles/index.mjs +1 -0
- package/dist/esm/api/resources/profiles/types/FhirResource.d.mts +4 -0
- package/dist/esm/api/resources/profiles/types/FhirResource.mjs +2 -0
- package/dist/esm/api/resources/profiles/types/ProfileGetResponse.d.mts +5 -0
- package/dist/esm/api/resources/profiles/types/ProfileGetResponse.mjs +2 -0
- package/dist/esm/api/resources/profiles/types/ProfileListResponse.d.mts +4 -0
- package/dist/esm/api/resources/profiles/types/ProfileListResponse.mjs +2 -0
- package/dist/esm/api/resources/profiles/types/ProfileSummary.d.mts +26 -0
- package/dist/esm/api/resources/profiles/types/ProfileSummary.mjs +9 -0
- package/dist/esm/api/resources/profiles/types/ProfileUploadRequest.d.mts +7 -0
- package/dist/esm/api/resources/profiles/types/ProfileUploadRequest.mjs +2 -0
- package/dist/esm/api/resources/profiles/types/index.d.mts +5 -0
- package/dist/esm/api/resources/profiles/types/index.mjs +5 -0
- package/dist/esm/api/resources/summary/client/Client.mjs +2 -1
- package/dist/esm/api/resources/summary/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/summary/errors/ForbiddenError.mjs +1 -1
- package/dist/esm/api/resources/summary/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/resources/summary/errors/NotFoundError.mjs +1 -1
- package/dist/esm/api/resources/summary/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/summary/resources/templates/client/Client.mjs +3 -2
- package/dist/esm/api/resources/tools/client/Client.mjs +5 -4
- package/dist/esm/api/resources/tools/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/tools/errors/ForbiddenError.mjs +1 -1
- package/dist/esm/api/resources/tools/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/resources/tools/errors/NotFoundError.mjs +1 -1
- package/dist/esm/api/resources/tools/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/mcpServers/client/Client.mjs +2 -1
- package/dist/esm/api/resources/voice/errors/BadGatewayError.mjs +1 -1
- package/dist/esm/api/resources/voice/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/voice/errors/ContentTooLargeError.mjs +1 -1
- package/dist/esm/api/resources/voice/errors/GatewayTimeoutError.mjs +1 -1
- package/dist/esm/api/resources/voice/errors/PaymentRequiredError.mjs +1 -1
- package/dist/esm/api/resources/voice/errors/ServiceUnavailableError.mjs +1 -1
- package/dist/esm/api/resources/voice/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/workflows/client/Client.mjs +4 -3
- package/dist/esm/api/resources/workflows/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/workflows/errors/ForbiddenError.mjs +1 -1
- package/dist/esm/api/resources/workflows/errors/GatewayTimeoutError.mjs +1 -1
- package/dist/esm/api/resources/workflows/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/resources/workflows/errors/NotFoundError.mjs +1 -1
- package/dist/esm/api/resources/workflows/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/core/file/file.mjs +3 -0
- package/dist/esm/core/requestBody.d.mts +12 -0
- package/dist/esm/core/requestBody.mjs +23 -0
- package/dist/esm/core/stream/Stream.d.mts +45 -1
- package/dist/esm/core/stream/Stream.mjs +323 -84
- package/dist/esm/core/stream/index.d.mts +1 -0
- package/dist/esm/core/url/qs.mjs +2 -2
- package/dist/esm/errors/phenomlError.d.mts +1 -0
- package/dist/esm/errors/phenomlError.mjs +5 -1
- package/dist/esm/errors/phenomlTimeoutError.d.mts +2 -2
- package/dist/esm/errors/phenomlTimeoutError.mjs +7 -6
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/openapi/openapi.json +1224 -150
- package/package.json +23 -1
- package/reference.md +772 -71
- /package/dist/cjs/api/resources/{lang2Fhir/client/requests/ProfileUploadRequest.js → construe/resources/codes/client/requests/PhenoCrRequest.js} +0 -0
- /package/dist/esm/api/resources/{lang2Fhir/client/requests/ProfileUploadRequest.mjs → construe/resources/codes/client/requests/PhenoCrRequest.mjs} +0 -0
|
@@ -16,6 +16,9 @@ export declare class CodesClient {
|
|
|
16
16
|
/**
|
|
17
17
|
* Converts natural language text into structured medical codes.
|
|
18
18
|
*
|
|
19
|
+
* Pass `system.version` to select a specific code system version, for example
|
|
20
|
+
* `umls-2026aa` for UMLS 2026AA-backed systems.
|
|
21
|
+
*
|
|
19
22
|
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
20
23
|
*
|
|
21
24
|
* @param {phenoml.construe.ExtractRequest} request
|
|
@@ -39,6 +42,18 @@ export declare class CodesClient {
|
|
|
39
42
|
*
|
|
40
43
|
* @example
|
|
41
44
|
* await client.construe.codes.extract({
|
|
45
|
+
* text: "Patient has type 2 diabetes mellitus with diabetic chronic kidney disease.",
|
|
46
|
+
* system: {
|
|
47
|
+
* name: "ICD-10-CM",
|
|
48
|
+
* version: "umls-2026aa"
|
|
49
|
+
* },
|
|
50
|
+
* config: {
|
|
51
|
+
* validation_method: "simple"
|
|
52
|
+
* }
|
|
53
|
+
* })
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* await client.construe.codes.extract({
|
|
42
57
|
* text: "45-year-old male presents with chest pain radiating to left arm, shortness of breath, and diaphoresis. ECG shows ST elevation in leads II, III, and aVF.",
|
|
43
58
|
* system: {
|
|
44
59
|
* name: "SNOMED_CT_US_LITE",
|
|
@@ -94,6 +109,38 @@ export declare class CodesClient {
|
|
|
94
109
|
*/
|
|
95
110
|
extract(request: phenoml.construe.ExtractRequest, requestOptions?: CodesClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.ExtractCodesResult>;
|
|
96
111
|
private __extract;
|
|
112
|
+
/**
|
|
113
|
+
* **Alpha:** phenocr is an alpha feature. The API contract — request
|
|
114
|
+
* parameters and response shape — may change as its internals evolve, and
|
|
115
|
+
* results may vary between releases. Do not depend on it for production
|
|
116
|
+
* workloads yet.
|
|
117
|
+
*
|
|
118
|
+
* Extracts medical codes from natural language clinical text using phenocr.
|
|
119
|
+
*
|
|
120
|
+
* Supported code systems: HPO, ICD-10-CM, and SNOMED_CT_US. The code
|
|
121
|
+
* system name and version are both required.
|
|
122
|
+
*
|
|
123
|
+
* @param {phenoml.construe.PhenoCrRequest} request
|
|
124
|
+
* @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
125
|
+
*
|
|
126
|
+
* @throws {@link phenoml.construe.BadRequestError}
|
|
127
|
+
* @throws {@link phenoml.construe.UnauthorizedError}
|
|
128
|
+
* @throws {@link phenoml.construe.NotFoundError}
|
|
129
|
+
* @throws {@link phenoml.construe.InternalServerError}
|
|
130
|
+
* @throws {@link phenoml.construe.ServiceUnavailableError}
|
|
131
|
+
* @throws {@link phenoml.construe.GatewayTimeoutError}
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* await client.construe.codes.phenocr({
|
|
135
|
+
* text: "5-year-old male with seizures, severe intellectual disability, microcephaly, and hypotonia.",
|
|
136
|
+
* system: {
|
|
137
|
+
* name: "HPO",
|
|
138
|
+
* version: "umls-2026AA"
|
|
139
|
+
* }
|
|
140
|
+
* })
|
|
141
|
+
*/
|
|
142
|
+
phenocr(request: phenoml.construe.PhenoCrRequest, requestOptions?: CodesClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.ExtractCodesResult>;
|
|
143
|
+
private __phenocr;
|
|
97
144
|
/**
|
|
98
145
|
* Returns a paginated list of all codes in the specified code system from the terminology server.
|
|
99
146
|
*
|
|
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
12
12
|
import { mergeHeaders } from "../../../../../../core/headers.mjs";
|
|
13
13
|
import * as core from "../../../../../../core/index.mjs";
|
|
14
|
+
import { mergeAdditionalBodyParameters } from "../../../../../../core/requestBody.mjs";
|
|
14
15
|
import * as environments from "../../../../../../environments.mjs";
|
|
15
16
|
import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
|
|
16
17
|
import * as errors from "../../../../../../errors/index.mjs";
|
|
@@ -25,6 +26,9 @@ export class CodesClient {
|
|
|
25
26
|
/**
|
|
26
27
|
* Converts natural language text into structured medical codes.
|
|
27
28
|
*
|
|
29
|
+
* Pass `system.version` to select a specific code system version, for example
|
|
30
|
+
* `umls-2026aa` for UMLS 2026AA-backed systems.
|
|
31
|
+
*
|
|
28
32
|
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
29
33
|
*
|
|
30
34
|
* @param {phenoml.construe.ExtractRequest} request
|
|
@@ -48,6 +52,18 @@ export class CodesClient {
|
|
|
48
52
|
*
|
|
49
53
|
* @example
|
|
50
54
|
* await client.construe.codes.extract({
|
|
55
|
+
* text: "Patient has type 2 diabetes mellitus with diabetic chronic kidney disease.",
|
|
56
|
+
* system: {
|
|
57
|
+
* name: "ICD-10-CM",
|
|
58
|
+
* version: "umls-2026aa"
|
|
59
|
+
* },
|
|
60
|
+
* config: {
|
|
61
|
+
* validation_method: "simple"
|
|
62
|
+
* }
|
|
63
|
+
* })
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* await client.construe.codes.extract({
|
|
51
67
|
* text: "45-year-old male presents with chest pain radiating to left arm, shortness of breath, and diaphoresis. ECG shows ST elevation in leads II, III, and aVF.",
|
|
52
68
|
* system: {
|
|
53
69
|
* name: "SNOMED_CT_US_LITE",
|
|
@@ -116,7 +132,7 @@ export class CodesClient {
|
|
|
116
132
|
contentType: "application/json",
|
|
117
133
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
118
134
|
requestType: "json",
|
|
119
|
-
body: request,
|
|
135
|
+
body: mergeAdditionalBodyParameters(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
120
136
|
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
121
137
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
122
138
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -151,6 +167,86 @@ export class CodesClient {
|
|
|
151
167
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/construe/extract");
|
|
152
168
|
});
|
|
153
169
|
}
|
|
170
|
+
/**
|
|
171
|
+
* **Alpha:** phenocr is an alpha feature. The API contract — request
|
|
172
|
+
* parameters and response shape — may change as its internals evolve, and
|
|
173
|
+
* results may vary between releases. Do not depend on it for production
|
|
174
|
+
* workloads yet.
|
|
175
|
+
*
|
|
176
|
+
* Extracts medical codes from natural language clinical text using phenocr.
|
|
177
|
+
*
|
|
178
|
+
* Supported code systems: HPO, ICD-10-CM, and SNOMED_CT_US. The code
|
|
179
|
+
* system name and version are both required.
|
|
180
|
+
*
|
|
181
|
+
* @param {phenoml.construe.PhenoCrRequest} request
|
|
182
|
+
* @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
183
|
+
*
|
|
184
|
+
* @throws {@link phenoml.construe.BadRequestError}
|
|
185
|
+
* @throws {@link phenoml.construe.UnauthorizedError}
|
|
186
|
+
* @throws {@link phenoml.construe.NotFoundError}
|
|
187
|
+
* @throws {@link phenoml.construe.InternalServerError}
|
|
188
|
+
* @throws {@link phenoml.construe.ServiceUnavailableError}
|
|
189
|
+
* @throws {@link phenoml.construe.GatewayTimeoutError}
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* await client.construe.codes.phenocr({
|
|
193
|
+
* text: "5-year-old male with seizures, severe intellectual disability, microcephaly, and hypotonia.",
|
|
194
|
+
* system: {
|
|
195
|
+
* name: "HPO",
|
|
196
|
+
* version: "umls-2026AA"
|
|
197
|
+
* }
|
|
198
|
+
* })
|
|
199
|
+
*/
|
|
200
|
+
phenocr(request, requestOptions) {
|
|
201
|
+
return core.HttpResponsePromise.fromPromise(this.__phenocr(request, requestOptions));
|
|
202
|
+
}
|
|
203
|
+
__phenocr(request, requestOptions) {
|
|
204
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
205
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
206
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
207
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
208
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
209
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, "construe/phenocr"),
|
|
210
|
+
method: "POST",
|
|
211
|
+
headers: _headers,
|
|
212
|
+
contentType: "application/json",
|
|
213
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
214
|
+
requestType: "json",
|
|
215
|
+
body: mergeAdditionalBodyParameters(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
216
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
217
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
218
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
219
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
220
|
+
logging: this._options.logging,
|
|
221
|
+
});
|
|
222
|
+
if (_response.ok) {
|
|
223
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
224
|
+
}
|
|
225
|
+
if (_response.error.reason === "status-code") {
|
|
226
|
+
switch (_response.error.statusCode) {
|
|
227
|
+
case 400:
|
|
228
|
+
throw new phenoml.construe.BadRequestError(_response.error.body, _response.rawResponse);
|
|
229
|
+
case 401:
|
|
230
|
+
throw new phenoml.construe.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
231
|
+
case 404:
|
|
232
|
+
throw new phenoml.construe.NotFoundError(_response.error.body, _response.rawResponse);
|
|
233
|
+
case 500:
|
|
234
|
+
throw new phenoml.construe.InternalServerError(_response.error.body, _response.rawResponse);
|
|
235
|
+
case 503:
|
|
236
|
+
throw new phenoml.construe.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
237
|
+
case 504:
|
|
238
|
+
throw new phenoml.construe.GatewayTimeoutError(_response.error.body, _response.rawResponse);
|
|
239
|
+
default:
|
|
240
|
+
throw new errors.phenomlError({
|
|
241
|
+
statusCode: _response.error.statusCode,
|
|
242
|
+
body: _response.error.body,
|
|
243
|
+
rawResponse: _response.rawResponse,
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/construe/phenocr");
|
|
248
|
+
});
|
|
249
|
+
}
|
|
154
250
|
/**
|
|
155
251
|
* Returns a paginated list of all codes in the specified code system from the terminology server.
|
|
156
252
|
*
|
package/dist/esm/api/resources/construe/resources/codes/client/requests/CodesListRequest.d.mts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* }
|
|
8
8
|
*/
|
|
9
9
|
export interface CodesListRequest {
|
|
10
|
-
/** Specific version of the code system
|
|
10
|
+
/** Specific version of the code system, such as `umls-2026aa`. */
|
|
11
11
|
version?: string;
|
|
12
12
|
/** Pagination cursor from previous response */
|
|
13
13
|
cursor?: string;
|
package/dist/esm/api/resources/construe/resources/codes/client/requests/ExtractRequest.d.mts
CHANGED
|
@@ -11,6 +11,18 @@ import type * as phenoml from "../../../../../../index.mjs";
|
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* {
|
|
14
|
+
* text: "Patient has type 2 diabetes mellitus with diabetic chronic kidney disease.",
|
|
15
|
+
* system: {
|
|
16
|
+
* name: "ICD-10-CM",
|
|
17
|
+
* version: "umls-2026aa"
|
|
18
|
+
* },
|
|
19
|
+
* config: {
|
|
20
|
+
* validation_method: "simple"
|
|
21
|
+
* }
|
|
22
|
+
* }
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* {
|
|
14
26
|
* text: "45-year-old male presents with chest pain radiating to left arm, shortness of breath, and diaphoresis. ECG shows ST elevation in leads II, III, and aVF.",
|
|
15
27
|
* system: {
|
|
16
28
|
* name: "SNOMED_CT_US_LITE",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as phenoml from "../../../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* text: "5-year-old male with seizures, severe intellectual disability, microcephaly, and hypotonia.",
|
|
6
|
+
* system: {
|
|
7
|
+
* name: "HPO",
|
|
8
|
+
* version: "umls-2026AA"
|
|
9
|
+
* }
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface PhenoCrRequest {
|
|
13
|
+
/** Natural language text to extract codes from */
|
|
14
|
+
text: string;
|
|
15
|
+
system: phenoml.construe.PhenocrExtractRequestSystem;
|
|
16
|
+
}
|
package/dist/esm/api/resources/construe/resources/codes/client/requests/SearchSemanticRequest.d.mts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
export interface SearchSemanticRequest {
|
|
10
10
|
/** Natural language text to find semantically similar codes for */
|
|
11
11
|
text: string;
|
|
12
|
-
/** Specific version of the code system */
|
|
12
|
+
/** Specific version of the code system, such as `umls-2026aa`. */
|
|
13
13
|
version?: string;
|
|
14
14
|
/** Maximum number of results (default 10, max 50) */
|
|
15
15
|
limit?: number;
|
package/dist/esm/api/resources/construe/resources/codes/client/requests/SearchTextRequest.d.mts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
export interface SearchTextRequest {
|
|
10
10
|
/** Search query (searches code IDs and descriptions) */
|
|
11
11
|
q: string;
|
|
12
|
-
/** Specific version of the code system */
|
|
12
|
+
/** Specific version of the code system, such as `umls-2026aa`. */
|
|
13
13
|
version?: string;
|
|
14
14
|
/** Maximum number of results (default 20, max 100) */
|
|
15
15
|
limit?: number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { CodesListRequest } from "./CodesListRequest.mjs";
|
|
2
2
|
export type { ExtractRequest } from "./ExtractRequest.mjs";
|
|
3
3
|
export type { LookupRequest } from "./LookupRequest.mjs";
|
|
4
|
+
export type { PhenoCrRequest } from "./PhenoCrRequest.mjs";
|
|
4
5
|
export type { SearchSemanticRequest } from "./SearchSemanticRequest.mjs";
|
|
5
6
|
export type { SearchTextRequest } from "./SearchTextRequest.mjs";
|
|
@@ -3,13 +3,16 @@ export interface ExtractRequestSystem {
|
|
|
3
3
|
* Code system name. Can be a built-in system or a custom system name.
|
|
4
4
|
*
|
|
5
5
|
* Built-in systems:
|
|
6
|
-
* *
|
|
7
|
-
* *
|
|
8
|
-
* *
|
|
9
|
-
* * ICD-10
|
|
10
|
-
* *
|
|
11
|
-
* *
|
|
12
|
-
* *
|
|
6
|
+
* * CPT
|
|
7
|
+
* * HCPCS
|
|
8
|
+
* * HPO
|
|
9
|
+
* * ICD-10
|
|
10
|
+
* * ICD-10-CM
|
|
11
|
+
* * ICD-10-PCS
|
|
12
|
+
* * LOINC
|
|
13
|
+
* * RXNORM
|
|
14
|
+
* * SNOMED_CT_US
|
|
15
|
+
* * SNOMED_CT_US_LITE
|
|
13
16
|
*
|
|
14
17
|
* Custom systems:
|
|
15
18
|
* * Any valid system name uploaded via /construe/upload. Requires a paid plan.
|
|
@@ -17,6 +20,6 @@ export interface ExtractRequestSystem {
|
|
|
17
20
|
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
18
21
|
*/
|
|
19
22
|
name?: string | undefined;
|
|
20
|
-
/**
|
|
23
|
+
/** Specific code system version. */
|
|
21
24
|
version?: string | undefined;
|
|
22
25
|
}
|
|
@@ -14,6 +14,7 @@ export * from "./GetCodeResponse.mjs";
|
|
|
14
14
|
export * from "./GetCodeSystemDetailResponse.mjs";
|
|
15
15
|
export * from "./ListCodeSystemsResponse.mjs";
|
|
16
16
|
export * from "./ListCodesResponse.mjs";
|
|
17
|
+
export * from "./PhenocrExtractRequestSystem.mjs";
|
|
17
18
|
export * from "./SemanticSearchResponse.mjs";
|
|
18
19
|
export * from "./SemanticSearchResult.mjs";
|
|
19
20
|
export * from "./TextSearchResponse.mjs";
|
|
@@ -14,6 +14,7 @@ export * from "./GetCodeResponse.mjs";
|
|
|
14
14
|
export * from "./GetCodeSystemDetailResponse.mjs";
|
|
15
15
|
export * from "./ListCodeSystemsResponse.mjs";
|
|
16
16
|
export * from "./ListCodesResponse.mjs";
|
|
17
|
+
export * from "./PhenocrExtractRequestSystem.mjs";
|
|
17
18
|
export * from "./SemanticSearchResponse.mjs";
|
|
18
19
|
export * from "./SemanticSearchResult.mjs";
|
|
19
20
|
export * from "./TextSearchResponse.mjs";
|
|
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
12
12
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
13
13
|
import * as core from "../../../../core/index.mjs";
|
|
14
|
+
import { mergeAdditionalBodyParameters } from "../../../../core/requestBody.mjs";
|
|
14
15
|
import * as environments from "../../../../environments.mjs";
|
|
15
16
|
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
16
17
|
import * as errors from "../../../../errors/index.mjs";
|
|
@@ -132,7 +133,7 @@ export class FhirClient {
|
|
|
132
133
|
contentType: "application/fhir+json",
|
|
133
134
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
134
135
|
requestType: "json",
|
|
135
|
-
body: _body,
|
|
136
|
+
body: mergeAdditionalBodyParameters(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
136
137
|
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
137
138
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
138
139
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -197,7 +198,7 @@ export class FhirClient {
|
|
|
197
198
|
contentType: "application/fhir+json",
|
|
198
199
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
199
200
|
requestType: "json",
|
|
200
|
-
body: _body,
|
|
201
|
+
body: mergeAdditionalBodyParameters(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
201
202
|
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
202
203
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
203
204
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -381,7 +382,7 @@ export class FhirClient {
|
|
|
381
382
|
contentType: "application/json-patch+json",
|
|
382
383
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
383
384
|
requestType: "json",
|
|
384
|
-
body: _body,
|
|
385
|
+
body: mergeAdditionalBodyParameters(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
385
386
|
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
386
387
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
387
388
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -475,7 +476,7 @@ export class FhirClient {
|
|
|
475
476
|
contentType: "application/fhir+json",
|
|
476
477
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
477
478
|
requestType: "json",
|
|
478
|
-
body: _body,
|
|
479
|
+
body: mergeAdditionalBodyParameters(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
479
480
|
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
480
481
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
481
482
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
12
12
|
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
13
13
|
import * as core from "../../../../core/index.mjs";
|
|
14
|
+
import { mergeAdditionalBodyParameters } from "../../../../core/requestBody.mjs";
|
|
14
15
|
import * as environments from "../../../../environments.mjs";
|
|
15
16
|
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
16
17
|
import * as errors from "../../../../errors/index.mjs";
|
|
@@ -165,7 +166,7 @@ export class Fhir2OmopClient {
|
|
|
165
166
|
contentType: "application/json",
|
|
166
167
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
167
168
|
requestType: "json",
|
|
168
|
-
body: request,
|
|
169
|
+
body: mergeAdditionalBodyParameters(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
169
170
|
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
170
171
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
171
172
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface CareSiteRow {
|
|
2
|
+
care_site_id?: number | undefined;
|
|
3
|
+
care_site_name?: string | undefined;
|
|
4
|
+
place_of_service_concept_id?: number | undefined;
|
|
5
|
+
location_id?: number | undefined;
|
|
6
|
+
care_site_source_value?: string | undefined;
|
|
7
|
+
place_of_service_source_value?: string | undefined;
|
|
8
|
+
}
|
|
@@ -7,6 +7,7 @@ export interface ConditionOccurrenceRow {
|
|
|
7
7
|
condition_end_date?: string | undefined;
|
|
8
8
|
condition_type_concept_id?: number | undefined;
|
|
9
9
|
visit_occurrence_id?: number | undefined;
|
|
10
|
+
provider_id?: number | undefined;
|
|
10
11
|
condition_source_value?: string | undefined;
|
|
11
12
|
condition_source_concept_id?: number | undefined;
|
|
12
13
|
condition_status_source_value?: string | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface DeathRow {
|
|
2
|
+
person_id?: number | undefined;
|
|
3
|
+
death_date?: string | undefined;
|
|
4
|
+
death_datetime?: string | undefined;
|
|
5
|
+
death_type_concept_id?: number | undefined;
|
|
6
|
+
cause_concept_id?: number | undefined;
|
|
7
|
+
cause_source_value?: string | undefined;
|
|
8
|
+
cause_source_concept_id?: number | undefined;
|
|
9
|
+
}
|
|
@@ -9,6 +9,7 @@ export interface DrugExposureRow {
|
|
|
9
9
|
stop_reason?: string | undefined;
|
|
10
10
|
sig?: string | undefined;
|
|
11
11
|
visit_occurrence_id?: number | undefined;
|
|
12
|
+
provider_id?: number | undefined;
|
|
12
13
|
drug_source_value?: string | undefined;
|
|
13
14
|
drug_source_concept_id?: number | undefined;
|
|
14
15
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface LocationRow {
|
|
2
|
+
location_id?: number | undefined;
|
|
3
|
+
address_1?: string | undefined;
|
|
4
|
+
address_2?: string | undefined;
|
|
5
|
+
city?: string | undefined;
|
|
6
|
+
state?: string | undefined;
|
|
7
|
+
zip?: string | undefined;
|
|
8
|
+
county?: string | undefined;
|
|
9
|
+
location_source_value?: string | undefined;
|
|
10
|
+
country_concept_id?: number | undefined;
|
|
11
|
+
country_source_value?: string | undefined;
|
|
12
|
+
latitude?: number | undefined;
|
|
13
|
+
longitude?: number | undefined;
|
|
14
|
+
}
|
|
@@ -13,6 +13,7 @@ export interface MeasurementRow {
|
|
|
13
13
|
range_low?: number | undefined;
|
|
14
14
|
range_high?: number | undefined;
|
|
15
15
|
visit_occurrence_id?: number | undefined;
|
|
16
|
+
provider_id?: number | undefined;
|
|
16
17
|
measurement_source_value?: string | undefined;
|
|
17
18
|
measurement_source_concept_id?: number | undefined;
|
|
18
19
|
unit_source_value?: string | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface ObservationPeriodRow {
|
|
2
|
+
observation_period_id?: number | undefined;
|
|
3
|
+
person_id?: number | undefined;
|
|
4
|
+
observation_period_start_date?: string | undefined;
|
|
5
|
+
observation_period_end_date?: string | undefined;
|
|
6
|
+
period_type_concept_id?: number | undefined;
|
|
7
|
+
}
|
|
@@ -10,6 +10,7 @@ export interface ObservationRow {
|
|
|
10
10
|
value_as_concept_id?: number | undefined;
|
|
11
11
|
unit_concept_id?: number | undefined;
|
|
12
12
|
visit_occurrence_id?: number | undefined;
|
|
13
|
+
provider_id?: number | undefined;
|
|
13
14
|
observation_source_value?: string | undefined;
|
|
14
15
|
observation_source_concept_id?: number | undefined;
|
|
15
16
|
unit_source_value?: string | undefined;
|
|
@@ -3,7 +3,12 @@ import type * as phenoml from "../../../index.mjs";
|
|
|
3
3
|
* OMOP CDM v5.4 rows grouped by destination table.
|
|
4
4
|
*/
|
|
5
5
|
export interface OmopTables {
|
|
6
|
+
location?: phenoml.fhir2Omop.LocationRow[] | undefined;
|
|
7
|
+
care_site?: phenoml.fhir2Omop.CareSiteRow[] | undefined;
|
|
8
|
+
provider?: phenoml.fhir2Omop.ProviderRow[] | undefined;
|
|
6
9
|
person?: phenoml.fhir2Omop.PersonRow[] | undefined;
|
|
10
|
+
death?: phenoml.fhir2Omop.DeathRow[] | undefined;
|
|
11
|
+
observation_period?: phenoml.fhir2Omop.ObservationPeriodRow[] | undefined;
|
|
7
12
|
visit_occurrence?: phenoml.fhir2Omop.VisitOccurrenceRow[] | undefined;
|
|
8
13
|
condition_occurrence?: phenoml.fhir2Omop.ConditionOccurrenceRow[] | undefined;
|
|
9
14
|
drug_exposure?: phenoml.fhir2Omop.DrugExposureRow[] | undefined;
|
|
@@ -7,6 +7,7 @@ export interface PersonRow {
|
|
|
7
7
|
birth_datetime?: string | undefined;
|
|
8
8
|
race_concept_id?: number | undefined;
|
|
9
9
|
ethnicity_concept_id?: number | undefined;
|
|
10
|
+
location_id?: number | undefined;
|
|
10
11
|
person_source_value?: string | undefined;
|
|
11
12
|
gender_source_value?: string | undefined;
|
|
12
13
|
race_source_value?: string | undefined;
|
|
@@ -6,6 +6,7 @@ export interface ProcedureOccurrenceRow {
|
|
|
6
6
|
procedure_datetime?: string | undefined;
|
|
7
7
|
procedure_type_concept_id?: number | undefined;
|
|
8
8
|
visit_occurrence_id?: number | undefined;
|
|
9
|
+
provider_id?: number | undefined;
|
|
9
10
|
procedure_source_value?: string | undefined;
|
|
10
11
|
procedure_source_concept_id?: number | undefined;
|
|
11
12
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ProviderRow {
|
|
2
|
+
provider_id?: number | undefined;
|
|
3
|
+
provider_name?: string | undefined;
|
|
4
|
+
npi?: string | undefined;
|
|
5
|
+
dea?: string | undefined;
|
|
6
|
+
specialty_concept_id?: number | undefined;
|
|
7
|
+
care_site_id?: number | undefined;
|
|
8
|
+
year_of_birth?: number | undefined;
|
|
9
|
+
gender_concept_id?: number | undefined;
|
|
10
|
+
provider_source_value?: string | undefined;
|
|
11
|
+
specialty_source_value?: string | undefined;
|
|
12
|
+
specialty_source_concept_id?: number | undefined;
|
|
13
|
+
gender_source_value?: string | undefined;
|
|
14
|
+
gender_source_concept_id?: number | undefined;
|
|
15
|
+
}
|
|
@@ -7,5 +7,7 @@ export interface VisitOccurrenceRow {
|
|
|
7
7
|
visit_end_date?: string | undefined;
|
|
8
8
|
visit_end_datetime?: string | undefined;
|
|
9
9
|
visit_type_concept_id?: number | undefined;
|
|
10
|
+
provider_id?: number | undefined;
|
|
11
|
+
care_site_id?: number | undefined;
|
|
10
12
|
visit_source_value?: string | undefined;
|
|
11
13
|
}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
export * from "./CareSiteRow.mjs";
|
|
1
2
|
export * from "./ConditionOccurrenceRow.mjs";
|
|
2
3
|
export * from "./CreateOmopResponse.mjs";
|
|
4
|
+
export * from "./DeathRow.mjs";
|
|
3
5
|
export * from "./DroppedResource.mjs";
|
|
4
6
|
export * from "./DrugExposureRow.mjs";
|
|
7
|
+
export * from "./LocationRow.mjs";
|
|
5
8
|
export * from "./MappingEntry.mjs";
|
|
6
9
|
export * from "./MeasurementRow.mjs";
|
|
10
|
+
export * from "./ObservationPeriodRow.mjs";
|
|
7
11
|
export * from "./ObservationRow.mjs";
|
|
8
12
|
export * from "./OmopTables.mjs";
|
|
9
13
|
export * from "./PersonRow.mjs";
|
|
10
14
|
export * from "./ProcedureOccurrenceRow.mjs";
|
|
15
|
+
export * from "./ProviderRow.mjs";
|
|
11
16
|
export * from "./Summary.mjs";
|
|
12
17
|
export * from "./VisitOccurrenceRow.mjs";
|