module QDM # app/models/qdm/component.rb class Component < DataElement include Mongoid::Document embedded_in :patient field :code, type: QDM::Code field :result field :qdmVersion, type: String, default: '5.3' end end