The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import type * as comprehendmedical from "@distilled.cloud/aws/comprehendmedical"; |
| 2 | import * as Binding from "alchemy/Binding"; |
| 3 | import type * as Effect from "effect/Effect"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `comprehendmedical:InferRxNorm` — detect medication entities in clinical text and link them to concept identifiers in the RxNorm ontology (medication names, dosages, frequencies). |
| 7 | * |
| 8 | * Comprehend Medical has no resource-level IAM, so the binding takes no |
| 9 | * arguments and grants `comprehendmedical:InferRxNorm` on `*`. Provide the |
| 10 | * implementation with `Effect.provide(AWS.ComprehendMedical.InferRxNormHttp)`. |
| 11 | * |
| 12 | * ### Linking Medications to RxNorm |
| 13 | * **Example:** Infer RxNorm Concepts for a Medication List |
| 14 | * ```typescript |
| 15 | * // init |
| 16 | * const inferRxNorm = yield* AWS.ComprehendMedical.InferRxNorm(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * const result = yield* inferRxNorm({ |
| 20 | * Text: "Patient takes 50 mg atenolol daily.", |
| 21 | * }); |
| 22 | * const concepts = (result.Entities ?? []).flatMap((e) => e.RxNormConcepts ?? []); |
| 23 | * ``` |
| 24 | * |
| 25 | * @binding |
| 26 | */ |
| 27 | export interface InferRxNorm extends Binding.Service< |
| 28 | InferRxNorm, |
| 29 | "AWS.ComprehendMedical.InferRxNorm", |
| 30 | () => Effect.Effect< |
| 31 | ( |
| 32 | request: comprehendmedical.InferRxNormRequest, |
| 33 | ) => Effect.Effect<comprehendmedical.InferRxNormResponse, comprehendmedical.InferRxNormError> |
| 34 | > |
| 35 | > {} |
| 36 | export const InferRxNorm = Binding.Service<InferRxNorm>("AWS.ComprehendMedical.InferRxNorm"); |