Randomization class and models for ambition/edc
Project description
ambition-rando
Randomization class and model for Ambition
To load the randomization list:
python manage.py import_randomization_list
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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size ambition_rando-0.1.40-py3-none-any.whl (34.0 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Close
Hashes for ambition_rando-0.1.40-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 400f4066d495341fec1f4fa3417a6f8f8716b421739a8769d1793c153dc26df1 |
|
MD5 | 8dde58d4b36f01f7112c8a5c93e45ba2 |
|
BLAKE2-256 | 014337d57d331b9f67ba21bd8755615b3cc5035285cc08008d5477af79322c11 |