Skip to main content

A Pythonic interface for MEDS datasets

Project description

meds_reader: A Pythonic interface for MEDS datasets

pypy docs Build wheels License

meds_reader is a fast and easy-to-use library for reading and processing subject data stored in MEDS (Medical Event Data Standard) format using a Python-native API.

Inspired by HuggingFace Datasets, meds_reader transforms MEDS datasets into collections of Python objects, that can then be processed using normal Python functions.

Example

# First we need to convert to a database
# That requires running the following command in a terminal
$ meds_reader_convert mimic_meds mimic_meds_reader --num_threads 4
# Now we can use Python to interact with our data
import meds_reader

# We can now construct a database
database = meds_reader.SubjectDatabase("mimic_meds_reader")

# Databases are dict-like objects that store subject data

# We can iterate through all the subject ids in the database
for subject_id in database:

    # We can retrieve subject data given a subject_id
    subject = database[subject_id]

    # Subject data can be manipulated with normal Python operations
    print(subject.subject_id)
    for event in subject.events:
        print(event.time, event.code)

        # We can also iterate through all properties in a generic manner
        for property_name, property_value in event:
            print(property_name, property_value)

To learn more, see our full documentation.

Installation

meds_reader can be installed using pip.

pip install meds_reader

Interactive Demo

An interactive demo can be found at Google Colab.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meds_reader-0.1.16.tar.gz (73.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

meds_reader-0.1.16-cp313-cp313-manylinux_2_28_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

meds_reader-0.1.16-cp313-cp313-macosx_12_0_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.13macOS 12.0+ x86-64

meds_reader-0.1.16-cp313-cp313-macosx_12_0_arm64.whl (3.1 MB view details)

Uploaded CPython 3.13macOS 12.0+ ARM64

meds_reader-0.1.16-cp312-cp312-win_amd64.whl (6.5 MB view details)

Uploaded CPython 3.12Windows x86-64

meds_reader-0.1.16-cp312-cp312-manylinux_2_28_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

meds_reader-0.1.16-cp312-cp312-macosx_12_0_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.12macOS 12.0+ x86-64

meds_reader-0.1.16-cp312-cp312-macosx_12_0_arm64.whl (3.1 MB view details)

Uploaded CPython 3.12macOS 12.0+ ARM64

meds_reader-0.1.16-cp311-cp311-win_amd64.whl (6.5 MB view details)

Uploaded CPython 3.11Windows x86-64

meds_reader-0.1.16-cp311-cp311-manylinux_2_28_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

meds_reader-0.1.16-cp311-cp311-macosx_12_0_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.11macOS 12.0+ x86-64

meds_reader-0.1.16-cp311-cp311-macosx_12_0_arm64.whl (3.1 MB view details)

Uploaded CPython 3.11macOS 12.0+ ARM64

meds_reader-0.1.16-cp310-cp310-win_amd64.whl (6.5 MB view details)

Uploaded CPython 3.10Windows x86-64

meds_reader-0.1.16-cp310-cp310-manylinux_2_28_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

meds_reader-0.1.16-cp310-cp310-macosx_12_0_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.10macOS 12.0+ x86-64

meds_reader-0.1.16-cp310-cp310-macosx_12_0_arm64.whl (3.1 MB view details)

Uploaded CPython 3.10macOS 12.0+ ARM64

meds_reader-0.1.16-cp39-cp39-win_amd64.whl (6.5 MB view details)

Uploaded CPython 3.9Windows x86-64

meds_reader-0.1.16-cp39-cp39-manylinux_2_28_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

meds_reader-0.1.16-cp39-cp39-macosx_12_0_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.9macOS 12.0+ x86-64

meds_reader-0.1.16-cp39-cp39-macosx_12_0_arm64.whl (3.1 MB view details)

Uploaded CPython 3.9macOS 12.0+ ARM64

File details

Details for the file meds_reader-0.1.16.tar.gz.

File metadata

  • Download URL: meds_reader-0.1.16.tar.gz
  • Upload date:
  • Size: 73.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for meds_reader-0.1.16.tar.gz
Algorithm Hash digest
SHA256 479098fd128cddbf16b692ebfd43227d9009e183cb5dfbe422accd08d854e904
MD5 2cd7d83a1a9b99bdbd294970c41c7918
BLAKE2b-256 8e57a292df2460620dd03a82c3183f4d20f2a723a4ff86d1e4ed942404d95ba8

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.16.tar.gz:

Publisher: python-build.yml on som-shahlab/meds_reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file meds_reader-0.1.16-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.16-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9ec9984d8d60022c531237a74663446bed7322cf14219aeb99d0d4f56e2ffe41
MD5 2aa4015658627a40b184081b30ab07f5
BLAKE2b-256 7473321ff9813ea72bd4f5628e51c5ae7b6c4aa1f4b7aae32966676b16f8dd55

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.16-cp313-cp313-manylinux_2_28_x86_64.whl:

Publisher: python-build.yml on som-shahlab/meds_reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file meds_reader-0.1.16-cp313-cp313-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.16-cp313-cp313-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 a3a729f0040792f283fdde317f580351a17130ad25ebe2c92b153feec3723645
MD5 32c0fa2c391a90f21b8a05c9d5c5b7f4
BLAKE2b-256 2f8214ff9097a0d3d1bc08330effcecad21ddb1c99d2272322638763a82aea70

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.16-cp313-cp313-macosx_12_0_x86_64.whl:

Publisher: python-build.yml on som-shahlab/meds_reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file meds_reader-0.1.16-cp313-cp313-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.16-cp313-cp313-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 41893bb227d49e09b15b47664220dd4f57045cb7b516a515fd0d37bb042d7c59
MD5 e67cb250baf957d30c010dc751d23dbf
BLAKE2b-256 4be4df61ee6b07f22e7b25cecda2fde4c02d64bc3474275b52f6424255bfd191

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.16-cp313-cp313-macosx_12_0_arm64.whl:

Publisher: python-build.yml on som-shahlab/meds_reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file meds_reader-0.1.16-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.16-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c87599d6c72eb93e0b6b056a79229bbaf4a5ab5d983364fe9ef7a315674a6f8b
MD5 a2422641c1346d51c69df7d9714448f0
BLAKE2b-256 527b0e86bfeadb21009f1c1b19b9e92a855c0ed669d7e4877950cc2af11e1278

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.16-cp312-cp312-win_amd64.whl:

Publisher: python-build.yml on som-shahlab/meds_reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file meds_reader-0.1.16-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.16-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 350edb437ca3b2f47c57e2b5241a65d15ca946c07b5f46f0653060642ae2310e
MD5 df2d1ccaf350a410ee01110195b19f61
BLAKE2b-256 f21a2b302442f7af4aac07b0c3fbad0cdd40160788d33a4a0a4782c636e07c57

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.16-cp312-cp312-manylinux_2_28_x86_64.whl:

Publisher: python-build.yml on som-shahlab/meds_reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file meds_reader-0.1.16-cp312-cp312-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.16-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 7166e9a8cb3560f1da7a7cc04cb55127aaeee2ac250ae7f520a77438ec782ec4
MD5 8244a0fc173318f1af6b79ea04b67f27
BLAKE2b-256 03ac400ca3e8ff22ce0748c491a33da4235504301d8e67d30a208efe085c1962

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.16-cp312-cp312-macosx_12_0_x86_64.whl:

Publisher: python-build.yml on som-shahlab/meds_reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file meds_reader-0.1.16-cp312-cp312-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.16-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 674844e4f27d8c2173fbf82534d0244030a7991d7cab64fb47dd0741b45ec956
MD5 9790813fc2de34030f77772376c92f61
BLAKE2b-256 54a58ee3ed81cbaf9066dc66d827666dda08f351c573c16d33e4227fb33ca052

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.16-cp312-cp312-macosx_12_0_arm64.whl:

Publisher: python-build.yml on som-shahlab/meds_reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file meds_reader-0.1.16-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.16-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b883ff9036a4fa21e8e4e77657959de68a485d92d544f11b466925f981de0fec
MD5 34ac55a5e10b3ae80ad5aad14792cd8a
BLAKE2b-256 6814932b89f7012a90d850fa7fbf6206299df37459e1b9077e377ccd18655c0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.16-cp311-cp311-win_amd64.whl:

Publisher: python-build.yml on som-shahlab/meds_reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file meds_reader-0.1.16-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.16-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2cc674cdd509ca79b91bfc6f0abbf8eb3762d6e4982b9c2313367e3cf1aea250
MD5 f5c71c417fac5e30af3bf7ae444c9836
BLAKE2b-256 307524d79836b618bd07b62231313e9d83d336497fd220dffceec327c91ae4d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.16-cp311-cp311-manylinux_2_28_x86_64.whl:

Publisher: python-build.yml on som-shahlab/meds_reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file meds_reader-0.1.16-cp311-cp311-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.16-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 38b0f1f9cde3c04d0cd4c1ad92d83b80ebeea8a8ea711157bd1e2caab6173fff
MD5 78b3497bb9afa1642ba0cf1b737e051c
BLAKE2b-256 8acffdbbfea7c677515b88a30e33d162775620b77837cf938ba25a48a018e29c

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.16-cp311-cp311-macosx_12_0_x86_64.whl:

Publisher: python-build.yml on som-shahlab/meds_reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file meds_reader-0.1.16-cp311-cp311-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.16-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 f916b72fba33da7350a622d7fbd4b3f29400243c46f012133784222a7a42d8b0
MD5 188e028d5d217697f74fce64fc7dffcc
BLAKE2b-256 cdb56857f229ff3ca4360f1417845a8b27245c240de26a843d4c36d7faf7c896

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.16-cp311-cp311-macosx_12_0_arm64.whl:

Publisher: python-build.yml on som-shahlab/meds_reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file meds_reader-0.1.16-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.16-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 799af6e8a0bc0a2a08217bf1f6aa657863ec314c4e87e703117a13f627534f3c
MD5 a716db96f7f4e92f4c3eb622978b06a7
BLAKE2b-256 f85159d4b33e3f339b1bc9e42f2d3bd63c34e0f4ffc8a250103d5aac2f96cb9a

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.16-cp310-cp310-win_amd64.whl:

Publisher: python-build.yml on som-shahlab/meds_reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file meds_reader-0.1.16-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.16-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ef668bd4b6b1d4df4bd53fb6ed1cf820d10a7bf1bc45196a5975327d6ad218c6
MD5 901fe704f2ef34dee0494bd78317d15f
BLAKE2b-256 e8bf99cad9083cbb5c013a1d8c4b3f1a68bb82381b2c7194b1c3af59df31f7e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.16-cp310-cp310-manylinux_2_28_x86_64.whl:

Publisher: python-build.yml on som-shahlab/meds_reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file meds_reader-0.1.16-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.16-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 be847cf758a5a4d5acc58cd74b3d2f0b2646676054dff9d8738efff92bfb520a
MD5 783d67bcabd9b0b75ec510d662b087e3
BLAKE2b-256 e35ffc4a5f4edc52bd3ab6ee269ab4f3954829124314072bea698f67ca899450

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.16-cp310-cp310-macosx_12_0_x86_64.whl:

Publisher: python-build.yml on som-shahlab/meds_reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file meds_reader-0.1.16-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.16-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 c0cb69c8e6ba38a33ef3b4bbb769a239f9392892287ef5b54ea88888942aae2c
MD5 018665273d2cfc7f4c2fc9910c9f2f63
BLAKE2b-256 3728f5f99d69488fcf2b0231777811040b715ecd356f124e53a1d97a905821e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.16-cp310-cp310-macosx_12_0_arm64.whl:

Publisher: python-build.yml on som-shahlab/meds_reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file meds_reader-0.1.16-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: meds_reader-0.1.16-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 6.5 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for meds_reader-0.1.16-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c47adb2e9c0dbc2004430e3801bddb00287faff623187b71d0eb9b5f30bc70d1
MD5 77277009424d96bca84189fd63ca61b5
BLAKE2b-256 5f8c5b754d8c8769cb81e3b388151893310091d0ed221642d4e65f08b9dd14e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.16-cp39-cp39-win_amd64.whl:

Publisher: python-build.yml on som-shahlab/meds_reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file meds_reader-0.1.16-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.16-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 433367fb54370997d28f18b7ae3c34de2e5fff41c90c69041a37c6d96f9811d6
MD5 1aa0d4e2d342e1eb24874967c74a699a
BLAKE2b-256 4ba52807be76a942941e069111c3b9ffcda9dca60ec4064f7902af1ce86a0908

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.16-cp39-cp39-manylinux_2_28_x86_64.whl:

Publisher: python-build.yml on som-shahlab/meds_reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file meds_reader-0.1.16-cp39-cp39-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.16-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 3437d959d8029b190090e9b0c042e45c944aea3547413747c08eb5400abafaf8
MD5 b9e3b0b44a6a74f6ab32439b7d0cf032
BLAKE2b-256 91624c29dd206ee7e25dad9c3e1cb38f200dc96bcafae63d9675b0d3f694bd90

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.16-cp39-cp39-macosx_12_0_x86_64.whl:

Publisher: python-build.yml on som-shahlab/meds_reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file meds_reader-0.1.16-cp39-cp39-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.16-cp39-cp39-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 38bd6f508b90a4d3285463e99ad21bb7464d10856fa4adc76cc0feb2b6e3496d
MD5 5c9e213649b4fabb7e6231ff6c30db8e
BLAKE2b-256 7d8833df567588fd2802f300fd8011be3beb9933b998aa146255f584455ae620

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.16-cp39-cp39-macosx_12_0_arm64.whl:

Publisher: python-build.yml on som-shahlab/meds_reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page