This project is a simple Node.js application that uses Amida Tech's excellenet Blue Button to parse Continuity of Care Documents (CCDs). It exposes an endpoint where you can POST a base64 encoded CCD (also known as CDA) and it will return the parsed CCD as JSON. This is not a fork of their project.
- Node.js 16+
- Docker (optional)
Clone the repository:
git clone https://github.com/pacmano1/bluebutton.git
cd <your-repository>
Install the dependencies:
npm install
Start the application:
node bluebutton_node_listener.js
The server will start on http://localhost:3000
POST a JSON payload to http://localhost:3000/bb
with the following structure:
{
"cda": "<base64-encoded CDA>"
}
The server will respond with the parsed CDA in JSON format:
{
"cda_json": "<parsed CDA>"
}
The project also contains a Dockerfile, so you can build and run the application using Docker:
docker build -t cda-parser .
docker run -p 3000:3000 cda-parser
The server will start on http://localhost:3000
This project is licensed under the terms of the MIT license.