Class: Lab::LabOrder
- Inherits:
-
Order
- Object
- Order
- Lab::LabOrder
- Defined in:
- app/models/lab/lab_order.rb
Class Method Summary collapse
Class Method Details
.make_obs_concept_filter(concept_name) ⇒ Object
6 7 8 9 10 |
# File 'app/models/lab/lab_order.rb', line 6 def make_obs_concept_filter(concept_name) concept = ConceptName.where(name: concept_name).select(:concept_id) -> { where(concept: concept) } end |
.prefetch_relationships ⇒ Object
51 52 53 54 55 56 |
# File 'app/models/lab/lab_order.rb', line 51 def self.prefetch_relationships includes(:reason_for_test, :requesting_clinician, :target_lab, tests: [:result]) end |