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.10.macosx-10.13-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7220d4d966bdc3450d144dc1f214938dc00572d55559865f95d79bd414d6544 |
|
MD5 | 31b5d643acef6a217feab9ae38e79bad |
|
BLAKE2b-256 | 89658410d06c356ffad42f096528a32641d4781e34448d3911804e0bb726a852 |
Close
Hashes for ambition_rando-0.1.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59abb5c08d06a621d48e616f007407ce1a80b05f91e07988d9f7fc62e6423410 |
|
MD5 | 4559ab77cdff930a2cbfab57885f507f |
|
BLAKE2b-256 | 8906bee804a5fb879c06bea188484fb6f8fe556a243e9d0141b3779607eab63d |