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.16.macosx-10.7-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f460b21e3a8853a0a90f5daecb6a8f30c73d202899873374b3e0c1b0ed89ac2 |
|
MD5 | 621c3af4a556c12c366292282f280851 |
|
BLAKE2b-256 | caf68f6275d0f1bae9fdce8d8ad8b529b4fe21ee8b48f013c7b9e2f8095ee2da |
Close
Hashes for ambition_rando-0.1.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 600f29748d5132dac48eb52de38da2891aeb090a0cf6d2387e518eee7c65fdbf |
|
MD5 | 0df18e4d75847acacfef667cf4a0b356 |
|
BLAKE2b-256 | 0f5f4f0ff0439ec3dbdc642ae872363d3cb159e88d05de9134bfb0d615b500d3 |