Skip to content

Commit 2622a78

Browse files
authored
Merge pull request #1572 from CMSgov/QPPA-8689
QPPA-8689: Remove swagger logic from codebase
2 parents 59bff89 + 4a626a9 commit 2622a78

8 files changed

Lines changed: 27 additions & 103 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ can be found in the [sample-files](sample-files/README.md) folder.
164164
165165
## Swagger Info
166166
167-
Swagger will be enabled under `/swagger-ui/index.html#/` path. And the api docs are avilable under `v3/api-docs`.
167+
Swagger documentation logic for the CT is handled in the Submissions API codebase.
168168
169169
## Want to Contribute?
170170

commons/src/main/resources/measures-data.json

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14081,8 +14081,10 @@
1408114081
"primarySteward": "College of American Pathologists",
1408214082
"isInverse": false,
1408314083
"isRiskAdjusted": false,
14084-
"isIcdImpacted": false,
14085-
"icdImpacted": [],
14084+
"isIcdImpacted": true,
14085+
"icdImpacted": [
14086+
"registry"
14087+
],
1408614088
"isClinicalGuidelineChanged": false,
1408714089
"clinicalGuidelineChanged": [],
1408814090
"companionMeasureId": [],
@@ -14820,10 +14822,6 @@
1482014822
{
1482114823
"name": "6points",
1482214824
"description": "Percentage of patients aged 14 years and older who achieved a net increase in PAM® score of at least 6 points in a 6 to 12 month period."
14823-
},
14824-
{
14825-
"name": "aveChg",
14826-
"description": "Average change between baseline PAM® score and the second score within 6 to 12 months of a baseline PAM® score."
1482714825
}
1482814826
]
1482914827
},
@@ -15142,8 +15140,7 @@
1514215140
"measureId": "510",
1514315141
"title": "First Year Standardized Waitlist Ratio (FYSWR)",
1514415142
"description": "The number of newly initiated patients on dialysis in a practitioner group who are under the age of 75 and were either listed on the kidney or kidney-pancreas transplant waitlist or received a living donor transplant within the first year of initiating dialysis. The practitioner group is inclusive of physicians and advanced practice providers. The measure is the ratio-observed number of waitlist events in a practitioner group to its expected number of waitlist events. The measure uses the expected waitlist events calculated from a Cox model, which is adjusted for age, patient comorbidities, and other risk factors at the time of dialysis.",
15145-
"metricType": "multiPerformanceRate",
15146-
"overallAlgorithm": "split",
15143+
"metricType": "nonProportion",
1514715144
"isRegistryMeasure": false,
1514815145
"firstPerformanceYear": 2025,
1514915146
"lastPerformanceYear": null,
@@ -15180,16 +15177,6 @@
1518015177
"group",
1518115178
"subgroup",
1518215179
"individual"
15183-
],
15184-
"strata": [
15185-
{
15186-
"name": "reporting",
15187-
"description": "Percentage of patients in their first year of dialysis who had documentation of waitlist status at the end of the performance period"
15188-
},
15189-
{
15190-
"name": "performance",
15191-
"description": "Ratio of the observed number of waitlist events to the number of expected waitlist events"
15192-
}
1519315180
]
1519415181
},
1519515182
{
@@ -19236,7 +19223,8 @@
1923619223
"companionMeasureId": [],
1923719224
"allowedPrograms": [
1923819225
"mips",
19239-
"app1"
19226+
"app1",
19227+
"appPlus"
1924019228
],
1924119229
"submissionMethods": [
1924219230
"certifiedSurveyVendor"
@@ -19275,7 +19263,8 @@
1927519263
"companionMeasureId": [],
1927619264
"allowedPrograms": [
1927719265
"mips",
19278-
"app1"
19266+
"app1",
19267+
"appPlus"
1927919268
],
1928019269
"submissionMethods": [
1928119270
"certifiedSurveyVendor"
@@ -19314,7 +19303,8 @@
1931419303
"companionMeasureId": [],
1931519304
"allowedPrograms": [
1931619305
"mips",
19317-
"app1"
19306+
"app1",
19307+
"appPlus"
1931819308
],
1931919309
"submissionMethods": [
1932019310
"certifiedSurveyVendor"
@@ -19353,7 +19343,8 @@
1935319343
"companionMeasureId": [],
1935419344
"allowedPrograms": [
1935519345
"mips",
19356-
"app1"
19346+
"app1",
19347+
"appPlus"
1935719348
],
1935819349
"submissionMethods": [
1935919350
"certifiedSurveyVendor"
@@ -19392,7 +19383,8 @@
1939219383
"companionMeasureId": [],
1939319384
"allowedPrograms": [
1939419385
"mips",
19395-
"app1"
19386+
"app1",
19387+
"appPlus"
1939619388
],
1939719389
"submissionMethods": [
1939819390
"certifiedSurveyVendor"
@@ -19431,7 +19423,8 @@
1943119423
"companionMeasureId": [],
1943219424
"allowedPrograms": [
1943319425
"mips",
19434-
"app1"
19426+
"app1",
19427+
"appPlus"
1943519428
],
1943619429
"submissionMethods": [
1943719430
"certifiedSurveyVendor"
@@ -19470,7 +19463,8 @@
1947019463
"companionMeasureId": [],
1947119464
"allowedPrograms": [
1947219465
"mips",
19473-
"app1"
19466+
"app1",
19467+
"appPlus"
1947419468
],
1947519469
"submissionMethods": [
1947619470
"certifiedSurveyVendor"
@@ -19509,7 +19503,8 @@
1950919503
"companionMeasureId": [],
1951019504
"allowedPrograms": [
1951119505
"mips",
19512-
"app1"
19506+
"app1",
19507+
"appPlus"
1951319508
],
1951419509
"submissionMethods": [
1951519510
"certifiedSurveyVendor"
@@ -19548,7 +19543,8 @@
1954819543
"companionMeasureId": [],
1954919544
"allowedPrograms": [
1955019545
"mips",
19551-
"app1"
19546+
"app1",
19547+
"appPlus"
1955219548
],
1955319549
"submissionMethods": [
1955419550
"certifiedSurveyVendor"
@@ -19587,7 +19583,8 @@
1958719583
"companionMeasureId": [],
1958819584
"allowedPrograms": [
1958919585
"mips",
19590-
"app1"
19586+
"app1",
19587+
"appPlus"
1959119588
],
1959219589
"submissionMethods": [
1959319590
"certifiedSurveyVendor"

rest-api/pom.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
<dependency>
156156
<groupId>org.springframework.boot</groupId>
157157
<artifactId>spring-boot-dependencies</artifactId>
158-
<version>3.4.8</version>
158+
<version>3.4.11</version>
159159
<type>pom</type>
160160
<scope>import</scope>
161161
</dependency>
@@ -227,11 +227,6 @@
227227
<artifactId>snakeyaml</artifactId>
228228
<version>2.3</version>
229229
</dependency>
230-
<dependency>
231-
<groupId>io.swagger.core.v3</groupId>
232-
<artifactId>swagger-annotations</artifactId>
233-
<version>2.2.9</version>
234-
</dependency>
235230
</dependencies>
236231
</dependencyManagement>
237232

rest-api/src/main/java/gov/cms/qpp/conversion/api/config/OpenAPIConfig.java

Lines changed: 0 additions & 19 deletions
This file was deleted.

rest-api/src/main/java/gov/cms/qpp/conversion/api/controllers/HealthCheckController.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
import gov.cms.qpp.conversion.api.model.HealthCheck;
44
import gov.cms.qpp.conversion.api.services.VersionService;
55

6-
import io.swagger.v3.oas.annotations.Operation;
7-
import io.swagger.v3.oas.annotations.media.Content;
8-
import io.swagger.v3.oas.annotations.media.Schema;
9-
import io.swagger.v3.oas.annotations.responses.ApiResponse;
10-
import io.swagger.v3.oas.annotations.responses.ApiResponses;
11-
import io.swagger.v3.oas.annotations.tags.Tag;
126
import org.springframework.http.HttpStatus;
137
import org.springframework.web.bind.annotation.GetMapping;
148
import org.springframework.web.bind.annotation.RequestMapping;
@@ -19,7 +13,6 @@
1913
/**
2014
* Controller to simply respond with status 200 with a GET /health call.
2115
*/
22-
@Tag(name = "Health Check")
2316
@RestController
2417
@RequestMapping("/health")
2518
public class HealthCheckController {
@@ -40,11 +33,6 @@ public HealthCheckController(VersionService version) {
4033
*
4134
* @return health check of version, environment variables, and system properties
4235
*/
43-
@Operation(summary = "Gets the current state of the API.", description = "Returns the environment variables, system properties and implementation version of the conversion tool.")
44-
@ApiResponses({
45-
@ApiResponse(responseCode = "200", content = { @Content(schema = @Schema(implementation = HealthCheck.class), mediaType = "application/json") }),
46-
@ApiResponse(responseCode = "404", content = { @Content(schema = @Schema()) }),
47-
@ApiResponse(responseCode = "500", content = { @Content(schema = @Schema()) }) })
4836
@GetMapping
4937
@ResponseStatus(HttpStatus.OK)
5038
public @ResponseBody HealthCheck health() {

rest-api/src/main/java/gov/cms/qpp/conversion/api/controllers/SkeletalQrdaController.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,13 @@
66
import java.util.concurrent.CompletableFuture;
77
import java.util.concurrent.ExecutionException;
88

9-
import io.swagger.v3.oas.annotations.Operation;
10-
import io.swagger.v3.oas.annotations.Parameter;
11-
import io.swagger.v3.oas.annotations.tags.Tag;
129
import org.slf4j.Logger;
1310
import org.slf4j.LoggerFactory;
1411
import org.springframework.http.HttpHeaders;
1512
import org.springframework.http.HttpStatus;
1613
import org.springframework.http.MediaType;
1714
import org.springframework.http.ResponseEntity;
1815
import org.springframework.util.ObjectUtils;
19-
import org.springframework.util.StringUtils;
2016
import org.springframework.web.bind.annotation.*;
2117
import org.springframework.web.multipart.MultipartFile;
2218

@@ -32,7 +28,6 @@
3228
/**
3329
* Controller to handle uploading files for QRDA-III Conversion
3430
*/
35-
@Tag(name="Conversion")
3631
@RestController
3732
@CrossOrigin
3833
public abstract class SkeletalQrdaController<T> {
@@ -66,8 +61,6 @@ public SkeletalQrdaController(QrdaService qrdaService, ValidationService validat
6661
* @param purpose the purpose for the conversion
6762
* @return Valid json or error json content
6863
*/
69-
@Operation(summary = "Converts QRDA3 XML to QPP JSON", description = "Converts QRDA3 XML to QPP JSON. Provide a QRDA3 XML file as a multipart file. The response body will contain the QPP JSON upon success or error JSON on failure.")
70-
@Parameter(name = "Purpose", hidden = true)
7164
@PostMapping(consumes = {"multipart/form-data"})
7265
public ResponseEntity<T> uploadQrdaFile(
7366
@RequestParam(name = "file") MultipartFile file,

rest-api/src/main/java/gov/cms/qpp/conversion/api/controllers/v1/PcfFileControllerV1.java

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
package gov.cms.qpp.conversion.api.controllers.v1;
22

3-
import io.swagger.v3.oas.annotations.Operation;
4-
import io.swagger.v3.oas.annotations.media.Content;
5-
import io.swagger.v3.oas.annotations.media.Schema;
6-
import io.swagger.v3.oas.annotations.responses.ApiResponse;
7-
import io.swagger.v3.oas.annotations.responses.ApiResponses;
8-
import io.swagger.v3.oas.annotations.tags.Tag;
93
import org.slf4j.Logger;
104
import org.slf4j.LoggerFactory;
115
import org.springframework.core.io.InputStreamResource;
126
import org.springframework.http.HttpStatus;
137
import org.springframework.http.MediaType;
148
import org.springframework.http.ResponseEntity;
159
import org.springframework.util.ObjectUtils;
16-
import org.springframework.util.StringUtils;
1710
import org.springframework.web.bind.annotation.CrossOrigin;
1811
import org.springframework.web.bind.annotation.GetMapping;
1912
import org.springframework.web.bind.annotation.PathVariable;
@@ -31,7 +24,6 @@
3124
import java.io.IOException;
3225
import java.util.List;
3326

34-
@Tag(name = "PCF Endpoints")
3527
@RestController
3628
@RequestMapping("/pcf")
3729
@CrossOrigin(allowCredentials = "false")
@@ -52,11 +44,6 @@ public PcfFileControllerV1(AdvancedApmFileService advancedApmFileService) {
5244
*
5345
* @return Valid json or error json content
5446
*/
55-
@Operation(summary = "Retrieve unprocessed files", description = "Retrieve a list of unprocessed CPC+ files.")
56-
@ApiResponses({
57-
@ApiResponse(responseCode = "200", content = { @Content(schema = @Schema(implementation = UnprocessedFileData.class), mediaType = "application/json") }),
58-
@ApiResponse(responseCode = "404", content = { @Content(schema = @Schema()) }),
59-
@ApiResponse(responseCode = "500", content = { @Content(schema = @Schema()) }) })
6047
@GetMapping(value = "/unprocessed-files/{org}",
6148
headers = {"Accept=" + Constants.V1_API_ACCEPT})
6249
public ResponseEntity<List<UnprocessedFileData>> getUnprocessedPcfPlusFiles(@PathVariable("org") String organization) {
@@ -86,11 +73,6 @@ public ResponseEntity<List<UnprocessedFileData>> getUnprocessedPcfPlusFiles(@Pat
8673
* @return object json or xml content
8774
* @throws IOException if S3Object content stream is invalid
8875
*/
89-
@Operation(summary = "Retrieve a submitted QPP JSON file", description = "Retrieves the submitted file content containing converted QPP JSON data")
90-
@ApiResponses({
91-
@ApiResponse(responseCode = "200", content = { @Content(schema = @Schema(), mediaType = "application/json") }),
92-
@ApiResponse(responseCode = "404", content = { @Content(schema = @Schema()) }),
93-
@ApiResponse(responseCode = "500", content = { @Content(schema = @Schema()) }) })
9476
@GetMapping(value = "/qpp/{fileId}",
9577
headers = {"Accept=" + Constants.V1_API_ACCEPT})
9678
public ResponseEntity<InputStreamResource> getQppById(@PathVariable("fileId") String fileId)
@@ -116,11 +98,6 @@ public ResponseEntity<InputStreamResource> getQppById(@PathVariable("fileId") St
11698
* @return object json or xml content
11799
* @throws IOException if S3Object content stream is invalid
118100
*/
119-
@Operation(summary = "Retrieve a submitted QRDA-III file", description = "Retrieves the submitted file containing QRDA-III XML data")
120-
@ApiResponses({
121-
@ApiResponse(responseCode = "200", content = { @Content(schema = @Schema(), mediaType = "application/xml") }),
122-
@ApiResponse(responseCode = "404", content = { @Content(schema = @Schema()) }),
123-
@ApiResponse(responseCode = "500", content = { @Content(schema = @Schema()) }) })
124101
@GetMapping(value = "/file/{fileId}",
125102
headers = {"Accept=" + Constants.V1_API_ACCEPT})
126103
public ResponseEntity<InputStreamResource> getFileById(@PathVariable("fileId") String fileId)
@@ -146,11 +123,6 @@ public ResponseEntity<InputStreamResource> getFileById(@PathVariable("fileId") S
146123
* @param request The new state of the file being updated
147124
* @return Message if the file was updated or not
148125
*/
149-
@Operation(summary = "Update status of CPC+ file", description = "Update the status of a CPC+ file to processed/unprocessed. Returns if the file has been updated as processed/unprocessed.")
150-
@ApiResponses({
151-
@ApiResponse(responseCode = "200", content = { @Content(schema = @Schema(), mediaType = "text/plain") }),
152-
@ApiResponse(responseCode = "404", content = { @Content(schema = @Schema()) }),
153-
@ApiResponse(responseCode = "500", content = { @Content(schema = @Schema()) }) })
154126
@PutMapping(value = "/file/{fileId}/{org}",
155127
headers = {"Accept=" +
156128
Constants.V1_API_ACCEPT})

rest-api/src/main/java/gov/cms/qpp/conversion/api/controllers/v2/ZipController.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import java.util.zip.ZipEntry;
1010
import java.util.zip.ZipFile;
1111

12-
import io.swagger.v3.oas.annotations.Hidden;
1312
import org.slf4j.Logger;
1413
import org.slf4j.LoggerFactory;
1514
import org.springframework.http.HttpHeaders;
@@ -25,7 +24,6 @@
2524
import gov.cms.qpp.conversion.api.services.QrdaService;
2625
import gov.cms.qpp.conversion.api.services.ValidationService;
2726

28-
@Hidden
2927
@RestController
3028
@RequestMapping(path = "/", headers = {"Accept=application/zip"})
3129
public class ZipController extends SkeletalQrdaController<List<ConvertResponse>> {

0 commit comments

Comments
 (0)