primary_connect_proto 0.3.0 → 0.6.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 +10 -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/demographics_pb.rb +1 -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/demographics.proto +1 -1
- data/lib/connect_proto/src/order.proto +2 -0
- data/lib/connect_proto/src/results.proto +1 -0
- metadata +13 -13
- data/primary_connect_proto-0.2.0.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a99e0e5901421256f11ec2abef25f9ca93332207746a52cd1e7554876e016940
|
4
|
+
data.tar.gz: b37f870627065ca0e81a2dcd13e8885c56f0256c1b635fb03c78eb43c0197c76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e377e734a68fa42cb9d1a360f7390b57e700e510d8787fd1119d43a8a2a3124e2b1031a74a03dbefdcade75368deb69695f9db60bb4ce6c78d429c050323fe4
|
7
|
+
data.tar.gz: e9ca985e432384417cc1efaad8ec6d77271950f0ef30816032ca84ea32d46c84e82e3b2dc1b9a0aefd7e3bf8c66130203023afe8b4bc016ebd56b4563675f731
|
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
@@ -39,7 +39,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
39
39
|
value :RACE_WHITE, 6
|
40
40
|
value :RACE_PREFER_NOT_TO_DISCLOSE, 7
|
41
41
|
value :RACE_MIDDLE_EASTERN_OR_NORTH_AFRICAN, 8
|
42
|
-
value :
|
42
|
+
value :RACE_SOUTH_OR_CENTRAL_AMERICAN_INDIAN, 9
|
43
43
|
end
|
44
44
|
add_enum "primary.connect.Demographics.RaceDetail" do
|
45
45
|
value :RACE_DETAIL_UNKNOWN, 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
|
@@ -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.6.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-04 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
|
@@ -117,7 +118,6 @@ files:
|
|
117
118
|
- lib/extensions/full_nameable.rb
|
118
119
|
- lib/extensions/phone_numberable.rb
|
119
120
|
- lib/primary_connect_proto.rb
|
120
|
-
- primary_connect_proto-0.2.0.gem
|
121
121
|
- spec/protobuf/demographics_spec.rb
|
122
122
|
- spec/protobuf/name_spec.rb
|
123
123
|
- spec/protobuf/order/order/facility_spec.rb
|
@@ -1829,7 +1829,7 @@ homepage: https://github.com/PrimaryDotHealth/connect-proto
|
|
1829
1829
|
licenses:
|
1830
1830
|
- Unlicense
|
1831
1831
|
metadata: {}
|
1832
|
-
post_install_message:
|
1832
|
+
post_install_message:
|
1833
1833
|
rdoc_options: []
|
1834
1834
|
require_paths:
|
1835
1835
|
- lib
|
@@ -1846,8 +1846,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1846
1846
|
- !ruby/object:Gem::Version
|
1847
1847
|
version: '0'
|
1848
1848
|
requirements: []
|
1849
|
-
rubygems_version: 3.
|
1850
|
-
signing_key:
|
1849
|
+
rubygems_version: 3.2.15
|
1850
|
+
signing_key:
|
1851
1851
|
specification_version: 4
|
1852
1852
|
summary: Primary Connect Protobuf
|
1853
1853
|
test_files: []
|
Binary file
|