Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ docs/Event.md
docs/Events.md
docs/Identifier.md
docs/Ids.md
docs/Immunizations.md
docs/ImmunizationQueryResponse.md
docs/Location.md
docs/Measurement.md
docs/Medication.md
Expand Down Expand Up @@ -85,7 +85,7 @@ lib/primary_connect_client/models/event.rb
lib/primary_connect_client/models/events.rb
lib/primary_connect_client/models/identifier.rb
lib/primary_connect_client/models/ids.rb
lib/primary_connect_client/models/immunizations.rb
lib/primary_connect_client/models/immunization_query_response.rb
lib/primary_connect_client/models/location.rb
lib/primary_connect_client/models/measurement.rb
lib/primary_connect_client/models/medication.rb
Expand Down Expand Up @@ -149,7 +149,7 @@ spec/models/event_spec.rb
spec/models/events_spec.rb
spec/models/identifier_spec.rb
spec/models/ids_spec.rb
spec/models/immunizations_spec.rb
spec/models/immunization_query_response_spec.rb
spec/models/location_spec.rb
spec/models/measurement_spec.rb
spec/models/medication_administration_spec.rb
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ script:
- bundle install --path vendor/bundle
- bundle exec rspec
- gem build primary_connect_client.gemspec
- gem install ./primary_connect_client-1.13.0.gem
- gem install ./primary_connect_client-1.14.1.gem
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Client Library to interface with Primary Connect
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: v1
- Package version: 1.13.0
- Package version: 1.14.1
- Build package: org.openapitools.codegen.languages.RubyClientCodegen

## Installation
Expand All @@ -23,16 +23,16 @@ gem build primary_connect_client.gemspec
Then either install the gem locally:

```shell
gem install ./primary_connect_client-1.13.0.gem
gem install ./primary_connect_client-1.14.1.gem
```

(for development, run `gem install --dev ./primary_connect_client-1.13.0.gem` to install the development dependencies)
(for development, run `gem install --dev ./primary_connect_client-1.14.1.gem` to install the development dependencies)

or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).

Finally add this to the Gemfile:

gem 'primary_connect_client', '~> 1.13.0'
gem 'primary_connect_client', '~> 1.14.1'

### Install from Git

Expand Down Expand Up @@ -116,7 +116,7 @@ Class | Method | HTTP request | Description
- [PrimaryConnectClient::Events](docs/Events.md)
- [PrimaryConnectClient::Identifier](docs/Identifier.md)
- [PrimaryConnectClient::Ids](docs/Ids.md)
- [PrimaryConnectClient::Immunizations](docs/Immunizations.md)
- [PrimaryConnectClient::ImmunizationQueryResponse](docs/ImmunizationQueryResponse.md)
- [PrimaryConnectClient::Location](docs/Location.md)
- [PrimaryConnectClient::Measurement](docs/Measurement.md)
- [PrimaryConnectClient::Medication](docs/Medication.md)
Expand Down
2 changes: 2 additions & 0 deletions docs/Candidates.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **error** | **String** | Error message | [optional] |
| **candidates** | [**Array<Patient>**](Patient.md) | List of possible matches for the query | [optional] |

## Example
Expand All @@ -12,6 +13,7 @@
require 'primary_connect_client'

instance = PrimaryConnectClient::Candidates.new(
error: null,
candidates: null
)
```
Expand Down
8 changes: 4 additions & 4 deletions docs/DefaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ nil (empty response body)

## send_query

> <Immunizations> send_query(opts)
> <ImmunizationQueryResponse> send_query(opts)

send query

Expand Down Expand Up @@ -1022,15 +1022,15 @@ end

This returns an Array which contains the response data, status code and headers.

> <Array(<Immunizations>, Integer, Hash)> send_query_with_http_info(opts)
> <Array(<ImmunizationQueryResponse>, Integer, Hash)> send_query_with_http_info(opts)

```ruby
begin
# send query
data, status_code, headers = api_instance.send_query_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <Immunizations>
p data # => <ImmunizationQueryResponse>
rescue PrimaryConnectClient::ApiError => e
puts "Error when calling DefaultApi->send_query_with_http_info: #{e}"
end
Expand All @@ -1044,7 +1044,7 @@ end

### Return type

[**Immunizations**](Immunizations.md)
[**ImmunizationQueryResponse**](ImmunizationQueryResponse.md)

### Authorization

Expand Down
22 changes: 22 additions & 0 deletions docs/ImmunizationQueryResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# PrimaryConnectClient::ImmunizationQueryResponse

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **meta** | [**Meta**](Meta.md) | | [optional] |
| **patient** | [**Patient**](Patient.md) | | [optional] |
| **medication_administrations** | [**Array&lt;MedicationAdministration&gt;**](MedicationAdministration.md) | List of Medication Administrations | [optional] |

## Example

```ruby
require 'primary_connect_client'

instance = PrimaryConnectClient::ImmunizationQueryResponse.new(
meta: null,
patient: null,
medication_administrations: null
)
```

2 changes: 1 addition & 1 deletion lib/primary_connect_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
require 'primary_connect_client/models/events'
require 'primary_connect_client/models/identifier'
require 'primary_connect_client/models/ids'
require 'primary_connect_client/models/immunizations'
require 'primary_connect_client/models/immunization_query_response'
require 'primary_connect_client/models/location'
require 'primary_connect_client/models/measurement'
require 'primary_connect_client/models/medication'
Expand Down
6 changes: 3 additions & 3 deletions lib/primary_connect_client/api/default_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ def reroute_order_by_ulid_with_http_info(id, opts = {})
# send query
# @param [Hash] opts the optional parameters
# @option opts [Query] :query
# @return [Immunizations]
# @return [ImmunizationQueryResponse]
def send_query(opts = {})
data, _status_code, _headers = send_query_with_http_info(opts)
data
Expand All @@ -914,7 +914,7 @@ def send_query(opts = {})
# send query
# @param [Hash] opts the optional parameters
# @option opts [Query] :query
# @return [Array<(Immunizations, Integer, Hash)>] Immunizations data, response status code and response headers
# @return [Array<(ImmunizationQueryResponse, Integer, Hash)>] ImmunizationQueryResponse data, response status code and response headers
def send_query_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: DefaultApi.send_query ...'
Expand Down Expand Up @@ -942,7 +942,7 @@ def send_query_with_http_info(opts = {})
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'query'])

# return_type
return_type = opts[:debug_return_type] || 'Immunizations'
return_type = opts[:debug_return_type] || 'ImmunizationQueryResponse'

# auth_names
auth_names = opts[:debug_auth_names] || ['bearer_auth']
Expand Down
12 changes: 11 additions & 1 deletion lib/primary_connect_client/models/candidates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@

module PrimaryConnectClient
class Candidates
# Error message
attr_accessor :error

# List of possible matches for the query
attr_accessor :candidates

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'error' => :'error',
:'candidates' => :'candidates'
}
end
Expand All @@ -33,6 +37,7 @@ def self.acceptable_attributes
# Attribute type mapping.
def self.openapi_types
{
:'error' => :'String',
:'candidates' => :'Array<Patient>'
}
end
Expand All @@ -58,6 +63,10 @@ def initialize(attributes = {})
h[k.to_sym] = v
}

if attributes.key?(:'error')
self.error = attributes[:'error']
end

if attributes.key?(:'candidates')
if (value = attributes[:'candidates']).is_a?(Array)
self.candidates = value
Expand All @@ -83,6 +92,7 @@ def valid?
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
error == o.error &&
candidates == o.candidates
end

Expand All @@ -95,7 +105,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[candidates].hash
[error, candidates].hash
end

# Builds the object from hash
Expand Down
Loading