primary_connect_proto 0.7.3 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +5 -0
- data/connect_proto.gemspec +1 -1
- data/lib/connect_proto/build/order_pb.rb +2 -0
- data/lib/connect_proto/build/result_pb.rb +111 -0
- data/lib/connect_proto/build/results_pb.rb +2 -98
- data/lib/connect_proto/src/order.proto +2 -0
- data/lib/connect_proto/src/result.proto +103 -0
- data/lib/connect_proto/src/results.proto +1 -100
- data/lib/primary_connect_proto.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09cc577359457b83287a7b5f7c64ddbbf75a3c19087fe74ac5081b2dc9b414aa'
|
4
|
+
data.tar.gz: 5f75892ca965d0dee44cb5ebbef70949e5e26c4c5ac11e4c450f1e933685c45f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08b1c953cf842a4e4ce80f3263572967220b580a94fc7630bd31e299912168a4696efe9e85965fab5a5cee10495fcafecc7b648b210135468dd74cccd8b3876b'
|
7
|
+
data.tar.gz: 29cf43bbd9a3fda65414db55b364005e2a66a21f4f7a8a3e0f6117f4201cd53d762f5383072f8bacdfa898a7f0bca47731f600965e38daf0d6669d840a03b6e2
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/connect_proto.gemspec
CHANGED
@@ -11,6 +11,7 @@ require 'meta_pb'
|
|
11
11
|
require 'patient_pb'
|
12
12
|
require 'phone_number_pb'
|
13
13
|
require 'provider_pb'
|
14
|
+
require 'result_pb'
|
14
15
|
require 'specimen_pb'
|
15
16
|
require 'visit_pb'
|
16
17
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -42,6 +43,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
42
43
|
optional :results_status, :enum, 18, "primary.connect.Order.Order.ResultStatus"
|
43
44
|
optional :response_flag, :enum, 19, "primary.connect.Order.Order.ResponseFlag"
|
44
45
|
repeated :external_ids, :message, 20, "primary.connect.Identifier"
|
46
|
+
repeated :results, :message, 21, "primary.connect.Result"
|
45
47
|
end
|
46
48
|
add_message "primary.connect.Order.Order.Facility" do
|
47
49
|
optional :name, :string, 1
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: result.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/protobuf/timestamp_pb'
|
7
|
+
require 'address_pb'
|
8
|
+
require 'coded_value_pb'
|
9
|
+
require 'identifier_pb'
|
10
|
+
require 'provider_pb'
|
11
|
+
require 'specimen_pb'
|
12
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
+
add_file("result.proto", :syntax => :proto3) do
|
14
|
+
add_message "primary.connect.Result" do
|
15
|
+
optional :code, :message, 1, "primary.connect.CodedValue"
|
16
|
+
repeated :related_group_id, :string, 2
|
17
|
+
optional :specimen, :message, 3, "primary.connect.Specimen"
|
18
|
+
optional :value, :string, 4
|
19
|
+
optional :value_type, :enum, 5, "primary.connect.Result.ValueType"
|
20
|
+
optional :completion_date_time, :message, 6, "google.protobuf.Timestamp"
|
21
|
+
optional :report, :message, 7, "primary.connect.Result.Report"
|
22
|
+
optional :units, :string, 8
|
23
|
+
repeated :notes, :string, 9
|
24
|
+
optional :abnormal_flag, :enum, 10, "primary.connect.Result.AbnormalFlag"
|
25
|
+
optional :status, :enum, 12, "primary.connect.Result.Status"
|
26
|
+
optional :primary_results_interpreter, :message, 13, "primary.connect.Provider"
|
27
|
+
optional :producer, :message, 14, "primary.connect.Result.Producer"
|
28
|
+
optional :performer, :message, 15, "primary.connect.Provider"
|
29
|
+
optional :reference_range, :message, 16, "primary.connect.Result.Range"
|
30
|
+
optional :observation_method, :message, 17, "primary.connect.CodedValue"
|
31
|
+
optional :producer_order_id, :string, 18
|
32
|
+
optional :finding_value, :message, 19, "primary.connect.CodedValue"
|
33
|
+
end
|
34
|
+
add_message "primary.connect.Result.Producer" do
|
35
|
+
optional :id, :message, 1, "primary.connect.Identifier"
|
36
|
+
optional :name, :string, 2
|
37
|
+
optional :address, :message, 3, "primary.connect.Address"
|
38
|
+
end
|
39
|
+
add_message "primary.connect.Result.Range" do
|
40
|
+
optional :low, :int32, 1
|
41
|
+
optional :high, :int32, 2
|
42
|
+
optional :text, :string, 3
|
43
|
+
end
|
44
|
+
add_message "primary.connect.Result.Report" do
|
45
|
+
optional :file_type, :string, 1
|
46
|
+
optional :data, :string, 2
|
47
|
+
optional :url, :string, 3
|
48
|
+
end
|
49
|
+
add_enum "primary.connect.Result.ValueType" do
|
50
|
+
value :ADDRESS, 0
|
51
|
+
value :CODED_ENTRY, 1
|
52
|
+
value :DATE, 2
|
53
|
+
value :DATE_TIME, 3
|
54
|
+
value :ENCAPSULATED_DATA, 4
|
55
|
+
value :FORMATTED_TEXT, 5
|
56
|
+
value :ID, 6
|
57
|
+
value :ID_AND_NAME, 7
|
58
|
+
value :MONEY, 8
|
59
|
+
value :NAME, 9
|
60
|
+
value :NUMERIC, 10
|
61
|
+
value :PHONE_NUMBER, 11
|
62
|
+
value :PRICE, 12
|
63
|
+
value :REFERENCE_POINTER, 13
|
64
|
+
value :STRING, 14
|
65
|
+
value :TIME, 15
|
66
|
+
value :STRUCTURED_NUMERIC, 16
|
67
|
+
end
|
68
|
+
add_enum "primary.connect.Result.AbnormalFlag" do
|
69
|
+
value :NORMAL, 0
|
70
|
+
value :LOW, 1
|
71
|
+
value :VERY_LOW, 2
|
72
|
+
value :HIGH, 3
|
73
|
+
value :VERY_HIGH, 4
|
74
|
+
value :ABNORMAL, 5
|
75
|
+
value :SUSCEPTIBLE, 6
|
76
|
+
value :RESISTANT, 7
|
77
|
+
value :INTERMEDIATE, 8
|
78
|
+
value :MODERATELY_SUSCEPTIBLE, 9
|
79
|
+
value :VERY_SUSCEPTIBLE, 10
|
80
|
+
value :CRITICALLY_ABNORMAL, 11
|
81
|
+
value :CRITICALLY_LOW, 12
|
82
|
+
value :CRITICALLY_HIGH, 13
|
83
|
+
value :NOT_SUSCEPTIBLE, 14
|
84
|
+
value :INCONCLUSIVE, 15
|
85
|
+
value :VERY_ABNORMAL, 16
|
86
|
+
end
|
87
|
+
add_enum "primary.connect.Result.Status" do
|
88
|
+
value :PRELIMINARY, 0
|
89
|
+
value :INCOMPLETE, 1
|
90
|
+
value :CORRECTED, 2
|
91
|
+
value :FINAL, 3
|
92
|
+
value :UNAVAILABLE, 4
|
93
|
+
value :NONE_SPECIFIED, 5
|
94
|
+
value :CANCELED, 6
|
95
|
+
value :DELETED, 7
|
96
|
+
value :REJECTED, 8
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
module Primary
|
102
|
+
module Connect
|
103
|
+
Result = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Result").msgclass
|
104
|
+
Result::Producer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Result.Producer").msgclass
|
105
|
+
Result::Range = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Result.Range").msgclass
|
106
|
+
Result::Report = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Result.Report").msgclass
|
107
|
+
Result::ValueType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Result.ValueType").enummodule
|
108
|
+
Result::AbnormalFlag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Result.AbnormalFlag").enummodule
|
109
|
+
Result::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Result.Status").enummodule
|
110
|
+
end
|
111
|
+
end
|
@@ -3,102 +3,13 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'google/protobuf/timestamp_pb'
|
7
|
-
require 'address_pb'
|
8
|
-
require 'coded_value_pb'
|
9
|
-
require 'identifier_pb'
|
10
6
|
require 'meta_pb'
|
11
|
-
require '
|
12
|
-
require 'specimen_pb'
|
7
|
+
require 'result_pb'
|
13
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
9
|
add_file("results.proto", :syntax => :proto3) do
|
15
10
|
add_message "primary.connect.Results" do
|
16
11
|
optional :meta, :message, 1, "primary.connect.Meta"
|
17
|
-
repeated :results, :message, 2, "primary.connect.
|
18
|
-
end
|
19
|
-
add_message "primary.connect.Results.Result" do
|
20
|
-
optional :code, :message, 1, "primary.connect.CodedValue"
|
21
|
-
repeated :related_group_id, :string, 2
|
22
|
-
optional :specimen, :message, 3, "primary.connect.Specimen"
|
23
|
-
optional :value, :string, 4
|
24
|
-
optional :value_type, :enum, 5, "primary.connect.Results.Result.ValueType"
|
25
|
-
optional :completion_date_time, :message, 6, "google.protobuf.Timestamp"
|
26
|
-
optional :report, :message, 7, "primary.connect.Results.Result.Report"
|
27
|
-
optional :units, :string, 8
|
28
|
-
repeated :notes, :string, 9
|
29
|
-
optional :abnormal_flag, :enum, 10, "primary.connect.Results.Result.AbnormalFlag"
|
30
|
-
optional :status, :enum, 12, "primary.connect.Results.Result.Status"
|
31
|
-
optional :primary_results_interpreter, :message, 13, "primary.connect.Provider"
|
32
|
-
optional :producer, :message, 14, "primary.connect.Results.Result.Producer"
|
33
|
-
optional :performer, :message, 15, "primary.connect.Provider"
|
34
|
-
optional :reference_range, :message, 16, "primary.connect.Results.Result.Range"
|
35
|
-
optional :observation_method, :message, 17, "primary.connect.CodedValue"
|
36
|
-
optional :producer_order_id, :string, 18
|
37
|
-
optional :finding_value, :message, 19, "primary.connect.CodedValue"
|
38
|
-
end
|
39
|
-
add_message "primary.connect.Results.Result.Producer" do
|
40
|
-
optional :id, :message, 1, "primary.connect.Identifier"
|
41
|
-
optional :name, :string, 2
|
42
|
-
optional :address, :message, 3, "primary.connect.Address"
|
43
|
-
end
|
44
|
-
add_message "primary.connect.Results.Result.Range" do
|
45
|
-
optional :low, :int32, 1
|
46
|
-
optional :high, :int32, 2
|
47
|
-
optional :text, :string, 3
|
48
|
-
end
|
49
|
-
add_message "primary.connect.Results.Result.Report" do
|
50
|
-
optional :file_type, :string, 1
|
51
|
-
optional :data, :string, 2
|
52
|
-
optional :url, :string, 3
|
53
|
-
end
|
54
|
-
add_enum "primary.connect.Results.Result.ValueType" do
|
55
|
-
value :ADDRESS, 0
|
56
|
-
value :CODED_ENTRY, 1
|
57
|
-
value :DATE, 2
|
58
|
-
value :DATE_TIME, 3
|
59
|
-
value :ENCAPSULATED_DATA, 4
|
60
|
-
value :FORMATTED_TEXT, 5
|
61
|
-
value :ID, 6
|
62
|
-
value :ID_AND_NAME, 7
|
63
|
-
value :MONEY, 8
|
64
|
-
value :NAME, 9
|
65
|
-
value :NUMERIC, 10
|
66
|
-
value :PHONE_NUMBER, 11
|
67
|
-
value :PRICE, 12
|
68
|
-
value :REFERENCE_POINTER, 13
|
69
|
-
value :STRING, 14
|
70
|
-
value :TIME, 15
|
71
|
-
value :STRUCTURED_NUMERIC, 16
|
72
|
-
end
|
73
|
-
add_enum "primary.connect.Results.Result.AbnormalFlag" do
|
74
|
-
value :NORMAL, 0
|
75
|
-
value :LOW, 1
|
76
|
-
value :VERY_LOW, 2
|
77
|
-
value :HIGH, 3
|
78
|
-
value :VERY_HIGH, 4
|
79
|
-
value :ABNORMAL, 5
|
80
|
-
value :SUSCEPTIBLE, 6
|
81
|
-
value :RESISTANT, 7
|
82
|
-
value :INTERMEDIATE, 8
|
83
|
-
value :MODERATELY_SUSCEPTIBLE, 9
|
84
|
-
value :VERY_SUSCEPTIBLE, 10
|
85
|
-
value :CRITICALLY_ABNORMAL, 11
|
86
|
-
value :CRITICALLY_LOW, 12
|
87
|
-
value :CRITICALLY_HIGH, 13
|
88
|
-
value :NOT_SUSCEPTIBLE, 14
|
89
|
-
value :INCONCLUSIVE, 15
|
90
|
-
value :VERY_ABNORMAL, 16
|
91
|
-
end
|
92
|
-
add_enum "primary.connect.Results.Result.Status" do
|
93
|
-
value :PRELIMINARY, 0
|
94
|
-
value :INCOMPLETE, 1
|
95
|
-
value :CORRECTED, 2
|
96
|
-
value :FINAL, 3
|
97
|
-
value :UNAVAILABLE, 4
|
98
|
-
value :NONE_SPECIFIED, 5
|
99
|
-
value :CANCELED, 6
|
100
|
-
value :DELETED, 7
|
101
|
-
value :REJECTED, 8
|
12
|
+
repeated :results, :message, 2, "primary.connect.Result"
|
102
13
|
end
|
103
14
|
end
|
104
15
|
end
|
@@ -106,12 +17,5 @@ end
|
|
106
17
|
module Primary
|
107
18
|
module Connect
|
108
19
|
Results = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Results").msgclass
|
109
|
-
Results::Result = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Results.Result").msgclass
|
110
|
-
Results::Result::Producer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Results.Result.Producer").msgclass
|
111
|
-
Results::Result::Range = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Results.Result.Range").msgclass
|
112
|
-
Results::Result::Report = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Results.Result.Report").msgclass
|
113
|
-
Results::Result::ValueType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Results.Result.ValueType").enummodule
|
114
|
-
Results::Result::AbnormalFlag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Results.Result.AbnormalFlag").enummodule
|
115
|
-
Results::Result::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Results.Result.Status").enummodule
|
116
20
|
end
|
117
21
|
end
|
@@ -10,6 +10,7 @@ import "meta.proto";
|
|
10
10
|
import "patient.proto";
|
11
11
|
import "phone_number.proto";
|
12
12
|
import "provider.proto";
|
13
|
+
import "result.proto";
|
13
14
|
import "specimen.proto";
|
14
15
|
import "visit.proto";
|
15
16
|
|
@@ -98,6 +99,7 @@ message Order {
|
|
98
99
|
ResultStatus results_status = 18; // Current overall status of the order
|
99
100
|
ResponseFlag response_flag = 19; // Specificity of the response requested from the receiving system
|
100
101
|
repeated Identifier external_ids = 20; // May contain any number of ids related to this order
|
102
|
+
repeated Result results = 21; // If this order already has a result, add the result here
|
101
103
|
}
|
102
104
|
|
103
105
|
Meta meta = 1;
|
@@ -0,0 +1,103 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
package primary.connect;
|
3
|
+
|
4
|
+
import "google/protobuf/timestamp.proto";
|
5
|
+
|
6
|
+
import "address.proto";
|
7
|
+
import "coded_value.proto";
|
8
|
+
import "identifier.proto";
|
9
|
+
import "provider.proto";
|
10
|
+
import "specimen.proto";
|
11
|
+
|
12
|
+
message Result {
|
13
|
+
enum ValueType {
|
14
|
+
ADDRESS = 0;
|
15
|
+
CODED_ENTRY = 1;
|
16
|
+
DATE = 2;
|
17
|
+
DATE_TIME = 3;
|
18
|
+
ENCAPSULATED_DATA = 4;
|
19
|
+
FORMATTED_TEXT = 5;
|
20
|
+
ID = 6;
|
21
|
+
ID_AND_NAME = 7;
|
22
|
+
MONEY = 8;
|
23
|
+
NAME = 9;
|
24
|
+
NUMERIC = 10;
|
25
|
+
PHONE_NUMBER = 11;
|
26
|
+
PRICE = 12;
|
27
|
+
REFERENCE_POINTER = 13;
|
28
|
+
STRING = 14;
|
29
|
+
TIME = 15;
|
30
|
+
STRUCTURED_NUMERIC = 16;
|
31
|
+
}
|
32
|
+
|
33
|
+
enum AbnormalFlag {
|
34
|
+
NORMAL = 0;
|
35
|
+
LOW = 1;
|
36
|
+
VERY_LOW = 2;
|
37
|
+
HIGH = 3;
|
38
|
+
VERY_HIGH = 4;
|
39
|
+
ABNORMAL = 5;
|
40
|
+
SUSCEPTIBLE = 6;
|
41
|
+
RESISTANT = 7;
|
42
|
+
INTERMEDIATE = 8;
|
43
|
+
MODERATELY_SUSCEPTIBLE = 9;
|
44
|
+
VERY_SUSCEPTIBLE = 10;
|
45
|
+
CRITICALLY_ABNORMAL = 11;
|
46
|
+
CRITICALLY_LOW = 12;
|
47
|
+
CRITICALLY_HIGH = 13;
|
48
|
+
NOT_SUSCEPTIBLE = 14;
|
49
|
+
INCONCLUSIVE = 15;
|
50
|
+
VERY_ABNORMAL = 16;
|
51
|
+
}
|
52
|
+
|
53
|
+
enum Status {
|
54
|
+
PRELIMINARY = 0;
|
55
|
+
INCOMPLETE = 1;
|
56
|
+
CORRECTED = 2;
|
57
|
+
FINAL = 3;
|
58
|
+
UNAVAILABLE = 4;
|
59
|
+
NONE_SPECIFIED = 5;
|
60
|
+
CANCELED = 6;
|
61
|
+
DELETED = 7;
|
62
|
+
REJECTED = 8;
|
63
|
+
}
|
64
|
+
|
65
|
+
message Producer {
|
66
|
+
Identifier id = 1;
|
67
|
+
string name = 2;
|
68
|
+
Address address = 3;
|
69
|
+
}
|
70
|
+
|
71
|
+
message Range {
|
72
|
+
// Numeric result values will use the low and high properties.
|
73
|
+
// Non-numeric result values will put the normal value in the text property.
|
74
|
+
int32 low = 1; // Lower bound for a normal result
|
75
|
+
int32 high = 2; // Upper bound for a normal result
|
76
|
+
string text = 3; // Normal value for non-numeric results
|
77
|
+
}
|
78
|
+
|
79
|
+
message Report {
|
80
|
+
string file_type = 1;
|
81
|
+
string data = 2; // Ideally, Base64 encoded report
|
82
|
+
string url = 3;
|
83
|
+
}
|
84
|
+
|
85
|
+
CodedValue code = 1; // Code for the result component
|
86
|
+
repeated string related_group_id = 2; // ID to group separate result components
|
87
|
+
Specimen specimen = 3;
|
88
|
+
string value = 4; // Value of the result component. If value_type is ValueType.ENCAPSULATED_DATA this field includes the BLOB URI
|
89
|
+
ValueType value_type = 5; // Data type for the result value
|
90
|
+
google.protobuf.Timestamp completion_date_time = 6; // Timestamp at which the individual results were composed into a report and released
|
91
|
+
Report report = 7;
|
92
|
+
string units = 8; // Units of the result
|
93
|
+
repeated string notes = 9; // Notes about the result component/observation
|
94
|
+
AbnormalFlag abnormal_flag = 10; // Indication of whether the result was abnormal
|
95
|
+
Status status = 12; // Current status of the result
|
96
|
+
Provider primary_results_interpreter = 13;
|
97
|
+
Producer producer = 14; // typically the Lab which did the resulting
|
98
|
+
Provider performer = 15; // person that performed the resulting
|
99
|
+
Range reference_range = 16; // Reference range for the result.
|
100
|
+
CodedValue observation_method = 17; // Method used to obtain the observation. This field is used when an observation may be obtained by different methods and the sending system wishes to indicate which method was used.
|
101
|
+
string producer_order_id = 18;
|
102
|
+
CodedValue finding_value = 19; // Normalized value
|
103
|
+
}
|
@@ -1,109 +1,10 @@
|
|
1
1
|
syntax = "proto3";
|
2
2
|
package primary.connect;
|
3
3
|
|
4
|
-
import "google/protobuf/timestamp.proto";
|
5
|
-
|
6
|
-
import "address.proto";
|
7
|
-
import "coded_value.proto";
|
8
|
-
import "identifier.proto";
|
9
4
|
import "meta.proto";
|
10
|
-
import "
|
11
|
-
import "specimen.proto";
|
5
|
+
import "result.proto";
|
12
6
|
|
13
7
|
message Results {
|
14
|
-
message Result {
|
15
|
-
enum ValueType {
|
16
|
-
ADDRESS = 0;
|
17
|
-
CODED_ENTRY = 1;
|
18
|
-
DATE = 2;
|
19
|
-
DATE_TIME = 3;
|
20
|
-
ENCAPSULATED_DATA = 4;
|
21
|
-
FORMATTED_TEXT = 5;
|
22
|
-
ID = 6;
|
23
|
-
ID_AND_NAME = 7;
|
24
|
-
MONEY = 8;
|
25
|
-
NAME = 9;
|
26
|
-
NUMERIC = 10;
|
27
|
-
PHONE_NUMBER = 11;
|
28
|
-
PRICE = 12;
|
29
|
-
REFERENCE_POINTER = 13;
|
30
|
-
STRING = 14;
|
31
|
-
TIME = 15;
|
32
|
-
STRUCTURED_NUMERIC = 16;
|
33
|
-
}
|
34
|
-
|
35
|
-
enum AbnormalFlag {
|
36
|
-
NORMAL = 0;
|
37
|
-
LOW = 1;
|
38
|
-
VERY_LOW = 2;
|
39
|
-
HIGH = 3;
|
40
|
-
VERY_HIGH = 4;
|
41
|
-
ABNORMAL = 5;
|
42
|
-
SUSCEPTIBLE = 6;
|
43
|
-
RESISTANT = 7;
|
44
|
-
INTERMEDIATE = 8;
|
45
|
-
MODERATELY_SUSCEPTIBLE = 9;
|
46
|
-
VERY_SUSCEPTIBLE = 10;
|
47
|
-
CRITICALLY_ABNORMAL = 11;
|
48
|
-
CRITICALLY_LOW = 12;
|
49
|
-
CRITICALLY_HIGH = 13;
|
50
|
-
NOT_SUSCEPTIBLE = 14;
|
51
|
-
INCONCLUSIVE = 15;
|
52
|
-
VERY_ABNORMAL = 16;
|
53
|
-
}
|
54
|
-
|
55
|
-
enum Status {
|
56
|
-
PRELIMINARY = 0;
|
57
|
-
INCOMPLETE = 1;
|
58
|
-
CORRECTED = 2;
|
59
|
-
FINAL = 3;
|
60
|
-
UNAVAILABLE = 4;
|
61
|
-
NONE_SPECIFIED = 5;
|
62
|
-
CANCELED = 6;
|
63
|
-
DELETED = 7;
|
64
|
-
REJECTED = 8;
|
65
|
-
}
|
66
|
-
|
67
|
-
message Producer {
|
68
|
-
Identifier id = 1;
|
69
|
-
string name = 2;
|
70
|
-
Address address = 3;
|
71
|
-
}
|
72
|
-
|
73
|
-
message Range {
|
74
|
-
// Numeric result values will use the low and high properties.
|
75
|
-
// Non-numeric result values will put the normal value in the text property.
|
76
|
-
int32 low = 1; // Lower bound for a normal result
|
77
|
-
int32 high = 2; // Upper bound for a normal result
|
78
|
-
string text = 3; // Normal value for non-numeric results
|
79
|
-
}
|
80
|
-
|
81
|
-
message Report {
|
82
|
-
string file_type = 1;
|
83
|
-
string data = 2; // Ideally, Base64 encoded report
|
84
|
-
string url = 3;
|
85
|
-
}
|
86
|
-
|
87
|
-
CodedValue code = 1; // Code for the result component
|
88
|
-
repeated string related_group_id = 2; // ID to group separate result components
|
89
|
-
Specimen specimen = 3;
|
90
|
-
string value = 4; // Value of the result component. If value_type is ValueType.ENCAPSULATED_DATA this field includes the BLOB URI
|
91
|
-
ValueType value_type = 5; // Data type for the result value
|
92
|
-
google.protobuf.Timestamp completion_date_time = 6; // Timestamp at which the individual results were composed into a report and released
|
93
|
-
Report report = 7;
|
94
|
-
string units = 8; // Units of the result
|
95
|
-
repeated string notes = 9; // Notes about the result component/observation
|
96
|
-
AbnormalFlag abnormal_flag = 10; // Indication of whether the result was abnormal
|
97
|
-
Status status = 12; // Current status of the result
|
98
|
-
Provider primary_results_interpreter = 13;
|
99
|
-
Producer producer = 14; // typically the Lab which did the resulting
|
100
|
-
Provider performer = 15; // person that performed the resulting
|
101
|
-
Range reference_range = 16; // Reference range for the result.
|
102
|
-
CodedValue observation_method = 17; // Method used to obtain the observation. This field is used when an observation may be obtained by different methods and the sending system wishes to indicate which method was used.
|
103
|
-
string producer_order_id = 18;
|
104
|
-
CodedValue finding_value = 19; // Normalized value
|
105
|
-
}
|
106
|
-
|
107
8
|
Meta meta = 1;
|
108
9
|
repeated Result results = 2; // List of result components and their values
|
109
10
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: primary_connect_proto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Primary.Health
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -97,6 +97,7 @@ files:
|
|
97
97
|
- lib/connect_proto/build/phone_number_pb.rb
|
98
98
|
- lib/connect_proto/build/provider_pb.rb
|
99
99
|
- lib/connect_proto/build/relationship_pb.rb
|
100
|
+
- lib/connect_proto/build/result_pb.rb
|
100
101
|
- lib/connect_proto/build/results_pb.rb
|
101
102
|
- lib/connect_proto/build/specimen_pb.rb
|
102
103
|
- lib/connect_proto/build/visit_pb.rb
|
@@ -112,6 +113,7 @@ files:
|
|
112
113
|
- lib/connect_proto/src/phone_number.proto
|
113
114
|
- lib/connect_proto/src/provider.proto
|
114
115
|
- lib/connect_proto/src/relationship.proto
|
116
|
+
- lib/connect_proto/src/result.proto
|
115
117
|
- lib/connect_proto/src/results.proto
|
116
118
|
- lib/connect_proto/src/specimen.proto
|
117
119
|
- lib/connect_proto/src/visit.proto
|