Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error found in delayed log #187

Open
adrianlfns opened this issue Oct 28, 2019 · 1 comment
Open

Error found in delayed log #187

adrianlfns opened this issue Oct 28, 2019 · 1 comment

Comments

@adrianlfns
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant