Overview
Report Parsing SDK on GitHub A Java Spring Boot SDK for processing medical documents through the Eka Care API. This SDK supports document submission, result polling, and FHIR data extraction.Prerequisites
- JDK 17+ (verify with
java -version) - Maven (verify with
mvn -version) - IDE: IntelliJ IDEA, Eclipse, or VS Code with Java extensions
- Eka Care API Credentials: Valid client ID and secret
Project Structure
Setup Instructions
Step 1: Create Spring Boot Project
Via Spring Initializr:- Visit start.spring.io
- Select Maven, Java 17, Spring Boot 3.2.0
- Add “Spring Web” dependency
- Generate and extract
Step 2: Add SDK Files
Copy files from the repository to respective directories:EkaCareSDK.java→src/main/java/com/example/ekacare/sdk/EkaCareService.java→src/main/java/com/example/ekacare/service/application.properties→src/main/resources/pom.xml→ project root
Step 3: Configure Credentials
Updateapplication.properties:
Step 4: Build
Quick Start
Direct SDK Usage
Spring Boot Service
REST API Endpoints
The SDK provides REST endpoints for document processing:| Method | Endpoint | Purpose |
|---|---|---|
| POST | /api/documents/process?task=smart | Async document submission |
| GET | /api/documents/{id}/result | Retrieve processing result |
| POST | /api/documents/process-sync?task=smart | Sync processing (waits for completion) |
Task Options
When processing documents, you can specify different task types:| Task | Description |
|---|---|
smart | Smart report parsing |
pii | PII (Personally Identifiable Information) detection |
both | Combined smart parsing and PII detection |
Example cURL Requests
Troubleshooting
| Issue | Solution |
|---|---|
| File Not Found | Use absolute paths or verify relative path correctness |
| Authorization (401) | Validate credentials in properties file |
| Maven Build Fails | Run mvn clean install -U |
| Port 8080 In Use | Change in application.properties: server.port=8081 |
Large File Upload
For large files, increase limits inapplication.properties:

