# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: order.proto require 'google/protobuf' require 'google/protobuf/timestamp_pb' require 'address_pb' require 'coded_value_pb' require 'device_pb' require 'identifier_pb' require 'meta_pb' require 'patient_pb' require 'phone_number_pb' require 'provider_pb' require 'result_pb' require 'specimen_pb' require 'visit_pb' require 'medication_administration_pb' descriptor_data = "\n\x0border.proto\x12\x0fprimary.connect\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\raddress.proto\x1a\x11\x63oded_value.proto\x1a\x0c\x64\x65vice.proto\x1a\x10identifier.proto\x1a\nmeta.proto\x1a\rpatient.proto\x1a\x12phone_number.proto\x1a\x0eprovider.proto\x1a\x0cresult.proto\x1a\x0especimen.proto\x1a\x0bvisit.proto\x1a\x1fmedication_administration.proto\"\xeb\x15\n\x05Order\x12#\n\x04meta\x18\x01 \x01(\x0b\x32\x15.primary.connect.Meta\x12)\n\x07patient\x18\x02 \x01(\x0b\x32\x18.primary.connect.Patient\x12%\n\x05visit\x18\x03 \x01(\x0b\x32\x16.primary.connect.Visit\x12+\n\x05order\x18\x04 \x01(\x0b\x32\x1c.primary.connect.Order.Order\x12/\n\x07subject\x18\x05 \x01(\x0b\x32\x1e.primary.connect.Order.Subject\x1a\x9e\x13\n\x05Order\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1c\n\x14\x61pplication_order_id\x18\x02 \x01(\t\x12\x33\n\x06status\x18\x03 \x01(\x0e\x32#.primary.connect.Order.Order.Status\x12\x39\n\x15transaction_date_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x14\x63ollection_date_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x14\x63ompletion_date_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0f\x65xpiration_date\x18\x07 \x01(\t\x12+\n\x08specimen\x18\x08 \x01(\x0b\x32\x19.primary.connect.Specimen\x12.\n\tprocedure\x18\t \x01(\x0b\x32\x1b.primary.connect.CodedValue\x12\x34\n\x11ordering_provider\x18\n \x01(\x0b\x32\x19.primary.connect.Provider\x12\x38\n\x15result_copy_providers\x18\x0b \x03(\x0b\x32\x19.primary.connect.Provider\x12@\n\x11ordering_facility\x18\x0c \x01(\x0b\x32%.primary.connect.Order.Order.Facility\x12\x37\n\x08priority\x18\r \x01(\x0e\x32%.primary.connect.Order.Order.Priority\x12\x39\n\tdiagnoses\x18\x0e \x03(\x0b\x32&.primary.connect.Order.Order.Diagnosis\x12\x19\n\x11\x63linical_comments\x18\x0f \x01(\t\x12\r\n\x05notes\x18\x10 \x03(\t\x12@\n\rclinical_info\x18\x11 \x03(\x0b\x32).primary.connect.Order.Order.ClinicalInfo\x12\x41\n\x0eresults_status\x18\x12 \x01(\x0e\x32).primary.connect.Order.Order.ResultStatus\x12@\n\rresponse_flag\x18\x13 \x01(\x0e\x32).primary.connect.Order.Order.ResponseFlag\x12\x31\n\x0c\x65xternal_ids\x18\x14 \x03(\x0b\x32\x1b.primary.connect.Identifier\x12(\n\x07results\x18\x15 \x03(\x0b\x32\x17.primary.connect.Result\x12>\n\x1a\x63ollection_start_date_time\x18\x16 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12M\n\x1amedication_administrations\x18\x17 \x03(\x0b\x32).primary.connect.MedicationAdministration\x12\x37\n\x13\x61\x63\x63\x65ssion_date_time\x18\x18 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\nprocedures\x18\x19 \x03(\x0b\x32&.primary.connect.Order.Order.Procedure\x1ax\n\x08\x46\x61\x63ility\x12\x0c\n\x04name\x18\x01 \x01(\t\x12)\n\x07\x61\x64\x64ress\x18\x02 \x01(\x0b\x32\x18.primary.connect.Address\x12\x33\n\rphone_numbers\x18\x03 \x03(\x0b\x32\x1c.primary.connect.PhoneNumber\x1a\x9e\x02\n\tDiagnosis\x12)\n\x04\x63ode\x18\x01 \x01(\x0b\x32\x1b.primary.connect.CodedValue\x12\x39\n\x04type\x18\x02 \x01(\x0e\x32+.primary.connect.Order.Order.Diagnosis.Type\x12\x38\n\x14\x64ocumented_date_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"q\n\x04Type\x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\x12\n\x0eTYPE_ADMITTING\x10\x01\x12\x0e\n\nTYPE_FINAL\x10\x02\x12\r\n\tTYPE_SELF\x10\x03\x12\x10\n\x0cTYPE_WORKING\x10\x04\x12\x12\n\x0eTYPE_PRINCIPAL\x10\x05\x1a|\n\x0c\x43linicalInfo\x12)\n\x04\x63ode\x18\x01 \x01(\x0b\x32\x1b.primary.connect.CodedValue\x12\r\n\x05value\x18\x02 \x01(\t\x12\r\n\x05units\x18\x03 \x01(\t\x12\x14\n\x0c\x61\x62\x62reviation\x18\x04 \x01(\t\x12\r\n\x05notes\x18\x05 \x03(\t\x1ak\n\tProcedure\x12)\n\x04\x63ode\x18\x01 \x01(\x0b\x32\x1b.primary.connect.CodedValue\x12\x33\n\x0esub_procedures\x18\x02 \x03(\x0b\x32\x1b.primary.connect.CodedValue\"\x90\x01\n\x06Status\x12\x12\n\x0eSTATUS_UNKNOWN\x10\x00\x12\x11\n\rSTATUS_UPDATE\x10\x01\x12\x11\n\rSTATUS_CANCEL\x10\x02\x12\x13\n\x0fSTATUS_RESULTED\x10\x03\x12\x0e\n\nSTATUS_NEW\x10\x04\x12\x13\n\x0fSTATUS_REPORTED\x10\x05\x12\x12\n\x0eSTATUS_SHIPPED\x10\x06\"\x95\x01\n\x08Priority\x12\x14\n\x10PRIORITY_UNKNOWN\x10\x00\x12\x11\n\rPRIORITY_ASAP\x10\x01\x12\x14\n\x10PRIORITY_ROUTINE\x10\x02\x12\x19\n\x15PRIORITY_PREOPERATIVE\x10\x03\x12\x1c\n\x18PRIORITY_TIMING_CRITICAL\x10\x04\x12\x11\n\rPRIORITY_STAT\x10\x05\"h\n\x0cResultStatus\x12\x0f\n\x0bUNAVAILABLE\x10\x00\x12\x0f\n\x0bPRELIMINARY\x10\x01\x12\x0e\n\nIN_PROCESS\x10\x02\x12\r\n\tCORRECTED\x10\x03\x12\x0c\n\x08\x43\x41NCELED\x10\x04\x12\t\n\x05\x46INAL\x10\x05\"~\n\x0cResponseFlag\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0e\n\nEXCEPTIONS\x10\x01\x12\x10\n\x0cREPLACEMENTS\x10\x02\x12\x17\n\x13\x41SSOCIATED_SEGMENTS\x10\x03\x12\x11\n\rCONFIRMATIONS\x10\x04\x12\x13\n\x0f\x41\x43KNOWLEDGEMENT\x10\x05\x1al\n\x07Subject\x12+\n\x07patient\x18\x01 \x01(\x0b\x32\x18.primary.connect.PatientH\x00\x12)\n\x06\x64\x65vice\x18\x02 \x01(\x0b\x32\x17.primary.connect.DeviceH\x00\x42\t\n\x07subjectB\x11Z\x0fprimary.connectb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) parsed.clear_dependency serialized = parsed.class.encode(parsed) file = pool.add_serialized_file(serialized) warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" imports = [ ["primary.connect.Meta", "meta.proto"], ["primary.connect.Patient", "patient.proto"], ["primary.connect.Visit", "visit.proto"], ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], ["primary.connect.Specimen", "specimen.proto"], ["primary.connect.CodedValue", "coded_value.proto"], ["primary.connect.Provider", "provider.proto"], ["primary.connect.Identifier", "identifier.proto"], ["primary.connect.Result", "result.proto"], ["primary.connect.MedicationAdministration", "medication_administration.proto"], ["primary.connect.Address", "address.proto"], ["primary.connect.PhoneNumber", "phone_number.proto"], ["primary.connect.Device", "device.proto"], ] imports.each do |type_name, expected_filename| import_file = pool.lookup(type_name).file_descriptor if import_file.name != expected_filename warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" end end warn "Each proto file must use a consistent fully-qualified name." warn "This will become an error in the next major version." end module Primary module Connect Order = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Order").msgclass Order::Order = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Order.Order").msgclass Order::Order::Facility = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Order.Order.Facility").msgclass Order::Order::Diagnosis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Order.Order.Diagnosis").msgclass Order::Order::Diagnosis::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Order.Order.Diagnosis.Type").enummodule Order::Order::ClinicalInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Order.Order.ClinicalInfo").msgclass Order::Order::Procedure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Order.Order.Procedure").msgclass Order::Order::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Order.Order.Status").enummodule Order::Order::Priority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Order.Order.Priority").enummodule Order::Order::ResultStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Order.Order.ResultStatus").enummodule Order::Order::ResponseFlag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Order.Order.ResponseFlag").enummodule Order::Subject = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Order.Subject").msgclass end end