Hi Stefan and Charlie,
This is not unexpected behaviour. To understand why, you need a bit of background on how the "vanilla", i.e., non-XNAT-integrated OHIF viewer works. It's primarily intended to work with database backends that support the
DICOMWeb protocol. In particular, the viewer assumes that it can query the backend with things like DICOM StudyInstanceUIDs and SOPInstanceUIDs to retrieve data. Unfortunately, XNAT doesn't (yet) support this method of retrieving data (not least because of incompatibilities between the XNAT data model - which, for instance, allows a given image to be stored in multiple different projects and hence locations on disk - and the DICOM information model).
In order to overcome this, we use a secondary mode of access of OHIF, which allows the necessary information to be stored in a "sidecar" JSON file - typically, one associated with each session. Originally, we stored this information in the archive directory, so that if you knew what you were doing, you could go searching on the filesytem and take a look. From v 3.0.0 onwards, this is now part of the XNAT configuration service.
Again, a bit of background/history. In version 1 of the XNAT integration, this sidecar file was created at the time of first viewing of the file. However, since the process was quite long, it used to lead to a quite a substantial delay, which we rapidly discovered was unacceptable, before the first view of any session. Hence, what happens now if that upload of an imaging session triggers the compilation of this information. Everything happens in the background and nobody notices.
I strongly suspect that the reason you are unable to view your data uploaded via REST is that this metadata- creation call is never triggered. Happily, as long as you have admin privileges (and we might have to reconsider what happens if you don't) you can do this either manually or as part of the script that uploads your data.
Head to the Swagger page on your XNAT (Administer -> Site Administation -> Miscellaneous -> View the Swagger page) and check out the OHIF viewer API:
To create the metadata for one of the sessions where you have uploaded data, try out this call (might be slightly different in 1.8 - this is a screenshot from 1.7) and see what happens.
If you are still experiencing problems, let us know, but bear with us, as the programmer who coded this xapi is on leave this week.
Best wishes,
Simon