primary_connect_proto 0.4.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/README.md +33 -1
- data/Rakefile +21 -23
- data/connect_proto.gemspec +1 -1
- data/lib/connect_proto/build/address_pb.rb +1 -0
- data/lib/connect_proto/build/meta_pb.rb +3 -1
- data/lib/connect_proto/build/order_pb.rb +2 -0
- data/lib/connect_proto/build/results_pb.rb +1 -0
- data/lib/connect_proto/src/address.proto +1 -0
- data/lib/connect_proto/src/meta.proto +3 -1
- data/lib/connect_proto/src/order.proto +2 -0
- data/lib/connect_proto/src/results.proto +1 -0
- metadata +13 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84b6c17757a04a0c85141e80f5198e418d22750fb67ea20e7dcc396717d57837
|
4
|
+
data.tar.gz: d7ea410edebecd2613f2db10f31178e25122ee0d5cbb189914d51fdb4bbad614
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e503879494f7f052362920562cd597e152927aa55a21c901768f6add5813d1fd00ce247fe40d85a9fa38ffd92240cfad5333e1b9151405520c3cd662d107176
|
7
|
+
data.tar.gz: c087fae16f8cf92877a48398f515f01093339172312568b4729fa434258b3cb3cd4adfc428314f7cabb478b8ac56ca770ef97515ddc68e06258b83654abccfb6
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -1 +1,33 @@
|
|
1
|
-
# connect-proto
|
1
|
+
# connect-proto
|
2
|
+
|
3
|
+
## Compile
|
4
|
+
|
5
|
+
- `brew install protobuf`
|
6
|
+
- NOTE: If you already have protobuf installed or plan to install using a different method, please ensure you install version 3.17.3
|
7
|
+
- `rake`
|
8
|
+
- Or `rake build:watch`
|
9
|
+
|
10
|
+
## Publishing changes
|
11
|
+
|
12
|
+
- Update version in `connect_proto.gemspec`
|
13
|
+
- Update `CHANGELOG.md`
|
14
|
+
- Push to Github
|
15
|
+
- Build gem
|
16
|
+
|
17
|
+
```
|
18
|
+
gem build connect_proto.gemspec`
|
19
|
+
```
|
20
|
+
|
21
|
+
- Publish gem
|
22
|
+
|
23
|
+
```
|
24
|
+
gem push primary_connect_proto-X.X.X.gem
|
25
|
+
```
|
26
|
+
|
27
|
+
- Cleanup
|
28
|
+
|
29
|
+
```
|
30
|
+
rm primary_connect_proto-X.X.X.gem`
|
31
|
+
```
|
32
|
+
|
33
|
+
- Bump version in dependent projects (client, integration testing, connect, health)
|
data/Rakefile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
namespace :
|
3
|
+
namespace :build do
|
4
4
|
src_directory = 'lib/connect_proto/src'
|
5
5
|
|
6
6
|
def compile(src_directory, path)
|
@@ -9,31 +9,29 @@ namespace :protobuf do
|
|
9
9
|
puts ' - done' if $?.exitstatus.zero?
|
10
10
|
end
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
compile(src_directory, protobuf)
|
16
|
-
end
|
12
|
+
task :default do
|
13
|
+
Dir.glob("#{src_directory}/**/*.proto").each do |protobuf|
|
14
|
+
compile(src_directory, protobuf)
|
17
15
|
end
|
16
|
+
end
|
18
17
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
end
|
18
|
+
desc 'Watch protobuf src directory and compile after any changes'
|
19
|
+
task :watch do
|
20
|
+
require 'listen'
|
21
|
+
listener = Listen.to(src_directory, only: /.proto$/, relative: true) do |modified, added, removed|
|
22
|
+
(modified + added).each do |path|
|
23
|
+
compile(src_directory, path)
|
24
|
+
end
|
25
|
+
removed.each do |path|
|
26
|
+
puts "Deleting #{path}"
|
27
|
+
File.delete(path) if File.exist?(path)
|
30
28
|
end
|
31
|
-
listener.start
|
32
|
-
puts "Watching #{src_directory}/**/*.proto"
|
33
|
-
sleep
|
34
29
|
end
|
30
|
+
listener.start
|
31
|
+
puts "Watching #{src_directory}/**/*.proto"
|
32
|
+
sleep
|
35
33
|
end
|
36
|
-
|
37
|
-
desc 'Compile all protobufs'
|
38
|
-
task build: 'build:default'
|
39
34
|
end
|
35
|
+
|
36
|
+
desc 'Compile all protobufs'
|
37
|
+
task default: 'build:default'
|
data/connect_proto.gemspec
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
+
require 'google/protobuf/any_pb'
|
6
7
|
require 'google/protobuf/timestamp_pb'
|
7
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
9
|
add_file("meta.proto", :syntax => :proto3) do
|
@@ -15,6 +16,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
15
16
|
optional :message, :message, 6, "primary.connect.Meta.Message"
|
16
17
|
optional :transmission, :message, 7, "primary.connect.Meta.Transmission"
|
17
18
|
optional :facility_code, :string, 8
|
19
|
+
map :echo, :string, :message, 9, "google.protobuf.Any"
|
18
20
|
end
|
19
21
|
add_message "primary.connect.Meta.Source" do
|
20
22
|
optional :id, :string, 1
|
@@ -30,7 +32,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
30
32
|
add_message "primary.connect.Meta.Destination" do
|
31
33
|
optional :id, :string, 1
|
32
34
|
optional :name, :string, 2
|
33
|
-
map :config, :string, :
|
35
|
+
map :config, :string, :message, 3, "google.protobuf.Any"
|
34
36
|
end
|
35
37
|
add_enum "primary.connect.Meta.EventType" do
|
36
38
|
value :EVENT_TYPE_NEW, 0
|
@@ -6,6 +6,7 @@ require 'google/protobuf'
|
|
6
6
|
require 'google/protobuf/timestamp_pb'
|
7
7
|
require 'address_pb'
|
8
8
|
require 'coded_value_pb'
|
9
|
+
require 'identifier_pb'
|
9
10
|
require 'meta_pb'
|
10
11
|
require 'patient_pb'
|
11
12
|
require 'phone_number_pb'
|
@@ -40,6 +41,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
40
41
|
repeated :clinical_info, :message, 17, "primary.connect.Order.Order.ClinicalInfo"
|
41
42
|
optional :results_status, :enum, 18, "primary.connect.Order.Order.ResultStatus"
|
42
43
|
optional :response_flag, :enum, 19, "primary.connect.Order.Order.ResponseFlag"
|
44
|
+
repeated :external_ids, :message, 20, "primary.connect.Identifier"
|
43
45
|
end
|
44
46
|
add_message "primary.connect.Order.Order.Facility" do
|
45
47
|
optional :name, :string, 1
|
@@ -49,6 +49,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
49
49
|
add_message "primary.connect.Results.Result.Report" do
|
50
50
|
optional :file_type, :string, 1
|
51
51
|
optional :data, :string, 2
|
52
|
+
optional :url, :string, 3
|
52
53
|
end
|
53
54
|
add_enum "primary.connect.Results.Result.ValueType" do
|
54
55
|
value :ADDRESS, 0
|
@@ -2,6 +2,7 @@
|
|
2
2
|
syntax = "proto3";
|
3
3
|
package primary.connect;
|
4
4
|
|
5
|
+
import "google/protobuf/any.proto";
|
5
6
|
import "google/protobuf/timestamp.proto";
|
6
7
|
|
7
8
|
message Meta {
|
@@ -30,7 +31,7 @@ message Meta {
|
|
30
31
|
message Destination {
|
31
32
|
string id = 1;
|
32
33
|
string name = 2;
|
33
|
-
map<string,
|
34
|
+
map<string, google.protobuf.Any> config = 3;
|
34
35
|
}
|
35
36
|
|
36
37
|
EventType event_type = 1;
|
@@ -41,4 +42,5 @@ message Meta {
|
|
41
42
|
Message message = 6;
|
42
43
|
Transmission transmission = 7;
|
43
44
|
string facility_code = 8;
|
45
|
+
map<string, google.protobuf.Any> echo = 9;
|
44
46
|
}
|
@@ -5,6 +5,7 @@ import "google/protobuf/timestamp.proto";
|
|
5
5
|
|
6
6
|
import "address.proto";
|
7
7
|
import "coded_value.proto";
|
8
|
+
import "identifier.proto";
|
8
9
|
import "meta.proto";
|
9
10
|
import "patient.proto";
|
10
11
|
import "phone_number.proto";
|
@@ -96,6 +97,7 @@ message Order {
|
|
96
97
|
repeated ClinicalInfo clinical_info = 17; // List of supplementary clinical information associated with the order. Often these are answers to Ask at Order Entry (AOE) questions.
|
97
98
|
ResultStatus results_status = 18; // Current overall status of the order
|
98
99
|
ResponseFlag response_flag = 19; // Specificity of the response requested from the receiving system
|
100
|
+
repeated Identifier external_ids = 20; // May contain any number of ids related to this order
|
99
101
|
}
|
100
102
|
|
101
103
|
Meta meta = 1;
|
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.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Primary.Health
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -56,22 +56,22 @@ dependencies:
|
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 3.6.0
|
62
59
|
- - "~>"
|
63
60
|
- !ruby/object:Gem::Version
|
64
61
|
version: '3.6'
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 3.6.0
|
65
65
|
type: :development
|
66
66
|
prerelease: false
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
|
-
- - ">="
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: 3.6.0
|
72
69
|
- - "~>"
|
73
70
|
- !ruby/object:Gem::Version
|
74
71
|
version: '3.6'
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 3.6.0
|
75
75
|
description: Protobufs for Diagnostic Ordering and Resulting
|
76
76
|
email:
|
77
77
|
- sam@primary.health
|
@@ -79,6 +79,7 @@ executables: []
|
|
79
79
|
extensions: []
|
80
80
|
extra_rdoc_files: []
|
81
81
|
files:
|
82
|
+
- CHANGELOG.md
|
82
83
|
- Gemfile
|
83
84
|
- Gemfile.lock
|
84
85
|
- README.md
|
@@ -1828,7 +1829,7 @@ homepage: https://github.com/PrimaryDotHealth/connect-proto
|
|
1828
1829
|
licenses:
|
1829
1830
|
- Unlicense
|
1830
1831
|
metadata: {}
|
1831
|
-
post_install_message:
|
1832
|
+
post_install_message:
|
1832
1833
|
rdoc_options: []
|
1833
1834
|
require_paths:
|
1834
1835
|
- lib
|
@@ -1845,8 +1846,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1845
1846
|
- !ruby/object:Gem::Version
|
1846
1847
|
version: '0'
|
1847
1848
|
requirements: []
|
1848
|
-
rubygems_version: 3.
|
1849
|
-
signing_key:
|
1849
|
+
rubygems_version: 3.2.15
|
1850
|
+
signing_key:
|
1850
1851
|
specification_version: 4
|
1851
1852
|
summary: Primary Connect Protobuf
|
1852
1853
|
test_files: []
|