pharmaobservatory 0.1.24 → 0.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -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/BiomarkersApi.md +160 -0
  8. data/docs/CompanyCompetitorsRow.md +1 -1
  9. data/docs/ConditionLiteratureOrgsResponse.md +58 -0
  10. data/docs/ConditionLiteratureOrgsRow.md +34 -0
  11. data/docs/ConditionLiteratureResponse.md +58 -0
  12. data/docs/ConditionLiteratureRow.md +36 -0
  13. data/docs/ConditionsApi.md +160 -0
  14. data/docs/LegalEntitiesApi.md +80 -0
  15. data/docs/OrgLiteratureResponse.md +58 -0
  16. data/docs/OrgLiteratureRow.md +40 -0
  17. data/docs/TargetLiteratureOrgsResponse.md +58 -0
  18. data/docs/TargetLiteratureOrgsRow.md +34 -0
  19. data/docs/TargetLiteratureResponse.md +58 -0
  20. data/docs/TargetLiteratureRow.md +36 -0
  21. data/docs/TargetsApi.md +160 -0
  22. data/lib/pharmaobservatory/api/biomarkers_api.rb +168 -0
  23. data/lib/pharmaobservatory/api/conditions_api.rb +168 -0
  24. data/lib/pharmaobservatory/api/legal_entities_api.rb +84 -0
  25. data/lib/pharmaobservatory/api/targets_api.rb +168 -0
  26. data/lib/pharmaobservatory/models/biomarker_literature_all_response.rb +478 -0
  27. data/lib/pharmaobservatory/models/biomarker_literature_all_row.rb +322 -0
  28. data/lib/pharmaobservatory/models/biomarker_literature_orgs_response.rb +478 -0
  29. data/lib/pharmaobservatory/models/biomarker_literature_orgs_row.rb +311 -0
  30. data/lib/pharmaobservatory/models/company_competitors_row.rb +1 -1
  31. data/lib/pharmaobservatory/models/condition_literature_orgs_response.rb +478 -0
  32. data/lib/pharmaobservatory/models/condition_literature_orgs_row.rb +311 -0
  33. data/lib/pharmaobservatory/models/condition_literature_response.rb +478 -0
  34. data/lib/pharmaobservatory/models/condition_literature_row.rb +322 -0
  35. data/lib/pharmaobservatory/models/org_literature_response.rb +478 -0
  36. data/lib/pharmaobservatory/models/org_literature_row.rb +344 -0
  37. data/lib/pharmaobservatory/models/target_literature_orgs_response.rb +478 -0
  38. data/lib/pharmaobservatory/models/target_literature_orgs_row.rb +311 -0
  39. data/lib/pharmaobservatory/models/target_literature_response.rb +478 -0
  40. data/lib/pharmaobservatory/models/target_literature_row.rb +322 -0
  41. data/lib/pharmaobservatory/version.rb +1 -1
  42. data/lib/pharmaobservatory.rb +14 -0
  43. metadata +30 -2
data/docs/TargetsApi.md CHANGED
@@ -13,6 +13,8 @@ All URIs are relative to *https://pharmaobservatory.com*
13
13
  | [**targets_target_drugs**](TargetsApi.md#targets_target_drugs) | **GET** /api/v1/targets/{id}/target_drugs | Drugs acting on a target |
14
14
  | [**targets_target_evidence**](TargetsApi.md#targets_target_evidence) | **GET** /api/v1/targets/{id}/target_evidence | Target evidence |
15
15
  | [**targets_target_investigators**](TargetsApi.md#targets_target_investigators) | **GET** /api/v1/targets/{id}/target_investigators | Investigators on a target's trials |
16
+ | [**targets_target_literature**](TargetsApi.md#targets_target_literature) | **GET** /api/v1/targets/{id}/target_literature | Target literature (MeSH-indexed, 2016 onward) |
17
+ | [**targets_target_literature_orgs**](TargetsApi.md#targets_target_literature_orgs) | **GET** /api/v1/targets/{id}/target_literature_orgs | Target literature, most active institutions |
16
18
  | [**targets_target_patent_mentions**](TargetsApi.md#targets_target_patent_mentions) | **GET** /api/v1/targets/{id}/target_patent_mentions | Target patent mentions |
17
19
  | [**targets_target_programs**](TargetsApi.md#targets_target_programs) | **GET** /api/v1/targets/{id}/target_programs | Target development programs |
18
20
  | [**targets_target_publications**](TargetsApi.md#targets_target_publications) | **GET** /api/v1/targets/{id}/target_publications | Target publications |
@@ -717,6 +719,164 @@ end
717
719
  - **Accept**: application/json
718
720
 
719
721
 
722
+ ## targets_target_literature
723
+
724
+ > <TargetLiteratureResponse> targets_target_literature(id, opts)
725
+
726
+ Target literature (MeSH-indexed, 2016 onward)
727
+
728
+ ### Examples
729
+
730
+ ```ruby
731
+ require 'time'
732
+ require 'pharmaobservatory'
733
+ # setup authorization
734
+ PharmaObservatory.configure do |config|
735
+ # Configure Bearer authorization (JWT): ApiBearerJwt
736
+ config.access_token = 'YOUR_BEARER_TOKEN'
737
+ end
738
+
739
+ api_instance = PharmaObservatory::TargetsApi.new
740
+ id = 'ENSG00000171759' # String |
741
+ opts = {
742
+ 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.
743
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
744
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
745
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
746
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
747
+ }
748
+
749
+ begin
750
+ # Target literature (MeSH-indexed, 2016 onward)
751
+ result = api_instance.targets_target_literature(id, opts)
752
+ p result
753
+ rescue PharmaObservatory::ApiError => e
754
+ puts "Error when calling TargetsApi->targets_target_literature: #{e}"
755
+ end
756
+ ```
757
+
758
+ #### Using the targets_target_literature_with_http_info variant
759
+
760
+ This returns an Array which contains the response data, status code and headers.
761
+
762
+ > <Array(<TargetLiteratureResponse>, Integer, Hash)> targets_target_literature_with_http_info(id, opts)
763
+
764
+ ```ruby
765
+ begin
766
+ # Target literature (MeSH-indexed, 2016 onward)
767
+ data, status_code, headers = api_instance.targets_target_literature_with_http_info(id, opts)
768
+ p status_code # => 2xx
769
+ p headers # => { ... }
770
+ p data # => <TargetLiteratureResponse>
771
+ rescue PharmaObservatory::ApiError => e
772
+ puts "Error when calling TargetsApi->targets_target_literature_with_http_info: #{e}"
773
+ end
774
+ ```
775
+
776
+ ### Parameters
777
+
778
+ | Name | Type | Description | Notes |
779
+ | ---- | ---- | ----------- | ----- |
780
+ | **id** | **String** | | |
781
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
782
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
783
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
784
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
785
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
786
+
787
+ ### Return type
788
+
789
+ [**TargetLiteratureResponse**](TargetLiteratureResponse.md)
790
+
791
+ ### Authorization
792
+
793
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
794
+
795
+ ### HTTP request headers
796
+
797
+ - **Content-Type**: Not defined
798
+ - **Accept**: application/json
799
+
800
+
801
+ ## targets_target_literature_orgs
802
+
803
+ > <TargetLiteratureOrgsResponse> targets_target_literature_orgs(id, opts)
804
+
805
+ Target literature, most active institutions
806
+
807
+ ### Examples
808
+
809
+ ```ruby
810
+ require 'time'
811
+ require 'pharmaobservatory'
812
+ # setup authorization
813
+ PharmaObservatory.configure do |config|
814
+ # Configure Bearer authorization (JWT): ApiBearerJwt
815
+ config.access_token = 'YOUR_BEARER_TOKEN'
816
+ end
817
+
818
+ api_instance = PharmaObservatory::TargetsApi.new
819
+ id = 'ENSG00000171759' # String |
820
+ opts = {
821
+ 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.
822
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
823
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
824
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
825
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
826
+ }
827
+
828
+ begin
829
+ # Target literature, most active institutions
830
+ result = api_instance.targets_target_literature_orgs(id, opts)
831
+ p result
832
+ rescue PharmaObservatory::ApiError => e
833
+ puts "Error when calling TargetsApi->targets_target_literature_orgs: #{e}"
834
+ end
835
+ ```
836
+
837
+ #### Using the targets_target_literature_orgs_with_http_info variant
838
+
839
+ This returns an Array which contains the response data, status code and headers.
840
+
841
+ > <Array(<TargetLiteratureOrgsResponse>, Integer, Hash)> targets_target_literature_orgs_with_http_info(id, opts)
842
+
843
+ ```ruby
844
+ begin
845
+ # Target literature, most active institutions
846
+ data, status_code, headers = api_instance.targets_target_literature_orgs_with_http_info(id, opts)
847
+ p status_code # => 2xx
848
+ p headers # => { ... }
849
+ p data # => <TargetLiteratureOrgsResponse>
850
+ rescue PharmaObservatory::ApiError => e
851
+ puts "Error when calling TargetsApi->targets_target_literature_orgs_with_http_info: #{e}"
852
+ end
853
+ ```
854
+
855
+ ### Parameters
856
+
857
+ | Name | Type | Description | Notes |
858
+ | ---- | ---- | ----------- | ----- |
859
+ | **id** | **String** | | |
860
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
861
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
862
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
863
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
864
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
865
+
866
+ ### Return type
867
+
868
+ [**TargetLiteratureOrgsResponse**](TargetLiteratureOrgsResponse.md)
869
+
870
+ ### Authorization
871
+
872
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
873
+
874
+ ### HTTP request headers
875
+
876
+ - **Content-Type**: Not defined
877
+ - **Accept**: application/json
878
+
879
+
720
880
  ## targets_target_patent_mentions
721
881
 
722
882
  > <TargetPatentMentionsResponse> targets_target_patent_mentions(id, opts)
@@ -775,6 +775,174 @@ module PharmaObservatory
775
775
  return data, status_code, headers
776
776
  end
777
777
 
778
+ # Biomarker literature, all MeSH-indexed papers (2016 onward)
779
+ # @param id [String]
780
+ # @param [Hash] opts the optional parameters
781
+ # @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.
782
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
783
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
784
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
785
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
786
+ # @return [BiomarkerLiteratureAllResponse]
787
+ def biomarkers_biomarker_literature_all(id, opts = {})
788
+ data, _status_code, _headers = biomarkers_biomarker_literature_all_with_http_info(id, opts)
789
+ data
790
+ end
791
+
792
+ # Biomarker literature, all MeSH-indexed papers (2016 onward)
793
+ # @param id [String]
794
+ # @param [Hash] opts the optional parameters
795
+ # @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.
796
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
797
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
798
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
799
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
800
+ # @return [Array<(BiomarkerLiteratureAllResponse, Integer, Hash)>] BiomarkerLiteratureAllResponse data, response status code and response headers
801
+ def biomarkers_biomarker_literature_all_with_http_info(id, opts = {})
802
+ if @api_client.config.debugging
803
+ @api_client.config.logger.debug 'Calling API: BiomarkersApi.biomarkers_biomarker_literature_all ...'
804
+ end
805
+ # verify the required parameter 'id' is set
806
+ if @api_client.config.client_side_validation && id.nil?
807
+ fail ArgumentError, "Missing the required parameter 'id' when calling BiomarkersApi.biomarkers_biomarker_literature_all"
808
+ end
809
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
810
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BiomarkersApi.biomarkers_biomarker_literature_all, must be smaller than or equal to 500.'
811
+ end
812
+
813
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
814
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BiomarkersApi.biomarkers_biomarker_literature_all, must be greater than or equal to 1.'
815
+ end
816
+
817
+ # resource path
818
+ local_var_path = '/api/v1/biomarkers/{id}/biomarker_literature_all'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
819
+
820
+ # query parameters
821
+ query_params = opts[:query_params] || {}
822
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
823
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
824
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
825
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
826
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
827
+
828
+ # header parameters
829
+ header_params = opts[:header_params] || {}
830
+ # HTTP header 'Accept' (if needed)
831
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
832
+
833
+ # form parameters
834
+ form_params = opts[:form_params] || {}
835
+
836
+ # http body (model)
837
+ post_body = opts[:debug_body]
838
+
839
+ # return_type
840
+ return_type = opts[:debug_return_type] || 'BiomarkerLiteratureAllResponse'
841
+
842
+ # auth_names
843
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
844
+
845
+ new_options = opts.merge(
846
+ :operation => :"BiomarkersApi.biomarkers_biomarker_literature_all",
847
+ :header_params => header_params,
848
+ :query_params => query_params,
849
+ :form_params => form_params,
850
+ :body => post_body,
851
+ :auth_names => auth_names,
852
+ :return_type => return_type
853
+ )
854
+
855
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
856
+ if @api_client.config.debugging
857
+ @api_client.config.logger.debug "API called: BiomarkersApi#biomarkers_biomarker_literature_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
858
+ end
859
+ return data, status_code, headers
860
+ end
861
+
862
+ # Biomarker literature, most active institutions
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 [BiomarkerLiteratureOrgsResponse]
871
+ def biomarkers_biomarker_literature_orgs(id, opts = {})
872
+ data, _status_code, _headers = biomarkers_biomarker_literature_orgs_with_http_info(id, opts)
873
+ data
874
+ end
875
+
876
+ # Biomarker literature, most active institutions
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<(BiomarkerLiteratureOrgsResponse, Integer, Hash)>] BiomarkerLiteratureOrgsResponse data, response status code and response headers
885
+ def biomarkers_biomarker_literature_orgs_with_http_info(id, opts = {})
886
+ if @api_client.config.debugging
887
+ @api_client.config.logger.debug 'Calling API: BiomarkersApi.biomarkers_biomarker_literature_orgs ...'
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 BiomarkersApi.biomarkers_biomarker_literature_orgs"
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 BiomarkersApi.biomarkers_biomarker_literature_orgs, 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 BiomarkersApi.biomarkers_biomarker_literature_orgs, must be greater than or equal to 1.'
899
+ end
900
+
901
+ # resource path
902
+ local_var_path = '/api/v1/biomarkers/{id}/biomarker_literature_orgs'.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] || 'BiomarkerLiteratureOrgsResponse'
925
+
926
+ # auth_names
927
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
928
+
929
+ new_options = opts.merge(
930
+ :operation => :"BiomarkersApi.biomarkers_biomarker_literature_orgs",
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: BiomarkersApi#biomarkers_biomarker_literature_orgs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
942
+ end
943
+ return data, status_code, headers
944
+ end
945
+
778
946
  # Companies publishing on a biomarker
779
947
  # @param id [String]
780
948
  # @param [Hash] opts the optional parameters
@@ -523,6 +523,174 @@ module PharmaObservatory
523
523
  return data, status_code, headers
524
524
  end
525
525
 
526
+ # Condition literature (MeSH-indexed, 2016 onward)
527
+ # @param id [String]
528
+ # @param [Hash] opts the optional parameters
529
+ # @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.
530
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
531
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
532
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
533
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
534
+ # @return [ConditionLiteratureResponse]
535
+ def conditions_condition_literature(id, opts = {})
536
+ data, _status_code, _headers = conditions_condition_literature_with_http_info(id, opts)
537
+ data
538
+ end
539
+
540
+ # Condition literature (MeSH-indexed, 2016 onward)
541
+ # @param id [String]
542
+ # @param [Hash] opts the optional parameters
543
+ # @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.
544
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
545
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
546
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
547
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
548
+ # @return [Array<(ConditionLiteratureResponse, Integer, Hash)>] ConditionLiteratureResponse data, response status code and response headers
549
+ def conditions_condition_literature_with_http_info(id, opts = {})
550
+ if @api_client.config.debugging
551
+ @api_client.config.logger.debug 'Calling API: ConditionsApi.conditions_condition_literature ...'
552
+ end
553
+ # verify the required parameter 'id' is set
554
+ if @api_client.config.client_side_validation && id.nil?
555
+ fail ArgumentError, "Missing the required parameter 'id' when calling ConditionsApi.conditions_condition_literature"
556
+ end
557
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
558
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ConditionsApi.conditions_condition_literature, must be smaller than or equal to 500.'
559
+ end
560
+
561
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
562
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ConditionsApi.conditions_condition_literature, must be greater than or equal to 1.'
563
+ end
564
+
565
+ # resource path
566
+ local_var_path = '/api/v1/conditions/{id}/condition_literature'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
567
+
568
+ # query parameters
569
+ query_params = opts[:query_params] || {}
570
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
571
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
572
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
573
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
574
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
575
+
576
+ # header parameters
577
+ header_params = opts[:header_params] || {}
578
+ # HTTP header 'Accept' (if needed)
579
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
580
+
581
+ # form parameters
582
+ form_params = opts[:form_params] || {}
583
+
584
+ # http body (model)
585
+ post_body = opts[:debug_body]
586
+
587
+ # return_type
588
+ return_type = opts[:debug_return_type] || 'ConditionLiteratureResponse'
589
+
590
+ # auth_names
591
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
592
+
593
+ new_options = opts.merge(
594
+ :operation => :"ConditionsApi.conditions_condition_literature",
595
+ :header_params => header_params,
596
+ :query_params => query_params,
597
+ :form_params => form_params,
598
+ :body => post_body,
599
+ :auth_names => auth_names,
600
+ :return_type => return_type
601
+ )
602
+
603
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
604
+ if @api_client.config.debugging
605
+ @api_client.config.logger.debug "API called: ConditionsApi#conditions_condition_literature\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
606
+ end
607
+ return data, status_code, headers
608
+ end
609
+
610
+ # Condition literature, most active institutions
611
+ # @param id [String]
612
+ # @param [Hash] opts the optional parameters
613
+ # @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.
614
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
615
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
616
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
617
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
618
+ # @return [ConditionLiteratureOrgsResponse]
619
+ def conditions_condition_literature_orgs(id, opts = {})
620
+ data, _status_code, _headers = conditions_condition_literature_orgs_with_http_info(id, opts)
621
+ data
622
+ end
623
+
624
+ # Condition literature, most active institutions
625
+ # @param id [String]
626
+ # @param [Hash] opts the optional parameters
627
+ # @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.
628
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
629
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
630
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
631
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
632
+ # @return [Array<(ConditionLiteratureOrgsResponse, Integer, Hash)>] ConditionLiteratureOrgsResponse data, response status code and response headers
633
+ def conditions_condition_literature_orgs_with_http_info(id, opts = {})
634
+ if @api_client.config.debugging
635
+ @api_client.config.logger.debug 'Calling API: ConditionsApi.conditions_condition_literature_orgs ...'
636
+ end
637
+ # verify the required parameter 'id' is set
638
+ if @api_client.config.client_side_validation && id.nil?
639
+ fail ArgumentError, "Missing the required parameter 'id' when calling ConditionsApi.conditions_condition_literature_orgs"
640
+ end
641
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
642
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ConditionsApi.conditions_condition_literature_orgs, must be smaller than or equal to 500.'
643
+ end
644
+
645
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
646
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ConditionsApi.conditions_condition_literature_orgs, must be greater than or equal to 1.'
647
+ end
648
+
649
+ # resource path
650
+ local_var_path = '/api/v1/conditions/{id}/condition_literature_orgs'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
651
+
652
+ # query parameters
653
+ query_params = opts[:query_params] || {}
654
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
655
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
656
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
657
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
658
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
659
+
660
+ # header parameters
661
+ header_params = opts[:header_params] || {}
662
+ # HTTP header 'Accept' (if needed)
663
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
664
+
665
+ # form parameters
666
+ form_params = opts[:form_params] || {}
667
+
668
+ # http body (model)
669
+ post_body = opts[:debug_body]
670
+
671
+ # return_type
672
+ return_type = opts[:debug_return_type] || 'ConditionLiteratureOrgsResponse'
673
+
674
+ # auth_names
675
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
676
+
677
+ new_options = opts.merge(
678
+ :operation => :"ConditionsApi.conditions_condition_literature_orgs",
679
+ :header_params => header_params,
680
+ :query_params => query_params,
681
+ :form_params => form_params,
682
+ :body => post_body,
683
+ :auth_names => auth_names,
684
+ :return_type => return_type
685
+ )
686
+
687
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
688
+ if @api_client.config.debugging
689
+ @api_client.config.logger.debug "API called: ConditionsApi#conditions_condition_literature_orgs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
690
+ end
691
+ return data, status_code, headers
692
+ end
693
+
526
694
  # Condition prevalence
527
695
  # @param id [String]
528
696
  # @param [Hash] opts the optional parameters
@@ -2174,6 +2174,90 @@ 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
+
2177
2261
  # Organization relationships
2178
2262
  # @param id [String]
2179
2263
  # @param [Hash] opts the optional parameters