This repository provides a reference implementation of the CMS 0057-F regulation, demonstrating the integration of Ballerina services with React applications. It serves as a practical example for developers aiming to understand and implement CMS0057F-compliant solutions using these technologies.
.
├── apps
| ├── demo-ehr-app
├── cds-service
│ ├── Ballerina.toml
│ ├── Config.toml
│ ├── Dependencies.toml
│ ├── Package.md
│ ├── decision_engine_connector.bal
│ ├── interceptor.bal
│ ├── service.bal
│ └── utils.bal
├── fhir-apis
│ ├── claim-service
│ │ ├── Ballerina.toml
│ │ ├── Dependencies.toml
│ │ ├── Package.md
│ │ ├── api_config.bal
│ │ ├── oas
│ │ │ └── Claim.yaml
│ │ ├── repository_connect.bal
│ │ ├── service.bal
│ │ └── utils.bal
│ ├── claim-submission-service
│ ├── coverage-service
│ ├── medication-request-service
│ ├── organization-service
│ ├── patient-service
│ ├── practitioner-service
│ ├── questionnaire-package-service
│ ├── questionnaire-response-service
│ └── questionnaire-service
- Ballerina: 2201.10.2
- Node.js: 20.11.1
-
Navigate to the Ballerina Project Directory:
cd reference-implementation-cms0057f/fhir-apis/<respective-service>
or
cd reference-implementation-cms0057f/cds-service
-
Run the Ballerina Service:
bal run
The service will start, typically listening on
http://localhost:9090
.
-
Navigate to the React Application Directory:
cd reference-implementation-cms0057f/apps/demo-ehr-app
-
Install Dependencies:
npm install
-
Start the React Application:
npm run dev
The application will launch in your default browser, usually accessible at
http://localhost:5173/
.
- Ensure that both the Ballerina service and the React application are running concurrently to allow seamless interaction between the frontend and backend.
- For detailed information on Ballerina code organization, refer to the official documentation: Ballerina Documentation
- For insights into structuring React projects, consider this guide: React Folder Structure
By following this setup, you can explore the integration of Ballerina services with a React frontend, providing a comprehensive understanding of building CMS0057F-compliant applications.