Skip to main content

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.

User Testing

Watermarks

Print a watermark on labels during UAT deployments

EDC_PHARMACY_LABEL_WATERMARK_WORD = "DO NOT USE"

See also pylabels2.

Print watermark on reports during UAT deployments

EDC_PDF_REPORTS_WATERMARK_WORD = "SAMPLE"
EDC_PDF_REPORTS_WATERMARK_FONT = ("Helvetica", 100)

See also edc-pdf-reports.

Release files for edc-pharmacy 1.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for edc-pharmacy 1.2.3
File Size Uploaded
edc_pharmacy-1.2.3.tar.gz 264.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for edc-pharmacy 1.2.3
File Interpreter ABI Platform
edc_pharmacy-1.2.3-py3-none-any.whl Python 3 none any Details

Total release size:631.3 kB

Release files / edc_pharmacy-1.2.3.tar.gz

Download URL edc_pharmacy-1.2.3.tar.gz
Size 264.4 kB
Tags Source
SHA-256 checksum
How to use checksums
61fcd3226d5cc8e74e266159762c7d7ce225b78e039b83112ca8f7b4933f22ff
BLAKE2b-256 checksum
How to use checksums
76cc071e6e3f950f345a98c6deacdec7f3790f6fd08d8275b167a0089fe967c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.11

Release files / edc_pharmacy-1.2.3-py3-none-any.whl

Download URL edc_pharmacy-1.2.3-py3-none-any.whl
Size 366.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4e9cad2452683279ffabbf448daf0974dbe397293b8bf373a5241422ce8b25d
BLAKE2b-256 checksum
How to use checksums
b8020d836e190639d33728de3ae0a8928070d3dfa42d528c384d8183b09cdc22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.11

Release history Release notifications | RSS feed

This release

1.2.3 This release

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.3.17

2 release files

0.3.16

2 release files

0.3.15

2 release files

0.3.14

2 release files

0.3.13

2 release files

0.3.12

2 release files

0.3.11

2 release files

0.3.10

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.1.47

2 release files

0.1.46

2 release files

0.1.39

2 release files

0.1.38

2 release files

0.1.37

2 release files

0.1.36

2 release files

0.1.33

2 release files

0.1.32

2 release files

0.1.31

2 release files

0.1.30

2 release files

0.1.27

2 release files

0.1.26

2 release files

0.1.25

2 release files

0.1.24

2 release files

0.1.23

2 release files

0.1.21

2 release files

0.1.20

2 release files

0.1.18

2 release files

0.1.17

2 release files

0.1.13

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page