@awell-health/awell-extensions 2.0.220 → 2.0.221

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.
@@ -55,10 +55,10 @@ exports.summarizeForm = {
55
55
  // Create disclaimer message based on version availability
56
56
  let disclaimerMessage = '';
57
57
  if (!(0, lodash_1.isNil)(careFlowDetails.version)) {
58
- disclaimerMessage = `Important Notice: The content provided is an AI-generated summary of form responses of version ${careFlowDetails.version} of Care Flow "${careFlowDetails.title}" (ID: ${careFlowDetails.id}).`;
58
+ disclaimerMessage = `**Important Notice:** The content provided is an AI-generated summary of form responses of version ${careFlowDetails.version} of Care Flow "${careFlowDetails.title}" (ID: ${payload.pathway.id}).`;
59
59
  }
60
60
  else {
61
- disclaimerMessage = `Important Notice: The content provided is an AI-generated summary of form responses of Care Flow "${careFlowDetails.title}" (ID: ${careFlowDetails.id}).`;
61
+ disclaimerMessage = `**Important Notice:** The content provided is an AI-generated summary of form responses of Care Flow "${careFlowDetails.title}" (ID: ${payload.pathway.id}).`;
62
62
  }
63
63
  // 4. Generate summary
64
64
  const summary = await (0, summarizeFormWithLLM_1.summarizeFormWithLLM)({
@@ -1 +1 @@
1
- {"version":3,"file":"summarizeForm.js","sourceRoot":"","sources":["../../../../../extensions/shelly/actions/summarizeForm/summarizeForm.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AACrE,yEAAqE;AACrE,wFAAoF;AACpF,wEAAwE;AACxE,qCAAqE;AACrE,uEAAmE;AACnE,qDAAsE;AACtE,iDAAsD;AACtD,qEAAiE;AACjE,mCAA8B;AAE9B;;;;;;;;GAQG;AACU,QAAA,aAAa,GAItB;IACF,GAAG,EAAE,eAAe;IACpB,QAAQ,EAAE,0BAAQ,CAAC,QAAQ;IAC3B,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,0DAA0D;IACvE,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,KAAK;IAClB,UAAU,EAAV,mBAAU;IAEV,OAA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CAAC;QACvN,CAAC;aAAM,CAAC;YACN,iBAAiB,GAAG,qGAAqG,eAAe,CAAC,KAAK,UAAU,eAAe,CAAC,EAAE,IAAI,CAAC;QACjL,CAAC;QAED,sBAAsB;QACtB,MAAM,OAAO,GAAG,MAAM,IAAA,2CAAoB,EAAC;YACzC,KAAK;YACL,QAAQ;YACR,aAAa;YACb,QAAQ;YACR,iBAAiB;YACjB,sBAAsB;YACtB,QAAQ;YACR,SAAS;SACV,CAAC,CAAA;QAEF,+BAA+B;QAC/B,MAAM,WAAW,GAAG,MAAM,IAAA,sBAAc,EAAC,OAAO,CAAC,CAAA;QACjD,MAAM,UAAU,CAAC;YACf,WAAW,EAAE;gBACX,OAAO,EAAE,WAAW;aACrB;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"summarizeForm.js","sourceRoot":"","sources":["../../../../../extensions/shelly/actions/summarizeForm/summarizeForm.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AACrE,yEAAqE;AACrE,wFAAoF;AACpF,wEAAwE;AACxE,qCAAqE;AACrE,uEAAmE;AACnE,qDAAsE;AACtE,iDAAsD;AACtD,qEAAiE;AACjE,mCAA8B;AAE9B;;;;;;;;GAQG;AACU,QAAA,aAAa,GAItB;IACF,GAAG,EAAE,eAAe;IACpB,QAAQ,EAAE,0BAAQ,CAAC,QAAQ;IAC3B,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,0DAA0D;IACvE,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;QAC1E,2BAA2B;QAC3B,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,sBAAsB,EAAE,GAAG,+BAAsB,CAAC,KAAK,CACtF,OAAO,CAAC,MAAM,CACf,CAAA;QAED,2CAA2C;QAC3C,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Aa;YACb,QAAQ;YACR,iBAAiB;YACjB,sBAAsB;YACtB,QAAQ;YACR,SAAS;SACV,CAAC,CAAA;QAEF,+BAA+B;QAC/B,MAAM,WAAW,GAAG,MAAM,IAAA,sBAAc,EAAC,OAAO,CAAC,CAAA;QACjD,MAAM,UAAU,CAAC;YACf,WAAW,EAAE;gBACX,OAAO,EAAE,WAAW;aACrB;SACF,CAAC,CAAA;IACJ,CAAC;CACF,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 outcomes and decision paths for healthcare professionals. Your summary must use **clear, concise, and clinically appropriate** language—avoiding any internal or Awell-specific terminology.\n\n----------\n# Context\nIn healthcare systems, a care flow represents a patient's journey through a clinical process. In the Awell platform, this is structured into four levels:\n- **Care Flow:** The overall clinical pathway.\n- **Track:** A phase of the care process that can occur sequentially (e.g., Diagnosis > Treatment > Follow-up) or in parallel (e.g., daily metrics alongside monthly appointments).\n- **Step:** A container that holds all events (actions) occurring at a given moment for a specific patient group.\n- **Action/Activity:** Individual events within a step, such as forms, messages, or automated system events (e.g., calculations, API calls). \n *Note:* When an action like a **message or form** is assigned to a stakeholder, interpret it as **\"presented\"** in standard language. Avoid using \"sent,\" as it implies asynchronous communication.\n\n### **Important:**\nAlthough the input data uses Awell-specific terms (e.g., care flow, track, step, action, activity), **your summary must not use these exact terms**. Instead, use alternative language such as:\n- **Care process**, **phase**, **procedure**, **event**, **step in the process**, or similar.\n- You **may** use \"forms\" and \"messages\" and mention their content, as clinical care teams are familiar with those.\n\n----------\n# Task\nAnalyze the provided structured data and generate a **clear, concise** summary that includes:\n1. **The final outcome** of the care process. \n - **Only describe what has been done — do not include planned or future steps.** \n2. **The decision path and reasoning** that led to this outcome.\n3. **Key events and decision points** that influenced the outcome.\n\n----------\n# Input Data Structure\nYou will receive structured data containing information about a track:\n- **Care Process Information:** Title, status, start/end dates of steps.\n- **Events:** Activities within each segment, including:\n * **Timestamps** (when events occurred)\n * **Actors** (who performed the events—patients, clinicians, etc.)\n * **Event types** (e.g., forms, messages, system events)\n * **Form responses** (questions and answers)\n * **Data points** (clinical measurements, observations, or responses)\n\n### **Additional Guidance:**\n- **Discarded Steps & Activities:** \n - **Steps marked as \"discarded\" were not executed** but should be used for reasoning about what did or did not happen. \n - **Never mention discarded steps in the final summary unless explicitly instructed.** \n - Avoid mentioning things like: \n **Incorrect:** \"The alternative treatment proposal (ATP) was not pursued, as indicated by the discarded 'Hernia Post-Op NOT Supported' phase.\"\n - This is **critical**—your summary must only focus on what actually happened.\n\n- **Handling Documentation or Finalization Steps:** \n - If a step involves **documentation, record submission, or finalization**, it must be **consistently included** as part of the summary. \n - If the next step **is not explicitly documented as completed in the input data**, **it must not be mentioned at all**. \n\n- **Data Integrity:** \n - Base your analysis **solely** on the provided data. \n - Absolutely refrain from inventing details or making clinical assumptions beyond what is explicitly given. \n\n----------\n# Instructions for Analysis:\n1. **Carefully review** all provided information to understand the context.\n2. **Analyze the events in chronological order** to trace the decision-making process.\n3. **Identify key decision points and their outcomes.**\n4. **Determine the final outcome** (e.g., approved treatment, alternative pathway, pre-certification).\n5. **Extract logical reasoning strictly supported by the data.**\n6. **Ensure the outcome and supporting details are perfectly aligned.**\n7. **Organize your findings** into a coherent narrative that flows like a concise story.\n\n----------\n# Output Guidelines\nStructure your summary as follows:\n\n## **Outcome**\n- Start with a **clear, precise** statement of the final outcome. \n- **Only describe completed actions**—do not include planned future steps or what happens next. \n - **Correct:** \n ```\n ## Outcome:\n The alternate treatment plan (ATP) was not accepted.\n ```\n - **Incorrect:** \n ```\n ## Outcome:\n The alternate treatment plan (ATP) was not accepted, and the case was directed toward pre-certification.\n ```\n- **Avoid mentioning the patient unless explicitly necessary.** Instead, focus on what occurred: \n - **Incorrect:** The patient's initial surgical evaluation for hernia was supported. \n - **Correct:** The initial surgical evaluation for hernia was supported. \n\n## **Details Supporting the Outcome:** \n- Provide a **brief paragraph** or a **list of 3–5 bullet points** that explicitly outline the key evidence and logical steps leading to the outcome. \n- **The supporting details must be unambiguous, leaving no room for misinterpretation.** \n- Any reader should **immediately understand** how the outcome was reached.\n- Use **proper markdown formatting** with clear section headers.\n- Maintain **brevity and clarity**—clinical professionals prefer concise summaries that are easy to read.\n\n----------\n# Important Constraints\n- **Language:** \n - Use **clinical terminology** suitable for healthcare professionals. \n - **Avoid Awell-specific terms** (e.g., \"track,\" \"step,\" \"action\"). Instead, use: \n - **Care process, phase, procedure, or event.**\n- **Focus:** \n - Only include **events that actually occurred** (activated, done, completed, etc.). \n - **Never include discarded steps (paths not taken) unless explicitly specified in the instructions.**\n- **Accuracy:** \n - Ensure your summary **strictly reflects the provided data**. \n - Absolutely refrain from making assumptions or clinical conclusions that are not directly supported by the input. \n- **Phrasing Rules:** \n - **Messages and forms should be described as \"presented\" rather than \"sent\"** to avoid implying asynchronous communication. \n - Instead of **\"determined\"** or **\"confirmed,\"** use **\"indicated\"** when describing assessments or findings.\n - ✅ **Correct:** \"During the initial hernia triage, it was indicated that the hernia was reducible...\"\n - ❌ **Incorrect:** \"During the initial hernia triage, it was determined that the hernia was reducible...\" \n\n----------\n# Example Output Format\n## **Outcome:**\nThe alternate treatment plan (ATP) was not accepted.\n\n## **Details Supporting the Outcome:**\n- During the initial hernia triage, it was indicated that the hernia was reducible and did not affect the patient's activities of daily living (ADLs).\n- A physician was presented with a form to accept an Alternate Treatment Plan (ATP).\n- The physician declined the ATP, as indicated by the form response.\n- The process concluded with the rejection of the ATP.\n\n----------\nInstructions:\n{instructions}\n\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 outcomes and decision paths for healthcare professionals. Your summary must use **clear, concise, and clinically appropriate** language—avoiding any internal or Awell-specific terminology.\n\n----------\n# Context\nIn healthcare systems, a care flow represents a patient's journey through a clinical process. In the Awell platform, this is structured into four levels:\n- **Care Flow:** The overall clinical pathway.\n- **Track:** A phase of the care process that can occur sequentially (e.g., Diagnosis > Treatment > Follow-up) or in parallel (e.g., daily metrics alongside monthly appointments).\n- **Step:** A container that holds all events (actions) occurring at a given moment for a specific patient group.\n- **Action/Activity:** Individual events within a step, such as forms, messages, or automated system events (e.g., calculations, API calls). \n *Note:* When an action like a **message or form** is assigned to a stakeholder, interpret it as **\"presented\"** in standard language. Avoid using \"sent,\" as it implies asynchronous communication.\n\n### **Important:**\nAlthough the input data uses Awell-specific terms (e.g., care flow, track, step, action, activity), **your summary must not use these exact terms**. Instead, use alternative language such as:\n- **Care process**, **phase**, **procedure**, **event**, **step in the process**, or similar.\n- You **may** use \"forms\" and \"messages\" and mention their content, as clinical care teams are familiar with those.\n\n----------\n# Task\nAnalyze the provided structured data and generate a **clear, concise** summary that includes:\n1. **The final outcome** of the care process. \n - **Only describe what has been done — do not include planned or future steps.** \n2. **The decision path and reasoning** that led to this outcome.\n3. **Key events and decision points** that influenced the outcome.\n\n----------\n# Input Data Structure\nYou will receive structured data containing information about a track:\n- **Care Process Information:** Title, status, start/end dates of steps.\n- **Events:** Activities within each segment, including:\n * **Timestamps** (when events occurred)\n * **Actors** (who performed the events—patients, clinicians, etc.)\n * **Event types** (e.g., forms, messages, system events)\n * **Form responses** (questions and answers)\n * **Data points** (clinical measurements, observations, or responses)\n\n### **Additional Guidance:**\n- **Discarded Steps & Activities:** \n - **Steps marked as \"discarded\" were not executed** but should be used for reasoning about what did or did not happen. \n - **Never mention discarded steps in the final summary unless explicitly instructed.** \n - Avoid mentioning things like: \n **Incorrect:** \"The alternative treatment proposal (ATP) was not pursued, as indicated by the discarded 'Hernia Post-Op NOT Supported' phase.\"\n - This is **critical**—your summary must only focus on what actually happened.\n\n- **Handling Documentation or Finalization Steps:** \n - If a step involves **documentation, record submission, or finalization**, it must be **consistently included** as part of the summary. \n - If the next step **is not explicitly documented as completed in the input data**, **it must not be mentioned at all**. \n\n- **Data Integrity:** \n - Base your analysis **solely** on the provided data. \n - Absolutely refrain from inventing details or making clinical assumptions beyond what is explicitly given. \n\n----------\n# Instructions for Analysis:\n1. **Carefully review** all provided information to understand the context.\n2. **Analyze the events in chronological order** to trace the decision-making process.\n3. **Identify key decision points and their outcomes.**\n4. **Determine the final outcome** (e.g., approved treatment, alternative pathway, pre-certification).\n5. **Extract logical reasoning strictly supported by the data.**\n6. **Ensure the outcome and supporting details are perfectly aligned.**\n7. **Organize your findings** into a coherent narrative that flows like a concise story.\n\n----------\n# Output Guidelines\nStructure your summary as follows:\n\n## **Outcome**\n- Start with a **clear, precise** statement of the final outcome. \n- **Only describe completed actions**—do not include planned future steps or what happens next. \n - **Correct:** \n ```\n **Outcome:**\n The alternate treatment plan (ATP) was not accepted.\n ```\n - **Incorrect:** \n ```\n **Outcome:**\n The alternate treatment plan (ATP) was not accepted, and the case was directed toward pre-certification.\n ```\n- **Avoid mentioning the patient unless explicitly necessary.** Instead, focus on what occurred: \n - **Incorrect:** The patient's initial surgical evaluation for hernia was supported. \n - **Correct:** The initial surgical evaluation for hernia was supported. \n\n## **Details Supporting the Outcome:** \n- Provide a **brief paragraph** or a **list of 3–5 bullet points** that explicitly outline the key evidence and logical steps leading to the outcome. \n- **The supporting details must be unambiguous, leaving no room for misinterpretation.** \n- Any reader should **immediately understand** how the outcome was reached.\n- Use **proper markdown formatting** with clear section headers.\n- Maintain **brevity and clarity**—clinical professionals prefer concise summaries that are easy to read.\n\n----------\n# Important Constraints\n- **Language:** \n - Use **clinical terminology** suitable for healthcare professionals. \n - **Avoid Awell-specific terms** (e.g., \"track,\" \"step,\" \"action\"). Instead, use: \n - **Care process, phase, procedure, or event.**\n- **Focus:** \n - Only include **events that actually occurred** (activated, done, completed, etc.). \n - **Never include discarded steps (paths not taken) unless explicitly specified in the instructions.**\n- **Accuracy:** \n - Ensure your summary **strictly reflects the provided data**. \n - Absolutely refrain from making assumptions or clinical conclusions that are not directly supported by the input. \n- **Phrasing Rules:** \n - **Messages and forms should be described as \"presented\" rather than \"sent\"** to avoid implying asynchronous communication. \n - Instead of **\"determined\"** or **\"confirmed,\"** use **\"indicated\"** when describing assessments or findings.\n - ✅ **Correct:** \"During the initial hernia triage, it was indicated that the hernia was reducible...\"\n - ❌ **Incorrect:** \"During the initial hernia triage, it was determined that the hernia was reducible...\" \n\n----------\n# Example Output Format\n**Outcome:**\nThe alternate treatment plan (ATP) was not accepted.\n\n**Details Supporting the Outcome:**\n- During the initial hernia triage, it was indicated that the hernia was reducible and did not affect the patient's activities of daily living (ADLs).\n- A physician was presented with a form to accept an Alternate Treatment Plan (ATP).\n- The physician declined the ATP, as indicated by the form response.\n- The process concluded with the rejection of the ATP.\n\n----------\nInstructions:\n{instructions}\n\n----------\nTrack Data:\n{input}">, any>;
@@ -73,12 +73,12 @@ Structure your summary as follows:
73
73
  - **Only describe completed actions**—do not include planned future steps or what happens next.
74
74
  - **Correct:**
75
75
  \`\`\`
76
- ## Outcome:
76
+ **Outcome:**
77
77
  The alternate treatment plan (ATP) was not accepted.
78
78
  \`\`\`
79
79
  - **Incorrect:**
80
80
  \`\`\`
81
- ## Outcome:
81
+ **Outcome:**
82
82
  The alternate treatment plan (ATP) was not accepted, and the case was directed toward pre-certification.
83
83
  \`\`\`
84
84
  - **Avoid mentioning the patient unless explicitly necessary.** Instead, focus on what occurred:
@@ -112,10 +112,10 @@ Structure your summary as follows:
112
112
 
113
113
  ----------
114
114
  # Example Output Format
115
- ## **Outcome:**
115
+ **Outcome:**
116
116
  The alternate treatment plan (ATP) was not accepted.
117
117
 
118
- ## **Details Supporting the Outcome:**
118
+ **Details Supporting the Outcome:**
119
119
  - During the initial hernia triage, it was indicated that the hernia was reducible and did not affect the patient's activities of daily living (ADLs).
120
120
  - A physician was presented with a form to accept an Alternate Treatment Plan (ATP).
121
121
  - The physician declined the ATP, as indicated by the form response.
@@ -78,10 +78,10 @@ exports.summarizeTrackOutcome = {
78
78
  // Create version string if version is available
79
79
  let disclaimerMsg = '';
80
80
  if (!(0, lodash_1.isNil)(careFlowDetails.version)) {
81
- disclaimerMsg = `Important Notice: The content provided is an AI-generated summary of version ${careFlowDetails.version} of Care Flow "${careFlowDetails.title}" (ID: ${careFlowDetails.id}).`;
81
+ disclaimerMsg = `**Important Notice:** The content provided is an AI-generated summary of version ${careFlowDetails.version} of Care Flow "${careFlowDetails.title}" (ID: ${pathway.id}).`;
82
82
  }
83
83
  else {
84
- disclaimerMsg = `Important Notice: The content provided is an AI-generated summary of Care Flow "${careFlowDetails.title}" (ID: ${careFlowDetails.id}).`;
84
+ disclaimerMsg = `**Important Notice:** The content provided is an AI-generated summary of Care Flow "${careFlowDetails.title}" (ID: ${pathway.id}).`;
85
85
  }
86
86
  const htmlSummary = await (0, utils_1.markdownToHtml)(`${disclaimerMsg}\n\n${summary}`);
87
87
  await onComplete({
@@ -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,wDAA2D;AAC3D,qEAAiE;AACjE,mCAA8B;AAC9B,uEAA2E;AAE9D,QAAA,qBAAqB,GAI9B;IACF,GAAG,EAAE,uBAAuB;IAC5B,QAAQ,EAAE,0BAAQ,CAAC,QAAQ;IAC3B,KAAK,EAAE,yBAAyB;IAChC,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;;QAC1E,2BAA2B;QAC3B,MAAM,EAAE,YAAY,EAAE,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AC,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,uCAAuC;iBAC1K,CAAC;aACH;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,qEAAiE;AACjE,mCAA8B;AAC9B,uEAA2E;AAE9D,QAAA,qBAAqB,GAI9B;IACF,GAAG,EAAE,uBAAuB;IAC5B,QAAQ,EAAE,0BAAQ,CAAC,QAAQ;IAC3B,KAAK,EAAE,yBAAyB;IAChC,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;;QAC1E,2BAA2B;QAC3B,MAAM,EAAE,YAAY,EAAE,GAAG,+BAAsB,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;QACrE,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAA;QAE/B,2CAA2C;QAC3C,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,MAAM,IAAA,0BAAiB,EAAC;YAC7D,QAAQ,EAAE,EAAE,EAAE,qCAAqC;YACnD,OAAO;YACP,OAAO;YACP,SAAS,EAAE,yBAAa,CAAC,KAAK;YAC9B,kBAAkB,EAAE,KAAK,EAAE,wEAAwE;SACpG,CAAC,CAAA;QAEF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,QAAQ,EAAE,CAAA;QAEzC,wCAAwC;QACxC,MAAM,UAAU,GAAG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C3C,MAAM,eAAe,GAAG,MAAM,IAAA,uCAAkB,EAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,CAAC,CAAA;QAEtE,gDAAgD;QAChD,IAAI,aAAa,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,IAAA,cAAK,EAAC,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC;YACpC,aAAa,GAAG,oFAAoF,eAAe,CAAC,OAAO,kBAAkB,eAAe,CAAC,KAAK,UAAU,OAAO,CAAC,EAAE,IAAI,CAAC;QAC7L,CAAC;aAAM,CAAC;YACN,aAAa,GAAG,uFAAuF,eAAe,CAAC,KAAK,UAAU,OAAO,CAAC,EAAE,IAAI,CAAC;QACvJ,CAAC;QAED,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;YACD,MAAM,EAAE;gBACN,IAAA,iCAAmB,EAAC;oBAClB,OAAO,EAAE,8BAA8B,SAAS,CAAC,KAAK,CAAC,MAAM,cAAc,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,uCAAuC;iBAC1K,CAAC;aACH;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/awell-extensions",
3
- "version": "2.0.220",
3
+ "version": "2.0.221",
4
4
  "packageManager": "yarn@4.5.3",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": {