Skip to main content

Health data models for WellAlly platform

Project description

WellAlly Python SDK

Python data models for the WellAlly health data platform.

Website: https://www.wellally.tech/

Installation

pip install wellally

Features

  • 🏥 Lab Reports: Structured laboratory test results with LOINC codes
  • 🔬 Imaging Reports: Diagnostic imaging reports with DICOM support
  • 💊 Medications: Medication records with RxNorm codes
  • 👤 Personal Health: Individual health records following FHIR standards
  • 👨‍👩‍👧‍👦 Family Health: Family health trees for genetic tracking

Usage

Lab Report Example

from wellally import LabReport, LabResult, CodeableConcept, Coding, Quantity
from datetime import datetime

# Create a lab result
result = LabResult(
    code=CodeableConcept(
        coding=[Coding(
            system="http://loinc.org",
            code="2339-0",
            display="Glucose"
        )]
    ),
    value=Quantity(value=95.0, unit="mg/dL"),
    interpretation="N"
)

# Create a lab report
report = LabReport(
    id="lab-001",
    patientId="patient-123",
    issuedAt=datetime.now(),
    results=[result]
)

Personal Health Record Example

from wellally import Person, HumanName
from datetime import date

person = Person(
    id="patient-123",
    name=[HumanName(
        family="Zhang",
        given=["San"]
    )],
    birthDate=date(1990, 1, 1),
    gender="male"
)

Data Models

Common Types

  • Coding: Coded value from a terminology system
  • CodeableConcept: Concept with multiple codes
  • Quantity: Measured value with UCUM unit
  • HumanName: Structured person name
  • ContactPoint: Contact information
  • Address: Postal address

Domain Models

  • LabReport: Laboratory test report
  • ImagingReport: Diagnostic imaging report
  • MedicationRecord: Medication administration record
  • Person: Personal health record
  • FamilyHealthTree: Family health tree

Standards Compliance

This package implements data models based on:

  • HL7 FHIR (Fast Healthcare Interoperability Resources)
  • LOINC (Logical Observation Identifiers Names and Codes)
  • SNOMED CT (Systematized Nomenclature of Medicine)
  • RxNorm (medication naming)
  • UCUM (Unified Code for Units of Measure)
  • DICOM (Digital Imaging and Communications in Medicine)

License

MIT License - see LICENSE file for details

Support

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

wellally-0.1.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

wellally-0.1.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file wellally-0.1.0.tar.gz.

File metadata

  • Download URL: wellally-0.1.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for wellally-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dbb041bc444132533f6af9f5eb6d750b60763626a3011ef2a19e46d5a44ffe1c
MD5 486b600a96133099ec4161593091c77a
BLAKE2b-256 f2609fc18ec9cc5d643de987fd759e8aa6371eea8f3713321a2cdebadc7a806b

See more details on using hashes here.

File details

Details for the file wellally-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: wellally-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for wellally-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f849049953250a60924bf7f463f52c73cb9f669674475390253f204744b3489
MD5 023476a7ccd0743868e20c83e740e76c
BLAKE2b-256 cd5224e0304e96ba9137fdd11bdf984b474d4841abe98096c43f6e07fb1b5831

See more details on using hashes here.

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