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.9.macosx-10.13-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f2206cc155ca3ed0e0b956dec43f158c53fe8ed4e0ceffbaab5f873267a0048 |
|
MD5 | 9612a4ae04ca6d7503766f1aa04199eb |
|
BLAKE2b-256 | 8355c150b5ee484b1b350ef033869f4ee2099feb05b0ef243477f7ee1ffffad1 |
Close
Hashes for ambition_rando-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af745b13153caa59543022503417e688c96284b7f76f5183da9c21e57621254d |
|
MD5 | f9ef03d6f32af8f361b32cfb21d24e86 |
|
BLAKE2b-256 | c422305ce742d9aae630be4b12ffb1363ce3ce6f51ba5bc3f111b59a2c6e683b |