@awell-health/awell-extensions 2.0.206 → 2.0.208

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/extensions/elation/actions/findAppointmentsWithAI/__testdata__/generateMockAppointment.d.ts +8 -0
  2. package/dist/extensions/elation/actions/findAppointmentsWithAI/__testdata__/generateMockAppointment.js +45 -0
  3. package/dist/extensions/elation/actions/findAppointmentsWithAI/__testdata__/generateMockAppointment.js.map +1 -0
  4. package/dist/extensions/elation/actions/findAppointmentsWithAI/__testdata__/generatePayload.d.ts +4 -0
  5. package/dist/extensions/elation/actions/findAppointmentsWithAI/__testdata__/generatePayload.js +33 -0
  6. package/dist/extensions/elation/actions/findAppointmentsWithAI/__testdata__/generatePayload.js.map +1 -0
  7. package/dist/extensions/elation/actions/findAppointmentsWithAI/__testdata__/index.d.ts +2 -0
  8. package/dist/extensions/elation/actions/findAppointmentsWithAI/__testdata__/index.js +19 -0
  9. package/dist/extensions/elation/actions/findAppointmentsWithAI/__testdata__/index.js.map +1 -0
  10. package/dist/extensions/elation/actions/findAppointmentsWithAI/config/fields.js +1 -1
  11. package/dist/extensions/elation/actions/findAppointmentsWithAI/config/fields.js.map +1 -1
  12. package/dist/extensions/elation/actions/findAppointmentsWithAI/findAppointmentsWithAI.d.ts +1 -1
  13. package/dist/extensions/elation/actions/findAppointmentsWithAI/findAppointmentsWithAI.js +59 -29
  14. package/dist/extensions/elation/actions/findAppointmentsWithAI/findAppointmentsWithAI.js.map +1 -1
  15. package/dist/extensions/elation/actions/findAppointmentsWithAI/{getAppoitnmentCountByStatus.js → getAppointmentCountByStatus.js} +1 -1
  16. package/dist/extensions/elation/actions/findAppointmentsWithAI/getAppointmentCountByStatus.js.map +1 -0
  17. package/dist/extensions/elation/actions/findFutureAppointment/findFutureAppointment.js +1 -0
  18. package/dist/extensions/elation/actions/findFutureAppointment/findFutureAppointment.js.map +1 -1
  19. package/dist/extensions/elation/lib/extractDatesFromInstructions/evaluate.d.ts +1 -0
  20. package/dist/extensions/elation/lib/extractDatesFromInstructions/evaluate.js +68 -0
  21. package/dist/extensions/elation/lib/extractDatesFromInstructions/evaluate.js.map +1 -0
  22. package/dist/extensions/elation/lib/extractDatesFromInstructions/extractDatesFromInstructions.d.ts +12 -0
  23. package/dist/extensions/elation/lib/extractDatesFromInstructions/extractDatesFromInstructions.js +28 -0
  24. package/dist/extensions/elation/lib/extractDatesFromInstructions/extractDatesFromInstructions.js.map +1 -0
  25. package/dist/extensions/elation/lib/extractDatesFromInstructions/parser.d.ts +20 -0
  26. package/dist/extensions/elation/lib/extractDatesFromInstructions/parser.js +11 -0
  27. package/dist/extensions/elation/lib/extractDatesFromInstructions/parser.js.map +1 -0
  28. package/dist/extensions/elation/lib/extractDatesFromInstructions/prompt.d.ts +2 -0
  29. package/dist/extensions/elation/lib/extractDatesFromInstructions/prompt.js +33 -0
  30. package/dist/extensions/elation/lib/extractDatesFromInstructions/prompt.js.map +1 -0
  31. package/dist/extensions/elation/lib/findAppointmentsWithLLM/findAppointmentsWithLLM.d.ts +3 -2
  32. package/dist/extensions/elation/lib/findAppointmentsWithLLM/findAppointmentsWithLLM.js +8 -5
  33. package/dist/extensions/elation/lib/findAppointmentsWithLLM/findAppointmentsWithLLM.js.map +1 -1
  34. package/dist/extensions/elation/lib/findAppointmentsWithLLM/parser.js +1 -2
  35. package/dist/extensions/elation/lib/findAppointmentsWithLLM/parser.js.map +1 -1
  36. package/dist/extensions/elation/lib/findAppointmentsWithLLM/prompt.d.ts +2 -1
  37. package/dist/extensions/elation/lib/findAppointmentsWithLLM/prompt.js +55 -2
  38. package/dist/extensions/elation/lib/findAppointmentsWithLLM/prompt.js.map +1 -1
  39. package/dist/extensions/shelly/actions/index.d.ts +1 -1
  40. package/dist/extensions/shelly/actions/summarizeTrackOutcome/config/fields.d.ts +1 -1
  41. package/dist/extensions/shelly/actions/summarizeTrackOutcome/config/fields.js +1 -1
  42. package/dist/extensions/shelly/actions/summarizeTrackOutcome/config/fields.js.map +1 -1
  43. package/dist/extensions/shelly/actions/summarizeTrackOutcome/lib/summarizeTrackOutcomeWithLLM/prompt.d.ts +1 -1
  44. package/dist/extensions/shelly/actions/summarizeTrackOutcome/lib/summarizeTrackOutcomeWithLLM/prompt.js +10 -2
  45. package/dist/extensions/shelly/actions/summarizeTrackOutcome/lib/summarizeTrackOutcomeWithLLM/prompt.js.map +1 -1
  46. package/dist/extensions/shelly/actions/summarizeTrackOutcome/summarizeTrackOutcome.js +1 -4
  47. package/dist/extensions/shelly/actions/summarizeTrackOutcome/summarizeTrackOutcome.js.map +1 -1
  48. package/dist/extensions/shelly/lib/getTrackData/getTrackData.js +17 -38
  49. package/dist/extensions/shelly/lib/getTrackData/getTrackData.js.map +1 -1
  50. package/package.json +3 -1
  51. package/dist/extensions/elation/actions/findAppointmentsWithAI/__testdata__/GetAppointments.mock.d.ts +0 -41
  52. package/dist/extensions/elation/actions/findAppointmentsWithAI/__testdata__/GetAppointments.mock.js +0 -93
  53. package/dist/extensions/elation/actions/findAppointmentsWithAI/__testdata__/GetAppointments.mock.js.map +0 -1
  54. package/dist/extensions/elation/actions/findAppointmentsWithAI/getAppoitnmentCountByStatus.js.map +0 -1
  55. /package/dist/extensions/elation/actions/findAppointmentsWithAI/{getAppoitnmentCountByStatus.d.ts → getAppointmentCountByStatus.d.ts} +0 -0
@@ -6,7 +6,6 @@ const output_parsers_1 = require("@langchain/core/output_parsers");
6
6
  exports.AppointmentsSchema = zod_1.z.array(zod_1.z.coerce.number());
7
7
  exports.parser = output_parsers_1.StructuredOutputParser.fromZodSchema(zod_1.z.object({
8
8
  appointmentIds: exports.AppointmentsSchema,
9
- explanation: zod_1.z
10
- .string()
9
+ explanation: zod_1.z.string(),
11
10
  }));
12
11
  //# sourceMappingURL=parser.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../../extensions/elation/lib/findAppointmentsWithLLM/parser.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,mEAAuE;AAE1D,QAAA,kBAAkB,GAAG,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAA;AAE/C,QAAA,MAAM,GAAG,uCAAsB,CAAC,aAAa,CACxD,OAAC,CAAC,MAAM,CAAC;IACP,cAAc,EAAE,0BAAkB;IAClC,WAAW,EAAE,OAAC;SACX,MAAM,EAAE;CACZ,CAAC,CACH,CAAA"}
1
+ {"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../../extensions/elation/lib/findAppointmentsWithLLM/parser.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,mEAAuE;AAE1D,QAAA,kBAAkB,GAAG,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAA;AAE/C,QAAA,MAAM,GAAG,uCAAsB,CAAC,aAAa,CACxD,OAAC,CAAC,MAAM,CAAC;IACP,cAAc,EAAE,0BAAkB;IAClC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CACH,CAAA"}
@@ -1,2 +1,3 @@
1
1
  import { ChatPromptTemplate } from '@langchain/core/prompts';
2
- export declare const systemPrompt: ChatPromptTemplate<import("@langchain/core/prompts").ParamsFromFString<"\nYou are a **thorough and precise** medical assistant.\nYou will receive:\n1. A list (array) of **appointments** for a single patient (in JSON format).\n2. A set of **instructions** (written by a clinician, for a clinician) specifying which types of appointments to find.\n\n---\n### **Your Task**\nYour goal is to carefully analyze the provided instructions and the list of appointments to **identify only those that match the instructions**.\n\n- You must be **thorough** in your search but only return results when you are **certain** that they match.\n- If multiple appointments match, return **all** their IDs.\n- If no appointments match, return an empty array—this is a valid outcome.\n- Be **meticulous when evaluating time-based criteria**, ensuring all matches are **precise** relative to ${currentDateTime}.\n\n---\n### **Important Instructions**\n- **Interpret clinically**: Instructions are written by a clinician for a clinician. Understand medical terminology correctly.\n - Example: \"Rx\" relates to prescription or medication follow-up, \"PT\" refers to physical therapy, \"f/u\" means follow-up. 2x/wk means 2 times a week while 2:1 means two patients per one clinician.\n- **Only return matches when you are certain**:\n - Use your expertise for matching but do not assume connections—appointments must explicitly fit the given instructions.\n - If an instruction is vague or ambiguous, only match appointments if the data supports it directly.\n- **Evaluate time constraints precisely**:\n - If the instruction mentions \"past\" appointments, **only include** those scheduled **before** ${currentDateTime}.\n - If \"future\" appointments are requested, **only include** those scheduled **after** ${currentDateTime}.\n - If an exact date is specified, match it **precisely**.\n - For relative time windows (e.g., “within the next 12 hours”):\n - Calculate the exact time difference between an appointment's scheduled date/time and ${currentDateTime}.\n - Example: If an appointment is scheduled at a time such that the time difference from ${currentDateTime} is more than 0 but less than or equal to 12 hours, then it qualifies.\n - It is critical to ensure the accuracy of your time comparison. Double check your calculation and reasoning.\n- **Only include appointment IDs that exist in the provided input array**.\n- **Do not fabricate matches**—returning an empty array is preferable to an incorrect match.\n\n\n----------\nPatient Appointments:\n${appointments}\n----------\nInstructions:\n${prompt}\n\nYour output must be a valid JSON object with the following fields:\n\n- appointmentIds: An array containing the IDs of appointments that match the given criteria. If no appointments meet the criteria, this array must be empty.\n- explanation: A concise, human-readable explanation that clearly describes:\n - How and why the selected appointments match the input criteria.\n - Why any appointments were excluded, if relevant.\n - Any edge cases or specific reasoning behind your selection.\n\n## Critical Requirements\n### Ensure that the explanation strictly matches the appointmentIds:\n- If appointmentIds contains **selected appointments**, the explanation must accurately describe **why they were chosen**.\n- If appointmentIds is **empty**, the explanation must clearly state **why no matches were found**.\n\n### Be thorough and precise:\n- Carefully **analyze all appointments** before making a decision.\n- **Double-check** your reasoning to confirm that **only valid matches** are included.\n- Ensure that no appointments that **do not meet the criteria** are selected.\n- **Maintain strict consistency** between appointmentIds and explanation.\n- **Do not contradict yourself**: The explanation must always align with the selected appointments appointmentIds. Double check your explanation against the appointmentIds.\n">, any>;
2
+ export declare const systemPromptWithDates: ChatPromptTemplate<import("@langchain/core/prompts").ParamsFromFString<"\nYou are a **thorough and precise** medical assistant.\nYou will receive:\n1. A list (array) of **appointments** for a single patient (in JSON format).\n2. A set of **instructions** (written by a clinician, for a clinician) specifying which types of appointments to find.\n\n---\n### **Your Task**\nYour goal is to carefully analyze the provided instructions and the list of appointments to **identify only those that match the instructions**.\n\n- You must be **thorough** in your search but only return results when you are **certain** that they match.\n- If multiple appointments match, return **all** their IDs.\n- If no appointments match, return an empty array—this is a valid outcome.\n- Be **meticulous when evaluating time-based criteria**, ensuring all matches are **precise** relative to ${currentDateTime}.\n\n---\n### **Important Instructions**\n- **Interpret clinically**: Instructions are written by a clinician for a clinician. Understand medical terminology correctly.\n - Example: \"Rx\" relates to prescription or medication follow-up, \"PT\" refers to physical therapy, \"f/u\" means follow-up. 2x/wk means 2 times a week while 2:1 means two patients per one clinician.\n- **Only return matches when you are certain**:\n - Use your expertise for matching but do not assume connections—appointments must explicitly fit the given instructions.\n - If an instruction is vague or ambiguous, only match appointments if the data supports it directly.\n- **Evaluate time constraints precisely**:\n - If the instruction mentions \"past\" appointments, **only include** those scheduled **before** ${currentDateTime}.\n - If \"future\" appointments are requested, **only include** those scheduled **after** ${currentDateTime}.\n - If an exact date is specified, match it **precisely**.\n - For relative time windows (e.g., “within the next 12 hours”):\n - Calculate the exact time difference between an appointment's scheduled date/time and ${currentDateTime}.\n - Example: If an appointment is scheduled at a time such that the time difference from ${currentDateTime} is more than 0 but less than or equal to 12 hours, then it qualifies.\n - It is critical to ensure the accuracy of your time comparison. Double check your calculation and reasoning.\n- **Only include appointment IDs that exist in the provided input array**.\n- **Do not fabricate matches**—returning an empty array is preferable to an incorrect match.\n\n\n----------\nPatient Appointments:\n${appointments}\n----------\nInstructions:\n${prompt}\n\nYour output must be a valid JSON object with the following fields:\n\n- appointmentIds: An array containing the IDs of appointments that match the given criteria. If no appointments meet the criteria, this array must be empty.\n- explanation: A concise, human-readable explanation that clearly describes:\n - How and why the selected appointments match the input criteria.\n - Why any appointments were excluded, if relevant.\n - Any edge cases or specific reasoning behind your selection.\n\n## Critical Requirements\n### Ensure that the explanation strictly matches the appointmentIds:\n- If appointmentIds contains **selected appointments**, the explanation must accurately describe **why they were chosen**.\n- If appointmentIds is **empty**, the explanation must clearly state **why no matches were found**.\n\n### Be thorough and precise:\n- Carefully **analyze all appointments** before making a decision.\n- **Double-check** your reasoning to confirm that **only valid matches** are included.\n- Ensure that no appointments that **do not meet the criteria** are selected.\n- **Maintain strict consistency** between appointmentIds and explanation.\n- **Do not contradict yourself**: The explanation must always align with the selected appointments appointmentIds. Double check your explanation against the appointmentIds.\n">, any>;
3
+ export declare const systemPromptWithoutDates: ChatPromptTemplate<import("@langchain/core/prompts").ParamsFromFString<"\nYou are a **thorough and precise** medical assistant.\nYou will receive:\n1. A list (array) of **appointments** for a single patient (in JSON format).\n2. A set of **instructions** (written by a clinician, for a clinician) specifying which types of appointments to find.\n\n---\n### **Your Task**\nYour goal is to carefully analyze the provided instructions and the list of appointments to **identify only those that match the instructions**.\nTranslate the instructions into a set of granular criteria, then go through the list of appointments and evaluate each criteria separately, and in a final pass keep only the appointments that meet all of the criteria.\n\n- You must be **thorough** in your search but only return results when you are **certain** that they match.\n- If multiple appointments match, return **all** their IDs.\n- If no appointments match, return an empty array—this is a valid outcome.\n- The current date is {currentDateTime}\n\n---\n### **Important Instructions**\n- **Interpret clinically**: Instructions are written by a clinician for a clinician. Understand medical terminology correctly.\n - Example: \"Rx\" relates to prescription or medication follow-up, \"PT\" refers to physical therapy, \"f/u\" means follow-up. 2x/wk means 2 times a week while 2:1 means two patients per one clinician.\n- **Only return matches when you are certain**:\n - Use your expertise for matching but do not assume connections—appointments must explicitly fit the given instructions.\n - If an instruction is vague or ambiguous, only match appointments if the data supports it directly.\n- **Do not exclude appointments based on their scheduled date**.\n- **Only include appointment IDs that exist in the provided input array**.\n- **Do not fabricate matches**—returning an empty array is preferable to an incorrect match.\n\n\n----------\nPatient Appointments:\n{appointments}\n----------\nInstructions:\n{prompt}\n\nYour output must be a valid JSON object with the following fields:\n\n- appointmentIds: An array containing the IDs of appointments that match the given criteria. If no appointments meet the criteria, this array must be empty.\n- explanation: A concise, human-readable explanation that clearly describes:\n - How and why the selected appointments match the input criteria.\n - Why any appointments were excluded, if relevant.\n - Any edge cases or specific reasoning behind your selection.\n\n## Critical Requirements\n### Ensure that the explanation strictly matches the appointmentIds:\n- If appointmentIds contains **selected appointments**, the explanation must accurately describe **why they were chosen**.\n- If appointmentIds is **empty**, the explanation must clearly state **why no matches were found**.\n\n### Be thorough and precise:\n- Carefully **analyze all appointments** before making a decision.\n- **Double-check** your reasoning to confirm that **only valid matches** are included.\n- **Maintain strict consistency** between appointmentIds and explanation.\n- **Do not contradict yourself**: The explanation must always align with the selected appointments appointmentIds. Double check your explanation against the appointmentIds.">, any>;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.systemPrompt = void 0;
3
+ exports.systemPromptWithoutDates = exports.systemPromptWithDates = void 0;
4
4
  const prompts_1 = require("@langchain/core/prompts");
5
- exports.systemPrompt = prompts_1.ChatPromptTemplate.fromTemplate(`
5
+ exports.systemPromptWithDates = prompts_1.ChatPromptTemplate.fromTemplate(`
6
6
  You are a **thorough and precise** medical assistant.
7
7
  You will receive:
8
8
  1. A list (array) of **appointments** for a single patient (in JSON format).
@@ -63,4 +63,57 @@ Your output must be a valid JSON object with the following fields:
63
63
  - **Maintain strict consistency** between appointmentIds and explanation.
64
64
  - **Do not contradict yourself**: The explanation must always align with the selected appointments appointmentIds. Double check your explanation against the appointmentIds.
65
65
  `);
66
+ exports.systemPromptWithoutDates = prompts_1.ChatPromptTemplate.fromTemplate(`
67
+ You are a **thorough and precise** medical assistant.
68
+ You will receive:
69
+ 1. A list (array) of **appointments** for a single patient (in JSON format).
70
+ 2. A set of **instructions** (written by a clinician, for a clinician) specifying which types of appointments to find.
71
+
72
+ ---
73
+ ### **Your Task**
74
+ Your goal is to carefully analyze the provided instructions and the list of appointments to **identify only those that match the instructions**.
75
+ Translate the instructions into a set of granular criteria, then go through the list of appointments and evaluate each criteria separately, and in a final pass keep only the appointments that meet all of the criteria.
76
+
77
+ - You must be **thorough** in your search but only return results when you are **certain** that they match.
78
+ - If multiple appointments match, return **all** their IDs.
79
+ - If no appointments match, return an empty array—this is a valid outcome.
80
+ - The current date is {currentDateTime}
81
+
82
+ ---
83
+ ### **Important Instructions**
84
+ - **Interpret clinically**: Instructions are written by a clinician for a clinician. Understand medical terminology correctly.
85
+ - Example: "Rx" relates to prescription or medication follow-up, "PT" refers to physical therapy, "f/u" means follow-up. 2x/wk means 2 times a week while 2:1 means two patients per one clinician.
86
+ - **Only return matches when you are certain**:
87
+ - Use your expertise for matching but do not assume connections—appointments must explicitly fit the given instructions.
88
+ - If an instruction is vague or ambiguous, only match appointments if the data supports it directly.
89
+ - **Do not exclude appointments based on their scheduled date**.
90
+ - **Only include appointment IDs that exist in the provided input array**.
91
+ - **Do not fabricate matches**—returning an empty array is preferable to an incorrect match.
92
+
93
+
94
+ ----------
95
+ Patient Appointments:
96
+ {appointments}
97
+ ----------
98
+ Instructions:
99
+ {prompt}
100
+
101
+ Your output must be a valid JSON object with the following fields:
102
+
103
+ - appointmentIds: An array containing the IDs of appointments that match the given criteria. If no appointments meet the criteria, this array must be empty.
104
+ - explanation: A concise, human-readable explanation that clearly describes:
105
+ - How and why the selected appointments match the input criteria.
106
+ - Why any appointments were excluded, if relevant.
107
+ - Any edge cases or specific reasoning behind your selection.
108
+
109
+ ## Critical Requirements
110
+ ### Ensure that the explanation strictly matches the appointmentIds:
111
+ - If appointmentIds contains **selected appointments**, the explanation must accurately describe **why they were chosen**.
112
+ - If appointmentIds is **empty**, the explanation must clearly state **why no matches were found**.
113
+
114
+ ### Be thorough and precise:
115
+ - Carefully **analyze all appointments** before making a decision.
116
+ - **Double-check** your reasoning to confirm that **only valid matches** are included.
117
+ - **Maintain strict consistency** between appointmentIds and explanation.
118
+ - **Do not contradict yourself**: The explanation must always align with the selected appointments appointmentIds. Double check your explanation against the appointmentIds.`);
66
119
  //# sourceMappingURL=prompt.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../../../../extensions/elation/lib/findAppointmentsWithLLM/prompt.ts"],"names":[],"mappings":";;;AAAA,qDAA4D;AAE/C,QAAA,YAAY,GAAG,4BAAkB,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4D3D,CAAC,CAAA"}
1
+ {"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../../../../extensions/elation/lib/findAppointmentsWithLLM/prompt.ts"],"names":[],"mappings":";;;AAAA,qDAA4D;AAE/C,QAAA,qBAAqB,GAAG,4BAAkB,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DpE,CAAC,CAAA;AAEW,QAAA,wBAAwB,GAAG,4BAAkB,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6KAoDqG,CAAC,CAAA"}
@@ -129,7 +129,7 @@ declare const actions: {
129
129
  id: string;
130
130
  label: string;
131
131
  description: string;
132
- type: import("@awell-health/extensions-core").FieldType.STRING;
132
+ type: import("@awell-health/extensions-core").FieldType.TEXT;
133
133
  required: false;
134
134
  };
135
135
  }, Record<string, never>, "outcomeSummary">;
@@ -5,7 +5,7 @@ export declare const fields: {
5
5
  id: string;
6
6
  label: string;
7
7
  description: string;
8
- type: FieldType.STRING;
8
+ type: FieldType.TEXT;
9
9
  required: false;
10
10
  };
11
11
  };
@@ -11,7 +11,7 @@ exports.fields = {
11
11
  id: 'instructions',
12
12
  label: 'Instructions',
13
13
  description: 'Specify instructions for the AI to generate the track outcome summary. You can include details about: what outcome to focus on, where to find it in the track, specific forms to analyze, desired length and format, parts of the track to exclude, level of detail for decision paths, etc.',
14
- type: extensions_core_1.FieldType.STRING,
14
+ type: extensions_core_1.FieldType.TEXT,
15
15
  required: false,
16
16
  },
17
17
  };
@@ -1 +1 @@
1
- {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/shelly/actions/summarizeTrackOutcome/config/fields.ts"],"names":[],"mappings":";;;;;;AAAA,mEAAqE;AACrE,8CAAwC;AAE3B,QAAA,MAAM,GAAG;IACpB,YAAY,EAAE;QACZ,EAAE,EAAE,cAAc;QAClB,KAAK,EAAE,cAAc;QACrB,WAAW,EACT,8RAA8R;QAChS,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,KAAK;KAChB;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC7C,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CACE,CAAC,CAAA"}
1
+ {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/shelly/actions/summarizeTrackOutcome/config/fields.ts"],"names":[],"mappings":";;;;;;AAAA,mEAAqE;AACrE,8CAAwC;AAE3B,QAAA,MAAM,GAAG;IACpB,YAAY,EAAE;QACZ,EAAE,EAAE,cAAc;QAClB,KAAK,EAAE,cAAc;QACrB,WAAW,EACT,8RAA8R;QAChS,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,KAAK;KAChB;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC7C,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CACE,CAAC,CAAA"}
@@ -1,2 +1,2 @@
1
1
  import { ChatPromptTemplate } from '@langchain/core/prompts';
2
- export declare const systemPrompt: ChatPromptTemplate<import("@langchain/core/prompts").ParamsFromFString<"# Role\nYou are a specialized healthcare AI assistant tasked with analyzing and summarizing clinical care flow track outcomes and decision paths for healthcare professionals.\n\n# Context\nIn healthcare systems, a care flow represents a patient's journey through a clinical process:\n- Care flow: The overall clinical pathway designed to achieve or maintain a desired health state\n- Track: A specific phase of care that can run sequentially (e.g., Diagnosis > Treatment > Follow-up) or in parallel\n- Step: A container of actions that happen at a given moment for a specific patient group\n- Action: Individual elements within a step that stakeholders interact with (forms, messages) or system actions (calculations, API calls)\n- Stakeholder: Participants involved in the care flow (patients, clinicians, care coordinators, etc.)\n\n# Task\nYour task is to analyze the provided track data and generate a clear, concise summary of:\n1. The final outcome of the track\n2. The decision path and reasoning that led to this outcome\n3. Key activities and decision points that influenced the outcome\n\n# Input Data Structure\nYou will receive structured data containing:\n- Track information: title, status, start/end dates\n- Steps: sequential clinical stages with names, labels, and statuses\n- Activities: actions performed within steps, including:\n * Timestamps (when actions occurred)\n * Actors (who performed the actions - patients, clinicians, etc.)\n * Action types (forms, messages, system events)\n * Form responses (questions and answers)\n * Data points (clinical measurements, observations, form responses or other data collected in the track) \n\n# Let's take it step by step:\n1. First, carefully examine all track information to understand the clinical context\n2. Next, analyze the activities in chronological order to trace the decision path\n3. Identify key decision points and their outcomes\n4. Determine the final track outcome (e.g., approved, alternative treatment, pre-certification)\n5. Extract the logical reasoning that led to this outcome\n6. Organize findings into a coherent narrative\n7. Double check the output for accuracy and completeness. It is critical your reasoning is supported by the data and in line with final outcome.\n\n# Output Guidelines\nStructure your summary as follows:\n- Begin with a clear outcome statement\n- Follow with 3-5 bullet points explaining the supporting evidence and reasoning\n- Present information chronologically to show progression\n- Use clinical terminology appropriate for healthcare professionals\n- Maintain brevity while preserving critical details\n\n# Important Constraints\n- Focus primarily on what patients and human stakeholders have done in the track\n- Only include information explicitly present in the input data\n- Absolutely refrain from making clinical assumptions beyond what is provided in data\n- Exclude technical details like IDs, internal codes, or system language\n- NEVER use Awell-specific terminology in your summary (avoid terms like \"track\", \"step\", \"action\")\n- Always use proper markdown formatting with clear section headers and bullet points\n- Remember your audience is clinical - use language that healthcare professionals will understand. Keep it concise and to the point.\n- It is critical to keep Details supporting the outcome section concise and to the point.\n# Example Output Format\n## Outcome: \nThe patient was approved for spinal surgery\n\n## Details supporting the outcome:\n- Patient reported severe back pain (8/10) with radiating symptoms and failed conservative treatment for 6 months, meeting criteria for surgical intervention\n- Imaging confirmed L4-L5 herniation with nerve compression, and insurance pre-authorization was obtained on 05/15/2023\n\nInstructions:\n{instructions}\n\nTrack Data:\n{input}">, any>;
2
+ export declare const systemPrompt: ChatPromptTemplate<import("@langchain/core/prompts").ParamsFromFString<"# Role\nYou are a specialized healthcare AI assistant tasked with analyzing and summarizing clinical care flow track outcomes and decision paths for healthcare professionals.\n\n----------\n# Context\nIn healthcare systems, a care flow represents a patient's journey through a clinical process:\n- Care flow: The overall clinical pathway designed to achieve or maintain a desired health state\n- Track: A specific phase of care that can run sequentially (e.g., Diagnosis > Treatment > Follow-up) or in parallel\n- Step: A container of actions that happen at a given moment for a specific patient group\n- Action: Individual elements within a step that stakeholders interact with (forms, messages) or system actions (calculations, API calls)\n- Stakeholder: Participants involved in the care flow (patients, clinicians, care coordinators, etc.)\n\n----------\n# Task\nYour task is to analyze the provided track data and generate a clear, concise summary of:\n1. The final outcome of the track\n2. The decision path and reasoning that led to this outcome\n3. Key activities and decision points that influenced the outcome\n\n----------\n# Input Data Structure\nYou will receive structured data containing:\n- Track information: title, status, start/end dates\n- Steps: sequential clinical stages with names, labels, and statuses\n- Activities: actions performed within steps, including:\n * Timestamps (when actions occurred)\n * Actors (who performed the actions - patients, clinicians, etc.)\n * Action types (forms, messages, system events)\n * Form responses (questions and answers)\n * Data points (clinical measurements, observations, form responses or other data collected in the track) \n\n# Let's take it step by step:\n1. First, carefully examine all track information to understand the clinical context\n2. Next, analyze the activities in chronological order to trace the decision path\n3. Identify key decision points and their outcomes\n4. Determine the final track outcome (e.g., approved, alternative treatment, pre-certification)\n5. Extract the logical reasoning that led to this outcome\n6. Organize findings into a coherent narrative\n7. Double check the output for accuracy and completeness. It is critical your reasoning is supported by the data and in line with final outcome.\n\n----------\n# Output Guidelines\nStructure your summary as follows:\n- Begin with a clear outcome statement\n- Follow with 3-5 bullet points explaining the supporting evidence and reasoning\n- Present information chronologically to show progression\n- Use clinical terminology appropriate for healthcare professionals\n- Maintain brevity while preserving critical details\n\n# Important Constraints\n- Focus primarily on what patients and human stakeholders have done in the track\n- Only include information explicitly present in the input data\n- Absolutely refrain from making clinical assumptions beyond what is provided in data\n- Exclude technical details like IDs, internal codes, or system language\n- NEVER use Awell-specific terminology in your summary (avoid terms like \"track\", \"step\", \"action\")\n- Always use proper markdown formatting with clear section headers\n- Remember your audience is clinical - use language that healthcare professionals will understand. Keep it concise and to the point.\n- It is critical to keep Details supporting the outcome section concise and to the point. Write them in a paragraph format, unless otherwise specified in the instructions.\n\n----------\n# Example Output Format\n## Outcome: \nThe patient was approved for spinal surgery\n\n## Details supporting the outcome:\n- Patient reported severe back pain (8/10) with radiating symptoms and failed conservative treatment for 6 months, meeting criteria for surgical intervention\n- Imaging confirmed L4-L5 herniation with nerve compression, and insurance pre-authorization was obtained on 05/15/2023\n\n----------\nInstructions:\n{instructions}\n\n----------\nTrack Data:\n{input}">, any>;
@@ -6,6 +6,7 @@ const prompts_1 = require("@langchain/core/prompts");
6
6
  exports.systemPrompt = prompts_1.ChatPromptTemplate.fromTemplate(`# Role
7
7
  You are a specialized healthcare AI assistant tasked with analyzing and summarizing clinical care flow track outcomes and decision paths for healthcare professionals.
8
8
 
9
+ ----------
9
10
  # Context
10
11
  In healthcare systems, a care flow represents a patient's journey through a clinical process:
11
12
  - Care flow: The overall clinical pathway designed to achieve or maintain a desired health state
@@ -14,12 +15,14 @@ In healthcare systems, a care flow represents a patient's journey through a clin
14
15
  - Action: Individual elements within a step that stakeholders interact with (forms, messages) or system actions (calculations, API calls)
15
16
  - Stakeholder: Participants involved in the care flow (patients, clinicians, care coordinators, etc.)
16
17
 
18
+ ----------
17
19
  # Task
18
20
  Your task is to analyze the provided track data and generate a clear, concise summary of:
19
21
  1. The final outcome of the track
20
22
  2. The decision path and reasoning that led to this outcome
21
23
  3. Key activities and decision points that influenced the outcome
22
24
 
25
+ ----------
23
26
  # Input Data Structure
24
27
  You will receive structured data containing:
25
28
  - Track information: title, status, start/end dates
@@ -40,6 +43,7 @@ You will receive structured data containing:
40
43
  6. Organize findings into a coherent narrative
41
44
  7. Double check the output for accuracy and completeness. It is critical your reasoning is supported by the data and in line with final outcome.
42
45
 
46
+ ----------
43
47
  # Output Guidelines
44
48
  Structure your summary as follows:
45
49
  - Begin with a clear outcome statement
@@ -54,9 +58,11 @@ Structure your summary as follows:
54
58
  - Absolutely refrain from making clinical assumptions beyond what is provided in data
55
59
  - Exclude technical details like IDs, internal codes, or system language
56
60
  - NEVER use Awell-specific terminology in your summary (avoid terms like "track", "step", "action")
57
- - Always use proper markdown formatting with clear section headers and bullet points
61
+ - Always use proper markdown formatting with clear section headers
58
62
  - Remember your audience is clinical - use language that healthcare professionals will understand. Keep it concise and to the point.
59
- - It is critical to keep Details supporting the outcome section concise and to the point.
63
+ - It is critical to keep Details supporting the outcome section concise and to the point. Write them in a paragraph format, unless otherwise specified in the instructions.
64
+
65
+ ----------
60
66
  # Example Output Format
61
67
  ## Outcome:
62
68
  The patient was approved for spinal surgery
@@ -65,9 +71,11 @@ The patient was approved for spinal surgery
65
71
  - Patient reported severe back pain (8/10) with radiating symptoms and failed conservative treatment for 6 months, meeting criteria for surgical intervention
66
72
  - Imaging confirmed L4-L5 herniation with nerve compression, and insurance pre-authorization was obtained on 05/15/2023
67
73
 
74
+ ----------
68
75
  Instructions:
69
76
  {instructions}
70
77
 
78
+ ----------
71
79
  Track Data:
72
80
  {input}`);
73
81
  //# sourceMappingURL=prompt.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../../../../../../extensions/shelly/actions/summarizeTrackOutcome/lib/summarizeTrackOutcomeWithLLM/prompt.ts"],"names":[],"mappings":";;;AAAA,qDAA4D;AAE5D,sEAAsE;AACzD,QAAA,YAAY,GAAG,4BAAkB,CAAC,YAAY,CACzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAkEM,CACP,CAAA"}
1
+ {"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../../../../../../extensions/shelly/actions/summarizeTrackOutcome/lib/summarizeTrackOutcomeWithLLM/prompt.ts"],"names":[],"mappings":";;;AAAA,qDAA4D;AAE5D,sEAAsE;AACzD,QAAA,YAAY,GAAG,4BAAkB,CAAC,YAAY,CACzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA0EM,CACP,CAAA"}
@@ -62,10 +62,6 @@ exports.summarizeTrackOutcome = {
62
62
  },
63
63
  },
64
64
  },
65
- })
66
- .catch((error) => {
67
- console.error(`Failed to fetch activity ${activityId}`, error);
68
- throw new Error(`Failed to fetch activity ${activityId}`);
69
65
  });
70
66
  const currentActivity = (_a = activityDetails === null || activityDetails === void 0 ? void 0 : activityDetails.activity) === null || _a === void 0 ? void 0 : _a.activity;
71
67
  if ((0, lodash_1.isNil)(currentActivity) || !activityDetails.activity.success) {
@@ -82,6 +78,7 @@ exports.summarizeTrackOutcome = {
82
78
  trackId,
83
79
  currentActivityId: payload.activity.id,
84
80
  });
81
+ // 4. Generate summary with LLM
85
82
  const summary = await (0, summarizeTrackOutcomeWithLLM_1.summarizeTrackOutcomeWithLLM)({
86
83
  model,
87
84
  trackActivities: JSON.stringify(trackData, null, 2),
@@ -1 +1 @@
1
- {"version":3,"file":"summarizeTrackOutcome.js","sourceRoot":"","sources":["../../../../../extensions/shelly/actions/summarizeTrackOutcome/summarizeTrackOutcome.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAErE,qCAAqE;AACrE,iDAAsD;AACtD,qFAAiF;AACjF,2DAAkE;AAClE,wEAAwE;AACxE,wDAA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ACL,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YACnD,YAAY;YACZ,QAAQ;YACR,SAAS;SACV,CAAC,CAAA;QAEF,MAAM,aAAa,GAAG,mFAAmF,MAAA,MAAA,MAAA,cAAc,CAAC,OAAO,0CAAE,OAAO,0CAAE,KAAK,mCAAI,SAAS,UAAU,MAAA,MAAA,MAAA,cAAc,CAAC,OAAO,0CAAE,OAAO,0CAAE,qBAAqB,mCAAI,SAAS,IAAI,CAAA;QAE7O,MAAM,WAAW,GAAG,MAAM,IAAA,sBAAc,EAAC,GAAG,aAAa,OAAO,OAAO,EAAE,CAAC,CAAA;QAE1E,MAAM,UAAU,CAAC;YACf,WAAW,EAAE;gBACX,cAAc,EAAE,WAAW;aAC5B;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"summarizeTrackOutcome.js","sourceRoot":"","sources":["../../../../../extensions/shelly/actions/summarizeTrackOutcome/summarizeTrackOutcome.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAErE,qCAAqE;AACrE,iDAAsD;AACtD,qFAAiF;AACjF,2DAAkE;AAClE,wEAAwE;AACxE,wDAA2D;AAC3D,mCAA8B;AAEjB,QAAA,qBAAqB,GAI9B;IACF,GAAG,EAAE,uBAAuB;IAC5B,QAAQ,EAAE,0BAAQ,CAAC,QAAQ;IAC3B,KAAK,EAAE,gCAAgC;IACvC,WAAW,EAAE,8EAA8E;IAC3F,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,KAAK;IAClB,UAAU,EAAV,mBAAU;IAEV,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,EAAiB,EAAE;;QACxE,2BAA2B;QAC3B,MAAM,EAAE,YAAY,EAAE,GAAG,+BAAsB,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;QACrE,MAAM,OAAO,GAAG,O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AChE,MAAM,IAAI,KAAK,CAAC,4BAA4B,UAAU,EAAE,CAAC,CAAA;QAC3D,CAAC;QAED,MAAM,OAAO,GAAG,MAAA,eAAe,CAAC,OAAO,0CAAE,QAAQ,CAAA;QAEjD,IAAI,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;YAC5C,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAA;QACrE,CAAC;QAED,sDAAsD;QACtD,MAAM,SAAS,GAAG,MAAM,IAAA,oBAAY,EAAC;YACnC,QAAQ;YACR,SAAS,EAAE,OAAO,CAAC,EAAE;YACrB,OAAO;YACP,iBAAiB,EAAG,OAAO,CAAC,QAAqB,CAAC,EAAE;SACrD,CAAC,CAAA;QAEF,+BAA+B;QAC/B,MAAM,OAAO,GAAG,MAAM,IAAA,2DAA4B,EAAC;YACjD,KAAK;YACL,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YACnD,YAAY;YACZ,QAAQ;YACR,SAAS;SACV,CAAC,CAAA;QAEF,MAAM,aAAa,GAAG,mFAAmF,MAAA,MAAA,MAAA,cAAc,CAAC,OAAO,0CAAE,OAAO,0CAAE,KAAK,mCAAI,SAAS,UAAU,MAAA,MAAA,MAAA,cAAc,CAAC,OAAO,0CAAE,OAAO,0CAAE,qBAAqB,mCAAI,SAAS,IAAI,CAAA;QAE7O,MAAM,WAAW,GAAG,MAAM,IAAA,sBAAc,EAAC,GAAG,aAAa,OAAO,OAAO,EAAE,CAAC,CAAA;QAE1E,MAAM,UAAU,CAAC;YACf,WAAW,EAAE;gBACX,cAAc,EAAE,WAAW;aAC5B;SACF,CAAC,CAAA;IACN,CAAC;CACF,CAAA"}
@@ -148,7 +148,7 @@ const cleanDataForLLM = async (data, awellSdk, pathwayId) => {
148
148
  };
149
149
  };
150
150
  const getTrackData = async ({ awellSdk, pathwayId, trackId, currentActivityId, }) => {
151
- var _a;
151
+ var _a, _b, _c, _d, _e;
152
152
  // 1. Query pathway to get track information
153
153
  const pathwayQuery = await awellSdk.orchestration.query({
154
154
  pathway: {
@@ -276,30 +276,12 @@ const getTrackData = async ({ awellSdk, pathwayId, trackId, currentActivityId, }
276
276
  const currentActivityDate = (_a = currentActivity === null || currentActivity === void 0 ? void 0 : currentActivity.date) !== null && _a !== void 0 ? _a : '';
277
277
  // Get the track IDs we need to match against
278
278
  const relevantTrackIds = new Set();
279
- activitiesQuery.pathwayActivities.activities.forEach(activity => {
280
- var _a;
281
- if (((_a = activity.track) === null || _a === void 0 ? void 0 : _a.id) === trackId) {
282
- relevantTrackIds.add(activity.track.id);
283
- // Find the corresponding track element to get its ID
284
- const trackElement = elementsQuery.pathwayElements.elements.find(element => {
285
- var _a, _b;
286
- return element.type === 'TRACK' &&
287
- (((_a = element.context) === null || _a === void 0 ? void 0 : _a.track_id) === ((_b = activity.context) === null || _b === void 0 ? void 0 : _b.track_id));
288
- });
289
- if ((trackElement === null || trackElement === void 0 ? void 0 : trackElement.id) !== undefined) {
290
- relevantTrackIds.add(trackElement.id);
291
- }
292
- }
293
- });
279
+ relevantTrackIds.add(trackId);
294
280
  // Filter activities by track and date
295
281
  const trackActivities = activitiesQuery.pathwayActivities.activities
296
282
  .filter(activity => {
297
- var _a, _b;
298
- // An activity belongs to a track if either:
299
- // 1. Its track.id matches any of the relevant track IDs, or
300
- // 2. Its context.track_id matches any of the relevant track IDs
301
- const isInTrack = (((_a = activity.track) === null || _a === void 0 ? void 0 : _a.id) !== undefined && relevantTrackIds.has(activity.track.id)) ||
302
- (((_b = activity.context) === null || _b === void 0 ? void 0 : _b.track_id) !== undefined && relevantTrackIds.has(activity.context.track_id));
283
+ var _a;
284
+ const isInTrack = ((_a = activity.context) === null || _a === void 0 ? void 0 : _a.track_id) === trackId;
303
285
  const isBeforeOrEqualDate = currentActivityDate.length === 0 || activity.date <= currentActivityDate;
304
286
  return isInTrack && isBeforeOrEqualDate;
305
287
  })
@@ -327,11 +309,9 @@ const getTrackData = async ({ awellSdk, pathwayId, trackId, currentActivityId, }
327
309
  // 6. Enhance activities with data points
328
310
  const activitiesWithDataPoints = trackActivities.map(activity => {
329
311
  var _a;
330
- // Find data points for this activity
331
312
  const activityDataPoints = dataPointsQuery.pathwayDataPoints.dataPoints
332
313
  .filter(dp => dp.activity_id === activity.id)
333
314
  .map(dp => {
334
- // Special handling for activation data points
335
315
  if (dp.data_point_definition_id.endsWith('-ACTIVATION')) {
336
316
  return {
337
317
  ...dp,
@@ -341,7 +321,6 @@ const getTrackData = async ({ awellSdk, pathwayId, trackId, currentActivityId, }
341
321
  }
342
322
  return dp;
343
323
  });
344
- // Map form responses to data points if they exist
345
324
  const questions = (_a = activity.form) === null || _a === void 0 ? void 0 : _a.questions;
346
325
  if (questions !== undefined && questions !== null) {
347
326
  const formResponses = questions.map(question => {
@@ -370,11 +349,9 @@ const getTrackData = async ({ awellSdk, pathwayId, trackId, currentActivityId, }
370
349
  // 8. Get steps from the elements query and filter by track ID and type STEP
371
350
  const steps = elementsQuery.pathwayElements.elements
372
351
  .filter(element => {
373
- const parentId = element.parent_id;
374
- // A step belongs to a track if:
375
- // 1. Its parent_id matches one of our relevant track IDs
376
- const isInTrack = parentId !== undefined && relevantTrackIds.has(parentId);
377
- // Only include STEP elements
352
+ var _a;
353
+ const elementTrackId = (_a = element.context) === null || _a === void 0 ? void 0 : _a.track_id;
354
+ const isInTrack = elementTrackId === trackId;
378
355
  const isStep = element.type === 'STEP';
379
356
  return isInTrack && isStep;
380
357
  })
@@ -401,7 +378,6 @@ const getTrackData = async ({ awellSdk, pathwayId, trackId, currentActivityId, }
401
378
  });
402
379
  // 9. Associate activities with steps
403
380
  const stepsWithActivities = steps.map(step => {
404
- // Find all activities that belong to this step
405
381
  const stepActivities = activitiesWithDataPoints.filter(activity => { var _a; return ((_a = activity.context) === null || _a === void 0 ? void 0 : _a.step_id) === step.id; });
406
382
  return {
407
383
  ...step,
@@ -409,13 +385,15 @@ const getTrackData = async ({ awellSdk, pathwayId, trackId, currentActivityId, }
409
385
  };
410
386
  });
411
387
  // 10. Process the track data
412
- const track = pathwayQuery.pathway.pathway.tracks.find((t) => t.id === trackId);
413
- // If track is not found, use default values with just the ID
414
- const finalTrack = track !== undefined ? {
415
- id: track.id,
416
- title: track.title,
417
- } : {
388
+ // First try to get track title from activities
389
+ const trackFromActivities = (_b = trackActivities.find(activity => { var _a; return ((_a = activity.track) === null || _a === void 0 ? void 0 : _a.id) === trackId; })) === null || _b === void 0 ? void 0 : _b.track;
390
+ // If not found in activities, try to get from elements
391
+ const trackElement = elementsQuery.pathwayElements.elements.find(element => { var _a; return element.type === 'TRACK' && ((_a = element.context) === null || _a === void 0 ? void 0 : _a.track_id) === trackId; });
392
+ // Finally check pathway tracks
393
+ const trackFromPathway = pathwayQuery.pathway.pathway.tracks.find((t) => t.id === trackId);
394
+ const finalTrack = {
418
395
  id: trackId,
396
+ title: (_e = (_d = (_c = trackFromActivities === null || trackFromActivities === void 0 ? void 0 : trackFromActivities.title) !== null && _c !== void 0 ? _c : trackElement === null || trackElement === void 0 ? void 0 : trackElement.name) !== null && _d !== void 0 ? _d : trackFromPathway === null || trackFromPathway === void 0 ? void 0 : trackFromPathway.title) !== null && _e !== void 0 ? _e : 'Untitled Track'
419
397
  };
420
398
  const rawTrackData = {
421
399
  track: finalTrack,
@@ -423,7 +401,8 @@ const getTrackData = async ({ awellSdk, pathwayId, trackId, currentActivityId, }
423
401
  steps: stepsWithActivities,
424
402
  };
425
403
  // Clean the data for LLM consumption and return only cleaned data
426
- return await cleanDataForLLM(rawTrackData, awellSdk, pathwayId);
404
+ const cleanedData = await cleanDataForLLM(rawTrackData, awellSdk, pathwayId);
405
+ return cleanedData;
427
406
  };
428
407
  exports.getTrackData = getTrackData;
429
408
  //# sourceMappingURL=getTrackData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTrackData.js","sourceRoot":"","sources":["../../../../../extensions/shelly/lib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O,CAAC,CAAC;IAE3F,MAAM,UAAU,GAAG;QACjB,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,MAAA,MAAA,MAAA,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,CAAE,KAAK,mCAAI,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,IAAI,mCAAI,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,KAAK,mCAAI,gBAAgB;KACvG,CAAC;IAEF,MAAM,YAAY,GAAG;QACnB,KAAK,EAAE,UAAU;QACjB,UAAU,EAAE,wBAAwB;QACpC,KAAK,EAAE,mBAAmB;KAC3B,CAAA;IAED,kEAAkE;IAClE,MAAM,WAAW,GAAG,MAAM,eAAe,CAAC,YAAY,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;IAC7E,OAAO,WAAW,CAAC;AACrB,CAAC,CAAA;AAjRY,QAAA,YAAY,gBAiRxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/awell-extensions",
3
- "version": "2.0.206",
3
+ "version": "2.0.208",
4
4
  "packageManager": "yarn@4.5.3",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": {
@@ -44,6 +44,7 @@
44
44
  "@types/crypto-js": "^4.2.2",
45
45
  "@types/docusign-esign": "^5.19.0",
46
46
  "@types/express": "^4.17.19",
47
+ "@types/faker": "^6",
47
48
  "@types/jest": "^29.5.14",
48
49
  "@types/jsdom": "^21.1.7",
49
50
  "@types/jsonpath": "^0.2.4",
@@ -67,6 +68,7 @@
67
68
  "eslint-plugin-import": "^2.28.1",
68
69
  "eslint-plugin-n": "^15.6.1",
69
70
  "eslint-plugin-promise": "^6.1.1",
71
+ "faker": "^6.6.6",
70
72
  "husky": "^9.1.7",
71
73
  "jest": "29.7.0",
72
74
  "jest-fetch-mock": "^3.0.3",
@@ -1,41 +0,0 @@
1
- export declare const appointmentsMock: {
2
- id: number;
3
- scheduled_date: string;
4
- duration: number;
5
- billing_details: null;
6
- payment: null;
7
- time_slot_type: string;
8
- time_slot_status: null;
9
- reason: string;
10
- mode: string;
11
- description: string;
12
- status: {
13
- status: string;
14
- room: null;
15
- status_date: string;
16
- status_detail: null;
17
- };
18
- patient: number;
19
- patient_forms: {
20
- patient_can_receive_forms: boolean;
21
- anonymous_url: string;
22
- overrides: never[];
23
- short_code: null;
24
- statuses: {
25
- id: number;
26
- name: string;
27
- status: string;
28
- }[];
29
- hours_prior: number;
30
- };
31
- physician: number;
32
- practice: number;
33
- instructions: string;
34
- recurring_event_schedule: null;
35
- metadata: null;
36
- created_date: string;
37
- last_modified_date: string;
38
- deleted_date: null;
39
- service_location: null;
40
- telehealth_details: string;
41
- }[];
@@ -1,93 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.appointmentsMock = void 0;
4
- const date_fns_1 = require("date-fns");
5
- exports.appointmentsMock = [
6
- {
7
- id: 123,
8
- scheduled_date: (0, date_fns_1.addHours)(new Date(), 12).toISOString(),
9
- duration: 60,
10
- billing_details: null,
11
- payment: null,
12
- time_slot_type: 'appointment',
13
- time_slot_status: null,
14
- reason: 'PCP: Est. Patient Office',
15
- mode: 'VIDEO',
16
- description: '',
17
- status: {
18
- status: 'Scheduled',
19
- room: null,
20
- status_date: '2023-07-12T20:44:22Z',
21
- status_detail: null,
22
- },
23
- patient: 12345,
24
- patient_forms: {
25
- patient_can_receive_forms: true,
26
- anonymous_url: 'https://sandbox.elationemr.com/appointments/141701667029082/patient-forms/?key=642301d3930ac1e4d052ff65c093c5f1da1697e6b861a18f43a042b5afca50a1',
27
- overrides: [],
28
- short_code: null,
29
- statuses: [
30
- {
31
- id: 316,
32
- name: 'COVID-19 Screening Form',
33
- status: 'incomplete',
34
- },
35
- ],
36
- hours_prior: 0,
37
- },
38
- physician: 141114870071298,
39
- practice: 141114865745924,
40
- instructions: '',
41
- recurring_event_schedule: null,
42
- metadata: null,
43
- created_date: '2023-07-12T20:44:22Z',
44
- last_modified_date: '2023-07-12T20:44:22Z',
45
- deleted_date: null,
46
- service_location: null,
47
- telehealth_details: '',
48
- },
49
- {
50
- id: 456,
51
- scheduled_date: (0, date_fns_1.addHours)(new Date(), 25).toISOString(),
52
- duration: 60,
53
- billing_details: null,
54
- payment: null,
55
- time_slot_type: 'appointment',
56
- time_slot_status: null,
57
- reason: 'PCP: Est. Patient Office',
58
- mode: 'VIDEO',
59
- description: '',
60
- status: {
61
- status: 'Scheduled',
62
- room: null,
63
- status_date: '2023-07-12T20:44:22Z',
64
- status_detail: null,
65
- },
66
- patient: 12345,
67
- patient_forms: {
68
- patient_can_receive_forms: true,
69
- anonymous_url: 'https://sandbox.elationemr.com/appointments/141701667029082/patient-forms/?key=642301d3930ac1e4d052ff65c093c5f1da1697e6b861a18f43a042b5afca50a1',
70
- overrides: [],
71
- short_code: null,
72
- statuses: [
73
- {
74
- id: 316,
75
- name: 'COVID-19 Screening Form',
76
- status: 'incomplete',
77
- },
78
- ],
79
- hours_prior: 0,
80
- },
81
- physician: 141114870071298,
82
- practice: 141114865745924,
83
- instructions: '',
84
- recurring_event_schedule: null,
85
- metadata: null,
86
- created_date: '2023-07-12T20:44:22Z',
87
- last_modified_date: '2023-07-12T20:44:22Z',
88
- deleted_date: null,
89
- service_location: null,
90
- telehealth_details: '',
91
- },
92
- ];
93
- //# sourceMappingURL=GetAppointments.mock.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GetAppointments.mock.js","sourceRoot":"","sources":["../../../../../../extensions/elation/actions/findAppointmentsWithAI/__testdata__/GetAppointments.mock.ts"],"names":[],"mappings":";;;AAAA,uCAAmC;AAEtB,QAAA,gBAAgB,GAAG;IAC9B;QACE,EAAE,EAAE,GAAG;QACP,cAAc,EAAE,IAAA,mBAAQ,EAAC,IAAI,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE;QACtD,QAAQ,EAAE,EAAE;QACZ,eAAe,EAAE,IAAI;QACrB,OAAO,EAAE,IAAI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OAAO,EAAE,KAAK;QACd,aAAa,EAAE;YACb,yBAAyB,EAAE,IAAI;YAC/B,aAAa,EACX,iJAAiJ;YACnJ,SAAS,EAAE,EAAE;YACb,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE;gBACR;oBACE,EAAE,EAAE,GAAG;oBACP,IAAI,EAAE,yBAAyB;oBAC/B,MAAM,EAAE,YAAY;iBACrB;aACF;YACD,WAAW,EAAE,CAAC;SACf;QACD,SAAS,EAAE,eAAe;QAC1B,QAAQ,EAAE,eAAe;QACzB,YAAY,EAAE,EAAE;QAChB,wBAAwB,EAAE,IAAI;QAC9B,QAAQ,EAAE,IAAI;QACd,YAAY,EAAE,sBAAsB;QACpC,kBAAkB,EAAE,sBAAsB;QAC1C,YAAY,EAAE,IAAI;QAClB,gBAAgB,EAAE,IAAI;QACtB,kBAAkB,EAAE,EAAE;KACvB;CACF,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAppoitnmentCountByStatus.js","sourceRoot":"","sources":["../../../../../extensions/elation/actions/findAppointmentsWithAI/getAppoitnmentCountByStatus.ts"],"names":[],"mappings":";;;AAGA,sEAA6D;AAEtD,MAAM,4BAA4B,GAAG,CACxC,YAAmC,EACX,EAAE;IAC1B,OAAO,MAAM,CAAC,MAAM,CAAC,4BAAU,CAAC,MAAM,CAAC,CAAC,MAAM,CAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;QACrF,MAAM,GAAG,GAAG,YAAY,CAAC,MAAM,CAC7B,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,MAAM,CAAC,MAAM,MAAK,MAAM,CACvD,CAAC,MAAM,CAAA;QACR,IAAI,GAAG,GAAG,CAAC,EAAE,CAAC;YACZ,GAAG,CAAC,MAAM,CAAC,GAAG,GAAG,CAAA;QACnB,CAAC;QACD,OAAO,GAAG,CAAA;IACZ,CAAC,EAAE,EAAE,CAAC,CAAA;AACR,CAAC,CAAA;AAZU,QAAA,4BAA4B,gCAYtC"}