nyuvis / patient-viz

Visualization of electronic medical records or other sequence event data.
MIT License
92 stars 29 forks source link

Uncaught TypeError: Cannot read property 'trim' of null #58

Closed rkboyce closed 8 years ago

rkboyce commented 8 years ago

Hi Again,

Our dataset has patient data that sometimes triggers this error in the javascript:

"Uncaught TypeError: Cannot read property 'trim' of null"

The condition/observation/procedure/etc listing seems to load but the interactive data overview reports "error while loading file." It is not clear what could be triggering this error. There is no indication from the server's console output as to any problem.

Do you have any ideas where we could look to address the issue? I can't paste the json file generated based on the patient data but I could look for something if you point me there.

thanks! -R

rkboyce commented 8 years ago

I found the issue with the observation component of omop.py. The concept domain group was assigned null when the concept_id was 0 (indicated an umapped source concept). I set the default to be 'Observation' for that component.