# Generated by the protocol buffer compiler. DO NOT EDIT! # source: visit.proto require 'google/protobuf' require 'google/protobuf/timestamp_pb' require 'address_pb' require 'demographics_pb' require 'identifier_pb' require 'location_pb' require 'name_pb' require 'phone_number_pb' require 'provider_pb' require 'relationship_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("visit.proto", :syntax => :proto3) do add_message "primary.connect.Visit" do optional :visit_number, :string, 1 optional :account_number, :string, 2 optional :patient_class, :string, 3 optional :visit_date_time, :message, 4, "google.protobuf.Timestamp" optional :attending_provider, :message, 5, "primary.connect.Provider" optional :consulting_provider, :message, 6, "primary.connect.Provider" optional :referring_provider, :message, 7, "primary.connect.Provider" optional :guarantor, :message, 8, "primary.connect.Visit.Guarantor" repeated :insurances, :message, 9, "primary.connect.Visit.Insurance" optional :location, :message, 10, "primary.connect.Location" end add_message "primary.connect.Visit.Guarantor" do optional :number, :string, 1 optional :name, :message, 2, "primary.connect.Name" optional :ssn, :string, 3 optional :dob, :string, 4 optional :sex, :enum, 5, "primary.connect.Demographics.Sex" optional :spouse, :message, 6, "primary.connect.Name" optional :address, :message, 7, "primary.connect.Address" repeated :phone_numbers, :message, 8, "primary.connect.PhoneNumber" repeated :email_addresses, :string, 9 optional :type, :string, 10 optional :relation_to_patient, :enum, 11, "primary.connect.Relationship" optional :employer, :message, 12, "primary.connect.Visit.Guarantor.Employer" end add_message "primary.connect.Visit.Guarantor.Employer" do optional :name, :string, 1 repeated :phone_numbers, :message, 2, "primary.connect.PhoneNumber" optional :address, :message, 3, "primary.connect.Address" end add_message "primary.connect.Visit.Insurance" do optional :plan, :message, 1, "primary.connect.Visit.Insurance.Plan" repeated :member_number, :string, 2 optional :company, :message, 3, "primary.connect.Visit.Insurance.Company" optional :group_number, :string, 4 optional :group_name, :string, 5 optional :effective_date, :string, 6 optional :expiration_date, :string, 7 optional :policy_number, :string, 8 optional :priority, :enum, 9, "primary.connect.Visit.Insurance.Priority" optional :agreement_type, :enum, 10, "primary.connect.Visit.Insurance.AgreementType" optional :coverage_type, :enum, 11, "primary.connect.Visit.Insurance.CoverageType" optional :insured, :message, 12, "primary.connect.Visit.Insurance.Insured" end add_message "primary.connect.Visit.Insurance.Plan" do optional :identifier, :message, 1, "primary.connect.Identifier" optional :name, :string, 2 optional :type, :string, 3 end add_message "primary.connect.Visit.Insurance.Company" do optional :identifier, :message, 1, "primary.connect.Identifier" optional :name, :string, 2 optional :address, :message, 3, "primary.connect.Address" repeated :phone_numbers, :message, 4, "primary.connect.PhoneNumber" end add_message "primary.connect.Visit.Insurance.Insured" do repeated :identifiers, :message, 1, "primary.connect.Identifier" optional :name, :message, 2, "primary.connect.Name" optional :ssn, :string, 3 optional :relationship, :enum, 4, "primary.connect.Relationship" optional :dob, :string, 5 optional :sex, :enum, 6, "primary.connect.Demographics.Sex" optional :address, :message, 7, "primary.connect.Address" end add_enum "primary.connect.Visit.Insurance.Priority" do value :PRIORITY_UNKNOWN, 0 value :PRIORITY_PRIMARY, 1 value :PRIORITY_SECONDARY, 2 value :PRIORITY_TERTIARY, 3 end add_enum "primary.connect.Visit.Insurance.AgreementType" do value :AGREEMENT_TYPE_UNKNOWN, 0 value :AGREEMENT_TYPE_STANDARD, 1 value :AGREEMENT_TYPE_UNIFIED, 2 value :AGREEMENT_TYPE_MATERNITY, 3 end add_enum "primary.connect.Visit.Insurance.CoverageType" do value :COVERAGE_TYPE_UNKNOWN, 0 value :COVERAGE_TYPE_PATIENT, 1 value :COVERAGE_TYPE_CLINIC, 2 value :COVERAGE_TYPE_INSURANCE, 3 value :COVERAGE_TYPE_OTHER, 4 end end end module Primary module Connect Visit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Visit").msgclass Visit::Guarantor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Visit.Guarantor").msgclass Visit::Guarantor::Employer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Visit.Guarantor.Employer").msgclass Visit::Insurance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Visit.Insurance").msgclass Visit::Insurance::Plan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Visit.Insurance.Plan").msgclass Visit::Insurance::Company = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Visit.Insurance.Company").msgclass Visit::Insurance::Insured = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Visit.Insurance.Insured").msgclass Visit::Insurance::Priority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Visit.Insurance.Priority").enummodule Visit::Insurance::AgreementType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Visit.Insurance.AgreementType").enummodule Visit::Insurance::CoverageType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Visit.Insurance.CoverageType").enummodule end end