InferICD10CM
Source:
src/AWS/ComprehendMedical/InferICD10CM.ts
Runtime binding for comprehendmedical:InferICD10CM — detect medical
conditions in clinical text and link them to ICD-10-CM ontology codes with
confidence scores.
Comprehend Medical is a pure pay-per-call service with no resource to
manage: the binding takes no arguments and grants the function
comprehendmedical:InferICD10CM (the action has no resource-level IAM).
Pass the clinical note as raw text — no marshalling.
Inferring ICD-10-CM Codes
Section titled “Inferring ICD-10-CM Codes”// initconst inferICD10CM = yield* AWS.ComprehendMedical.InferICD10CM();
// runtimeconst result = yield* inferICD10CM({ Text: "Patient presents with type 2 diabetes and hypertension.",});const codes = (result.Entities ?? []).flatMap((entity) => (entity.ICD10CMConcepts ?? []).map((concept) => concept.Code),);