Medical-Event-Data-Standard / meds

Schema definitions and Python types for Medical Event Data Standard, a standard for medical event data such as EHR and claims data
Apache License 2.0
38 stars 3 forks source link

Add tests for the three schema (patient_schema, label, dataset_metadata) #5

Closed tompollard closed 10 months ago

tompollard commented 11 months ago

This pull request adds three simple unit tests that check mock data matches the MEDS schema (patient_schema, label, dataset_metadata).

The tests can be run with:

pytest -v
tompollard commented 10 months ago

@mmcdermott @EthanSteinberg Happy 2024! 🎉

The changes in this pull request are minimal and easily reversible, so I would like to go ahead and merge.

I plan to do this at the end of today (then https://github.com/Medical-Event-Data-Standard/meds/pull/6 after rebasing on main), unless someone shouts in the meantime...

tompollard commented 10 months ago

Thanks Ethan, I switched to from_pylist as suggested.