OMOP: add observation_period and visit_detail to the default config
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- data, machine-learning
Hướng nghiên cứu
Start with the table list in pyhealth/datasets/configs/omop.yaml and the docstring in pyhealth/datasets/omop.py near lines 38-39, which promises observation and device_exposure. Add the missing table entries, then check that passing them no longer raises "Table ... not found in config". Before writing code, wait for maintainers to answer the two open questions (config version and task option versus filter), since they decide the shape of the change.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I am Koji Miyazawa, a data scientist based in Japan. I work with healthcare big data, including DPC inpatient data and Japanese claims data. I use Bayesian statistics and machine learning. I build data warehouses. I maintain jpomop (https://github.com/kojikojikojikoji/jpomop), which converts Japanese DPC data to the OMOP CDM.
What I found (main at b984552):
-
The default OMOP config loads seven tables: person, visit_occurrence, death, condition_occurrence, procedure_occurrence, drug_exposure and measurement. It has no observation_period, visit_detail or observation.
https://github.com/sunlabuiuc/PyHealth/blob/b9845528fe85ed3afb614a10b1f0b8ba32ef1668/pyhealth/datasets/configs/omop.yaml -
The OMOPDataset docstring says observation and device_exposure can be added. They are not in the config, so passing them raises "Table ... not found in config".
https://github.com/sunlabuiuc/PyHealth/blob/b9845528fe85ed3afb614a10b1f0b8ba32ef1668/pyhealth/datasets/omop.py#L38-L39 -
MortalityPredictionOMOP gives label 1 if the person has any death record, and 0 if not. It does not check how long the person was observed.
https://github.com/sunlabuiuc/PyHealth/blob/b9845528fe85ed3afb614a10b1f0b8ba32ef1668/pyhealth/tasks/mortality_prediction.py#L1125-L1136
The CDM v5.4 docs say that outside observation_period, "absence of an Event ... cannot be construed as evidence of absence of an Event." A person who leaves the data early can get label 0 even when we do not know the outcome.
https://ohdsi.github.io/CommonDataModel/cdm54.html#observation_period
My proposal:
- Add observation_period and visit_detail to omop.yaml. Maybe also add observation and device_exposure to match the docstring.
- Optional: in tasks, use observation_period to drop samples without enough follow-up. Keep this off by default, so current results do not change.
I can test this with synthetic OMOP data converted from DPC by jpomop. jpomop builds observation_period. It also builds visit_detail from daily ward codes.
Questions:
- Should the config stay at "5.3", or move to 5.4?
- Is a task option fine, or do you prefer a separate filter?
Would a PR be welcome?
- Ngôn ngữ chính
- Python
- Star
- 1.7k
- Fork
- 803
- Merge trung bình
- 5 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 56
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của sunlabuiuc/PyHealth
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
sunlabuiuc/PyHealth#1333 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
sunlabuiuc/PyHealth#1297 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
sunlabuiuc/PyHealth#1295 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Internal transfers are counted as readmissionsCó thể đã có người làm @thebean27 đã nhận 21 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
sunlabuiuc/PyHealth#1269 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
PyHealth 2.0: several modules still target the 1.x dataset APICó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
sunlabuiuc/PyHealth#1201 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của sunlabuiuc/PyHealth
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
521xueweihan/HelloGitHub#4150 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
aws-samples/sample-per-model-bedrock#595 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug connectors
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 67/100
pyinfra-dev/pyinfra#2036 ·
Maintainer thường phản hồi trong vòng 9 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày