Hcposh
HCPosh is a Powershell module that provides some useful functions and tools when working with data in the Health Catalyst Analytics Platform. Key Features include 1) Split SAM Designer hcx files into smaller files for source control using it's built-in column-level SQL Parser, developed using the Microsoft.SqlServer.TransactSql.ScriptDom library. 2) Generate a React web application for documentation that contains ERD and Data Flow Diagrams for a professional look and presentation of a subject area mart 3) Integration of Graphviz software for ERD and Data flow diagram generation (pdf, png, and svg)
Install / Use
/learn @HealthCatalyst/HcposhREADME
HCPosh "documentation"
HCPosh is a Powershell module that provides some useful functions and tools when working with data in the Health Catalyst Analytics Platform.
Posh is short for "PowerShell", but is also an old sailor phrase of "Portside out, starboard home (P.O.S.H)"
KEY FEATURES:
- Split SAM Designer hcx files into smaller files for source control using it's built-in column-level SQL Parser, developed using the Microsoft.SqlServer.TransactSql.ScriptDom library.
- Generate a React web application for documentation that contains ERD and Data Flow Diagrams for a professional look and presentation of a subject area mart
- Integration of Graphviz software for ERD and Data flow diagram generation (pdf, png, and svg)
INSTALLATION
See HCPosh on PowerShell Gallery!
- HCPosh has been uploaded to PowerShell Gallery and can be installed by running the command
Install-Module HCPosh. - HCPosh requires you to change the execution policy from the default 'Restricted' to 'RemoteSigned':
- Go to the Start Menu, Type in PowerShell, Right-Click and 'Run as Administrator'.
- At the prompt, type in
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned- Type in
Afor [A] Yes to All
- Check the version of HCPosh with this powershell command
HCPosh -Version
GETTING DATA FROM SAMD HCX FILES FOR SOURCE CONTROL
- Using Powershell, navigate to the folder where your hcx file(s) live (example cd .\Desktop\Folder\ ) then run the following command:
HCPosh -Data - HCPosh will parse through the embedded json file and return a folder
_hcposhwith files that can be committed to source control with ease.
GENERATING DOCUMENTATION FROM SAMD HCX FILES
-
Using Powershell, navigate to the folder where your hcx file(s) live (example cd .\Desktop\Folder\ ) then run the following command:
HCPosh -Docs -
HCPosh will extract the data, parsing the sql and identify the data lineage of your data mart and generate a static React web application with an
index.htmlfile that can be viewed in some of the latest browsers (Chrome, Firefox, Edge ... note that IE Explorer 11 can view the file however some features may look off)
GENERATING DIAGRAM FILES (PDF, PNG, SVG)
- Using Powershell, navigate to the folder where your hcx file(s) live (example cd .\Desktop\Folder\ ) then run the following command:
HCPosh -Diagrams
USING THE SQL PARSER DIRECTLY
- Using Powershell, run the following command:
HCPosh -SqlParser -Query "SELECT MyColumn FROM MyDatabase.MySchema.MyTable" - This will directly use the sql parser to parse both tables and columns from a sql query.
Related Skills
feishu-drive
338.7k|
things-mac
338.7kManage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database)
clawhub
338.7kUse the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com
yu-ai-agent
1.9k编程导航 2025 年 AI 开发实战新项目,基于 Spring Boot 3 + Java 21 + Spring AI 构建 AI 恋爱大师应用和 ReAct 模式自主规划智能体YuManus,覆盖 AI 大模型接入、Spring AI 核心特性、Prompt 工程和优化、RAG 检索增强、向量数据库、Tool Calling 工具调用、MCP 模型上下文协议、AI Agent 开发(Manas Java 实现)、Cursor AI 工具等核心知识。用一套教程将程序员必知必会的 AI 技术一网打尽,帮你成为 AI 时代企业的香饽饽,给你的简历和求职大幅增加竞争力。
