Skip to content

ConnectHealthClient.start_medical_coding_job

rboto-connecthealth==0.4.0 · Service index · Types

Model summary (excerpt): Starts an asynchronous job that generates medical codes (ICD-10 and CPT) for clinical text. Call GetMedicalCodingJob to check the status of the job. When the job succeeds, Amazon Connect Health writes the results to the output Amazon S3 location. To tailor the codes to your organization, specify an ACTIVE medical coding dataset in the Domain. If you don't specify a dataset, the job uses the...

Install and imports

python -m pip install "rboto[connecthealth]==0.4.0"
from rboto import ConnectHealthClient
from rboto_connecthealth.types import (
    MedicalCodesEncounterContext,
    MedicalCodesPatientContext,
    MedicalCodingOutputDataConfig,
    StartMedicalCodingJobOutput,
)

Signature

async def start_medical_coding_job(
    *,
    domain_id: str,
    text: str,
    output_data_config: MedicalCodingOutputDataConfig,
    patient_context: MedicalCodesPatientContext | None = None,
    encounter_context: MedicalCodesEncounterContext | None = None,
    dataset_id: str | None = None,
    client_token: str | None = None,
) -> StartMedicalCodingJobOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
domain_id Yes The unique identifier of the parent Domain.
text Yes The clinical text to generate medical codes for, such as a clinical note.
output_data_config Yes The output configuration for the job.
patient_context No Patient context for the job. Providing this information can improve the accuracy of the medical codes.
encounter_context No Encounter context for the job. Providing this information can improve the accuracy of the medical codes.
dataset_id No The unique identifier of an ACTIVE medical coding dataset in the Domain to code against. If you don't specify a dataset, the job uses the general medical coding knowledge base.
client_token No Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

Output

StartMedicalCodingJobOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
job_arn str Always present —
job_id str Always present —
creation_time str | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

MedicalCodesEncounterContext, MedicalCodesPatientContext, MedicalCodingOutputDataConfig, StartMedicalCodingJobOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_connecthealth.exceptions:

AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ThrottlingError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model