Randomization class and models for ambition/edc
Project description
ambition-rando
Randomization class and model for Ambition
To rebuild the records in RandomizationList:
from django.core.exceptions import ObjectDoesNotExist
from django.contrib.sites.models import Site
from edc_registration.models import RegisteredSubject
from ambition_rando.models import RandomizationList
current_site = Site.objects.get_current()
for obj in RegisteredSubject.on_site.all():
try:
randobj = RandomizationList.objects.get(sid=obj.sid)
except ObjectDoesNotExist:
print(f'missing for {obj.subject_identifier}, {obj.sid}.')
else:
randobj.alocated_site=current_site
randobj.subject_identifier=obj.subject_identifier
randobj.allocated_datetime=obj.consent_datetime
randobj.allocated=True
randobj.save()
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
Built Distribution
File details
Details for the file ambition-rando-0.1.9.macosx-10.13-x86_64.tar.gz
.
File metadata
- Download URL: ambition-rando-0.1.9.macosx-10.13-x86_64.tar.gz
- Upload date:
- Size: 34.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f2206cc155ca3ed0e0b956dec43f158c53fe8ed4e0ceffbaab5f873267a0048 |
|
MD5 | 9612a4ae04ca6d7503766f1aa04199eb |
|
BLAKE2b-256 | 8355c150b5ee484b1b350ef033869f4ee2099feb05b0ef243477f7ee1ffffad1 |
File details
Details for the file ambition_rando-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: ambition_rando-0.1.9-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af745b13153caa59543022503417e688c96284b7f76f5183da9c21e57621254d |
|
MD5 | f9ef03d6f32af8f361b32cfb21d24e86 |
|
BLAKE2b-256 | c422305ce742d9aae630be4b12ffb1363ce3ce6f51ba5bc3f111b59a2c6e683b |