Skip to content
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

New longitudinal export returns more columns than the request #1285

Open
Gojo-Taqi opened this issue Jul 17, 2024 · 0 comments
Open

New longitudinal export returns more columns than the request #1285

Gojo-Taqi opened this issue Jul 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Gojo-Taqi
Copy link

Describe the bug
New longitudinal export returns more columns than the request

To Reproduce
Steps to reproduce the behavior:

  1. Follow the new longitudinal export documentation to create a request body and add only a few concepts in the export request.
  2. Click on generate export.
  3. Download the export. And in the export, you should get data for the fields that you had not even requested.

Expected behavior
It should give data as per the request.

Test Data

  • This is the request body I used while generating for a specific org "Yenepoya UAT ~(ARCHIEVED)"
{
  "individual": {
    "uuid": "d22027ff-e019-4d1c-9352-bd740efccc38",
    "fields": [
      "id",
      "uuid",
      "firstName",
      "registrationDate",
      "gender",
      "dateOfBirth"
    ],
    "filters": {
      "addressLevelIds": [],
      "date": {
        "from": "2020-01-12",
        "to": "2020-05-04"
      }
    },
    "programs": [
      {
        "uuid": "5fc20ed1-699c-4329-86f4-3884fccceb18",
        "fields": [
          "id",
          "uuid",
          "enrolmentDateTime"
        ],
        "encounters": [
          {
            "uuid": "95fe37f3-8d4d-40cc-ae13-73d65545b27e",
            "fields": [
              "id",
              "uuid",
              "name",
              "encounterDateTime",
              "cancelDateTime",
              "voided",
              "502552c4-7d2a-4e81-b6ce-acacfaf21560",
              "7e2abce5-0dfa-4fb8-8480-c5a74e3caeac"
            ],
            "filters": {
              "includeVoided": true
            }
          }
        ]
      }
    ]
  },
  "timezone": "Asia/Calcutta"
}

This is the CSV file I got from the request.

Individual (1).csv

If you look at the CSV, I am getting data for "Duration of Exclusive breastfeeding in months", "Child bottle-fed or not", etc.

@Gojo-Taqi Gojo-Taqi added the bug Something isn't working label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: New Issues
Development

No branches or pull requests

1 participant