generalization of create-dicom
mainline->db-changes integration
refactoring