Class: Renalware::UKRDC::PathologyObservationRequestPresenter

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb

Instance Method Summary collapse

Instance Method Details

#placer_idObject

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



10
11
12
13
14
15
16
# File 'app/presenters/renalware/ukrdc/pathology_observation_request_presenter.rb', line 10

def placer_id
  [
    requestor_order_number,
    requested_at.strftime("%Y%m%d%H%M%S%L"),
    description_id
  ].reject(&:blank?).join("-")
end