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.15.macosx-10.7-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e862d2ca735b9b37d691adf2a701881cb6931681a564fdfc6e3de1f6acbab0a2 |
|
MD5 | 8863fbc2a719894840028fcc033f94b0 |
|
BLAKE2b-256 | ef72370c1d22622d8ecf7629b95244f05b44515e37e85057dedcd2d1ab3cb832 |
Close
Hashes for ambition_rando-0.1.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00218178ae5fdee171e618c86cac4bd294a4fc06ebf4cca0553f60495839554e |
|
MD5 | dcbe4373ddb79a16effbf977ce7e43fa |
|
BLAKE2b-256 | e33641ce8b0988b276429d310e3dc782d22234d7fef33ea6624b3a15ee35edea |