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

Log unique people #141

Open
1 task
calmacx opened this issue May 18, 2022 · 0 comments
Open
1 task

Log unique people #141

calmacx opened this issue May 18, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@calmacx
Copy link
Contributor

calmacx commented May 18, 2022

Request from @erummas to add a useful feature to print unique numbers.

For each concept, e.g.:

- CommonDataModel - INFO - finished Hypertensive disorder 3050 (0x122ea8280) ... 4/4 completed, 12336 rows

-->

- CommonDataModel - INFO - finished Hypertensive disorder 3050 (0x122ea8280) ... 4/4 completed, 12336 rows
- CommonDataModel - INFO - finished Hypertensive disorder 3050 (0x122ea8280) ...  12336 rows, from XXX unique people

Alternatively... in logging we have something like..

- CommonDataModel - INFO - {
      "version": "0.0.0",
      "created_by": "calummacdonald",
      "created_at": "2022-05-18T091400",
      "dataset": "CommonDataModel::FAILED: ExampleV4",
      "total_data_processed": {
            "person": 99471,
            "observation": 97817,
            "condition_occurrence": 101063,
            "measurement": 86795
      }
}

This could say:

 "total_data_processed": {
            "person": 99471,
            "observation": 97817,
            "condition_occurrence": 101063,
            "measurement": 86795
      },
"unique": {
            "observation":X,
            "condition_occurrence": Y,
            "measurement":Z
      }

  • check does not greatly impact CPU/memory to be calculating this each loop
@calmacx calmacx added this to the 0.5.2 milestone May 18, 2022
@calmacx calmacx added the enhancement New feature or request label May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants