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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

meds_reader-0.1.12-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

meds_reader-0.1.12-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.12-cp313-cp313-macosx_12_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.13macOS 12.0+ ARM64

meds_reader-0.1.12-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

meds_reader-0.1.12-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.12-cp312-cp312-macosx_12_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.12macOS 12.0+ ARM64

meds_reader-0.1.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

meds_reader-0.1.12-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.12-cp311-cp311-macosx_12_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.11macOS 12.0+ ARM64

meds_reader-0.1.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

meds_reader-0.1.12-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.12-cp310-cp310-macosx_12_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.10macOS 12.0+ ARM64

meds_reader-0.1.12-cp39-cp39-win_amd64.whl (6.4 MB view details)

Uploaded CPython 3.9Windows x86-64

meds_reader-0.1.12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

meds_reader-0.1.12-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.12-cp39-cp39-macosx_12_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.9macOS 12.0+ ARM64

File details

Details for the file meds_reader-0.1.12-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.12-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 051b2dc2a33875e31b411a417fc1bbd6ec020eb576390cea19191a1510237303
MD5 0e3d863a28eaecb226e6da90ec7088fa
BLAKE2b-256 ddc2d063a92f72937a77968f288a64e671267f582e745ddaccc1a5bd3eefca99

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.12-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_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.12-cp313-cp313-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.12-cp313-cp313-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 375b0e488665feced0a1b3eeb2114b60b2815cddba3d5b603ce3c7dfbb94a84a
MD5 3ca9b41b9b6fc82f9b7b4ec5dca4c336
BLAKE2b-256 650972efb6a4af63234e50246a5f24a857d4de82bfc6c1916a9202fb83090d7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.12-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.12-cp313-cp313-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.12-cp313-cp313-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 04d6548d85a0c200c8f51149d0a83047d0d593473b2e5c85cbd57949b1595bbd
MD5 43eb540851980aabb6576ee1da1f6d10
BLAKE2b-256 6558c9c88beb88572a3f752a90c8df506b107cbac241850f51472c470127d61d

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.12-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.12-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.12-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4bf1ca8d4ec15af23b4aae349510a6495fe4178303be94cc52ddb541be1c745d
MD5 048f7e74ae1e988dc589a0f0717bace4
BLAKE2b-256 0c98e83671ba35d1499c39e8d9da02ecd1a36324dcada0b8505d29b1b70c0277

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.12-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_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.12-cp312-cp312-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.12-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 0ed949c2ce1914d0417427128e15350973b7ddcc0f87934b23e85a201f8059f2
MD5 82258e0e1dcc1bdb579326663051912b
BLAKE2b-256 6235428a7e26b6e3e9d5527ba073b838d3252fa84de5ed92342a3c3d1c47eb30

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.12-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.12-cp312-cp312-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.12-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 c9a8bd6579f8ddd64d9caf3556eb4e2eee7fd2ca0c81a36a76e18c1cff2422c4
MD5 c3f8555b28ce83e71f81656a94821ef3
BLAKE2b-256 afa99651d12f5e7bc8f09bce3c871a99b159e54e73f1cf21b33acae04c7a5333

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.12-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.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 33fec623d3510411c11ad50a9ff8fa966487cec30af6ea32c777daa25dac540e
MD5 be614d37afe9b55c5e4ea92b4d41aaca
BLAKE2b-256 9f60856f2cbac0554b84408e7dd8a7d6088d21ea8c8e2974b63f1d1b16e180fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_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.12-cp311-cp311-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.12-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 d67f3ed71212f1f9e7b174364ec56ea56f8dd120e73e7700198240f0deb09a0f
MD5 248cbb86928f7493ea24324a594bdbaa
BLAKE2b-256 78d593c1b3ae6c2ebe8341c2a8973e804df78dd7c7dc3ee8bb2b75f5db8d24f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.12-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.12-cp311-cp311-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.12-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 3127a847a246920926b14dc1a948d30fa0cb59ca3015580fe172b5a0d36773fc
MD5 32a2cd93a9ab167bf0dc28224ef4a08e
BLAKE2b-256 5aec4cd13aa74559c581ca71d4b25b94d9e5966e356e37be5e0e33f208cc2164

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.12-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.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9f5c9191105c97ff2fd8ca47115c68bbfd76e8bc598fd73e9eafc5ec661478cd
MD5 a0278b76db6baa386ff0f41eeb7c56ca
BLAKE2b-256 4b66f23b4b1525f64a4bf6b8fba7bfad54c3a9cdcc0f8f5919a7fe47eece6ae3

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_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.12-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.12-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 7497015dcde3c7b86344d9e090bd676589bcc1dbe123c7e14a6756a08953b583
MD5 9edba120e4a9ee1bced2c0a54d49a118
BLAKE2b-256 f41677c1638f2cc8600ed891ec4ff932abd42ee2592146c0d537cfb8621f28b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.12-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.12-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.12-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 22db54d0f3d2e5460eb5b434f44ff380c86969e95464dfb6425d76b2aeb30e4b
MD5 87fd74205be2c545cd4aae841086e883
BLAKE2b-256 04b74181b5de7e5559979a1d438619f00fed20890c3372c323a319b6834f706d

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.12-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.12-cp39-cp39-win_amd64.whl.

File metadata

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

File hashes

Hashes for meds_reader-0.1.12-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3194af6c5cb2b9c7c235aa95882a80998c2a075eb46136bd04f889cfc9c210f6
MD5 f5009402da99faf8aa8ea8701050ba40
BLAKE2b-256 80e4d279d1cc76c247253ee33b9ae412f343f223c029f2b1436159e09dfa0531

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.12-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.12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8e561c1a921b460c02f67511794772e80dc654c37238858bafa71848a597af03
MD5 16d7cda4da2e88311aa6626fe422c71c
BLAKE2b-256 ad79782b53fe856b8536404fd2ea95914dd296387dcde207c5c746f1ca702a26

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_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.12-cp39-cp39-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.12-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 83095e06785a10b870b0bfcd4fc6a4dfc9b8c2b4dbd89ecb584962abc1a1ba3d
MD5 8cd8c5ee15576558dfba53ae807244d4
BLAKE2b-256 b261c0419df3d7e76b21e06a362d40172d776d40353b9f5fdfa498cc55375c59

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.12-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.12-cp39-cp39-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for meds_reader-0.1.12-cp39-cp39-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 4e80403ba0603ac43eaea68b3bb7adcead6ead978cbbf468f75f370dc1478fb1
MD5 c669d9add00ed8772fd7868e1b1ced30
BLAKE2b-256 df0fd921816b779e010c17102320a466864e27b91ea697f993762dee92f2a674

See more details on using hashes here.

Provenance

The following attestation bundles were made for meds_reader-0.1.12-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