pharmaobservatory 0.1.23 → 0.1.24

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60a48e3eee3ff94b84ddf2bb9d434ea11a7336521cc5bf74b841776a7c622956
4
- data.tar.gz: a20b6f2ca88f6abe6f61f9805b2e188d9427a7ec33be882b42455226a4077078
3
+ metadata.gz: 6d9b3fb775f878bf836844d62f68230e1a795e1f45232c2a3c8902cf414203fe
4
+ data.tar.gz: 01eca063d06407ce959cda079d68583b70cfd4c3babf1afd4a515b7ddd51567a
5
5
  SHA512:
6
- metadata.gz: f6e4c2395f6564d1af690ab604d970d97caae938190ff29dbf476fe772a98cffafe96649ad9901222ff56fd210f8b094dab72386756282c56d3e0a8e61c66426
7
- data.tar.gz: a2118df51f715afde79fa2de0639e8320b354d027b2071cd66af0bb1ae100e7b18c5155d18dba7404d421f2acf242607a58a28cfc244b85715f2e25b811e7770
6
+ metadata.gz: 5d0a8dccd32ac81058e1d87ff879d0b0a38abcbc4c938174119b08067592e0a315bdab0f85adfc95ae56298846676197322435467a9b8568fc008f0a25da628e
7
+ data.tar.gz: 9f140c7d72ec07182b7d4ab0feadce3dcdfdb9b66ee0c8b2c20115cd7963e80de495629c7010f14e02d9bc5af9c459ef29938b79017710504935ff84f24476a7
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.23
42
+ - Package version: 0.1.24
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.23.gem
59
+ gem install ./pharmaobservatory-0.1.24.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./pharmaobservatory-0.1.23.gem` to install the development dependencies)
62
+ (for development, run `gem install --dev ./pharmaobservatory-0.1.24.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.23'
68
+ gem 'pharmaobservatory', '~> 0.1.24'
69
69
 
70
70
  ### Install from Git
71
71
 
@@ -223,6 +223,8 @@ Class | Method | HTTP request | Description
223
223
  *PharmaObservatory::ConditionsApi* | [**conditions_condition_publications**](docs/ConditionsApi.md#conditions_condition_publications) | **GET** /api/v1/conditions/{id}/condition_publications | Condition publications
224
224
  *PharmaObservatory::ConditionsApi* | [**conditions_condition_recruitment_by_phase**](docs/ConditionsApi.md#conditions_condition_recruitment_by_phase) | **GET** /api/v1/conditions/{id}/condition_recruitment_by_phase | Trial recruitment duration by condition and phase
225
225
  *PharmaObservatory::ConditionsApi* | [**conditions_condition_recruitment_duration**](docs/ConditionsApi.md#conditions_condition_recruitment_duration) | **GET** /api/v1/conditions/{id}/condition_recruitment_duration | Trial recruitment duration by condition
226
+ *PharmaObservatory::ConditionsApi* | [**conditions_condition_site_coverage**](docs/ConditionsApi.md#conditions_condition_site_coverage) | **GET** /api/v1/conditions/{id}/condition_site_coverage | Condition site coverage
227
+ *PharmaObservatory::ConditionsApi* | [**conditions_condition_site_years**](docs/ConditionsApi.md#conditions_condition_site_years) | **GET** /api/v1/conditions/{id}/condition_site_years | Condition site years
226
228
  *PharmaObservatory::ConditionsApi* | [**conditions_condition_sites**](docs/ConditionsApi.md#conditions_condition_sites) | **GET** /api/v1/conditions/{id}/condition_sites | Condition sites
227
229
  *PharmaObservatory::ConditionsApi* | [**conditions_condition_trial_start_forecast**](docs/ConditionsApi.md#conditions_condition_trial_start_forecast) | **GET** /api/v1/conditions/{id}/condition_trial_start_forecast | Trial-start forecast by condition
228
230
  *PharmaObservatory::ConditionsApi* | [**conditions_condition_trials**](docs/ConditionsApi.md#conditions_condition_trials) | **GET** /api/v1/conditions/{id}/condition_trials | Condition trials
@@ -592,6 +594,10 @@ Class | Method | HTTP request | Description
592
594
  - [PharmaObservatory::ConditionRecruitmentByPhaseRow](docs/ConditionRecruitmentByPhaseRow.md)
593
595
  - [PharmaObservatory::ConditionRecruitmentDurationResponse](docs/ConditionRecruitmentDurationResponse.md)
594
596
  - [PharmaObservatory::ConditionRecruitmentDurationRow](docs/ConditionRecruitmentDurationRow.md)
597
+ - [PharmaObservatory::ConditionSiteCoverageResponse](docs/ConditionSiteCoverageResponse.md)
598
+ - [PharmaObservatory::ConditionSiteCoverageRow](docs/ConditionSiteCoverageRow.md)
599
+ - [PharmaObservatory::ConditionSiteYearsResponse](docs/ConditionSiteYearsResponse.md)
600
+ - [PharmaObservatory::ConditionSiteYearsRow](docs/ConditionSiteYearsRow.md)
595
601
  - [PharmaObservatory::ConditionSitesResponse](docs/ConditionSitesResponse.md)
596
602
  - [PharmaObservatory::ConditionSitesRow](docs/ConditionSitesRow.md)
597
603
  - [PharmaObservatory::ConditionTrialStartForecastResponse](docs/ConditionTrialStartForecastResponse.md)
@@ -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
+
@@ -14,6 +14,8 @@ All URIs are relative to *https://pharmaobservatory.com*
14
14
  | [**conditions_condition_publications**](ConditionsApi.md#conditions_condition_publications) | **GET** /api/v1/conditions/{id}/condition_publications | Condition publications |
15
15
  | [**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
16
  | [**conditions_condition_recruitment_duration**](ConditionsApi.md#conditions_condition_recruitment_duration) | **GET** /api/v1/conditions/{id}/condition_recruitment_duration | Trial recruitment duration by condition |
17
+ | [**conditions_condition_site_coverage**](ConditionsApi.md#conditions_condition_site_coverage) | **GET** /api/v1/conditions/{id}/condition_site_coverage | Condition site coverage |
18
+ | [**conditions_condition_site_years**](ConditionsApi.md#conditions_condition_site_years) | **GET** /api/v1/conditions/{id}/condition_site_years | Condition site years |
17
19
  | [**conditions_condition_sites**](ConditionsApi.md#conditions_condition_sites) | **GET** /api/v1/conditions/{id}/condition_sites | Condition sites |
18
20
  | [**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
21
  | [**conditions_condition_trials**](ConditionsApi.md#conditions_condition_trials) | **GET** /api/v1/conditions/{id}/condition_trials | Condition trials |
@@ -817,6 +819,164 @@ end
817
819
  - **Accept**: application/json
818
820
 
819
821
 
822
+ ## conditions_condition_site_coverage
823
+
824
+ > <ConditionSiteCoverageResponse> conditions_condition_site_coverage(id, opts)
825
+
826
+ Condition site coverage
827
+
828
+ ### Examples
829
+
830
+ ```ruby
831
+ require 'time'
832
+ require 'pharmaobservatory'
833
+ # setup authorization
834
+ PharmaObservatory.configure do |config|
835
+ # Configure Bearer authorization (JWT): ApiBearerJwt
836
+ config.access_token = 'YOUR_BEARER_TOKEN'
837
+ end
838
+
839
+ api_instance = PharmaObservatory::ConditionsApi.new
840
+ id = 'D001523' # String |
841
+ opts = {
842
+ 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.
843
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
844
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
845
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
846
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
847
+ }
848
+
849
+ begin
850
+ # Condition site coverage
851
+ result = api_instance.conditions_condition_site_coverage(id, opts)
852
+ p result
853
+ rescue PharmaObservatory::ApiError => e
854
+ puts "Error when calling ConditionsApi->conditions_condition_site_coverage: #{e}"
855
+ end
856
+ ```
857
+
858
+ #### Using the conditions_condition_site_coverage_with_http_info variant
859
+
860
+ This returns an Array which contains the response data, status code and headers.
861
+
862
+ > <Array(<ConditionSiteCoverageResponse>, Integer, Hash)> conditions_condition_site_coverage_with_http_info(id, opts)
863
+
864
+ ```ruby
865
+ begin
866
+ # Condition site coverage
867
+ data, status_code, headers = api_instance.conditions_condition_site_coverage_with_http_info(id, opts)
868
+ p status_code # => 2xx
869
+ p headers # => { ... }
870
+ p data # => <ConditionSiteCoverageResponse>
871
+ rescue PharmaObservatory::ApiError => e
872
+ puts "Error when calling ConditionsApi->conditions_condition_site_coverage_with_http_info: #{e}"
873
+ end
874
+ ```
875
+
876
+ ### Parameters
877
+
878
+ | Name | Type | Description | Notes |
879
+ | ---- | ---- | ----------- | ----- |
880
+ | **id** | **String** | | |
881
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
882
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
883
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
884
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
885
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
886
+
887
+ ### Return type
888
+
889
+ [**ConditionSiteCoverageResponse**](ConditionSiteCoverageResponse.md)
890
+
891
+ ### Authorization
892
+
893
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
894
+
895
+ ### HTTP request headers
896
+
897
+ - **Content-Type**: Not defined
898
+ - **Accept**: application/json
899
+
900
+
901
+ ## conditions_condition_site_years
902
+
903
+ > <ConditionSiteYearsResponse> conditions_condition_site_years(id, opts)
904
+
905
+ Condition site years
906
+
907
+ ### Examples
908
+
909
+ ```ruby
910
+ require 'time'
911
+ require 'pharmaobservatory'
912
+ # setup authorization
913
+ PharmaObservatory.configure do |config|
914
+ # Configure Bearer authorization (JWT): ApiBearerJwt
915
+ config.access_token = 'YOUR_BEARER_TOKEN'
916
+ end
917
+
918
+ api_instance = PharmaObservatory::ConditionsApi.new
919
+ id = 'D001523' # String |
920
+ opts = {
921
+ 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.
922
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
923
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
924
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
925
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
926
+ }
927
+
928
+ begin
929
+ # Condition site years
930
+ result = api_instance.conditions_condition_site_years(id, opts)
931
+ p result
932
+ rescue PharmaObservatory::ApiError => e
933
+ puts "Error when calling ConditionsApi->conditions_condition_site_years: #{e}"
934
+ end
935
+ ```
936
+
937
+ #### Using the conditions_condition_site_years_with_http_info variant
938
+
939
+ This returns an Array which contains the response data, status code and headers.
940
+
941
+ > <Array(<ConditionSiteYearsResponse>, Integer, Hash)> conditions_condition_site_years_with_http_info(id, opts)
942
+
943
+ ```ruby
944
+ begin
945
+ # Condition site years
946
+ data, status_code, headers = api_instance.conditions_condition_site_years_with_http_info(id, opts)
947
+ p status_code # => 2xx
948
+ p headers # => { ... }
949
+ p data # => <ConditionSiteYearsResponse>
950
+ rescue PharmaObservatory::ApiError => e
951
+ puts "Error when calling ConditionsApi->conditions_condition_site_years_with_http_info: #{e}"
952
+ end
953
+ ```
954
+
955
+ ### Parameters
956
+
957
+ | Name | Type | Description | Notes |
958
+ | ---- | ---- | ----------- | ----- |
959
+ | **id** | **String** | | |
960
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
961
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
962
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
963
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
964
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
965
+
966
+ ### Return type
967
+
968
+ [**ConditionSiteYearsResponse**](ConditionSiteYearsResponse.md)
969
+
970
+ ### Authorization
971
+
972
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
973
+
974
+ ### HTTP request headers
975
+
976
+ - **Content-Type**: Not defined
977
+ - **Accept**: application/json
978
+
979
+
820
980
  ## conditions_condition_sites
821
981
 
822
982
  > <ConditionSitesResponse> conditions_condition_sites(id, opts)
@@ -31,9 +31,9 @@
31
31
  | **single_declared_country_iso2** | **String** | The ISO 3166-1 alpha-2 code when the entry declares exactly one country, null otherwise. | [optional] |
32
32
  | **institution_website** | **String** | The institution&#39;s website as the register holds it. | [optional] |
33
33
  | **catalogue_url** | **String** | The address of this entry on the HMA-EMA catalogue site (the register&#39;s URL LINK). | [optional] |
34
- | **open_to_industry_funded_research** | **Boolean** | Whether the institution declares it is open to industry-funded research; null on a catalogue name entry, where the export writes a default No that is not an answer. | [optional] |
35
- | **collects_data_directly_from_patients** | **Boolean** | Whether the institution declares it collects data directly from patients; null on a catalogue name entry. | [optional] |
36
- | **is_encepp_partner** | **Boolean** | Whether the entry declares an ENCePP partnership; null on a catalogue name entry, where the export writes a default No that is not an answer. | [optional] |
34
+ | **open_to_industry_funded_research** | **Boolean** | The register export&#39;s Yes or No to whether the institution is open to industry-funded research. The export cannot tell an unanswered question from No, so a false is register export: No, not a decline. Null on a catalogue name entry, where the export writes a default No that is not an answer. | [optional] |
35
+ | **collects_data_directly_from_patients** | **Boolean** | The register export&#39;s Yes or No to whether the institution collects data directly from patients. The export cannot tell an unanswered question from No, so a false is register export: No. Null on a catalogue name entry. | [optional] |
36
+ | **is_encepp_partner** | **Boolean** | The register export&#39;s Yes or No to whether the entry is an ENCePP partner. The export cannot tell an unanswered question from No, so a false is register export: No. Null on a catalogue name entry, where the export writes a default No that is not an answer. | [optional] |
37
37
  | **record_updated_at** | **Time** | When the registrant last edited this catalogue entry. A different clock from last_refreshed_on: it dates the web form, not the database. | [optional] |
38
38
  | **record_updated_is_mass_edit** | **Boolean** | True when the record&#39;s last update date is a mass-edit date: one shared by an outsized part of the register, so it dates a migration and not the registrant. | [optional] |
39
39
  | **record_updated_at_attested** | **Time** | record_updated_at with the mass-edit dates removed (null for a mass-edit date or no timestamp): the column to sort a freshness question on. | [optional] |
@@ -17,7 +17,7 @@
17
17
  | **sources_of_funding** | **String** | The sources of funding the network declares, as typed. | [optional] |
18
18
  | **network_website** | **String** | The network&#39;s website as the register holds it. | [optional] |
19
19
  | **catalogue_url** | **String** | The address of this entry on the HMA-EMA catalogue site (the register&#39;s URL LINK). | [optional] |
20
- | **is_encepp_partner** | **Boolean** | Whether the entry declares an ENCePP partnership; null on a catalogue name entry, where the export writes a default No that is not an answer. | [optional] |
20
+ | **is_encepp_partner** | **Boolean** | The register export&#39;s Yes or No to whether the entry is an ENCePP partner. The export cannot tell an unanswered question from No, so a false is register export: No. Null on a catalogue name entry, where the export writes a default No that is not an answer. | [optional] |
21
21
  | **declared_member_count** | **Integer** | How many member institutions the network&#39;s own list names; zero says the network named nobody, not that it has no members. | [optional] |
22
22
  | **declared_member_name_keys** | **Array&lt;String&gt;** | The normalised name keys of the declared members. | [optional] |
23
23
  | **declared_member_names** | **Array&lt;String&gt;** | The names of the declared members as the register spells them. | [optional] |
@@ -859,6 +859,174 @@ module PharmaObservatory
859
859
  return data, status_code, headers
860
860
  end
861
861
 
862
+ # Condition site coverage
863
+ # @param id [String]
864
+ # @param [Hash] opts the optional parameters
865
+ # @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.
866
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
867
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
868
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
869
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
870
+ # @return [ConditionSiteCoverageResponse]
871
+ def conditions_condition_site_coverage(id, opts = {})
872
+ data, _status_code, _headers = conditions_condition_site_coverage_with_http_info(id, opts)
873
+ data
874
+ end
875
+
876
+ # Condition site coverage
877
+ # @param id [String]
878
+ # @param [Hash] opts the optional parameters
879
+ # @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.
880
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
881
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
882
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
883
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
884
+ # @return [Array<(ConditionSiteCoverageResponse, Integer, Hash)>] ConditionSiteCoverageResponse data, response status code and response headers
885
+ def conditions_condition_site_coverage_with_http_info(id, opts = {})
886
+ if @api_client.config.debugging
887
+ @api_client.config.logger.debug 'Calling API: ConditionsApi.conditions_condition_site_coverage ...'
888
+ end
889
+ # verify the required parameter 'id' is set
890
+ if @api_client.config.client_side_validation && id.nil?
891
+ fail ArgumentError, "Missing the required parameter 'id' when calling ConditionsApi.conditions_condition_site_coverage"
892
+ end
893
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
894
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ConditionsApi.conditions_condition_site_coverage, must be smaller than or equal to 500.'
895
+ end
896
+
897
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
898
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ConditionsApi.conditions_condition_site_coverage, must be greater than or equal to 1.'
899
+ end
900
+
901
+ # resource path
902
+ local_var_path = '/api/v1/conditions/{id}/condition_site_coverage'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
903
+
904
+ # query parameters
905
+ query_params = opts[:query_params] || {}
906
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
907
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
908
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
909
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
910
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
911
+
912
+ # header parameters
913
+ header_params = opts[:header_params] || {}
914
+ # HTTP header 'Accept' (if needed)
915
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
916
+
917
+ # form parameters
918
+ form_params = opts[:form_params] || {}
919
+
920
+ # http body (model)
921
+ post_body = opts[:debug_body]
922
+
923
+ # return_type
924
+ return_type = opts[:debug_return_type] || 'ConditionSiteCoverageResponse'
925
+
926
+ # auth_names
927
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
928
+
929
+ new_options = opts.merge(
930
+ :operation => :"ConditionsApi.conditions_condition_site_coverage",
931
+ :header_params => header_params,
932
+ :query_params => query_params,
933
+ :form_params => form_params,
934
+ :body => post_body,
935
+ :auth_names => auth_names,
936
+ :return_type => return_type
937
+ )
938
+
939
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
940
+ if @api_client.config.debugging
941
+ @api_client.config.logger.debug "API called: ConditionsApi#conditions_condition_site_coverage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
942
+ end
943
+ return data, status_code, headers
944
+ end
945
+
946
+ # Condition site years
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 [ConditionSiteYearsResponse]
955
+ def conditions_condition_site_years(id, opts = {})
956
+ data, _status_code, _headers = conditions_condition_site_years_with_http_info(id, opts)
957
+ data
958
+ end
959
+
960
+ # Condition site years
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<(ConditionSiteYearsResponse, Integer, Hash)>] ConditionSiteYearsResponse data, response status code and response headers
969
+ def conditions_condition_site_years_with_http_info(id, opts = {})
970
+ if @api_client.config.debugging
971
+ @api_client.config.logger.debug 'Calling API: ConditionsApi.conditions_condition_site_years ...'
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 ConditionsApi.conditions_condition_site_years"
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 ConditionsApi.conditions_condition_site_years, 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 ConditionsApi.conditions_condition_site_years, must be greater than or equal to 1.'
983
+ end
984
+
985
+ # resource path
986
+ local_var_path = '/api/v1/conditions/{id}/condition_site_years'.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] || 'ConditionSiteYearsResponse'
1009
+
1010
+ # auth_names
1011
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1012
+
1013
+ new_options = opts.merge(
1014
+ :operation => :"ConditionsApi.conditions_condition_site_years",
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: ConditionsApi#conditions_condition_site_years\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1026
+ end
1027
+ return data, status_code, headers
1028
+ end
1029
+
862
1030
  # Condition sites
863
1031
  # @param id [String]
864
1032
  # @param [Hash] opts the optional parameters