primary_connect_proto 0.4.0 → 0.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a25d79799f2596a89a5d3d572ec172fbf0934ebf4199a22d3756bca87933acee
4
- data.tar.gz: ada66a58e1b50d9aed8633726c45ed37be8956e204f9502da4a6d8e5de303c33
3
+ metadata.gz: 84b6c17757a04a0c85141e80f5198e418d22750fb67ea20e7dcc396717d57837
4
+ data.tar.gz: d7ea410edebecd2613f2db10f31178e25122ee0d5cbb189914d51fdb4bbad614
5
5
  SHA512:
6
- metadata.gz: f68377a3bd5a91dfa959d1295c69ad716b4010a908c6188f2c3f5adb236065d2c95247d5c3d14c2d0fb6ab3dfbf59201706e7bb8e0beb34420da96f3c53ba226
7
- data.tar.gz: dd8388ac032c6fcfd9ce56b38df8bca754e5a0ede6d8b1ddf8b255576aa7ab0505d727fcfe77cc5ff7c6104aeef8c096c8a810c02eff000b427c9892dc82a4f5
6
+ metadata.gz: 2e503879494f7f052362920562cd597e152927aa55a21c901768f6add5813d1fd00ce247fe40d85a9fa38ffd92240cfad5333e1b9151405520c3cd662d107176
7
+ data.tar.gz: c087fae16f8cf92877a48398f515f01093339172312568b4729fa434258b3cb3cd4adfc428314f7cabb478b8ac56ca770ef97515ddc68e06258b83654abccfb6
data/CHANGELOG.md ADDED
@@ -0,0 +1,15 @@
1
+ # Change Log
2
+
3
+ ## 0.7.0
4
+
5
+ - Added `echo` to `Meta`
6
+ - Updated `Meta.destination.config`
7
+
8
+ ## 0.6.0
9
+
10
+ - Added `external_ids` to `Order`
11
+ - Added `url` to `Report`
12
+
13
+ ## 0.5.0
14
+
15
+ - Added `TimeZone` to `Address`
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 :protobuf do
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
- namespace :build do
13
- task :default do
14
- Dir.glob("#{src_directory}/**/*.proto").each do |protobuf|
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
- desc 'Watch protobuf src directory and compile after any changes'
20
- task :watch do
21
- require 'listen'
22
- listener = Listen.to(src_directory, only: /.proto$/, relative: true) do |modified, added, removed|
23
- (modified + added).each do |path|
24
- compile(src_directory, path)
25
- end
26
- removed.each do |path|
27
- puts "Deleting #{path}"
28
- File.delete(path) if File.exist?(path)
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'
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "primary_connect_proto"
8
- s.version = "0.4.0"
8
+ s.version = "0.7.0"
9
9
  s.authors = ["Primary.Health"]
10
10
  s.email = ["sam@primary.health"]
11
11
 
@@ -13,6 +13,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  optional :zip, :string, 5
14
14
  optional :county, :string, 6
15
15
  optional :country_code, :string, 7
16
+ optional :time_zone, :string, 8
16
17
  end
17
18
  end
18
19
  end
@@ -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, :string, 3
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
@@ -9,4 +9,5 @@ message Address {
9
9
  string zip = 5;
10
10
  string county = 6;
11
11
  string country_code = 7;
12
+ string time_zone = 8;
12
13
  }
@@ -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, string> config = 3;
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;
@@ -81,6 +81,7 @@ message Results {
81
81
  message Report {
82
82
  string file_type = 1;
83
83
  string data = 2; // Ideally, Base64 encoded report
84
+ string url = 3;
84
85
  }
85
86
 
86
87
  CodedValue code = 1; // Code for the result component
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.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: 2021-12-08 00:00:00.000000000 Z
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.0.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: []