Skip to content

Refactor /query/data Endpoint and Remove Obsolete /query/data/{queryId} #710

@Shayan1375

Description

@Shayan1375

ToDo

  1. Endpoint Update:
    The endpoint /query/data should return the following JSON Array object:

    {
        "id": 1,
        "comment": "Lorem ipsum",
        "createdBy": "fc846e87-6ed6-43f7-83af-72537a2ead19",
        "label": "test1111",
        "lastModified": "2025-09-19T12:09:24.023006Z",
        "ccdl": {
            "exists": true,
            "isValid": true
        },
        "dataExtraction": {
            "exists": true,
            "isValid": true
        },
        "resultSize": 0
    }
    
    

Notes:

  • The lastModified timestamp should follow ISO 8601 format. Please verify if this is already implemented.
  • The field ResultSize should be renamed to totalNumberOfPatients — this aligns with the naming convention used in the endpoint /query/feasibility/{queryId}/summary-result.
  • Add comment to the object
  • Add createdBy to the object
  1. Endpoint Removal:
    The endpoint /query/data/{queryId} is obsolete and can be safely removed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions