Skip to content

Commit 8fc3fb1

Browse files
committed
fix: remove unsupported code:text FHIR search modifier for Prompt Opinion compatibility
1 parent f910f7f commit 8fc3fb1

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,17 @@ Try these prompts in Prompt Opinion (select a patient first, e.g. Morgan564 Lars
7272

7373
**Step 1: Check authorization status**
7474
```
75-
Call the CheckAuthStatus tool with patientId set to Morgan564-Larson43 and medicationName set to adalimumab
75+
Call the CheckAuthStatus tool with medicationName set to adalimumab
7676
```
7777

7878
**Step 2: Generate appeal letter**
7979
```
80-
Call the GenerateAppeal tool with patientId set to Morgan564-Larson43 and medicationName set to adalimumab and denialReason set to Step therapy requirement not met
80+
Call the GenerateAppeal tool with medicationName set to adalimumab and denialReason set to Step therapy requirement not met
8181
```
8282

8383
**Step 3: Format as document**
8484
```
85-
Call the GetAppealPdf tool with patientId set to Morgan564-Larson43 and appealText set to This letter serves as a formal appeal for the prior authorization denial of adalimumab. The denial reason was Step therapy requirement not met. We request reconsideration based on clinical evidence.
85+
Call the GetAppealPdf tool with appealText set to This letter serves as a formal appeal for the prior authorization denial of adalimumab. The denial reason was Step therapy requirement not met. We request reconsideration based on clinical evidence.
8686
```
8787

8888
## ☁️ Deployment

src/tools/CheckAuthStatusTool.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@ class CheckAuthStatusTool implements IMcpTool {
4343
}
4444

4545
// Search for MedicationRequests for this patient
46-
const searchParams = [`patient=Patient/${patientId}`, "status=active,on-hold,stopped"];
47-
if (medicationName) {
48-
searchParams.push(`code:text=${medicationName}`);
49-
}
46+
// Note: code:text modifier not supported by all FHIR servers, so we filter client-side
47+
const searchParams = [`patient=Patient/${patientId}`];
5048

5149
let medRequests: fhirR4.Bundle | null;
5250
try {

0 commit comments

Comments
 (0)