DetectEntitiesV2
Source:
src/AWS/ComprehendMedical/DetectEntitiesV2.ts
Runtime binding for comprehendmedical:DetectEntitiesV2 — extract medical
entities (medications, medical conditions, anatomy, PHI, tests/treatments)
and their attributes and traits from clinical text.
Comprehend Medical is a pure pay-per-call service with no resource to
manage: the binding takes no arguments and grants the function
comprehendmedical:DetectEntitiesV2 (the action has no resource-level
IAM). Pass the clinical note as raw text — no marshalling.
Detecting Medical Entities
Section titled “Detecting Medical Entities”// initconst detectEntities = yield* AWS.ComprehendMedical.DetectEntitiesV2();
// runtimeconst result = yield* detectEntities({ Text: "Patient takes 50 mg atenolol daily for hypertension.",});const names = (result.Entities ?? []).map((entity) => entity.Text);