from edc_lab import AliquotType, LabProfile, ProcessingProfile, RequisitionPanel from edc_lab.lab.processing_profile import Process from edc_lab.site_labs import site_labs from .constants import VIRAL_LOAD, RESEARCH_BLOOD_DRAW lab_profile = LabProfile(name='bcpp_clinic_subject') wb = AliquotType(name='Whole Blood', alpha_code='WB', numeric_code='02') bc = AliquotType(name='Buffy Coat', alpha_code='BC', numeric_code='16') pl = AliquotType(name='Plasma', alpha_code='PL', numeric_code='32') wb.add_derivatives(pl, bc) processing_profile = ProcessingProfile(name='viral_load', aliquot_type=wb) process_vl_bc = Process(aliquot_type=bc, aliquot_count=2) process_vl_pl = Process(aliquot_type=pl, aliquot_count=3) processing_profile.add_processes(process_vl_bc, process_vl_pl) processing_profile = ProcessingProfile(name='rbd', aliquot_type=wb) process_rbd_bc = Process(aliquot_type=bc, aliquot_count=2) process_rbd_pl = Process(aliquot_type=pl, aliquot_count=4) processing_profile.add_processes(process_rbd_bc, process_rbd_pl) panel_vl = RequisitionPanel(name=VIRAL_LOAD, abbreviation='VL', aliquot_type=wb, processing_profile=processing_profile) panel_rbd = RequisitionPanel(name=RESEARCH_BLOOD_DRAW, aliquot_type=wb,
from edc_lab import AliquotType fbc = AliquotType(name="FBC", alpha_code="FBC", numeric_code="63") qfc = AliquotType(name="Quantitative FC", alpha_code="QFC", numeric_code="61") csf_store = AliquotType(name="CSF store", alpha_code="CSF", numeric_code="62") csf_testing = AliquotType(name="Isolates", alpha_code="ISOLATES", numeric_code="64") csf_glucose = AliquotType(name="Glucose", alpha_code="GLUCOSE", numeric_code="65") csf_protein = AliquotType(name="Protein", alpha_code="PROTEIN", numeric_code="66") csf_pellet = AliquotType(name="CSF Pellet", alpha_code="PELLET", numeric_code="67") csf_supernatant = AliquotType(name="CSF Supernatant", alpha_code="SUPERNATANT", numeric_code="68") csf = AliquotType(name="Cerebro Spinal Fluid", alpha_code="CSF", numeric_code="56")
from edc_lab import AliquotType pl = AliquotType(name='Plasma', alpha_code='PL', numeric_code='32') bc = AliquotType(name='Buffy Coat', alpha_code='BC', numeric_code='16') wb = AliquotType(name='Whole Blood', alpha_code='WB', numeric_code='02') ss = AliquotType(name='Stool Sample', alpha_code='SS', numeric_code='46') dna_pcr = AliquotType(name='DNA PCR', alpha_code='DP', numeric_code='50') pbmc = AliquotType(name='PBMC', alpha_code='PBMC', numeric_code='31') wb.add_derivatives(bc, pl, wb, pbmc)
from edc_lab import AliquotType, LabProfile, ProcessingProfile, RequisitionPanel wb = AliquotType(name="Whole Blood", alpha_code="WB", numeric_code="02") fbc_processing = ProcessingProfile(name="FBC", aliquot_type=wb) panel_one = RequisitionPanel(name="one", verbose_name="One", processing_profile=fbc_processing) panel_two = RequisitionPanel(name="two", verbose_name="Two", processing_profile=fbc_processing) lab_profile = LabProfile( name="lab_profile", requisition_model="review_dashboard_app.subjectrequisition" ) lab_profile.add_panel(panel_one) lab_profile.add_panel(panel_two)
from edc_lab import AliquotType pl = AliquotType(name='Plasma', alpha_code='PL', numeric_code='32') bc = AliquotType(name='Buffy Coat', alpha_code='BC', numeric_code='16') serum = AliquotType(name='Serum', alpha_code='SERUM', numeric_code='06') wb = AliquotType(name='Whole Blood', alpha_code='WB', numeric_code='02') pbmc = AliquotType(name='PBMC', alpha_code='PBMC', numeric_code='31') wb.add_derivatives(bc, pl, serum, pbmc, wb)