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.11.macosx-10.13-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98cf140c24bd57febe39b6c84ec7f1a417bbccbc2f0d88452ee80d2c9e851def |
|
MD5 | 0d27276d9cc467f84c4edd34e16096a7 |
|
BLAKE2b-256 | 5adc60106d07f0e7807624e4c409cbd05ebe6b6cd56ced7fcf283d185bffe58f |
Close
Hashes for ambition_rando-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cee1d1f82d070ec79616f9ce00ea828958531f9e1f0387a71fcc603166e85cc5 |
|
MD5 | 63548ef4283aa0bcf401c3366e6868ca |
|
BLAKE2b-256 | f17a96bd28ff3affb8f680f2eae4005b079cf44e809497e5fb685bc4549b7c2e |