forked from tech-by-design/polyglot-prime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add qe wise description pages under needs attention tech-by-des…
- Loading branch information
Showing
8 changed files
with
808 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
hub-prime/src/main/java/org/techbd/service/http/hub/prime/ux/NeedAttentionController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
package org.techbd.service.http.hub.prime.ux; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
import org.springframework.stereotype.Controller; | ||
import org.springframework.ui.Model; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.techbd.orchestrate.sftp.SftpManager; | ||
import org.techbd.service.http.SandboxHelpers; | ||
import org.techbd.service.http.hub.prime.route.RouteMapping; | ||
import org.techbd.udi.UdiPrimeJpaConfig; | ||
|
||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import jakarta.servlet.http.HttpServletRequest; | ||
|
||
|
||
|
||
@Controller | ||
@Tag(name = "Need Attention of Tenant") | ||
public class NeedAttentionController { | ||
@SuppressWarnings("unused") | ||
private static final Logger LOG = LoggerFactory.getLogger(DataQualityController.class.getName()); | ||
|
||
private final Presentation presentation; | ||
|
||
public NeedAttentionController(final Presentation presentation, | ||
@SuppressWarnings("PMD.UnusedFormalParameter") final UdiPrimeJpaConfig udiPrimeJpaConfig, | ||
@SuppressWarnings("PMD.UnusedFormalParameter") final SftpManager sftpManager, | ||
@SuppressWarnings("PMD.UnusedFormalParameter") final SandboxHelpers sboxHelpers) { | ||
this.presentation = presentation; | ||
} | ||
|
||
public List<String> getValuesForField(String field) { | ||
List<String> values = Arrays.asList(field); | ||
return values; | ||
} | ||
|
||
@GetMapping("/needs-attention") | ||
@RouteMapping(label = "Needs Attention", title = "Needs Attention", siblingOrder = 100) | ||
public String diagnosticsFhirNeedsAttention() { | ||
return "redirect:/data-quality/needs-attention"; | ||
} | ||
|
||
@GetMapping("/needs-attention/scn-to-qe") | ||
@RouteMapping(label = "CrossRoads SCN to QE", title = "Needs Attention", siblingOrder = 5) | ||
public String diagnosticsFhirNeedsAttentionScnToQe(final Model model, final HttpServletRequest request) { | ||
|
||
model.addAttribute("qeName", request.getParameter("qeName")); | ||
String templateName = "page/diagnostics/scn-to-qe"; | ||
return presentation.populateModel(templateName, model, request); | ||
|
||
} | ||
|
||
@GetMapping("/needs-attention/qe-to-techbd") | ||
@RouteMapping(label = "QE to TechBD", title = "Needs Attention", siblingOrder = 6) | ||
public String diagnosticsFhirNeedsAttentionQeToTechbd(final Model model, final HttpServletRequest request) { | ||
|
||
model.addAttribute("qeName", request.getParameter("qeName")); | ||
String templateName = "page/diagnostics/qe-to-techbd"; | ||
return presentation.populateModel(templateName, model, request); | ||
|
||
} | ||
|
||
|
||
@GetMapping("/needs-attention/techbd-to-scoring-engine") | ||
@RouteMapping(label = "TechBD to Scoring Engine", title = "Needs Attention", siblingOrder = 7) | ||
public String diagnosticsFhirNeedsAttentionTechbdToScoringEngine(final Model model, final HttpServletRequest request) { | ||
|
||
model.addAttribute("qeName", request.getParameter("qeName")); | ||
String templateName = "page/diagnostics/techbd-to-scoring-engine"; | ||
return presentation.populateModel(templateName, model, request); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.