phenoml 17.5.0 → 17.8.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 +9 -0
- package/dist/cjs/Client.js +23 -8
- 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.d.ts +5 -0
- package/dist/cjs/api/resources/agent/errors/ConflictError.js +54 -0
- 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/errors/index.d.ts +1 -0
- package/dist/cjs/api/resources/agent/errors/index.js +1 -0
- package/dist/cjs/api/resources/agent/resources/chat/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/agent/resources/chat/client/Client.js +8 -2
- package/dist/cjs/api/resources/agent/resources/chat/client/requests/AgentChatRequest.d.ts +1 -1
- package/dist/cjs/api/resources/agent/resources/chat/client/requests/AgentStreamChatRequest.d.ts +1 -1
- 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 +15 -0
- package/dist/cjs/api/resources/construe/resources/codes/client/Client.js +17 -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/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/types/ExtractRequestSystem.d.ts +11 -8
- package/dist/cjs/api/resources/fhir/client/Client.js +5 -4
- package/dist/cjs/api/resources/fhir2Omop/client/Client.d.ts +26 -0
- package/dist/cjs/api/resources/fhir2Omop/client/Client.js +28 -1
- package/dist/cjs/api/resources/fhir2Omop/client/requests/CreateOmopRequest.d.ts +6 -3
- 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/ConditionOccurrenceRow.d.ts +1 -0
- package/dist/cjs/api/resources/fhir2Omop/types/CreateOmopResponse.d.ts +6 -1
- 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 +3 -0
- package/dist/cjs/api/resources/index.js +4 -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/client/Client.d.ts +12 -0
- package/dist/cjs/api/resources/voice/client/Client.js +16 -0
- package/dist/cjs/api/resources/voice/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/voice/client/index.js +2 -0
- package/dist/cjs/api/resources/voice/errors/BadGatewayError.d.ts +5 -0
- package/dist/cjs/api/resources/voice/errors/BadGatewayError.js +54 -0
- package/dist/cjs/api/resources/voice/errors/BadRequestError.d.ts +5 -0
- package/dist/cjs/api/resources/voice/errors/BadRequestError.js +54 -0
- package/dist/cjs/api/resources/voice/errors/ContentTooLargeError.d.ts +5 -0
- package/dist/cjs/api/resources/voice/errors/ContentTooLargeError.js +54 -0
- package/dist/cjs/api/resources/voice/errors/GatewayTimeoutError.d.ts +5 -0
- package/dist/cjs/api/resources/voice/errors/GatewayTimeoutError.js +54 -0
- package/dist/cjs/api/resources/voice/errors/PaymentRequiredError.d.ts +5 -0
- package/dist/cjs/api/resources/voice/errors/PaymentRequiredError.js +54 -0
- package/dist/cjs/api/resources/voice/errors/ServiceUnavailableError.d.ts +5 -0
- package/dist/cjs/api/resources/voice/errors/ServiceUnavailableError.js +54 -0
- package/dist/cjs/api/resources/voice/errors/UnauthorizedError.d.ts +5 -0
- package/dist/cjs/api/resources/voice/errors/UnauthorizedError.js +54 -0
- package/dist/cjs/api/resources/voice/errors/index.d.ts +7 -0
- package/dist/cjs/api/resources/voice/errors/index.js +23 -0
- package/dist/cjs/api/resources/voice/exports.d.ts +3 -0
- package/dist/cjs/api/resources/voice/exports.js +22 -0
- package/dist/cjs/api/resources/voice/index.d.ts +4 -0
- package/dist/cjs/api/resources/voice/index.js +20 -0
- package/dist/cjs/api/resources/voice/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/voice/resources/index.js +41 -0
- package/dist/cjs/api/resources/voice/resources/voice/client/Client.d.ts +41 -0
- package/dist/cjs/api/resources/voice/resources/voice/client/Client.js +146 -0
- package/dist/cjs/api/resources/voice/resources/voice/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/voice/resources/voice/client/index.js +17 -0
- package/dist/cjs/api/resources/voice/resources/voice/client/requests/TranscribeRequest.d.ts +4 -0
- package/dist/cjs/api/resources/voice/resources/voice/client/requests/TranscribeRequest.js +3 -0
- package/dist/cjs/api/resources/voice/resources/voice/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/voice/resources/voice/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/voice/resources/voice/exports.d.ts +2 -0
- package/dist/cjs/api/resources/voice/resources/voice/exports.js +21 -0
- package/dist/cjs/api/resources/voice/resources/voice/index.d.ts +1 -0
- package/dist/cjs/api/resources/voice/resources/voice/index.js +17 -0
- package/dist/cjs/api/resources/voice/types/TranscribeResponse.d.ts +4 -0
- package/dist/cjs/api/resources/voice/types/TranscribeResponse.js +3 -0
- package/dist/cjs/api/resources/voice/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/voice/types/index.js +17 -0
- 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/exports.d.ts +1 -0
- package/dist/cjs/core/exports.js +1 -0
- package/dist/cjs/core/file/exports.d.ts +1 -0
- package/dist/cjs/core/file/exports.js +2 -0
- package/dist/cjs/core/file/file.d.ts +10 -0
- package/dist/cjs/core/file/file.js +225 -0
- package/dist/cjs/core/file/index.d.ts +2 -0
- package/dist/cjs/core/file/index.js +18 -0
- package/dist/cjs/core/file/types.d.ts +66 -0
- package/dist/cjs/core/file/types.js +2 -0
- package/dist/cjs/core/index.d.ts +1 -0
- package/dist/cjs/core/index.js +2 -1
- 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 +9 -0
- package/dist/esm/Client.mjs +15 -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.d.mts +5 -0
- package/dist/esm/api/resources/agent/errors/ConflictError.mjs +17 -0
- 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/errors/index.d.mts +1 -0
- package/dist/esm/api/resources/agent/errors/index.mjs +1 -0
- package/dist/esm/api/resources/agent/resources/chat/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/agent/resources/chat/client/Client.mjs +8 -2
- package/dist/esm/api/resources/agent/resources/chat/client/requests/AgentChatRequest.d.mts +1 -1
- package/dist/esm/api/resources/agent/resources/chat/client/requests/AgentStreamChatRequest.d.mts +1 -1
- 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 +15 -0
- package/dist/esm/api/resources/construe/resources/codes/client/Client.mjs +17 -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/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/types/ExtractRequestSystem.d.mts +11 -8
- package/dist/esm/api/resources/fhir/client/Client.mjs +5 -4
- package/dist/esm/api/resources/fhir2Omop/client/Client.d.mts +26 -0
- package/dist/esm/api/resources/fhir2Omop/client/Client.mjs +28 -1
- package/dist/esm/api/resources/fhir2Omop/client/requests/CreateOmopRequest.d.mts +6 -3
- 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/ConditionOccurrenceRow.d.mts +1 -0
- package/dist/esm/api/resources/fhir2Omop/types/CreateOmopResponse.d.mts +6 -1
- 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 +3 -0
- package/dist/esm/api/resources/index.mjs +3 -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/client/Client.d.mts +12 -0
- package/dist/esm/api/resources/voice/client/Client.mjs +12 -0
- package/dist/esm/api/resources/voice/client/index.d.mts +1 -0
- package/dist/esm/api/resources/voice/client/index.mjs +1 -0
- package/dist/esm/api/resources/voice/errors/BadGatewayError.d.mts +5 -0
- package/dist/esm/api/resources/voice/errors/BadGatewayError.mjs +17 -0
- package/dist/esm/api/resources/voice/errors/BadRequestError.d.mts +5 -0
- package/dist/esm/api/resources/voice/errors/BadRequestError.mjs +17 -0
- package/dist/esm/api/resources/voice/errors/ContentTooLargeError.d.mts +5 -0
- package/dist/esm/api/resources/voice/errors/ContentTooLargeError.mjs +17 -0
- package/dist/esm/api/resources/voice/errors/GatewayTimeoutError.d.mts +5 -0
- package/dist/esm/api/resources/voice/errors/GatewayTimeoutError.mjs +17 -0
- package/dist/esm/api/resources/voice/errors/PaymentRequiredError.d.mts +5 -0
- package/dist/esm/api/resources/voice/errors/PaymentRequiredError.mjs +17 -0
- package/dist/esm/api/resources/voice/errors/ServiceUnavailableError.d.mts +5 -0
- package/dist/esm/api/resources/voice/errors/ServiceUnavailableError.mjs +17 -0
- package/dist/esm/api/resources/voice/errors/UnauthorizedError.d.mts +5 -0
- package/dist/esm/api/resources/voice/errors/UnauthorizedError.mjs +17 -0
- package/dist/esm/api/resources/voice/errors/index.d.mts +7 -0
- package/dist/esm/api/resources/voice/errors/index.mjs +7 -0
- package/dist/esm/api/resources/voice/exports.d.mts +3 -0
- package/dist/esm/api/resources/voice/exports.mjs +4 -0
- package/dist/esm/api/resources/voice/index.d.mts +4 -0
- package/dist/esm/api/resources/voice/index.mjs +4 -0
- package/dist/esm/api/resources/voice/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/voice/resources/index.mjs +2 -0
- package/dist/esm/api/resources/voice/resources/voice/client/Client.d.mts +41 -0
- package/dist/esm/api/resources/voice/resources/voice/client/Client.mjs +109 -0
- package/dist/esm/api/resources/voice/resources/voice/client/index.d.mts +1 -0
- package/dist/esm/api/resources/voice/resources/voice/client/index.mjs +1 -0
- package/dist/esm/api/resources/voice/resources/voice/client/requests/TranscribeRequest.d.mts +4 -0
- package/dist/esm/api/resources/voice/resources/voice/client/requests/TranscribeRequest.mjs +2 -0
- package/dist/esm/api/resources/voice/resources/voice/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/voice/resources/voice/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/voice/resources/voice/exports.d.mts +2 -0
- package/dist/esm/api/resources/voice/resources/voice/exports.mjs +3 -0
- package/dist/esm/api/resources/voice/resources/voice/index.d.mts +1 -0
- package/dist/esm/api/resources/voice/resources/voice/index.mjs +1 -0
- package/dist/esm/api/resources/voice/types/TranscribeResponse.d.mts +4 -0
- package/dist/esm/api/resources/voice/types/TranscribeResponse.mjs +2 -0
- package/dist/esm/api/resources/voice/types/index.d.mts +1 -0
- package/dist/esm/api/resources/voice/types/index.mjs +1 -0
- 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/exports.d.mts +1 -0
- package/dist/esm/core/exports.mjs +1 -0
- package/dist/esm/core/file/exports.d.mts +1 -0
- package/dist/esm/core/file/exports.mjs +1 -0
- package/dist/esm/core/file/file.d.mts +10 -0
- package/dist/esm/core/file/file.mjs +188 -0
- package/dist/esm/core/file/index.d.mts +2 -0
- package/dist/esm/core/file/index.mjs +2 -0
- package/dist/esm/core/file/types.d.mts +66 -0
- package/dist/esm/core/file/types.mjs +1 -0
- package/dist/esm/core/index.d.mts +1 -0
- package/dist/esm/core/index.mjs +1 -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 +1300 -228
- package/package.json +34 -1
- package/reference.md +652 -1
- /package/dist/cjs/api/resources/{lang2Fhir/client/requests/ProfileUploadRequest.js → fhir2Omop/types/CareSiteRow.js} +0 -0
- /package/dist/esm/api/resources/{lang2Fhir/client/requests/ProfileUploadRequest.mjs → fhir2Omop/types/CareSiteRow.mjs} +0 -0
package/openapi/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Phenoml API",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "0f5e6fc5cd6ac889d00d6733e3b710e4fb90e90e"
|
|
6
6
|
},
|
|
7
7
|
"x-services": [
|
|
8
8
|
{
|
|
@@ -19,6 +19,13 @@
|
|
|
19
19
|
"iconHint": "lang2fhir",
|
|
20
20
|
"status": "ga"
|
|
21
21
|
},
|
|
22
|
+
{
|
|
23
|
+
"id": "fhir_artifacts",
|
|
24
|
+
"name": "FHIR Artifacts",
|
|
25
|
+
"description": "Manage custom FHIR artifacts on a dedicated instance \u2014 StructureDefinition profiles and the implementation guides that group them \u2014 used by Lang2FHIR extraction and other FHIR capabilities.",
|
|
26
|
+
"iconHint": "profiles",
|
|
27
|
+
"status": "alpha"
|
|
28
|
+
},
|
|
22
29
|
{
|
|
23
30
|
"id": "summary",
|
|
24
31
|
"name": "Summary",
|
|
@@ -67,6 +74,13 @@
|
|
|
67
74
|
"description": "FHIR server operations including resource CRUD, search, and batch operations.",
|
|
68
75
|
"iconHint": "proxy",
|
|
69
76
|
"status": "ga"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": "voice",
|
|
80
|
+
"name": "Voice",
|
|
81
|
+
"description": "Transcribe audio recordings into text with speech-to-text. Pair the transcript with Lang2FHIR to turn spoken clinical notes into structured FHIR resources.",
|
|
82
|
+
"iconHint": "voice",
|
|
83
|
+
"status": "alpha"
|
|
70
84
|
}
|
|
71
85
|
],
|
|
72
86
|
"paths": {
|
|
@@ -672,6 +686,9 @@
|
|
|
672
686
|
"404": {
|
|
673
687
|
"description": "Agent or session not found"
|
|
674
688
|
},
|
|
689
|
+
"409": {
|
|
690
|
+
"description": "Chat session already has an active request. Retry after the in-flight turn completes."
|
|
691
|
+
},
|
|
675
692
|
"500": {
|
|
676
693
|
"description": "Server error"
|
|
677
694
|
},
|
|
@@ -746,6 +763,9 @@
|
|
|
746
763
|
"404": {
|
|
747
764
|
"description": "Agent or session not found"
|
|
748
765
|
},
|
|
766
|
+
"409": {
|
|
767
|
+
"description": "Chat session already has an active request. Retry after the in-flight turn completes."
|
|
768
|
+
},
|
|
749
769
|
"500": {
|
|
750
770
|
"description": "Server error"
|
|
751
771
|
},
|
|
@@ -1665,7 +1685,7 @@
|
|
|
1665
1685
|
],
|
|
1666
1686
|
"operationId": "construe_extract",
|
|
1667
1687
|
"summary": "Extract medical codes from text",
|
|
1668
|
-
"description": "Converts natural language text into structured medical codes.\n\nUsage of CPT is subject to AMA requirements: see PhenoML Terms of Service.\n",
|
|
1688
|
+
"description": "Converts natural language text into structured medical codes.\n\nPass `system.version` to select a specific code system version, for example\n`umls-2026aa` for UMLS 2026AA-backed systems.\n\nUsage of CPT is subject to AMA requirements: see PhenoML Terms of Service.\n",
|
|
1669
1689
|
"requestBody": {
|
|
1670
1690
|
"required": true,
|
|
1671
1691
|
"content": {
|
|
@@ -1685,6 +1705,20 @@
|
|
|
1685
1705
|
}
|
|
1686
1706
|
}
|
|
1687
1707
|
},
|
|
1708
|
+
"icd10cm_umls_2026aa": {
|
|
1709
|
+
"summary": "ICD-10-CM UMLS 2026AA",
|
|
1710
|
+
"description": "Select a specific code system version by passing its version ID.",
|
|
1711
|
+
"value": {
|
|
1712
|
+
"text": "Patient has type 2 diabetes mellitus with diabetic chronic kidney disease.",
|
|
1713
|
+
"system": {
|
|
1714
|
+
"name": "ICD-10-CM",
|
|
1715
|
+
"version": "umls-2026aa"
|
|
1716
|
+
},
|
|
1717
|
+
"config": {
|
|
1718
|
+
"validation_method": "simple"
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
},
|
|
1688
1722
|
"with_source_citations": {
|
|
1689
1723
|
"summary": "With Source Citations",
|
|
1690
1724
|
"description": "Enable include_citations and include_rationale to see exactly where each code was found. Notice the highlighted spans in the input text.",
|
|
@@ -2018,27 +2052,27 @@
|
|
|
2018
2052
|
"example": {
|
|
2019
2053
|
"systems": [
|
|
2020
2054
|
{
|
|
2021
|
-
"name": "
|
|
2022
|
-
"version": "
|
|
2023
|
-
"code_count":
|
|
2055
|
+
"name": "CPT",
|
|
2056
|
+
"version": "umls-2026aa",
|
|
2057
|
+
"code_count": 10298,
|
|
2024
2058
|
"builtin": true
|
|
2025
2059
|
},
|
|
2026
2060
|
{
|
|
2027
|
-
"name": "
|
|
2028
|
-
"version": "
|
|
2029
|
-
"code_count":
|
|
2061
|
+
"name": "CPT",
|
|
2062
|
+
"version": "2025",
|
|
2063
|
+
"code_count": 10192,
|
|
2030
2064
|
"builtin": true
|
|
2031
2065
|
},
|
|
2032
2066
|
{
|
|
2033
|
-
"name": "
|
|
2034
|
-
"version": "
|
|
2035
|
-
"code_count":
|
|
2067
|
+
"name": "HCPCS",
|
|
2068
|
+
"version": "umls-2026aa",
|
|
2069
|
+
"code_count": 7322,
|
|
2036
2070
|
"builtin": true
|
|
2037
2071
|
},
|
|
2038
2072
|
{
|
|
2039
|
-
"name": "
|
|
2040
|
-
"version": "
|
|
2041
|
-
"code_count":
|
|
2073
|
+
"name": "HPO",
|
|
2074
|
+
"version": "umls-2026aa",
|
|
2075
|
+
"code_count": 19698,
|
|
2042
2076
|
"builtin": true
|
|
2043
2077
|
},
|
|
2044
2078
|
{
|
|
@@ -2048,9 +2082,27 @@
|
|
|
2048
2082
|
"builtin": true
|
|
2049
2083
|
},
|
|
2050
2084
|
{
|
|
2051
|
-
"name": "
|
|
2085
|
+
"name": "ICD-10",
|
|
2086
|
+
"version": "umls-2026aa",
|
|
2087
|
+
"code_count": 12292,
|
|
2088
|
+
"builtin": true
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
"name": "ICD-10-CM",
|
|
2092
|
+
"version": "umls-2026aa",
|
|
2093
|
+
"code_count": 98506,
|
|
2094
|
+
"builtin": true
|
|
2095
|
+
},
|
|
2096
|
+
{
|
|
2097
|
+
"name": "ICD-10-CM",
|
|
2052
2098
|
"version": "2025",
|
|
2053
|
-
"code_count":
|
|
2099
|
+
"code_count": 97584,
|
|
2100
|
+
"builtin": true
|
|
2101
|
+
},
|
|
2102
|
+
{
|
|
2103
|
+
"name": "ICD-10-PCS",
|
|
2104
|
+
"version": "umls-2026aa",
|
|
2105
|
+
"code_count": 79232,
|
|
2054
2106
|
"builtin": true
|
|
2055
2107
|
},
|
|
2056
2108
|
{
|
|
@@ -2058,6 +2110,48 @@
|
|
|
2058
2110
|
"version": "2025",
|
|
2059
2111
|
"code_count": 78717,
|
|
2060
2112
|
"builtin": true
|
|
2113
|
+
},
|
|
2114
|
+
{
|
|
2115
|
+
"name": "LOINC",
|
|
2116
|
+
"version": "umls-2026aa",
|
|
2117
|
+
"code_count": 99231,
|
|
2118
|
+
"builtin": true
|
|
2119
|
+
},
|
|
2120
|
+
{
|
|
2121
|
+
"name": "LOINC",
|
|
2122
|
+
"version": "2.78",
|
|
2123
|
+
"code_count": 98123,
|
|
2124
|
+
"builtin": true
|
|
2125
|
+
},
|
|
2126
|
+
{
|
|
2127
|
+
"name": "RXNORM",
|
|
2128
|
+
"version": "umls-2026aa",
|
|
2129
|
+
"code_count": 259884,
|
|
2130
|
+
"builtin": true
|
|
2131
|
+
},
|
|
2132
|
+
{
|
|
2133
|
+
"name": "RXNORM",
|
|
2134
|
+
"version": "11042024",
|
|
2135
|
+
"code_count": 257619,
|
|
2136
|
+
"builtin": true
|
|
2137
|
+
},
|
|
2138
|
+
{
|
|
2139
|
+
"name": "SNOMED_CT_US",
|
|
2140
|
+
"version": "umls-2026aa",
|
|
2141
|
+
"code_count": 386110,
|
|
2142
|
+
"builtin": true
|
|
2143
|
+
},
|
|
2144
|
+
{
|
|
2145
|
+
"name": "SNOMED_CT_US",
|
|
2146
|
+
"version": "20240901",
|
|
2147
|
+
"code_count": 371482,
|
|
2148
|
+
"builtin": true
|
|
2149
|
+
},
|
|
2150
|
+
{
|
|
2151
|
+
"name": "SNOMED_CT_US_LITE",
|
|
2152
|
+
"version": "20240901",
|
|
2153
|
+
"code_count": 102837,
|
|
2154
|
+
"builtin": true
|
|
2061
2155
|
}
|
|
2062
2156
|
]
|
|
2063
2157
|
}
|
|
@@ -2105,7 +2199,7 @@
|
|
|
2105
2199
|
"schema": {
|
|
2106
2200
|
"type": "string"
|
|
2107
2201
|
},
|
|
2108
|
-
"description": "Specific version of the code system
|
|
2202
|
+
"description": "Specific version of the code system, such as `umls-2026aa`.",
|
|
2109
2203
|
"example": "2025"
|
|
2110
2204
|
}
|
|
2111
2205
|
],
|
|
@@ -2130,7 +2224,7 @@
|
|
|
2130
2224
|
}
|
|
2131
2225
|
},
|
|
2132
2226
|
"400": {
|
|
2133
|
-
"description": "Invalid parameters
|
|
2227
|
+
"description": "Invalid parameters"
|
|
2134
2228
|
},
|
|
2135
2229
|
"401": {
|
|
2136
2230
|
"description": "Unauthorized"
|
|
@@ -2174,7 +2268,7 @@
|
|
|
2174
2268
|
"schema": {
|
|
2175
2269
|
"type": "string"
|
|
2176
2270
|
},
|
|
2177
|
-
"description": "Specific version of the code system.
|
|
2271
|
+
"description": "Specific version of the custom code system."
|
|
2178
2272
|
}
|
|
2179
2273
|
],
|
|
2180
2274
|
"responses": {
|
|
@@ -2192,7 +2286,7 @@
|
|
|
2192
2286
|
}
|
|
2193
2287
|
},
|
|
2194
2288
|
"400": {
|
|
2195
|
-
"description": "Invalid parameters
|
|
2289
|
+
"description": "Invalid parameters"
|
|
2196
2290
|
},
|
|
2197
2291
|
"401": {
|
|
2198
2292
|
"description": "Unauthorized"
|
|
@@ -2241,7 +2335,7 @@
|
|
|
2241
2335
|
"schema": {
|
|
2242
2336
|
"type": "string"
|
|
2243
2337
|
},
|
|
2244
|
-
"description": "Specific version of the code system.
|
|
2338
|
+
"description": "Specific version of the custom code system."
|
|
2245
2339
|
}
|
|
2246
2340
|
],
|
|
2247
2341
|
"responses": {
|
|
@@ -2279,7 +2373,7 @@
|
|
|
2279
2373
|
}
|
|
2280
2374
|
},
|
|
2281
2375
|
"400": {
|
|
2282
|
-
"description": "Invalid parameters
|
|
2376
|
+
"description": "Invalid parameters"
|
|
2283
2377
|
},
|
|
2284
2378
|
"401": {
|
|
2285
2379
|
"description": "Unauthorized"
|
|
@@ -2343,7 +2437,7 @@
|
|
|
2343
2437
|
"schema": {
|
|
2344
2438
|
"type": "string"
|
|
2345
2439
|
},
|
|
2346
|
-
"description": "Specific version of the code system
|
|
2440
|
+
"description": "Specific version of the code system, such as `umls-2026aa`.",
|
|
2347
2441
|
"examples": {
|
|
2348
2442
|
"browse_icd10cm": {
|
|
2349
2443
|
"summary": "Browse ICD-10-CM",
|
|
@@ -2467,7 +2561,7 @@
|
|
|
2467
2561
|
}
|
|
2468
2562
|
},
|
|
2469
2563
|
"400": {
|
|
2470
|
-
"description": "Invalid parameters
|
|
2564
|
+
"description": "Invalid parameters"
|
|
2471
2565
|
},
|
|
2472
2566
|
"401": {
|
|
2473
2567
|
"description": "Unauthorized"
|
|
@@ -2541,7 +2635,7 @@
|
|
|
2541
2635
|
"schema": {
|
|
2542
2636
|
"type": "string"
|
|
2543
2637
|
},
|
|
2544
|
-
"description": "Specific version of the code system"
|
|
2638
|
+
"description": "Specific version of the code system, such as `umls-2026aa`."
|
|
2545
2639
|
}
|
|
2546
2640
|
],
|
|
2547
2641
|
"responses": {
|
|
@@ -2657,7 +2751,7 @@
|
|
|
2657
2751
|
"schema": {
|
|
2658
2752
|
"type": "string"
|
|
2659
2753
|
},
|
|
2660
|
-
"description": "Specific version of the code system"
|
|
2754
|
+
"description": "Specific version of the code system, such as `umls-2026aa`."
|
|
2661
2755
|
},
|
|
2662
2756
|
{
|
|
2663
2757
|
"name": "limit",
|
|
@@ -2906,7 +3000,7 @@
|
|
|
2906
3000
|
"schema": {
|
|
2907
3001
|
"type": "string"
|
|
2908
3002
|
},
|
|
2909
|
-
"description": "Specific version of the code system"
|
|
3003
|
+
"description": "Specific version of the code system, such as `umls-2026aa`."
|
|
2910
3004
|
},
|
|
2911
3005
|
{
|
|
2912
3006
|
"name": "limit",
|
|
@@ -3021,7 +3115,7 @@
|
|
|
3021
3115
|
"post": {
|
|
3022
3116
|
"operationId": "fhir2omop_create",
|
|
3023
3117
|
"summary": "Map FHIR resources to OMOP CDM v5.4",
|
|
3024
|
-
"description": "Maps a FHIR R4 resource or Bundle into OMOP Common Data Model v5.4 rows\n(person, visit_occurrence, condition_occurrence, drug_exposure,\nprocedure_occurrence, measurement, observation).\n\nEach resource's primary clinical coding is resolved to a standard OMOP\n`concept_id`. Alongside the OMOP rows grouped by table (`tables`), the\nresponse carries `mappings` (how each source coding resolved, linked back\nto the row it produced), `dropped` (resources that could not be shaped\ninto a row), `vocab_version` (the OMOP vocabulary release codes were\nresolved against), and a small `summary` of the resolution outcomes.\n\nA `concept_id` of `0` is reported, not omitted (OMOP \"no matching\nconcept\" semantics): it covers both a coding with no standard match\n(`UNMAPPED`) and an unverified suggestion for a text-only resource\n(`UNCHECKED`). Only the primary clinical coding is resolved, so\n`gender`/`race`/`ethnicity`/`visit`/`value`/`unit` `concept_id`s are\nalways `0`; the one populated non-resolved concept is measurement\n`operator_concept_id`, set from a value comparator (`<`, `<=`, `>`, `>=`)\nrather than the resolver. Each `*_source_value` carries the verbatim FHIR\ncoding (`system#code`), and `*_type_concept_id` is set to `32817` (EHR).\n\nMedication codes are resolved whether they appear inline\n(`medicationCodeableConcept`) or via a `medicationReference` to a contained,\nrelative (`Type/id`), or bundle-entry (`urn:uuid`) `Medication` resource.\nResources that cannot be shaped into a row \u2014 a medication with no usable\ncode, resolvable reference, or display, or any clinical resource whose\nsubject/patient reference cannot be tied to a person \u2014 are reported under\n`dropped` rather than emitted as blank rows. The\nbundle must contain at least one Patient resource.\n",
|
|
3118
|
+
"description": "Maps a FHIR R4 resource or Bundle into OMOP Common Data Model v5.4 rows\n(person, visit_occurrence, condition_occurrence, drug_exposure,\nprocedure_occurrence, measurement, observation).\n\nResource support is intentionally limited to the OMOP tables returned by\nthis endpoint:\n- `Patient` -> `person`\n- `Encounter` -> `visit_occurrence`\n- `Condition` -> `condition_occurrence`\n- `Procedure` -> `procedure_occurrence`\n- `MedicationRequest`, `MedicationStatement`, and\n `MedicationAdministration` -> `drug_exposure`\n- `Immunization` -> `drug_exposure`\n- `Observation` with a numeric `valueQuantity`, `valueInteger`, or\n numeric-looking `valueString` (for example `\"<2\"`) -> `measurement`\n- non-numeric `Observation` -> `observation`\n- `AllergyIntolerance` -> `observation`\n\n`Medication` is supported only as reference data for medication\nresources; it is not emitted as its own row because OMOP CDM has no\nMedication table. Other reference/admin resources such as `Practitioner`,\n`Organization`, `Location`, `Coverage`, and `Claim`, and clinical\nworkflow/document resources such as `DiagnosticReport`, `ServiceRequest`,\n`CarePlan`, `DocumentReference`, `Composition`, `Specimen`, and\n`DeviceUseStatement`, are currently accepted in a Bundle but are not\nshaped into OMOP rows. Unsupported resource types are ignored rather than\nlisted under `dropped`; `dropped` is reserved for supported resource types\nthat were missing the subject/patient, code, or medication reference data\nneeded to produce a valid row.\n\nEach resource's primary clinical coding is resolved to a standard OMOP\n`concept_id`. Alongside the OMOP rows grouped by table (`tables`), the\nresponse carries `mappings` (how each source coding resolved, linked back\nto the row it produced), `dropped` (resources that could not be shaped\ninto a row), `vocab_version` (the OMOP vocabulary release codes were\nresolved against), and a small `summary` of the resolution outcomes.\n\nA `concept_id` of `0` is reported, not omitted (OMOP \"no matching\nconcept\" semantics): it covers both a coding with no standard match\n(`UNMAPPED`) and an unverified suggestion for a text-only resource\n(`UNCHECKED`). Only the primary clinical coding is resolved, so\n`gender`/`race`/`ethnicity`/`visit`/`value`/`unit` `concept_id`s are\nalways `0`; the one populated non-resolved concept is measurement\n`operator_concept_id`, set from a value comparator (`<`, `<=`, `>`, `>=`)\nrather than the resolver. Each `*_source_value` carries the verbatim FHIR\ncoding (`system#code`), and `*_type_concept_id` is set to `32817` (EHR).\n\nMedication codes are resolved whether they appear inline\n(`medicationCodeableConcept`) or via a `medicationReference` to a contained,\nrelative (`Type/id`), or bundle-entry (`urn:uuid`) `Medication` resource.\nResources that cannot be shaped into a row \u2014 a medication with no usable\ncode, resolvable reference, or display, or any clinical resource whose\nsubject/patient reference cannot be tied to a person \u2014 are reported under\n`dropped` rather than emitted as blank rows. The\nbundle must contain at least one Patient resource.\n",
|
|
3025
3119
|
"requestBody": {
|
|
3026
3120
|
"required": true,
|
|
3027
3121
|
"content": {
|
|
@@ -4733,8 +4827,9 @@
|
|
|
4733
4827
|
"/lang2fhir/profile/upload": {
|
|
4734
4828
|
"post": {
|
|
4735
4829
|
"operationId": "lang2fhir_uploadProfile",
|
|
4736
|
-
"
|
|
4737
|
-
"
|
|
4830
|
+
"deprecated": true,
|
|
4831
|
+
"summary": "Upload custom FHIR profile (deprecated)",
|
|
4832
|
+
"description": "**Deprecated \u2014 use `POST /fhir/profiles` instead.** This route continues to work\nand operates on the same custom profiles, so no migration is required; it\nwill be removed in a future release. Note that `POST /fhir/profiles` does not\naccept `profile_context`; set implementation-guide context with\n`PUT /fhir/implementation-guides/{name}`.\n\nUpload a custom FHIR StructureDefinition profile for use with the lang2fhir service.\n\nAll metadata is derived from the StructureDefinition JSON itself. The lowercase `id` field\nfrom the StructureDefinition is used as the profile's unique identifier and lookup key.\nTo use the uploaded profile with `/lang2fhir/create`, pass this id as the `resource` parameter.\n\nUploads will be rejected if:\n- A built-in US Core or R4 base profile already exists with the same id\n- A custom profile with the same id has already been uploaded\n- A custom profile with the same url has already been uploaded\n",
|
|
4738
4833
|
"requestBody": {
|
|
4739
4834
|
"required": true,
|
|
4740
4835
|
"content": {
|
|
@@ -4981,19 +5076,28 @@
|
|
|
4981
5076
|
"tempId": "urn:uuid:patient-001",
|
|
4982
5077
|
"resourceType": "Patient",
|
|
4983
5078
|
"description": "John Doe, born 1979-03-15",
|
|
4984
|
-
"originalText": "John Doe, DOB 1979-03-15"
|
|
5079
|
+
"originalText": "John Doe, DOB 1979-03-15",
|
|
5080
|
+
"sourcePages": [
|
|
5081
|
+
1
|
|
5082
|
+
]
|
|
4985
5083
|
},
|
|
4986
5084
|
{
|
|
4987
5085
|
"tempId": "urn:uuid:condition-001",
|
|
4988
5086
|
"resourceType": "Condition",
|
|
4989
5087
|
"description": "Type 2 Diabetes Mellitus diagnosis",
|
|
4990
|
-
"originalText": "diagnosed with Type 2 Diabetes"
|
|
5088
|
+
"originalText": "diagnosed with Type 2 Diabetes",
|
|
5089
|
+
"sourcePages": [
|
|
5090
|
+
1
|
|
5091
|
+
]
|
|
4991
5092
|
},
|
|
4992
5093
|
{
|
|
4993
5094
|
"tempId": "urn:uuid:medication-001",
|
|
4994
5095
|
"resourceType": "MedicationRequest",
|
|
4995
5096
|
"description": "Metformin 500mg prescription",
|
|
4996
|
-
"originalText": "Prescribed Metformin 500mg"
|
|
5097
|
+
"originalText": "Prescribed Metformin 500mg",
|
|
5098
|
+
"sourcePages": [
|
|
5099
|
+
2
|
|
5100
|
+
]
|
|
4997
5101
|
}
|
|
4998
5102
|
]
|
|
4999
5103
|
}
|
|
@@ -5568,101 +5672,30 @@
|
|
|
5568
5672
|
"x-service": "summary"
|
|
5569
5673
|
}
|
|
5570
5674
|
},
|
|
5571
|
-
"/
|
|
5572
|
-
"
|
|
5573
|
-
"operationId": "
|
|
5574
|
-
"
|
|
5575
|
-
|
|
5576
|
-
"parameters": [
|
|
5577
|
-
{
|
|
5578
|
-
"$ref": "#/components/parameters/tools_OnBehalfOfHeader"
|
|
5579
|
-
},
|
|
5580
|
-
{
|
|
5581
|
-
"$ref": "#/components/parameters/tools_FhirProviderHeader"
|
|
5582
|
-
}
|
|
5675
|
+
"/fhir/implementation-guides": {
|
|
5676
|
+
"get": {
|
|
5677
|
+
"operationId": "implementation-guides_list",
|
|
5678
|
+
"tags": [
|
|
5679
|
+
"FHIR Artifacts / Implementation Guides"
|
|
5583
5680
|
],
|
|
5584
|
-
"
|
|
5585
|
-
|
|
5586
|
-
"content": {
|
|
5587
|
-
"application/json": {
|
|
5588
|
-
"schema": {
|
|
5589
|
-
"$ref": "#/components/schemas/tools_Lang2FhirAndCreateRequest"
|
|
5590
|
-
},
|
|
5591
|
-
"example": {
|
|
5592
|
-
"resource": "condition-encounter-diagnosis",
|
|
5593
|
-
"text": "Patient has severe persistent asthma with acute exacerbation",
|
|
5594
|
-
"provider": "550e8400-e29b-41d4-a716-446655440000"
|
|
5595
|
-
}
|
|
5596
|
-
}
|
|
5597
|
-
}
|
|
5598
|
-
},
|
|
5681
|
+
"summary": "List implementation guides",
|
|
5682
|
+
"description": "Returns every implementation guide on this instance \u2014 both guides that\nhave stored metadata (a profile_context) and guides referenced by at\nleast one custom profile \u2014 with the number of profiles in each.\n",
|
|
5599
5683
|
"responses": {
|
|
5600
5684
|
"200": {
|
|
5601
|
-
"description": "
|
|
5685
|
+
"description": "List of implementation guides",
|
|
5602
5686
|
"content": {
|
|
5603
5687
|
"application/json": {
|
|
5604
5688
|
"schema": {
|
|
5605
|
-
"$ref": "#/components/schemas/
|
|
5606
|
-
},
|
|
5607
|
-
"example": {
|
|
5608
|
-
"success": true,
|
|
5609
|
-
"message": "FHIR resource created successfully",
|
|
5610
|
-
"fhir_id": "condition-123",
|
|
5611
|
-
"fhir_resource": {
|
|
5612
|
-
"resourceType": "Condition",
|
|
5613
|
-
"id": "condition-123",
|
|
5614
|
-
"clinicalStatus": {
|
|
5615
|
-
"coding": [
|
|
5616
|
-
{
|
|
5617
|
-
"system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
|
|
5618
|
-
"code": "active"
|
|
5619
|
-
}
|
|
5620
|
-
]
|
|
5621
|
-
},
|
|
5622
|
-
"verificationStatus": {
|
|
5623
|
-
"coding": [
|
|
5624
|
-
{
|
|
5625
|
-
"system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
|
|
5626
|
-
"code": "confirmed"
|
|
5627
|
-
}
|
|
5628
|
-
]
|
|
5629
|
-
},
|
|
5630
|
-
"category": [
|
|
5631
|
-
{
|
|
5632
|
-
"coding": [
|
|
5633
|
-
{
|
|
5634
|
-
"system": "http://terminology.hl7.org/CodeSystem/condition-category",
|
|
5635
|
-
"code": "encounter-diagnosis"
|
|
5636
|
-
}
|
|
5637
|
-
]
|
|
5638
|
-
}
|
|
5639
|
-
],
|
|
5640
|
-
"code": {
|
|
5641
|
-
"coding": [
|
|
5642
|
-
{
|
|
5643
|
-
"system": "http://snomed.info/sct",
|
|
5644
|
-
"code": "195967001",
|
|
5645
|
-
"display": "Asthma"
|
|
5646
|
-
}
|
|
5647
|
-
],
|
|
5648
|
-
"text": "Severe persistent asthma with acute exacerbation"
|
|
5649
|
-
},
|
|
5650
|
-
"subject": {
|
|
5651
|
-
"reference": "Patient/patient-123"
|
|
5652
|
-
}
|
|
5653
|
-
}
|
|
5689
|
+
"$ref": "#/components/schemas/implementation-guides_ImplementationGuideListResponse"
|
|
5654
5690
|
}
|
|
5655
5691
|
}
|
|
5656
5692
|
}
|
|
5657
5693
|
},
|
|
5658
|
-
"400": {
|
|
5659
|
-
"description": "Invalid request"
|
|
5660
|
-
},
|
|
5661
5694
|
"401": {
|
|
5662
5695
|
"description": "Unauthorized"
|
|
5663
5696
|
},
|
|
5664
5697
|
"403": {
|
|
5665
|
-
"description": "Forbidden -
|
|
5698
|
+
"description": "Forbidden - custom profiles are only available on dedicated instances"
|
|
5666
5699
|
},
|
|
5667
5700
|
"500": {
|
|
5668
5701
|
"description": "Server error"
|
|
@@ -5673,101 +5706,51 @@
|
|
|
5673
5706
|
"bearerAuth": []
|
|
5674
5707
|
}
|
|
5675
5708
|
],
|
|
5676
|
-
"x-service": "
|
|
5709
|
+
"x-service": "fhir_artifacts"
|
|
5677
5710
|
}
|
|
5678
5711
|
},
|
|
5679
|
-
"/
|
|
5680
|
-
"
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5712
|
+
"/fhir/implementation-guides/{name}": {
|
|
5713
|
+
"parameters": [
|
|
5714
|
+
{
|
|
5715
|
+
"name": "name",
|
|
5716
|
+
"in": "path",
|
|
5717
|
+
"required": true,
|
|
5718
|
+
"description": "The implementation guide name.",
|
|
5719
|
+
"schema": {
|
|
5720
|
+
"type": "string"
|
|
5687
5721
|
},
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5722
|
+
"example": "acme-cardiology"
|
|
5723
|
+
}
|
|
5724
|
+
],
|
|
5725
|
+
"get": {
|
|
5726
|
+
"operationId": "implementation-guides_get",
|
|
5727
|
+
"tags": [
|
|
5728
|
+
"FHIR Artifacts / Implementation Guides"
|
|
5691
5729
|
],
|
|
5692
|
-
"
|
|
5693
|
-
|
|
5694
|
-
"content": {
|
|
5695
|
-
"application/json": {
|
|
5696
|
-
"schema": {
|
|
5697
|
-
"$ref": "#/components/schemas/tools_Lang2FhirAndCreateMultiRequest"
|
|
5698
|
-
},
|
|
5699
|
-
"example": {
|
|
5700
|
-
"text": "John Smith, 45-year-old male, diagnosed with Type 2 Diabetes. Prescribed Metformin 500mg twice daily.",
|
|
5701
|
-
"version": "R4",
|
|
5702
|
-
"provider": "medplum"
|
|
5703
|
-
}
|
|
5704
|
-
}
|
|
5705
|
-
}
|
|
5706
|
-
},
|
|
5730
|
+
"summary": "Get an implementation guide",
|
|
5731
|
+
"description": "Returns a single implementation guide, including its profile_context and\nthe ids of the profiles that belong to it.\n",
|
|
5707
5732
|
"responses": {
|
|
5708
5733
|
"200": {
|
|
5709
|
-
"description": "
|
|
5734
|
+
"description": "The requested implementation guide",
|
|
5710
5735
|
"content": {
|
|
5711
5736
|
"application/json": {
|
|
5712
5737
|
"schema": {
|
|
5713
|
-
"$ref": "#/components/schemas/
|
|
5714
|
-
},
|
|
5715
|
-
"example": {
|
|
5716
|
-
"success": true,
|
|
5717
|
-
"message": "Created 3 resources",
|
|
5718
|
-
"response_bundle": {
|
|
5719
|
-
"resourceType": "Bundle",
|
|
5720
|
-
"type": "transaction-response",
|
|
5721
|
-
"entry": [
|
|
5722
|
-
{
|
|
5723
|
-
"response": {
|
|
5724
|
-
"status": "201 Created",
|
|
5725
|
-
"location": "Patient/patient-001"
|
|
5726
|
-
}
|
|
5727
|
-
},
|
|
5728
|
-
{
|
|
5729
|
-
"response": {
|
|
5730
|
-
"status": "201 Created",
|
|
5731
|
-
"location": "Condition/condition-001"
|
|
5732
|
-
}
|
|
5733
|
-
},
|
|
5734
|
-
{
|
|
5735
|
-
"response": {
|
|
5736
|
-
"status": "201 Created",
|
|
5737
|
-
"location": "MedicationRequest/medication-001"
|
|
5738
|
-
}
|
|
5739
|
-
}
|
|
5740
|
-
]
|
|
5741
|
-
},
|
|
5742
|
-
"resource_info": [
|
|
5743
|
-
{
|
|
5744
|
-
"tempId": "urn:uuid:patient-abc123",
|
|
5745
|
-
"resourceType": "Patient",
|
|
5746
|
-
"description": "John Smith, 45-year-old male"
|
|
5747
|
-
},
|
|
5748
|
-
{
|
|
5749
|
-
"tempId": "urn:uuid:condition-abc123",
|
|
5750
|
-
"resourceType": "Condition",
|
|
5751
|
-
"description": "Type 2 Diabetes diagnosis"
|
|
5752
|
-
},
|
|
5753
|
-
{
|
|
5754
|
-
"tempId": "urn:uuid:medication-abc123",
|
|
5755
|
-
"resourceType": "MedicationRequest",
|
|
5756
|
-
"description": "Metformin 500mg twice daily"
|
|
5757
|
-
}
|
|
5758
|
-
]
|
|
5738
|
+
"$ref": "#/components/schemas/implementation-guides_ImplementationGuideDetail"
|
|
5759
5739
|
}
|
|
5760
5740
|
}
|
|
5761
5741
|
}
|
|
5762
5742
|
},
|
|
5763
5743
|
"400": {
|
|
5764
|
-
"description": "
|
|
5744
|
+
"description": "The name is reserved or malformed"
|
|
5765
5745
|
},
|
|
5766
5746
|
"401": {
|
|
5767
5747
|
"description": "Unauthorized"
|
|
5768
5748
|
},
|
|
5769
5749
|
"403": {
|
|
5770
|
-
"description": "Forbidden -
|
|
5750
|
+
"description": "Forbidden - custom profiles are only available on dedicated instances"
|
|
5751
|
+
},
|
|
5752
|
+
"404": {
|
|
5753
|
+
"description": "Implementation guide not found"
|
|
5771
5754
|
},
|
|
5772
5755
|
"500": {
|
|
5773
5756
|
"description": "Server error"
|
|
@@ -5778,9 +5761,541 @@
|
|
|
5778
5761
|
"bearerAuth": []
|
|
5779
5762
|
}
|
|
5780
5763
|
],
|
|
5781
|
-
"x-service": "
|
|
5782
|
-
}
|
|
5783
|
-
|
|
5764
|
+
"x-service": "fhir_artifacts"
|
|
5765
|
+
},
|
|
5766
|
+
"put": {
|
|
5767
|
+
"operationId": "implementation-guides_update",
|
|
5768
|
+
"tags": [
|
|
5769
|
+
"FHIR Artifacts / Implementation Guides"
|
|
5770
|
+
],
|
|
5771
|
+
"summary": "Set an implementation guide's profile context",
|
|
5772
|
+
"description": "Sets (or clears, with an empty value) the natural-language profile_context\nfor an implementation guide. The context is injected into the LLM during\nresource detection to help select the right profiles from this guide.\nIt applies to every profile in the guide.\n",
|
|
5773
|
+
"requestBody": {
|
|
5774
|
+
"required": true,
|
|
5775
|
+
"content": {
|
|
5776
|
+
"application/json": {
|
|
5777
|
+
"schema": {
|
|
5778
|
+
"$ref": "#/components/schemas/implementation-guides_UpdateImplementationGuideRequest"
|
|
5779
|
+
}
|
|
5780
|
+
}
|
|
5781
|
+
}
|
|
5782
|
+
},
|
|
5783
|
+
"responses": {
|
|
5784
|
+
"200": {
|
|
5785
|
+
"description": "Implementation guide successfully updated",
|
|
5786
|
+
"content": {
|
|
5787
|
+
"application/json": {
|
|
5788
|
+
"schema": {
|
|
5789
|
+
"$ref": "#/components/schemas/implementation-guides_ImplementationGuideSummary"
|
|
5790
|
+
}
|
|
5791
|
+
}
|
|
5792
|
+
}
|
|
5793
|
+
},
|
|
5794
|
+
"400": {
|
|
5795
|
+
"description": "Invalid implementation guide name or profile_context too long"
|
|
5796
|
+
},
|
|
5797
|
+
"401": {
|
|
5798
|
+
"description": "Unauthorized"
|
|
5799
|
+
},
|
|
5800
|
+
"403": {
|
|
5801
|
+
"description": "Forbidden - custom profiles are only available on dedicated instances"
|
|
5802
|
+
},
|
|
5803
|
+
"500": {
|
|
5804
|
+
"description": "Server error"
|
|
5805
|
+
}
|
|
5806
|
+
},
|
|
5807
|
+
"security": [
|
|
5808
|
+
{
|
|
5809
|
+
"bearerAuth": []
|
|
5810
|
+
}
|
|
5811
|
+
],
|
|
5812
|
+
"x-service": "fhir_artifacts"
|
|
5813
|
+
},
|
|
5814
|
+
"delete": {
|
|
5815
|
+
"operationId": "implementation-guides_delete",
|
|
5816
|
+
"tags": [
|
|
5817
|
+
"FHIR Artifacts / Implementation Guides"
|
|
5818
|
+
],
|
|
5819
|
+
"summary": "Delete an implementation guide's metadata",
|
|
5820
|
+
"description": "Deletes the stored metadata for an implementation guide \u2014 its\nprofile_context and timestamps. Member profiles keep their\nimplementation_guide assignment, so a guide still referenced by at least\none profile continues to appear in listings, just without context or\ntimestamps.\n",
|
|
5821
|
+
"responses": {
|
|
5822
|
+
"204": {
|
|
5823
|
+
"description": "Implementation guide metadata successfully deleted"
|
|
5824
|
+
},
|
|
5825
|
+
"400": {
|
|
5826
|
+
"description": "The name is reserved or malformed"
|
|
5827
|
+
},
|
|
5828
|
+
"401": {
|
|
5829
|
+
"description": "Unauthorized"
|
|
5830
|
+
},
|
|
5831
|
+
"403": {
|
|
5832
|
+
"description": "Forbidden - custom profiles are only available on dedicated instances"
|
|
5833
|
+
},
|
|
5834
|
+
"404": {
|
|
5835
|
+
"description": "No implementation guide metadata exists for this name"
|
|
5836
|
+
},
|
|
5837
|
+
"500": {
|
|
5838
|
+
"description": "Server error"
|
|
5839
|
+
}
|
|
5840
|
+
},
|
|
5841
|
+
"security": [
|
|
5842
|
+
{
|
|
5843
|
+
"bearerAuth": []
|
|
5844
|
+
}
|
|
5845
|
+
],
|
|
5846
|
+
"x-service": "fhir_artifacts"
|
|
5847
|
+
}
|
|
5848
|
+
},
|
|
5849
|
+
"/fhir/profiles": {
|
|
5850
|
+
"get": {
|
|
5851
|
+
"operationId": "profiles_list",
|
|
5852
|
+
"tags": [
|
|
5853
|
+
"FHIR Artifacts / Profiles"
|
|
5854
|
+
],
|
|
5855
|
+
"summary": "List custom FHIR profiles",
|
|
5856
|
+
"description": "Returns metadata for every custom (uploaded) FHIR profile on this\ninstance, across all implementation guides. The full StructureDefinition\nJSON is omitted from each entry; fetch a single profile by id to retrieve it.\n\nThe `url` query parameter filters by canonical URL. The canonical URL is the\nstable key other platform features use to reference a profile (FHIR's\n`meta.profile`, `baseDefinition`), since StructureDefinition ids are only\nunique within a package. A non-matching filter returns an empty list, not a 404.\n",
|
|
5857
|
+
"parameters": [
|
|
5858
|
+
{
|
|
5859
|
+
"name": "url",
|
|
5860
|
+
"in": "query",
|
|
5861
|
+
"required": false,
|
|
5862
|
+
"description": "Filter by canonical URL. Accepts the FHIR pinned form `url|version` (split on the last `|`); the bare form matches the current version.\n",
|
|
5863
|
+
"schema": {
|
|
5864
|
+
"type": "string"
|
|
5865
|
+
},
|
|
5866
|
+
"example": "http://phenoml.com/fhir/StructureDefinition/custom-patient|1.0.0"
|
|
5867
|
+
}
|
|
5868
|
+
],
|
|
5869
|
+
"responses": {
|
|
5870
|
+
"200": {
|
|
5871
|
+
"description": "List of uploaded profiles",
|
|
5872
|
+
"content": {
|
|
5873
|
+
"application/json": {
|
|
5874
|
+
"schema": {
|
|
5875
|
+
"$ref": "#/components/schemas/profiles_ProfileListResponse"
|
|
5876
|
+
}
|
|
5877
|
+
}
|
|
5878
|
+
}
|
|
5879
|
+
},
|
|
5880
|
+
"401": {
|
|
5881
|
+
"description": "Unauthorized"
|
|
5882
|
+
},
|
|
5883
|
+
"403": {
|
|
5884
|
+
"description": "Forbidden - custom profiles are only available on dedicated instances"
|
|
5885
|
+
},
|
|
5886
|
+
"500": {
|
|
5887
|
+
"description": "Server error"
|
|
5888
|
+
}
|
|
5889
|
+
},
|
|
5890
|
+
"security": [
|
|
5891
|
+
{
|
|
5892
|
+
"bearerAuth": []
|
|
5893
|
+
}
|
|
5894
|
+
],
|
|
5895
|
+
"x-service": "fhir_artifacts"
|
|
5896
|
+
},
|
|
5897
|
+
"post": {
|
|
5898
|
+
"operationId": "profiles_create",
|
|
5899
|
+
"tags": [
|
|
5900
|
+
"FHIR Artifacts / Profiles"
|
|
5901
|
+
],
|
|
5902
|
+
"summary": "Upload a custom FHIR profile",
|
|
5903
|
+
"description": "Creates a custom profile from a FHIR StructureDefinition supplied as a JSON\nobject. All metadata (version, resource type, id, url) is derived from the\nStructureDefinition; the lowercase StructureDefinition id becomes the\nprofile's lookup key. Code system configuration is auto-extracted from the\nsnapshot. Optionally group the profile under a named implementation guide.\n",
|
|
5904
|
+
"requestBody": {
|
|
5905
|
+
"required": true,
|
|
5906
|
+
"content": {
|
|
5907
|
+
"application/json": {
|
|
5908
|
+
"schema": {
|
|
5909
|
+
"$ref": "#/components/schemas/profiles_ProfileUploadRequest"
|
|
5910
|
+
}
|
|
5911
|
+
}
|
|
5912
|
+
}
|
|
5913
|
+
},
|
|
5914
|
+
"responses": {
|
|
5915
|
+
"201": {
|
|
5916
|
+
"description": "Profile successfully created",
|
|
5917
|
+
"content": {
|
|
5918
|
+
"application/json": {
|
|
5919
|
+
"schema": {
|
|
5920
|
+
"$ref": "#/components/schemas/profiles_ProfileSummary"
|
|
5921
|
+
}
|
|
5922
|
+
}
|
|
5923
|
+
}
|
|
5924
|
+
},
|
|
5925
|
+
"400": {
|
|
5926
|
+
"description": "Invalid request or profile validation failed. Possible reasons:\n- Missing or invalid StructureDefinition JSON\n- The id collides with a built-in US Core or R4 base profile\n- A custom profile with the same id or url already exists\n"
|
|
5927
|
+
},
|
|
5928
|
+
"401": {
|
|
5929
|
+
"description": "Unauthorized"
|
|
5930
|
+
},
|
|
5931
|
+
"403": {
|
|
5932
|
+
"description": "Forbidden - custom profiles are only available on dedicated instances"
|
|
5933
|
+
},
|
|
5934
|
+
"500": {
|
|
5935
|
+
"description": "Server error"
|
|
5936
|
+
}
|
|
5937
|
+
},
|
|
5938
|
+
"security": [
|
|
5939
|
+
{
|
|
5940
|
+
"bearerAuth": []
|
|
5941
|
+
}
|
|
5942
|
+
],
|
|
5943
|
+
"x-service": "fhir_artifacts"
|
|
5944
|
+
}
|
|
5945
|
+
},
|
|
5946
|
+
"/fhir/profiles/{id}": {
|
|
5947
|
+
"parameters": [
|
|
5948
|
+
{
|
|
5949
|
+
"name": "id",
|
|
5950
|
+
"in": "path",
|
|
5951
|
+
"required": true,
|
|
5952
|
+
"description": "The lowercase StructureDefinition id of the custom profile.",
|
|
5953
|
+
"schema": {
|
|
5954
|
+
"type": "string"
|
|
5955
|
+
},
|
|
5956
|
+
"example": "custom-patient"
|
|
5957
|
+
}
|
|
5958
|
+
],
|
|
5959
|
+
"get": {
|
|
5960
|
+
"operationId": "profiles_get",
|
|
5961
|
+
"tags": [
|
|
5962
|
+
"FHIR Artifacts / Profiles"
|
|
5963
|
+
],
|
|
5964
|
+
"summary": "Get a custom FHIR profile",
|
|
5965
|
+
"description": "Returns a single custom profile by id, including its full StructureDefinition JSON.\n",
|
|
5966
|
+
"responses": {
|
|
5967
|
+
"200": {
|
|
5968
|
+
"description": "The requested profile",
|
|
5969
|
+
"content": {
|
|
5970
|
+
"application/json": {
|
|
5971
|
+
"schema": {
|
|
5972
|
+
"$ref": "#/components/schemas/profiles_ProfileGetResponse"
|
|
5973
|
+
}
|
|
5974
|
+
}
|
|
5975
|
+
}
|
|
5976
|
+
},
|
|
5977
|
+
"400": {
|
|
5978
|
+
"description": "The id is not a valid profile id"
|
|
5979
|
+
},
|
|
5980
|
+
"401": {
|
|
5981
|
+
"description": "Unauthorized"
|
|
5982
|
+
},
|
|
5983
|
+
"403": {
|
|
5984
|
+
"description": "Forbidden - custom profiles are only available on dedicated instances"
|
|
5985
|
+
},
|
|
5986
|
+
"404": {
|
|
5987
|
+
"description": "Profile not found"
|
|
5988
|
+
},
|
|
5989
|
+
"500": {
|
|
5990
|
+
"description": "Server error"
|
|
5991
|
+
}
|
|
5992
|
+
},
|
|
5993
|
+
"security": [
|
|
5994
|
+
{
|
|
5995
|
+
"bearerAuth": []
|
|
5996
|
+
}
|
|
5997
|
+
],
|
|
5998
|
+
"x-service": "fhir_artifacts"
|
|
5999
|
+
},
|
|
6000
|
+
"put": {
|
|
6001
|
+
"operationId": "profiles_update",
|
|
6002
|
+
"tags": [
|
|
6003
|
+
"FHIR Artifacts / Profiles"
|
|
6004
|
+
],
|
|
6005
|
+
"summary": "Update a custom FHIR profile",
|
|
6006
|
+
"description": "Replaces an existing custom profile with a new StructureDefinition. The\n`id` path parameter is authoritative: if the StructureDefinition includes\nan `id` it must match the path parameter, and if it omits one the path\nparameter is used. The FHIR resource type of the profile cannot change.\nCode system configuration is\nre-derived from the new StructureDefinition. When `implementation_guide` is\nomitted, the profile keeps its existing implementation guide. The instance\nstores a single version per canonical URL, so this replaces it in place.\n",
|
|
6007
|
+
"requestBody": {
|
|
6008
|
+
"required": true,
|
|
6009
|
+
"content": {
|
|
6010
|
+
"application/json": {
|
|
6011
|
+
"schema": {
|
|
6012
|
+
"$ref": "#/components/schemas/profiles_ProfileUploadRequest"
|
|
6013
|
+
}
|
|
6014
|
+
}
|
|
6015
|
+
}
|
|
6016
|
+
},
|
|
6017
|
+
"responses": {
|
|
6018
|
+
"200": {
|
|
6019
|
+
"description": "Profile successfully updated",
|
|
6020
|
+
"content": {
|
|
6021
|
+
"application/json": {
|
|
6022
|
+
"schema": {
|
|
6023
|
+
"$ref": "#/components/schemas/profiles_ProfileSummary"
|
|
6024
|
+
}
|
|
6025
|
+
}
|
|
6026
|
+
}
|
|
6027
|
+
},
|
|
6028
|
+
"400": {
|
|
6029
|
+
"description": "Invalid request or profile validation failed. Possible reasons:\n- Missing or invalid StructureDefinition JSON\n- The StructureDefinition id does not match the id path parameter\n- The resource type differs from the existing profile\n- The url collides with a built-in profile or another custom profile\n"
|
|
6030
|
+
},
|
|
6031
|
+
"401": {
|
|
6032
|
+
"description": "Unauthorized"
|
|
6033
|
+
},
|
|
6034
|
+
"403": {
|
|
6035
|
+
"description": "Forbidden - custom profiles are only available on dedicated instances"
|
|
6036
|
+
},
|
|
6037
|
+
"404": {
|
|
6038
|
+
"description": "Profile not found"
|
|
6039
|
+
},
|
|
6040
|
+
"500": {
|
|
6041
|
+
"description": "Server error"
|
|
6042
|
+
}
|
|
6043
|
+
},
|
|
6044
|
+
"security": [
|
|
6045
|
+
{
|
|
6046
|
+
"bearerAuth": []
|
|
6047
|
+
}
|
|
6048
|
+
],
|
|
6049
|
+
"x-service": "fhir_artifacts"
|
|
6050
|
+
},
|
|
6051
|
+
"delete": {
|
|
6052
|
+
"operationId": "profiles_delete",
|
|
6053
|
+
"tags": [
|
|
6054
|
+
"FHIR Artifacts / Profiles"
|
|
6055
|
+
],
|
|
6056
|
+
"summary": "Delete a custom FHIR profile",
|
|
6057
|
+
"description": "Permanently deletes a custom profile by id.\n",
|
|
6058
|
+
"responses": {
|
|
6059
|
+
"204": {
|
|
6060
|
+
"description": "Profile successfully deleted"
|
|
6061
|
+
},
|
|
6062
|
+
"400": {
|
|
6063
|
+
"description": "The id is not a valid profile id"
|
|
6064
|
+
},
|
|
6065
|
+
"401": {
|
|
6066
|
+
"description": "Unauthorized"
|
|
6067
|
+
},
|
|
6068
|
+
"403": {
|
|
6069
|
+
"description": "Forbidden - custom profiles are only available on dedicated instances"
|
|
6070
|
+
},
|
|
6071
|
+
"404": {
|
|
6072
|
+
"description": "Profile not found"
|
|
6073
|
+
},
|
|
6074
|
+
"500": {
|
|
6075
|
+
"description": "Server error"
|
|
6076
|
+
}
|
|
6077
|
+
},
|
|
6078
|
+
"security": [
|
|
6079
|
+
{
|
|
6080
|
+
"bearerAuth": []
|
|
6081
|
+
}
|
|
6082
|
+
],
|
|
6083
|
+
"x-service": "fhir_artifacts"
|
|
6084
|
+
}
|
|
6085
|
+
},
|
|
6086
|
+
"/tools/lang2fhir-and-create": {
|
|
6087
|
+
"post": {
|
|
6088
|
+
"operationId": "tools_createFhirResource",
|
|
6089
|
+
"summary": "Create FHIR resource from text and store it",
|
|
6090
|
+
"description": "Converts natural language to FHIR resource and optionally stores it in a FHIR server",
|
|
6091
|
+
"parameters": [
|
|
6092
|
+
{
|
|
6093
|
+
"$ref": "#/components/parameters/tools_OnBehalfOfHeader"
|
|
6094
|
+
},
|
|
6095
|
+
{
|
|
6096
|
+
"$ref": "#/components/parameters/tools_FhirProviderHeader"
|
|
6097
|
+
}
|
|
6098
|
+
],
|
|
6099
|
+
"requestBody": {
|
|
6100
|
+
"required": true,
|
|
6101
|
+
"content": {
|
|
6102
|
+
"application/json": {
|
|
6103
|
+
"schema": {
|
|
6104
|
+
"$ref": "#/components/schemas/tools_Lang2FhirAndCreateRequest"
|
|
6105
|
+
},
|
|
6106
|
+
"example": {
|
|
6107
|
+
"resource": "condition-encounter-diagnosis",
|
|
6108
|
+
"text": "Patient has severe persistent asthma with acute exacerbation",
|
|
6109
|
+
"provider": "550e8400-e29b-41d4-a716-446655440000"
|
|
6110
|
+
}
|
|
6111
|
+
}
|
|
6112
|
+
}
|
|
6113
|
+
},
|
|
6114
|
+
"responses": {
|
|
6115
|
+
"200": {
|
|
6116
|
+
"description": "Successfully created FHIR resource",
|
|
6117
|
+
"content": {
|
|
6118
|
+
"application/json": {
|
|
6119
|
+
"schema": {
|
|
6120
|
+
"$ref": "#/components/schemas/tools_Lang2FhirAndCreateResponse"
|
|
6121
|
+
},
|
|
6122
|
+
"example": {
|
|
6123
|
+
"success": true,
|
|
6124
|
+
"message": "FHIR resource created successfully",
|
|
6125
|
+
"fhir_id": "condition-123",
|
|
6126
|
+
"fhir_resource": {
|
|
6127
|
+
"resourceType": "Condition",
|
|
6128
|
+
"id": "condition-123",
|
|
6129
|
+
"clinicalStatus": {
|
|
6130
|
+
"coding": [
|
|
6131
|
+
{
|
|
6132
|
+
"system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
|
|
6133
|
+
"code": "active"
|
|
6134
|
+
}
|
|
6135
|
+
]
|
|
6136
|
+
},
|
|
6137
|
+
"verificationStatus": {
|
|
6138
|
+
"coding": [
|
|
6139
|
+
{
|
|
6140
|
+
"system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
|
|
6141
|
+
"code": "confirmed"
|
|
6142
|
+
}
|
|
6143
|
+
]
|
|
6144
|
+
},
|
|
6145
|
+
"category": [
|
|
6146
|
+
{
|
|
6147
|
+
"coding": [
|
|
6148
|
+
{
|
|
6149
|
+
"system": "http://terminology.hl7.org/CodeSystem/condition-category",
|
|
6150
|
+
"code": "encounter-diagnosis"
|
|
6151
|
+
}
|
|
6152
|
+
]
|
|
6153
|
+
}
|
|
6154
|
+
],
|
|
6155
|
+
"code": {
|
|
6156
|
+
"coding": [
|
|
6157
|
+
{
|
|
6158
|
+
"system": "http://snomed.info/sct",
|
|
6159
|
+
"code": "195967001",
|
|
6160
|
+
"display": "Asthma"
|
|
6161
|
+
}
|
|
6162
|
+
],
|
|
6163
|
+
"text": "Severe persistent asthma with acute exacerbation"
|
|
6164
|
+
},
|
|
6165
|
+
"subject": {
|
|
6166
|
+
"reference": "Patient/patient-123"
|
|
6167
|
+
}
|
|
6168
|
+
}
|
|
6169
|
+
}
|
|
6170
|
+
}
|
|
6171
|
+
}
|
|
6172
|
+
},
|
|
6173
|
+
"400": {
|
|
6174
|
+
"description": "Invalid request"
|
|
6175
|
+
},
|
|
6176
|
+
"401": {
|
|
6177
|
+
"description": "Unauthorized"
|
|
6178
|
+
},
|
|
6179
|
+
"403": {
|
|
6180
|
+
"description": "Forbidden - access denied to the requested resource"
|
|
6181
|
+
},
|
|
6182
|
+
"500": {
|
|
6183
|
+
"description": "Server error"
|
|
6184
|
+
}
|
|
6185
|
+
},
|
|
6186
|
+
"security": [
|
|
6187
|
+
{
|
|
6188
|
+
"bearerAuth": []
|
|
6189
|
+
}
|
|
6190
|
+
],
|
|
6191
|
+
"x-service": "tools"
|
|
6192
|
+
}
|
|
6193
|
+
},
|
|
6194
|
+
"/tools/lang2fhir-and-create-multi": {
|
|
6195
|
+
"post": {
|
|
6196
|
+
"operationId": "tools_createFhirResourcesMulti",
|
|
6197
|
+
"summary": "Extract and store multiple FHIR resources",
|
|
6198
|
+
"description": "Extracts multiple FHIR resources from natural language text and stores them in a FHIR server.\nAutomatically detects Patient, Condition, MedicationRequest, Observation, and other resource types.\nResources are linked with proper references and submitted as a transaction bundle.\nFor FHIR servers that don't auto-resolve urn:uuid references, this endpoint will automatically\nresolve them via PUT requests after the initial bundle creation.\n",
|
|
6199
|
+
"parameters": [
|
|
6200
|
+
{
|
|
6201
|
+
"$ref": "#/components/parameters/tools_OnBehalfOfHeader"
|
|
6202
|
+
},
|
|
6203
|
+
{
|
|
6204
|
+
"$ref": "#/components/parameters/tools_FhirProviderHeader"
|
|
6205
|
+
}
|
|
6206
|
+
],
|
|
6207
|
+
"requestBody": {
|
|
6208
|
+
"required": true,
|
|
6209
|
+
"content": {
|
|
6210
|
+
"application/json": {
|
|
6211
|
+
"schema": {
|
|
6212
|
+
"$ref": "#/components/schemas/tools_Lang2FhirAndCreateMultiRequest"
|
|
6213
|
+
},
|
|
6214
|
+
"example": {
|
|
6215
|
+
"text": "John Smith, 45-year-old male, diagnosed with Type 2 Diabetes. Prescribed Metformin 500mg twice daily.",
|
|
6216
|
+
"version": "R4",
|
|
6217
|
+
"provider": "medplum"
|
|
6218
|
+
}
|
|
6219
|
+
}
|
|
6220
|
+
}
|
|
6221
|
+
},
|
|
6222
|
+
"responses": {
|
|
6223
|
+
"200": {
|
|
6224
|
+
"description": "Successfully created FHIR resources",
|
|
6225
|
+
"content": {
|
|
6226
|
+
"application/json": {
|
|
6227
|
+
"schema": {
|
|
6228
|
+
"$ref": "#/components/schemas/tools_Lang2FhirAndCreateMultiResponse"
|
|
6229
|
+
},
|
|
6230
|
+
"example": {
|
|
6231
|
+
"success": true,
|
|
6232
|
+
"message": "Created 3 resources",
|
|
6233
|
+
"response_bundle": {
|
|
6234
|
+
"resourceType": "Bundle",
|
|
6235
|
+
"type": "transaction-response",
|
|
6236
|
+
"entry": [
|
|
6237
|
+
{
|
|
6238
|
+
"response": {
|
|
6239
|
+
"status": "201 Created",
|
|
6240
|
+
"location": "Patient/patient-001"
|
|
6241
|
+
}
|
|
6242
|
+
},
|
|
6243
|
+
{
|
|
6244
|
+
"response": {
|
|
6245
|
+
"status": "201 Created",
|
|
6246
|
+
"location": "Condition/condition-001"
|
|
6247
|
+
}
|
|
6248
|
+
},
|
|
6249
|
+
{
|
|
6250
|
+
"response": {
|
|
6251
|
+
"status": "201 Created",
|
|
6252
|
+
"location": "MedicationRequest/medication-001"
|
|
6253
|
+
}
|
|
6254
|
+
}
|
|
6255
|
+
]
|
|
6256
|
+
},
|
|
6257
|
+
"resource_info": [
|
|
6258
|
+
{
|
|
6259
|
+
"tempId": "urn:uuid:patient-abc123",
|
|
6260
|
+
"resourceType": "Patient",
|
|
6261
|
+
"description": "John Smith, 45-year-old male"
|
|
6262
|
+
},
|
|
6263
|
+
{
|
|
6264
|
+
"tempId": "urn:uuid:condition-abc123",
|
|
6265
|
+
"resourceType": "Condition",
|
|
6266
|
+
"description": "Type 2 Diabetes diagnosis"
|
|
6267
|
+
},
|
|
6268
|
+
{
|
|
6269
|
+
"tempId": "urn:uuid:medication-abc123",
|
|
6270
|
+
"resourceType": "MedicationRequest",
|
|
6271
|
+
"description": "Metformin 500mg twice daily"
|
|
6272
|
+
}
|
|
6273
|
+
]
|
|
6274
|
+
}
|
|
6275
|
+
}
|
|
6276
|
+
}
|
|
6277
|
+
},
|
|
6278
|
+
"400": {
|
|
6279
|
+
"description": "Invalid request"
|
|
6280
|
+
},
|
|
6281
|
+
"401": {
|
|
6282
|
+
"description": "Unauthorized"
|
|
6283
|
+
},
|
|
6284
|
+
"403": {
|
|
6285
|
+
"description": "Forbidden - access denied to the requested resource"
|
|
6286
|
+
},
|
|
6287
|
+
"500": {
|
|
6288
|
+
"description": "Server error"
|
|
6289
|
+
}
|
|
6290
|
+
},
|
|
6291
|
+
"security": [
|
|
6292
|
+
{
|
|
6293
|
+
"bearerAuth": []
|
|
6294
|
+
}
|
|
6295
|
+
],
|
|
6296
|
+
"x-service": "tools"
|
|
6297
|
+
}
|
|
6298
|
+
},
|
|
5784
6299
|
"/tools/lang2fhir-and-search": {
|
|
5785
6300
|
"post": {
|
|
5786
6301
|
"operationId": "tools_searchFhirResources",
|
|
@@ -6403,6 +6918,80 @@
|
|
|
6403
6918
|
"x-service": "tools"
|
|
6404
6919
|
}
|
|
6405
6920
|
},
|
|
6921
|
+
"/transcribe": {
|
|
6922
|
+
"post": {
|
|
6923
|
+
"tags": [
|
|
6924
|
+
"Voice / Voice"
|
|
6925
|
+
],
|
|
6926
|
+
"operationId": "voice_transcribe",
|
|
6927
|
+
"summary": "Transcribe audio",
|
|
6928
|
+
"description": "Transcribes an uploaded audio recording and returns the transcript.\nSend the raw audio bytes as the request body; the audio format is\ndetected automatically (WAV, FLAC, MP3, OGG/WebM Opus).\n\nSupports up to ~5 minutes of audio per request. This limit is on audio\nduration regardless of file size or format, so a compressed recording\nwithin the size limit can still be rejected for being too long. Pair the\ntranscript with a downstream text step (e.g. `POST /lang2fhir/create`)\nto turn it into a FHIR resource.\n",
|
|
6929
|
+
"parameters": [
|
|
6930
|
+
{
|
|
6931
|
+
"name": "language",
|
|
6932
|
+
"in": "query",
|
|
6933
|
+
"description": "BCP-47 language tag, repeatable for up to 4 candidate languages. Defaults to `en-US`.",
|
|
6934
|
+
"schema": {
|
|
6935
|
+
"type": "array",
|
|
6936
|
+
"items": {
|
|
6937
|
+
"type": "string"
|
|
6938
|
+
}
|
|
6939
|
+
}
|
|
6940
|
+
}
|
|
6941
|
+
],
|
|
6942
|
+
"requestBody": {
|
|
6943
|
+
"required": true,
|
|
6944
|
+
"description": "Raw audio bytes (WAV, FLAC, MP3, or OGG/WebM Opus).",
|
|
6945
|
+
"content": {
|
|
6946
|
+
"application/octet-stream": {
|
|
6947
|
+
"schema": {
|
|
6948
|
+
"type": "string",
|
|
6949
|
+
"format": "binary"
|
|
6950
|
+
}
|
|
6951
|
+
}
|
|
6952
|
+
}
|
|
6953
|
+
},
|
|
6954
|
+
"responses": {
|
|
6955
|
+
"200": {
|
|
6956
|
+
"description": "Transcription succeeded.",
|
|
6957
|
+
"content": {
|
|
6958
|
+
"application/json": {
|
|
6959
|
+
"schema": {
|
|
6960
|
+
"$ref": "#/components/schemas/voice_TranscribeResponse"
|
|
6961
|
+
}
|
|
6962
|
+
}
|
|
6963
|
+
}
|
|
6964
|
+
},
|
|
6965
|
+
"400": {
|
|
6966
|
+
"description": "Invalid request (empty body, too many languages, no transcript produced, or audio that is too long or in an unsupported format)"
|
|
6967
|
+
},
|
|
6968
|
+
"401": {
|
|
6969
|
+
"description": "Unauthorized"
|
|
6970
|
+
},
|
|
6971
|
+
"402": {
|
|
6972
|
+
"description": "Payment required (credits exhausted or subscription inactive)"
|
|
6973
|
+
},
|
|
6974
|
+
"413": {
|
|
6975
|
+
"description": "Audio exceeds the maximum size"
|
|
6976
|
+
},
|
|
6977
|
+
"502": {
|
|
6978
|
+
"description": "Speech recognition failed"
|
|
6979
|
+
},
|
|
6980
|
+
"503": {
|
|
6981
|
+
"description": "Transcription temporarily unavailable"
|
|
6982
|
+
},
|
|
6983
|
+
"504": {
|
|
6984
|
+
"description": "Transcription timed out"
|
|
6985
|
+
}
|
|
6986
|
+
},
|
|
6987
|
+
"security": [
|
|
6988
|
+
{
|
|
6989
|
+
"bearerAuth": []
|
|
6990
|
+
}
|
|
6991
|
+
],
|
|
6992
|
+
"x-service": "voice"
|
|
6993
|
+
}
|
|
6994
|
+
},
|
|
6406
6995
|
"/workflows": {
|
|
6407
6996
|
"get": {
|
|
6408
6997
|
"operationId": "workflows_list",
|
|
@@ -7345,7 +7934,7 @@
|
|
|
7345
7934
|
},
|
|
7346
7935
|
"session_id": {
|
|
7347
7936
|
"type": "string",
|
|
7348
|
-
"description": "Optional session ID for conversation continuity",
|
|
7937
|
+
"description": "Optional session ID for conversation continuity. Only one request may be active for a session at a time; overlapping turns for the same session return 409 Conflict.",
|
|
7349
7938
|
"example": "session-abc123"
|
|
7350
7939
|
},
|
|
7351
7940
|
"agent_id": {
|
|
@@ -7381,7 +7970,7 @@
|
|
|
7381
7970
|
},
|
|
7382
7971
|
"session_id": {
|
|
7383
7972
|
"type": "string",
|
|
7384
|
-
"description": "Optional session ID for conversation continuity",
|
|
7973
|
+
"description": "Optional session ID for conversation continuity. Only one request may be active for a session at a time; overlapping turns for the same session return 409 Conflict.",
|
|
7385
7974
|
"example": "session-abc123"
|
|
7386
7975
|
},
|
|
7387
7976
|
"agent_id": {
|
|
@@ -7884,13 +8473,13 @@
|
|
|
7884
8473
|
"properties": {
|
|
7885
8474
|
"name": {
|
|
7886
8475
|
"type": "string",
|
|
7887
|
-
"description": "Code system name. Can be a built-in system or a custom system name.\n\nBuilt-in systems:\n*
|
|
8476
|
+
"description": "Code system name. Can be a built-in system or a custom system name.\n\nBuilt-in systems:\n* CPT\n* HCPCS\n* HPO\n* ICD-10\n* ICD-10-CM\n* ICD-10-PCS\n* LOINC\n* RXNORM\n* SNOMED_CT_US\n* SNOMED_CT_US_LITE\n\nCustom systems:\n* Any valid system name uploaded via /construe/upload. Requires a paid plan.\n\nUsage of CPT is subject to AMA requirements: see PhenoML Terms of Service.\n",
|
|
7888
8477
|
"example": "SNOMED_CT_US_LITE"
|
|
7889
8478
|
},
|
|
7890
8479
|
"version": {
|
|
7891
8480
|
"type": "string",
|
|
7892
|
-
"description": "
|
|
7893
|
-
"example": "
|
|
8481
|
+
"description": "Specific code system version.",
|
|
8482
|
+
"example": "umls-2026aa"
|
|
7894
8483
|
}
|
|
7895
8484
|
}
|
|
7896
8485
|
},
|
|
@@ -8121,7 +8710,7 @@
|
|
|
8121
8710
|
"version": {
|
|
8122
8711
|
"type": "string",
|
|
8123
8712
|
"description": "Code system version",
|
|
8124
|
-
"example": "
|
|
8713
|
+
"example": "umls-2026aa"
|
|
8125
8714
|
}
|
|
8126
8715
|
}
|
|
8127
8716
|
},
|
|
@@ -8142,7 +8731,7 @@
|
|
|
8142
8731
|
"version": {
|
|
8143
8732
|
"type": "string",
|
|
8144
8733
|
"description": "Code system version",
|
|
8145
|
-
"example": "
|
|
8734
|
+
"example": "umls-2026aa"
|
|
8146
8735
|
},
|
|
8147
8736
|
"code_count": {
|
|
8148
8737
|
"type": "integer",
|
|
@@ -8414,7 +9003,7 @@
|
|
|
8414
9003
|
"version": {
|
|
8415
9004
|
"type": "string",
|
|
8416
9005
|
"description": "Code system version",
|
|
8417
|
-
"example": "
|
|
9006
|
+
"example": "umls-2026aa"
|
|
8418
9007
|
},
|
|
8419
9008
|
"code_count": {
|
|
8420
9009
|
"type": "integer",
|
|
@@ -8544,7 +9133,7 @@
|
|
|
8544
9133
|
"fhir_resources": {
|
|
8545
9134
|
"type": "object",
|
|
8546
9135
|
"additionalProperties": true,
|
|
8547
|
-
"description": "FHIR resources (single resource or Bundle). Must contain at least one\nPatient resource.
|
|
9136
|
+
"description": "FHIR resources (single resource or Bundle). Must contain at least one\nPatient resource. Supported row-producing resources are Patient,\nEncounter, Condition, Procedure, MedicationRequest,\nMedicationStatement, MedicationAdministration, Immunization,\nObservation, and AllergyIntolerance. Standalone Medication resources\nare consumed by medication references rather than mapped to their own\ntable. Other resource types are accepted but ignored.\n"
|
|
8548
9137
|
}
|
|
8549
9138
|
}
|
|
8550
9139
|
},
|
|
@@ -8569,7 +9158,7 @@
|
|
|
8569
9158
|
},
|
|
8570
9159
|
"dropped": {
|
|
8571
9160
|
"type": "array",
|
|
8572
|
-
"description": "
|
|
9161
|
+
"description": "Supported resource instances that could not be shaped into an OMOP\nrow because required subject/patient, code, or medication reference\ndata was missing. Unsupported resource types are ignored and do not\nappear here.\n",
|
|
8573
9162
|
"items": {
|
|
8574
9163
|
"$ref": "#/components/schemas/fhir2omop_DroppedResource"
|
|
8575
9164
|
}
|
|
@@ -8587,47 +9176,198 @@
|
|
|
8587
9176
|
"type": "object",
|
|
8588
9177
|
"description": "OMOP CDM v5.4 rows grouped by destination table.",
|
|
8589
9178
|
"properties": {
|
|
9179
|
+
"location": {
|
|
9180
|
+
"type": "array",
|
|
9181
|
+
"items": {
|
|
9182
|
+
"$ref": "#/components/schemas/fhir2omop_LocationRow"
|
|
9183
|
+
}
|
|
9184
|
+
},
|
|
9185
|
+
"care_site": {
|
|
9186
|
+
"type": "array",
|
|
9187
|
+
"items": {
|
|
9188
|
+
"$ref": "#/components/schemas/fhir2omop_CareSiteRow"
|
|
9189
|
+
}
|
|
9190
|
+
},
|
|
9191
|
+
"provider": {
|
|
9192
|
+
"type": "array",
|
|
9193
|
+
"items": {
|
|
9194
|
+
"$ref": "#/components/schemas/fhir2omop_ProviderRow"
|
|
9195
|
+
}
|
|
9196
|
+
},
|
|
8590
9197
|
"person": {
|
|
8591
9198
|
"type": "array",
|
|
8592
9199
|
"items": {
|
|
8593
9200
|
"$ref": "#/components/schemas/fhir2omop_PersonRow"
|
|
8594
9201
|
}
|
|
8595
9202
|
},
|
|
9203
|
+
"death": {
|
|
9204
|
+
"type": "array",
|
|
9205
|
+
"items": {
|
|
9206
|
+
"$ref": "#/components/schemas/fhir2omop_DeathRow"
|
|
9207
|
+
}
|
|
9208
|
+
},
|
|
9209
|
+
"observation_period": {
|
|
9210
|
+
"type": "array",
|
|
9211
|
+
"items": {
|
|
9212
|
+
"$ref": "#/components/schemas/fhir2omop_ObservationPeriodRow"
|
|
9213
|
+
}
|
|
9214
|
+
},
|
|
8596
9215
|
"visit_occurrence": {
|
|
8597
9216
|
"type": "array",
|
|
8598
9217
|
"items": {
|
|
8599
9218
|
"$ref": "#/components/schemas/fhir2omop_VisitOccurrenceRow"
|
|
8600
9219
|
}
|
|
8601
9220
|
},
|
|
8602
|
-
"condition_occurrence": {
|
|
8603
|
-
"type": "array",
|
|
8604
|
-
"items": {
|
|
8605
|
-
"$ref": "#/components/schemas/fhir2omop_ConditionOccurrenceRow"
|
|
8606
|
-
}
|
|
9221
|
+
"condition_occurrence": {
|
|
9222
|
+
"type": "array",
|
|
9223
|
+
"items": {
|
|
9224
|
+
"$ref": "#/components/schemas/fhir2omop_ConditionOccurrenceRow"
|
|
9225
|
+
}
|
|
9226
|
+
},
|
|
9227
|
+
"drug_exposure": {
|
|
9228
|
+
"type": "array",
|
|
9229
|
+
"items": {
|
|
9230
|
+
"$ref": "#/components/schemas/fhir2omop_DrugExposureRow"
|
|
9231
|
+
}
|
|
9232
|
+
},
|
|
9233
|
+
"procedure_occurrence": {
|
|
9234
|
+
"type": "array",
|
|
9235
|
+
"items": {
|
|
9236
|
+
"$ref": "#/components/schemas/fhir2omop_ProcedureOccurrenceRow"
|
|
9237
|
+
}
|
|
9238
|
+
},
|
|
9239
|
+
"measurement": {
|
|
9240
|
+
"type": "array",
|
|
9241
|
+
"items": {
|
|
9242
|
+
"$ref": "#/components/schemas/fhir2omop_MeasurementRow"
|
|
9243
|
+
}
|
|
9244
|
+
},
|
|
9245
|
+
"observation": {
|
|
9246
|
+
"type": "array",
|
|
9247
|
+
"items": {
|
|
9248
|
+
"$ref": "#/components/schemas/fhir2omop_ObservationRow"
|
|
9249
|
+
}
|
|
9250
|
+
}
|
|
9251
|
+
}
|
|
9252
|
+
},
|
|
9253
|
+
"fhir2omop_LocationRow": {
|
|
9254
|
+
"type": "object",
|
|
9255
|
+
"properties": {
|
|
9256
|
+
"location_id": {
|
|
9257
|
+
"type": "integer",
|
|
9258
|
+
"format": "int64"
|
|
9259
|
+
},
|
|
9260
|
+
"address_1": {
|
|
9261
|
+
"type": "string"
|
|
9262
|
+
},
|
|
9263
|
+
"address_2": {
|
|
9264
|
+
"type": "string"
|
|
9265
|
+
},
|
|
9266
|
+
"city": {
|
|
9267
|
+
"type": "string"
|
|
9268
|
+
},
|
|
9269
|
+
"state": {
|
|
9270
|
+
"type": "string"
|
|
9271
|
+
},
|
|
9272
|
+
"zip": {
|
|
9273
|
+
"type": "string"
|
|
9274
|
+
},
|
|
9275
|
+
"county": {
|
|
9276
|
+
"type": "string"
|
|
9277
|
+
},
|
|
9278
|
+
"location_source_value": {
|
|
9279
|
+
"type": "string"
|
|
9280
|
+
},
|
|
9281
|
+
"country_concept_id": {
|
|
9282
|
+
"type": "integer",
|
|
9283
|
+
"format": "int64"
|
|
9284
|
+
},
|
|
9285
|
+
"country_source_value": {
|
|
9286
|
+
"type": "string"
|
|
9287
|
+
},
|
|
9288
|
+
"latitude": {
|
|
9289
|
+
"type": "number",
|
|
9290
|
+
"format": "double"
|
|
9291
|
+
},
|
|
9292
|
+
"longitude": {
|
|
9293
|
+
"type": "number",
|
|
9294
|
+
"format": "double"
|
|
9295
|
+
}
|
|
9296
|
+
}
|
|
9297
|
+
},
|
|
9298
|
+
"fhir2omop_CareSiteRow": {
|
|
9299
|
+
"type": "object",
|
|
9300
|
+
"properties": {
|
|
9301
|
+
"care_site_id": {
|
|
9302
|
+
"type": "integer",
|
|
9303
|
+
"format": "int64"
|
|
9304
|
+
},
|
|
9305
|
+
"care_site_name": {
|
|
9306
|
+
"type": "string"
|
|
9307
|
+
},
|
|
9308
|
+
"place_of_service_concept_id": {
|
|
9309
|
+
"type": "integer",
|
|
9310
|
+
"format": "int64"
|
|
9311
|
+
},
|
|
9312
|
+
"location_id": {
|
|
9313
|
+
"type": "integer",
|
|
9314
|
+
"format": "int64"
|
|
9315
|
+
},
|
|
9316
|
+
"care_site_source_value": {
|
|
9317
|
+
"type": "string"
|
|
9318
|
+
},
|
|
9319
|
+
"place_of_service_source_value": {
|
|
9320
|
+
"type": "string"
|
|
9321
|
+
}
|
|
9322
|
+
}
|
|
9323
|
+
},
|
|
9324
|
+
"fhir2omop_ProviderRow": {
|
|
9325
|
+
"type": "object",
|
|
9326
|
+
"properties": {
|
|
9327
|
+
"provider_id": {
|
|
9328
|
+
"type": "integer",
|
|
9329
|
+
"format": "int64"
|
|
9330
|
+
},
|
|
9331
|
+
"provider_name": {
|
|
9332
|
+
"type": "string"
|
|
9333
|
+
},
|
|
9334
|
+
"npi": {
|
|
9335
|
+
"type": "string"
|
|
9336
|
+
},
|
|
9337
|
+
"dea": {
|
|
9338
|
+
"type": "string"
|
|
9339
|
+
},
|
|
9340
|
+
"specialty_concept_id": {
|
|
9341
|
+
"type": "integer",
|
|
9342
|
+
"format": "int64"
|
|
9343
|
+
},
|
|
9344
|
+
"care_site_id": {
|
|
9345
|
+
"type": "integer",
|
|
9346
|
+
"format": "int64"
|
|
9347
|
+
},
|
|
9348
|
+
"year_of_birth": {
|
|
9349
|
+
"type": "integer"
|
|
9350
|
+
},
|
|
9351
|
+
"gender_concept_id": {
|
|
9352
|
+
"type": "integer",
|
|
9353
|
+
"format": "int64"
|
|
9354
|
+
},
|
|
9355
|
+
"provider_source_value": {
|
|
9356
|
+
"type": "string"
|
|
8607
9357
|
},
|
|
8608
|
-
"
|
|
8609
|
-
"type": "
|
|
8610
|
-
"items": {
|
|
8611
|
-
"$ref": "#/components/schemas/fhir2omop_DrugExposureRow"
|
|
8612
|
-
}
|
|
9358
|
+
"specialty_source_value": {
|
|
9359
|
+
"type": "string"
|
|
8613
9360
|
},
|
|
8614
|
-
"
|
|
8615
|
-
"type": "
|
|
8616
|
-
"
|
|
8617
|
-
"$ref": "#/components/schemas/fhir2omop_ProcedureOccurrenceRow"
|
|
8618
|
-
}
|
|
9361
|
+
"specialty_source_concept_id": {
|
|
9362
|
+
"type": "integer",
|
|
9363
|
+
"format": "int64"
|
|
8619
9364
|
},
|
|
8620
|
-
"
|
|
8621
|
-
"type": "
|
|
8622
|
-
"items": {
|
|
8623
|
-
"$ref": "#/components/schemas/fhir2omop_MeasurementRow"
|
|
8624
|
-
}
|
|
9365
|
+
"gender_source_value": {
|
|
9366
|
+
"type": "string"
|
|
8625
9367
|
},
|
|
8626
|
-
"
|
|
8627
|
-
"type": "
|
|
8628
|
-
"
|
|
8629
|
-
"$ref": "#/components/schemas/fhir2omop_ObservationRow"
|
|
8630
|
-
}
|
|
9368
|
+
"gender_source_concept_id": {
|
|
9369
|
+
"type": "integer",
|
|
9370
|
+
"format": "int64"
|
|
8631
9371
|
}
|
|
8632
9372
|
}
|
|
8633
9373
|
},
|
|
@@ -8662,6 +9402,10 @@
|
|
|
8662
9402
|
"type": "integer",
|
|
8663
9403
|
"format": "int64"
|
|
8664
9404
|
},
|
|
9405
|
+
"location_id": {
|
|
9406
|
+
"type": "integer",
|
|
9407
|
+
"format": "int64"
|
|
9408
|
+
},
|
|
8665
9409
|
"person_source_value": {
|
|
8666
9410
|
"type": "string"
|
|
8667
9411
|
},
|
|
@@ -8676,6 +9420,59 @@
|
|
|
8676
9420
|
}
|
|
8677
9421
|
}
|
|
8678
9422
|
},
|
|
9423
|
+
"fhir2omop_DeathRow": {
|
|
9424
|
+
"type": "object",
|
|
9425
|
+
"properties": {
|
|
9426
|
+
"person_id": {
|
|
9427
|
+
"type": "integer",
|
|
9428
|
+
"format": "int64"
|
|
9429
|
+
},
|
|
9430
|
+
"death_date": {
|
|
9431
|
+
"type": "string"
|
|
9432
|
+
},
|
|
9433
|
+
"death_datetime": {
|
|
9434
|
+
"type": "string"
|
|
9435
|
+
},
|
|
9436
|
+
"death_type_concept_id": {
|
|
9437
|
+
"type": "integer",
|
|
9438
|
+
"format": "int64"
|
|
9439
|
+
},
|
|
9440
|
+
"cause_concept_id": {
|
|
9441
|
+
"type": "integer",
|
|
9442
|
+
"format": "int64"
|
|
9443
|
+
},
|
|
9444
|
+
"cause_source_value": {
|
|
9445
|
+
"type": "string"
|
|
9446
|
+
},
|
|
9447
|
+
"cause_source_concept_id": {
|
|
9448
|
+
"type": "integer",
|
|
9449
|
+
"format": "int64"
|
|
9450
|
+
}
|
|
9451
|
+
}
|
|
9452
|
+
},
|
|
9453
|
+
"fhir2omop_ObservationPeriodRow": {
|
|
9454
|
+
"type": "object",
|
|
9455
|
+
"properties": {
|
|
9456
|
+
"observation_period_id": {
|
|
9457
|
+
"type": "integer",
|
|
9458
|
+
"format": "int64"
|
|
9459
|
+
},
|
|
9460
|
+
"person_id": {
|
|
9461
|
+
"type": "integer",
|
|
9462
|
+
"format": "int64"
|
|
9463
|
+
},
|
|
9464
|
+
"observation_period_start_date": {
|
|
9465
|
+
"type": "string"
|
|
9466
|
+
},
|
|
9467
|
+
"observation_period_end_date": {
|
|
9468
|
+
"type": "string"
|
|
9469
|
+
},
|
|
9470
|
+
"period_type_concept_id": {
|
|
9471
|
+
"type": "integer",
|
|
9472
|
+
"format": "int64"
|
|
9473
|
+
}
|
|
9474
|
+
}
|
|
9475
|
+
},
|
|
8679
9476
|
"fhir2omop_VisitOccurrenceRow": {
|
|
8680
9477
|
"type": "object",
|
|
8681
9478
|
"properties": {
|
|
@@ -8707,6 +9504,14 @@
|
|
|
8707
9504
|
"type": "integer",
|
|
8708
9505
|
"format": "int64"
|
|
8709
9506
|
},
|
|
9507
|
+
"provider_id": {
|
|
9508
|
+
"type": "integer",
|
|
9509
|
+
"format": "int64"
|
|
9510
|
+
},
|
|
9511
|
+
"care_site_id": {
|
|
9512
|
+
"type": "integer",
|
|
9513
|
+
"format": "int64"
|
|
9514
|
+
},
|
|
8710
9515
|
"visit_source_value": {
|
|
8711
9516
|
"type": "string"
|
|
8712
9517
|
}
|
|
@@ -8744,6 +9549,10 @@
|
|
|
8744
9549
|
"type": "integer",
|
|
8745
9550
|
"format": "int64"
|
|
8746
9551
|
},
|
|
9552
|
+
"provider_id": {
|
|
9553
|
+
"type": "integer",
|
|
9554
|
+
"format": "int64"
|
|
9555
|
+
},
|
|
8747
9556
|
"condition_source_value": {
|
|
8748
9557
|
"type": "string"
|
|
8749
9558
|
},
|
|
@@ -8794,6 +9603,10 @@
|
|
|
8794
9603
|
"type": "integer",
|
|
8795
9604
|
"format": "int64"
|
|
8796
9605
|
},
|
|
9606
|
+
"provider_id": {
|
|
9607
|
+
"type": "integer",
|
|
9608
|
+
"format": "int64"
|
|
9609
|
+
},
|
|
8797
9610
|
"drug_source_value": {
|
|
8798
9611
|
"type": "string"
|
|
8799
9612
|
},
|
|
@@ -8832,6 +9645,10 @@
|
|
|
8832
9645
|
"type": "integer",
|
|
8833
9646
|
"format": "int64"
|
|
8834
9647
|
},
|
|
9648
|
+
"provider_id": {
|
|
9649
|
+
"type": "integer",
|
|
9650
|
+
"format": "int64"
|
|
9651
|
+
},
|
|
8835
9652
|
"procedure_source_value": {
|
|
8836
9653
|
"type": "string"
|
|
8837
9654
|
},
|
|
@@ -8895,6 +9712,10 @@
|
|
|
8895
9712
|
"type": "integer",
|
|
8896
9713
|
"format": "int64"
|
|
8897
9714
|
},
|
|
9715
|
+
"provider_id": {
|
|
9716
|
+
"type": "integer",
|
|
9717
|
+
"format": "int64"
|
|
9718
|
+
},
|
|
8898
9719
|
"measurement_source_value": {
|
|
8899
9720
|
"type": "string"
|
|
8900
9721
|
},
|
|
@@ -8954,6 +9775,10 @@
|
|
|
8954
9775
|
"type": "integer",
|
|
8955
9776
|
"format": "int64"
|
|
8956
9777
|
},
|
|
9778
|
+
"provider_id": {
|
|
9779
|
+
"type": "integer",
|
|
9780
|
+
"format": "int64"
|
|
9781
|
+
},
|
|
8957
9782
|
"observation_source_value": {
|
|
8958
9783
|
"type": "string"
|
|
8959
9784
|
},
|
|
@@ -10133,6 +10958,16 @@
|
|
|
10133
10958
|
"type": "string",
|
|
10134
10959
|
"description": "Verbatim text excerpt from the original clinical document",
|
|
10135
10960
|
"example": "diagnosed with Type 2 Diabetes"
|
|
10961
|
+
},
|
|
10962
|
+
"sourcePages": {
|
|
10963
|
+
"type": "array",
|
|
10964
|
+
"items": {
|
|
10965
|
+
"type": "integer"
|
|
10966
|
+
},
|
|
10967
|
+
"description": "1-indexed source document page number(s) this resource was extracted from. Populated only by the /lang2fhir/document/multi endpoint; omitted when the source page could not be determined (e.g. raw-text create/multi, or a resource with no verbatim source text).\n",
|
|
10968
|
+
"example": [
|
|
10969
|
+
2
|
|
10970
|
+
]
|
|
10136
10971
|
}
|
|
10137
10972
|
}
|
|
10138
10973
|
}
|
|
@@ -10551,6 +11386,219 @@
|
|
|
10551
11386
|
}
|
|
10552
11387
|
}
|
|
10553
11388
|
},
|
|
11389
|
+
"implementation-guides_ImplementationGuideSummary": {
|
|
11390
|
+
"type": "object",
|
|
11391
|
+
"description": "Metadata for an implementation guide. This is an instance-local grouping record, not a complete FHIR ImplementationGuide resource.\n",
|
|
11392
|
+
"properties": {
|
|
11393
|
+
"name": {
|
|
11394
|
+
"type": "string",
|
|
11395
|
+
"description": "The instance-local implementation guide name (the stable key).",
|
|
11396
|
+
"example": "acme-cardiology"
|
|
11397
|
+
},
|
|
11398
|
+
"profile_context": {
|
|
11399
|
+
"type": "string",
|
|
11400
|
+
"description": "Natural-language context injected into the LLM during resource detection.",
|
|
11401
|
+
"example": "When the text mentions phenotypic features, prefer the hpo-observation profile over Condition."
|
|
11402
|
+
},
|
|
11403
|
+
"profile_count": {
|
|
11404
|
+
"type": "integer",
|
|
11405
|
+
"description": "The number of custom profiles in this implementation guide.",
|
|
11406
|
+
"example": 3
|
|
11407
|
+
},
|
|
11408
|
+
"created_at": {
|
|
11409
|
+
"type": "string",
|
|
11410
|
+
"format": "date-time",
|
|
11411
|
+
"description": "Present only for guides that have stored metadata (a profile_context has been set). Omitted for guides that exist solely because a profile references them.\n"
|
|
11412
|
+
},
|
|
11413
|
+
"updated_at": {
|
|
11414
|
+
"type": "string",
|
|
11415
|
+
"format": "date-time",
|
|
11416
|
+
"description": "Present only for guides that have stored metadata. Omitted for guides that exist solely because a profile references them.\n"
|
|
11417
|
+
}
|
|
11418
|
+
}
|
|
11419
|
+
},
|
|
11420
|
+
"implementation-guides_ImplementationGuideListResponse": {
|
|
11421
|
+
"type": "object",
|
|
11422
|
+
"properties": {
|
|
11423
|
+
"implementation_guides": {
|
|
11424
|
+
"type": "array",
|
|
11425
|
+
"items": {
|
|
11426
|
+
"$ref": "#/components/schemas/implementation-guides_ImplementationGuideSummary"
|
|
11427
|
+
}
|
|
11428
|
+
}
|
|
11429
|
+
}
|
|
11430
|
+
},
|
|
11431
|
+
"implementation-guides_ImplementationGuideDetail": {
|
|
11432
|
+
"allOf": [
|
|
11433
|
+
{
|
|
11434
|
+
"$ref": "#/components/schemas/implementation-guides_ImplementationGuideSummary"
|
|
11435
|
+
},
|
|
11436
|
+
{
|
|
11437
|
+
"type": "object",
|
|
11438
|
+
"properties": {
|
|
11439
|
+
"profiles": {
|
|
11440
|
+
"type": "array",
|
|
11441
|
+
"description": "The ids of the profiles that belong to this implementation guide.",
|
|
11442
|
+
"items": {
|
|
11443
|
+
"type": "string"
|
|
11444
|
+
},
|
|
11445
|
+
"example": [
|
|
11446
|
+
"custom-patient",
|
|
11447
|
+
"acme-vital-signs"
|
|
11448
|
+
]
|
|
11449
|
+
}
|
|
11450
|
+
}
|
|
11451
|
+
}
|
|
11452
|
+
]
|
|
11453
|
+
},
|
|
11454
|
+
"implementation-guides_UpdateImplementationGuideRequest": {
|
|
11455
|
+
"type": "object",
|
|
11456
|
+
"properties": {
|
|
11457
|
+
"profile_context": {
|
|
11458
|
+
"type": "string",
|
|
11459
|
+
"maxLength": 2000,
|
|
11460
|
+
"description": "Natural-language context that helps the LLM select the right profiles from this implementation guide during resource detection. An empty value clears the context. Max 2000 characters.\n",
|
|
11461
|
+
"example": "When clinical text describes phenotypic features, use the hpo-phenotype-observation profile instead of Condition."
|
|
11462
|
+
}
|
|
11463
|
+
}
|
|
11464
|
+
},
|
|
11465
|
+
"profiles_ProfileUploadRequest": {
|
|
11466
|
+
"type": "object",
|
|
11467
|
+
"required": [
|
|
11468
|
+
"structure_definition"
|
|
11469
|
+
],
|
|
11470
|
+
"properties": {
|
|
11471
|
+
"structure_definition": {
|
|
11472
|
+
"allOf": [
|
|
11473
|
+
{
|
|
11474
|
+
"$ref": "#/components/schemas/profiles_FHIRResource"
|
|
11475
|
+
}
|
|
11476
|
+
],
|
|
11477
|
+
"description": "A FHIR StructureDefinition as a JSON object. Must include url, type, and a snapshot with elements. All metadata (version, resource type, id) is derived from the StructureDefinition itself. The lowercase id becomes the profile's lookup key; when omitted, it is derived from the final path segment of the canonical url.\n",
|
|
11478
|
+
"example": {
|
|
11479
|
+
"resourceType": "StructureDefinition",
|
|
11480
|
+
"id": "custom-patient",
|
|
11481
|
+
"url": "http://phenoml.com/fhir/StructureDefinition/custom-patient",
|
|
11482
|
+
"name": "CustomPatient",
|
|
11483
|
+
"status": "active",
|
|
11484
|
+
"fhirVersion": "4.0.1",
|
|
11485
|
+
"kind": "resource",
|
|
11486
|
+
"abstract": false,
|
|
11487
|
+
"type": "Patient",
|
|
11488
|
+
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
|
|
11489
|
+
"derivation": "constraint",
|
|
11490
|
+
"snapshot": {
|
|
11491
|
+
"element": [
|
|
11492
|
+
{
|
|
11493
|
+
"id": "Patient",
|
|
11494
|
+
"path": "Patient",
|
|
11495
|
+
"min": 0,
|
|
11496
|
+
"max": "*"
|
|
11497
|
+
},
|
|
11498
|
+
{
|
|
11499
|
+
"id": "Patient.name",
|
|
11500
|
+
"path": "Patient.name",
|
|
11501
|
+
"min": 1,
|
|
11502
|
+
"max": "*"
|
|
11503
|
+
}
|
|
11504
|
+
]
|
|
11505
|
+
}
|
|
11506
|
+
}
|
|
11507
|
+
},
|
|
11508
|
+
"implementation_guide": {
|
|
11509
|
+
"type": "string",
|
|
11510
|
+
"description": "Implementation Guide name to group this profile under. On create, defaults to \"custom\" if omitted; on update, omitting it preserves the profile's current guide. Cannot be \"us_core\" (reserved). Use this to organize custom profiles into named IGs that can be referenced when calling create/multi or document/multi endpoints.\n",
|
|
11511
|
+
"example": "acme-cardiology"
|
|
11512
|
+
}
|
|
11513
|
+
}
|
|
11514
|
+
},
|
|
11515
|
+
"profiles_ProfileSummary": {
|
|
11516
|
+
"type": "object",
|
|
11517
|
+
"properties": {
|
|
11518
|
+
"id": {
|
|
11519
|
+
"type": "string",
|
|
11520
|
+
"description": "The lowercase StructureDefinition id, used as the profile's lookup key.",
|
|
11521
|
+
"example": "custom-patient"
|
|
11522
|
+
},
|
|
11523
|
+
"source": {
|
|
11524
|
+
"type": "string",
|
|
11525
|
+
"enum": [
|
|
11526
|
+
"custom",
|
|
11527
|
+
"builtin"
|
|
11528
|
+
],
|
|
11529
|
+
"description": "The profile's origin. Listings currently return only custom (uploaded) profiles, so this is always \"custom\" today; built-in (US Core / R4 base) profiles would be surfaced via an opt-in parameter in a future release, not by changing the default behavior.\n",
|
|
11530
|
+
"example": "custom"
|
|
11531
|
+
},
|
|
11532
|
+
"resource_type": {
|
|
11533
|
+
"type": "string",
|
|
11534
|
+
"description": "The FHIR resource type from the StructureDefinition.",
|
|
11535
|
+
"example": "Patient"
|
|
11536
|
+
},
|
|
11537
|
+
"url": {
|
|
11538
|
+
"type": "string",
|
|
11539
|
+
"description": "The canonical URL from the StructureDefinition.",
|
|
11540
|
+
"example": "http://phenoml.com/fhir/StructureDefinition/custom-patient"
|
|
11541
|
+
},
|
|
11542
|
+
"version": {
|
|
11543
|
+
"type": "string",
|
|
11544
|
+
"description": "The version from the StructureDefinition.version field.",
|
|
11545
|
+
"example": "1.0.0"
|
|
11546
|
+
},
|
|
11547
|
+
"fhir_version": {
|
|
11548
|
+
"type": "string",
|
|
11549
|
+
"description": "The base FHIR version the StructureDefinition targets.",
|
|
11550
|
+
"example": "4.0.1"
|
|
11551
|
+
},
|
|
11552
|
+
"implementation_guide": {
|
|
11553
|
+
"type": "string",
|
|
11554
|
+
"description": "The implementation guide the profile belongs to.",
|
|
11555
|
+
"example": "acme-cardiology"
|
|
11556
|
+
},
|
|
11557
|
+
"created_at": {
|
|
11558
|
+
"type": "string",
|
|
11559
|
+
"format": "date-time"
|
|
11560
|
+
},
|
|
11561
|
+
"updated_at": {
|
|
11562
|
+
"type": "string",
|
|
11563
|
+
"format": "date-time"
|
|
11564
|
+
}
|
|
11565
|
+
}
|
|
11566
|
+
},
|
|
11567
|
+
"profiles_ProfileListResponse": {
|
|
11568
|
+
"type": "object",
|
|
11569
|
+
"properties": {
|
|
11570
|
+
"profiles": {
|
|
11571
|
+
"type": "array",
|
|
11572
|
+
"items": {
|
|
11573
|
+
"$ref": "#/components/schemas/profiles_ProfileSummary"
|
|
11574
|
+
}
|
|
11575
|
+
}
|
|
11576
|
+
}
|
|
11577
|
+
},
|
|
11578
|
+
"profiles_ProfileGetResponse": {
|
|
11579
|
+
"allOf": [
|
|
11580
|
+
{
|
|
11581
|
+
"$ref": "#/components/schemas/profiles_ProfileSummary"
|
|
11582
|
+
},
|
|
11583
|
+
{
|
|
11584
|
+
"type": "object",
|
|
11585
|
+
"properties": {
|
|
11586
|
+
"structure_definition": {
|
|
11587
|
+
"allOf": [
|
|
11588
|
+
{
|
|
11589
|
+
"$ref": "#/components/schemas/profiles_FHIRResource"
|
|
11590
|
+
}
|
|
11591
|
+
],
|
|
11592
|
+
"description": "The full FHIR StructureDefinition JSON."
|
|
11593
|
+
}
|
|
11594
|
+
}
|
|
11595
|
+
}
|
|
11596
|
+
]
|
|
11597
|
+
},
|
|
11598
|
+
"profiles_FHIRResource": {
|
|
11599
|
+
"type": "object",
|
|
11600
|
+
"description": "A FHIR resource (schema depends on resource type)"
|
|
11601
|
+
},
|
|
10554
11602
|
"tools_Lang2FhirAndCreateRequest": {
|
|
10555
11603
|
"type": "object",
|
|
10556
11604
|
"required": [
|
|
@@ -11038,6 +12086,18 @@
|
|
|
11038
12086
|
}
|
|
11039
12087
|
}
|
|
11040
12088
|
},
|
|
12089
|
+
"voice_TranscribeResponse": {
|
|
12090
|
+
"type": "object",
|
|
12091
|
+
"required": [
|
|
12092
|
+
"transcript"
|
|
12093
|
+
],
|
|
12094
|
+
"properties": {
|
|
12095
|
+
"transcript": {
|
|
12096
|
+
"type": "string",
|
|
12097
|
+
"description": "The full transcript of the audio."
|
|
12098
|
+
}
|
|
12099
|
+
}
|
|
12100
|
+
},
|
|
11041
12101
|
"workflows_CreateWorkflowRequest": {
|
|
11042
12102
|
"type": "object",
|
|
11043
12103
|
"required": [
|
|
@@ -11819,6 +12879,14 @@
|
|
|
11819
12879
|
"name": "Summary / Templates",
|
|
11820
12880
|
"description": "Reusable summary templates that drive FHIR-to-text generation."
|
|
11821
12881
|
},
|
|
12882
|
+
{
|
|
12883
|
+
"name": "FHIR Artifacts / Implementation Guides",
|
|
12884
|
+
"description": "Manage implementation guides that group custom FHIR profiles."
|
|
12885
|
+
},
|
|
12886
|
+
{
|
|
12887
|
+
"name": "FHIR Artifacts / Profiles",
|
|
12888
|
+
"description": "Manage custom FHIR profiles (StructureDefinitions) as instance-level FHIR artifacts."
|
|
12889
|
+
},
|
|
11822
12890
|
{
|
|
11823
12891
|
"name": "Tools / MCP Servers",
|
|
11824
12892
|
"description": "Register and manage MCP servers exposed as agent tools."
|
|
@@ -11826,6 +12894,10 @@
|
|
|
11826
12894
|
{
|
|
11827
12895
|
"name": "Tools / MCP Tools",
|
|
11828
12896
|
"description": "List and manage individual tools exposed by an MCP server."
|
|
12897
|
+
},
|
|
12898
|
+
{
|
|
12899
|
+
"name": "Voice / Voice",
|
|
12900
|
+
"description": "Speech-to-text transcription of audio recordings."
|
|
11829
12901
|
}
|
|
11830
12902
|
]
|
|
11831
12903
|
}
|