WorldVistA / popHealth

popHealth - An open source clinical quality measure reporting and visualization tool. For announcements and information on current state of popHealth, please visit -
http://osehra.org/popHealth
Apache License 2.0
46 stars 45 forks source link

Error found in delayed log #187

Open adrianlfns opened 4 years ago

adrianlfns commented 4 years ago

Hello,

Below is an example of an error that appears randomly when uploading patients to pophealth.

"undefined method '__metadata' for [{codeSystem=>"ICD-10-CM", "code"=>"J06.0 "}]:Array"

When this error happens, the error does get logged in the delayed log, the patient doesn't get imported, but the error doesn't get reported back to the API.

It is very random... so I don't have a way to reproduce it.... any Ideas will be appreciated.

Thank you

adrianlfns commented 4 years ago

This is another error that happens randomly I can not get to reporduce it:

I, [2019-10-28T12:47:38.012040 #8113] INFO -- : message: Attempted to set a value for 'value' which is not allowed on the model QDM::MedicationDispensed. summary: Without including Mongoid::Attributes::Dynamic in your model and the attribute does not already exist in the attributes hash, attempting to call QDM::MedicationDispensed#value= for it is not allowed. This is also triggered by passing the attribute to any method that accepts an attributes hash, and is raised instead of getting a NoMethodError. resolution: You can include Mongoid::Attributes::Dynamic if you expect to be writing values for undefined fields often.