Different types of supplies are consumed in different ways. Some supplies are used for a complete visit, e.g., assay kits, whereas supplies like specimen collection containers are used for a single specimen.
OpenSpecimen allows you to decide how the supplies will be consumed. Collection protocols can be configured to consume supplies by specifying the barcode of items or by creating rules.
To consume barcoded supplies:
To consume supplies per visit:
Once the visit/specimen is collected, the barcoded item's status is displayed as 'Used'.
When the supply is reserved for a particular site/CP, it cannot be used for other sites/CPs. |
You can configure the system to give an error if the barcode used in a CP is unavailable in the supplies inventory. There are two modes:
To enable the strict mode go to CP → Settings → Supply → select 'Barcode Validation Mode' as 'Strict'.
OpenSpecimen allows tracking supplies that do not have barcodes, e.g., gloves, syringes, reagents, etc. Rules can be set up once these supplies are set up under a protocol on how these supplies can be consumed.
To consume barcoded supplies:
According to the above rules, whenever a visit is complete for this protocol and if the visit site is 'MSKCC,' 'Lab Safety Gloves' supply will be reduced by 2.
Similar rules can be specified under specimen, and the supply will be consumed when specific specimens are collected.
1. Visit rules: Below rules will consume supplies if:
[ { "criteria": "#visit.site == 'MSKCC'", "supplyType": "Lab Safety Gloves", "consumeQty": 2 }, { "criteria": "#visit.id != null", "supplyType": "5ml Vials", "consumeQty": 1 }, { "criteria": "#visit.name matches '^04.*'", "supplyType": "Vinyl Gloves", "consumeQty": 2 } ] |
2. Specimen rules: Below rules will consume supplies if:
[ { "criteria": "#specimen.lineage == 'Aliquot' && #specimen.initialQty == 2", "supplyType": "2ml Vials" }, { "init": "#specimen.extensionDetail.getAttrsMap()", "criteria": "#specimen.extensionDetail.attrsMap['ST2'] == '5ml'", "supplyType": "5ml Vials", "consumeQty": 5 }, { "criteria": "#specimen.lineage == 'New' && #specimen.specimenClass == 'Fluid' && #specimen.collectionEvent.container == 'EDTA Vacutainer' && #specimen.collectionEvent.user.emailAddress == 'divya@krishagni.com'", "supplyType": "10ml Tube", "consumeQty": 5 } ] |