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.5.macosx-10.13-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bce9d82bf6c2df4d22d278f0e260685d4d45cbd07f66d9eb8e49a27740295b23 |
|
MD5 | bd13af3457389625a0afe226f63dc101 |
|
BLAKE2b-256 | e113138f81cdc053f66ac8c72ee58b6815f2a82e3b2acac439ee73e083bd0329 |
Close
Hashes for ambition_rando-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d355273ddbc3e00931091293ad8c377761889f24450b5b737e4066f828fe4ee |
|
MD5 | b638af83d5cf4153176316c4f58f99ad |
|
BLAKE2b-256 | 4850b287f367e8bb39e419a963f6990a962b62835249a1604c7692a11a882b5f |