pharmaobservatory 0.1.25 → 0.1.26

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.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -4
  3. data/docs/BiomarkerLiteraturePeopleResponse.md +58 -0
  4. data/docs/BiomarkerLiteraturePeopleRow.md +36 -0
  5. data/docs/BiomarkersApi.md +80 -0
  6. data/docs/CompanyRareDiseaseDeclarationsRow.md +1 -1
  7. data/docs/ConditionLiteraturePeopleResponse.md +58 -0
  8. data/docs/ConditionLiteraturePeopleRow.md +36 -0
  9. data/docs/ConditionsApi.md +160 -0
  10. data/docs/ConditionsRecord.md +2 -0
  11. data/docs/InvestigatorsApi.md +320 -0
  12. data/docs/InvestmentGraphNodesRow.md +4 -2
  13. data/docs/LegalEntitiesApi.md +80 -0
  14. data/docs/OrgLiteraturePeopleResponse.md +58 -0
  15. data/docs/OrgLiteraturePeopleRow.md +36 -0
  16. data/docs/PatientOrganisationResponse.md +58 -0
  17. data/docs/PatientOrganisationRow.md +74 -0
  18. data/docs/RareDiseaseOrganizationsRow.md +1 -1
  19. data/docs/RareDiseaseTrialSitesRow.md +5 -3
  20. data/docs/RareDiseasesApi.md +80 -0
  21. data/docs/RareDiseasesRecord.md +2 -0
  22. data/docs/TargetLiteraturePeopleResponse.md +58 -0
  23. data/docs/TargetLiteraturePeopleRow.md +36 -0
  24. data/docs/TargetsApi.md +80 -0
  25. data/lib/pharmaobservatory/api/biomarkers_api.rb +84 -0
  26. data/lib/pharmaobservatory/api/conditions_api.rb +168 -0
  27. data/lib/pharmaobservatory/api/investigators_api.rb +336 -0
  28. data/lib/pharmaobservatory/api/legal_entities_api.rb +84 -0
  29. data/lib/pharmaobservatory/api/rare_diseases_api.rb +84 -0
  30. data/lib/pharmaobservatory/api/targets_api.rb +84 -0
  31. data/lib/pharmaobservatory/models/biomarker_literature_people_response.rb +478 -0
  32. data/lib/pharmaobservatory/models/biomarker_literature_people_row.rb +322 -0
  33. data/lib/pharmaobservatory/models/company_rare_disease_declarations_row.rb +1 -1
  34. data/lib/pharmaobservatory/models/condition_literature_people_response.rb +478 -0
  35. data/lib/pharmaobservatory/models/condition_literature_people_row.rb +322 -0
  36. data/lib/pharmaobservatory/models/conditions_record.rb +13 -1
  37. data/lib/pharmaobservatory/models/investment_graph_nodes_row.rb +19 -6
  38. data/lib/pharmaobservatory/models/org_literature_people_response.rb +478 -0
  39. data/lib/pharmaobservatory/models/org_literature_people_row.rb +322 -0
  40. data/lib/pharmaobservatory/models/patient_organisation_response.rb +478 -0
  41. data/lib/pharmaobservatory/models/patient_organisation_row.rb +545 -0
  42. data/lib/pharmaobservatory/models/rare_disease_organizations_row.rb +1 -1
  43. data/lib/pharmaobservatory/models/rare_disease_trial_sites_row.rb +15 -4
  44. data/lib/pharmaobservatory/models/rare_diseases_record.rb +13 -1
  45. data/lib/pharmaobservatory/models/target_literature_people_response.rb +478 -0
  46. data/lib/pharmaobservatory/models/target_literature_people_row.rb +322 -0
  47. data/lib/pharmaobservatory/version.rb +1 -1
  48. data/lib/pharmaobservatory.rb +10 -0
  49. metadata +22 -2
@@ -0,0 +1,74 @@
1
+ # PharmaObservatory::PatientOrganisationRow
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **target_kind** | **String** | Which kind of page the row is listed on: rare_disease (a rare disease page, entered on orpha_code) or condition (a condition page, entered on condition_id). | [optional] |
8
+ | **target_key** | **String** | The orpha_code of a rare_disease row or the condition_id of a condition row: the key the row is entered on. Always present, so it can stand in a sort or a cursor. | [optional] |
9
+ | **orpha_code** | **String** | The ORPHA code of the disease the row is listed under, the digits in the web page address (/rare-diseases/558); null on a condition row. The entry key of the rare_diseases object type. | [optional] |
10
+ | **condition_id** | **String** | The MeSH descriptor id of the condition the row is listed under (D followed by six to nine digits); null on a rare disease row. The entry key of the conditions object type. | [optional] |
11
+ | **patient_organisation_id** | **String** | The organisation's id: a spine organisation id (edgar:, ror:, sponsor: and the like) when the organisation folded onto an organisation we already hold, else pag:<registrable domain of its website>. | [optional] |
12
+ | **org_id** | **String** | The legal-entity id of the organisation when it folded onto one we already hold, the join to legal_entities; null for a pag: organisation, which has no spine record. | [optional] |
13
+ | **name** | **String** | The organisation's name as its own website states it. | [optional] |
14
+ | **website_url** | **String** | The organisation's website as it states it. | [optional] |
15
+ | **country** | **String** | The country the organisation declares (ISO 3166-1 alpha-2), else its primary location's country. | [optional] |
16
+ | **region** | **String** | The region of its primary location. | [optional] |
17
+ | **city** | **String** | The city of its primary location. | [optional] |
18
+ | **location_count** | **Integer** | How many locations the organisation lists. | [optional] |
19
+ | **languages** | **Array<String>** | The languages the organisation says it works in, as it states them. | [optional] |
20
+ | **phones** | **Array<String>** | The organisation's own phone numbers, as stated. Organisation-level channels only: no person's line. | [optional] |
21
+ | **emails** | **Array<String>** | The organisation's own email addresses, as stated, minus any address whose local part looks like a person's name. Organisation-level channels only. | [optional] |
22
+ | **contact_urls** | **Array<String>** | The organisation's own contact page addresses. | [optional] |
23
+ | **social_urls** | **Array<String>** | The organisation's own social media addresses. | [optional] |
24
+ | **service_codes** | **Array<String>** | The services the organisation's own pages say it offers, from a closed list: support_groups, helpline, information_and_education, patient_registry, research_funding, advocacy_and_policy, financial_assistance, care_navigation, clinical_trial_matching, other. | [optional] |
25
+ | **other_service_labels** | **Array<String>** | For a service coded other, the organisation's own words for it. Empty when it states none. | [optional] |
26
+ | **link_kind** | **String** | How the organisation reaches the disease or condition the row is listed under: declared (its own page names it), mapped (a condition row: it declares a rare disease this condition is mapped to; the mapped_* columns say which), broader (a rare disease row: it declared a broader parent disease) or narrower (a rare disease row: it declared a narrower child disease). A broader or narrower row never says the organisation declares THIS disease. | [optional] |
27
+ | **link_rank** | **Integer** | The page's group order: 1 declared, 2 mapped, 3 broader, 4 narrower. | [optional] |
28
+ | **declared_scope** | **String** | How much of its work the organisation says the disease is: sole_focus, one_of_several or umbrella; null when it states none. | [optional] |
29
+ | **declared_name** | **String** | The disease name the organisation actually declared. On a broader, narrower or mapped row it is NOT this page's disease. | [optional] |
30
+ | **mapped_orpha_code** | **String** | On a mapped row, the ORPHA code of the declared rare disease the condition is mapped to; null otherwise. | [optional] |
31
+ | **mapped_disease_name** | **String** | On a mapped row, the preferred name of that rare disease; null otherwise. | [optional] |
32
+ | **mapping_relation** | **String** | On a mapped row, how the rare disease relates to the condition (exact, broader or narrower); null otherwise. | [optional] |
33
+ | **source_url** | **String** | The page of the organisation's own website the declaration came from. | [optional] |
34
+ | **retrieved_on** | **Date** | The date that page was retrieved. | [optional] |
35
+ | **credit** | **String** | The source credit line for the row: Source: <organisation name>, <page address>, retrieved <date>. Mandatory wherever the row is shown. | [optional] |
36
+
37
+ ## Example
38
+
39
+ ```ruby
40
+ require 'pharmaobservatory'
41
+
42
+ instance = PharmaObservatory::PatientOrganisationRow.new(
43
+ target_kind: null,
44
+ target_key: null,
45
+ orpha_code: null,
46
+ condition_id: null,
47
+ patient_organisation_id: null,
48
+ org_id: null,
49
+ name: null,
50
+ website_url: null,
51
+ country: null,
52
+ region: null,
53
+ city: null,
54
+ location_count: null,
55
+ languages: null,
56
+ phones: null,
57
+ emails: null,
58
+ contact_urls: null,
59
+ social_urls: null,
60
+ service_codes: null,
61
+ other_service_labels: null,
62
+ link_kind: null,
63
+ link_rank: null,
64
+ declared_scope: null,
65
+ declared_name: null,
66
+ mapped_orpha_code: null,
67
+ mapped_disease_name: null,
68
+ mapping_relation: null,
69
+ source_url: null,
70
+ retrieved_on: null,
71
+ credit: null
72
+ )
73
+ ```
74
+
@@ -18,7 +18,7 @@
18
18
  | **evidence_type** | **String** | The kind of evidence the assertion rests on. | [optional] |
19
19
  | **authority_class** | **String** | How authoritative the source is for the claim. | [optional] |
20
20
  | **source_key** | **String** | The source the assertion was read from. | [optional] |
21
- | **source_record_id** | **String** | The record in the source the assertion comes from. | [optional] |
21
+ | **source_record_id** | **String** | The record in the source the assertion comes from. NULL for the patient_organisation_site source, whose id is an internal page-version key. | [optional] |
22
22
  | **source_url** | **String** | A link to the source record, where it has one. | [optional] |
23
23
  | **evidence_trial_id** | **String** | The registry trial id the assertion names, where it names one. | [optional] |
24
24
  | **observed_at** | **Time** | When the assertion was observed in the source (UTC). | [optional] |
@@ -12,13 +12,14 @@
12
12
  | **city** | **String** | The facility's city as filed. | [optional] |
13
13
  | **state** | **String** | The facility's state or region as filed. | [optional] |
14
14
  | **country** | **String** | The facility's country as filed. | [optional] |
15
- | **latitude** | **Float** | The site's latitude in degrees; null when no coordinate is known. | [optional] |
16
- | **longitude** | **Float** | The site's longitude in degrees; null when no coordinate is known. | [optional] |
17
- | **coord_source** | **String** | The source of the coordinate: aact (the registry's own), geonames (GeoNames) or als (Amazon Location Service). | [optional] |
15
+ | **latitude** | **Float** | The site's distance-ready latitude in degrees: one real filed location, the one most of the site's registry filings agree on, the same point the site has on the disease page map and in the nearest-site list. Null when the site is not mappable (its filings disagree, or are coarser than a city). Not the mean of the site's locations. | [optional] |
16
+ | **longitude** | **Float** | The site's distance-ready longitude in degrees, paired with latitude; null exactly when latitude is. | [optional] |
17
+ | **coord_source** | **String** | The source of the latitude and longitude: aact (the registry's own), geonames (GeoNames) or als (Amazon Location Service); null when latitude is. | [optional] |
18
18
  | **condition_ids** | **Array<String>** | The MeSH condition ids through which the disease reaches the site's trials. | [optional] |
19
19
  | **n_trials** | **Integer** | Registered trials of this disease and arm that list the site. | [optional] |
20
20
  | **n_trials_direct** | **Integer** | Those trials whose own condition list names the mapped condition. | [optional] |
21
21
  | **n_active_trials** | **Integer** | Those trials that are recruiting, not yet recruiting, active or enrolling by invitation. | [optional] |
22
+ | **n_open_trials_direct** | **Integer** | Those directly tagged trials that are recruiting or not yet recruiting, the statuses a person can volunteer for. A subset of n_trials_direct; active but closed and invitation-only trials are not counted. | [optional] |
22
23
  | **first_trial_year** | **Integer** | The earliest start year among those trials. | [optional] |
23
24
  | **last_trial_year** | **Integer** | The latest start year among those trials. | [optional] |
24
25
  | **last_update_posted_date** | **Date** | The latest registry update among those trials. | [optional] |
@@ -44,6 +45,7 @@ instance = PharmaObservatory::RareDiseaseTrialSitesRow.new(
44
45
  n_trials: null,
45
46
  n_trials_direct: null,
46
47
  n_active_trials: null,
48
+ n_open_trials_direct: null,
47
49
  first_trial_year: null,
48
50
  last_trial_year: null,
49
51
  last_update_posted_date: null
@@ -6,6 +6,7 @@ All URIs are relative to *https://pharmaobservatory.com*
6
6
  | ------ | ------------ | ----------- |
7
7
  | [**rare_diseases_get**](RareDiseasesApi.md#rare_diseases_get) | **GET** /api/v1/rare_diseases/{id} | One rare disease |
8
8
  | [**rare_diseases_list**](RareDiseasesApi.md#rare_diseases_list) | **GET** /api/v1/rare_diseases | List rare diseases |
9
+ | [**rare_diseases_patient_organisation**](RareDiseasesApi.md#rare_diseases_patient_organisation) | **GET** /api/v1/rare_diseases/{id}/patient_organisation | Patient organisations |
9
10
  | [**rare_diseases_rare_disease_genes**](RareDiseasesApi.md#rare_diseases_rare_disease_genes) | **GET** /api/v1/rare_diseases/{id}/rare_disease_genes | Rare disease genes |
10
11
  | [**rare_diseases_rare_disease_hierarchy**](RareDiseasesApi.md#rare_diseases_rare_disease_hierarchy) | **GET** /api/v1/rare_diseases/{id}/rare_disease_hierarchy | Rare disease hierarchy |
11
12
  | [**rare_diseases_rare_disease_investigator_coverage**](RareDiseasesApi.md#rare_diseases_rare_disease_investigator_coverage) | **GET** /api/v1/rare_diseases/{id}/rare_disease_investigator_coverage | Rare disease investigator coverage |
@@ -167,6 +168,85 @@ end
167
168
  - **Accept**: application/json
168
169
 
169
170
 
171
+ ## rare_diseases_patient_organisation
172
+
173
+ > <PatientOrganisationResponse> rare_diseases_patient_organisation(id, opts)
174
+
175
+ Patient organisations
176
+
177
+ ### Examples
178
+
179
+ ```ruby
180
+ require 'time'
181
+ require 'pharmaobservatory'
182
+ # setup authorization
183
+ PharmaObservatory.configure do |config|
184
+ # Configure Bearer authorization (JWT): ApiBearerJwt
185
+ config.access_token = 'YOUR_BEARER_TOKEN'
186
+ end
187
+
188
+ api_instance = PharmaObservatory::RareDiseasesApi.new
189
+ id = 95708 # Integer |
190
+ opts = {
191
+ 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.
192
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
193
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
194
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
195
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
196
+ }
197
+
198
+ begin
199
+ # Patient organisations
200
+ result = api_instance.rare_diseases_patient_organisation(id, opts)
201
+ p result
202
+ rescue PharmaObservatory::ApiError => e
203
+ puts "Error when calling RareDiseasesApi->rare_diseases_patient_organisation: #{e}"
204
+ end
205
+ ```
206
+
207
+ #### Using the rare_diseases_patient_organisation_with_http_info variant
208
+
209
+ This returns an Array which contains the response data, status code and headers.
210
+
211
+ > <Array(<PatientOrganisationResponse>, Integer, Hash)> rare_diseases_patient_organisation_with_http_info(id, opts)
212
+
213
+ ```ruby
214
+ begin
215
+ # Patient organisations
216
+ data, status_code, headers = api_instance.rare_diseases_patient_organisation_with_http_info(id, opts)
217
+ p status_code # => 2xx
218
+ p headers # => { ... }
219
+ p data # => <PatientOrganisationResponse>
220
+ rescue PharmaObservatory::ApiError => e
221
+ puts "Error when calling RareDiseasesApi->rare_diseases_patient_organisation_with_http_info: #{e}"
222
+ end
223
+ ```
224
+
225
+ ### Parameters
226
+
227
+ | Name | Type | Description | Notes |
228
+ | ---- | ---- | ----------- | ----- |
229
+ | **id** | **Integer** | | |
230
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
231
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
232
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
233
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
234
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
235
+
236
+ ### Return type
237
+
238
+ [**PatientOrganisationResponse**](PatientOrganisationResponse.md)
239
+
240
+ ### Authorization
241
+
242
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
243
+
244
+ ### HTTP request headers
245
+
246
+ - **Content-Type**: Not defined
247
+ - **Accept**: application/json
248
+
249
+
170
250
  ## rare_diseases_rare_disease_genes
171
251
 
172
252
  > <RareDiseaseGenesResponse> rare_diseases_rare_disease_genes(id, opts)
@@ -4,6 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **sections** | **Hash&lt;String, Object&gt;** | Sections of the object&#39;s web page, by key: patient_organisations, the list the page shows of the organisations that name the disease or condition on their own websites (state, empty_state, coverage, groups of entries carrying the patient_organisation dataset&#39;s columns, the per-entry credit and the lane attribution). | [optional] |
7
8
  | **object_type** | **String** | | |
8
9
  | **id** | **String** | | |
9
10
  | **record** | [**RareDiseasesRow**](RareDiseasesRow.md) | | |
@@ -22,6 +23,7 @@
22
23
  require 'pharmaobservatory'
23
24
 
24
25
  instance = PharmaObservatory::RareDiseasesRecord.new(
26
+ sections: null,
25
27
  object_type: null,
26
28
  id: null,
27
29
  record: null,
@@ -0,0 +1,58 @@
1
+ # PharmaObservatory::TargetLiteraturePeopleResponse
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&lt;DatasetColumn&gt;**](DatasetColumn.md) | | |
13
+ | **rows** | [**Array&lt;TargetLiteraturePeopleRow&gt;**](TargetLiteraturePeopleRow.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&lt;String&gt;** | | [optional] |
17
+ | **filters** | **Array&lt;Hash&lt;String, Object&gt;&gt;** | | [optional] |
18
+ | **group_by** | **Array&lt;String&gt;** | | [optional] |
19
+ | **measures** | **Array&lt;String&gt;** | | [optional] |
20
+ | **attribution** | [**Array&lt;DatasetAttribution&gt;**](DatasetAttribution.md) | | [optional] |
21
+ | **source_credit** | **String** | | [optional] |
22
+ | **withheld_tiers** | **Array&lt;String&gt;** | | [optional] |
23
+ | **withheld_columns** | **Array&lt;String&gt;** | | [optional] |
24
+ | **freshness** | [**AnimalWelfareAssurancesResponseFreshness**](AnimalWelfareAssurancesResponseFreshness.md) | | [optional] |
25
+ | **build** | [**AnimalWelfareAssurancesResponseBuild**](AnimalWelfareAssurancesResponseBuild.md) | | [optional] |
26
+ | **build_state** | [**DatasetBuildState**](DatasetBuildState.md) | | [optional] |
27
+ | **restriction** | **Hash&lt;String, Object&gt;** | | [optional] |
28
+
29
+ ## Example
30
+
31
+ ```ruby
32
+ require 'pharmaobservatory'
33
+
34
+ instance = PharmaObservatory::TargetLiteraturePeopleResponse.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,36 @@
1
+ # PharmaObservatory::TargetLiteraturePeopleRow
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **target_id** | **String** | The target&#39;s Ensembl gene id (ENSG followed by eleven digits): the entry key for the targets object type. | [optional] |
8
+ | **investigator_person_id** | **String** | The author&#39;s resolved person key, the id in the web page address (/people/&lt;id&gt;). The entry key of the investigators object type. | [optional] |
9
+ | **person_name** | **String** | The person&#39;s name, resolved across the person&#39;s merged name fragments. | [optional] |
10
+ | **person_affiliation** | **String** | The person&#39;s affiliation as the person record holds it (null when not recorded). | [optional] |
11
+ | **orcid** | **String** | The person&#39;s ORCID iD (Open Researcher and Contributor ID) when the person record carries one (null when none). | [optional] |
12
+ | **n_papers** | **Integer** | Distinct papers on which a ledger decision links a byline to the person. | [optional] |
13
+ | **n_trial_linked_papers** | **Integer** | The part of n_papers a registered clinical trial cites. | [optional] |
14
+ | **latest_pub_year** | **Integer** | The newest publication year among those papers. | [optional] |
15
+ | **n_first_author** | **Integer** | The part of n_papers on which the person&#39;s linked byline is the first author position. | [optional] |
16
+ | **n_last_author** | **Integer** | The part of n_papers on which the person&#39;s linked byline is the last author position. | [optional] |
17
+
18
+ ## Example
19
+
20
+ ```ruby
21
+ require 'pharmaobservatory'
22
+
23
+ instance = PharmaObservatory::TargetLiteraturePeopleRow.new(
24
+ target_id: null,
25
+ investigator_person_id: null,
26
+ person_name: null,
27
+ person_affiliation: null,
28
+ orcid: null,
29
+ n_papers: null,
30
+ n_trial_linked_papers: null,
31
+ latest_pub_year: null,
32
+ n_first_author: null,
33
+ n_last_author: null
34
+ )
35
+ ```
36
+
data/docs/TargetsApi.md CHANGED
@@ -15,6 +15,7 @@ All URIs are relative to *https://pharmaobservatory.com*
15
15
  | [**targets_target_investigators**](TargetsApi.md#targets_target_investigators) | **GET** /api/v1/targets/{id}/target_investigators | Investigators on a target&#39;s trials |
16
16
  | [**targets_target_literature**](TargetsApi.md#targets_target_literature) | **GET** /api/v1/targets/{id}/target_literature | Target literature (MeSH-indexed, 2016 onward) |
17
17
  | [**targets_target_literature_orgs**](TargetsApi.md#targets_target_literature_orgs) | **GET** /api/v1/targets/{id}/target_literature_orgs | Target literature, most active institutions |
18
+ | [**targets_target_literature_people**](TargetsApi.md#targets_target_literature_people) | **GET** /api/v1/targets/{id}/target_literature_people | Target literature, most active authors |
18
19
  | [**targets_target_patent_mentions**](TargetsApi.md#targets_target_patent_mentions) | **GET** /api/v1/targets/{id}/target_patent_mentions | Target patent mentions |
19
20
  | [**targets_target_programs**](TargetsApi.md#targets_target_programs) | **GET** /api/v1/targets/{id}/target_programs | Target development programs |
20
21
  | [**targets_target_publications**](TargetsApi.md#targets_target_publications) | **GET** /api/v1/targets/{id}/target_publications | Target publications |
@@ -877,6 +878,85 @@ end
877
878
  - **Accept**: application/json
878
879
 
879
880
 
881
+ ## targets_target_literature_people
882
+
883
+ > <TargetLiteraturePeopleResponse> targets_target_literature_people(id, opts)
884
+
885
+ Target literature, most active authors
886
+
887
+ ### Examples
888
+
889
+ ```ruby
890
+ require 'time'
891
+ require 'pharmaobservatory'
892
+ # setup authorization
893
+ PharmaObservatory.configure do |config|
894
+ # Configure Bearer authorization (JWT): ApiBearerJwt
895
+ config.access_token = 'YOUR_BEARER_TOKEN'
896
+ end
897
+
898
+ api_instance = PharmaObservatory::TargetsApi.new
899
+ id = 'ENSG00000171759' # String |
900
+ opts = {
901
+ 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.
902
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
903
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
904
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
905
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
906
+ }
907
+
908
+ begin
909
+ # Target literature, most active authors
910
+ result = api_instance.targets_target_literature_people(id, opts)
911
+ p result
912
+ rescue PharmaObservatory::ApiError => e
913
+ puts "Error when calling TargetsApi->targets_target_literature_people: #{e}"
914
+ end
915
+ ```
916
+
917
+ #### Using the targets_target_literature_people_with_http_info variant
918
+
919
+ This returns an Array which contains the response data, status code and headers.
920
+
921
+ > <Array(<TargetLiteraturePeopleResponse>, Integer, Hash)> targets_target_literature_people_with_http_info(id, opts)
922
+
923
+ ```ruby
924
+ begin
925
+ # Target literature, most active authors
926
+ data, status_code, headers = api_instance.targets_target_literature_people_with_http_info(id, opts)
927
+ p status_code # => 2xx
928
+ p headers # => { ... }
929
+ p data # => <TargetLiteraturePeopleResponse>
930
+ rescue PharmaObservatory::ApiError => e
931
+ puts "Error when calling TargetsApi->targets_target_literature_people_with_http_info: #{e}"
932
+ end
933
+ ```
934
+
935
+ ### Parameters
936
+
937
+ | Name | Type | Description | Notes |
938
+ | ---- | ---- | ----------- | ----- |
939
+ | **id** | **String** | | |
940
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
941
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
942
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
943
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
944
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
945
+
946
+ ### Return type
947
+
948
+ [**TargetLiteraturePeopleResponse**](TargetLiteraturePeopleResponse.md)
949
+
950
+ ### Authorization
951
+
952
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
953
+
954
+ ### HTTP request headers
955
+
956
+ - **Content-Type**: Not defined
957
+ - **Accept**: application/json
958
+
959
+
880
960
  ## targets_target_patent_mentions
881
961
 
882
962
  > <TargetPatentMentionsResponse> targets_target_patent_mentions(id, opts)
@@ -943,6 +943,90 @@ module PharmaObservatory
943
943
  return data, status_code, headers
944
944
  end
945
945
 
946
+ # Biomarker literature, most active authors
947
+ # @param id [String]
948
+ # @param [Hash] opts the optional parameters
949
+ # @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.
950
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
951
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
952
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
953
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
954
+ # @return [BiomarkerLiteraturePeopleResponse]
955
+ def biomarkers_biomarker_literature_people(id, opts = {})
956
+ data, _status_code, _headers = biomarkers_biomarker_literature_people_with_http_info(id, opts)
957
+ data
958
+ end
959
+
960
+ # Biomarker literature, most active authors
961
+ # @param id [String]
962
+ # @param [Hash] opts the optional parameters
963
+ # @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.
964
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
965
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
966
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
967
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
968
+ # @return [Array<(BiomarkerLiteraturePeopleResponse, Integer, Hash)>] BiomarkerLiteraturePeopleResponse data, response status code and response headers
969
+ def biomarkers_biomarker_literature_people_with_http_info(id, opts = {})
970
+ if @api_client.config.debugging
971
+ @api_client.config.logger.debug 'Calling API: BiomarkersApi.biomarkers_biomarker_literature_people ...'
972
+ end
973
+ # verify the required parameter 'id' is set
974
+ if @api_client.config.client_side_validation && id.nil?
975
+ fail ArgumentError, "Missing the required parameter 'id' when calling BiomarkersApi.biomarkers_biomarker_literature_people"
976
+ end
977
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
978
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BiomarkersApi.biomarkers_biomarker_literature_people, must be smaller than or equal to 500.'
979
+ end
980
+
981
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
982
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BiomarkersApi.biomarkers_biomarker_literature_people, must be greater than or equal to 1.'
983
+ end
984
+
985
+ # resource path
986
+ local_var_path = '/api/v1/biomarkers/{id}/biomarker_literature_people'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
987
+
988
+ # query parameters
989
+ query_params = opts[:query_params] || {}
990
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
991
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
992
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
993
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
994
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
995
+
996
+ # header parameters
997
+ header_params = opts[:header_params] || {}
998
+ # HTTP header 'Accept' (if needed)
999
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1000
+
1001
+ # form parameters
1002
+ form_params = opts[:form_params] || {}
1003
+
1004
+ # http body (model)
1005
+ post_body = opts[:debug_body]
1006
+
1007
+ # return_type
1008
+ return_type = opts[:debug_return_type] || 'BiomarkerLiteraturePeopleResponse'
1009
+
1010
+ # auth_names
1011
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1012
+
1013
+ new_options = opts.merge(
1014
+ :operation => :"BiomarkersApi.biomarkers_biomarker_literature_people",
1015
+ :header_params => header_params,
1016
+ :query_params => query_params,
1017
+ :form_params => form_params,
1018
+ :body => post_body,
1019
+ :auth_names => auth_names,
1020
+ :return_type => return_type
1021
+ )
1022
+
1023
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1024
+ if @api_client.config.debugging
1025
+ @api_client.config.logger.debug "API called: BiomarkersApi#biomarkers_biomarker_literature_people\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1026
+ end
1027
+ return data, status_code, headers
1028
+ end
1029
+
946
1030
  # Companies publishing on a biomarker
947
1031
  # @param id [String]
948
1032
  # @param [Hash] opts the optional parameters