pharmaobservatory 0.1.24 → 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 (79) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +45 -4
  3. data/docs/BiomarkerLiteratureAllResponse.md +58 -0
  4. data/docs/BiomarkerLiteratureAllRow.md +36 -0
  5. data/docs/BiomarkerLiteratureOrgsResponse.md +58 -0
  6. data/docs/BiomarkerLiteratureOrgsRow.md +34 -0
  7. data/docs/BiomarkerLiteraturePeopleResponse.md +58 -0
  8. data/docs/BiomarkerLiteraturePeopleRow.md +36 -0
  9. data/docs/BiomarkersApi.md +240 -0
  10. data/docs/CompanyCompetitorsRow.md +1 -1
  11. data/docs/CompanyRareDiseaseDeclarationsRow.md +1 -1
  12. data/docs/ConditionLiteratureOrgsResponse.md +58 -0
  13. data/docs/ConditionLiteratureOrgsRow.md +34 -0
  14. data/docs/ConditionLiteraturePeopleResponse.md +58 -0
  15. data/docs/ConditionLiteraturePeopleRow.md +36 -0
  16. data/docs/ConditionLiteratureResponse.md +58 -0
  17. data/docs/ConditionLiteratureRow.md +36 -0
  18. data/docs/ConditionsApi.md +320 -0
  19. data/docs/ConditionsRecord.md +2 -0
  20. data/docs/InvestigatorsApi.md +320 -0
  21. data/docs/InvestmentGraphNodesRow.md +4 -2
  22. data/docs/LegalEntitiesApi.md +160 -0
  23. data/docs/OrgLiteraturePeopleResponse.md +58 -0
  24. data/docs/OrgLiteraturePeopleRow.md +36 -0
  25. data/docs/OrgLiteratureResponse.md +58 -0
  26. data/docs/OrgLiteratureRow.md +40 -0
  27. data/docs/PatientOrganisationResponse.md +58 -0
  28. data/docs/PatientOrganisationRow.md +74 -0
  29. data/docs/RareDiseaseOrganizationsRow.md +1 -1
  30. data/docs/RareDiseaseTrialSitesRow.md +5 -3
  31. data/docs/RareDiseasesApi.md +80 -0
  32. data/docs/RareDiseasesRecord.md +2 -0
  33. data/docs/TargetLiteratureOrgsResponse.md +58 -0
  34. data/docs/TargetLiteratureOrgsRow.md +34 -0
  35. data/docs/TargetLiteraturePeopleResponse.md +58 -0
  36. data/docs/TargetLiteraturePeopleRow.md +36 -0
  37. data/docs/TargetLiteratureResponse.md +58 -0
  38. data/docs/TargetLiteratureRow.md +36 -0
  39. data/docs/TargetsApi.md +240 -0
  40. data/lib/pharmaobservatory/api/biomarkers_api.rb +252 -0
  41. data/lib/pharmaobservatory/api/conditions_api.rb +336 -0
  42. data/lib/pharmaobservatory/api/investigators_api.rb +336 -0
  43. data/lib/pharmaobservatory/api/legal_entities_api.rb +168 -0
  44. data/lib/pharmaobservatory/api/rare_diseases_api.rb +84 -0
  45. data/lib/pharmaobservatory/api/targets_api.rb +252 -0
  46. data/lib/pharmaobservatory/models/biomarker_literature_all_response.rb +478 -0
  47. data/lib/pharmaobservatory/models/biomarker_literature_all_row.rb +322 -0
  48. data/lib/pharmaobservatory/models/biomarker_literature_orgs_response.rb +478 -0
  49. data/lib/pharmaobservatory/models/biomarker_literature_orgs_row.rb +311 -0
  50. data/lib/pharmaobservatory/models/biomarker_literature_people_response.rb +478 -0
  51. data/lib/pharmaobservatory/models/biomarker_literature_people_row.rb +322 -0
  52. data/lib/pharmaobservatory/models/company_competitors_row.rb +1 -1
  53. data/lib/pharmaobservatory/models/company_rare_disease_declarations_row.rb +1 -1
  54. data/lib/pharmaobservatory/models/condition_literature_orgs_response.rb +478 -0
  55. data/lib/pharmaobservatory/models/condition_literature_orgs_row.rb +311 -0
  56. data/lib/pharmaobservatory/models/condition_literature_people_response.rb +478 -0
  57. data/lib/pharmaobservatory/models/condition_literature_people_row.rb +322 -0
  58. data/lib/pharmaobservatory/models/condition_literature_response.rb +478 -0
  59. data/lib/pharmaobservatory/models/condition_literature_row.rb +322 -0
  60. data/lib/pharmaobservatory/models/conditions_record.rb +13 -1
  61. data/lib/pharmaobservatory/models/investment_graph_nodes_row.rb +19 -6
  62. data/lib/pharmaobservatory/models/org_literature_people_response.rb +478 -0
  63. data/lib/pharmaobservatory/models/org_literature_people_row.rb +322 -0
  64. data/lib/pharmaobservatory/models/org_literature_response.rb +478 -0
  65. data/lib/pharmaobservatory/models/org_literature_row.rb +344 -0
  66. data/lib/pharmaobservatory/models/patient_organisation_response.rb +478 -0
  67. data/lib/pharmaobservatory/models/patient_organisation_row.rb +545 -0
  68. data/lib/pharmaobservatory/models/rare_disease_organizations_row.rb +1 -1
  69. data/lib/pharmaobservatory/models/rare_disease_trial_sites_row.rb +15 -4
  70. data/lib/pharmaobservatory/models/rare_diseases_record.rb +13 -1
  71. data/lib/pharmaobservatory/models/target_literature_orgs_response.rb +478 -0
  72. data/lib/pharmaobservatory/models/target_literature_orgs_row.rb +311 -0
  73. data/lib/pharmaobservatory/models/target_literature_people_response.rb +478 -0
  74. data/lib/pharmaobservatory/models/target_literature_people_row.rb +322 -0
  75. data/lib/pharmaobservatory/models/target_literature_response.rb +478 -0
  76. data/lib/pharmaobservatory/models/target_literature_row.rb +322 -0
  77. data/lib/pharmaobservatory/version.rb +1 -1
  78. data/lib/pharmaobservatory.rb +24 -0
  79. metadata +50 -2
@@ -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=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=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
@@ -2174,6 +2174,174 @@ module PharmaObservatory
2174
2174
  return data, status_code, headers
2175
2175
  end
2176
2176
 
2177
+ # Organization literature by affiliation (MeSH-indexed, 2016 onward)
2178
+ # @param id [String]
2179
+ # @param [Hash] opts the optional parameters
2180
+ # @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.
2181
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2182
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2183
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2184
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2185
+ # @return [OrgLiteratureResponse]
2186
+ def legal_entities_org_literature(id, opts = {})
2187
+ data, _status_code, _headers = legal_entities_org_literature_with_http_info(id, opts)
2188
+ data
2189
+ end
2190
+
2191
+ # Organization literature by affiliation (MeSH-indexed, 2016 onward)
2192
+ # @param id [String]
2193
+ # @param [Hash] opts the optional parameters
2194
+ # @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.
2195
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2196
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2197
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2198
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2199
+ # @return [Array<(OrgLiteratureResponse, Integer, Hash)>] OrgLiteratureResponse data, response status code and response headers
2200
+ def legal_entities_org_literature_with_http_info(id, opts = {})
2201
+ if @api_client.config.debugging
2202
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_org_literature ...'
2203
+ end
2204
+ # verify the required parameter 'id' is set
2205
+ if @api_client.config.client_side_validation && id.nil?
2206
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_org_literature"
2207
+ end
2208
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2209
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_literature, must be smaller than or equal to 500.'
2210
+ end
2211
+
2212
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2213
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_literature, must be greater than or equal to 1.'
2214
+ end
2215
+
2216
+ # resource path
2217
+ local_var_path = '/api/v1/legal_entities/{id}/org_literature'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2218
+
2219
+ # query parameters
2220
+ query_params = opts[:query_params] || {}
2221
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2222
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2223
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2224
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2225
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2226
+
2227
+ # header parameters
2228
+ header_params = opts[:header_params] || {}
2229
+ # HTTP header 'Accept' (if needed)
2230
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2231
+
2232
+ # form parameters
2233
+ form_params = opts[:form_params] || {}
2234
+
2235
+ # http body (model)
2236
+ post_body = opts[:debug_body]
2237
+
2238
+ # return_type
2239
+ return_type = opts[:debug_return_type] || 'OrgLiteratureResponse'
2240
+
2241
+ # auth_names
2242
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2243
+
2244
+ new_options = opts.merge(
2245
+ :operation => :"LegalEntitiesApi.legal_entities_org_literature",
2246
+ :header_params => header_params,
2247
+ :query_params => query_params,
2248
+ :form_params => form_params,
2249
+ :body => post_body,
2250
+ :auth_names => auth_names,
2251
+ :return_type => return_type
2252
+ )
2253
+
2254
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2255
+ if @api_client.config.debugging
2256
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_org_literature\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2257
+ end
2258
+ return data, status_code, headers
2259
+ end
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
+
2177
2345
  # Organization relationships
2178
2346
  # @param id [String]
2179
2347
  # @param [Hash] opts the optional parameters
@@ -158,6 +158,90 @@ module PharmaObservatory
158
158
  return data, status_code, headers
159
159
  end
160
160
 
161
+ # Patient organisations
162
+ # @param id [Integer]
163
+ # @param [Hash] opts the optional parameters
164
+ # @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.
165
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
166
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
167
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
168
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
169
+ # @return [PatientOrganisationResponse]
170
+ def rare_diseases_patient_organisation(id, opts = {})
171
+ data, _status_code, _headers = rare_diseases_patient_organisation_with_http_info(id, opts)
172
+ data
173
+ end
174
+
175
+ # Patient organisations
176
+ # @param id [Integer]
177
+ # @param [Hash] opts the optional parameters
178
+ # @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.
179
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
180
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
181
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
182
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
183
+ # @return [Array<(PatientOrganisationResponse, Integer, Hash)>] PatientOrganisationResponse data, response status code and response headers
184
+ def rare_diseases_patient_organisation_with_http_info(id, opts = {})
185
+ if @api_client.config.debugging
186
+ @api_client.config.logger.debug 'Calling API: RareDiseasesApi.rare_diseases_patient_organisation ...'
187
+ end
188
+ # verify the required parameter 'id' is set
189
+ if @api_client.config.client_side_validation && id.nil?
190
+ fail ArgumentError, "Missing the required parameter 'id' when calling RareDiseasesApi.rare_diseases_patient_organisation"
191
+ end
192
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
193
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_patient_organisation, must be smaller than or equal to 500.'
194
+ end
195
+
196
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
197
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_patient_organisation, must be greater than or equal to 1.'
198
+ end
199
+
200
+ # resource path
201
+ local_var_path = '/api/v1/rare_diseases/{id}/patient_organisation'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
202
+
203
+ # query parameters
204
+ query_params = opts[:query_params] || {}
205
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
206
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
207
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
208
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
209
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
210
+
211
+ # header parameters
212
+ header_params = opts[:header_params] || {}
213
+ # HTTP header 'Accept' (if needed)
214
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
215
+
216
+ # form parameters
217
+ form_params = opts[:form_params] || {}
218
+
219
+ # http body (model)
220
+ post_body = opts[:debug_body]
221
+
222
+ # return_type
223
+ return_type = opts[:debug_return_type] || 'PatientOrganisationResponse'
224
+
225
+ # auth_names
226
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
227
+
228
+ new_options = opts.merge(
229
+ :operation => :"RareDiseasesApi.rare_diseases_patient_organisation",
230
+ :header_params => header_params,
231
+ :query_params => query_params,
232
+ :form_params => form_params,
233
+ :body => post_body,
234
+ :auth_names => auth_names,
235
+ :return_type => return_type
236
+ )
237
+
238
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
239
+ if @api_client.config.debugging
240
+ @api_client.config.logger.debug "API called: RareDiseasesApi#rare_diseases_patient_organisation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
241
+ end
242
+ return data, status_code, headers
243
+ end
244
+
161
245
  # Rare disease genes
162
246
  # @param id [Integer]
163
247
  # @param [Hash] opts the optional parameters