[2026-05-12 05:42:26.466] [ERROR] HTTP error occurred                                     | 📍 http.go:116 | category: unauthorized | environment: debug | error_code: UNAUTHORIZED | ⚙️ service/pkg/errors.LogHTTPError | http_status: 401 | metadata: map[reason:map[provider_errors:map[jwt:invalid token keycloak:token expired] severity:warning timestamp:2026-05-12T05:42:26Z] timestamp:2026-05-12T05:42:26Z] | method: POST | path: /api/v1/satusehat/episodeofcare | service: service-general
[2026-05-12 05:42:26.468] [WARNI] HTTP Request                                            | 📍 middleware.go:175 | environment: debug | ⚙️ service/internal/infrastructure/transport/http/servers.NewHTTPServer.LoggingMiddleware.func3 | ip: 10.10.150.9 | latency: 10.573416ms | method: POST | path: /api/v1/satusehat/episodeofcare | request_id: d0e594cd-a3e1-430c-9445-c3a7ea82f9a6 | service: service-general | status: 401 | user_agent: Apidog/1.0.0 (https://apidog.com)
[2026-05-12 05:42:32.177] [INFO ] HTTP Request                                            | 📍 middleware.go:177 | environment: debug | ⚙️ service/internal/infrastructure/transport/http/servers.NewHTTPServer.LoggingMiddleware.func3 | ip: 10.10.150.9 | latency: 488.9µs | method: POST | path: /api/v1/auth/login | request_id: 5bc78427-5063-40eb-92ef-cf000ad6bb36 | service: service-general | status: 200 | user_agent: Apidog/1.0.0 (https://apidog.com)
[2026-05-12 05:42:36.831] [INFO ] 🔑 SatuSehat Access Token refreshed successfully         | 📍 client.go:136 | environment: debug | ⚙️ service/internal/interfaces/satusehat.(*client).GetAccessToken | service: service-general
[2026-05-12 05:42:36.831] [INFO ] 🛫 SatuSehat API Request Sent                            | 📍 client.go:216 | environment: debug | ⚙️ service/internal/interfaces/satusehat.(*client).do | method: POST | service: service-general | target_url: https://api-satusehat.kemkes.go.id/fhir-r4/v1/EpisodeOfCare
[2026-05-12 05:42:37.031] [INFO ] HTTP Request                                            | 📍 middleware.go:177 | environment: debug | ⚙️ service/internal/infrastructure/transport/http/servers.NewHTTPServer.LoggingMiddleware.func3 | ip: 10.10.150.9 | latency: 356.321412ms | method: POST | path: /api/v1/satusehat/episodeofcare | request_id: 686d9496-0638-4141-a9b5-a7d76865132e | service: service-general | status: 201 | user_agent: Apidog/1.0.0 (https://apidog.com)
[2026-05-12 05:45:03.105] [INFO ] 🛫 SatuSehat API Request Sent                            | 📍 client.go:216 | environment: debug | ⚙️ service/internal/interfaces/satusehat.(*client).do | method: POST | service: service-general | target_url: https://api-satusehat.kemkes.go.id/fhir-r4/v1/EpisodeOfCare
[2026-05-12 05:45:03.327] [INFO ] HTTP Request                                            | 📍 middleware.go:177 | environment: debug | ⚙️ service/internal/infrastructure/transport/http/servers.NewHTTPServer.LoggingMiddleware.func3 | ip: 10.10.150.9 | latency: 223.991252ms | method: POST | path: /api/v1/satusehat/episodeofcare | request_id: a987af84-a62b-4f32-acd6-129b584f2c54 | service: service-general | status: 201 | user_agent: Apidog/1.0.0 (https://apidog.com)
[2026-05-12 05:47:21.715] [WARNI] HTTP Request                                            | 📍 middleware.go:175 | environment: debug | ⚙️ service/internal/infrastructure/transport/http/servers.NewHTTPServer.LoggingMiddleware.func3 | ip: 10.10.150.9 | latency: 565.802µs | method: GET | path: /api/v1/satusehat/episodeofcare | request_id: 333a7842-cf4d-43d4-89d4-3ca14e6d7d06 | service: service-general | status: 401 | user_agent: Apidog/1.0.0 (https://apidog.com)
[2026-05-12 05:47:51.981] [INFO ] 🛫 SatuSehat API Request Sent                            | 📍 client.go:216 | environment: debug | ⚙️ service/internal/interfaces/satusehat.(*client).do | method: GET | service: service-general | target_url: https://api-satusehat.kemkes.go.id/fhir-r4/v1/EpisodeOfCare?
[2026-05-12 05:47:52.177] [ERROR] SatuSehat API Error                                     | 📍 client.go:266 | environment: debug | ⚙️ service/internal/interfaces/satusehat.(*client).do | response: 
        {
          "resourceType": "OperationOutcome",
          "issue": [
            {
              "severity": "error",
              "code": "value",
              "details": {
                "text": "Invalid query"
              },
              "diagnostics": "Missing query parameters: patient"
            }
          ]
        }
       | service: service-general | status_code: 400
[2026-05-12 05:47:52.178] [WARNI] HTTP Request                                            | 📍 middleware.go:175 | environment: debug | ❌ ERROR: Error #01: Failed to execute request to SatuSehat: SatuSehat API Error (HTTP 400)
 | ⚙️ service/internal/infrastructure/transport/http/servers.NewHTTPServer.LoggingMiddleware.func3 | ip: 10.10.150.9 | latency: 197.392463ms | method: GET | path: /api/v1/satusehat/episodeofcare | request_id: f1039c1f-eac4-46bf-98b4-d48b26f0a728 | service: service-general | status: 400 | user_agent: Apidog/1.0.0 (https://apidog.com)
[2026-05-12 05:47:52.179] [ERROR] HTTP error occurred                                     | 📍 middleware.go:235 | category: internal | environment: debug | error_code: INTERNAL_ERROR | ⚙️ service/pkg/errors.handleErrors | http_status: 500 | metadata: map[severity:error timestamp:2026-05-12T05:47:52Z] | method: GET | path: /api/v1/satusehat/episodeofcare | request_id: req_1778564871981260005 | service: service-general
[2026-05-12 05:48:08.930] [INFO ] 🛫 SatuSehat API Request Sent                            | 📍 client.go:216 | environment: debug | ⚙️ service/internal/interfaces/satusehat.(*client).do | method: GET | service: service-general | target_url: https://api-satusehat.kemkes.go.id/fhir-r4/v1/EpisodeOfCare?id=4d3a4b16-8d33-492c-9678-7b2cecbcbeee
[2026-05-12 05:48:09.027] [ERROR] SatuSehat API Error                                     | 📍 client.go:266 | environment: debug | ⚙️ service/internal/interfaces/satusehat.(*client).do | response: 
        {
          "resourceType": "OperationOutcome",
          "issue": [
            {
              "severity": "error",
              "code": "value",
              "details": {
                "text": "Invalid query"
              },
              "diagnostics": "Missing query parameters: patient"
            }
          ]
        }
       | service: service-general | status_code: 400
[2026-05-12 05:48:09.027] [WARNI] HTTP Request                                            | 📍 middleware.go:175 | environment: debug | ❌ ERROR: Error #01: Failed to execute request to SatuSehat: SatuSehat API Error (HTTP 400)
 | ⚙️ service/internal/infrastructure/transport/http/servers.NewHTTPServer.LoggingMiddleware.func3 | ip: 10.10.150.9 | latency: 98.3906ms | method: GET | path: /api/v1/satusehat/episodeofcare | query: id=4d3a4b16-8d33-492c-9678-7b2cecbcbeee | request_id: cc176235-db18-4539-ae2f-346cc7837213 | service: service-general | status: 400 | user_agent: Apidog/1.0.0 (https://apidog.com)
[2026-05-12 05:48:09.027] [ERROR] HTTP error occurred                                     | 📍 middleware.go:235 | category: internal | environment: debug | error_code: INTERNAL_ERROR | ⚙️ service/pkg/errors.handleErrors | http_status: 500 | metadata: map[severity:error timestamp:2026-05-12T05:48:09Z] | method: GET | path: /api/v1/satusehat/episodeofcare | request_id: req_1778564888929241762 | service: service-general
[2026-05-12 05:49:09.784] [INFO ] 🛫 SatuSehat API Request Sent                            | 📍 client.go:216 | environment: debug | ⚙️ service/internal/interfaces/satusehat.(*client).do | method: POST | service: service-general | target_url: https://api-satusehat.kemkes.go.id/fhir-r4/v1/EpisodeOfCare
[2026-05-12 05:49:09.971] [INFO ] HTTP Request                                            | 📍 middleware.go:177 | environment: debug | ⚙️ service/internal/infrastructure/transport/http/servers.NewHTTPServer.LoggingMiddleware.func3 | ip: 10.10.150.9 | latency: 187.925982ms | method: POST | path: /api/v1/satusehat/episodeofcare | request_id: 979f721e-42dc-4d8c-86ba-d430eb61d8b2 | service: service-general | status: 201 | user_agent: Apidog/1.0.0 (https://apidog.com)
[2026-05-12 06:14:40.322] [INFO ] HTTP Request                                            | 📍 middleware.go:177 | environment: debug | ⚙️ service/internal/infrastructure/transport/http/servers.NewHTTPServer.LoggingMiddleware.func3 | ip: 10.10.150.9 | latency: 635.62µs | method: POST | path: /api/v1/auth/login | request_id: 42316f0e-cf41-495d-a559-ff885edb36a0 | service: service-general | status: 200 | user_agent: Apidog/1.0.0 (https://apidog.com)
[2026-05-12 06:14:43.921] [ERROR] HTTP error occurred                                     | 📍 http.go:116 | category: validation | environment: debug | error_code: INVALID_INPUT | ⚙️ service/pkg/errors.LogHTTPError | http_status: 400 | metadata: map[additional_details:invalid character '{' looking for beginning of object key string reason:invalid character '{' looking for beginning of object key string timestamp:2026-05-12T06:14:43Z] | method: POST | path: /api/v1/satusehat/questionnaireresponse | service: service-general
[2026-05-12 06:14:43.921] [WARNI] HTTP Request                                            | 📍 middleware.go:175 | environment: debug | ❌ ERROR: Error #01: invalid character '{' looking for beginning of object key string
 | ⚙️ service/internal/infrastructure/transport/http/servers.NewHTTPServer.LoggingMiddleware.func3 | ip: 10.10.150.9 | latency: 1.371869ms | method: POST | path: /api/v1/satusehat/questionnaireresponse | request_id: cf9c0913-7fb3-4dcd-ae61-e4468ccfeaf1 | service: service-general | status: 400 | user_agent: Apidog/1.0.0 (https://apidog.com)
[2026-05-12 06:14:43.921] [ERROR] HTTP error occurred                                     | 📍 middleware.go:235 | category: internal | environment: debug | error_code: INTERNAL_ERROR | ⚙️ service/pkg/errors.handleErrors | http_status: 500 | metadata: map[] | method: POST | path: /api/v1/satusehat/questionnaireresponse | request_id: req_1778566483920167957 | service: service-general
[2026-05-12 06:15:02.074] [ERROR] HTTP error occurred                                     | 📍 http.go:116 | category: validation | environment: debug | error_code: INVALID_INPUT | ⚙️ service/pkg/errors.LogHTTPError | http_status: 400 | metadata: map[additional_details:Kolom 'QuestionnaireURL' wajib diisi, Kolom 'Subject' wajib diisi, Kolom 'Authored' wajib diisi, Kolom 'Items' wajib diisi reason:Key: 'QuestionnaireResponseRequest.QuestionnaireURL' Error:Field validation for 'QuestionnaireURL' failed on the 'required' tag
Key: 'QuestionnaireResponseRequest.Subject' Error:Field validation for 'Subject' failed on the 'required' tag
Key: 'QuestionnaireResponseRequest.Authored' Error:Field validation for 'Authored' failed on the 'required' tag
Key: 'QuestionnaireResponseRequest.Items' Error:Field validation for 'Items' failed on the 'required' tag timestamp:2026-05-12T06:15:02Z] | method: POST | path: /api/v1/satusehat/questionnaireresponse | service: service-general
[2026-05-12 06:15:02.074] [WARNI] HTTP Request                                            | 📍 middleware.go:175 | environment: debug | ❌ ERROR: Error #01: Key: 'QuestionnaireResponseRequest.QuestionnaireURL' Error:Field validation for 'QuestionnaireURL' failed on the 'required' tag
Key: 'QuestionnaireResponseRequest.Subject' Error:Field validation for 'Subject' failed on the 'required' tag
Key: 'QuestionnaireResponseRequest.Authored' Error:Field validation for 'Authored' failed on the 'required' tag
Key: 'QuestionnaireResponseRequest.Items' Error:Field validation for 'Items' failed on the 'required' tag
 | ⚙️ service/internal/infrastructure/transport/http/servers.NewHTTPServer.LoggingMiddleware.func3 | ip: 10.10.150.9 | latency: 1.307841ms | method: POST | path: /api/v1/satusehat/questionnaireresponse | request_id: d8b519ec-b916-4fd4-85f3-71f7e32e237e | service: service-general | status: 400 | user_agent: Apidog/1.0.0 (https://apidog.com)
[2026-05-12 06:15:02.074] [ERROR] HTTP error occurred                                     | 📍 middleware.go:235 | category: internal | environment: debug | error_code: INTERNAL_ERROR | ⚙️ service/pkg/errors.handleErrors | http_status: 500 | metadata: map[] | method: POST | path: /api/v1/satusehat/questionnaireresponse | request_id: req_1778566502073124583 | service: service-general
[2026-05-12 06:15:13.262] [ERROR] HTTP error occurred                                     | 📍 http.go:116 | category: validation | environment: debug | error_code: INVALID_INPUT | ⚙️ service/pkg/errors.LogHTTPError | http_status: 400 | metadata: map[additional_details:invalid character ':' after array element reason:invalid character ':' after array element timestamp:2026-05-12T06:15:13Z] | method: POST | path: /api/v1/satusehat/questionnaireresponse | service: service-general
[2026-05-12 06:15:13.263] [WARNI] HTTP Request                                            | 📍 middleware.go:175 | environment: debug | ❌ ERROR: Error #01: invalid character ':' after array element
 | ⚙️ service/internal/infrastructure/transport/http/servers.NewHTTPServer.LoggingMiddleware.func3 | ip: 10.10.150.9 | latency: 880.601µs | method: POST | path: /api/v1/satusehat/questionnaireresponse | request_id: 47440fa3-855c-46af-b76b-3f98b793fe33 | service: service-general | status: 400 | user_agent: Apidog/1.0.0 (https://apidog.com)
[2026-05-12 06:15:13.263] [ERROR] HTTP error occurred                                     | 📍 middleware.go:235 | category: internal | environment: debug | error_code: INTERNAL_ERROR | ⚙️ service/pkg/errors.handleErrors | http_status: 500 | metadata: map[] | method: POST | path: /api/v1/satusehat/questionnaireresponse | request_id: req_1778566513262193143 | service: service-general
[2026-05-12 06:15:57.348] [ERROR] HTTP error occurred                                     | 📍 http.go:116 | category: validation | environment: debug | error_code: INVALID_INPUT | ⚙️ service/pkg/errors.LogHTTPError | http_status: 400 | metadata: map[additional_details:Kolom 'QuestionnaireURL' wajib diisi, Kolom 'Subject' wajib diisi, Kolom 'Authored' wajib diisi, Kolom 'Items' wajib diisi reason:Key: 'QuestionnaireResponseRequest.QuestionnaireURL' Error:Field validation for 'QuestionnaireURL' failed on the 'required' tag
Key: 'QuestionnaireResponseRequest.Subject' Error:Field validation for 'Subject' failed on the 'required' tag
Key: 'QuestionnaireResponseRequest.Authored' Error:Field validation for 'Authored' failed on the 'required' tag
Key: 'QuestionnaireResponseRequest.Items' Error:Field validation for 'Items' failed on the 'required' tag timestamp:2026-05-12T06:15:57Z] | method: POST | path: /api/v1/satusehat/questionnaireresponse | service: service-general
[2026-05-12 06:15:57.348] [WARNI] HTTP Request                                            | 📍 middleware.go:175 | environment: debug | ❌ ERROR: Error #01: Key: 'QuestionnaireResponseRequest.QuestionnaireURL' Error:Field validation for 'QuestionnaireURL' failed on the 'required' tag
Key: 'QuestionnaireResponseRequest.Subject' Error:Field validation for 'Subject' failed on the 'required' tag
Key: 'QuestionnaireResponseRequest.Authored' Error:Field validation for 'Authored' failed on the 'required' tag
Key: 'QuestionnaireResponseRequest.Items' Error:Field validation for 'Items' failed on the 'required' tag
 | ⚙️ service/internal/infrastructure/transport/http/servers.NewHTTPServer.LoggingMiddleware.func3 | ip: 10.10.150.9 | latency: 922.668µs | method: POST | path: /api/v1/satusehat/questionnaireresponse | request_id: 95cb1861-edf0-4f8e-840c-f00334724a66 | service: service-general | status: 400 | user_agent: Apidog/1.0.0 (https://apidog.com)
[2026-05-12 06:15:57.348] [ERROR] HTTP error occurred                                     | 📍 middleware.go:235 | category: internal | environment: debug | error_code: INTERNAL_ERROR | ⚙️ service/pkg/errors.handleErrors | http_status: 500 | metadata: map[] | method: POST | path: /api/v1/satusehat/questionnaireresponse | request_id: req_1778566557347515048 | service: service-general
[2026-05-12 06:20:19.094] [WARNI] HTTP Request                                            | 📍 middleware.go:175 | environment: debug | ⚙️ service/internal/infrastructure/transport/http/servers.NewHTTPServer.LoggingMiddleware.func3 | ip: 10.10.150.106 | latency: 538.087µs | method: GET | path: /api/v1/satusehat/episodeofcare/c283a23f-9524-4cc5-97e2-a290ab7d4cd9 | request_id: cc635c89-9731-4ce0-8503-8c2d89815cbc | service: service-general | status: 401 | user_agent: Apidog/1.0.0 (https://apidog.com)
[2026-05-12 06:20:29.271] [ERROR] HTTP error occurred                                     | 📍 http.go:116 | category: unauthorized | environment: debug | error_code: UNAUTHORIZED | ⚙️ service/pkg/errors.LogHTTPError | http_status: 401 | metadata: map[reason:map[provider_errors:map[jwt:invalid token keycloak:token expired] severity:warning timestamp:2026-05-12T06:20:29Z] timestamp:2026-05-12T06:20:29Z] | method: GET | path: /api/v1/satusehat/episodeofcare/c283a23f-9524-4cc5-97e2-a290ab7d4cd9 | service: service-general
[2026-05-12 06:20:29.271] [WARNI] HTTP Request                                            | 📍 middleware.go:175 | environment: debug | ⚙️ service/internal/infrastructure/transport/http/servers.NewHTTPServer.LoggingMiddleware.func3 | ip: 10.10.150.106 | latency: 917.47µs | method: GET | path: /api/v1/satusehat/episodeofcare/c283a23f-9524-4cc5-97e2-a290ab7d4cd9 | request_id: 3924c497-716b-4f96-a330-491217444db5 | service: service-general | status: 401 | user_agent: Apidog/1.0.0 (https://apidog.com)
[2026-05-12 06:20:41.310] [INFO ] HTTP Request                                            | 📍 middleware.go:177 | environment: debug | ⚙️ service/internal/infrastructure/transport/http/servers.NewHTTPServer.LoggingMiddleware.func3 | ip: 10.10.150.106 | latency: 415.375µs | method: POST | path: /api/v1/auth/login | request_id: cf0ca958-defe-48fd-8f20-8efa2d39c6be | service: service-general | status: 200 | user_agent: Apidog/1.0.0 (https://apidog.com)
[2026-05-12 06:20:45.281] [INFO ] 🛫 SatuSehat API Request Sent                            | 📍 client.go:216 | environment: debug | ⚙️ service/internal/interfaces/satusehat.(*client).do | method: GET | service: service-general | target_url: https://api-satusehat.kemkes.go.id/fhir-r4/v1/EpisodeOfCare/c283a23f-9524-4cc5-97e2-a290ab7d4cd9
[2026-05-12 06:20:45.530] [INFO ] HTTP Request                                            | 📍 middleware.go:177 | environment: debug | ⚙️ service/internal/infrastructure/transport/http/servers.NewHTTPServer.LoggingMiddleware.func3 | ip: 10.10.150.106 | latency: 250.123784ms | method: GET | path: /api/v1/satusehat/episodeofcare/c283a23f-9524-4cc5-97e2-a290ab7d4cd9 | request_id: 9012b273-eebe-410a-b16c-c25cac6b1834 | service: service-general | status: 200 | user_agent: Apidog/1.0.0 (https://apidog.com)
[2026-05-12 06:21:49.130] [INFO ] 🛫 SatuSehat API Request Sent                            | 📍 client.go:216 | environment: debug | ⚙️ service/internal/interfaces/satusehat.(*client).do | method: GET | service: service-general | target_url: https://api-satusehat.kemkes.go.id/fhir-r4/v1/QuestionnaireResponse?
[2026-05-12 06:21:49.250] [ERROR] SatuSehat API Error                                     | 📍 client.go:266 | environment: debug | ⚙️ service/internal/interfaces/satusehat.(*client).do | response: 
        {
          "resourceType": "OperationOutcome",
          "issue": [
            {
              "severity": "error",
              "code": "value",
              "details": {
                "text": "Invalid query"
              },
              "diagnostics": "Missing query parameters: subject"
            }
          ]
        }
       | service: service-general | status_code: 400
[2026-05-12 06:21:49.250] [WARNI] HTTP Request                                            | 📍 middleware.go:175 | environment: debug | ❌ ERROR: Error #01: Failed to execute request to SatuSehat: SatuSehat API Error (HTTP 400)
 | ⚙️ service/internal/infrastructure/transport/http/servers.NewHTTPServer.LoggingMiddleware.func3 | ip: 10.10.150.106 | latency: 120.957551ms | method: GET | path: /api/v1/satusehat/questionnaireresponse | request_id: 65943a2e-854b-4109-956b-d4ad46b525da | service: service-general | status: 400 | user_agent: Apidog/1.0.0 (https://apidog.com)
[2026-05-12 06:21:49.250] [ERROR] HTTP error occurred                                     | 📍 middleware.go:235 | category: internal | environment: debug | error_code: INTERNAL_ERROR | ⚙️ service/pkg/errors.handleErrors | http_status: 500 | metadata: map[severity:error timestamp:2026-05-12T06:21:49Z] | method: GET | path: /api/v1/satusehat/questionnaireresponse | request_id: req_1778566909129705428 | service: service-general
