Dear Joe, all
I too have Elekta Enhanced RDSRs being thrown at my OpenREM instance, and for now I am having to store them separately to process them later. With Orthanc, I have added the following code to the lua file on my Linux installation of 1.0.0b2:
-------------------------------------------------------------------------------------
-- Saving ERDSRs until we can read them
if instance_tags.SOPClassUID ~= nil and instance_tags.SOPClassUID == '1.2.840.10008.5.1.4.1.1.88.76' then
-- it is an Enhanced X-ray Radiation Dose Structured Report
erdsr_file_path = '/var/dose/orthanc/erdsr/'
local dicom = RestApiGet('/instances/' .. instanceId .. '/file')
local target = assert(io.open(erdsr_file_path .. instanceId .. '.dcm', 'wb'))
target:write(dicom)
target:close()
Delete(instanceId)
return true
end
-- End of saving ERDSRs
-------------------------------------------------------------------------------------
The Elekta Enhanced RDSR is actually a fairly simple implementation, and it would be possible to write a bespoke import routine to add the data to the database.
But what I would rather (someone) would do is to work out how all enhanced RDSRs can be imported into the database. The existing structure of the database is heavily based on the traditional RDSR - this is unlikely to work with the additional flexibility of the enhanced RDSR, and therefore we will need to work on that. In turn, this will have an effect on the display tables, charts and exports.
I have just now created an issue to track this work:
issue #1049
If you or anyone else reading this would like to get started on the work for this, I would be thrilled!
Otherwise, I or someone will get to it, but it won't be in the next few months.
Kind regards
Ed