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.18.macosx-10.7-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07158bfc1c02dc30a8533429deca02699cc6108644d5a5d3ba159432e0d78ca3 |
|
MD5 | 33cc09a143518d4dd69578d4fb6feb89 |
|
BLAKE2b-256 | 8bc8f8979639cd124a356c51ca4e124be29bef6328dde74c9b527438892d5829 |
Close
Hashes for ambition_rando-0.1.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7076fc635c129815a1e6d0b05cd9d2444a4f93d8bcbdf2806a20d0196f21f11 |
|
MD5 | 07ac8543ee7a50ded595dfaec18a0e0a |
|
BLAKE2b-256 | 0584cc4ff56c0388a5b82e0959ea18a058db8eb70d2935314bca4c58809f2765 |