Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add create_result and update_order #11

Merged
merged 1 commit into from
May 13, 2022
Merged
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
8 changes: 2 additions & 6 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -1,12 +1,9 @@
# Generated by: https://openapi-generator.tech # Generated by: https://openapi-generator.tech

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


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


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


## Documentation cache and generated files: ## Documentation cache and generated files:
/.yardoc/ /.yardoc/
Expand Down
23 changes: 23 additions & 0 deletions .openapi-generator-ignore
Original file line number Original file line 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
138 changes: 138 additions & 0 deletions .openapi-generator/FILES
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,138 @@
.gitignore
.openapi-generator-ignore
.rspec
.rubocop.yml
.travis.yml
Gemfile
README.md
Rakefile
docs/Address.md
docs/CodedValue.md
docs/DefaultApi.md
docs/Demographics.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/OrderWithEventErrors.md
docs/Orders.md
docs/OrdersOrders.md
docs/Patient.md
docs/PatientContacts.md
docs/PhoneNumber.md
docs/Provider.md
docs/Result.md
docs/ResultIds.md
docs/ResultReferenceRange.md
docs/ResultReport.md
docs/Results.md
docs/Specimen.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/demographics.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_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/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/results.rb
lib/primary_connect_client/models/specimen.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/demographics_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_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_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/results_spec.rb
spec/models/specimen_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 Original file line Diff line number Diff line change
@@ -0,0 +1 @@
5.3.0
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ rvm:
- 2.3 - 2.3
- 2.4 - 2.4
- 2.5 - 2.5
- 2.6
- 2.7
- 3.0
script: script:
- bundle install --path vendor/bundle - bundle install --path vendor/bundle
- bundle exec rspec - bundle exec rspec
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,16 @@
# Change Log # 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
- No longer includes `primary_connect_proto` as it isn't technically a strict dependency.

## 0.8.0 ## 0.8.0


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


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


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


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


| Class | Method | HTTP request | Description | Class | Method | HTTP request | Description
| ---------------------------------- | --------------------------------------------------- | ---------------------------------------------- | ------------ | ------------ | ------------- | ------------- | -------------
| _PrimaryConnectClient::DefaultApi_ | [**create_order**](docs/DefaultApi.md#create_order) | **POST** /api/v1/orders | create order | *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* | [**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_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* | [**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_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_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* | [**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 ## Documentation for Models


**TODO** - [PrimaryConnectClient::Address](docs/Address.md)
- [PrimaryConnectClient::CodedValue](docs/CodedValue.md)
- [PrimaryConnectClient::Demographics](docs/Demographics.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::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::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::Results](docs/Results.md)
- [PrimaryConnectClient::Specimen](docs/Specimen.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 ## Documentation for Authorization



### bearer_auth ### bearer_auth


- **Type**: Bearer authentication - **Type**: Bearer authentication

32 changes: 32 additions & 0 deletions docs/Address.md
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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] |
| **time_zone** | **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,
time_zone: America/Los_Angeles
)
```

22 changes: 22 additions & 0 deletions docs/CodedValue.md
Original file line number Original file line 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