IDMP注釈スキル(医薬品情報の要素に対する注釈を付けるツール)。要素に対する注釈とイベントに対する注釈を区別した状態で、要素の注釈を読み書きする際に使用します。
IDMP annotation skill. Use it to read and write element annotations while keeping element annotations separate from event annotations.
先に ../idmp-shared/SKILL.md をお読みください。
event annotations * ファミリーを使用)は分けて管理します。| ショートカット | 用途 |
|---|---|
+list |
1つの要素の注釈をリスト表示。内容でフィルタすることも可能 |
| 情報 | 必要な理由 |
|---|---|
| 注釈の対象範囲 | コマンドを選ぶ前に、メモが要素またはイベントのどちらに属するか決定する |
| 所有要素 | 要素の注釈作成には、最終的な elementId が必要 |
| ターゲット注釈 ID | 更新・削除時は、要素 ID ではなく annotationId が必要 |
| 確認計画 | 作成・更新・削除後に注釈リストを再読み込みする方法を決定する |
annotation annotation create は要素の注釈のみを記録します。イベント用のメモは event annotations * ファミリーを使用します。annotation annotation update と annotation annotation delete は要素 ID ではなく annotationId に作用します。annotation annotation list の再読み込みで期待されたテキストが表示されるか削除が確認されるまで完了しません。annotation annotation list は内容・タイムウィンドウ・小さいページサイズでフィルタでき、全ページに広げる前にフィルタ再読み込みを使用します。annotation annotation list のタイムウィンドウフィルタはエポックミリ秒を想定しています。annotation annotation update がタイムスタンプ文字列を返す場合でも、updateTimeFrom や updateTimeTo に入力する前に変換してください。event annotations * に切り替えます。annotationId をキャプチャします。update と delete は要素自体ではなく、注釈レコードに作用します。update 後に updateTime* フィルタが必要な場合、再読み込み前に返されたタイムスタンプをエポックミリ秒に変換します。idmp-cli schema annotation.annotation.list
idmp-cli annotation annotation list --params '{"elementId":123,"current":1,"size":20}'
idmp-cli annotation annotation list --params '{"elementId":123,"content":"copilot note","current":1,"size":1}'
idmp-cli schema annotation.annotation.create
idmp-cli annotation annotation create --ack-risk --data '{...}'
idmp-cli schema annotation.annotation.update
idmp-cli annotation annotation update --ack-risk --data '{...}'
idmp-cli schema annotation.annotation.delete
idmp-cli annotation annotation delete --ack-risk --params '{"annotationId":456}'
elementId と現在のユーザーのアクセスレベルを確認します。elementId ではなく annotationId を渡したことを確認します。event annotations * に切り替えます。updateTimeFrom フィルタでメモが見つからない:返された更新時刻をエポックミリ秒に変換してフィルタ付きリストを再試行します。idmp-cli annotation annotation list で注釈をリスト表示します。idmp-cli annotation annotation create --ack-risk で一時的な注釈を作成します。annotationId で idmp-cli annotation annotation update --ack-risk を実行して更新します。annotationId で削除し、リストに表示されなくなったことを確認します。Read ../idmp-shared/SKILL.md first.
event annotations * family.content or time window to prove the exact note you just changed.| Shortcut | Purpose |
|---|---|
+list |
List annotations for one element, optionally filtered by content |
| Context | Why it must be resolved before mutation |
|---|---|
| Annotation scope | Decide whether the note belongs to an element or an event before choosing the command family. |
| Owner element | Element annotation create needs the final elementId. |
| Target annotation ID | Update and delete need annotationId, not the element ID. |
| Verification plan | Decide how you will reread the annotation list after create, update, and delete. |
annotation annotation create writes element annotations only; event notes use the event annotations * family.annotation annotation update and annotation annotation delete act on annotationId, not on the owner element.annotation annotation list reread shows the expected text or confirms deletion.annotation annotation list supports content, time windows, and small page sizes, so use filtered rereads before widening to the full page.annotation annotation list time-window filters expect epoch milliseconds, even though annotation annotation update can return a timestamp string. Convert the returned time before you feed it back into updateTimeFrom or updateTimeTo.event annotations *.annotationId before any update or delete.update and delete operate on the annotation record, not on the element itself.content filter first, then widen to the unfiltered first page if needed, to confirm the final text and timestamps.updateTime* filter after update, normalize the returned timestamp to epoch milliseconds before the reread.idmp-cli schema annotation.annotation.list
idmp-cli annotation annotation list --params '{"elementId":123,"current":1,"size":20}'
idmp-cli annotation annotation list --params '{"elementId":123,"content":"copilot note","current":1,"size":1}'
idmp-cli schema annotation.annotation.create
idmp-cli annotation annotation create --ack-risk --data '{...}'
idmp-cli schema annotation.annotation.update
idmp-cli annotation annotation update --ack-risk --data '{...}'
idmp-cli schema annotation.annotation.delete
idmp-cli annotation annotation delete --ack-risk --params '{"annotationId":456}'
elementId and the current user’s access level.annotationId, not elementId.event annotations * instead of forcing element commands.updateTimeFrom filtering misses the note: convert the returned update time to epoch milliseconds and retry the filtered list.idmp-cli annotation annotation list.idmp-cli annotation annotation create --ack-risk.annotationId with idmp-cli annotation annotation update --ack-risk.annotationId and confirm it no longer appears in the list.原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。