Development of a Medical Reference System Based on the HL7 FHIR Standard
The SimbirSoft team developed a medical reference system for a large network of medical laboratories conducting tests for individuals.
Customer
A large Russian network of medical laboratories conducting tests for individuals.
Task
The challenges we faced:
Business Objectives:
-
Simplify interaction with B2B clients through a unified API.
-
Increase loyalty by complying with international standards.
Technical Objectives:
-
Implement support for HL7 FHIR to ensure compatibility with foreign systems.
-
Ensure fault tolerance and high load capacity (up to 80 RPS).
Solution
We planned to implement support for the HL7 FHIR Terminology Service.
During the design phase, we evaluated the feasibility of storing data directly in HL7 FHIR format and chose to adopt an "on-the-fly conversion" approach during the analysis process.
A hybrid approach was implemented: data is stored in both proprietary format and converted on-the-fly. This was necessary to support existing B2B clients.
The project was completed in 4.5 months:
- 1.5 months — analysis,
- 3 months — development.
Load testing was conducted to determine the maximum load on a single container.
Result
A ready-to-use scalable service with support for HL7 FHIR.
Throughput — 80 RPS per container.
Ability to work with both new and legacy clients.
Technologies
Net 6-8, HL7 FHIR, OpenAPI, Design API First, Roslyn Codegen, NSwag Codegen, Swagger, Doc As Code, PostgreSQL, Redis, Docker, Kubernetes, Grafana, OpenSearch, GitLab, CI/CD, MongoDB, Identity, ApiGateway
Challenges
- Difficulty in conducting analysis within a legacy stack and insufficient documentation.
- Tight deadlines for releasing a working version of the service.