DANIEL MWAMBI
DANIEL MWAMBI
I think it depends on fo-dicom
are you storing the files using STOW-RS ?
if your using STOW-RS you can have a look into the WebObjectStoreService.cs class in the Dicom.Wado project in the Services folder.
if the files are from multiple hospitals and large,then you can create a C-Store SCP that saves dicom files in the same structure as DicomCloud and also saves the record...
https://github.com/fo-dicom/fo-dicom-samples/blob/master/Desktop/C-Store%20SCP/Program.cs
public DicomCStoreResponse OnCStoreRequest(DicomCStoreRequest request){ var studyUid = request.Dataset.GetSingleValue(DicomTag.StudyInstanceUID); var instUid = request.SOPInstanceUID.UID; var path = Path.GetFullPath(Program.StoragePath); path = Path.Combine(path, studyUid); if (!Directory.Exists(path)) Directory.CreateDirectory(path); path = Path.Combine(path, instUid) + ".dcm"; request.File.Save(path);...
@Zaid-Safadi can mapping different hospitals to different ports on the C-Store SCP and then use a single database be a good approach?