Visit Documents Module does not display images saved as complex obs from another module

Thanks. Found it.

Great. I will make out time to look at them :slight_smile:

I’m having a small problem. The module documentation says

Additionally it encompasses files uploaded elsewhere within OpenMRS as long as they are saved as complex obs.

But this does not seem to be so. I uploaded a file during patient registration which is been saved as a complex obs. See code below

final InputStream in = file.getInputStream();
final ComplexData complexData = new ComplexData(file.getOriginalFilename(), in);
final Concept concept = RegistrationUtils.getComplexConceptForPatientFiles();
final Obs obs = new Obs(encounter.getPatient(), concept, encounter.getEncounterDatetime(), encounter.getLocation());
obs.setComplexData(complexData);
obs.setEncounter(encounter);
Context.getObsService().saveObs(obs, "");

I see this file when I search for this observation on the Manage observations page but on the patient dashboard from the referenceapplication, it shows no visit documents

Is there something I’m missing?

Also, I don’t see an option to upload files from the dashboard.