Overview
The HL7 Connectivity Providers Client supports multiple deployment environments with isolated configurations. Each environment maintains its own base URL and API endpoints for authentication and HL7 operations.Environment Types
TheEnvironment enum defines four deployment environments:
Environment.java:3-8
Environment Base URLs
Each environment maps to a specific base URL configured inapplication.properties:
| Environment | Base URL |
|---|---|
| DEV | https://mobileint.swissmedical.com.ar |
| QA | https://mobileqa.swissmedical.com.ar |
| PRE | https://mobilepre.swissmedical.com.ar |
| PRD | https://mobile.swissmedical.com.ar |
Base URLs are loaded from
application.properties at startup using the PropertiesUtil class.Environment Configuration
TheEnvironmentConfig class provides static methods to retrieve environment-specific URLs.
Getting Base URL
EnvironmentConfig.java:12-31
Authentication Endpoints
Login URL
Constructs the authentication login endpoint for a specific environment:EnvironmentConfig.java:35-39
https://mobile.swissmedical.com.ar/pre/api-smg/v0/auth-login
Refresh Token URL
Constructs the token refresh endpoint:EnvironmentConfig.java:41-45
https://mobile.swissmedical.com.ar/pre/api-smg/v0/auth-refresh
HL7 Endpoints
Eligibility Check
EnvironmentConfig.java:49-55
https://mobile.swissmedical.com.ar/pre/api-smg/v3.0/prestadores/hl7/elegibilidad
Patient Registration
EnvironmentConfig.java:57-63
https://mobile.swissmedical.com.ar/pre/api-smg/v3.0/prestadores/hl7/registracion
Cancellation
EnvironmentConfig.java:65-70
https://mobile.swissmedical.com.ar/pre/api-smg/v2.0/prestadores/hl7/cancela-prestacion
URL Construction Pattern
All environment URLs follow a consistent construction pattern:Configuration Properties
Fromapplication.properties:
Usage in Login Flow
- Environment Selection
- HL7 Request
Best Practices
Environment Selection:
- Store the selected environment in
SessionContextduring initialization - Use
SessionContext.getEnvironment()to retrieve the current environment for API calls - Never hardcode environment URLs; always use
EnvironmentConfigmethods
Related Resources
- Session Management - Learn how environment is stored in session context
- Authentication - Authentication flow with environment selection