Skip to main content

Pharmacy models and classes for clinicedc/edc projects

Project description

pypi actions codecov downloads

edc-pharmacy

EDC pharmacy is a simple pharmacy module for randomized control trials that can be integrated into clinicedc/edc projects.

The module includes stock management to enable a research project team to track chain-of-custody of investigational product from a central site to each research site and finally to each patient. Stock items are physically labeled using the integrated labelling functionality. Generated labels use a randomly generated stock code and code128 barcodes. Label formats are fully customizable.

When integrated with an clinicedc/edc project, study site requests for stock can be generated using the subject’s randomization assignment, followup schedule, and prescription.

Installation

pip install edc_pharmacy

More likely, edc_pharmacy is installed as a requirement of a clinicedc/edc project.

Overview

Concepts

Task at Central

  • order (central)

  • receive, label as bulk stock, confirm

  • repack/decant, label as stock, confirm

  • with site stock request, allocate to subject, label for subject

  • transfer stock to site

Tasks at Site

  • generate stock request PRN (site)

  • receive physical stock at site, confirm transfered stock at site

  • dispense to clinic/patient

  • confirm dispense to patient on CRF

Also:

  • medication

  • formulation

  • prescription

Features

  • Tracks lot# with randomization assignment

  • prints code128 label sheets (py_labels2, django_pylabel, edc_pylabel)

  • generates a stock request based on subjects with valid prescriptions (Rx) using the next scheduled visit (see edc_appointment, edc_visit_tracking, edc_visit_schedule)

  • stock are created in data but only available if confirmed by scanning barcode into system.

Details

Qty vs Unit QTY

  • QTY is the container count, e.g. 5 bottles of 128 tablets.

  • UNIT_QTY is the total number of items in the container. A bottle of 128 has unit_qty of 128 and a qty of 1.

  • All stock items start with a qty_in =1 and qty_out =0 while the unit_qty = qty_in * container.qty or as in the example above, unit_qty = 1 * 128 = 128.

  • If the unit_qty_out equals the initial unit_qty_in, e.g 128==128, the qty_out is set to 1. A stock item with qty_in =1 and qty_out =1 is not available / in stock.

Orders

Track orders of IMP by recording the LOT # and expiration date.

Repack/Decant

Create new stock from an existing stock item. The container of the new stock item cannot be the same as the source container. For example, create bottles of 128 tabs from a single bulk barrel of tablets.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

edc_pharmacy-0.3.12.tar.gz (228.5 kB view details)

Uploaded Source

Built Distribution

edc_pharmacy-0.3.12-py3-none-any.whl (285.0 kB view details)

Uploaded Python 3

File details

Details for the file edc_pharmacy-0.3.12.tar.gz.

File metadata

  • Download URL: edc_pharmacy-0.3.12.tar.gz
  • Upload date:
  • Size: 228.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for edc_pharmacy-0.3.12.tar.gz
Algorithm Hash digest
SHA256 02e5b78ded50a48ed1759ee5af5dee47d4cc2629a3c9553e3cb2b0ecaf7be018
MD5 b5b72e45fb4229168e58f8445606de19
BLAKE2b-256 a8d6a5d0ff13ab6877e66af90e5f169355699f102c4c596c146f85888468faef

See more details on using hashes here.

File details

Details for the file edc_pharmacy-0.3.12-py3-none-any.whl.

File metadata

File hashes

Hashes for edc_pharmacy-0.3.12-py3-none-any.whl
Algorithm Hash digest
SHA256 3337476165fb434754c1ed3358ccd1637ad0e779a6650c423986ea465003ac02
MD5 fc28ba8209b9931e45305238c0608dfa
BLAKE2b-256 166cb70eb28ae8be2d06a60aff77f000f711262d583d118dede2da792948e9d0

See more details on using hashes here.

Supported by

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