Sha256: 23e9cc6249620dcc37c0d1bb215e5af6c4c91c270bea9d800fd6d39015f3be3f

Contents?: true

Size: 1.15 KB

Versions: 3

Compression:

Stored size: 1.15 KB

Contents

class Procedure < Entry

  field :incisionTime,        type: Integer,      as: :incision_time 
  field :ordinality,          type: Hash
  field :source,              type: Hash
  field :anatomical_approach, type: Hash
  field :anatomical_target,   type: Hash
  field :method,              type: Hash
  field :reaction,            type: Hash 
  # The resulting status of a procedure as defined in the QDM documentation. This is different
  # than the status associated with the `Entry` object, which relates to the data criteria
  # status as defined in health-data-standards/lib/hqmf-model/data_criteria.json.
  field :qdm_status,          type: Hash

  field :radiation_dose,      type: Hash 
  field :radiation_duration,  type: Hash

  # QDM 5.0 addition to Diagnostic Study, Performed
  field :result_date_time,    type: Integer
  # Component attribute is for Diagnostic, Performed which is classified as a procedure
  field :components,          type: Hash
 
  field :facility, type: Hash

  belongs_to :performer, class_name: "Provider"

  def shift_dates(date_diff)
  	super
  	self.incisionTime = self.incisionTime.nil? ? nil : self.incisionTime + date_diff
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
health-data-standards-4.0.2 lib/health-data-standards/models/procedure.rb
health-data-standards-4.0.1 lib/health-data-standards/models/procedure.rb
health-data-standards-4.0.0 lib/health-data-standards/models/procedure.rb