-
Notifications
You must be signed in to change notification settings - Fork 49
1097 Abandon call real time data #356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Caution Review failedFailed to post review comments π WalkthroughWalkthroughThis release updates the platform version to 3.6.1 and introduces Elasticsearch-based beneficiary search, CTI disposition count retrieval, token-authenticated dynamic form access with user-aware field filtering and translation support, JWT request extraction utilities, and new user service role mapping infrastructure. Configuration properties are updated to reflect new endpoints and temporary file paths, and various supporting data models and repositories are added. Changes
Sequence Diagram(s)sequenceDiagram
participant Client as Client / UI
participant BenController as BeneficiaryController
participant SearchService as IEMRSearchUserService
participant IdentityService as IdentityBeneficiaryService
participant ES as Elasticsearch
Client->>BenController: POST /searchBeneficiaryES<br/>(BeneficiaryModel + auth)
BenController->>BenController: Extract userId from JWT token
BenController->>SearchService: findBeneficiaryES(model, userId, auth)
SearchService->>SearchService: Build IdentitySearchDTO<br/>from BeneficiaryModel
SearchService->>IdentityService: searchBeneficiaryListES(query, auth, is1097)
IdentityService->>IdentityService: Build ES query URL<br/>with headers
IdentityService->>ES: POST request
ES-->>IdentityService: JSON response
IdentityService-->>SearchService: Map<statusCode, data>
SearchService-->>BenController: JSON result
BenController-->>Client: OutputResponse<br/>(data or error)
sequenceDiagram
participant Client as Client / UI
participant FormController as DynamicFormController
participant FormService as FormMasterService
participant JwtUtil as JwtUtil
participant RoleRepo as UserServiceRoleRepo
participant TransRepo as TranslationRepository
participant DB as Database
Client->>FormController: GET /getStructuredForm<br/>(formId, lang, jwttoken)
FormController->>JwtUtil: Extract userId from token
FormController->>FormService: getStructuredFormByFormId<br/>(formId, lang, token)
FormService->>JwtUtil: Parse token β get userId
FormService->>RoleRepo: findByUserName(userName)
RoleRepo->>DB: Query user role & state
DB-->>RoleRepo: UserServiceRole
FormService->>DB: Fetch form & fields
DB-->>FormService: FormFields
FormService->>FormService: Filter fields by stateCode
loop For each field
FormService->>TransRepo: Get translation<br/>(label, lang)
TransRepo-->>FormService: Translated label
FormService->>FormService: Build FieldResponseDTO<br/>with isEditable, stateCode
end
FormService-->>FormController: FormResponseDTO<br/>(with translated fields)
FormController-->>Client: ResponseEntity<ApiResponse>
Estimated code review effortπ― 4 (Complex) | β±οΈ ~55 minutes Poem
π₯ Pre-merge checks | β 1 | β 2β Failed checks (2 warnings)
β Passed checks (1 passed)
βοΈ Tip: You can configure your own custom pre-merge checks in the settings. β¨ Finishing touches
π§ͺ Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
Duplicate PR of #357 |



π Description
JIRA ID:
AMM-1324
β Type of Change
Summary by CodeRabbit
Release Notes - Version 3.6.1
New Features
Improvements