Generally, whenever I'm deserializing something like a DiagnosticReport with a bunch of contained observations, I get the warning:
Unhanled and unrecognized class/type: Reference
However, the to_hash code clearly attempts to run FHIR.const_get('Reference'), which works perfectly well in my terminal. Is there any other reason this might happen?