pharmaobservatory 0.1.15 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -4
- data/docs/ChangesList200Response.md +3 -1
- data/docs/CompaniesApi.md +82 -0
- data/docs/CompanyCompetitorsRow.md +25 -5
- data/docs/CompanyMarketCollisionsResponse.md +58 -0
- data/docs/CompanyMarketCollisionsRow.md +62 -0
- data/docs/SubscriptionsApi.md +2 -2
- data/lib/pharmaobservatory/api/companies_api.rb +91 -0
- data/lib/pharmaobservatory/models/changes_list200_response.rb +14 -4
- data/lib/pharmaobservatory/models/company_competitors_row.rb +119 -7
- data/lib/pharmaobservatory/models/company_market_collisions_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_market_collisions_row.rb +469 -0
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +2 -0
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 68a56638a6be4465ff4326f0601b244db5a546843a97731ff0a2fca6209e5bbf
|
|
4
|
+
data.tar.gz: 76a102df3b253a3116197184db0d12d0c38250e3b0596d758c2f9accb7794ebf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f19e47f1b32cab689625fb28a65aa62c00059dbeda830bd1add619673870169478907f6bd3307d29cfd94d35334375768e12393110746e2a36b67062ee15448b
|
|
7
|
+
data.tar.gz: d8f6fb4b2b0bda54b02eccb6524af00ef3b6958d92ee74aac17fcc69f4e47b6cb496c7e94ff3fb74cd2402330434f9a4d4930a362a897f2416d071d16e0c50bb
|
data/README.md
CHANGED
|
@@ -39,7 +39,7 @@ Read-only REST API over the Pharma Observatory biomedical data platform. Referen
|
|
|
39
39
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
40
40
|
|
|
41
41
|
- API version: 1.0.0
|
|
42
|
-
- Package version: 0.1.
|
|
42
|
+
- Package version: 0.1.17
|
|
43
43
|
- Generator version: 7.13.0
|
|
44
44
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
45
45
|
|
|
@@ -56,16 +56,16 @@ gem build pharmaobservatory.gemspec
|
|
|
56
56
|
Then either install the gem locally:
|
|
57
57
|
|
|
58
58
|
```shell
|
|
59
|
-
gem install ./pharmaobservatory-0.1.
|
|
59
|
+
gem install ./pharmaobservatory-0.1.17.gem
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
(for development, run `gem install --dev ./pharmaobservatory-0.1.
|
|
62
|
+
(for development, run `gem install --dev ./pharmaobservatory-0.1.17.gem` to install the development dependencies)
|
|
63
63
|
|
|
64
64
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
65
65
|
|
|
66
66
|
Finally add this to the Gemfile:
|
|
67
67
|
|
|
68
|
-
gem 'pharmaobservatory', '~> 0.1.
|
|
68
|
+
gem 'pharmaobservatory', '~> 0.1.17'
|
|
69
69
|
|
|
70
70
|
### Install from Git
|
|
71
71
|
|
|
@@ -156,6 +156,7 @@ Class | Method | HTTP request | Description
|
|
|
156
156
|
*PharmaObservatory::CompaniesApi* | [**companies_company_firmographics**](docs/CompaniesApi.md#companies_company_firmographics) | **GET** /api/v1/companies/{id}/company_firmographics | Company firmographics
|
|
157
157
|
*PharmaObservatory::CompaniesApi* | [**companies_company_funding_events**](docs/CompaniesApi.md#companies_company_funding_events) | **GET** /api/v1/companies/{id}/company_funding_events | Company funding events
|
|
158
158
|
*PharmaObservatory::CompaniesApi* | [**companies_company_funding_summary**](docs/CompaniesApi.md#companies_company_funding_summary) | **GET** /api/v1/companies/{id}/company_funding_summary | Company funding summary
|
|
159
|
+
*PharmaObservatory::CompaniesApi* | [**companies_company_market_collisions**](docs/CompaniesApi.md#companies_company_market_collisions) | **GET** /api/v1/companies/{id}/company_market_collisions | Company market collisions
|
|
159
160
|
*PharmaObservatory::CompaniesApi* | [**companies_company_members**](docs/CompaniesApi.md#companies_company_members) | **GET** /api/v1/companies/{id}/company_members | Company members
|
|
160
161
|
*PharmaObservatory::CompaniesApi* | [**companies_company_peer_profile**](docs/CompaniesApi.md#companies_company_peer_profile) | **GET** /api/v1/companies/{id}/company_peer_profile | Company peer profile
|
|
161
162
|
*PharmaObservatory::CompaniesApi* | [**companies_company_peers**](docs/CompaniesApi.md#companies_company_peers) | **GET** /api/v1/companies/{id}/company_peers | Company peers
|
|
@@ -522,6 +523,8 @@ Class | Method | HTTP request | Description
|
|
|
522
523
|
- [PharmaObservatory::CompanyFundingEventsRow](docs/CompanyFundingEventsRow.md)
|
|
523
524
|
- [PharmaObservatory::CompanyFundingSummaryResponse](docs/CompanyFundingSummaryResponse.md)
|
|
524
525
|
- [PharmaObservatory::CompanyFundingSummaryRow](docs/CompanyFundingSummaryRow.md)
|
|
526
|
+
- [PharmaObservatory::CompanyMarketCollisionsResponse](docs/CompanyMarketCollisionsResponse.md)
|
|
527
|
+
- [PharmaObservatory::CompanyMarketCollisionsRow](docs/CompanyMarketCollisionsRow.md)
|
|
525
528
|
- [PharmaObservatory::CompanyMembersResponse](docs/CompanyMembersResponse.md)
|
|
526
529
|
- [PharmaObservatory::CompanyMembersRow](docs/CompanyMembersRow.md)
|
|
527
530
|
- [PharmaObservatory::CompanyPeerProfileResponse](docs/CompanyPeerProfileResponse.md)
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
| **next_cursor** | **String** | | |
|
|
10
10
|
| **has_more** | **Boolean** | | |
|
|
11
11
|
| **build_state** | [**ChangesList200ResponseBuildState**](ChangesList200ResponseBuildState.md) | | |
|
|
12
|
+
| **oldest_available** | **String** | | [optional] |
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,7 +21,8 @@ instance = PharmaObservatory::ChangesList200Response.new(
|
|
|
20
21
|
count: null,
|
|
21
22
|
next_cursor: null,
|
|
22
23
|
has_more: null,
|
|
23
|
-
build_state: null
|
|
24
|
+
build_state: null,
|
|
25
|
+
oldest_available: null
|
|
24
26
|
)
|
|
25
27
|
```
|
|
26
28
|
|
data/docs/CompaniesApi.md
CHANGED
|
@@ -22,6 +22,7 @@ All URIs are relative to *https://pharmaobservatory.com*
|
|
|
22
22
|
| [**companies_company_firmographics**](CompaniesApi.md#companies_company_firmographics) | **GET** /api/v1/companies/{id}/company_firmographics | Company firmographics |
|
|
23
23
|
| [**companies_company_funding_events**](CompaniesApi.md#companies_company_funding_events) | **GET** /api/v1/companies/{id}/company_funding_events | Company funding events |
|
|
24
24
|
| [**companies_company_funding_summary**](CompaniesApi.md#companies_company_funding_summary) | **GET** /api/v1/companies/{id}/company_funding_summary | Company funding summary |
|
|
25
|
+
| [**companies_company_market_collisions**](CompaniesApi.md#companies_company_market_collisions) | **GET** /api/v1/companies/{id}/company_market_collisions | Company market collisions |
|
|
25
26
|
| [**companies_company_members**](CompaniesApi.md#companies_company_members) | **GET** /api/v1/companies/{id}/company_members | Company members |
|
|
26
27
|
| [**companies_company_peer_profile**](CompaniesApi.md#companies_company_peer_profile) | **GET** /api/v1/companies/{id}/company_peer_profile | Company peer profile |
|
|
27
28
|
| [**companies_company_peers**](CompaniesApi.md#companies_company_peers) | **GET** /api/v1/companies/{id}/company_peers | Company peers |
|
|
@@ -1533,6 +1534,87 @@ end
|
|
|
1533
1534
|
- **Accept**: application/json
|
|
1534
1535
|
|
|
1535
1536
|
|
|
1537
|
+
## companies_company_market_collisions
|
|
1538
|
+
|
|
1539
|
+
> <CompanyMarketCollisionsResponse> companies_company_market_collisions(id, opts)
|
|
1540
|
+
|
|
1541
|
+
Company market collisions
|
|
1542
|
+
|
|
1543
|
+
### Examples
|
|
1544
|
+
|
|
1545
|
+
```ruby
|
|
1546
|
+
require 'time'
|
|
1547
|
+
require 'pharmaobservatory'
|
|
1548
|
+
# setup authorization
|
|
1549
|
+
PharmaObservatory.configure do |config|
|
|
1550
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
1551
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1552
|
+
end
|
|
1553
|
+
|
|
1554
|
+
api_instance = PharmaObservatory::CompaniesApi.new
|
|
1555
|
+
id = 'company:c0185cf6c39a2536ad436cf6255494c0' # String |
|
|
1556
|
+
opts = {
|
|
1557
|
+
cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1558
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
1559
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1560
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
1561
|
+
measure: 'measure_example', # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1562
|
+
scope: 'company' # String | company (this company only) or group (its corporate group).
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
begin
|
|
1566
|
+
# Company market collisions
|
|
1567
|
+
result = api_instance.companies_company_market_collisions(id, opts)
|
|
1568
|
+
p result
|
|
1569
|
+
rescue PharmaObservatory::ApiError => e
|
|
1570
|
+
puts "Error when calling CompaniesApi->companies_company_market_collisions: #{e}"
|
|
1571
|
+
end
|
|
1572
|
+
```
|
|
1573
|
+
|
|
1574
|
+
#### Using the companies_company_market_collisions_with_http_info variant
|
|
1575
|
+
|
|
1576
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1577
|
+
|
|
1578
|
+
> <Array(<CompanyMarketCollisionsResponse>, Integer, Hash)> companies_company_market_collisions_with_http_info(id, opts)
|
|
1579
|
+
|
|
1580
|
+
```ruby
|
|
1581
|
+
begin
|
|
1582
|
+
# Company market collisions
|
|
1583
|
+
data, status_code, headers = api_instance.companies_company_market_collisions_with_http_info(id, opts)
|
|
1584
|
+
p status_code # => 2xx
|
|
1585
|
+
p headers # => { ... }
|
|
1586
|
+
p data # => <CompanyMarketCollisionsResponse>
|
|
1587
|
+
rescue PharmaObservatory::ApiError => e
|
|
1588
|
+
puts "Error when calling CompaniesApi->companies_company_market_collisions_with_http_info: #{e}"
|
|
1589
|
+
end
|
|
1590
|
+
```
|
|
1591
|
+
|
|
1592
|
+
### Parameters
|
|
1593
|
+
|
|
1594
|
+
| Name | Type | Description | Notes |
|
|
1595
|
+
| ---- | ---- | ----------- | ----- |
|
|
1596
|
+
| **id** | **String** | | |
|
|
1597
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
1598
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
1599
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
1600
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
1601
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
1602
|
+
| **scope** | **String** | company (this company only) or group (its corporate group). | [optional] |
|
|
1603
|
+
|
|
1604
|
+
### Return type
|
|
1605
|
+
|
|
1606
|
+
[**CompanyMarketCollisionsResponse**](CompanyMarketCollisionsResponse.md)
|
|
1607
|
+
|
|
1608
|
+
### Authorization
|
|
1609
|
+
|
|
1610
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
1611
|
+
|
|
1612
|
+
### HTTP request headers
|
|
1613
|
+
|
|
1614
|
+
- **Content-Type**: Not defined
|
|
1615
|
+
- **Accept**: application/json
|
|
1616
|
+
|
|
1617
|
+
|
|
1536
1618
|
## companies_company_members
|
|
1537
1619
|
|
|
1538
1620
|
> <CompanyMembersResponse> companies_company_members(id, opts)
|
|
@@ -8,21 +8,31 @@
|
|
|
8
8
|
| **company_name** | **String** | Display name of the company. | [optional] |
|
|
9
9
|
| **group_id** | **String** | Group level: the company's current ultimate parent; a root's group is itself. | [optional] |
|
|
10
10
|
| **group_name** | **String** | Display name of the group. | [optional] |
|
|
11
|
-
| **
|
|
11
|
+
| **row_level** | **String** | root: the competitor's ultimate parent company, with its score, counts and evidence recomputed over the union of its members' colliding assets (the best weight per target family and per indication across members, distinct asset pairs and distinct trials, never a sum of member scores). member: a company under that root that itself collides, scored on its own assets. Filter on one level; the two do not add. | [optional] |
|
|
12
|
+
| **competitor_company_id** | **String** | Company level: the competing company. At row_level root this is the root company; at member it is the member company itself. | [optional] |
|
|
12
13
|
| **competitor_company_name** | **String** | Display name of the competitor's company. | [optional] |
|
|
13
14
|
| **competitor_group_id** | **String** | Group level: the competitor's current ultimate parent; a root's group is itself. | [optional] |
|
|
14
15
|
| **competitor_group_name** | **String** | Display name of the competitor's group. | [optional] |
|
|
15
|
-
| **
|
|
16
|
+
| **competitor_root_id** | **String** | The ultimate parent company of the competitor, the ladder company's `coalesce(ultimate_parent_company_id, company_id)` (one root per company, never the multi-root group fan-out). Equal to competitor_company_id at row_level root, and the root a member row sits under. | [optional] |
|
|
17
|
+
| **competitor_class** | **String** | The competitor's class: always industry since the not-classed-as-industry group left Competitors; the column is kept so a query written against it keeps working. competitor_rank is 1-based within the class. | [optional] |
|
|
16
18
|
| **n_class_candidates** | **Integer** | How many companies of this competitor_class had at least one asset collision with the company before the top 25 were kept. The same value on every row of one company and class. | [optional] |
|
|
17
|
-
| **competitor_rank** | **Integer** | The competitor
|
|
19
|
+
| **competitor_rank** | **Integer** | The rank of the competitor ROOT within its competitor_class for the company by competitor_score (1 is the highest). The same on a root row and on each of its member rows. | [optional] |
|
|
20
|
+
| **member_rank** | **Integer** | 0 on a root row; 1 and up on the member rows of that root, by the member's own competitor_score. Order by competitor_rank then member_rank to list each root followed by its members. | [optional] |
|
|
21
|
+
| **n_members** | **Integer** | Member companies of this root that collide with the company, before the member cut. The same on a root row and its member rows. | [optional] |
|
|
18
22
|
| **competitor_score** | **Float** | The weighted share of the company's live target families that the competitor's live assets collide with, 0 to 100, rounded to four places. Each colliding family counts its best collision weight (rarity of the family across companies, times factors for same action, a shared indication, the least advanced stage, recency and a head-to-head trial), capped at the family's rarity weight; the sum is divided by the rarity weights of ALL the company's families. | [optional] |
|
|
19
|
-
| **n_collisions** | **Integer** | Asset pairs (a drug of the company, a drug of the competitor) that act on a common target. | [optional] |
|
|
23
|
+
| **n_collisions** | **Integer** | Asset pairs (a drug of the company, a drug of the competitor) that act on a common target; 0 when the competitor is listed only for a same-market pair (see n_market_collisions). | [optional] |
|
|
20
24
|
| **n_colliding_families** | **Integer** | Target families of the company's live assets that the competitor collides with. | [optional] |
|
|
21
25
|
| **n_subject_families** | **Integer** | Target families of the company's own live, owned assets; the denominator of competitor_score is their rarity weights. | [optional] |
|
|
22
26
|
| **n_same_action** | **Integer** | Asset pairs whose drugs act on the shared target with the same action type. | [optional] |
|
|
23
|
-
| **n_shared_indication_pairs** | **Integer** | Asset pairs whose programs share at least one disease area. | [optional] |
|
|
27
|
+
| **n_shared_indication_pairs** | **Integer** | Asset pairs whose programs share at least one disease area. Every listed pair does, so it equals n_collisions. | [optional] |
|
|
24
28
|
| **n_head_to_head_trials** | **Integer** | Distinct trials led by either company in which one drug of a pair is experimental and the other an active comparator. | [optional] |
|
|
29
|
+
| **best_stage** | **Integer** | The most advanced pair's stage, where a pair's stage is the less advanced of its two programs' furthest phase: 6 Phase 4, 5 Phase 3, 4 Phase 2/3, 3 Phase 2, 2 Phase 1/2, 1 Phase 1, 0 Early Phase 1, -1 phase not applicable. A tie-break key after the score. | [optional] |
|
|
30
|
+
| **last_year** | **Integer** | The latest trial start year over the company pair's programs (the maximum over its asset pairs of the later of the two programs' last start year). A tie-break key after the score; null when no program has a start year. | [optional] |
|
|
25
31
|
| **top_collisions** | **Array<String>** | Up to 3 strongest asset pairs as text: \"drug A / drug B: target family, stage, N shared indications\". The stage is the less advanced of the two programs. An ownership_basis of inferred_lead on the underlying pair (see company_asset_collisions) is an inference. | [optional] |
|
|
32
|
+
| **n_market_collisions** | **Integer** | Asset pairs (a Phase 3+ drug of the company, a Phase 3+ drug of the competitor) that share a MeSH indication on drugs with no common target; the pairs are the company_market_collisions dataset. | [optional] |
|
|
33
|
+
| **n_market_indications** | **Integer** | Distinct shared Phase 3+ indications of the pair, counted after a shared indication is replaced by a more specific one that the same asset pair also shares. | [optional] |
|
|
34
|
+
| **n_subject_markets** | **Integer** | The company's own Phase 3+ indications; with its target families, the denominator of competitor_score. 0 when it holds no Phase 3+ program. | [optional] |
|
|
35
|
+
| **top_market_collisions** | **Array<String>** | Up to 3 strongest same-market asset pairs as text: \"drug A / drug B: indication, same market, different target (SYMBOLS vs SYMBOLS), stage\". An empty list when none. Kept apart from top_collisions, which is target evidence only. | [optional] |
|
|
26
36
|
| **n_cosponsored_trials** | **Integer** | Distinct trials on which the company and the competitor are both named as sponsors, counted over their subtrees; 0 when none. A consortium trial (more than 25 sponsor companies) is left out. | [optional] |
|
|
27
37
|
|
|
28
38
|
## Example
|
|
@@ -35,13 +45,17 @@ instance = PharmaObservatory::CompanyCompetitorsRow.new(
|
|
|
35
45
|
company_name: null,
|
|
36
46
|
group_id: null,
|
|
37
47
|
group_name: null,
|
|
48
|
+
row_level: null,
|
|
38
49
|
competitor_company_id: null,
|
|
39
50
|
competitor_company_name: null,
|
|
40
51
|
competitor_group_id: null,
|
|
41
52
|
competitor_group_name: null,
|
|
53
|
+
competitor_root_id: null,
|
|
42
54
|
competitor_class: null,
|
|
43
55
|
n_class_candidates: null,
|
|
44
56
|
competitor_rank: null,
|
|
57
|
+
member_rank: null,
|
|
58
|
+
n_members: null,
|
|
45
59
|
competitor_score: null,
|
|
46
60
|
n_collisions: null,
|
|
47
61
|
n_colliding_families: null,
|
|
@@ -49,7 +63,13 @@ instance = PharmaObservatory::CompanyCompetitorsRow.new(
|
|
|
49
63
|
n_same_action: null,
|
|
50
64
|
n_shared_indication_pairs: null,
|
|
51
65
|
n_head_to_head_trials: null,
|
|
66
|
+
best_stage: null,
|
|
67
|
+
last_year: null,
|
|
52
68
|
top_collisions: null,
|
|
69
|
+
n_market_collisions: null,
|
|
70
|
+
n_market_indications: null,
|
|
71
|
+
n_subject_markets: null,
|
|
72
|
+
top_market_collisions: null,
|
|
53
73
|
n_cosponsored_trials: null
|
|
54
74
|
)
|
|
55
75
|
```
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# PharmaObservatory::CompanyMarketCollisionsResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **dataset** | **String** | | |
|
|
8
|
+
| **grain** | **String** | | [optional] |
|
|
9
|
+
| **object_type** | **String** | | [optional] |
|
|
10
|
+
| **id** | **String** | | [optional] |
|
|
11
|
+
| **scope** | [**AnimalWelfareAssurancesResponseScope**](AnimalWelfareAssurancesResponseScope.md) | | [optional] |
|
|
12
|
+
| **columns** | [**Array<DatasetColumn>**](DatasetColumn.md) | | |
|
|
13
|
+
| **rows** | [**Array<CompanyMarketCollisionsRow>**](CompanyMarketCollisionsRow.md) | | |
|
|
14
|
+
| **total** | **Integer** | The exact count of the filtered rows on an ungrouped read, carried by the cursor; null when grouped. | [optional] |
|
|
15
|
+
| **next_cursor** | **String** | | [optional] |
|
|
16
|
+
| **sort** | **Array<String>** | | [optional] |
|
|
17
|
+
| **filters** | **Array<Hash<String, Object>>** | | [optional] |
|
|
18
|
+
| **group_by** | **Array<String>** | | [optional] |
|
|
19
|
+
| **measures** | **Array<String>** | | [optional] |
|
|
20
|
+
| **attribution** | [**Array<DatasetAttribution>**](DatasetAttribution.md) | | [optional] |
|
|
21
|
+
| **source_credit** | **String** | | [optional] |
|
|
22
|
+
| **withheld_tiers** | **Array<String>** | | [optional] |
|
|
23
|
+
| **withheld_columns** | **Array<String>** | | [optional] |
|
|
24
|
+
| **freshness** | [**AnimalWelfareAssurancesResponseFreshness**](AnimalWelfareAssurancesResponseFreshness.md) | | [optional] |
|
|
25
|
+
| **build** | [**AnimalWelfareAssurancesResponseBuild**](AnimalWelfareAssurancesResponseBuild.md) | | [optional] |
|
|
26
|
+
| **build_state** | [**DatasetBuildState**](DatasetBuildState.md) | | [optional] |
|
|
27
|
+
| **restriction** | **Hash<String, Object>** | | [optional] |
|
|
28
|
+
|
|
29
|
+
## Example
|
|
30
|
+
|
|
31
|
+
```ruby
|
|
32
|
+
require 'pharmaobservatory'
|
|
33
|
+
|
|
34
|
+
instance = PharmaObservatory::CompanyMarketCollisionsResponse.new(
|
|
35
|
+
dataset: null,
|
|
36
|
+
grain: null,
|
|
37
|
+
object_type: null,
|
|
38
|
+
id: null,
|
|
39
|
+
scope: null,
|
|
40
|
+
columns: null,
|
|
41
|
+
rows: null,
|
|
42
|
+
total: null,
|
|
43
|
+
next_cursor: null,
|
|
44
|
+
sort: null,
|
|
45
|
+
filters: null,
|
|
46
|
+
group_by: null,
|
|
47
|
+
measures: null,
|
|
48
|
+
attribution: null,
|
|
49
|
+
source_credit: null,
|
|
50
|
+
withheld_tiers: null,
|
|
51
|
+
withheld_columns: null,
|
|
52
|
+
freshness: null,
|
|
53
|
+
build: null,
|
|
54
|
+
build_state: null,
|
|
55
|
+
restriction: null
|
|
56
|
+
)
|
|
57
|
+
```
|
|
58
|
+
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# PharmaObservatory::CompanyMarketCollisionsRow
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **company_id** | **String** | Company level: the company the row is about; the entry key for the companies object type. | [optional] |
|
|
8
|
+
| **company_name** | **String** | Display name of the company. | [optional] |
|
|
9
|
+
| **group_id** | **String** | Group level: the company's current ultimate parent; a root's group is itself. | [optional] |
|
|
10
|
+
| **group_name** | **String** | Display name of the group. | [optional] |
|
|
11
|
+
| **molecule_id** | **String** | Molecule level: the company's asset, the resolved drug (a drug with two canonical ids is one asset). | [optional] |
|
|
12
|
+
| **molecule_name** | **String** | The asset's display name, from the company's most-trialled record of it. | [optional] |
|
|
13
|
+
| **competitor_company_id** | **String** | Company level: the company whose asset collides. | [optional] |
|
|
14
|
+
| **competitor_company_name** | **String** | Display name of the competitor's company. | [optional] |
|
|
15
|
+
| **competitor_group_id** | **String** | Group level: the competitor's current ultimate parent; a root's group is itself. | [optional] |
|
|
16
|
+
| **competitor_group_name** | **String** | Display name of the competitor's group. | [optional] |
|
|
17
|
+
| **competitor_molecule_id** | **String** | Molecule level: the competitor's asset, the resolved drug. | [optional] |
|
|
18
|
+
| **competitor_molecule_name** | **String** | The competitor asset's display name. | [optional] |
|
|
19
|
+
| **condition_ui** | **String** | The shared MeSH indication (a MeSH descriptor id): both assets are owned, live and Phase 3 or 4 in it. | [optional] |
|
|
20
|
+
| **condition_name** | **String** | The MeSH name of the shared indication. | [optional] |
|
|
21
|
+
| **target_symbols** | **Array<String>** | Gene symbols of the company drug's recorded targets. Never empty, and none is a target of the competitor drug. | [optional] |
|
|
22
|
+
| **competitor_target_symbols** | **Array<String>** | Gene symbols of the competitor drug's recorded targets. | [optional] |
|
|
23
|
+
| **stage** | **Integer** | The less advanced of the two programs' furthest phase: 6 Phase 4, 5 Phase 3, 4 Phase 2/3, 3 Phase 2, 2 Phase 1/2, 1 Phase 1, 0 Early Phase 1, -1 phase not applicable. | [optional] |
|
|
24
|
+
| **last_year** | **Integer** | The later of the two programs' last trial start year. | [optional] |
|
|
25
|
+
| **n_head_to_head_trials** | **Integer** | Trials led by either company in which one drug is experimental and the other an active comparator. | [optional] |
|
|
26
|
+
| **ownership_basis** | **String** | Why the company owns the drug. experimental_arm and regulatory_holder rest on evidence; inferred_lead is an inference (no arm data says otherwise). | [optional] |
|
|
27
|
+
| **competitor_ownership_basis** | **String** | Why the competitor owns its drug, same vocabulary as ownership_basis. | [optional] |
|
|
28
|
+
| **indication_idf** | **Float** | The rarity weight of the indication: the natural log of (companies holding a live, owned Phase 3+ asset with a recorded target) over (companies holding one in this indication). | [optional] |
|
|
29
|
+
| **market_weight** | **Float** | The weight of the pair, 0.5 times indication_idf times factors for recency and a head-to-head trial. There is no stage factor, both programs are Phase 3 or 4. | [optional] |
|
|
30
|
+
|
|
31
|
+
## Example
|
|
32
|
+
|
|
33
|
+
```ruby
|
|
34
|
+
require 'pharmaobservatory'
|
|
35
|
+
|
|
36
|
+
instance = PharmaObservatory::CompanyMarketCollisionsRow.new(
|
|
37
|
+
company_id: null,
|
|
38
|
+
company_name: null,
|
|
39
|
+
group_id: null,
|
|
40
|
+
group_name: null,
|
|
41
|
+
molecule_id: null,
|
|
42
|
+
molecule_name: null,
|
|
43
|
+
competitor_company_id: null,
|
|
44
|
+
competitor_company_name: null,
|
|
45
|
+
competitor_group_id: null,
|
|
46
|
+
competitor_group_name: null,
|
|
47
|
+
competitor_molecule_id: null,
|
|
48
|
+
competitor_molecule_name: null,
|
|
49
|
+
condition_ui: null,
|
|
50
|
+
condition_name: null,
|
|
51
|
+
target_symbols: null,
|
|
52
|
+
competitor_target_symbols: null,
|
|
53
|
+
stage: null,
|
|
54
|
+
last_year: null,
|
|
55
|
+
n_head_to_head_trials: null,
|
|
56
|
+
ownership_basis: null,
|
|
57
|
+
competitor_ownership_basis: null,
|
|
58
|
+
indication_idf: null,
|
|
59
|
+
market_weight: null
|
|
60
|
+
)
|
|
61
|
+
```
|
|
62
|
+
|
data/docs/SubscriptionsApi.md
CHANGED
|
@@ -29,8 +29,8 @@ end
|
|
|
29
29
|
|
|
30
30
|
api_instance = PharmaObservatory::SubscriptionsApi.new
|
|
31
31
|
opts = {
|
|
32
|
-
cursor: '
|
|
33
|
-
limit:
|
|
32
|
+
cursor: 'eyJ2IjoxLCJvIjoiMjAyNi0wNS0wNFQwMDowMDowMC4wMDAwMDBaIiwiaSI6MX0', # String |
|
|
33
|
+
limit: 1 # Integer |
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
begin
|
|
@@ -1657,6 +1657,97 @@ module PharmaObservatory
|
|
|
1657
1657
|
return data, status_code, headers
|
|
1658
1658
|
end
|
|
1659
1659
|
|
|
1660
|
+
# Company market collisions
|
|
1661
|
+
# @param id [String]
|
|
1662
|
+
# @param [Hash] opts the optional parameters
|
|
1663
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1664
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1665
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1666
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1667
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1668
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1669
|
+
# @return [CompanyMarketCollisionsResponse]
|
|
1670
|
+
def companies_company_market_collisions(id, opts = {})
|
|
1671
|
+
data, _status_code, _headers = companies_company_market_collisions_with_http_info(id, opts)
|
|
1672
|
+
data
|
|
1673
|
+
end
|
|
1674
|
+
|
|
1675
|
+
# Company market collisions
|
|
1676
|
+
# @param id [String]
|
|
1677
|
+
# @param [Hash] opts the optional parameters
|
|
1678
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1679
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1680
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1681
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1682
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1683
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1684
|
+
# @return [Array<(CompanyMarketCollisionsResponse, Integer, Hash)>] CompanyMarketCollisionsResponse data, response status code and response headers
|
|
1685
|
+
def companies_company_market_collisions_with_http_info(id, opts = {})
|
|
1686
|
+
if @api_client.config.debugging
|
|
1687
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_market_collisions ...'
|
|
1688
|
+
end
|
|
1689
|
+
# verify the required parameter 'id' is set
|
|
1690
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1691
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_market_collisions"
|
|
1692
|
+
end
|
|
1693
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1694
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_market_collisions, must be smaller than or equal to 500.'
|
|
1695
|
+
end
|
|
1696
|
+
|
|
1697
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1698
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_market_collisions, must be greater than or equal to 1.'
|
|
1699
|
+
end
|
|
1700
|
+
|
|
1701
|
+
allowable_values = ["company", "group"]
|
|
1702
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
1703
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1704
|
+
end
|
|
1705
|
+
# resource path
|
|
1706
|
+
local_var_path = '/api/v1/companies/{id}/company_market_collisions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1707
|
+
|
|
1708
|
+
# query parameters
|
|
1709
|
+
query_params = opts[:query_params] || {}
|
|
1710
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1711
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1712
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1713
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1714
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1715
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
1716
|
+
|
|
1717
|
+
# header parameters
|
|
1718
|
+
header_params = opts[:header_params] || {}
|
|
1719
|
+
# HTTP header 'Accept' (if needed)
|
|
1720
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1721
|
+
|
|
1722
|
+
# form parameters
|
|
1723
|
+
form_params = opts[:form_params] || {}
|
|
1724
|
+
|
|
1725
|
+
# http body (model)
|
|
1726
|
+
post_body = opts[:debug_body]
|
|
1727
|
+
|
|
1728
|
+
# return_type
|
|
1729
|
+
return_type = opts[:debug_return_type] || 'CompanyMarketCollisionsResponse'
|
|
1730
|
+
|
|
1731
|
+
# auth_names
|
|
1732
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1733
|
+
|
|
1734
|
+
new_options = opts.merge(
|
|
1735
|
+
:operation => :"CompaniesApi.companies_company_market_collisions",
|
|
1736
|
+
:header_params => header_params,
|
|
1737
|
+
:query_params => query_params,
|
|
1738
|
+
:form_params => form_params,
|
|
1739
|
+
:body => post_body,
|
|
1740
|
+
:auth_names => auth_names,
|
|
1741
|
+
:return_type => return_type
|
|
1742
|
+
)
|
|
1743
|
+
|
|
1744
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1745
|
+
if @api_client.config.debugging
|
|
1746
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_market_collisions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1747
|
+
end
|
|
1748
|
+
return data, status_code, headers
|
|
1749
|
+
end
|
|
1750
|
+
|
|
1660
1751
|
# Company members
|
|
1661
1752
|
# @param id [String]
|
|
1662
1753
|
# @param [Hash] opts the optional parameters
|
|
@@ -25,6 +25,8 @@ module PharmaObservatory
|
|
|
25
25
|
|
|
26
26
|
attr_accessor :build_state
|
|
27
27
|
|
|
28
|
+
attr_accessor :oldest_available
|
|
29
|
+
|
|
28
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
31
|
def self.attribute_map
|
|
30
32
|
{
|
|
@@ -32,7 +34,8 @@ module PharmaObservatory
|
|
|
32
34
|
:'count' => :'count',
|
|
33
35
|
:'next_cursor' => :'next_cursor',
|
|
34
36
|
:'has_more' => :'has_more',
|
|
35
|
-
:'build_state' => :'build_state'
|
|
37
|
+
:'build_state' => :'build_state',
|
|
38
|
+
:'oldest_available' => :'oldest_available'
|
|
36
39
|
}
|
|
37
40
|
end
|
|
38
41
|
|
|
@@ -53,13 +56,15 @@ module PharmaObservatory
|
|
|
53
56
|
:'count' => :'Integer',
|
|
54
57
|
:'next_cursor' => :'String',
|
|
55
58
|
:'has_more' => :'Boolean',
|
|
56
|
-
:'build_state' => :'ChangesList200ResponseBuildState'
|
|
59
|
+
:'build_state' => :'ChangesList200ResponseBuildState',
|
|
60
|
+
:'oldest_available' => :'String'
|
|
57
61
|
}
|
|
58
62
|
end
|
|
59
63
|
|
|
60
64
|
# List of attributes with nullable: true
|
|
61
65
|
def self.openapi_nullable
|
|
62
66
|
Set.new([
|
|
67
|
+
:'oldest_available'
|
|
63
68
|
])
|
|
64
69
|
end
|
|
65
70
|
|
|
@@ -110,6 +115,10 @@ module PharmaObservatory
|
|
|
110
115
|
else
|
|
111
116
|
self.build_state = nil
|
|
112
117
|
end
|
|
118
|
+
|
|
119
|
+
if attributes.key?(:'oldest_available')
|
|
120
|
+
self.oldest_available = attributes[:'oldest_available']
|
|
121
|
+
end
|
|
113
122
|
end
|
|
114
123
|
|
|
115
124
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -211,7 +220,8 @@ module PharmaObservatory
|
|
|
211
220
|
count == o.count &&
|
|
212
221
|
next_cursor == o.next_cursor &&
|
|
213
222
|
has_more == o.has_more &&
|
|
214
|
-
build_state == o.build_state
|
|
223
|
+
build_state == o.build_state &&
|
|
224
|
+
oldest_available == o.oldest_available
|
|
215
225
|
end
|
|
216
226
|
|
|
217
227
|
# @see the `==` method
|
|
@@ -223,7 +233,7 @@ module PharmaObservatory
|
|
|
223
233
|
# Calculates hash code according to all attributes.
|
|
224
234
|
# @return [Integer] Hash code
|
|
225
235
|
def hash
|
|
226
|
-
[items, count, next_cursor, has_more, build_state].hash
|
|
236
|
+
[items, count, next_cursor, has_more, build_state, oldest_available].hash
|
|
227
237
|
end
|
|
228
238
|
|
|
229
239
|
# Builds the object from hash
|