start_medical_coding_job
async
¶
start_medical_coding_job(
domain_id: DomainId,
text: SensitiveNonEmptyString,
output_data_config: MedicalCodingOutputDataConfig,
*,
config_overrides: Optional[AsyncConnectHealthClientConfig] = None,
patient_context: Optional[MedicalCodesPatientContext] = None,
encounter_context: Optional[MedicalCodesEncounterContext] = None,
dataset_id: Optional[DatasetId] = None,
client_token: Optional[NonEmptyString] = None,
) -> StartMedicalCodingJobResponse
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 general medical coding knowledge base.
Medical coding jobs are in preview release and are subject to change.
Parameters:
-
domain_id(DomainId) –The unique identifier of the parent Domain.
-
text(SensitiveNonEmptyString) –The clinical text to generate medical codes for, such as a clinical note.
-
patient_context(Optional[MedicalCodesPatientContext], default:None) –Patient context for the job. Providing this information can improve the accuracy of the medical codes.
-
encounter_context(Optional[MedicalCodesEncounterContext], default:None) –Encounter context for the job. Providing this information can improve the accuracy of the medical codes.
-
output_data_config(MedicalCodingOutputDataConfig) –The output configuration for the job.
-
dataset_id(Optional[DatasetId], default:None) –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(Optional[NonEmptyString], default:None) –Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Raises:
-
AccessDeniedException–This error is thrown when the client does not supply proper credentials to the API.
-
ConflictException–This error is thrown when a resource update is no longer valid due to assumptions about initial state changing.
-
InternalServerException–This error is thrown when a transient error causes our API to fail.
-
ResourceNotFoundException–This error is thrown when the requested resource is not found.
-
ThrottlingException–This error is thrown when the client exceeds the allowed request rate.
-
ValidationException–This error is thrown when the client supplies invalid input to the API.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connecthealth/_services/async_connect_health.py
1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 | |