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.8.macosx-10.13-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe77d93388fe574187506879fb8f25dcaa056dc7eab4bb504656c97443a1baf7 |
|
MD5 | bdd312c07e19b2a157682d0137283ae8 |
|
BLAKE2b-256 | f209898b752dda36380f1705fb1daf9425fa207b62f66cd99cdfb0a3570fbf5b |
Close
Hashes for ambition_rando-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eef8039db40df74bd578e14807a23f3baf0c7e182aa8f0e190e23e95dc9ed2f6 |
|
MD5 | c1d21b9aaf02ae075c88e04a8fb45f5b |
|
BLAKE2b-256 | 24ac3395321c4d8083ec4f967a4171b2f384ae2014c81f75856dcd56d7c5c470 |