Retrieves information about a medical coding job, including its status and, when it succeeds, the location of its results.
Medical coding jobs are in preview release and are subject to change.
Parameters:
-
domain_id
(DomainId)
–
The unique identifier of the parent Domain.
-
job_id
(JobId)
–
The unique identifier of the medical coding job.
Raises:
Source code in docs_src/capo_connecthealth/_services/connect_health.py
| def get_medical_coding_job(
self,
domain_id: "capo_connecthealth.types.domain_id.DomainId",
job_id: "capo_connecthealth.types.job_id.JobId",
*,
config_overrides: Optional[ConnectHealthClientConfig] = None,
) -> "capo_connecthealth.types.get_medical_coding_job_response.GetMedicalCodingJobResponse":
"""<p>Retrieves information about a medical coding job, including its status and, when it succeeds, the location of its results.</p> <p>Medical coding jobs are in preview release and are subject to change.</p>
Args:
domain_id: <p>The unique identifier of the parent Domain.</p>
job_id: <p>The unique identifier of the medical coding job.</p>
Raises:
capo_connecthealth.errors.access_denied_exception.AccessDeniedException: <p>This error is thrown when the client does not supply proper credentials to the API.</p>
capo_connecthealth.errors.internal_server_exception.InternalServerException: <p>This error is thrown when a transient error causes our API to fail.</p>
capo_connecthealth.errors.resource_not_found_exception.ResourceNotFoundException: <p>This error is thrown when the requested resource is not found.</p>
capo_connecthealth.errors.throttling_exception.ThrottlingException: <p>This error is thrown when the client exceeds the allowed request rate.</p>
capo_connecthealth.errors.validation_exception.ValidationException: <p>This error is thrown when the client supplies invalid input to the API.</p>
capo_connecthealth.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_connecthealth.types.get_medical_coding_job_request.GetMedicalCodingJobRequest]",
) -> OperationResponse[
"capo_connecthealth.types.get_medical_coding_job_response.GetMedicalCodingJobResponse"
]:
import capo_connecthealth._operations.connect_health.get_medical_coding_job
output, http_response = (
capo_connecthealth._operations.connect_health.get_medical_coding_job.get_medical_coding_job(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
def _redact_output(
output: "capo_connecthealth.types.get_medical_coding_job_response.GetMedicalCodingJobResponse",
) -> dict[str, Any]:
import capo_connecthealth.types.get_medical_coding_job_response
return capo_connecthealth.types.get_medical_coding_job_response.redact_sensitive(
output
)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("GetMedicalCodingJob", redact_output=_redact_output),
)
input_: capo_connecthealth.types.get_medical_coding_job_request.GetMedicalCodingJobRequest = {
"domain_id": domain_id,
"job_id": job_id,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|