Skip to content

Commit

Permalink
Update to 1.0.0
Browse files Browse the repository at this point in the history
- Added `create_result`
- Added `update_order`
- Included auto-generated models
  • Loading branch information
diazruy committed May 11, 2022
1 parent 6ae574a commit f889aae
Show file tree
Hide file tree
Showing 140 changed files with 15,415 additions and 156 deletions.
8 changes: 2 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# Generated by: https://openapi-generator.tech

# https://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/
Gemfile.lock
#

*.gem
*.rbc
/.config
.idea/**
/coverage/
/InstalledFiles
/pkg/
Expand All @@ -15,12 +12,11 @@ Gemfile.lock
/test/tmp/
/test/version_tmp/
/tmp/
.byebug_history

## Specific to RubyMotion:
.dat*
.repl_history
/build/
build/

## Documentation cache and generated files:
/.yardoc/
Expand Down
23 changes: 23 additions & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
141 changes: 141 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
.gitignore
.openapi-generator-ignore
.rspec
.rubocop.yml
.travis.yml
Gemfile
README.md
Rakefile
docs/Address.md
docs/CodedValue.md
docs/DefaultApi.md
docs/Error.md
docs/Event.md
docs/Events.md
docs/Identifier.md
docs/Location.md
docs/Meta.md
docs/MetaDestinations.md
docs/MetaMessage.md
docs/MetaSource.md
docs/Name.md
docs/Order.md
docs/OrderIds.md
docs/OrderOrder.md
docs/OrderOrderClinicalInfo.md
docs/OrderOrderDiagnoses.md
docs/OrderOrderOrderingFacility.md
docs/OrderOrderSpecimen.md
docs/OrderWithEventErrors.md
docs/Orders.md
docs/OrdersOrders.md
docs/Patient.md
docs/PatientContacts.md
docs/PatientDemographics.md
docs/PhoneNumber.md
docs/Provider.md
docs/Result.md
docs/ResultIds.md
docs/ResultReferenceRange.md
docs/ResultReport.md
docs/ResultSpecimen.md
docs/Results.md
docs/Visit.md
docs/VisitCompany.md
docs/VisitGuarantor.md
docs/VisitGuarantorEmployer.md
docs/VisitInsurances.md
docs/VisitInsured.md
docs/VisitPlan.md
git_push.sh
lib/primary_connect_client.rb
lib/primary_connect_client/api/default_api.rb
lib/primary_connect_client/api_client.rb
lib/primary_connect_client/api_error.rb
lib/primary_connect_client/configuration.rb
lib/primary_connect_client/models/address.rb
lib/primary_connect_client/models/coded_value.rb
lib/primary_connect_client/models/error.rb
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/location.rb
lib/primary_connect_client/models/meta.rb
lib/primary_connect_client/models/meta_destinations.rb
lib/primary_connect_client/models/meta_message.rb
lib/primary_connect_client/models/meta_source.rb
lib/primary_connect_client/models/name.rb
lib/primary_connect_client/models/order.rb
lib/primary_connect_client/models/order_ids.rb
lib/primary_connect_client/models/order_order.rb
lib/primary_connect_client/models/order_order_clinical_info.rb
lib/primary_connect_client/models/order_order_diagnoses.rb
lib/primary_connect_client/models/order_order_ordering_facility.rb
lib/primary_connect_client/models/order_order_specimen.rb
lib/primary_connect_client/models/order_with_event_errors.rb
lib/primary_connect_client/models/orders.rb
lib/primary_connect_client/models/orders_orders.rb
lib/primary_connect_client/models/patient.rb
lib/primary_connect_client/models/patient_contacts.rb
lib/primary_connect_client/models/patient_demographics.rb
lib/primary_connect_client/models/phone_number.rb
lib/primary_connect_client/models/provider.rb
lib/primary_connect_client/models/result.rb
lib/primary_connect_client/models/result_ids.rb
lib/primary_connect_client/models/result_reference_range.rb
lib/primary_connect_client/models/result_report.rb
lib/primary_connect_client/models/result_specimen.rb
lib/primary_connect_client/models/results.rb
lib/primary_connect_client/models/visit.rb
lib/primary_connect_client/models/visit_company.rb
lib/primary_connect_client/models/visit_guarantor.rb
lib/primary_connect_client/models/visit_guarantor_employer.rb
lib/primary_connect_client/models/visit_insurances.rb
lib/primary_connect_client/models/visit_insured.rb
lib/primary_connect_client/models/visit_plan.rb
lib/primary_connect_client/version.rb
primary_connect_client.gemspec
spec/api/default_api_spec.rb
spec/api_client_spec.rb
spec/configuration_spec.rb
spec/models/address_spec.rb
spec/models/coded_value_spec.rb
spec/models/error_spec.rb
spec/models/event_spec.rb
spec/models/events_spec.rb
spec/models/identifier_spec.rb
spec/models/location_spec.rb
spec/models/meta_destinations_spec.rb
spec/models/meta_message_spec.rb
spec/models/meta_source_spec.rb
spec/models/meta_spec.rb
spec/models/name_spec.rb
spec/models/order_ids_spec.rb
spec/models/order_order_clinical_info_spec.rb
spec/models/order_order_diagnoses_spec.rb
spec/models/order_order_ordering_facility_spec.rb
spec/models/order_order_spec.rb
spec/models/order_order_specimen_spec.rb
spec/models/order_spec.rb
spec/models/order_with_event_errors_spec.rb
spec/models/orders_orders_spec.rb
spec/models/orders_spec.rb
spec/models/patient_contacts_spec.rb
spec/models/patient_demographics_spec.rb
spec/models/patient_spec.rb
spec/models/phone_number_spec.rb
spec/models/provider_spec.rb
spec/models/result_ids_spec.rb
spec/models/result_reference_range_spec.rb
spec/models/result_report_spec.rb
spec/models/result_spec.rb
spec/models/result_specimen_spec.rb
spec/models/results_spec.rb
spec/models/visit_company_spec.rb
spec/models/visit_guarantor_employer_spec.rb
spec/models/visit_guarantor_spec.rb
spec/models/visit_insurances_spec.rb
spec/models/visit_insured_spec.rb
spec/models/visit_plan_spec.rb
spec/models/visit_spec.rb
spec/spec_helper.rb
1 change: 1 addition & 0 deletions .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5.3.0
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ rvm:
- 2.3
- 2.4
- 2.5
- 2.6
- 2.7
- 3.0
script:
- bundle install --path vendor/bundle
- bundle exec rspec
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Change Log

## 1.0.0

- Added `create_result`
- Added `update_order`
- Included auto-generated models

### Breaking changes

- Updated responses to return models instead of Objects

## 0.8.0

- Bumped `primary_connect_proto` to `0.9.0`
Expand Down
69 changes: 57 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ end

api_instance = PrimaryConnectClient::DefaultApi.new
opts = {
order: Primary::Connect::Order.new.to_json # Order |
order: PrimaryConnectClient::Order.new # Order |
}

begin
#create order
api_instance.create_order(opts)
result = api_instance.create_order(opts)
p result
rescue PrimaryConnectClient::ApiError => e
puts "Exception when calling DefaultApi->create_order: #{e}"
end
Expand All @@ -80,22 +81,66 @@ end

All URIs are relative to *https://connect.primary.health*

| Class | Method | HTTP request | Description |
| ---------------------------------- | --------------------------------------------------- | ---------------------------------------------- | ------------ |
| _PrimaryConnectClient::DefaultApi_ | [**create_order**](docs/DefaultApi.md#create_order) | **POST** /api/v1/orders | create order |
| _PrimaryConnectClient::DefaultApi_ | [**get_order**](docs/DefaultApi.md#get_order) | **GET** /api/v1/orders/{id} | show order |
| _PrimaryConnectClient::DefaultApi_ | [**get_lab_report**](docs/DefaultApi.md#get_lab_report) | **GET** /api/v1/results/{result_id}/lab_report | show lab report |
| _PrimaryConnectClient::DefaultApi_ | [**get_result**](docs/DefaultApi.md#get_result) | **GET** /api/v1/orders/{order_id}/results/{id} | show result |
| _PrimaryConnectClient::DefaultApi_ | [**list_events**](docs/DefaultApi.md#list_events) | **GET** /api/v1/events | list events |
| _PrimaryConnectClient::DefaultApi_ | [**list_orders**](docs/DefaultApi.md#list_orders) | **GET** /api/v1/orders | list orders |
| _PrimaryConnectClient::DefaultApi_ | [**list_results**](docs/DefaultApi.md#list_results) | **GET** /api/v1/orders/{order_id}/results | list results |
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*PrimaryConnectClient::DefaultApi* | [**create_order**](docs/DefaultApi.md#create_order) | **POST** /api/v1/orders | create order
*PrimaryConnectClient::DefaultApi* | [**create_result**](docs/DefaultApi.md#create_result) | **POST** /api/v1/orders/{order_id}/results | create result
*PrimaryConnectClient::DefaultApi* | [**get_lab_report**](docs/DefaultApi.md#get_lab_report) | **GET** /api/v1/results/{result_id}/lab_report | show lab report
*PrimaryConnectClient::DefaultApi* | [**get_order**](docs/DefaultApi.md#get_order) | **GET** /api/v1/orders/{id} | show order
*PrimaryConnectClient::DefaultApi* | [**list_events**](docs/DefaultApi.md#list_events) | **GET** /api/v1/events | list events
*PrimaryConnectClient::DefaultApi* | [**list_orders**](docs/DefaultApi.md#list_orders) | **GET** /api/v1/orders | list orders
*PrimaryConnectClient::DefaultApi* | [**list_results**](docs/DefaultApi.md#list_results) | **GET** /api/v1/orders/{order_id}/results | list results
*PrimaryConnectClient::DefaultApi* | [**update_order**](docs/DefaultApi.md#update_order) | **PUT** /api/v1/orders/{id} | update order


## Documentation for Models

**TODO**
- [PrimaryConnectClient::Address](docs/Address.md)
- [PrimaryConnectClient::CodedValue](docs/CodedValue.md)
- [PrimaryConnectClient::Error](docs/Error.md)
- [PrimaryConnectClient::Event](docs/Event.md)
- [PrimaryConnectClient::Events](docs/Events.md)
- [PrimaryConnectClient::Identifier](docs/Identifier.md)
- [PrimaryConnectClient::Location](docs/Location.md)
- [PrimaryConnectClient::Meta](docs/Meta.md)
- [PrimaryConnectClient::MetaDestinations](docs/MetaDestinations.md)
- [PrimaryConnectClient::MetaMessage](docs/MetaMessage.md)
- [PrimaryConnectClient::MetaSource](docs/MetaSource.md)
- [PrimaryConnectClient::Name](docs/Name.md)
- [PrimaryConnectClient::Order](docs/Order.md)
- [PrimaryConnectClient::OrderIds](docs/OrderIds.md)
- [PrimaryConnectClient::OrderOrder](docs/OrderOrder.md)
- [PrimaryConnectClient::OrderOrderClinicalInfo](docs/OrderOrderClinicalInfo.md)
- [PrimaryConnectClient::OrderOrderDiagnoses](docs/OrderOrderDiagnoses.md)
- [PrimaryConnectClient::OrderOrderOrderingFacility](docs/OrderOrderOrderingFacility.md)
- [PrimaryConnectClient::OrderOrderSpecimen](docs/OrderOrderSpecimen.md)
- [PrimaryConnectClient::OrderWithEventErrors](docs/OrderWithEventErrors.md)
- [PrimaryConnectClient::Orders](docs/Orders.md)
- [PrimaryConnectClient::OrdersOrders](docs/OrdersOrders.md)
- [PrimaryConnectClient::Patient](docs/Patient.md)
- [PrimaryConnectClient::PatientContacts](docs/PatientContacts.md)
- [PrimaryConnectClient::PatientDemographics](docs/PatientDemographics.md)
- [PrimaryConnectClient::PhoneNumber](docs/PhoneNumber.md)
- [PrimaryConnectClient::Provider](docs/Provider.md)
- [PrimaryConnectClient::Result](docs/Result.md)
- [PrimaryConnectClient::ResultIds](docs/ResultIds.md)
- [PrimaryConnectClient::ResultReferenceRange](docs/ResultReferenceRange.md)
- [PrimaryConnectClient::ResultReport](docs/ResultReport.md)
- [PrimaryConnectClient::ResultSpecimen](docs/ResultSpecimen.md)
- [PrimaryConnectClient::Results](docs/Results.md)
- [PrimaryConnectClient::Visit](docs/Visit.md)
- [PrimaryConnectClient::VisitCompany](docs/VisitCompany.md)
- [PrimaryConnectClient::VisitGuarantor](docs/VisitGuarantor.md)
- [PrimaryConnectClient::VisitGuarantorEmployer](docs/VisitGuarantorEmployer.md)
- [PrimaryConnectClient::VisitInsurances](docs/VisitInsurances.md)
- [PrimaryConnectClient::VisitInsured](docs/VisitInsured.md)
- [PrimaryConnectClient::VisitPlan](docs/VisitPlan.md)


## Documentation for Authorization


### bearer_auth

- **Type**: Bearer authentication

30 changes: 30 additions & 0 deletions docs/Address.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# PrimaryConnectClient::Address

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **street_address_1** | **String** | | [optional] |
| **street_address_2** | **String** | | [optional] |
| **city** | **String** | | [optional] |
| **state_code** | **String** | | [optional] |
| **zip** | **String** | | [optional] |
| **county** | **String** | | [optional] |
| **country_code** | **String** | | [optional] |

## Example

```ruby
require 'primary_connect_client'

instance = PrimaryConnectClient::Address.new(
street_address_1: 123 Sesame St.,
street_address_2: Unit 456,
city: Springfield,
state_code: OH,
zip: 12345,
county: null,
country_code: US
)
```

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

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **value** | **String** | E.g. 260373001 (SCT), 3006F (CPT), etc. | [optional] |
| **code_set** | **String** | E.g. SCT, LN, NDC, CPT, CVX, etc. | [optional] |
| **description** | **String** | | [optional] |

## Example

```ruby
require 'primary_connect_client'

instance = PrimaryConnectClient::CodedValue.new(
value: 260373001,
code_set: SCT,
description: null
)
```

Loading

0 comments on commit f889aae

Please sign in to comment.