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.12.macosx-10.13-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb704a66f1e133738dfe8fc2278994b8ea4418ad8c7fda8096a1ebdf5a679e2b |
|
MD5 | db2ab979ed18f50e89cda2e157a33b78 |
|
BLAKE2b-256 | aa522eb77e5c52deed8f594dedc9bbf157c427084d2404b162440926023a60d8 |
Close
Hashes for ambition_rando-0.1.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 621a58a598b9d970d26cf6599a31bb60ff7ba5ade630368b7a823741ddc22c97 |
|
MD5 | c6b6038be0b79f04ba5aecc0dde8de9a |
|
BLAKE2b-256 | c35ea60436d0e88b40cd3708d2c6ffaba605dc9cbcf61245956403a57cbb6349 |