Sha256: cbc3596482970cd59c22850c917be8de07964c957294d7a5de63612e9ed68142
Contents?: true
Size: 819 Bytes
Versions: 119
Compression:
Stored size: 819 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware/hd" module Renalware module HD # Tracks the import of incoming HD Session data from an integrated dialysis provider # and the outgoing data back to that provider, for example HL7 messages. class TransmissionLog < ApplicationRecord belongs_to :hd_provider_unit, class_name: "ProviderUnit" belongs_to :patient, class_name: "Renalware::Patient" belongs_to :session validates :direction, presence: true validates :format, presence: true has_many :children, class_name: "TransmissionLog", foreign_key: "parent_id", dependent: :destroy belongs_to :parent, class_name: "TransmissionLog" def self.policy_class BasePolicy end end end end
Version data entries
119 entries across 119 versions & 1 rubygems