Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions apps/demo-ehr-app/public/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,18 @@ window.Config = {
"https://c32618cf-389d-44f1-93ee-b67a3468aae3-dev.e1-us-east-azure.choreoapis.dev/cms-0057f---unitedhealth/fhir-service/v1.0",
demoBaseUrl: "https://unitedcare.com",
demoHospitalUrl: "https://grace-hospital.com",
cdsRequestUrl: "https://c32618cf-389d-44f1-93ee-b67a3468aae3-dev.e1-us-east-azure.choreoapis.dev/cms-0057f---unitedhealth/cds-service/v1.0/cds-services",

medication_request:
"/choreo-apis/cms-0057f---unitedhealth/fhir-service/v1/fhir/r4/MedicationRequest",
prescribe_medication:
"/choreo-apis/cms-0057f---unitedhealth/cds-service/v1/prescribe-medication",
"/choreo-apis/cms-0057f---unitedhealth/cds-service/v1/cds-services/prescribe-medication",
Comment on lines +22 to +27
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Version inconsistency between cdsRequestUrl and prescribe_medication.

The cdsRequestUrl uses version v1.0 while prescribe_medication uses v1 for the same cds-service. This inconsistency could lead to routing issues if these versions resolve differently.

  cdsRequestUrl: "https://c32618cf-389d-44f1-93ee-b67a3468aae3-dev.e1-us-east-azure.choreoapis.dev/cms-0057f---unitedhealth/cds-service/v1.0/cds-services",

  medication_request:
    "/choreo-apis/cms-0057f---unitedhealth/fhir-service/v1/fhir/r4/MedicationRequest",
  prescribe_medication:
-    "/choreo-apis/cms-0057f---unitedhealth/cds-service/v1/cds-services/prescribe-medication",
+    "/choreo-apis/cms-0057f---unitedhealth/cds-service/v1.0/cds-services/prescribe-medication",

Alternatively, if v1 is intentional, update cdsRequestUrl to use v1 for consistency.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
cdsRequestUrl: "https://c32618cf-389d-44f1-93ee-b67a3468aae3-dev.e1-us-east-azure.choreoapis.dev/cms-0057f---unitedhealth/cds-service/v1.0/cds-services",
medication_request:
"/choreo-apis/cms-0057f---unitedhealth/fhir-service/v1/fhir/r4/MedicationRequest",
prescribe_medication:
"/choreo-apis/cms-0057f---unitedhealth/cds-service/v1/prescribe-medication",
"/choreo-apis/cms-0057f---unitedhealth/cds-service/v1/cds-services/prescribe-medication",
cdsRequestUrl: "https://c32618cf-389d-44f1-93ee-b67a3468aae3-dev.e1-us-east-azure.choreoapis.dev/cms-0057f---unitedhealth/cds-service/v1.0/cds-services",
medication_request:
"/choreo-apis/cms-0057f---unitedhealth/fhir-service/v1/fhir/r4/MedicationRequest",
prescribe_medication:
"/choreo-apis/cms-0057f---unitedhealth/cds-service/v1.0/cds-services/prescribe-medication",
🤖 Prompt for AI Agents
In `@apps/demo-ehr-app/public/config.js` around lines 22 - 27, The URLs are
inconsistent: cdsRequestUrl uses "v1.0" while prescribe_medication uses "v1",
which can cause routing mismatches; update one to match the other so both CDS
service paths use the same versioning (either change cdsRequestUrl to use "v1"
or change prescribe_medication to use "v1.0") and ensure both cdsRequestUrl and
prescribe_medication reference the identical version string for the cds-service.

questionnaire_package:
"/choreo-apis/cms-0057f---unitedhealth/fhir-service/v1/fhir/r4/Questionnaire/questionnaire-package",
questionnaire_response:
"/choreo-apis/cms-0057f---unitedhealth/fhir-service/v1/fhir/r4/QuestionnaireResponse",
claim_submit:
"/choreo-apis/cms-0057f---unitedhealth/fhir-service/v1/Claim/$submit",
"/choreo-apis/cms-0057f---unitedhealth/fhir-service/v1/fhir/r4/Claim/$submit",
practitioner_new:
"/choreo-apis/cms-0057f---unitedhealth/fhir-service/v1/fhir/r4/Practitioner",
patient:
Expand Down