n8n-nodes-1health
v1.1.0
Published
n8n node for 1Health API integration - manage patients and healthcare data
Maintainers
Readme
n8n-nodes-1health
n8n community node for 1Health API integration - manage patients and healthcare data.
Publishing the Node to npm
Follow these steps to publish the custom node to npm and make it available for installation in n8n.
Prerequisites
- Node.js and npm installed
- An npm account (create one at npmjs.com if you don't have one)
- Access to the n8n-nodes-1health repository
Step 1: Login to npm
- Open your terminal or command prompt
- Navigate to the project directory:
cd n8n-nodes-1health - Login to npm using your npm account credentials:
npm login - Enter your npm username, password, and email when prompted
- If you have two-factor authentication enabled, enter the OTP code
- You should see a success message:
Logged in as <your-username> on https://registry.npmjs.org/
Step 2: Publish to npm
- Ensure you're in the project root directory
- Build the project (this is automatically run before publish due to
prepublishOnlyscript):npm run build - Publish the package to npm:
npm publish - If successful, you'll see a message indicating the package has been published
- Verify the publication by visiting:
https://www.npmjs.com/package/n8n-nodes-1health
Note: The prepublishOnly script in package.json automatically runs the build process before publishing, so the TypeScript code is compiled to JavaScript in the dist folder.
Step 3: Install the Node in n8n
After publishing to npm, you can install the custom node in your n8n instance.
- Open your n8n application (either self-hosted or n8n cloud)
- Log in to your n8n account
- Navigate to Settings (usually found in the top-right menu or sidebar)
- Click on Community Nodes (or Community depending on your n8n version)
- In the Install Community Node section, enter the package name:
n8n-nodes-1health - Click Install or Add button
- Wait for the installation to complete (n8n will download and install the package from npm)
- You may need to refresh the page or restart n8n for the changes to take effect
Step 4: Verify Installation
- After installation, go back to the main n8n workflow editor
- Click on the + button to add a new node (or use the node palette)
- Look for 1Health in the left sidebar under the nodes list
- You should see the 1Health node available for use
- You can now drag and drop the node into your workflow
Using the Node
Setting Up Credentials
Before using the 1Health node, you need to configure your API credentials:
- Add a 1Health node to your workflow
- Click on the node to open its settings
- Click on Credentials dropdown
- Select Create New Credential or use existing credentials
- Enter your:
- Base URL: Your 1Health API base URL
- API Key: Your 1Health API key
- Click Save to store the credentials
Available Operations
The 1Health node supports the following operations:
Patient Operations
- Find Patient Full Text: Search patients by firstName, lastName, or birthDate
- Find or Create Person: Find or create a person (requires firstName, lastName, and birthDate)
Organization Operations
- Find Organization: Search for organizations
- Find Organization GraphQL: Search organizations using GraphQL
Development
Building the Project
npm run buildThis compiles TypeScript to JavaScript and copies necessary files to the dist folder.
Watching for Changes
npm run build:watchThis will automatically rebuild when you make changes to the source files.
Local Development
npm run devThis builds the project and starts n8n with your custom node loaded.
Version Management
When updating the package:
- Update the version in
package.json(following semantic versioning) - Build the project:
npm run build - Publish:
npm publish
Troubleshooting
Node Not Appearing in n8n
- Ensure the package was published successfully to npm
- Check that you installed the correct package name:
n8n-nodes-1health - Try refreshing the n8n page or restarting the n8n service
- Check n8n logs for any installation errors
Build Errors
- Ensure all dependencies are installed:
npm install - Check that TypeScript is properly configured in
tsconfig.json - Verify all required files are present in the
distfolder after building
Publishing Errors
- Verify you're logged in:
npm whoami - Check that the package name is available and you have publish rights
- Ensure the version number is incremented from the previous publish
- Check npm registry:
npm config get registry(should be https://registry.npmjs.org/)
Support
For issues, questions, or contributions, please visit:
- GitHub Repository: https://github.com/1health-io/n8n-nodes-1health
- 1Health Documentation: https://docs.1health.io/
License
MIT
