primary_connect_proto 0.22.0 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: meta.proto
3
4
 
@@ -6,50 +7,33 @@ require 'google/protobuf'
6
7
  require 'google/protobuf/struct_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("meta.proto", :syntax => :proto3) do
11
- add_message "primary.connect.Meta" do
12
- optional :event_type, :enum, 1, "primary.connect.Meta.EventType"
13
- optional :event_date_and_time, :message, 2, "google.protobuf.Timestamp"
14
- optional :test, :bool, 3
15
- optional :source, :message, 4, "primary.connect.Meta.Source"
16
- repeated :destinations, :message, 5, "primary.connect.Meta.Destination"
17
- optional :message, :message, 6, "primary.connect.Meta.Message"
18
- optional :transmission, :message, 7, "primary.connect.Meta.Transmission"
19
- optional :facility_code, :string, 8
20
- map :echo, :string, :message, 9, "google.protobuf.Value"
21
- repeated :provenances, :message, 10, "primary.connect.Meta.Provenance"
22
- end
23
- add_message "primary.connect.Meta.Source" do
24
- optional :id, :string, 1
25
- optional :name, :string, 2
26
- end
27
- add_message "primary.connect.Meta.Message" do
28
- optional :id, :string, 1
29
- optional :order_id, :string, 2
30
- end
31
- add_message "primary.connect.Meta.Transmission" do
32
- optional :id, :string, 1
33
- end
34
- add_message "primary.connect.Meta.Destination" do
35
- optional :id, :string, 1
36
- optional :name, :string, 2
37
- map :config, :string, :message, 3, "google.protobuf.Value"
38
- end
39
- add_message "primary.connect.Meta.Provenance" do
40
- optional :destination, :message, 1, "primary.connect.Meta.Destination"
41
- optional :placer_id, :string, 2
42
- optional :rerouted_at, :message, 3, "google.protobuf.Timestamp"
43
- end
44
- add_enum "primary.connect.Meta.EventType" do
45
- value :EVENT_TYPE_UNKNOWN, 0
46
- value :EVENT_TYPE_NEW_UNSOLICITED, 1
47
- value :EVENT_TYPE_UPDATE, 2
48
- value :EVENT_TYPE_CANCEL, 3
49
- value :EVENT_TYPE_QUERY, 4
50
- value :EVENT_TYPE_NEW, 5
10
+
11
+ descriptor_data = "\n\nmeta.proto\x12\x0fprimary.connect\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd7\x08\n\x04Meta\x12\x33\n\nevent_type\x18\x01 \x01(\x0e\x32\x1f.primary.connect.Meta.EventType\x12\x37\n\x13\x65vent_date_and_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04test\x18\x03 \x01(\x08\x12,\n\x06source\x18\x04 \x01(\x0b\x32\x1c.primary.connect.Meta.Source\x12\x37\n\x0c\x64\x65stinations\x18\x05 \x03(\x0b\x32!.primary.connect.Meta.Destination\x12.\n\x07message\x18\x06 \x01(\x0b\x32\x1d.primary.connect.Meta.Message\x12\x38\n\x0ctransmission\x18\x07 \x01(\x0b\x32\".primary.connect.Meta.Transmission\x12\x15\n\rfacility_code\x18\x08 \x01(\t\x12-\n\x04\x65\x63ho\x18\t \x03(\x0b\x32\x1f.primary.connect.Meta.EchoEntry\x12\x35\n\x0bprovenances\x18\n \x03(\x0b\x32 .primary.connect.Meta.Provenance\x1a\"\n\x06Source\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x1a\'\n\x07Message\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08order_id\x18\x02 \x01(\t\x1a\x1a\n\x0cTransmission\x12\n\n\x02id\x18\x01 \x01(\t\x1a\xad\x01\n\x0b\x44\x65stination\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12=\n\x06\x63onfig\x18\x03 \x03(\x0b\x32-.primary.connect.Meta.Destination.ConfigEntry\x1a\x45\n\x0b\x43onfigEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\x1a\x88\x01\n\nProvenance\x12\x36\n\x0b\x64\x65stination\x18\x01 \x01(\x0b\x32!.primary.connect.Meta.Destination\x12\x11\n\tplacer_id\x18\x02 \x01(\t\x12/\n\x0brerouted_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x43\n\tEchoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"\x9b\x01\n\tEventType\x12\x16\n\x12\x45VENT_TYPE_UNKNOWN\x10\x00\x12\x1e\n\x1a\x45VENT_TYPE_NEW_UNSOLICITED\x10\x01\x12\x15\n\x11\x45VENT_TYPE_UPDATE\x10\x02\x12\x15\n\x11\x45VENT_TYPE_CANCEL\x10\x03\x12\x14\n\x10\x45VENT_TYPE_QUERY\x10\x04\x12\x12\n\x0e\x45VENT_TYPE_NEW\x10\x05\x42\x11Z\x0fprimary.connectb\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
27
+ ["google.protobuf.Value", "google/protobuf/struct.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
51
33
  end
52
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
53
37
  end
54
38
 
55
39
  module Primary
@@ -1,16 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: name.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("name.proto", :syntax => :proto3) do
8
- add_message "primary.connect.Name" do
9
- optional :first_name, :string, 1
10
- optional :last_name, :string, 2
11
- optional :middle_name, :string, 3
7
+
8
+ descriptor_data = "\n\nname.proto\x12\x0fprimary.connect\"B\n\x04Name\x12\x12\n\nfirst_name\x18\x01 \x01(\t\x12\x11\n\tlast_name\x18\x02 \x01(\t\x12\x13\n\x0bmiddle_name\x18\x03 \x01(\tB\x11Z\x0fprimary.connectb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
12
28
  end
13
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
14
32
  end
15
33
 
16
34
  module Primary
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: order.proto
3
4
 
@@ -17,111 +18,44 @@ require 'specimen_pb'
17
18
  require 'visit_pb'
18
19
  require 'medication_administration_pb'
19
20
 
20
- Google::Protobuf::DescriptorPool.generated_pool.build do
21
- add_file("order.proto", :syntax => :proto3) do
22
- add_message "primary.connect.Order" do
23
- optional :meta, :message, 1, "primary.connect.Meta"
24
- optional :patient, :message, 2, "primary.connect.Patient"
25
- optional :visit, :message, 3, "primary.connect.Visit"
26
- optional :order, :message, 4, "primary.connect.Order.Order"
27
- optional :subject, :message, 5, "primary.connect.Order.Subject"
28
- end
29
- add_message "primary.connect.Order.Order" do
30
- optional :id, :string, 1
31
- optional :application_order_id, :string, 2
32
- optional :status, :enum, 3, "primary.connect.Order.Order.Status"
33
- optional :transaction_date_time, :message, 4, "google.protobuf.Timestamp"
34
- optional :collection_date_time, :message, 5, "google.protobuf.Timestamp"
35
- optional :completion_date_time, :message, 6, "google.protobuf.Timestamp"
36
- optional :expiration_date, :string, 7
37
- optional :specimen, :message, 8, "primary.connect.Specimen"
38
- optional :procedure, :message, 9, "primary.connect.CodedValue"
39
- optional :ordering_provider, :message, 10, "primary.connect.Provider"
40
- repeated :result_copy_providers, :message, 11, "primary.connect.Provider"
41
- optional :ordering_facility, :message, 12, "primary.connect.Order.Order.Facility"
42
- optional :priority, :enum, 13, "primary.connect.Order.Order.Priority"
43
- repeated :diagnoses, :message, 14, "primary.connect.Order.Order.Diagnosis"
44
- optional :clinical_comments, :string, 15
45
- repeated :notes, :string, 16
46
- repeated :clinical_info, :message, 17, "primary.connect.Order.Order.ClinicalInfo"
47
- optional :results_status, :enum, 18, "primary.connect.Order.Order.ResultStatus"
48
- optional :response_flag, :enum, 19, "primary.connect.Order.Order.ResponseFlag"
49
- repeated :external_ids, :message, 20, "primary.connect.Identifier"
50
- repeated :results, :message, 21, "primary.connect.Result"
51
- optional :collection_start_date_time, :message, 22, "google.protobuf.Timestamp"
52
- repeated :medication_administrations, :message, 23, "primary.connect.MedicationAdministration"
53
- optional :accession_date_time, :message, 24, "google.protobuf.Timestamp"
54
- repeated :procedures, :message, 25, "primary.connect.Order.Order.Procedure"
55
- end
56
- add_message "primary.connect.Order.Order.Facility" do
57
- optional :name, :string, 1
58
- optional :address, :message, 2, "primary.connect.Address"
59
- repeated :phone_numbers, :message, 3, "primary.connect.PhoneNumber"
60
- end
61
- add_message "primary.connect.Order.Order.Diagnosis" do
62
- optional :code, :message, 1, "primary.connect.CodedValue"
63
- optional :type, :enum, 2, "primary.connect.Order.Order.Diagnosis.Type"
64
- optional :documented_date_time, :message, 3, "google.protobuf.Timestamp"
65
- end
66
- add_enum "primary.connect.Order.Order.Diagnosis.Type" do
67
- value :TYPE_UNKNOWN, 0
68
- value :TYPE_ADMITTING, 1
69
- value :TYPE_FINAL, 2
70
- value :TYPE_SELF, 3
71
- value :TYPE_WORKING, 4
72
- value :TYPE_PRINCIPAL, 5
73
- end
74
- add_message "primary.connect.Order.Order.ClinicalInfo" do
75
- optional :code, :message, 1, "primary.connect.CodedValue"
76
- optional :value, :string, 2
77
- optional :units, :string, 3
78
- optional :abbreviation, :string, 4
79
- repeated :notes, :string, 5
80
- end
81
- add_message "primary.connect.Order.Order.Procedure" do
82
- optional :code, :message, 1, "primary.connect.CodedValue"
83
- repeated :sub_procedures, :message, 2, "primary.connect.CodedValue"
84
- end
85
- add_enum "primary.connect.Order.Order.Status" do
86
- value :STATUS_UNKNOWN, 0
87
- value :STATUS_UPDATE, 1
88
- value :STATUS_CANCEL, 2
89
- value :STATUS_RESULTED, 3
90
- value :STATUS_NEW, 4
91
- value :STATUS_REPORTED, 5
92
- value :STATUS_SHIPPED, 6
93
- end
94
- add_enum "primary.connect.Order.Order.Priority" do
95
- value :PRIORITY_UNKNOWN, 0
96
- value :PRIORITY_ASAP, 1
97
- value :PRIORITY_ROUTINE, 2
98
- value :PRIORITY_PREOPERATIVE, 3
99
- value :PRIORITY_TIMING_CRITICAL, 4
100
- value :PRIORITY_STAT, 5
101
- end
102
- add_enum "primary.connect.Order.Order.ResultStatus" do
103
- value :UNAVAILABLE, 0
104
- value :PRELIMINARY, 1
105
- value :IN_PROCESS, 2
106
- value :CORRECTED, 3
107
- value :CANCELED, 4
108
- value :FINAL, 5
109
- end
110
- add_enum "primary.connect.Order.Order.ResponseFlag" do
111
- value :UNKNOWN, 0
112
- value :EXCEPTIONS, 1
113
- value :REPLACEMENTS, 2
114
- value :ASSOCIATED_SEGMENTS, 3
115
- value :CONFIRMATIONS, 4
116
- value :ACKNOWLEDGEMENT, 5
117
- end
118
- add_message "primary.connect.Order.Subject" do
119
- oneof :subject do
120
- optional :patient, :message, 1, "primary.connect.Patient"
121
- optional :device, :message, 2, "primary.connect.Device"
122
- end
21
+
22
+ 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"
23
+
24
+ pool = Google::Protobuf::DescriptorPool.generated_pool
25
+
26
+ begin
27
+ pool.add_serialized_file(descriptor_data)
28
+ rescue TypeError => e
29
+ # Compatibility code: will be removed in the next major version.
30
+ require 'google/protobuf/descriptor_pb'
31
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
32
+ parsed.clear_dependency
33
+ serialized = parsed.class.encode(parsed)
34
+ file = pool.add_serialized_file(serialized)
35
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
36
+ imports = [
37
+ ["primary.connect.Meta", "meta.proto"],
38
+ ["primary.connect.Patient", "patient.proto"],
39
+ ["primary.connect.Visit", "visit.proto"],
40
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
41
+ ["primary.connect.Specimen", "specimen.proto"],
42
+ ["primary.connect.CodedValue", "coded_value.proto"],
43
+ ["primary.connect.Provider", "provider.proto"],
44
+ ["primary.connect.Identifier", "identifier.proto"],
45
+ ["primary.connect.Result", "result.proto"],
46
+ ["primary.connect.MedicationAdministration", "medication_administration.proto"],
47
+ ["primary.connect.Address", "address.proto"],
48
+ ["primary.connect.PhoneNumber", "phone_number.proto"],
49
+ ["primary.connect.Device", "device.proto"],
50
+ ]
51
+ imports.each do |type_name, expected_filename|
52
+ import_file = pool.lookup(type_name).file_descriptor
53
+ if import_file.name != expected_filename
54
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
123
55
  end
124
56
  end
57
+ warn "Each proto file must use a consistent fully-qualified name."
58
+ warn "This will become an error in the next major version."
125
59
  end
126
60
 
127
61
  module Primary
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: patient.proto
3
4
 
@@ -10,23 +11,36 @@ require 'name_pb'
10
11
  require 'phone_number_pb'
11
12
  require 'relationship_pb'
12
13
 
13
- Google::Protobuf::DescriptorPool.generated_pool.build do
14
- add_file("patient.proto", :syntax => :proto3) do
15
- add_message "primary.connect.Patient" do
16
- repeated :identifiers, :message, 1, "primary.connect.Identifier"
17
- optional :demographics, :message, 2, "primary.connect.Demographics"
18
- repeated :notes, :string, 3
19
- repeated :contacts, :message, 4, "primary.connect.Patient.Contact"
20
- end
21
- add_message "primary.connect.Patient.Contact" do
22
- optional :name, :message, 1, "primary.connect.Name"
23
- optional :address, :message, 2, "primary.connect.Address"
24
- repeated :phone_numbers, :message, 3, "primary.connect.PhoneNumber"
25
- optional :relation_to_patient, :enum, 4, "primary.connect.Relationship"
26
- repeated :email_addresses, :string, 5
27
- repeated :roles, :string, 6
14
+
15
+ descriptor_data = "\n\rpatient.proto\x12\x0fprimary.connect\x1a\raddress.proto\x1a\x12\x64\x65mographics.proto\x1a\x10identifier.proto\x1a\nname.proto\x1a\x12phone_number.proto\x1a\x12relationship.proto\"\xa8\x03\n\x07Patient\x12\x30\n\x0bidentifiers\x18\x01 \x03(\x0b\x32\x1b.primary.connect.Identifier\x12\x33\n\x0c\x64\x65mographics\x18\x02 \x01(\x0b\x32\x1d.primary.connect.Demographics\x12\r\n\x05notes\x18\x03 \x03(\t\x12\x32\n\x08\x63ontacts\x18\x04 \x03(\x0b\x32 .primary.connect.Patient.Contact\x1a\xf2\x01\n\x07\x43ontact\x12#\n\x04name\x18\x01 \x01(\x0b\x32\x15.primary.connect.Name\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\x12:\n\x13relation_to_patient\x18\x04 \x01(\x0e\x32\x1d.primary.connect.Relationship\x12\x17\n\x0f\x65mail_addresses\x18\x05 \x03(\t\x12\r\n\x05roles\x18\x06 \x03(\tB\x11Z\x0fprimary.connectb\x06proto3"
16
+
17
+ pool = Google::Protobuf::DescriptorPool.generated_pool
18
+
19
+ begin
20
+ pool.add_serialized_file(descriptor_data)
21
+ rescue TypeError => e
22
+ # Compatibility code: will be removed in the next major version.
23
+ require 'google/protobuf/descriptor_pb'
24
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
25
+ parsed.clear_dependency
26
+ serialized = parsed.class.encode(parsed)
27
+ file = pool.add_serialized_file(serialized)
28
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
29
+ imports = [
30
+ ["primary.connect.Identifier", "identifier.proto"],
31
+ ["primary.connect.Demographics", "demographics.proto"],
32
+ ["primary.connect.Name", "name.proto"],
33
+ ["primary.connect.Address", "address.proto"],
34
+ ["primary.connect.PhoneNumber", "phone_number.proto"],
35
+ ]
36
+ imports.each do |type_name, expected_filename|
37
+ import_file = pool.lookup(type_name).file_descriptor
38
+ if import_file.name != expected_filename
39
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
40
  end
29
41
  end
42
+ warn "Each proto file must use a consistent fully-qualified name."
43
+ warn "This will become an error in the next major version."
30
44
  end
31
45
 
32
46
  module Primary
@@ -1,22 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: phone_number.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("phone_number.proto", :syntax => :proto3) do
8
- add_message "primary.connect.PhoneNumber" do
9
- optional :type, :enum, 1, "primary.connect.PhoneNumber.Type"
10
- optional :number, :string, 2
11
- end
12
- add_enum "primary.connect.PhoneNumber.Type" do
13
- value :UNKNOWN, 0
14
- value :OFFICE, 1
15
- value :MOBILE, 2
16
- value :FAX, 3
17
- value :HOME, 4
7
+
8
+ descriptor_data = "\n\x12phone_number.proto\x12\x0fprimary.connect\"\x8e\x01\n\x0bPhoneNumber\x12/\n\x04type\x18\x01 \x01(\x0e\x32!.primary.connect.PhoneNumber.Type\x12\x0e\n\x06number\x18\x02 \x01(\t\">\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06OFFICE\x10\x01\x12\n\n\x06MOBILE\x10\x02\x12\x07\n\x03\x46\x41X\x10\x03\x12\x08\n\x04HOME\x10\x04\x42\x11Z\x0fprimary.connectb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
18
28
  end
19
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
20
32
  end
21
33
 
22
34
  module Primary
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: provider.proto
3
4
 
@@ -9,19 +10,36 @@ require 'location_pb'
9
10
  require 'name_pb'
10
11
  require 'phone_number_pb'
11
12
 
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_file("provider.proto", :syntax => :proto3) do
14
- add_message "primary.connect.Provider" do
15
- optional :identifier, :message, 1, "primary.connect.Identifier"
16
- optional :npi, :string, 2
17
- optional :name, :message, 3, "primary.connect.Name"
18
- repeated :credentials, :string, 4
19
- optional :address, :message, 5, "primary.connect.Address"
20
- repeated :email_addresses, :string, 6
21
- repeated :phone_numbers, :message, 7, "primary.connect.PhoneNumber"
22
- optional :location, :message, 8, "primary.connect.Location"
13
+
14
+ descriptor_data = "\n\x0eprovider.proto\x12\x0fprimary.connect\x1a\raddress.proto\x1a\x10identifier.proto\x1a\x0elocation.proto\x1a\nname.proto\x1a\x12phone_number.proto\"\xa8\x02\n\x08Provider\x12/\n\nidentifier\x18\x01 \x01(\x0b\x32\x1b.primary.connect.Identifier\x12\x0b\n\x03npi\x18\x02 \x01(\t\x12#\n\x04name\x18\x03 \x01(\x0b\x32\x15.primary.connect.Name\x12\x13\n\x0b\x63redentials\x18\x04 \x03(\t\x12)\n\x07\x61\x64\x64ress\x18\x05 \x01(\x0b\x32\x18.primary.connect.Address\x12\x17\n\x0f\x65mail_addresses\x18\x06 \x03(\t\x12\x33\n\rphone_numbers\x18\x07 \x03(\x0b\x32\x1c.primary.connect.PhoneNumber\x12+\n\x08location\x18\x08 \x01(\x0b\x32\x19.primary.connect.LocationB\x11Z\x0fprimary.connectb\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError => e
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["primary.connect.Identifier", "identifier.proto"],
30
+ ["primary.connect.Name", "name.proto"],
31
+ ["primary.connect.Address", "address.proto"],
32
+ ["primary.connect.PhoneNumber", "phone_number.proto"],
33
+ ["primary.connect.Location", "location.proto"],
34
+ ]
35
+ imports.each do |type_name, expected_filename|
36
+ import_file = pool.lookup(type_name).file_descriptor
37
+ if import_file.name != expected_filename
38
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
23
39
  end
24
40
  end
41
+ warn "Each proto file must use a consistent fully-qualified name."
42
+ warn "This will become an error in the next major version."
25
43
  end
26
44
 
27
45
  module Primary
@@ -1,27 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: relationship.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("relationship.proto", :syntax => :proto3) do
8
- add_enum "primary.connect.Relationship" do
9
- value :RELATIONSHIP_UNKNOWN, 0
10
- value :RELATIONSHIP_OTHER, 1
11
- value :RELATIONSHIP_SELF, 2
12
- value :RELATIONSHIP_SPOUSE, 3
13
- value :RELATIONSHIP_LIFE_PARTNER, 4
14
- value :RELATIONSHIP_CHILD, 5
15
- value :RELATIONSHIP_FATHER, 6
16
- value :RELATIONSHIP_MOTHER, 7
17
- value :RELATIONSHIP_GUARDIAN, 8
18
- value :RELATIONSHIP_PARENT, 9
19
- value :RELATIONSHIP_GRANDPARENT, 10
20
- value :RELATIONSHIP_GRANDCHILD, 11
21
- value :RELATIONSHIP_SIBLING, 12
22
- value :RELATIONSHIP_EMPLOYER, 13
7
+
8
+ descriptor_data = "\n\x12relationship.proto\x12\x0fprimary.connect*\xfd\x02\n\x0cRelationship\x12\x18\n\x14RELATIONSHIP_UNKNOWN\x10\x00\x12\x16\n\x12RELATIONSHIP_OTHER\x10\x01\x12\x15\n\x11RELATIONSHIP_SELF\x10\x02\x12\x17\n\x13RELATIONSHIP_SPOUSE\x10\x03\x12\x1d\n\x19RELATIONSHIP_LIFE_PARTNER\x10\x04\x12\x16\n\x12RELATIONSHIP_CHILD\x10\x05\x12\x17\n\x13RELATIONSHIP_FATHER\x10\x06\x12\x17\n\x13RELATIONSHIP_MOTHER\x10\x07\x12\x19\n\x15RELATIONSHIP_GUARDIAN\x10\x08\x12\x17\n\x13RELATIONSHIP_PARENT\x10\t\x12\x1c\n\x18RELATIONSHIP_GRANDPARENT\x10\n\x12\x1b\n\x17RELATIONSHIP_GRANDCHILD\x10\x0b\x12\x18\n\x14RELATIONSHIP_SIBLING\x10\x0c\x12\x19\n\x15RELATIONSHIP_EMPLOYER\x10\rB\x11Z\x0fprimary.connectb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
23
28
  end
24
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
25
32
  end
26
33
 
27
34
  module Primary