Observation for creating diagnosis in visit note

I looked into all those files, I found something useful here at DiagnosisController2_2Test and this talk thread, but I still have few doubts:

  1. Is diagnosis created when we POST visit forms or it needs to be posted separately
  2. looking at the swagger, it says that I need to pass the query to get the diagnosis list, I tried passing patient UUID, patientId but it always returns empty result