Changeset 5756
- Timestamp:
- Nov 26, 2019, 7:56:23 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.meludi/trunk/src/net/sf/basedb/meludi/servlet/BaseLineRegistrationServlet.java
r5744 r5756 1469 1469 blood.setItemSubtype(Subtype.BLOOD.load(dc)); 1470 1470 blood.setName(itemName); 1471 BioMaterialEvent creationEvent = blood.getCreationEvent(); 1472 if (theCase != null) 1473 { 1474 creationEvent.setSource(theCase); 1475 } 1476 // !IMPORTANT - The sampling date must be set here and as an 'SamplingDateTime' annotation 1477 creationEvent.setEventDate(samplingDate); 1471 1478 dc.saveItem(blood); 1472 // !IMPORTANT - The sampling date must be set here and as an 'SamplingDateTime' annotation1473 BioMaterialEvent creationEvent = blood.getCreationEvent();1474 creationEvent.setEventDate(samplingDate);1475 1479 1476 1480 // Update blood item with consent for case … … 1663 1667 blood.setName(itemName); 1664 1668 blood.setDescription(comment); 1669 BioMaterialEvent creationEvent = blood.getCreationEvent(); 1670 if (theCase != null) 1671 { 1672 creationEvent.setSource(theCase.getSample()); 1673 } 1665 1674 dc.saveItem(blood); 1666 1675 // !IMPORTANT - The sampling date must be set here and as an 'SamplingDateTime' annotation … … 1841 1850 ffpeBlock.setName(itemName); 1842 1851 //ffpeBlock.setDescription(comment); 1852 BioMaterialEvent creationEvent = ffpeBlock.getCreationEvent(); 1853 Case theCase = Case.findByName(dc, caseName); 1854 if (theCase != null) 1855 { 1856 creationEvent.setSource(theCase.getSample()); 1857 } 1843 1858 dc.saveItem(ffpeBlock); 1844 1859 1845 1860 // Update FFPE block item with consent for case 1846 Case theCase = Case.findByName(dc, caseName);1847 1861 if (theCase != null) 1848 1862 {
Note: See TracChangeset
for help on using the changeset viewer.