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.14.macosx-10.7-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d453dc005a7b93aee04130c5e029e1f52dc3816c4b27855a59c9d4f93954e17 |
|
MD5 | f1f16452e1e9b1b7bb0ad9e707696c24 |
|
BLAKE2b-256 | 8b2503b436b057af68607125c71116fb12d059a201c4000a72c6059b3e7def28 |
Close
Hashes for ambition_rando-0.1.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70e6c556c5840b6f8ddc3db80b3520367c06a26416b7322f1809fa155fd7b088 |
|
MD5 | dd892e9c46041462737519a109ad7c5e |
|
BLAKE2b-256 | 5f29b6bfdfa9c951ecd035cdf09e16e530548da216979a473708afa8065f9d5c |