primary_connect_proto 0.10.1 → 0.10.2

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: 45261c465b34e5e9e415246f48d401a0f336c3030b71d85822c8dee17968d0ad
4
- data.tar.gz: 98e1c153499ae867dfcaab39748075de6c64d0b670ae7d2ad880d50e533f8ef8
3
+ metadata.gz: 6cdfb8725dfc8548cfe48cf3727e78a435e50212c080dafc07ce778c599e9e5c
4
+ data.tar.gz: 484f6c5239580a4460b4ddb70358e418f4f890f4465f037149927fcc8b529f89
5
5
  SHA512:
6
- metadata.gz: 83c4dfc06aaf877fb8298a3ba557845e32d6ae4f6d54b9ca22bfd4d7725541ead4c79238f81385dd775480957e90d4937033934e895b9da2fbc32ce3c717475f
7
- data.tar.gz: 73b7ee8a9f42ff1dde4ec2f98781eedab7770ce090d83de2cb3db99136147beff5ab9d67210ff56960c36df4c6810405648827956eacf192e9e481177cb4e351
6
+ metadata.gz: 74166b308ed9d2ac62a49537df0deac54092ea7b875b68f74fe4e8a1b1a2ccf356fdf7e0465aff1bae5e245bf6c5ebb4d08f24285b935b89be485be65afd754b
7
+ data.tar.gz: ae98ea8325f5ce6acbd8a25f444ea21741766bdb794b3030759e3d88cd88ee992db2f9c9db762350ee4fc060dff78055d1b75dc0f5c171f06884ce690eb8ac08
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.10.2
4
+
5
+ - Use `oneof` for `Subject` in `Order`
6
+
7
+ ## 0.10.1
8
+
9
+ - Added `Device` model and `Subject` field to `Order`
10
+
3
11
  ## 0.9.0
4
12
 
5
13
  - Update enums at index 0 to be an `unknown` type value
@@ -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.10.1"
8
+ s.version = "0.10.2"
9
9
  s.authors = ["Primary.Health"]
10
10
  s.email = ["sam@primary.health"]
11
11
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/protobuf/any_pb'
7
6
  require 'google/protobuf/timestamp_pb'
8
7
  require 'address_pb'
9
8
  require 'coded_value_pb'
9
+ require 'device_pb'
10
10
  require 'identifier_pb'
11
11
  require 'meta_pb'
12
12
  require 'patient_pb'
@@ -22,7 +22,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
22
22
  optional :patient, :message, 2, "primary.connect.Patient"
23
23
  optional :visit, :message, 3, "primary.connect.Visit"
24
24
  optional :order, :message, 4, "primary.connect.Order.Order"
25
- optional :subject, :message, 5, "google.protobuf.Any"
25
+ optional :subject, :message, 5, "primary.connect.Order.Subject"
26
26
  end
27
27
  add_message "primary.connect.Order.Order" do
28
28
  optional :id, :string, 1
@@ -104,6 +104,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
104
104
  value :CONFIRMATIONS, 4
105
105
  value :ACKNOWLEDGEMENT, 5
106
106
  end
107
+ add_message "primary.connect.Order.Subject" do
108
+ oneof :subject do
109
+ optional :patient, :message, 1, "primary.connect.Patient"
110
+ optional :device, :message, 2, "primary.connect.Device"
111
+ end
112
+ end
107
113
  end
108
114
  end
109
115
 
@@ -119,5 +125,6 @@ module Primary
119
125
  Order::Order::Priority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Order.Order.Priority").enummodule
120
126
  Order::Order::ResultStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Order.Order.ResultStatus").enummodule
121
127
  Order::Order::ResponseFlag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Order.Order.ResponseFlag").enummodule
128
+ Order::Subject = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Order.Subject").msgclass
122
129
  end
123
130
  end
@@ -2,11 +2,11 @@ syntax = "proto3";
2
2
  package primary.connect;
3
3
  option go_package = "primary.connect";
4
4
 
5
- import "google/protobuf/any.proto";
6
5
  import "google/protobuf/timestamp.proto";
7
6
 
8
7
  import "address.proto";
9
8
  import "coded_value.proto";
9
+ import "device.proto";
10
10
  import "identifier.proto";
11
11
  import "meta.proto";
12
12
  import "patient.proto";
@@ -108,9 +108,16 @@ message Order {
108
108
  google.protobuf.Timestamp collection_start_date_time = 22; // Timestamp when the results collection was started.
109
109
  }
110
110
 
111
+ message Subject {
112
+ oneof subject {
113
+ Patient patient = 1;
114
+ Device device = 2;
115
+ };
116
+ }
117
+
111
118
  Meta meta = 1;
112
- Patient patient = 2;
119
+ Patient patient = 2; // Deprecated in favor of the subject field
113
120
  Visit visit = 3;
114
121
  Order order = 4;
115
- google.protobuf.Any subject = 5;
122
+ Subject subject = 5;
116
123
  }
@@ -3,6 +3,7 @@
3
3
  require 'address_pb'
4
4
  require 'coded_value_pb'
5
5
  require 'demographics_pb'
6
+ require 'device_pb'
6
7
  require 'identifier_pb'
7
8
  require 'location_pb'
8
9
  require 'meta_pb'
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.10.1
4
+ version: 0.10.2
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-06-08 00:00:00.000000000 Z
11
+ date: 2022-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -123,7 +123,6 @@ files:
123
123
  - lib/extensions/phone_numberable.rb
124
124
  - lib/extensions/valueable.rb
125
125
  - lib/primary_connect_proto.rb
126
- - primary_connect_proto-0.8.2.gem
127
126
  - spec/protobuf/demographics_spec.rb
128
127
  - spec/protobuf/name_spec.rb
129
128
  - spec/protobuf/order/order/facility_spec.rb
Binary file