Skip to content

InferSNOMEDCT

Source: src/AWS/ComprehendMedical/InferSNOMEDCT.ts

Runtime binding for comprehendmedical:InferSNOMEDCT — detect medical concepts in clinical text and link them to codes in the Systematized Nomenclature of Medicine, Clinical Terms (SNOMED CT) ontology.

Comprehend Medical has no resource-level IAM, so the binding takes no arguments and grants comprehendmedical:InferSNOMEDCT on *. Provide the implementation with Effect.provide(AWS.ComprehendMedical.InferSNOMEDCTHttp).

// init
const inferSNOMEDCT = yield* AWS.ComprehendMedical.InferSNOMEDCT();
// runtime
const result = yield* inferSNOMEDCT({
Text: "Patient presents with type 2 diabetes.",
});
const concepts = (result.Entities ?? []).flatMap((e) => e.SNOMEDCTConcepts ?? []);