Avhana/allscripts_api

View on GitHub
lib/allscripts_api/orders/order.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method build_xml has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      def self.build_xml(site_id, emr_user_id, order_date, encounter_id = "")
        date = order_date.strftime("%d-%b-%Y")
        builder = Nokogiri::XML::Builder.new
        builder.saveorderxml do
          # a value of 'Y' makes the order visible on the order list
Severity: Minor
Found in lib/allscripts_api/orders/order.rb - About 1 hr to fix

    Method build_xml_for_order_workflow has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

          def self.build_xml_for_order_workflow(order_id,
                                                order_category,
                                                problem_id = "",
                                                problem_trans_id = "0",
                                                order_trans_id = "0")
    Severity: Minor
    Found in lib/allscripts_api/orders/order.rb - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status