app/models/cqm/patient.rb in cqm-models-1.1.1.0 vs app/models/cqm/patient.rb in cqm-models-2.0.0
- old
+ new
@@ -9,9 +9,10 @@
field :notes, type: String
field :measure_ids, type: Array
has_and_belongs_to_many :providers, class_name: 'CQM::Provider'
embeds_one :qdmPatient, class_name: 'QDM::Patient', autobuild: true
+ has_many :calculation_results, class_name: 'CQM::IndividualResult'
# Include '_type' in any JSON output. This is necessary for deserialization.
def to_json(options = nil)
serializable_hash(include: :_type, methods: :_type).to_json(options)
end