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
Close
Hashes for ambition-rando-0.1.6.macosx-10.13-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6134496a2d77dc473cfeafcac28d6c34cba1ee023e545151a5d469bf09fac367 |
|
MD5 | cba69c41a3188a6387879d966e2f9e02 |
|
BLAKE2b-256 | 32641f1179a56f42344020b663add52287d8b8604b5a62bd3bf2359c653216d2 |
Close
Hashes for ambition_rando-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 561a561baa2c01466ef081df8865d02104d83b6fd841da3e5e193e4485f36103 |
|
MD5 | ee5fde514d6116352816e4e9c0d35127 |
|
BLAKE2b-256 | 2ac768c809c4dc77d3e100b6b2dcba7693b31d224ebd1f4986ef07b8ce02ab2b |