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
@@ -691,6 +691,90 @@ module PharmaObservatory
691
691
  return data, status_code, headers
692
692
  end
693
693
 
694
+ # Condition literature, most active authors
695
+ # @param id [String]
696
+ # @param [Hash] opts the optional parameters
697
+ # @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.
698
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
699
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
700
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
701
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
702
+ # @return [ConditionLiteraturePeopleResponse]
703
+ def conditions_condition_literature_people(id, opts = {})
704
+ data, _status_code, _headers = conditions_condition_literature_people_with_http_info(id, opts)
705
+ data
706
+ end
707
+
708
+ # Condition literature, most active authors
709
+ # @param id [String]
710
+ # @param [Hash] opts the optional parameters
711
+ # @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.
712
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
713
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
714
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
715
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
716
+ # @return [Array<(ConditionLiteraturePeopleResponse, Integer, Hash)>] ConditionLiteraturePeopleResponse data, response status code and response headers
717
+ def conditions_condition_literature_people_with_http_info(id, opts = {})
718
+ if @api_client.config.debugging
719
+ @api_client.config.logger.debug 'Calling API: ConditionsApi.conditions_condition_literature_people ...'
720
+ end
721
+ # verify the required parameter 'id' is set
722
+ if @api_client.config.client_side_validation && id.nil?
723
+ fail ArgumentError, "Missing the required parameter 'id' when calling ConditionsApi.conditions_condition_literature_people"
724
+ end
725
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
726
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ConditionsApi.conditions_condition_literature_people, must be smaller than or equal to 500.'
727
+ end
728
+
729
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
730
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ConditionsApi.conditions_condition_literature_people, must be greater than or equal to 1.'
731
+ end
732
+
733
+ # resource path
734
+ local_var_path = '/api/v1/conditions/{id}/condition_literature_people'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
735
+
736
+ # query parameters
737
+ query_params = opts[:query_params] || {}
738
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
739
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
740
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
741
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
742
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
743
+
744
+ # header parameters
745
+ header_params = opts[:header_params] || {}
746
+ # HTTP header 'Accept' (if needed)
747
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
748
+
749
+ # form parameters
750
+ form_params = opts[:form_params] || {}
751
+
752
+ # http body (model)
753
+ post_body = opts[:debug_body]
754
+
755
+ # return_type
756
+ return_type = opts[:debug_return_type] || 'ConditionLiteraturePeopleResponse'
757
+
758
+ # auth_names
759
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
760
+
761
+ new_options = opts.merge(
762
+ :operation => :"ConditionsApi.conditions_condition_literature_people",
763
+ :header_params => header_params,
764
+ :query_params => query_params,
765
+ :form_params => form_params,
766
+ :body => post_body,
767
+ :auth_names => auth_names,
768
+ :return_type => return_type
769
+ )
770
+
771
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
772
+ if @api_client.config.debugging
773
+ @api_client.config.logger.debug "API called: ConditionsApi#conditions_condition_literature_people\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
774
+ end
775
+ return data, status_code, headers
776
+ end
777
+
694
778
  # Condition prevalence
695
779
  # @param id [String]
696
780
  # @param [Hash] opts the optional parameters
@@ -1670,6 +1754,90 @@ module PharmaObservatory
1670
1754
  return data, status_code, headers
1671
1755
  end
1672
1756
 
1757
+ # Patient organisations
1758
+ # @param id [String]
1759
+ # @param [Hash] opts the optional parameters
1760
+ # @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.
1761
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1762
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1763
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1764
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1765
+ # @return [PatientOrganisationResponse]
1766
+ def conditions_patient_organisation(id, opts = {})
1767
+ data, _status_code, _headers = conditions_patient_organisation_with_http_info(id, opts)
1768
+ data
1769
+ end
1770
+
1771
+ # Patient organisations
1772
+ # @param id [String]
1773
+ # @param [Hash] opts the optional parameters
1774
+ # @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.
1775
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1776
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1777
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1778
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1779
+ # @return [Array<(PatientOrganisationResponse, Integer, Hash)>] PatientOrganisationResponse data, response status code and response headers
1780
+ def conditions_patient_organisation_with_http_info(id, opts = {})
1781
+ if @api_client.config.debugging
1782
+ @api_client.config.logger.debug 'Calling API: ConditionsApi.conditions_patient_organisation ...'
1783
+ end
1784
+ # verify the required parameter 'id' is set
1785
+ if @api_client.config.client_side_validation && id.nil?
1786
+ fail ArgumentError, "Missing the required parameter 'id' when calling ConditionsApi.conditions_patient_organisation"
1787
+ end
1788
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1789
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ConditionsApi.conditions_patient_organisation, must be smaller than or equal to 500.'
1790
+ end
1791
+
1792
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1793
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ConditionsApi.conditions_patient_organisation, must be greater than or equal to 1.'
1794
+ end
1795
+
1796
+ # resource path
1797
+ local_var_path = '/api/v1/conditions/{id}/patient_organisation'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1798
+
1799
+ # query parameters
1800
+ query_params = opts[:query_params] || {}
1801
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1802
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1803
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1804
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1805
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1806
+
1807
+ # header parameters
1808
+ header_params = opts[:header_params] || {}
1809
+ # HTTP header 'Accept' (if needed)
1810
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1811
+
1812
+ # form parameters
1813
+ form_params = opts[:form_params] || {}
1814
+
1815
+ # http body (model)
1816
+ post_body = opts[:debug_body]
1817
+
1818
+ # return_type
1819
+ return_type = opts[:debug_return_type] || 'PatientOrganisationResponse'
1820
+
1821
+ # auth_names
1822
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1823
+
1824
+ new_options = opts.merge(
1825
+ :operation => :"ConditionsApi.conditions_patient_organisation",
1826
+ :header_params => header_params,
1827
+ :query_params => query_params,
1828
+ :form_params => form_params,
1829
+ :body => post_body,
1830
+ :auth_names => auth_names,
1831
+ :return_type => return_type
1832
+ )
1833
+
1834
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1835
+ if @api_client.config.debugging
1836
+ @api_client.config.logger.debug "API called: ConditionsApi#conditions_patient_organisation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1837
+ end
1838
+ return data, status_code, headers
1839
+ end
1840
+
1673
1841
  # FDA decision dates (PDUFA) and catalysts
1674
1842
  # @param id [String]
1675
1843
  # @param [Hash] opts the optional parameters
@@ -19,6 +19,174 @@ module PharmaObservatory
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Biomarker literature, most active authors
23
+ # @param id [String]
24
+ # @param [Hash] opts the optional parameters
25
+ # @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.
26
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
27
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
28
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
29
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
30
+ # @return [BiomarkerLiteraturePeopleResponse]
31
+ def investigators_biomarker_literature_people(id, opts = {})
32
+ data, _status_code, _headers = investigators_biomarker_literature_people_with_http_info(id, opts)
33
+ data
34
+ end
35
+
36
+ # Biomarker literature, most active authors
37
+ # @param id [String]
38
+ # @param [Hash] opts the optional parameters
39
+ # @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.
40
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
41
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
42
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
43
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
44
+ # @return [Array<(BiomarkerLiteraturePeopleResponse, Integer, Hash)>] BiomarkerLiteraturePeopleResponse data, response status code and response headers
45
+ def investigators_biomarker_literature_people_with_http_info(id, opts = {})
46
+ if @api_client.config.debugging
47
+ @api_client.config.logger.debug 'Calling API: InvestigatorsApi.investigators_biomarker_literature_people ...'
48
+ end
49
+ # verify the required parameter 'id' is set
50
+ if @api_client.config.client_side_validation && id.nil?
51
+ fail ArgumentError, "Missing the required parameter 'id' when calling InvestigatorsApi.investigators_biomarker_literature_people"
52
+ end
53
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
54
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling InvestigatorsApi.investigators_biomarker_literature_people, must be smaller than or equal to 500.'
55
+ end
56
+
57
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
58
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling InvestigatorsApi.investigators_biomarker_literature_people, must be greater than or equal to 1.'
59
+ end
60
+
61
+ # resource path
62
+ local_var_path = '/api/v1/investigators/{id}/biomarker_literature_people'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
63
+
64
+ # query parameters
65
+ query_params = opts[:query_params] || {}
66
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
67
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
68
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
69
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
70
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
71
+
72
+ # header parameters
73
+ header_params = opts[:header_params] || {}
74
+ # HTTP header 'Accept' (if needed)
75
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
76
+
77
+ # form parameters
78
+ form_params = opts[:form_params] || {}
79
+
80
+ # http body (model)
81
+ post_body = opts[:debug_body]
82
+
83
+ # return_type
84
+ return_type = opts[:debug_return_type] || 'BiomarkerLiteraturePeopleResponse'
85
+
86
+ # auth_names
87
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
88
+
89
+ new_options = opts.merge(
90
+ :operation => :"InvestigatorsApi.investigators_biomarker_literature_people",
91
+ :header_params => header_params,
92
+ :query_params => query_params,
93
+ :form_params => form_params,
94
+ :body => post_body,
95
+ :auth_names => auth_names,
96
+ :return_type => return_type
97
+ )
98
+
99
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
100
+ if @api_client.config.debugging
101
+ @api_client.config.logger.debug "API called: InvestigatorsApi#investigators_biomarker_literature_people\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
102
+ end
103
+ return data, status_code, headers
104
+ end
105
+
106
+ # Condition literature, most active authors
107
+ # @param id [String]
108
+ # @param [Hash] opts the optional parameters
109
+ # @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.
110
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
111
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
112
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
113
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
114
+ # @return [ConditionLiteraturePeopleResponse]
115
+ def investigators_condition_literature_people(id, opts = {})
116
+ data, _status_code, _headers = investigators_condition_literature_people_with_http_info(id, opts)
117
+ data
118
+ end
119
+
120
+ # Condition literature, most active authors
121
+ # @param id [String]
122
+ # @param [Hash] opts the optional parameters
123
+ # @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.
124
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
125
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
126
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
127
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
128
+ # @return [Array<(ConditionLiteraturePeopleResponse, Integer, Hash)>] ConditionLiteraturePeopleResponse data, response status code and response headers
129
+ def investigators_condition_literature_people_with_http_info(id, opts = {})
130
+ if @api_client.config.debugging
131
+ @api_client.config.logger.debug 'Calling API: InvestigatorsApi.investigators_condition_literature_people ...'
132
+ end
133
+ # verify the required parameter 'id' is set
134
+ if @api_client.config.client_side_validation && id.nil?
135
+ fail ArgumentError, "Missing the required parameter 'id' when calling InvestigatorsApi.investigators_condition_literature_people"
136
+ end
137
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
138
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling InvestigatorsApi.investigators_condition_literature_people, must be smaller than or equal to 500.'
139
+ end
140
+
141
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
142
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling InvestigatorsApi.investigators_condition_literature_people, must be greater than or equal to 1.'
143
+ end
144
+
145
+ # resource path
146
+ local_var_path = '/api/v1/investigators/{id}/condition_literature_people'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
147
+
148
+ # query parameters
149
+ query_params = opts[:query_params] || {}
150
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
151
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
152
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
153
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
154
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
155
+
156
+ # header parameters
157
+ header_params = opts[:header_params] || {}
158
+ # HTTP header 'Accept' (if needed)
159
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
160
+
161
+ # form parameters
162
+ form_params = opts[:form_params] || {}
163
+
164
+ # http body (model)
165
+ post_body = opts[:debug_body]
166
+
167
+ # return_type
168
+ return_type = opts[:debug_return_type] || 'ConditionLiteraturePeopleResponse'
169
+
170
+ # auth_names
171
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
172
+
173
+ new_options = opts.merge(
174
+ :operation => :"InvestigatorsApi.investigators_condition_literature_people",
175
+ :header_params => header_params,
176
+ :query_params => query_params,
177
+ :form_params => form_params,
178
+ :body => post_body,
179
+ :auth_names => auth_names,
180
+ :return_type => return_type
181
+ )
182
+
183
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
184
+ if @api_client.config.debugging
185
+ @api_client.config.logger.debug "API called: InvestigatorsApi#investigators_condition_literature_people\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
186
+ end
187
+ return data, status_code, headers
188
+ end
189
+
22
190
  # Investigators on a drug's trials
23
191
  # @param id [String]
24
192
  # @param [Hash] opts the optional parameters
@@ -830,6 +998,90 @@ module PharmaObservatory
830
998
  return data, status_code, headers
831
999
  end
832
1000
 
1001
+ # Organization literature, authors on affiliated papers
1002
+ # @param id [String]
1003
+ # @param [Hash] opts the optional parameters
1004
+ # @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.
1005
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1006
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1007
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1008
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1009
+ # @return [OrgLiteraturePeopleResponse]
1010
+ def investigators_org_literature_people(id, opts = {})
1011
+ data, _status_code, _headers = investigators_org_literature_people_with_http_info(id, opts)
1012
+ data
1013
+ end
1014
+
1015
+ # Organization literature, authors on affiliated papers
1016
+ # @param id [String]
1017
+ # @param [Hash] opts the optional parameters
1018
+ # @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.
1019
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1020
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1021
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1022
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1023
+ # @return [Array<(OrgLiteraturePeopleResponse, Integer, Hash)>] OrgLiteraturePeopleResponse data, response status code and response headers
1024
+ def investigators_org_literature_people_with_http_info(id, opts = {})
1025
+ if @api_client.config.debugging
1026
+ @api_client.config.logger.debug 'Calling API: InvestigatorsApi.investigators_org_literature_people ...'
1027
+ end
1028
+ # verify the required parameter 'id' is set
1029
+ if @api_client.config.client_side_validation && id.nil?
1030
+ fail ArgumentError, "Missing the required parameter 'id' when calling InvestigatorsApi.investigators_org_literature_people"
1031
+ end
1032
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1033
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling InvestigatorsApi.investigators_org_literature_people, must be smaller than or equal to 500.'
1034
+ end
1035
+
1036
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1037
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling InvestigatorsApi.investigators_org_literature_people, must be greater than or equal to 1.'
1038
+ end
1039
+
1040
+ # resource path
1041
+ local_var_path = '/api/v1/investigators/{id}/org_literature_people'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1042
+
1043
+ # query parameters
1044
+ query_params = opts[:query_params] || {}
1045
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1046
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1047
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1048
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1049
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1050
+
1051
+ # header parameters
1052
+ header_params = opts[:header_params] || {}
1053
+ # HTTP header 'Accept' (if needed)
1054
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1055
+
1056
+ # form parameters
1057
+ form_params = opts[:form_params] || {}
1058
+
1059
+ # http body (model)
1060
+ post_body = opts[:debug_body]
1061
+
1062
+ # return_type
1063
+ return_type = opts[:debug_return_type] || 'OrgLiteraturePeopleResponse'
1064
+
1065
+ # auth_names
1066
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1067
+
1068
+ new_options = opts.merge(
1069
+ :operation => :"InvestigatorsApi.investigators_org_literature_people",
1070
+ :header_params => header_params,
1071
+ :query_params => query_params,
1072
+ :form_params => form_params,
1073
+ :body => post_body,
1074
+ :auth_names => auth_names,
1075
+ :return_type => return_type
1076
+ )
1077
+
1078
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1079
+ if @api_client.config.debugging
1080
+ @api_client.config.logger.debug "API called: InvestigatorsApi#investigators_org_literature_people\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1081
+ end
1082
+ return data, status_code, headers
1083
+ end
1084
+
833
1085
  # Rare disease investigators
834
1086
  # @param id [String]
835
1087
  # @param [Hash] opts the optional parameters
@@ -1166,6 +1418,90 @@ module PharmaObservatory
1166
1418
  return data, status_code, headers
1167
1419
  end
1168
1420
 
1421
+ # Target literature, most active authors
1422
+ # @param id [String]
1423
+ # @param [Hash] opts the optional parameters
1424
+ # @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.
1425
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1426
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1427
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1428
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1429
+ # @return [TargetLiteraturePeopleResponse]
1430
+ def investigators_target_literature_people(id, opts = {})
1431
+ data, _status_code, _headers = investigators_target_literature_people_with_http_info(id, opts)
1432
+ data
1433
+ end
1434
+
1435
+ # Target literature, most active authors
1436
+ # @param id [String]
1437
+ # @param [Hash] opts the optional parameters
1438
+ # @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.
1439
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1440
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1441
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1442
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1443
+ # @return [Array<(TargetLiteraturePeopleResponse, Integer, Hash)>] TargetLiteraturePeopleResponse data, response status code and response headers
1444
+ def investigators_target_literature_people_with_http_info(id, opts = {})
1445
+ if @api_client.config.debugging
1446
+ @api_client.config.logger.debug 'Calling API: InvestigatorsApi.investigators_target_literature_people ...'
1447
+ end
1448
+ # verify the required parameter 'id' is set
1449
+ if @api_client.config.client_side_validation && id.nil?
1450
+ fail ArgumentError, "Missing the required parameter 'id' when calling InvestigatorsApi.investigators_target_literature_people"
1451
+ end
1452
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1453
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling InvestigatorsApi.investigators_target_literature_people, must be smaller than or equal to 500.'
1454
+ end
1455
+
1456
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1457
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling InvestigatorsApi.investigators_target_literature_people, must be greater than or equal to 1.'
1458
+ end
1459
+
1460
+ # resource path
1461
+ local_var_path = '/api/v1/investigators/{id}/target_literature_people'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1462
+
1463
+ # query parameters
1464
+ query_params = opts[:query_params] || {}
1465
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1466
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1467
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1468
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1469
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1470
+
1471
+ # header parameters
1472
+ header_params = opts[:header_params] || {}
1473
+ # HTTP header 'Accept' (if needed)
1474
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1475
+
1476
+ # form parameters
1477
+ form_params = opts[:form_params] || {}
1478
+
1479
+ # http body (model)
1480
+ post_body = opts[:debug_body]
1481
+
1482
+ # return_type
1483
+ return_type = opts[:debug_return_type] || 'TargetLiteraturePeopleResponse'
1484
+
1485
+ # auth_names
1486
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1487
+
1488
+ new_options = opts.merge(
1489
+ :operation => :"InvestigatorsApi.investigators_target_literature_people",
1490
+ :header_params => header_params,
1491
+ :query_params => query_params,
1492
+ :form_params => form_params,
1493
+ :body => post_body,
1494
+ :auth_names => auth_names,
1495
+ :return_type => return_type
1496
+ )
1497
+
1498
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1499
+ if @api_client.config.debugging
1500
+ @api_client.config.logger.debug "API called: InvestigatorsApi#investigators_target_literature_people\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1501
+ end
1502
+ return data, status_code, headers
1503
+ end
1504
+
1169
1505
  # Trial investigators
1170
1506
  # @param id [String]
1171
1507
  # @param [Hash] opts the optional parameters
@@ -2258,6 +2258,90 @@ module PharmaObservatory
2258
2258
  return data, status_code, headers
2259
2259
  end
2260
2260
 
2261
+ # Organization literature, authors on affiliated papers
2262
+ # @param id [String]
2263
+ # @param [Hash] opts the optional parameters
2264
+ # @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.
2265
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2266
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2267
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2268
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2269
+ # @return [OrgLiteraturePeopleResponse]
2270
+ def legal_entities_org_literature_people(id, opts = {})
2271
+ data, _status_code, _headers = legal_entities_org_literature_people_with_http_info(id, opts)
2272
+ data
2273
+ end
2274
+
2275
+ # Organization literature, authors on affiliated papers
2276
+ # @param id [String]
2277
+ # @param [Hash] opts the optional parameters
2278
+ # @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.
2279
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2280
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2281
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2282
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2283
+ # @return [Array<(OrgLiteraturePeopleResponse, Integer, Hash)>] OrgLiteraturePeopleResponse data, response status code and response headers
2284
+ def legal_entities_org_literature_people_with_http_info(id, opts = {})
2285
+ if @api_client.config.debugging
2286
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_org_literature_people ...'
2287
+ end
2288
+ # verify the required parameter 'id' is set
2289
+ if @api_client.config.client_side_validation && id.nil?
2290
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_org_literature_people"
2291
+ end
2292
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2293
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_literature_people, must be smaller than or equal to 500.'
2294
+ end
2295
+
2296
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2297
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_literature_people, must be greater than or equal to 1.'
2298
+ end
2299
+
2300
+ # resource path
2301
+ local_var_path = '/api/v1/legal_entities/{id}/org_literature_people'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2302
+
2303
+ # query parameters
2304
+ query_params = opts[:query_params] || {}
2305
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2306
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2307
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2308
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2309
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2310
+
2311
+ # header parameters
2312
+ header_params = opts[:header_params] || {}
2313
+ # HTTP header 'Accept' (if needed)
2314
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2315
+
2316
+ # form parameters
2317
+ form_params = opts[:form_params] || {}
2318
+
2319
+ # http body (model)
2320
+ post_body = opts[:debug_body]
2321
+
2322
+ # return_type
2323
+ return_type = opts[:debug_return_type] || 'OrgLiteraturePeopleResponse'
2324
+
2325
+ # auth_names
2326
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2327
+
2328
+ new_options = opts.merge(
2329
+ :operation => :"LegalEntitiesApi.legal_entities_org_literature_people",
2330
+ :header_params => header_params,
2331
+ :query_params => query_params,
2332
+ :form_params => form_params,
2333
+ :body => post_body,
2334
+ :auth_names => auth_names,
2335
+ :return_type => return_type
2336
+ )
2337
+
2338
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2339
+ if @api_client.config.debugging
2340
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_org_literature_people\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2341
+ end
2342
+ return data, status_code, headers
2343
+ end
2344
+
2261
2345
  # Organization relationships
2262
2346
  # @param id [String]
2263
2347
  # @param [Hash] opts the optional parameters