sh977218 / ts-etl-ui

0 stars 0 forks source link

load request - fetch the dropdown value from API #194

Closed sh977218 closed 1 month ago

sh977218 commented 3 months ago

there are few dropdowns, we hard coded the values in the frontend. We will use APIs to fetch the values

  1. Code System Name
    {
    "status": {
    "success": true
    },
    "service": {
    "url": "/property/code-systems",
    "accessTime": "2024-08-23 08:38:13",
    "duration": 365
    },
    "result": {
    "data": [
      {
        "value": "ATC"
      },
      {
        "value": "CDT"
      },
      {
        "value": "CPT"
      },
      {
        "value": "DRUGBANK"
      },
      {
        "value": "GS"
      },
      {
        "value": "HCPCS"
      },
      {
        "value": "HPO"
      },
      {
        "value": "ICD10CM"
      },
      {
        "value": "ICD10PCS"
      },
      {
        "value": "LOINC"
      },
      {
        "value": "MESH"
      },
      {
        "value": "MMSL"
      },
      {
        "value": "MTHSPL"
      },
      {
        "value": "RXNORM"
      },
      {
        "value": "SNOMEDCT"
      },
      {
        "value": "SNOMEDCT_VET"
      },
      {
        "value": "UNII"
      },
      {
        "value": "USP"
      },
      {
        "value": "VANDF"
      }
    ],
    "hasPagination": false,
    "pagination": {
      "totalCount": 19,
      "page": 1,
      "pageSize": 0
    }
    }
    }
  2. Status
    {
    "status": {
    "success": true
    },
    "service": {
    "url": "/property/request-statuses",
    "accessTime": "2024-08-23 08:42:46",
    "duration": 355
    },
    "result": {
    "data": [
      {
        "value": "Aborted"
      },
      {
        "value": "Complete"
      },
      {
        "value": "Failed"
      },
      {
        "value": "In Progress"
      },
      {
        "value": "Incomplete"
      },
      {
        "value": "Stopped"
      }
    ],
    "hasPagination": false,
    "pagination": {
      "totalCount": 6,
      "page": 1,
      "pageSize": 0
    }
    }
    }
  3. Request Type
    "status": {
    "success": true
    },
    "service": {
    "url": "/property/request-types",
    "accessTime": "2024-08-23 08:41:37",
    "duration": 365
    },
    "result": {
    "data": [
      {
        "value": "Emergency"
      },
      {
        "value": "Master Job"
      },
      {
        "value": "Regular"
      },
      {
        "value": "Scheduled"
      }
    ],
    "hasPagination": false,
    "pagination": {
      "totalCount": 4,
      "page": 1,
      "pageSize": 0
    }
    }
    }
ludetc commented 3 months ago

really?? code system name is going to change? What is the purpose of this?

sh977218 commented 3 months ago

I do not know what final decision would be (where the dropdown options values come from - Backend/DB/Frontend, or they are be changed overtime), but just put this placeholder here to track the progress.

ludetc commented 3 months ago

let's re-open this when we know what the ticket is about.