phenoml 17.7.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 +6 -0
- package/dist/cjs/Client.js +20 -10
- package/dist/cjs/api/resources/agent/client/Client.js +4 -3
- package/dist/cjs/api/resources/agent/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/agent/errors/ConflictError.js +1 -1
- package/dist/cjs/api/resources/agent/errors/ForbiddenError.js +1 -1
- package/dist/cjs/api/resources/agent/errors/GatewayTimeoutError.js +1 -1
- package/dist/cjs/api/resources/agent/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/resources/agent/errors/NotFoundError.js +1 -1
- package/dist/cjs/api/resources/agent/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/agent/resources/chat/client/Client.js +3 -2
- package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +4 -3
- package/dist/cjs/api/resources/authtoken/client/Client.js +2 -1
- package/dist/cjs/api/resources/authtoken/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/authtoken/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/cohort/client/Client.js +2 -1
- package/dist/cjs/api/resources/cohort/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/cohort/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/construe/client/Client.js +2 -1
- package/dist/cjs/api/resources/construe/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/construe/errors/ConflictError.js +1 -1
- package/dist/cjs/api/resources/construe/errors/FailedDependencyError.js +1 -1
- package/dist/cjs/api/resources/construe/errors/ForbiddenError.js +1 -1
- package/dist/cjs/api/resources/construe/errors/GatewayTimeoutError.js +1 -1
- package/dist/cjs/api/resources/construe/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/resources/construe/errors/NotFoundError.js +1 -1
- package/dist/cjs/api/resources/construe/errors/NotImplementedError.js +1 -1
- package/dist/cjs/api/resources/construe/errors/ServiceUnavailableError.js +1 -1
- package/dist/cjs/api/resources/construe/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/Client.js +2 -1
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.ts +1 -1
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/ExportRequest.d.ts +1 -1
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/FindRequest.d.ts +1 -1
- package/dist/cjs/api/resources/construe/resources/codes/client/Client.d.ts +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.js +2 -1
- package/dist/cjs/api/resources/fhir2Omop/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/fhir2Omop/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/resources/fhir2Omop/errors/ServiceUnavailableError.js +1 -1
- package/dist/cjs/api/resources/fhir2Omop/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/fhir2Omop/types/CareSiteRow.d.ts +8 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ConditionOccurrenceRow.d.ts +1 -0
- package/dist/cjs/api/resources/fhir2Omop/types/DeathRow.d.ts +9 -0
- package/dist/cjs/api/resources/fhir2Omop/types/DeathRow.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/types/DrugExposureRow.d.ts +1 -0
- package/dist/cjs/api/resources/fhir2Omop/types/LocationRow.d.ts +14 -0
- package/dist/cjs/api/resources/fhir2Omop/types/LocationRow.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/types/MeasurementRow.d.ts +1 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ObservationPeriodRow.d.ts +7 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ObservationPeriodRow.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ObservationRow.d.ts +1 -0
- package/dist/cjs/api/resources/fhir2Omop/types/OmopTables.d.ts +5 -0
- package/dist/cjs/api/resources/fhir2Omop/types/PersonRow.d.ts +1 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ProcedureOccurrenceRow.d.ts +1 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ProviderRow.d.ts +15 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ProviderRow.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/types/VisitOccurrenceRow.d.ts +2 -0
- package/dist/cjs/api/resources/fhir2Omop/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/fhir2Omop/types/index.js +5 -0
- package/dist/cjs/api/resources/fhirProvider/client/Client.js +2 -1
- package/dist/cjs/api/resources/fhirProvider/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/fhirProvider/errors/ForbiddenError.js +1 -1
- package/dist/cjs/api/resources/fhirProvider/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/resources/fhirProvider/errors/NotFoundError.js +1 -1
- package/dist/cjs/api/resources/fhirProvider/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/Client.js +4 -3
- package/dist/cjs/api/resources/implementationGuides/client/Client.d.ts +12 -0
- package/dist/cjs/api/resources/implementationGuides/client/Client.js +16 -0
- package/dist/cjs/api/resources/implementationGuides/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/implementationGuides/client/index.js +2 -0
- package/dist/cjs/api/resources/implementationGuides/errors/BadRequestError.d.ts +5 -0
- package/dist/cjs/api/resources/implementationGuides/errors/BadRequestError.js +54 -0
- package/dist/cjs/api/resources/implementationGuides/errors/ForbiddenError.d.ts +5 -0
- package/dist/cjs/api/resources/implementationGuides/errors/ForbiddenError.js +54 -0
- package/dist/cjs/api/resources/implementationGuides/errors/InternalServerError.d.ts +5 -0
- package/dist/cjs/api/resources/implementationGuides/errors/InternalServerError.js +54 -0
- package/dist/cjs/api/resources/implementationGuides/errors/NotFoundError.d.ts +5 -0
- package/dist/cjs/api/resources/implementationGuides/errors/NotFoundError.js +54 -0
- package/dist/cjs/api/resources/implementationGuides/errors/UnauthorizedError.d.ts +5 -0
- package/dist/cjs/api/resources/implementationGuides/errors/UnauthorizedError.js +54 -0
- package/dist/cjs/api/resources/implementationGuides/errors/index.d.ts +5 -0
- package/dist/cjs/api/resources/implementationGuides/errors/index.js +21 -0
- package/dist/cjs/api/resources/implementationGuides/exports.d.ts +3 -0
- package/dist/cjs/api/resources/implementationGuides/exports.js +22 -0
- package/dist/cjs/api/resources/implementationGuides/index.d.ts +4 -0
- package/dist/cjs/api/resources/implementationGuides/index.js +20 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/Client.d.ts +91 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/Client.js +316 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/index.js +17 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/requests/UpdateImplementationGuideRequest.d.ts +8 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/requests/UpdateImplementationGuideRequest.js +3 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/exports.d.ts +2 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/exports.js +21 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/index.d.ts +1 -0
- package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/index.js +17 -0
- package/dist/cjs/api/resources/implementationGuides/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/implementationGuides/resources/index.js +41 -0
- package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideDetail.d.ts +5 -0
- package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideDetail.js +3 -0
- package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideListResponse.d.ts +4 -0
- package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideListResponse.js +3 -0
- package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideSummary.d.ts +15 -0
- package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideSummary.js +3 -0
- package/dist/cjs/api/resources/implementationGuides/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/implementationGuides/types/index.js +19 -0
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +3 -1
- package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +8 -0
- package/dist/cjs/api/resources/lang2Fhir/client/Client.js +15 -6
- package/dist/cjs/api/resources/lang2Fhir/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/ClientClosedRequestError.js +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.js +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/GatewayTimeoutError.js +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/NotFoundError.js +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/UnprocessableEntityError.js +1 -1
- package/dist/cjs/api/resources/lang2Fhir/types/CreateMultiResponse.d.ts +2 -0
- package/dist/cjs/api/resources/lang2Fhir/{client/requests → types}/ProfileUploadRequest.d.ts +2 -10
- package/dist/cjs/api/resources/lang2Fhir/types/ProfileUploadRequest.js +3 -0
- package/dist/cjs/api/resources/lang2Fhir/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/lang2Fhir/types/index.js +1 -0
- package/dist/cjs/api/resources/profiles/client/Client.d.ts +12 -0
- package/dist/cjs/api/resources/profiles/client/Client.js +16 -0
- package/dist/cjs/api/resources/profiles/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/profiles/client/index.js +2 -0
- package/dist/cjs/api/resources/profiles/errors/BadRequestError.d.ts +5 -0
- package/dist/cjs/api/resources/profiles/errors/BadRequestError.js +54 -0
- package/dist/cjs/api/resources/profiles/errors/ForbiddenError.d.ts +5 -0
- package/dist/cjs/api/resources/profiles/errors/ForbiddenError.js +54 -0
- package/dist/cjs/api/resources/profiles/errors/InternalServerError.d.ts +5 -0
- package/dist/cjs/api/resources/profiles/errors/InternalServerError.js +54 -0
- package/dist/cjs/api/resources/profiles/errors/NotFoundError.d.ts +5 -0
- package/dist/cjs/api/resources/profiles/errors/NotFoundError.js +54 -0
- package/dist/cjs/api/resources/profiles/errors/UnauthorizedError.d.ts +5 -0
- package/dist/cjs/api/resources/profiles/errors/UnauthorizedError.js +54 -0
- package/dist/cjs/api/resources/profiles/errors/index.d.ts +5 -0
- package/dist/cjs/api/resources/profiles/errors/index.js +21 -0
- package/dist/cjs/api/resources/profiles/exports.d.ts +3 -0
- package/dist/cjs/api/resources/profiles/exports.js +22 -0
- package/dist/cjs/api/resources/profiles/index.d.ts +4 -0
- package/dist/cjs/api/resources/profiles/index.js +20 -0
- package/dist/cjs/api/resources/profiles/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/profiles/resources/index.js +41 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/client/Client.d.ts +127 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/client/Client.js +397 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/client/index.js +17 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/client/requests/ListRequest.d.ts +10 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/client/requests/ListRequest.js +3 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/exports.d.ts +2 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/exports.js +21 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/index.d.ts +1 -0
- package/dist/cjs/api/resources/profiles/resources/profiles/index.js +17 -0
- package/dist/cjs/api/resources/profiles/types/FhirResource.d.ts +4 -0
- package/dist/cjs/api/resources/profiles/types/FhirResource.js +3 -0
- package/dist/cjs/api/resources/profiles/types/ProfileGetResponse.d.ts +5 -0
- package/dist/cjs/api/resources/profiles/types/ProfileGetResponse.js +3 -0
- package/dist/cjs/api/resources/profiles/types/ProfileListResponse.d.ts +4 -0
- package/dist/cjs/api/resources/profiles/types/ProfileListResponse.js +3 -0
- package/dist/cjs/api/resources/profiles/types/ProfileSummary.d.ts +26 -0
- package/dist/cjs/api/resources/profiles/types/ProfileSummary.js +12 -0
- package/dist/cjs/api/resources/profiles/types/ProfileUploadRequest.d.ts +7 -0
- package/dist/cjs/api/resources/profiles/types/ProfileUploadRequest.js +3 -0
- package/dist/cjs/api/resources/profiles/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/profiles/types/index.js +21 -0
- package/dist/cjs/api/resources/summary/client/Client.js +2 -1
- package/dist/cjs/api/resources/summary/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/summary/errors/ForbiddenError.js +1 -1
- package/dist/cjs/api/resources/summary/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/resources/summary/errors/NotFoundError.js +1 -1
- package/dist/cjs/api/resources/summary/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/summary/resources/templates/client/Client.js +3 -2
- package/dist/cjs/api/resources/tools/client/Client.js +5 -4
- package/dist/cjs/api/resources/tools/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/tools/errors/ForbiddenError.js +1 -1
- package/dist/cjs/api/resources/tools/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/resources/tools/errors/NotFoundError.js +1 -1
- package/dist/cjs/api/resources/tools/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/tools/resources/mcpServers/client/Client.js +2 -1
- package/dist/cjs/api/resources/voice/errors/BadGatewayError.js +1 -1
- package/dist/cjs/api/resources/voice/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/voice/errors/ContentTooLargeError.js +1 -1
- package/dist/cjs/api/resources/voice/errors/GatewayTimeoutError.js +1 -1
- package/dist/cjs/api/resources/voice/errors/PaymentRequiredError.js +1 -1
- package/dist/cjs/api/resources/voice/errors/ServiceUnavailableError.js +1 -1
- package/dist/cjs/api/resources/voice/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/workflows/client/Client.js +4 -3
- package/dist/cjs/api/resources/workflows/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/resources/workflows/errors/ForbiddenError.js +1 -1
- package/dist/cjs/api/resources/workflows/errors/GatewayTimeoutError.js +1 -1
- package/dist/cjs/api/resources/workflows/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/resources/workflows/errors/NotFoundError.js +1 -1
- package/dist/cjs/api/resources/workflows/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/core/file/file.js +3 -0
- package/dist/cjs/core/requestBody.d.ts +12 -0
- package/dist/cjs/core/requestBody.js +26 -0
- package/dist/cjs/core/stream/Stream.d.ts +45 -1
- package/dist/cjs/core/stream/Stream.js +323 -84
- package/dist/cjs/core/stream/index.d.ts +1 -0
- package/dist/cjs/core/url/qs.js +2 -2
- package/dist/cjs/errors/phenomlError.d.ts +1 -0
- package/dist/cjs/errors/phenomlError.js +5 -1
- package/dist/cjs/errors/phenomlTimeoutError.d.ts +2 -2
- package/dist/cjs/errors/phenomlTimeoutError.js +40 -6
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +12 -0
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +6 -0
- package/dist/esm/Client.mjs +10 -0
- package/dist/esm/api/resources/agent/client/Client.mjs +4 -3
- package/dist/esm/api/resources/agent/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/agent/errors/ConflictError.mjs +1 -1
- package/dist/esm/api/resources/agent/errors/ForbiddenError.mjs +1 -1
- package/dist/esm/api/resources/agent/errors/GatewayTimeoutError.mjs +1 -1
- package/dist/esm/api/resources/agent/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/resources/agent/errors/NotFoundError.mjs +1 -1
- package/dist/esm/api/resources/agent/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/agent/resources/chat/client/Client.mjs +3 -2
- package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +4 -3
- package/dist/esm/api/resources/authtoken/client/Client.mjs +2 -1
- package/dist/esm/api/resources/authtoken/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/authtoken/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/cohort/client/Client.mjs +2 -1
- package/dist/esm/api/resources/cohort/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/cohort/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/resources/cohort/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/construe/client/Client.mjs +2 -1
- package/dist/esm/api/resources/construe/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/construe/errors/ConflictError.mjs +1 -1
- package/dist/esm/api/resources/construe/errors/FailedDependencyError.mjs +1 -1
- package/dist/esm/api/resources/construe/errors/ForbiddenError.mjs +1 -1
- package/dist/esm/api/resources/construe/errors/GatewayTimeoutError.mjs +1 -1
- package/dist/esm/api/resources/construe/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/resources/construe/errors/NotFoundError.mjs +1 -1
- package/dist/esm/api/resources/construe/errors/NotImplementedError.mjs +1 -1
- package/dist/esm/api/resources/construe/errors/ServiceUnavailableError.mjs +1 -1
- package/dist/esm/api/resources/construe/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/construe/resources/codeSystems/client/Client.mjs +2 -1
- package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.mts +1 -1
- package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/ExportRequest.d.mts +1 -1
- package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/FindRequest.d.mts +1 -1
- package/dist/esm/api/resources/construe/resources/codes/client/Client.d.mts +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.mjs +2 -1
- package/dist/esm/api/resources/fhir2Omop/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/fhir2Omop/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/resources/fhir2Omop/errors/ServiceUnavailableError.mjs +1 -1
- package/dist/esm/api/resources/fhir2Omop/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/fhir2Omop/types/CareSiteRow.d.mts +8 -0
- package/dist/esm/api/resources/fhir2Omop/types/ConditionOccurrenceRow.d.mts +1 -0
- package/dist/esm/api/resources/fhir2Omop/types/DeathRow.d.mts +9 -0
- package/dist/esm/api/resources/fhir2Omop/types/DeathRow.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/DrugExposureRow.d.mts +1 -0
- package/dist/esm/api/resources/fhir2Omop/types/LocationRow.d.mts +14 -0
- package/dist/esm/api/resources/fhir2Omop/types/LocationRow.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/MeasurementRow.d.mts +1 -0
- package/dist/esm/api/resources/fhir2Omop/types/ObservationPeriodRow.d.mts +7 -0
- package/dist/esm/api/resources/fhir2Omop/types/ObservationPeriodRow.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/ObservationRow.d.mts +1 -0
- package/dist/esm/api/resources/fhir2Omop/types/OmopTables.d.mts +5 -0
- package/dist/esm/api/resources/fhir2Omop/types/PersonRow.d.mts +1 -0
- package/dist/esm/api/resources/fhir2Omop/types/ProcedureOccurrenceRow.d.mts +1 -0
- package/dist/esm/api/resources/fhir2Omop/types/ProviderRow.d.mts +15 -0
- package/dist/esm/api/resources/fhir2Omop/types/ProviderRow.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/VisitOccurrenceRow.d.mts +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/index.d.mts +5 -0
- package/dist/esm/api/resources/fhir2Omop/types/index.mjs +5 -0
- package/dist/esm/api/resources/fhirProvider/client/Client.mjs +2 -1
- package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.mjs +1 -1
- package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.mjs +1 -1
- package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/Client.mjs +4 -3
- package/dist/esm/api/resources/implementationGuides/client/Client.d.mts +12 -0
- package/dist/esm/api/resources/implementationGuides/client/Client.mjs +12 -0
- package/dist/esm/api/resources/implementationGuides/client/index.d.mts +1 -0
- package/dist/esm/api/resources/implementationGuides/client/index.mjs +1 -0
- package/dist/esm/api/resources/implementationGuides/errors/BadRequestError.d.mts +5 -0
- package/dist/esm/api/resources/implementationGuides/errors/BadRequestError.mjs +17 -0
- package/dist/esm/api/resources/implementationGuides/errors/ForbiddenError.d.mts +5 -0
- package/dist/esm/api/resources/implementationGuides/errors/ForbiddenError.mjs +17 -0
- package/dist/esm/api/resources/implementationGuides/errors/InternalServerError.d.mts +5 -0
- package/dist/esm/api/resources/implementationGuides/errors/InternalServerError.mjs +17 -0
- package/dist/esm/api/resources/implementationGuides/errors/NotFoundError.d.mts +5 -0
- package/dist/esm/api/resources/implementationGuides/errors/NotFoundError.mjs +17 -0
- package/dist/esm/api/resources/implementationGuides/errors/UnauthorizedError.d.mts +5 -0
- package/dist/esm/api/resources/implementationGuides/errors/UnauthorizedError.mjs +17 -0
- package/dist/esm/api/resources/implementationGuides/errors/index.d.mts +5 -0
- package/dist/esm/api/resources/implementationGuides/errors/index.mjs +5 -0
- package/dist/esm/api/resources/implementationGuides/exports.d.mts +3 -0
- package/dist/esm/api/resources/implementationGuides/exports.mjs +4 -0
- package/dist/esm/api/resources/implementationGuides/index.d.mts +4 -0
- package/dist/esm/api/resources/implementationGuides/index.mjs +4 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/Client.d.mts +91 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/Client.mjs +279 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/index.d.mts +1 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/index.mjs +1 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/requests/UpdateImplementationGuideRequest.d.mts +8 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/requests/UpdateImplementationGuideRequest.mjs +2 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/exports.d.mts +2 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/exports.mjs +3 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/index.d.mts +1 -0
- package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/index.mjs +1 -0
- package/dist/esm/api/resources/implementationGuides/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/implementationGuides/resources/index.mjs +2 -0
- package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideDetail.d.mts +5 -0
- package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideDetail.mjs +2 -0
- package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideListResponse.d.mts +4 -0
- package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideListResponse.mjs +2 -0
- package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideSummary.d.mts +15 -0
- package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideSummary.mjs +2 -0
- package/dist/esm/api/resources/implementationGuides/types/index.d.mts +3 -0
- package/dist/esm/api/resources/implementationGuides/types/index.mjs +3 -0
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +8 -0
- package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +15 -6
- package/dist/esm/api/resources/lang2Fhir/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/ClientClosedRequestError.mjs +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.mjs +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/GatewayTimeoutError.mjs +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/NotFoundError.mjs +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/UnprocessableEntityError.mjs +1 -1
- package/dist/esm/api/resources/lang2Fhir/types/CreateMultiResponse.d.mts +2 -0
- package/dist/esm/api/resources/lang2Fhir/{client/requests → types}/ProfileUploadRequest.d.mts +2 -10
- package/dist/esm/api/resources/lang2Fhir/types/ProfileUploadRequest.mjs +2 -0
- package/dist/esm/api/resources/lang2Fhir/types/index.d.mts +1 -0
- package/dist/esm/api/resources/lang2Fhir/types/index.mjs +1 -0
- package/dist/esm/api/resources/profiles/client/Client.d.mts +12 -0
- package/dist/esm/api/resources/profiles/client/Client.mjs +12 -0
- package/dist/esm/api/resources/profiles/client/index.d.mts +1 -0
- package/dist/esm/api/resources/profiles/client/index.mjs +1 -0
- package/dist/esm/api/resources/profiles/errors/BadRequestError.d.mts +5 -0
- package/dist/esm/api/resources/profiles/errors/BadRequestError.mjs +17 -0
- package/dist/esm/api/resources/profiles/errors/ForbiddenError.d.mts +5 -0
- package/dist/esm/api/resources/profiles/errors/ForbiddenError.mjs +17 -0
- package/dist/esm/api/resources/profiles/errors/InternalServerError.d.mts +5 -0
- package/dist/esm/api/resources/profiles/errors/InternalServerError.mjs +17 -0
- package/dist/esm/api/resources/profiles/errors/NotFoundError.d.mts +5 -0
- package/dist/esm/api/resources/profiles/errors/NotFoundError.mjs +17 -0
- package/dist/esm/api/resources/profiles/errors/UnauthorizedError.d.mts +5 -0
- package/dist/esm/api/resources/profiles/errors/UnauthorizedError.mjs +17 -0
- package/dist/esm/api/resources/profiles/errors/index.d.mts +5 -0
- package/dist/esm/api/resources/profiles/errors/index.mjs +5 -0
- package/dist/esm/api/resources/profiles/exports.d.mts +3 -0
- package/dist/esm/api/resources/profiles/exports.mjs +4 -0
- package/dist/esm/api/resources/profiles/index.d.mts +4 -0
- package/dist/esm/api/resources/profiles/index.mjs +4 -0
- package/dist/esm/api/resources/profiles/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/profiles/resources/index.mjs +2 -0
- package/dist/esm/api/resources/profiles/resources/profiles/client/Client.d.mts +127 -0
- package/dist/esm/api/resources/profiles/resources/profiles/client/Client.mjs +360 -0
- package/dist/esm/api/resources/profiles/resources/profiles/client/index.d.mts +1 -0
- package/dist/esm/api/resources/profiles/resources/profiles/client/index.mjs +1 -0
- package/dist/esm/api/resources/profiles/resources/profiles/client/requests/ListRequest.d.mts +10 -0
- package/dist/esm/api/resources/profiles/resources/profiles/client/requests/ListRequest.mjs +2 -0
- package/dist/esm/api/resources/profiles/resources/profiles/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/profiles/resources/profiles/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/profiles/resources/profiles/exports.d.mts +2 -0
- package/dist/esm/api/resources/profiles/resources/profiles/exports.mjs +3 -0
- package/dist/esm/api/resources/profiles/resources/profiles/index.d.mts +1 -0
- package/dist/esm/api/resources/profiles/resources/profiles/index.mjs +1 -0
- package/dist/esm/api/resources/profiles/types/FhirResource.d.mts +4 -0
- package/dist/esm/api/resources/profiles/types/FhirResource.mjs +2 -0
- package/dist/esm/api/resources/profiles/types/ProfileGetResponse.d.mts +5 -0
- package/dist/esm/api/resources/profiles/types/ProfileGetResponse.mjs +2 -0
- package/dist/esm/api/resources/profiles/types/ProfileListResponse.d.mts +4 -0
- package/dist/esm/api/resources/profiles/types/ProfileListResponse.mjs +2 -0
- package/dist/esm/api/resources/profiles/types/ProfileSummary.d.mts +26 -0
- package/dist/esm/api/resources/profiles/types/ProfileSummary.mjs +9 -0
- package/dist/esm/api/resources/profiles/types/ProfileUploadRequest.d.mts +7 -0
- package/dist/esm/api/resources/profiles/types/ProfileUploadRequest.mjs +2 -0
- package/dist/esm/api/resources/profiles/types/index.d.mts +5 -0
- package/dist/esm/api/resources/profiles/types/index.mjs +5 -0
- package/dist/esm/api/resources/summary/client/Client.mjs +2 -1
- package/dist/esm/api/resources/summary/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/summary/errors/ForbiddenError.mjs +1 -1
- package/dist/esm/api/resources/summary/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/resources/summary/errors/NotFoundError.mjs +1 -1
- package/dist/esm/api/resources/summary/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/summary/resources/templates/client/Client.mjs +3 -2
- package/dist/esm/api/resources/tools/client/Client.mjs +5 -4
- package/dist/esm/api/resources/tools/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/tools/errors/ForbiddenError.mjs +1 -1
- package/dist/esm/api/resources/tools/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/resources/tools/errors/NotFoundError.mjs +1 -1
- package/dist/esm/api/resources/tools/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/mcpServers/client/Client.mjs +2 -1
- package/dist/esm/api/resources/voice/errors/BadGatewayError.mjs +1 -1
- package/dist/esm/api/resources/voice/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/voice/errors/ContentTooLargeError.mjs +1 -1
- package/dist/esm/api/resources/voice/errors/GatewayTimeoutError.mjs +1 -1
- package/dist/esm/api/resources/voice/errors/PaymentRequiredError.mjs +1 -1
- package/dist/esm/api/resources/voice/errors/ServiceUnavailableError.mjs +1 -1
- package/dist/esm/api/resources/voice/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/workflows/client/Client.mjs +4 -3
- package/dist/esm/api/resources/workflows/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/resources/workflows/errors/ForbiddenError.mjs +1 -1
- package/dist/esm/api/resources/workflows/errors/GatewayTimeoutError.mjs +1 -1
- package/dist/esm/api/resources/workflows/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/resources/workflows/errors/NotFoundError.mjs +1 -1
- package/dist/esm/api/resources/workflows/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/core/file/file.mjs +3 -0
- package/dist/esm/core/requestBody.d.mts +12 -0
- package/dist/esm/core/requestBody.mjs +23 -0
- package/dist/esm/core/stream/Stream.d.mts +45 -1
- package/dist/esm/core/stream/Stream.mjs +323 -84
- package/dist/esm/core/stream/index.d.mts +1 -0
- package/dist/esm/core/url/qs.mjs +2 -2
- package/dist/esm/errors/phenomlError.d.mts +1 -0
- package/dist/esm/errors/phenomlError.mjs +5 -1
- package/dist/esm/errors/phenomlTimeoutError.d.mts +2 -2
- package/dist/esm/errors/phenomlTimeoutError.mjs +7 -6
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/openapi/openapi.json +1204 -235
- package/package.json +23 -1
- package/reference.md +625 -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",
|
|
@@ -1678,7 +1685,7 @@
|
|
|
1678
1685
|
],
|
|
1679
1686
|
"operationId": "construe_extract",
|
|
1680
1687
|
"summary": "Extract medical codes from text",
|
|
1681
|
-
"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",
|
|
1682
1689
|
"requestBody": {
|
|
1683
1690
|
"required": true,
|
|
1684
1691
|
"content": {
|
|
@@ -1698,6 +1705,20 @@
|
|
|
1698
1705
|
}
|
|
1699
1706
|
}
|
|
1700
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
|
+
},
|
|
1701
1722
|
"with_source_citations": {
|
|
1702
1723
|
"summary": "With Source Citations",
|
|
1703
1724
|
"description": "Enable include_citations and include_rationale to see exactly where each code was found. Notice the highlighted spans in the input text.",
|
|
@@ -2031,27 +2052,27 @@
|
|
|
2031
2052
|
"example": {
|
|
2032
2053
|
"systems": [
|
|
2033
2054
|
{
|
|
2034
|
-
"name": "
|
|
2035
|
-
"version": "
|
|
2036
|
-
"code_count":
|
|
2055
|
+
"name": "CPT",
|
|
2056
|
+
"version": "umls-2026aa",
|
|
2057
|
+
"code_count": 10298,
|
|
2037
2058
|
"builtin": true
|
|
2038
2059
|
},
|
|
2039
2060
|
{
|
|
2040
|
-
"name": "
|
|
2041
|
-
"version": "
|
|
2042
|
-
"code_count":
|
|
2061
|
+
"name": "CPT",
|
|
2062
|
+
"version": "2025",
|
|
2063
|
+
"code_count": 10192,
|
|
2043
2064
|
"builtin": true
|
|
2044
2065
|
},
|
|
2045
2066
|
{
|
|
2046
|
-
"name": "
|
|
2047
|
-
"version": "
|
|
2048
|
-
"code_count":
|
|
2067
|
+
"name": "HCPCS",
|
|
2068
|
+
"version": "umls-2026aa",
|
|
2069
|
+
"code_count": 7322,
|
|
2049
2070
|
"builtin": true
|
|
2050
2071
|
},
|
|
2051
2072
|
{
|
|
2052
|
-
"name": "
|
|
2053
|
-
"version": "
|
|
2054
|
-
"code_count":
|
|
2073
|
+
"name": "HPO",
|
|
2074
|
+
"version": "umls-2026aa",
|
|
2075
|
+
"code_count": 19698,
|
|
2055
2076
|
"builtin": true
|
|
2056
2077
|
},
|
|
2057
2078
|
{
|
|
@@ -2061,9 +2082,27 @@
|
|
|
2061
2082
|
"builtin": true
|
|
2062
2083
|
},
|
|
2063
2084
|
{
|
|
2064
|
-
"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",
|
|
2065
2098
|
"version": "2025",
|
|
2066
|
-
"code_count":
|
|
2099
|
+
"code_count": 97584,
|
|
2100
|
+
"builtin": true
|
|
2101
|
+
},
|
|
2102
|
+
{
|
|
2103
|
+
"name": "ICD-10-PCS",
|
|
2104
|
+
"version": "umls-2026aa",
|
|
2105
|
+
"code_count": 79232,
|
|
2067
2106
|
"builtin": true
|
|
2068
2107
|
},
|
|
2069
2108
|
{
|
|
@@ -2071,6 +2110,48 @@
|
|
|
2071
2110
|
"version": "2025",
|
|
2072
2111
|
"code_count": 78717,
|
|
2073
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
|
|
2074
2155
|
}
|
|
2075
2156
|
]
|
|
2076
2157
|
}
|
|
@@ -2118,7 +2199,7 @@
|
|
|
2118
2199
|
"schema": {
|
|
2119
2200
|
"type": "string"
|
|
2120
2201
|
},
|
|
2121
|
-
"description": "Specific version of the code system
|
|
2202
|
+
"description": "Specific version of the code system, such as `umls-2026aa`.",
|
|
2122
2203
|
"example": "2025"
|
|
2123
2204
|
}
|
|
2124
2205
|
],
|
|
@@ -2143,7 +2224,7 @@
|
|
|
2143
2224
|
}
|
|
2144
2225
|
},
|
|
2145
2226
|
"400": {
|
|
2146
|
-
"description": "Invalid parameters
|
|
2227
|
+
"description": "Invalid parameters"
|
|
2147
2228
|
},
|
|
2148
2229
|
"401": {
|
|
2149
2230
|
"description": "Unauthorized"
|
|
@@ -2187,7 +2268,7 @@
|
|
|
2187
2268
|
"schema": {
|
|
2188
2269
|
"type": "string"
|
|
2189
2270
|
},
|
|
2190
|
-
"description": "Specific version of the code system.
|
|
2271
|
+
"description": "Specific version of the custom code system."
|
|
2191
2272
|
}
|
|
2192
2273
|
],
|
|
2193
2274
|
"responses": {
|
|
@@ -2205,7 +2286,7 @@
|
|
|
2205
2286
|
}
|
|
2206
2287
|
},
|
|
2207
2288
|
"400": {
|
|
2208
|
-
"description": "Invalid parameters
|
|
2289
|
+
"description": "Invalid parameters"
|
|
2209
2290
|
},
|
|
2210
2291
|
"401": {
|
|
2211
2292
|
"description": "Unauthorized"
|
|
@@ -2254,7 +2335,7 @@
|
|
|
2254
2335
|
"schema": {
|
|
2255
2336
|
"type": "string"
|
|
2256
2337
|
},
|
|
2257
|
-
"description": "Specific version of the code system.
|
|
2338
|
+
"description": "Specific version of the custom code system."
|
|
2258
2339
|
}
|
|
2259
2340
|
],
|
|
2260
2341
|
"responses": {
|
|
@@ -2292,7 +2373,7 @@
|
|
|
2292
2373
|
}
|
|
2293
2374
|
},
|
|
2294
2375
|
"400": {
|
|
2295
|
-
"description": "Invalid parameters
|
|
2376
|
+
"description": "Invalid parameters"
|
|
2296
2377
|
},
|
|
2297
2378
|
"401": {
|
|
2298
2379
|
"description": "Unauthorized"
|
|
@@ -2356,7 +2437,7 @@
|
|
|
2356
2437
|
"schema": {
|
|
2357
2438
|
"type": "string"
|
|
2358
2439
|
},
|
|
2359
|
-
"description": "Specific version of the code system
|
|
2440
|
+
"description": "Specific version of the code system, such as `umls-2026aa`.",
|
|
2360
2441
|
"examples": {
|
|
2361
2442
|
"browse_icd10cm": {
|
|
2362
2443
|
"summary": "Browse ICD-10-CM",
|
|
@@ -2480,7 +2561,7 @@
|
|
|
2480
2561
|
}
|
|
2481
2562
|
},
|
|
2482
2563
|
"400": {
|
|
2483
|
-
"description": "Invalid parameters
|
|
2564
|
+
"description": "Invalid parameters"
|
|
2484
2565
|
},
|
|
2485
2566
|
"401": {
|
|
2486
2567
|
"description": "Unauthorized"
|
|
@@ -2554,7 +2635,7 @@
|
|
|
2554
2635
|
"schema": {
|
|
2555
2636
|
"type": "string"
|
|
2556
2637
|
},
|
|
2557
|
-
"description": "Specific version of the code system"
|
|
2638
|
+
"description": "Specific version of the code system, such as `umls-2026aa`."
|
|
2558
2639
|
}
|
|
2559
2640
|
],
|
|
2560
2641
|
"responses": {
|
|
@@ -2670,7 +2751,7 @@
|
|
|
2670
2751
|
"schema": {
|
|
2671
2752
|
"type": "string"
|
|
2672
2753
|
},
|
|
2673
|
-
"description": "Specific version of the code system"
|
|
2754
|
+
"description": "Specific version of the code system, such as `umls-2026aa`."
|
|
2674
2755
|
},
|
|
2675
2756
|
{
|
|
2676
2757
|
"name": "limit",
|
|
@@ -2919,7 +3000,7 @@
|
|
|
2919
3000
|
"schema": {
|
|
2920
3001
|
"type": "string"
|
|
2921
3002
|
},
|
|
2922
|
-
"description": "Specific version of the code system"
|
|
3003
|
+
"description": "Specific version of the code system, such as `umls-2026aa`."
|
|
2923
3004
|
},
|
|
2924
3005
|
{
|
|
2925
3006
|
"name": "limit",
|
|
@@ -4746,8 +4827,9 @@
|
|
|
4746
4827
|
"/lang2fhir/profile/upload": {
|
|
4747
4828
|
"post": {
|
|
4748
4829
|
"operationId": "lang2fhir_uploadProfile",
|
|
4749
|
-
"
|
|
4750
|
-
"
|
|
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",
|
|
4751
4833
|
"requestBody": {
|
|
4752
4834
|
"required": true,
|
|
4753
4835
|
"content": {
|
|
@@ -4994,19 +5076,28 @@
|
|
|
4994
5076
|
"tempId": "urn:uuid:patient-001",
|
|
4995
5077
|
"resourceType": "Patient",
|
|
4996
5078
|
"description": "John Doe, born 1979-03-15",
|
|
4997
|
-
"originalText": "John Doe, DOB 1979-03-15"
|
|
5079
|
+
"originalText": "John Doe, DOB 1979-03-15",
|
|
5080
|
+
"sourcePages": [
|
|
5081
|
+
1
|
|
5082
|
+
]
|
|
4998
5083
|
},
|
|
4999
5084
|
{
|
|
5000
5085
|
"tempId": "urn:uuid:condition-001",
|
|
5001
5086
|
"resourceType": "Condition",
|
|
5002
5087
|
"description": "Type 2 Diabetes Mellitus diagnosis",
|
|
5003
|
-
"originalText": "diagnosed with Type 2 Diabetes"
|
|
5088
|
+
"originalText": "diagnosed with Type 2 Diabetes",
|
|
5089
|
+
"sourcePages": [
|
|
5090
|
+
1
|
|
5091
|
+
]
|
|
5004
5092
|
},
|
|
5005
5093
|
{
|
|
5006
5094
|
"tempId": "urn:uuid:medication-001",
|
|
5007
5095
|
"resourceType": "MedicationRequest",
|
|
5008
5096
|
"description": "Metformin 500mg prescription",
|
|
5009
|
-
"originalText": "Prescribed Metformin 500mg"
|
|
5097
|
+
"originalText": "Prescribed Metformin 500mg",
|
|
5098
|
+
"sourcePages": [
|
|
5099
|
+
2
|
|
5100
|
+
]
|
|
5010
5101
|
}
|
|
5011
5102
|
]
|
|
5012
5103
|
}
|
|
@@ -5581,101 +5672,30 @@
|
|
|
5581
5672
|
"x-service": "summary"
|
|
5582
5673
|
}
|
|
5583
5674
|
},
|
|
5584
|
-
"/
|
|
5585
|
-
"
|
|
5586
|
-
"operationId": "
|
|
5587
|
-
"
|
|
5588
|
-
|
|
5589
|
-
"parameters": [
|
|
5590
|
-
{
|
|
5591
|
-
"$ref": "#/components/parameters/tools_OnBehalfOfHeader"
|
|
5592
|
-
},
|
|
5593
|
-
{
|
|
5594
|
-
"$ref": "#/components/parameters/tools_FhirProviderHeader"
|
|
5595
|
-
}
|
|
5675
|
+
"/fhir/implementation-guides": {
|
|
5676
|
+
"get": {
|
|
5677
|
+
"operationId": "implementation-guides_list",
|
|
5678
|
+
"tags": [
|
|
5679
|
+
"FHIR Artifacts / Implementation Guides"
|
|
5596
5680
|
],
|
|
5597
|
-
"
|
|
5598
|
-
|
|
5599
|
-
"content": {
|
|
5600
|
-
"application/json": {
|
|
5601
|
-
"schema": {
|
|
5602
|
-
"$ref": "#/components/schemas/tools_Lang2FhirAndCreateRequest"
|
|
5603
|
-
},
|
|
5604
|
-
"example": {
|
|
5605
|
-
"resource": "condition-encounter-diagnosis",
|
|
5606
|
-
"text": "Patient has severe persistent asthma with acute exacerbation",
|
|
5607
|
-
"provider": "550e8400-e29b-41d4-a716-446655440000"
|
|
5608
|
-
}
|
|
5609
|
-
}
|
|
5610
|
-
}
|
|
5611
|
-
},
|
|
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",
|
|
5612
5683
|
"responses": {
|
|
5613
5684
|
"200": {
|
|
5614
|
-
"description": "
|
|
5685
|
+
"description": "List of implementation guides",
|
|
5615
5686
|
"content": {
|
|
5616
5687
|
"application/json": {
|
|
5617
5688
|
"schema": {
|
|
5618
|
-
"$ref": "#/components/schemas/
|
|
5619
|
-
},
|
|
5620
|
-
"example": {
|
|
5621
|
-
"success": true,
|
|
5622
|
-
"message": "FHIR resource created successfully",
|
|
5623
|
-
"fhir_id": "condition-123",
|
|
5624
|
-
"fhir_resource": {
|
|
5625
|
-
"resourceType": "Condition",
|
|
5626
|
-
"id": "condition-123",
|
|
5627
|
-
"clinicalStatus": {
|
|
5628
|
-
"coding": [
|
|
5629
|
-
{
|
|
5630
|
-
"system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
|
|
5631
|
-
"code": "active"
|
|
5632
|
-
}
|
|
5633
|
-
]
|
|
5634
|
-
},
|
|
5635
|
-
"verificationStatus": {
|
|
5636
|
-
"coding": [
|
|
5637
|
-
{
|
|
5638
|
-
"system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
|
|
5639
|
-
"code": "confirmed"
|
|
5640
|
-
}
|
|
5641
|
-
]
|
|
5642
|
-
},
|
|
5643
|
-
"category": [
|
|
5644
|
-
{
|
|
5645
|
-
"coding": [
|
|
5646
|
-
{
|
|
5647
|
-
"system": "http://terminology.hl7.org/CodeSystem/condition-category",
|
|
5648
|
-
"code": "encounter-diagnosis"
|
|
5649
|
-
}
|
|
5650
|
-
]
|
|
5651
|
-
}
|
|
5652
|
-
],
|
|
5653
|
-
"code": {
|
|
5654
|
-
"coding": [
|
|
5655
|
-
{
|
|
5656
|
-
"system": "http://snomed.info/sct",
|
|
5657
|
-
"code": "195967001",
|
|
5658
|
-
"display": "Asthma"
|
|
5659
|
-
}
|
|
5660
|
-
],
|
|
5661
|
-
"text": "Severe persistent asthma with acute exacerbation"
|
|
5662
|
-
},
|
|
5663
|
-
"subject": {
|
|
5664
|
-
"reference": "Patient/patient-123"
|
|
5665
|
-
}
|
|
5666
|
-
}
|
|
5689
|
+
"$ref": "#/components/schemas/implementation-guides_ImplementationGuideListResponse"
|
|
5667
5690
|
}
|
|
5668
5691
|
}
|
|
5669
5692
|
}
|
|
5670
5693
|
},
|
|
5671
|
-
"400": {
|
|
5672
|
-
"description": "Invalid request"
|
|
5673
|
-
},
|
|
5674
5694
|
"401": {
|
|
5675
5695
|
"description": "Unauthorized"
|
|
5676
5696
|
},
|
|
5677
5697
|
"403": {
|
|
5678
|
-
"description": "Forbidden -
|
|
5698
|
+
"description": "Forbidden - custom profiles are only available on dedicated instances"
|
|
5679
5699
|
},
|
|
5680
5700
|
"500": {
|
|
5681
5701
|
"description": "Server error"
|
|
@@ -5686,101 +5706,51 @@
|
|
|
5686
5706
|
"bearerAuth": []
|
|
5687
5707
|
}
|
|
5688
5708
|
],
|
|
5689
|
-
"x-service": "
|
|
5709
|
+
"x-service": "fhir_artifacts"
|
|
5690
5710
|
}
|
|
5691
5711
|
},
|
|
5692
|
-
"/
|
|
5693
|
-
"
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
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"
|
|
5700
5721
|
},
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5722
|
+
"example": "acme-cardiology"
|
|
5723
|
+
}
|
|
5724
|
+
],
|
|
5725
|
+
"get": {
|
|
5726
|
+
"operationId": "implementation-guides_get",
|
|
5727
|
+
"tags": [
|
|
5728
|
+
"FHIR Artifacts / Implementation Guides"
|
|
5704
5729
|
],
|
|
5705
|
-
"
|
|
5706
|
-
|
|
5707
|
-
"content": {
|
|
5708
|
-
"application/json": {
|
|
5709
|
-
"schema": {
|
|
5710
|
-
"$ref": "#/components/schemas/tools_Lang2FhirAndCreateMultiRequest"
|
|
5711
|
-
},
|
|
5712
|
-
"example": {
|
|
5713
|
-
"text": "John Smith, 45-year-old male, diagnosed with Type 2 Diabetes. Prescribed Metformin 500mg twice daily.",
|
|
5714
|
-
"version": "R4",
|
|
5715
|
-
"provider": "medplum"
|
|
5716
|
-
}
|
|
5717
|
-
}
|
|
5718
|
-
}
|
|
5719
|
-
},
|
|
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",
|
|
5720
5732
|
"responses": {
|
|
5721
5733
|
"200": {
|
|
5722
|
-
"description": "
|
|
5734
|
+
"description": "The requested implementation guide",
|
|
5723
5735
|
"content": {
|
|
5724
5736
|
"application/json": {
|
|
5725
5737
|
"schema": {
|
|
5726
|
-
"$ref": "#/components/schemas/
|
|
5727
|
-
},
|
|
5728
|
-
"example": {
|
|
5729
|
-
"success": true,
|
|
5730
|
-
"message": "Created 3 resources",
|
|
5731
|
-
"response_bundle": {
|
|
5732
|
-
"resourceType": "Bundle",
|
|
5733
|
-
"type": "transaction-response",
|
|
5734
|
-
"entry": [
|
|
5735
|
-
{
|
|
5736
|
-
"response": {
|
|
5737
|
-
"status": "201 Created",
|
|
5738
|
-
"location": "Patient/patient-001"
|
|
5739
|
-
}
|
|
5740
|
-
},
|
|
5741
|
-
{
|
|
5742
|
-
"response": {
|
|
5743
|
-
"status": "201 Created",
|
|
5744
|
-
"location": "Condition/condition-001"
|
|
5745
|
-
}
|
|
5746
|
-
},
|
|
5747
|
-
{
|
|
5748
|
-
"response": {
|
|
5749
|
-
"status": "201 Created",
|
|
5750
|
-
"location": "MedicationRequest/medication-001"
|
|
5751
|
-
}
|
|
5752
|
-
}
|
|
5753
|
-
]
|
|
5754
|
-
},
|
|
5755
|
-
"resource_info": [
|
|
5756
|
-
{
|
|
5757
|
-
"tempId": "urn:uuid:patient-abc123",
|
|
5758
|
-
"resourceType": "Patient",
|
|
5759
|
-
"description": "John Smith, 45-year-old male"
|
|
5760
|
-
},
|
|
5761
|
-
{
|
|
5762
|
-
"tempId": "urn:uuid:condition-abc123",
|
|
5763
|
-
"resourceType": "Condition",
|
|
5764
|
-
"description": "Type 2 Diabetes diagnosis"
|
|
5765
|
-
},
|
|
5766
|
-
{
|
|
5767
|
-
"tempId": "urn:uuid:medication-abc123",
|
|
5768
|
-
"resourceType": "MedicationRequest",
|
|
5769
|
-
"description": "Metformin 500mg twice daily"
|
|
5770
|
-
}
|
|
5771
|
-
]
|
|
5738
|
+
"$ref": "#/components/schemas/implementation-guides_ImplementationGuideDetail"
|
|
5772
5739
|
}
|
|
5773
5740
|
}
|
|
5774
5741
|
}
|
|
5775
5742
|
},
|
|
5776
5743
|
"400": {
|
|
5777
|
-
"description": "
|
|
5744
|
+
"description": "The name is reserved or malformed"
|
|
5778
5745
|
},
|
|
5779
5746
|
"401": {
|
|
5780
5747
|
"description": "Unauthorized"
|
|
5781
5748
|
},
|
|
5782
5749
|
"403": {
|
|
5783
|
-
"description": "Forbidden -
|
|
5750
|
+
"description": "Forbidden - custom profiles are only available on dedicated instances"
|
|
5751
|
+
},
|
|
5752
|
+
"404": {
|
|
5753
|
+
"description": "Implementation guide not found"
|
|
5784
5754
|
},
|
|
5785
5755
|
"500": {
|
|
5786
5756
|
"description": "Server error"
|
|
@@ -5791,16 +5761,548 @@
|
|
|
5791
5761
|
"bearerAuth": []
|
|
5792
5762
|
}
|
|
5793
5763
|
],
|
|
5794
|
-
"x-service": "
|
|
5795
|
-
}
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
"
|
|
5802
|
-
"
|
|
5803
|
-
|
|
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
|
+
},
|
|
6299
|
+
"/tools/lang2fhir-and-search": {
|
|
6300
|
+
"post": {
|
|
6301
|
+
"operationId": "tools_searchFhirResources",
|
|
6302
|
+
"summary": "Search FHIR resources from natural language",
|
|
6303
|
+
"description": "Converts natural language to FHIR search parameters and executes search in FHIR server",
|
|
6304
|
+
"parameters": [
|
|
6305
|
+
{
|
|
5804
6306
|
"$ref": "#/components/parameters/tools_OnBehalfOfHeader"
|
|
5805
6307
|
},
|
|
5806
6308
|
{
|
|
@@ -7971,13 +8473,13 @@
|
|
|
7971
8473
|
"properties": {
|
|
7972
8474
|
"name": {
|
|
7973
8475
|
"type": "string",
|
|
7974
|
-
"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",
|
|
7975
8477
|
"example": "SNOMED_CT_US_LITE"
|
|
7976
8478
|
},
|
|
7977
8479
|
"version": {
|
|
7978
8480
|
"type": "string",
|
|
7979
|
-
"description": "
|
|
7980
|
-
"example": "
|
|
8481
|
+
"description": "Specific code system version.",
|
|
8482
|
+
"example": "umls-2026aa"
|
|
7981
8483
|
}
|
|
7982
8484
|
}
|
|
7983
8485
|
},
|
|
@@ -8208,7 +8710,7 @@
|
|
|
8208
8710
|
"version": {
|
|
8209
8711
|
"type": "string",
|
|
8210
8712
|
"description": "Code system version",
|
|
8211
|
-
"example": "
|
|
8713
|
+
"example": "umls-2026aa"
|
|
8212
8714
|
}
|
|
8213
8715
|
}
|
|
8214
8716
|
},
|
|
@@ -8229,7 +8731,7 @@
|
|
|
8229
8731
|
"version": {
|
|
8230
8732
|
"type": "string",
|
|
8231
8733
|
"description": "Code system version",
|
|
8232
|
-
"example": "
|
|
8734
|
+
"example": "umls-2026aa"
|
|
8233
8735
|
},
|
|
8234
8736
|
"code_count": {
|
|
8235
8737
|
"type": "integer",
|
|
@@ -8501,7 +9003,7 @@
|
|
|
8501
9003
|
"version": {
|
|
8502
9004
|
"type": "string",
|
|
8503
9005
|
"description": "Code system version",
|
|
8504
|
-
"example": "
|
|
9006
|
+
"example": "umls-2026aa"
|
|
8505
9007
|
},
|
|
8506
9008
|
"code_count": {
|
|
8507
9009
|
"type": "integer",
|
|
@@ -8674,47 +9176,198 @@
|
|
|
8674
9176
|
"type": "object",
|
|
8675
9177
|
"description": "OMOP CDM v5.4 rows grouped by destination table.",
|
|
8676
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
|
+
},
|
|
8677
9197
|
"person": {
|
|
8678
9198
|
"type": "array",
|
|
8679
9199
|
"items": {
|
|
8680
9200
|
"$ref": "#/components/schemas/fhir2omop_PersonRow"
|
|
8681
9201
|
}
|
|
8682
9202
|
},
|
|
8683
|
-
"
|
|
8684
|
-
"type": "array",
|
|
8685
|
-
"items": {
|
|
8686
|
-
"$ref": "#/components/schemas/
|
|
8687
|
-
}
|
|
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
|
+
},
|
|
9215
|
+
"visit_occurrence": {
|
|
9216
|
+
"type": "array",
|
|
9217
|
+
"items": {
|
|
9218
|
+
"$ref": "#/components/schemas/fhir2omop_VisitOccurrenceRow"
|
|
9219
|
+
}
|
|
9220
|
+
},
|
|
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"
|
|
8688
9354
|
},
|
|
8689
|
-
"
|
|
8690
|
-
"type": "
|
|
8691
|
-
"items": {
|
|
8692
|
-
"$ref": "#/components/schemas/fhir2omop_ConditionOccurrenceRow"
|
|
8693
|
-
}
|
|
9355
|
+
"provider_source_value": {
|
|
9356
|
+
"type": "string"
|
|
8694
9357
|
},
|
|
8695
|
-
"
|
|
8696
|
-
"type": "
|
|
8697
|
-
"items": {
|
|
8698
|
-
"$ref": "#/components/schemas/fhir2omop_DrugExposureRow"
|
|
8699
|
-
}
|
|
9358
|
+
"specialty_source_value": {
|
|
9359
|
+
"type": "string"
|
|
8700
9360
|
},
|
|
8701
|
-
"
|
|
8702
|
-
"type": "
|
|
8703
|
-
"
|
|
8704
|
-
"$ref": "#/components/schemas/fhir2omop_ProcedureOccurrenceRow"
|
|
8705
|
-
}
|
|
9361
|
+
"specialty_source_concept_id": {
|
|
9362
|
+
"type": "integer",
|
|
9363
|
+
"format": "int64"
|
|
8706
9364
|
},
|
|
8707
|
-
"
|
|
8708
|
-
"type": "
|
|
8709
|
-
"items": {
|
|
8710
|
-
"$ref": "#/components/schemas/fhir2omop_MeasurementRow"
|
|
8711
|
-
}
|
|
9365
|
+
"gender_source_value": {
|
|
9366
|
+
"type": "string"
|
|
8712
9367
|
},
|
|
8713
|
-
"
|
|
8714
|
-
"type": "
|
|
8715
|
-
"
|
|
8716
|
-
"$ref": "#/components/schemas/fhir2omop_ObservationRow"
|
|
8717
|
-
}
|
|
9368
|
+
"gender_source_concept_id": {
|
|
9369
|
+
"type": "integer",
|
|
9370
|
+
"format": "int64"
|
|
8718
9371
|
}
|
|
8719
9372
|
}
|
|
8720
9373
|
},
|
|
@@ -8749,6 +9402,10 @@
|
|
|
8749
9402
|
"type": "integer",
|
|
8750
9403
|
"format": "int64"
|
|
8751
9404
|
},
|
|
9405
|
+
"location_id": {
|
|
9406
|
+
"type": "integer",
|
|
9407
|
+
"format": "int64"
|
|
9408
|
+
},
|
|
8752
9409
|
"person_source_value": {
|
|
8753
9410
|
"type": "string"
|
|
8754
9411
|
},
|
|
@@ -8763,6 +9420,59 @@
|
|
|
8763
9420
|
}
|
|
8764
9421
|
}
|
|
8765
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
|
+
},
|
|
8766
9476
|
"fhir2omop_VisitOccurrenceRow": {
|
|
8767
9477
|
"type": "object",
|
|
8768
9478
|
"properties": {
|
|
@@ -8794,6 +9504,14 @@
|
|
|
8794
9504
|
"type": "integer",
|
|
8795
9505
|
"format": "int64"
|
|
8796
9506
|
},
|
|
9507
|
+
"provider_id": {
|
|
9508
|
+
"type": "integer",
|
|
9509
|
+
"format": "int64"
|
|
9510
|
+
},
|
|
9511
|
+
"care_site_id": {
|
|
9512
|
+
"type": "integer",
|
|
9513
|
+
"format": "int64"
|
|
9514
|
+
},
|
|
8797
9515
|
"visit_source_value": {
|
|
8798
9516
|
"type": "string"
|
|
8799
9517
|
}
|
|
@@ -8831,6 +9549,10 @@
|
|
|
8831
9549
|
"type": "integer",
|
|
8832
9550
|
"format": "int64"
|
|
8833
9551
|
},
|
|
9552
|
+
"provider_id": {
|
|
9553
|
+
"type": "integer",
|
|
9554
|
+
"format": "int64"
|
|
9555
|
+
},
|
|
8834
9556
|
"condition_source_value": {
|
|
8835
9557
|
"type": "string"
|
|
8836
9558
|
},
|
|
@@ -8881,6 +9603,10 @@
|
|
|
8881
9603
|
"type": "integer",
|
|
8882
9604
|
"format": "int64"
|
|
8883
9605
|
},
|
|
9606
|
+
"provider_id": {
|
|
9607
|
+
"type": "integer",
|
|
9608
|
+
"format": "int64"
|
|
9609
|
+
},
|
|
8884
9610
|
"drug_source_value": {
|
|
8885
9611
|
"type": "string"
|
|
8886
9612
|
},
|
|
@@ -8919,6 +9645,10 @@
|
|
|
8919
9645
|
"type": "integer",
|
|
8920
9646
|
"format": "int64"
|
|
8921
9647
|
},
|
|
9648
|
+
"provider_id": {
|
|
9649
|
+
"type": "integer",
|
|
9650
|
+
"format": "int64"
|
|
9651
|
+
},
|
|
8922
9652
|
"procedure_source_value": {
|
|
8923
9653
|
"type": "string"
|
|
8924
9654
|
},
|
|
@@ -8982,6 +9712,10 @@
|
|
|
8982
9712
|
"type": "integer",
|
|
8983
9713
|
"format": "int64"
|
|
8984
9714
|
},
|
|
9715
|
+
"provider_id": {
|
|
9716
|
+
"type": "integer",
|
|
9717
|
+
"format": "int64"
|
|
9718
|
+
},
|
|
8985
9719
|
"measurement_source_value": {
|
|
8986
9720
|
"type": "string"
|
|
8987
9721
|
},
|
|
@@ -9041,6 +9775,10 @@
|
|
|
9041
9775
|
"type": "integer",
|
|
9042
9776
|
"format": "int64"
|
|
9043
9777
|
},
|
|
9778
|
+
"provider_id": {
|
|
9779
|
+
"type": "integer",
|
|
9780
|
+
"format": "int64"
|
|
9781
|
+
},
|
|
9044
9782
|
"observation_source_value": {
|
|
9045
9783
|
"type": "string"
|
|
9046
9784
|
},
|
|
@@ -10220,6 +10958,16 @@
|
|
|
10220
10958
|
"type": "string",
|
|
10221
10959
|
"description": "Verbatim text excerpt from the original clinical document",
|
|
10222
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
|
+
]
|
|
10223
10971
|
}
|
|
10224
10972
|
}
|
|
10225
10973
|
}
|
|
@@ -10638,6 +11386,219 @@
|
|
|
10638
11386
|
}
|
|
10639
11387
|
}
|
|
10640
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
|
+
},
|
|
10641
11602
|
"tools_Lang2FhirAndCreateRequest": {
|
|
10642
11603
|
"type": "object",
|
|
10643
11604
|
"required": [
|
|
@@ -11918,6 +12879,14 @@
|
|
|
11918
12879
|
"name": "Summary / Templates",
|
|
11919
12880
|
"description": "Reusable summary templates that drive FHIR-to-text generation."
|
|
11920
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
|
+
},
|
|
11921
12890
|
{
|
|
11922
12891
|
"name": "Tools / MCP Servers",
|
|
11923
12892
|
"description": "Register and manage MCP servers exposed as agent tools."
|