Sha256: 47746afd5838f80be9ef8f6a192e1b2f7f652e0a14a5542326ba0f9f4a6d32d0

Contents?: true

Size: 595 Bytes

Versions: 89

Compression:

Stored size: 595 Bytes

Contents

# frozen_string_literal: true

module Renalware
  module UKRDC
    class PathologyObservationRequestPresenter < SimpleDelegator
      # Note that we can't just use requestor_order_number as some OBR
      # segments arrive with a blank one. We need put something in the XML
      # that is unique per observation_request, but will still _be_ something
      # when requestor_order is blank
      def placer_id
        [
          requestor_order_number,
          requested_at.strftime("%Y%m%d%H%M%S%L"),
          description_id
        ].reject(&:blank?).join("-")
      end
    end
  end
end

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb
renalware-core-2.1.0 app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb
renalware-core-2.0.167 app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb
renalware-core-2.0.166 app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb
renalware-core-2.0.165 app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb
renalware-core-2.0.164 app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb
renalware-core-2.0.163 app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb
renalware-core-2.0.162 app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb
renalware-core-2.0.161 app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb
renalware-core-2.0.160 app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb
renalware-core-2.0.159 app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb
renalware-core-2.0.158 app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb
renalware-core-2.0.157 app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb
renalware-core-2.0.156 app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb
renalware-core-2.0.155 app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb
renalware-core-2.0.153 app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb
renalware-core-2.0.152 app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb
renalware-core-2.0.151 app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb
renalware-core-2.0.149 app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb
renalware-core-2.0.148 app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb