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.7.macosx-10.13-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 266b5e472e53ec02d19cceff572b3e1130b0614b47b71458738d3d9219b93e33 |
|
MD5 | 6b319dd8c02a56967f20118870613c2e |
|
BLAKE2b-256 | ba0f782458c49b509d940dca270a08cb764aee15502a66b7bb928e1133652ceb |
Close
Hashes for ambition_rando-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e36c59d2891a53d3b4ef7bb4232974b4ef25bf1529c70f61d48431474079e4c |
|
MD5 | b39f93795768ba2aa8f470f9893119e2 |
|
BLAKE2b-256 | 4cd2dde0034c03c0e1fd43e6cb5d3db09564e18ba68e1d0ae3432a9ed8b98f6b |