pharmaobservatory 0.1.23 → 0.1.25
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 +31 -4
- data/docs/BiomarkerLiteratureAllResponse.md +58 -0
- data/docs/BiomarkerLiteratureAllRow.md +36 -0
- data/docs/BiomarkerLiteratureOrgsResponse.md +58 -0
- data/docs/BiomarkerLiteratureOrgsRow.md +34 -0
- data/docs/BiomarkersApi.md +160 -0
- data/docs/CompanyCompetitorsRow.md +1 -1
- data/docs/ConditionLiteratureOrgsResponse.md +58 -0
- data/docs/ConditionLiteratureOrgsRow.md +34 -0
- data/docs/ConditionLiteratureResponse.md +58 -0
- data/docs/ConditionLiteratureRow.md +36 -0
- data/docs/ConditionSiteCoverageResponse.md +58 -0
- data/docs/ConditionSiteCoverageRow.md +24 -0
- data/docs/ConditionSiteYearsResponse.md +58 -0
- data/docs/ConditionSiteYearsRow.md +36 -0
- data/docs/ConditionsApi.md +320 -0
- data/docs/LegalEntitiesApi.md +80 -0
- data/docs/OrgLiteratureResponse.md +58 -0
- data/docs/OrgLiteratureRow.md +40 -0
- data/docs/RwdInstitutionsRow.md +3 -3
- data/docs/RwdNetworksRow.md +1 -1
- data/docs/TargetLiteratureOrgsResponse.md +58 -0
- data/docs/TargetLiteratureOrgsRow.md +34 -0
- data/docs/TargetLiteratureResponse.md +58 -0
- data/docs/TargetLiteratureRow.md +36 -0
- data/docs/TargetsApi.md +160 -0
- data/lib/pharmaobservatory/api/biomarkers_api.rb +168 -0
- data/lib/pharmaobservatory/api/conditions_api.rb +336 -0
- data/lib/pharmaobservatory/api/legal_entities_api.rb +84 -0
- data/lib/pharmaobservatory/api/targets_api.rb +168 -0
- data/lib/pharmaobservatory/models/biomarker_literature_all_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_literature_all_row.rb +322 -0
- data/lib/pharmaobservatory/models/biomarker_literature_orgs_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_literature_orgs_row.rb +311 -0
- data/lib/pharmaobservatory/models/company_competitors_row.rb +1 -1
- data/lib/pharmaobservatory/models/condition_literature_orgs_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_literature_orgs_row.rb +311 -0
- data/lib/pharmaobservatory/models/condition_literature_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_literature_row.rb +322 -0
- data/lib/pharmaobservatory/models/condition_site_coverage_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_site_coverage_row.rb +256 -0
- data/lib/pharmaobservatory/models/condition_site_years_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_site_years_row.rb +322 -0
- data/lib/pharmaobservatory/models/org_literature_response.rb +478 -0
- data/lib/pharmaobservatory/models/org_literature_row.rb +344 -0
- data/lib/pharmaobservatory/models/rwd_institutions_row.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_networks_row.rb +1 -1
- data/lib/pharmaobservatory/models/target_literature_orgs_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_literature_orgs_row.rb +311 -0
- data/lib/pharmaobservatory/models/target_literature_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_literature_row.rb +322 -0
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +18 -0
- metadata +38 -2
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# PharmaObservatory::ConditionLiteratureResponse
|
|
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<ConditionLiteratureRow>**](ConditionLiteratureRow.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::ConditionLiteratureResponse.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::ConditionLiteratureRow
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **condition_id** | **String** | The condition key, a MeSH (Medical Subject Headings) descriptor id (D followed by six to nine digits). | [optional] |
|
|
8
|
+
| **pmid** | **String** | The PubMed id. | [optional] |
|
|
9
|
+
| **title** | **String** | The paper's title. | [optional] |
|
|
10
|
+
| **journal_title** | **String** | The journal's title. | [optional] |
|
|
11
|
+
| **pub_year** | **Integer** | The publication year (2016 or later: the dataset holds recent MeSH-indexed literature). | [optional] |
|
|
12
|
+
| **evidence_type** | **String** | The paper's study-design label, one normalized publication type by study-design priority. | [optional] |
|
|
13
|
+
| **is_trial_linked** | **Boolean** | True when a registered clinical trial cites the paper; false for literature no registered trial cites. | [optional] |
|
|
14
|
+
| **is_major_topic** | **Boolean** | True when the condition is a major MeSH topic of the paper. | [optional] |
|
|
15
|
+
| **citation_count** | **Integer** | Citations where iCite (the National Institutes of Health citation-metrics service) carries them; null is not measured, never zero. | [optional] |
|
|
16
|
+
| **relative_citation_ratio** | **Float** | The iCite Relative Citation Ratio (RCR) where measured; null is not measured. | [optional] |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```ruby
|
|
21
|
+
require 'pharmaobservatory'
|
|
22
|
+
|
|
23
|
+
instance = PharmaObservatory::ConditionLiteratureRow.new(
|
|
24
|
+
condition_id: null,
|
|
25
|
+
pmid: null,
|
|
26
|
+
title: null,
|
|
27
|
+
journal_title: null,
|
|
28
|
+
pub_year: null,
|
|
29
|
+
evidence_type: null,
|
|
30
|
+
is_trial_linked: null,
|
|
31
|
+
is_major_topic: null,
|
|
32
|
+
citation_count: null,
|
|
33
|
+
relative_citation_ratio: null
|
|
34
|
+
)
|
|
35
|
+
```
|
|
36
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# PharmaObservatory::ConditionSiteCoverageResponse
|
|
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<ConditionSiteCoverageRow>**](ConditionSiteCoverageRow.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::ConditionSiteCoverageResponse.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,24 @@
|
|
|
1
|
+
# PharmaObservatory::ConditionSiteCoverageRow
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **condition_id** | **String** | The condition key, a MeSH (Medical Subject Headings) descriptor id (D followed by six to nine digits). | [optional] |
|
|
8
|
+
| **start_year** | **Integer** | Year the trials started. Null for a trial with no start date. | [optional] |
|
|
9
|
+
| **n_trials** | **Integer** | Trials of the condition that started that year. | [optional] |
|
|
10
|
+
| **n_trials_located** | **Integer** | Of those trials, how many list at least one facility with a coordinate. | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'pharmaobservatory'
|
|
16
|
+
|
|
17
|
+
instance = PharmaObservatory::ConditionSiteCoverageRow.new(
|
|
18
|
+
condition_id: null,
|
|
19
|
+
start_year: null,
|
|
20
|
+
n_trials: null,
|
|
21
|
+
n_trials_located: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# PharmaObservatory::ConditionSiteYearsResponse
|
|
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<ConditionSiteYearsRow>**](ConditionSiteYearsRow.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::ConditionSiteYearsResponse.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::ConditionSiteYearsRow
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **condition_id** | **String** | The condition key, a MeSH (Medical Subject Headings) descriptor id (D followed by six to nine digits). | [optional] |
|
|
8
|
+
| **site_id** | **String** | The site key (a normalized facility, city and country). | [optional] |
|
|
9
|
+
| **start_year** | **Integer** | Year the trials started. Null for a trial with no start date. | [optional] |
|
|
10
|
+
| **site_name** | **String** | The facility name as the registry lists it. | [optional] |
|
|
11
|
+
| **city** | **String** | City as listed. | [optional] |
|
|
12
|
+
| **state** | **String** | State or province as listed. | [optional] |
|
|
13
|
+
| **country** | **String** | Country as listed. | [optional] |
|
|
14
|
+
| **latitude** | **Float** | Latitude of the finest coordinate the site record has. | [optional] |
|
|
15
|
+
| **longitude** | **Float** | Longitude of the finest coordinate the site record has. | [optional] |
|
|
16
|
+
| **n_trials** | **Integer** | Trials of the condition that started that year and list the site. | [optional] |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```ruby
|
|
21
|
+
require 'pharmaobservatory'
|
|
22
|
+
|
|
23
|
+
instance = PharmaObservatory::ConditionSiteYearsRow.new(
|
|
24
|
+
condition_id: null,
|
|
25
|
+
site_id: null,
|
|
26
|
+
start_year: null,
|
|
27
|
+
site_name: null,
|
|
28
|
+
city: null,
|
|
29
|
+
state: null,
|
|
30
|
+
country: null,
|
|
31
|
+
latitude: null,
|
|
32
|
+
longitude: null,
|
|
33
|
+
n_trials: null
|
|
34
|
+
)
|
|
35
|
+
```
|
|
36
|
+
|
data/docs/ConditionsApi.md
CHANGED
|
@@ -10,10 +10,14 @@ All URIs are relative to *https://pharmaobservatory.com*
|
|
|
10
10
|
| [**conditions_condition_delivery**](ConditionsApi.md#conditions_condition_delivery) | **GET** /api/v1/conditions/{id}/condition_delivery | Condition delivery |
|
|
11
11
|
| [**conditions_condition_drugs**](ConditionsApi.md#conditions_condition_drugs) | **GET** /api/v1/conditions/{id}/condition_drugs | Condition drugs |
|
|
12
12
|
| [**conditions_condition_investigator_organizations**](ConditionsApi.md#conditions_condition_investigator_organizations) | **GET** /api/v1/conditions/{id}/condition_investigator_organizations | Organizations of a condition's investigators |
|
|
13
|
+
| [**conditions_condition_literature**](ConditionsApi.md#conditions_condition_literature) | **GET** /api/v1/conditions/{id}/condition_literature | Condition literature (MeSH-indexed, 2016 onward) |
|
|
14
|
+
| [**conditions_condition_literature_orgs**](ConditionsApi.md#conditions_condition_literature_orgs) | **GET** /api/v1/conditions/{id}/condition_literature_orgs | Condition literature, most active institutions |
|
|
13
15
|
| [**conditions_condition_prevalence**](ConditionsApi.md#conditions_condition_prevalence) | **GET** /api/v1/conditions/{id}/condition_prevalence | Condition prevalence |
|
|
14
16
|
| [**conditions_condition_publications**](ConditionsApi.md#conditions_condition_publications) | **GET** /api/v1/conditions/{id}/condition_publications | Condition publications |
|
|
15
17
|
| [**conditions_condition_recruitment_by_phase**](ConditionsApi.md#conditions_condition_recruitment_by_phase) | **GET** /api/v1/conditions/{id}/condition_recruitment_by_phase | Trial recruitment duration by condition and phase |
|
|
16
18
|
| [**conditions_condition_recruitment_duration**](ConditionsApi.md#conditions_condition_recruitment_duration) | **GET** /api/v1/conditions/{id}/condition_recruitment_duration | Trial recruitment duration by condition |
|
|
19
|
+
| [**conditions_condition_site_coverage**](ConditionsApi.md#conditions_condition_site_coverage) | **GET** /api/v1/conditions/{id}/condition_site_coverage | Condition site coverage |
|
|
20
|
+
| [**conditions_condition_site_years**](ConditionsApi.md#conditions_condition_site_years) | **GET** /api/v1/conditions/{id}/condition_site_years | Condition site years |
|
|
17
21
|
| [**conditions_condition_sites**](ConditionsApi.md#conditions_condition_sites) | **GET** /api/v1/conditions/{id}/condition_sites | Condition sites |
|
|
18
22
|
| [**conditions_condition_trial_start_forecast**](ConditionsApi.md#conditions_condition_trial_start_forecast) | **GET** /api/v1/conditions/{id}/condition_trial_start_forecast | Trial-start forecast by condition |
|
|
19
23
|
| [**conditions_condition_trials**](ConditionsApi.md#conditions_condition_trials) | **GET** /api/v1/conditions/{id}/condition_trials | Condition trials |
|
|
@@ -501,6 +505,164 @@ end
|
|
|
501
505
|
- **Accept**: application/json
|
|
502
506
|
|
|
503
507
|
|
|
508
|
+
## conditions_condition_literature
|
|
509
|
+
|
|
510
|
+
> <ConditionLiteratureResponse> conditions_condition_literature(id, opts)
|
|
511
|
+
|
|
512
|
+
Condition literature (MeSH-indexed, 2016 onward)
|
|
513
|
+
|
|
514
|
+
### Examples
|
|
515
|
+
|
|
516
|
+
```ruby
|
|
517
|
+
require 'time'
|
|
518
|
+
require 'pharmaobservatory'
|
|
519
|
+
# setup authorization
|
|
520
|
+
PharmaObservatory.configure do |config|
|
|
521
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
522
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
523
|
+
end
|
|
524
|
+
|
|
525
|
+
api_instance = PharmaObservatory::ConditionsApi.new
|
|
526
|
+
id = 'D001523' # String |
|
|
527
|
+
opts = {
|
|
528
|
+
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.
|
|
529
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
530
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
531
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
532
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
begin
|
|
536
|
+
# Condition literature (MeSH-indexed, 2016 onward)
|
|
537
|
+
result = api_instance.conditions_condition_literature(id, opts)
|
|
538
|
+
p result
|
|
539
|
+
rescue PharmaObservatory::ApiError => e
|
|
540
|
+
puts "Error when calling ConditionsApi->conditions_condition_literature: #{e}"
|
|
541
|
+
end
|
|
542
|
+
```
|
|
543
|
+
|
|
544
|
+
#### Using the conditions_condition_literature_with_http_info variant
|
|
545
|
+
|
|
546
|
+
This returns an Array which contains the response data, status code and headers.
|
|
547
|
+
|
|
548
|
+
> <Array(<ConditionLiteratureResponse>, Integer, Hash)> conditions_condition_literature_with_http_info(id, opts)
|
|
549
|
+
|
|
550
|
+
```ruby
|
|
551
|
+
begin
|
|
552
|
+
# Condition literature (MeSH-indexed, 2016 onward)
|
|
553
|
+
data, status_code, headers = api_instance.conditions_condition_literature_with_http_info(id, opts)
|
|
554
|
+
p status_code # => 2xx
|
|
555
|
+
p headers # => { ... }
|
|
556
|
+
p data # => <ConditionLiteratureResponse>
|
|
557
|
+
rescue PharmaObservatory::ApiError => e
|
|
558
|
+
puts "Error when calling ConditionsApi->conditions_condition_literature_with_http_info: #{e}"
|
|
559
|
+
end
|
|
560
|
+
```
|
|
561
|
+
|
|
562
|
+
### Parameters
|
|
563
|
+
|
|
564
|
+
| Name | Type | Description | Notes |
|
|
565
|
+
| ---- | ---- | ----------- | ----- |
|
|
566
|
+
| **id** | **String** | | |
|
|
567
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
568
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
569
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
570
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
571
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
572
|
+
|
|
573
|
+
### Return type
|
|
574
|
+
|
|
575
|
+
[**ConditionLiteratureResponse**](ConditionLiteratureResponse.md)
|
|
576
|
+
|
|
577
|
+
### Authorization
|
|
578
|
+
|
|
579
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
580
|
+
|
|
581
|
+
### HTTP request headers
|
|
582
|
+
|
|
583
|
+
- **Content-Type**: Not defined
|
|
584
|
+
- **Accept**: application/json
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
## conditions_condition_literature_orgs
|
|
588
|
+
|
|
589
|
+
> <ConditionLiteratureOrgsResponse> conditions_condition_literature_orgs(id, opts)
|
|
590
|
+
|
|
591
|
+
Condition literature, most active institutions
|
|
592
|
+
|
|
593
|
+
### Examples
|
|
594
|
+
|
|
595
|
+
```ruby
|
|
596
|
+
require 'time'
|
|
597
|
+
require 'pharmaobservatory'
|
|
598
|
+
# setup authorization
|
|
599
|
+
PharmaObservatory.configure do |config|
|
|
600
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
601
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
602
|
+
end
|
|
603
|
+
|
|
604
|
+
api_instance = PharmaObservatory::ConditionsApi.new
|
|
605
|
+
id = 'D001523' # String |
|
|
606
|
+
opts = {
|
|
607
|
+
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.
|
|
608
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
609
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
610
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
611
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
begin
|
|
615
|
+
# Condition literature, most active institutions
|
|
616
|
+
result = api_instance.conditions_condition_literature_orgs(id, opts)
|
|
617
|
+
p result
|
|
618
|
+
rescue PharmaObservatory::ApiError => e
|
|
619
|
+
puts "Error when calling ConditionsApi->conditions_condition_literature_orgs: #{e}"
|
|
620
|
+
end
|
|
621
|
+
```
|
|
622
|
+
|
|
623
|
+
#### Using the conditions_condition_literature_orgs_with_http_info variant
|
|
624
|
+
|
|
625
|
+
This returns an Array which contains the response data, status code and headers.
|
|
626
|
+
|
|
627
|
+
> <Array(<ConditionLiteratureOrgsResponse>, Integer, Hash)> conditions_condition_literature_orgs_with_http_info(id, opts)
|
|
628
|
+
|
|
629
|
+
```ruby
|
|
630
|
+
begin
|
|
631
|
+
# Condition literature, most active institutions
|
|
632
|
+
data, status_code, headers = api_instance.conditions_condition_literature_orgs_with_http_info(id, opts)
|
|
633
|
+
p status_code # => 2xx
|
|
634
|
+
p headers # => { ... }
|
|
635
|
+
p data # => <ConditionLiteratureOrgsResponse>
|
|
636
|
+
rescue PharmaObservatory::ApiError => e
|
|
637
|
+
puts "Error when calling ConditionsApi->conditions_condition_literature_orgs_with_http_info: #{e}"
|
|
638
|
+
end
|
|
639
|
+
```
|
|
640
|
+
|
|
641
|
+
### Parameters
|
|
642
|
+
|
|
643
|
+
| Name | Type | Description | Notes |
|
|
644
|
+
| ---- | ---- | ----------- | ----- |
|
|
645
|
+
| **id** | **String** | | |
|
|
646
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
647
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
648
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
649
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
650
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
651
|
+
|
|
652
|
+
### Return type
|
|
653
|
+
|
|
654
|
+
[**ConditionLiteratureOrgsResponse**](ConditionLiteratureOrgsResponse.md)
|
|
655
|
+
|
|
656
|
+
### Authorization
|
|
657
|
+
|
|
658
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
659
|
+
|
|
660
|
+
### HTTP request headers
|
|
661
|
+
|
|
662
|
+
- **Content-Type**: Not defined
|
|
663
|
+
- **Accept**: application/json
|
|
664
|
+
|
|
665
|
+
|
|
504
666
|
## conditions_condition_prevalence
|
|
505
667
|
|
|
506
668
|
> <ConditionPrevalenceResponse> conditions_condition_prevalence(id, opts)
|
|
@@ -817,6 +979,164 @@ end
|
|
|
817
979
|
- **Accept**: application/json
|
|
818
980
|
|
|
819
981
|
|
|
982
|
+
## conditions_condition_site_coverage
|
|
983
|
+
|
|
984
|
+
> <ConditionSiteCoverageResponse> conditions_condition_site_coverage(id, opts)
|
|
985
|
+
|
|
986
|
+
Condition site coverage
|
|
987
|
+
|
|
988
|
+
### Examples
|
|
989
|
+
|
|
990
|
+
```ruby
|
|
991
|
+
require 'time'
|
|
992
|
+
require 'pharmaobservatory'
|
|
993
|
+
# setup authorization
|
|
994
|
+
PharmaObservatory.configure do |config|
|
|
995
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
996
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
997
|
+
end
|
|
998
|
+
|
|
999
|
+
api_instance = PharmaObservatory::ConditionsApi.new
|
|
1000
|
+
id = 'D001523' # String |
|
|
1001
|
+
opts = {
|
|
1002
|
+
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.
|
|
1003
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
1004
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1005
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
1006
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
begin
|
|
1010
|
+
# Condition site coverage
|
|
1011
|
+
result = api_instance.conditions_condition_site_coverage(id, opts)
|
|
1012
|
+
p result
|
|
1013
|
+
rescue PharmaObservatory::ApiError => e
|
|
1014
|
+
puts "Error when calling ConditionsApi->conditions_condition_site_coverage: #{e}"
|
|
1015
|
+
end
|
|
1016
|
+
```
|
|
1017
|
+
|
|
1018
|
+
#### Using the conditions_condition_site_coverage_with_http_info variant
|
|
1019
|
+
|
|
1020
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1021
|
+
|
|
1022
|
+
> <Array(<ConditionSiteCoverageResponse>, Integer, Hash)> conditions_condition_site_coverage_with_http_info(id, opts)
|
|
1023
|
+
|
|
1024
|
+
```ruby
|
|
1025
|
+
begin
|
|
1026
|
+
# Condition site coverage
|
|
1027
|
+
data, status_code, headers = api_instance.conditions_condition_site_coverage_with_http_info(id, opts)
|
|
1028
|
+
p status_code # => 2xx
|
|
1029
|
+
p headers # => { ... }
|
|
1030
|
+
p data # => <ConditionSiteCoverageResponse>
|
|
1031
|
+
rescue PharmaObservatory::ApiError => e
|
|
1032
|
+
puts "Error when calling ConditionsApi->conditions_condition_site_coverage_with_http_info: #{e}"
|
|
1033
|
+
end
|
|
1034
|
+
```
|
|
1035
|
+
|
|
1036
|
+
### Parameters
|
|
1037
|
+
|
|
1038
|
+
| Name | Type | Description | Notes |
|
|
1039
|
+
| ---- | ---- | ----------- | ----- |
|
|
1040
|
+
| **id** | **String** | | |
|
|
1041
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
1042
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
1043
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
1044
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
1045
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
1046
|
+
|
|
1047
|
+
### Return type
|
|
1048
|
+
|
|
1049
|
+
[**ConditionSiteCoverageResponse**](ConditionSiteCoverageResponse.md)
|
|
1050
|
+
|
|
1051
|
+
### Authorization
|
|
1052
|
+
|
|
1053
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
1054
|
+
|
|
1055
|
+
### HTTP request headers
|
|
1056
|
+
|
|
1057
|
+
- **Content-Type**: Not defined
|
|
1058
|
+
- **Accept**: application/json
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
## conditions_condition_site_years
|
|
1062
|
+
|
|
1063
|
+
> <ConditionSiteYearsResponse> conditions_condition_site_years(id, opts)
|
|
1064
|
+
|
|
1065
|
+
Condition site years
|
|
1066
|
+
|
|
1067
|
+
### Examples
|
|
1068
|
+
|
|
1069
|
+
```ruby
|
|
1070
|
+
require 'time'
|
|
1071
|
+
require 'pharmaobservatory'
|
|
1072
|
+
# setup authorization
|
|
1073
|
+
PharmaObservatory.configure do |config|
|
|
1074
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
1075
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1076
|
+
end
|
|
1077
|
+
|
|
1078
|
+
api_instance = PharmaObservatory::ConditionsApi.new
|
|
1079
|
+
id = 'D001523' # String |
|
|
1080
|
+
opts = {
|
|
1081
|
+
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.
|
|
1082
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
1083
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1084
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
1085
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
begin
|
|
1089
|
+
# Condition site years
|
|
1090
|
+
result = api_instance.conditions_condition_site_years(id, opts)
|
|
1091
|
+
p result
|
|
1092
|
+
rescue PharmaObservatory::ApiError => e
|
|
1093
|
+
puts "Error when calling ConditionsApi->conditions_condition_site_years: #{e}"
|
|
1094
|
+
end
|
|
1095
|
+
```
|
|
1096
|
+
|
|
1097
|
+
#### Using the conditions_condition_site_years_with_http_info variant
|
|
1098
|
+
|
|
1099
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1100
|
+
|
|
1101
|
+
> <Array(<ConditionSiteYearsResponse>, Integer, Hash)> conditions_condition_site_years_with_http_info(id, opts)
|
|
1102
|
+
|
|
1103
|
+
```ruby
|
|
1104
|
+
begin
|
|
1105
|
+
# Condition site years
|
|
1106
|
+
data, status_code, headers = api_instance.conditions_condition_site_years_with_http_info(id, opts)
|
|
1107
|
+
p status_code # => 2xx
|
|
1108
|
+
p headers # => { ... }
|
|
1109
|
+
p data # => <ConditionSiteYearsResponse>
|
|
1110
|
+
rescue PharmaObservatory::ApiError => e
|
|
1111
|
+
puts "Error when calling ConditionsApi->conditions_condition_site_years_with_http_info: #{e}"
|
|
1112
|
+
end
|
|
1113
|
+
```
|
|
1114
|
+
|
|
1115
|
+
### Parameters
|
|
1116
|
+
|
|
1117
|
+
| Name | Type | Description | Notes |
|
|
1118
|
+
| ---- | ---- | ----------- | ----- |
|
|
1119
|
+
| **id** | **String** | | |
|
|
1120
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
1121
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
1122
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
1123
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
1124
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
1125
|
+
|
|
1126
|
+
### Return type
|
|
1127
|
+
|
|
1128
|
+
[**ConditionSiteYearsResponse**](ConditionSiteYearsResponse.md)
|
|
1129
|
+
|
|
1130
|
+
### Authorization
|
|
1131
|
+
|
|
1132
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
1133
|
+
|
|
1134
|
+
### HTTP request headers
|
|
1135
|
+
|
|
1136
|
+
- **Content-Type**: Not defined
|
|
1137
|
+
- **Accept**: application/json
|
|
1138
|
+
|
|
1139
|
+
|
|
820
1140
|
## conditions_condition_sites
|
|
821
1141
|
|
|
822
1142
|
> <ConditionSitesResponse> conditions_condition_sites(id, opts)
|