primary_connect_proto 0.3.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c82766ce7a0c3587e14fb19ce0dc8eed98bd7ac0805c100e7cfdaa21b27e0988
4
- data.tar.gz: 9f8f832369aa5a4d2a66740e6e879e09a3d5411f6a52ceddc4d6b80d3c120ed7
3
+ metadata.gz: a99e0e5901421256f11ec2abef25f9ca93332207746a52cd1e7554876e016940
4
+ data.tar.gz: b37f870627065ca0e81a2dcd13e8885c56f0256c1b635fb03c78eb43c0197c76
5
5
  SHA512:
6
- metadata.gz: 276c10b7b9e87d96adafccc736cb770d7460e39c52e5fa6bef06aa98c928e8dcf88838840258a259b819cc1c382f1c0667485743511c982375ac6bb01e8b5ceb
7
- data.tar.gz: 56bc87af34a60a571d306fafe9fe1f3118f01c1b4b67c25091712ea0575af3a9e2f4e0e776602b7c280dd4b36fcc6be17010f37c5f259702b5431a0eb0315ade
6
+ metadata.gz: 6e377e734a68fa42cb9d1a360f7390b57e700e510d8787fd1119d43a8a2a3124e2b1031a74a03dbefdcade75368deb69695f9db60bb4ce6c78d429c050323fe4
7
+ data.tar.gz: e9ca985e432384417cc1efaad8ec6d77271950f0ef30816032ca84ea32d46c84e82e3b2dc1b9a0aefd7e3bf8c66130203023afe8b4bc016ebd56b4563675f731
data/CHANGELOG.md ADDED
@@ -0,0 +1,10 @@
1
+ # Change Log
2
+
3
+ ## 0.6.0
4
+
5
+ - Added `external_ids` to `Order`
6
+ - Added `url` to `Report`
7
+
8
+ ## 0.5.0
9
+
10
+ - 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.3.0"
8
+ s.version = "0.6.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
@@ -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 :RACE_AMERICAN_INDIAN_SOUTH_OR_CENTRAL_AMERICAN, 9
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
@@ -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
  }
@@ -18,7 +18,7 @@ message Demographics {
18
18
  RACE_WHITE = 6;
19
19
  RACE_PREFER_NOT_TO_DISCLOSE = 7;
20
20
  RACE_MIDDLE_EASTERN_OR_NORTH_AFRICAN = 8;
21
- RACE_AMERICAN_INDIAN_SOUTH_OR_CENTRAL_AMERICAN = 9;
21
+ RACE_SOUTH_OR_CENTRAL_AMERICAN_INDIAN = 9;
22
22
  }
23
23
 
24
24
  enum RaceDetail {
@@ -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.3.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: 2021-12-08 00:00:00.000000000 Z
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.0.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