A secure, FHIR-based, cloud-native healthcare platform for managing maternal health from pre-pregnancy through pregnancy and postpartum, and child health from birth up to five years.
Adhya is a cloud-native maternal and child healthcare platform designed around a longitudinal health record.
Instead of treating every clinic visit as an isolated medical interaction, Adhya connects a mother's healthcare journey with her pregnancy and subsequently connects the pregnancy with the child's health record.
ADHYA
β
Maternal & Child Health
β
ββββββββββββββ΄βββββββββββββ
β β
Mother Profile Child Profile
β β
Pre-Pregnancy Birth
β β
Pregnancy 0β5 Years
β β
Clinic Visits Vaccinations
Observations Growth Monitoring
Medication Clinic Visits
Appointments Observations
β Medication
β β
ββββββββββββββ¬βββββββββββββ
β
Longitudinal Record
β
Doctor Dashboard
The platform is designed around:
- Maternal healthcare
- Pregnancy tracking
- Mother-child relationships
- Child healthcare from birth to five years
- Clinic and appointment management
- Vaccination tracking
- Growth and weight monitoring
- Medication and collection-slot management
- Doctor-patient connectivity
- Clinical data management
- Event-driven health alerts
- FHIR interoperability
- Secure API management
- Post-quantum cryptography research
- Cloud-native Kubernetes deployment
- Controlled healthcare-data access for LLM-based services
The original project specification established the technical foundation around FHIR, WSO2 API Manager, Siddhi, Kubernetes, OpenChoreo, ML-KEM, ML-DSA, PostgreSQL, and observability. Adhya refines the healthcare domain around maternal and early-childhood care while preserving those technical research goals.
- π Execution & Run Guide β Step-by-step developer guide for running locally with Docker Compose, database management, and running quality checks.
- π©Ί Mother & Child Lifecycle Domain Specification β Comprehensive clinical domain model synthesized from Issues #4, #5, #8, #9, #10, #22, #25, #26, #27, #28, #29, #30, #31, and #32.
- ποΈ System Architecture β Overall system topology, FHIR mapping, and sequence diagrams.
- πΏ Git & Branching Workflow β Branch naming, commit conventions, and PR checklist.
Maternal and child healthcare requires information to remain available across multiple stages of a patient's healthcare journey.
A mother's information may span:
Pre-Pregnancy
β
Pregnancy
β
Antenatal Clinics
β
Delivery
β
Postpartum Care
β
Child Birth
β
Child 0β5 Years
Important information can therefore be distributed across:
- Patient registration
- OPD records
- Pregnancy records
- Clinic visits
- Clinical observations
- Medication
- Vaccinations
- Weight measurements
- Appointments
- Follow-ups
- Doctor notes
- Alerts
Adhya aims to provide a connected digital representation of this journey.
At the same time, the platform introduces modern distributed-system requirements:
- secure healthcare APIs
- authentication and authorization
- role-based access control
- event-driven processing
- scalable microservices
- healthcare interoperability
- auditability
- observability
- cloud-native deployment
- future-resistant cryptographic research
The technical research question is therefore:
How can a longitudinal maternal and child healthcare platform be implemented using FHIR, event-driven architecture, Kubernetes, and post-quantum cryptography while maintaining interoperability, security, scalability, and acceptable performance?
The main aim of Adhya is to design and implement a secure, cloud-native, FHIR-based maternal and child healthcare platform that maintains longitudinal health records from pre-pregnancy through pregnancy and postpartum, and from child birth through five years of age.
The platform will additionally investigate:
- event-driven healthcare monitoring
- API security
- post-quantum cryptography
- hybrid cryptographic migration
- Kubernetes scalability
- observability
- controlled use of healthcare data with LLM-based services
The central design principle of Adhya is:
Mother β Pregnancy β Delivery β Child β Longitudinal Healthcare
A mother and child should not be represented as unrelated records.
Instead:
Mother
β
βββ Pregnancy #1
β β
β βββ Delivery
β β
β βββ Child
β
βββ Pregnancy #2
β β
β βββ Delivery
β β
β βββ Child
β
βββ Long-Term Medical History
This structure allows the platform to preserve healthcare history across time.
The mother profile can contain:
- Patient information
- OPD number
- Contact information
- Medical history
- Previous pregnancies
- Previous clinic visits
- Weight history
- Clinical observations
- Medication history
- Vaccination history
- Healthcare provider information
- Relevant follow-up records
Each pregnancy should be represented as an independent longitudinal episode.
Example:
Mother
β
βββ Pregnancy
βββ Pregnancy ID
βββ Pregnancy Number
βββ Estimated Due Date
βββ Status
βββ Clinic Visits
βββ Observations
βββ Weight Records
βββ Medication
βββ Appointments
βββ Alerts
βββ Doctor Notes
Possible pregnancy states:
PLANNED
β
ACTIVE
β
COMPLETED
β
POSTPARTUM
Adhya will support clinic-related workflows.
- Register clinic appointments
- Display upcoming clinic dates
- Track completed visits
- Track missed visits
- Provide reminders
- Associate visits with healthcare providers
- Record clinical observations
- Record follow-up requirements
Example:
Pregnancy
β
βΌ
Clinic Appointment
β
βββ Date
βββ Time
βββ Clinic
βββ Doctor
βββ Status
βββ Follow-up
The platform can manage medication-related information throughout the maternal and child healthcare journey.
Example:
Prescription
β
βΌ
Medication
β
βΌ
Collection / Booking Slot
β
βΌ
Reminder
β
βΌ
Collection Status
Possible collection states:
AVAILABLE
BOOKED
COLLECTED
MISSED
CANCELLED
The system can notify users about specific medicine collection slots.
The child becomes a separate patient record while maintaining a relationship with the mother and pregnancy from which the child originated.
Mother
β
βΌ
Pregnancy
β
βΌ
Delivery
β
βΌ
Child
β
βββ Birth Information
βββ Vaccinations
βββ Growth Records
βββ Clinic Visits
βββ Observations
βββ Medication
βββ Developmental Records
βββ Alerts
βββ Clinical Notes
The initial scope covers children from:
Birth β 5 years
Adhya will provide vaccination tracking for children.
Each vaccination record may contain:
- Vaccine
- Dose
- Recommended date
- Actual administration date
- Status
- Healthcare provider
- Clinic
- Notes
Possible statuses:
SCHEDULED
COMPLETED
MISSED
RESCHEDULED
Example:
Child
β
βββ Vaccine A
β βββ Dose 1 β
β βββ Dose 2 β
β βββ Dose 3 β
β
βββ Vaccine B
β βββ Dose 1 β
β
βββ Upcoming Vaccination
βββ Reminder
Weight monitoring is one of the initial functional requirements.
The platform will maintain a chronological history:
Child
β
βββ Growth Records
β
βββ Date
βββ Weight
βββ Height
βββ Age
βββ Notes
Example:
Weight
β
βββ 3 months β 5.2 kg
βββ 6 months β 6.7 kg
βββ 9 months β 7.5 kg
βββ 12 months β 8.4 kg
βββ 18 months β 9.8 kg
The platform can visualize historical measurements for healthcare-provider review.
Growth visualization is intended as a monitoring and record-keeping feature, not an autonomous diagnostic system.
Adhya will provide a healthcare-provider dashboard.
Doctors or authorized healthcare workers can:
- Search patients
- View maternal profiles
- View pregnancy records
- View child profiles
- Review longitudinal health history
- Review observations
- Review weight/growth records
- Review vaccination status
- Review appointments
- Review medication
- Create clinical notes
- Review alerts
- Schedule follow-ups
The initial implementation focuses on a clinical dashboard and secure record access, rather than full telemedicine functionality.
Each registered patient will receive an OPD number.
Example:
OPD-2026-000123
However, the OPD number should not be the only identifier used internally.
The system should maintain:
Internal Patient ID
+
OPD Number
The internal identifier should remain immutable while the OPD number is treated as a healthcare-facing identifier.
A major feature of Adhya is the long-term patient profile.
Mother Profile
β
βββ Registration
βββ OPD Information
βββ Personal Information
βββ Pregnancy History
βββ Current Pregnancy
βββ Clinic Visits
βββ Observations
βββ Weight History
βββ Medication
βββ Appointments
βββ Alerts
βββ Doctor Notes
βββ Audit History
Child Profile
β
βββ Birth Information
βββ Parent Relationship
βββ Vaccinations
βββ Growth Records
βββ Clinic Visits
βββ Observations
βββ Medication
βββ Developmental Records
βββ Appointments
βββ Alerts
βββ Clinical Notes
Healthcare data will be represented using HL7 FHIR rather than a completely proprietary healthcare schema.
The original project specification identifies FHIR as a core interoperability requirement and includes resources such as Patient, Practitioner, Observation, and Appointment.
Adhya extends this model around maternal and child healthcare.
| Adhya Domain | FHIR Resource |
|---|---|
| Mother | Patient |
| Child | Patient |
| Doctor | Practitioner |
| Doctor relationship | CareTeam / PractitionerRole |
| Pregnancy | Condition / EpisodeOfCare |
| Clinic Visit | Encounter |
| Clinical Measurement | Observation |
| Medication | MedicationRequest |
| Vaccination | Immunization |
| Appointment | Appointment |
| Clinical Documentation | DocumentReference / appropriate clinical resource |
| Alert | Communication / DetectedIssue depending on implementation |
Exact FHIR mappings will be finalized during the FHIR domain-model design stage.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Client Layer β
β β
β Next.js Web Application β
β β
β Parent / Patient Portal Doctor Dashboard β
βββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β API Gateway β
β β
β WSO2 API Manager β
β β
β OAuth2/OIDC β RBAC β Rate Limiting β Policies β Monitoring β
βββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββΌβββββββββββββββββββ
βΌ βΌ βΌ
ββββββββββββββββββββ ββββββββββββββββββββ ββββββββββββββββββββ
β Registration β β Maternal Care β β Child Health β
β Service β β Service β β Service β
ββββββββββββββββββββ ββββββββββββββββββββ ββββββββββββββββββββ
β β β
ββββββββββββββββββββΌβββββββββββββββββββ
βΌ
ββββββββββββββββββββββββ
β FHIR Clinical Data β
β Service β
ββββββββββββ¬ββββββββββββ
β
βΌ
ββββββββββββββββββββββββ
β PostgreSQL β
ββββββββββββ¬ββββββββββββ
β
β Healthcare Events
βΌ
ββββββββββββββββββββββββ
β Siddhi β
β Event Processing β
ββββββββββββ¬ββββββββββββ
β
ββββββββββββ΄ββββββββββββ
βΌ βΌ
ββββββββββββββββ ββββββββββββββββ
β Alert Serviceβ β Notification β
ββββββββββββββββ β Service β
ββββββββββββββββ
ββββββββββββββββββββββββββββββββββββ
β AI / LLM Gateway β
β β
β Authorization β
β Data Filtering β
β De-identification β
β Context Construction β
β Prompt Security β
β Audit β
ββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββ
β Security Layer β
β β
β OAuth2 / OIDC β
β RBAC β
β TLS β
β ML-KEM β
β ML-DSA β
β Hybrid Cryptography β
ββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββ
β Platform Layer β
β β
β Kubernetes β
β OpenChoreo β
β OpenTelemetry β
β Prometheus β
β Grafana β
ββββββββββββββββββββββββββββββββββββ
A central workflow is:
Patient Registration
β
OPD Number Assignment
β
Mother Profile
β
Pregnancy Registration
β
Pregnancy Timeline
β
Clinic Visits
β
Observations
β
Medication
β
Appointments / Reminders
β
Delivery
β
Child Registration
β
Child Health Record
β
Vaccinations
β
Growth Monitoring
β
Clinic Visits
β
Observations
β
Medication
β
Child Age 5
Healthcare observations can generate events.
Example:
Clinical Observation
β
Healthcare Event
β
Siddhi
β
Pattern Detection
β
Alert
β
Doctor Dashboard / Notification
For example, a predefined rule could detect repeated abnormal observations within a configured time window.
Observation 1
β
Observation 2
β
Observation 3
β
Siddhi
β
Pattern Detected
β
Alert Created
The original project specification proposed Siddhi specifically for detecting patterns such as repeated abnormal observations within a time window.
The alert service consumes detected healthcare events.
Example:
{
"patientId": "patient-123",
"type": "ObservationPattern",
"title": "Repeated Observation Pattern Detected",
"severity": "HIGH",
"detectedAt": "2026-09-24T12:30:00Z",
"status": "OPEN"
}Alerts may be associated with:
- Mother
- Pregnancy
- Child
- Observation
- Appointment
- Vaccination
- Medication
- Follow-up
The system should distinguish between:
System Alert
Clinical Review Required
Reminder
Appointment Notification
Vaccination Reminder
Medication Notification
Adhya may include an LLM gateway for controlled interaction with healthcare information.
The LLM should not directly access the entire healthcare database.
Instead:
FHIR / Clinical Records
β
Authorization
β
Data Filtering
β
De-identification / Minimization
β
Context Builder
β
LLM Gateway
β
LLM API
β
Controlled Response
Possible use cases include:
- Doctor-facing patient summaries
- Summarizing longitudinal records
- Explaining non-diagnostic healthcare information
- Summarizing appointment history
- Preparing structured information for healthcare workers
The LLM is an information-support component, not an autonomous clinical decision-maker.
The system should not allow an LLM to independently:
- diagnose patients
- prescribe medication
- modify medical records
- determine treatment
- override healthcare professionals
Because healthcare data is highly sensitive, the LLM gateway will be treated as a security boundary.
Potential security concerns include:
- Excessive data exposure
- Unauthorized patient-context access
- Prompt injection
- Sensitive information leakage
- Cross-patient context contamination
- Insecure tool access
- Insufficient audit logging
- Unauthorized model access
- Improper data retention
A secure architecture should therefore enforce:
User
β
Authentication
β
Authorization
β
Patient Context Validation
β
Minimum Required Data
β
LLM Gateway
β
Prompt Security
β
LLM API
β
Response Validation
β
Audit
Security will be implemented as a multi-layer architecture.
Security
β
βββββββββββββββββΌβββββββββββββββββ
β β β
βΌ βΌ βΌ
Identity API Security Data
β β β
OAuth2/OIDC WSO2 APIM PostgreSQL
RBAC Rate Limits Encryption
β Policies
β
βΌ
PQC Security
β
βββββ΄βββββ
β β
ML-KEM ML-DSA
Security requirements include:
- Authentication
- Authorization
- RBAC
- API gateway policies
- Rate limiting
- TLS
- Secure secrets
- Audit logging
- Network isolation
- Secure service communication
- Cryptographic experimentation
PQC remains one of the major research components of Adhya.
The project will investigate:
Used for key establishment.
Client
β
β ML-KEM
βΌ
Server
β
βΌ
Shared Secret
Used for digital signatures.
Healthcare Event
β
ML-DSA Sign
β
Signed Event
β
Verification
The purpose is not simply to add a cryptographic library.
The project will investigate the architectural and performance implications of integrating PQC into a distributed healthcare platform.
Adhya will investigate three configurations:
βββββββββββββββββββββββ
β Classical β
β Cryptography β
βββββββββββββββββββββββ
VS
βββββββββββββββββββββββ
β Post-Quantum β
β Cryptography β
βββββββββββββββββββββββ
VS
βββββββββββββββββββββββ
β Hybrid β
β Classical + PQC β
βββββββββββββββββββββββ
The project will measure the trade-offs rather than assuming that one configuration is universally optimal.
The platform will provide controlled experiments comparing cryptographic approaches.
| Metric | Classical | PQC | Hybrid |
|---|---|---|---|
| Key Generation | Measure | Measure | Measure |
| Signing | Measure | Measure | Measure |
| Verification | Measure | Measure | Measure |
| Key Size | Measure | Measure | Measure |
| Signature Size | Measure | Measure | Measure |
| Ciphertext Size | Measure | Measure | Measure |
| Request Latency | Measure | Measure | Measure |
| CPU Usage | Measure | Measure | Measure |
| Memory Usage | Measure | Measure | Measure |
| Network Overhead | Measure | Measure | Measure |
Experiments should be conducted under controlled conditions.
Kubernetes resource limits can additionally be used to investigate cryptographic overhead under constrained CPU and memory conditions.
Healthcare systems require traceability of sensitive operations.
Adhya will maintain audit events such as:
Doctor01
β
βββ READ Patient/123
β
βββ CREATE Observation/456
β
βββ UPDATE Observation/456
β
βββ READ Vaccination/789
Example audit record:
{
"actor": "doctor-001",
"action": "READ",
"resourceType": "Patient",
"resourceId": "patient-123",
"timestamp": "2026-09-25T10:30:00Z",
"ip": "internal",
"result": "SUCCESS"
}Audit records should be treated as security-sensitive information.
Adhya will be containerized and deployed using Kubernetes.
Possible workloads include:
adhya-frontend
adhya-registration
adhya-maternal
adhya-child
adhya-fhir
adhya-appointment
adhya-medication
adhya-vaccination
adhya-observation
adhya-alert
adhya-notification
adhya-llm-gateway
adhya-siddhi
adhya-postgres
Kubernetes will provide:
- Service discovery
- Workload scheduling
- Self-healing
- Rolling deployments
- Horizontal scaling
- Configuration management
- Secret management
- Network isolation
- Health checks
- Resource limits
OpenChoreo will be investigated as the cloud-native developer platform.
Proposed workflow:
Developer
β
Git Repository
β
OpenChoreo
β
Build
β
Container Image
β
Deployment
β
Kubernetes
β
Running Service
This provides an opportunity to investigate:
- Platform engineering
- Developer workflows
- Service deployment
- Environment management
- Kubernetes abstraction
- Cloud-native application lifecycle
The platform will expose:
- Request latency
- Request count
- Error rate
- CPU usage
- Memory usage
- Pod health
- Event-processing latency
- Cryptographic operation time
- Application logs
- Security events
- Audit events
- Event-processing logs
- API gateway logs
Distributed traces can follow requests through:
Frontend
β
WSO2
β
Maternal Service
β
FHIR Service
β
PostgreSQL
Technology candidates:
- OpenTelemetry
- Prometheus
- Grafana
The initial service structure can be:
API Gateway
β
ββββββββββββββββββΌβββββββββββββββββ
β β β
βΌ βΌ βΌ
Registration Maternal Care Child Health
Service Service Service
β β β
ββββββββββββββββββΌβββββββββββββββββ
βΌ
FHIR Data Service
β
βΌ
PostgreSQL
Supporting services:
Appointment Service
Medication Service
Vaccination Service
Observation Service
Alert Service
Notification Service
Audit Service
LLM Gateway
Service boundaries may be adjusted during implementation based on complexity and deployment requirements.
The initial domain model includes:
User
β
βββ Patient
β
βββ MotherProfile
β β
β βββ Pregnancy
β β βββ PregnancyVisit
β β βββ Observation
β β βββ Medication
β β βββ Appointment
β β βββ Alert
β β
β βββ Delivery
β β
β βββ Child
β
βββ ChildProfile
βββ Vaccination
βββ GrowthRecord
βββ ClinicVisit
βββ Observation
βββ Medication
βββ Appointment
βββ Alert
Additional entities:
- Doctor
- Practitioner
- CareTeam
- ClinicalNote
- Prescription
- Notification
- AuditEvent
| Layer | Technology |
|---|---|
| Frontend | Next.js / TypeScript |
| Backend | Go |
| API | REST / FHIR |
| Healthcare Standard | HL7 FHIR |
| Database | PostgreSQL |
| API Management | WSO2 API Manager |
| Identity | OAuth2 / OpenID Connect |
| Event Processing | Siddhi |
| Cryptography | ML-KEM / ML-DSA |
| Containers | Docker |
| Orchestration | Kubernetes |
| Developer Platform | OpenChoreo |
| Observability | OpenTelemetry / Prometheus / Grafana |
| Source Control | Git / GitHub |
| CI/CD | GitHub Actions / OpenChoreo |
The exact components may be adjusted during implementation based on compatibility and experimental findings.
adhya/
β
βββ apps/
β βββ web/
β β βββ nextjs/
β β
β βββ doctor-dashboard/
β
βββ services/
β βββ registration/
β βββ maternal/
β βββ child/
β βββ fhir/
β βββ observation/
β βββ appointment/
β βββ medication/
β βββ vaccination/
β βββ alert/
β βββ notification/
β βββ audit/
β βββ llm-gateway/
β
βββ event-processing/
β βββ siddhi/
β
βββ crypto/
β βββ ml-kem/
β βββ ml-dsa/
β βββ classical/
β βββ hybrid/
β
βββ infrastructure/
β βββ docker/
β βββ kubernetes/
β βββ openchoreo/
β βββ postgres/
β βββ wso2/
β
βββ observability/
β βββ otel/
β βββ prometheus/
β βββ grafana/
β
βββ benchmarks/
β βββ classical/
β βββ pqc/
β βββ hybrid/
β
βββ docs/
β βββ architecture/
β βββ fhir/
β βββ security/
β βββ pqc/
β βββ api/
β βββ research/
β
βββ scripts/
β
βββ tests/
β
βββ docker-compose.yml
βββ Makefile
βββ README.md
βββ LICENSE
Registration
β
Create Patient
β
Generate OPD Number
β
Create Mother Profile
β
Store FHIR Patient
β
Audit Event
Mother
β
Create Pregnancy
β
Generate Pregnancy ID
β
Set EDD
β
Create Pregnancy Timeline
β
Schedule Clinic
Appointment
β
Patient Arrives
β
Create Encounter
β
Record Observations
β
Update Pregnancy / Child Record
β
Clinical Note
β
Follow-up
β
Audit
Delivery
β
Create Child Patient
β
Link Child β Mother
β
Link Child β Pregnancy
β
Create Birth Record
β
Initialize Vaccination Schedule
β
Initialize Growth Monitoring
Vaccination Schedule
β
Upcoming Vaccine
β
Reminder
β
Clinic Visit
β
Vaccination Administered
β
FHIR Immunization
β
Audit
Child
β
Clinic Visit
β
Weight / Height
β
Growth Record
β
Store Observation
β
Update Growth Timeline
β
Healthcare Provider Review
- OAuth2
- OpenID Connect
- Secure sessions/tokens
- Role-based access
Example roles:
PATIENT
DOCTOR
NURSE
ADMIN
SYSTEM
Authorization must be enforced at the API/service level rather than relying only on frontend restrictions.
WSO2 API Manager will provide:
- Authentication integration
- Authorization policies
- Rate limiting
- API versioning
- API monitoring
- Controlled API exposure
The platform should protect:
- Patient identities
- OPD numbers
- Medical observations
- Pregnancy records
- Child records
- Vaccination records
- Medication information
- Clinical notes
- Audit information
- LLM context
- Authenticated access
- RBAC
- Secure APIs
- Audit logging
- Secure secrets
- PQC experimentation
Stateless services should support horizontal scaling.
Kubernetes should automatically restart failed workloads.
The system should expose:
- Metrics
- Logs
- Traces
- Health information
Services should have clear boundaries and independently deployable components.
Healthcare data should use FHIR representations instead of relying exclusively on proprietary schemas.
Testing will be performed at multiple levels.
Each service should test:
- Domain logic
- Validation
- FHIR transformations
- Authorization rules
- Event-processing logic
Test interactions between:
API Gateway
β
Services
β
PostgreSQL
β
Event Processing
Test:
- Authentication bypass
- Broken authorization
- BOLA/IDOR
- Rate-limit bypass
- Token validation
- Improper resource access
- Excessive data exposure
- API injection
Test:
- Prompt injection
- Context leakage
- Cross-patient access
- Unauthorized data retrieval
- Sensitive information exposure
- Tool authorization
Measure:
- Correctness
- Key generation
- Encapsulation/decapsulation
- Signing
- Verification
- Failure handling
- Hybrid operation
The research component will compare:
Classical
β
βββ Latency
βββ CPU
βββ Memory
βββ Network
β
βΌ
PQC
β
βββ Latency
βββ CPU
βββ Memory
βββ Network
β
βΌ
Hybrid
β
βββ Latency
βββ CPU
βββ Memory
βββ Network
Experiments should be repeatable and performed under controlled configurations.
Potential experiment dimensions:
- Local vs Kubernetes
- Different CPU limits
- Different memory limits
- Different request rates
- Different payload sizes
- Different cryptographic configurations
How can post-quantum cryptography be integrated into a FHIR-based maternal and child healthcare API architecture?
What performance overhead is introduced by post-quantum cryptographic mechanisms compared with conventional cryptography?
How does PQC affect API latency, resource consumption, and network overhead in a containerized environment?
How can hybrid cryptographic approaches support migration from conventional cryptography toward post-quantum cryptography?
How can Kubernetes support scalable deployment of security-sensitive healthcare microservices?
How can event-processing technology be used to detect meaningful patterns in maternal and child healthcare observations?
How can healthcare data be exposed to LLM-based services while minimizing unnecessary data exposure and maintaining authorization and auditability?
- Finalize maternal and child healthcare scope
- Define user roles
- Define domain entities
- Design mother-pregnancy-child relationship
- Study FHIR mappings
- Design service boundaries
- Design security architecture
- Design database model
- Implement Go backend
- Implement PostgreSQL
- Implement patient registration
- Implement OPD generation
- Implement mother profile
- Implement pregnancy management
- Implement child registration
- Implement longitudinal timeline
- Implement clinic appointments
- Implement observations
- Implement weight monitoring
- Implement vaccination management
- Implement medication management
- Implement medicine collection slots
- Implement doctor notes
- Implement FHIR Patient
- Implement Practitioner
- Implement Observation
- Implement Appointment
- Implement Encounter
- Implement Immunization
- Implement MedicationRequest
- Implement appropriate pregnancy representation
- Implement FHIR validation
- Integrate OAuth2/OIDC
- Implement RBAC
- Integrate WSO2 API Manager
- Implement API policies
- Implement rate limiting
- Implement audit logging
- Implement authorization testing
- Define healthcare events
- Integrate Siddhi
- Implement pattern detection
- Implement alert service
- Implement notifications
- Implement appointment reminders
- Implement vaccination reminders
- Implement cryptographic benchmark environment
- Integrate ML-KEM
- Integrate ML-DSA
- Implement classical baseline
- Implement hybrid configuration
- Measure performance
- Analyze results
- Design healthcare-data access boundary
- Implement authorization
- Implement context filtering
- Implement data minimization
- Implement de-identification where applicable
- Implement prompt security
- Implement response validation
- Implement LLM audit logging
- Containerize services
- Create Kubernetes Deployments
- Create Services
- Configure Secrets
- Configure ConfigMaps
- Configure Ingress
- Configure health checks
- Configure resource limits
- Configure HPA
- Configure NetworkPolicies
- Configure OpenChoreo
- Configure deployment workflows
- Integrate OpenTelemetry
- Configure Prometheus
- Configure Grafana
- Add distributed tracing
- Monitor service health
- Monitor cryptographic overhead
Evaluate:
- Functional correctness
- API security
- FHIR interoperability
- Event processing
- Kubernetes scalability
- Observability
- PQC performance
- Hybrid cryptography
- LLM security boundary
Recommended development environment:
Go
Node.js
npm / pnpm
Docker
Docker Compose
PostgreSQL
Kubernetes
kubectl
Git
Optional platform tooling:
WSO2 API Manager
Siddhi
OpenChoreo
Prometheus
Grafana
OpenTelemetry
Clone the repository:
git clone <repository-url>
cd adhyaStart infrastructure:
docker compose up -dCheck running services:
docker compose psRun backend services:
make devRun the frontend:
cd apps/web
npm install
npm run devThe exact commands may change as implementation progresses.
Each independently deployable component can have its own container image.
Example:
adhya/frontend
adhya/registration
adhya/maternal
adhya/child
adhya/fhir
adhya/appointment
adhya/medication
adhya/vaccination
adhya/observation
adhya/alert
adhya/notification
adhya/llm-gateway
Example:
kubectl apply -f infrastructure/kubernetes/Check workloads:
kubectl get podsCheck services:
kubectl get servicesCheck deployments:
kubectl get deploymentsExpected monitoring architecture:
Application
β
βΌ
OpenTelemetry
β
ββββββββββββΊ Metrics
β
ββββββββββββΊ Logs
β
ββββββββββββΊ Traces
β
βΌ
Observability
β
ββββββββ΄βββββββ
βΌ βΌ
Prometheus Grafana
Adhya is intended for software engineering and research experimentation.
Development and benchmarking should use synthetic healthcare data.
Example:
Mother:
OPD-2026-000001
Pregnancy:
PREG-2026-000001
Child:
CHILD-2026-000001
Observation:
OBS-2026-000001
No real patient data should be introduced into the development environment.
- Maternal healthcare records
- Pregnancy records
- Child healthcare records
- Birth information
- Clinic management
- Appointment reminders
- Medication management
- Medicine collection slots
- Vaccination tracking
- Growth/weight monitoring
- Clinical observations
- Doctor dashboard
- FHIR resources
- API management
- Authentication and authorization
- Event processing
- Alerts
- PQC experimentation
- Hybrid cryptography
- Kubernetes
- OpenChoreo
- Observability
- LLM healthcare-data gateway
- Cryptographic benchmarking
The project does not aim to build:
- A complete hospital information system
- A production replacement for certified healthcare infrastructure
- An autonomous medical diagnosis system
- Autonomous treatment recommendations
- Autonomous prescription generation
- A complete telemedicine platform
- A replacement for healthcare professionals
- A system using real patient data during development
- A claim of complete quantum security
The original project specification explicitly positioned the platform as a working prototype and experimental platform rather than a complete certified healthcare infrastructure.
Adhya follows several core security principles:
Users should only access the healthcare information required for their role.
Security should not depend on a single mechanism.
Identity
+
Authorization
+
API Security
+
Network Security
+
Data Security
+
Audit
+
PQC Research
Only the healthcare information necessary for a particular operation should be provided to downstream services, especially LLM services.
Security requirements should be considered during architecture and domain design rather than added after implementation.
Sensitive healthcare operations should produce auditable events.
ββββββββββββββββββββββββ
β Next.js UI β
β β
β Parent / Patient UI β
β Doctor Dashboard β
ββββββββββββ¬ββββββββββββ
β
βΌ
ββββββββββββββββββββββββ
β WSO2 API Manager β
β β
β OAuth2/OIDC β
β RBAC β
β Rate Limiting β
β API Policies β
ββββββββββββ¬ββββββββββββ
β
ββββββββββββββββββββββΌβββββββββββββββββββββ
β β β
βΌ βΌ βΌ
Registration Maternal Care Child Health
Service Service Service
β β β
ββββββββββββββββββββββΌβββββββββββββββββββββ
β
βΌ
ββββββββββββββββββββ
β FHIR Service β
ββββββββββ¬ββββββββββ
β
βΌ
ββββββββββββββββββββ
β PostgreSQL β
ββββββββββ¬ββββββββββ
β
Healthcare Events
β
βΌ
ββββββββββββββββββββ
β Siddhi β
ββββββββββ¬ββββββββββ
β
ββββββββββββ΄βββββββββββ
βΌ βΌ
Alert Service Notification
β
βΌ
Doctor Dashboard
βββββββββββββββββββββββββββββββ
β LLM Gateway β
β β
β Auth β Filter β Minimize β
β β Context β LLM β Audit β
βββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββ
β PQC Security Layer β
β β
β ML-KEM β
β ML-DSA β
β Classical + PQC Hybrid β
βββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββ
β Platform Layer β
β β
β Kubernetes β
β OpenChoreo β
β OpenTelemetry β
β Prometheus β
β Grafana β
βββββββββββββββββββββββββββββββ
Adhya combines several areas of modern software engineering:
Maternal & Child Healthcare
+
FHIR
+
Cybersecurity
+
Post-Quantum Cryptography
+
Cloud-Native Systems
+
Kubernetes
+
API Management
+
Event Processing
+
LLM Security
+
Platform Engineering
The result is intended to function as both:
- A practical full-stack healthcare software engineering project.
- An experimental platform for researching security and post-quantum cryptography in distributed healthcare systems.
The final system should provide:
- Maternal healthcare management.
- Pregnancy lifecycle management.
- Child healthcare management from birth to five years.
- OPD number assignment.
- Longitudinal patient profiles.
- Clinic and appointment management.
- Medication and collection-slot management.
- Vaccination tracking.
- Growth and weight monitoring.
- Clinical observation management.
- Doctor dashboard.
- FHIR-based healthcare data.
- Secure API management.
- OAuth2/OIDC authentication.
- Role-based authorization.
- Event-driven healthcare monitoring.
- Automated alerts and reminders.
- Audit logging.
- Kubernetes deployment.
- OpenChoreo-based cloud-native workflow.
- ML-KEM integration research.
- ML-DSA integration research.
- Classical/PQC/Hybrid benchmarking.
- Observability through metrics, logs, and traces.
- Controlled healthcare-data access for LLM services.
- Security evaluation of the LLM gateway.
The project should ultimately answer a broader engineering question:
What does it take to build a secure, interoperable, event-driven, cloud-native healthcare platform while preparing its cryptographic infrastructure for the post-quantum era?
Adhya provides a concrete healthcare domain in which these technologies can be implemented, measured, and evaluated together.
Adhya is an academic and research-oriented prototype.
It is not intended to:
- provide medical diagnosis;
- replace healthcare professionals;
- make autonomous clinical decisions;
- prescribe treatment;
- replace certified healthcare infrastructure; or
- process real patient information during development.
All development and experimentation should use synthetic healthcare data.
Contributions should maintain the project's core principles:
- Security first
- Privacy by design
- FHIR interoperability
- Clear service boundaries
- Testable components
- Observable services
- Least-privilege access
- Synthetic data for development
- Reproducible experiments
License information will be added when the project license is finalized.
Status: π§ Research & Development
Current focus:
Requirements
β
Domain Modeling
β
FHIR Architecture
β
Service Design
β
Core Implementation
β
Security
β
Event Processing
β
PQC
β
LLM Security
β
Kubernetes
β
Performance Evaluation
One longitudinal record. From mother to child. From pregnancy to early childhood. Secured for the future.