pharmaobservatory 0.1.23 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +31 -4
- data/docs/BiomarkerLiteratureAllResponse.md +58 -0
- data/docs/BiomarkerLiteratureAllRow.md +36 -0
- data/docs/BiomarkerLiteratureOrgsResponse.md +58 -0
- data/docs/BiomarkerLiteratureOrgsRow.md +34 -0
- data/docs/BiomarkersApi.md +160 -0
- data/docs/CompanyCompetitorsRow.md +1 -1
- data/docs/ConditionLiteratureOrgsResponse.md +58 -0
- data/docs/ConditionLiteratureOrgsRow.md +34 -0
- data/docs/ConditionLiteratureResponse.md +58 -0
- data/docs/ConditionLiteratureRow.md +36 -0
- data/docs/ConditionSiteCoverageResponse.md +58 -0
- data/docs/ConditionSiteCoverageRow.md +24 -0
- data/docs/ConditionSiteYearsResponse.md +58 -0
- data/docs/ConditionSiteYearsRow.md +36 -0
- data/docs/ConditionsApi.md +320 -0
- data/docs/LegalEntitiesApi.md +80 -0
- data/docs/OrgLiteratureResponse.md +58 -0
- data/docs/OrgLiteratureRow.md +40 -0
- data/docs/RwdInstitutionsRow.md +3 -3
- data/docs/RwdNetworksRow.md +1 -1
- data/docs/TargetLiteratureOrgsResponse.md +58 -0
- data/docs/TargetLiteratureOrgsRow.md +34 -0
- data/docs/TargetLiteratureResponse.md +58 -0
- data/docs/TargetLiteratureRow.md +36 -0
- data/docs/TargetsApi.md +160 -0
- data/lib/pharmaobservatory/api/biomarkers_api.rb +168 -0
- data/lib/pharmaobservatory/api/conditions_api.rb +336 -0
- data/lib/pharmaobservatory/api/legal_entities_api.rb +84 -0
- data/lib/pharmaobservatory/api/targets_api.rb +168 -0
- data/lib/pharmaobservatory/models/biomarker_literature_all_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_literature_all_row.rb +322 -0
- data/lib/pharmaobservatory/models/biomarker_literature_orgs_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_literature_orgs_row.rb +311 -0
- data/lib/pharmaobservatory/models/company_competitors_row.rb +1 -1
- data/lib/pharmaobservatory/models/condition_literature_orgs_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_literature_orgs_row.rb +311 -0
- data/lib/pharmaobservatory/models/condition_literature_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_literature_row.rb +322 -0
- data/lib/pharmaobservatory/models/condition_site_coverage_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_site_coverage_row.rb +256 -0
- data/lib/pharmaobservatory/models/condition_site_years_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_site_years_row.rb +322 -0
- data/lib/pharmaobservatory/models/org_literature_response.rb +478 -0
- data/lib/pharmaobservatory/models/org_literature_row.rb +344 -0
- data/lib/pharmaobservatory/models/rwd_institutions_row.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_networks_row.rb +1 -1
- data/lib/pharmaobservatory/models/target_literature_orgs_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_literature_orgs_row.rb +311 -0
- data/lib/pharmaobservatory/models/target_literature_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_literature_row.rb +322 -0
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +18 -0
- metadata +38 -2
|
@@ -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=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=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=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=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=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=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=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=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
|
|
@@ -859,6 +1027,174 @@ module PharmaObservatory
|
|
|
859
1027
|
return data, status_code, headers
|
|
860
1028
|
end
|
|
861
1029
|
|
|
1030
|
+
# Condition site coverage
|
|
1031
|
+
# @param id [String]
|
|
1032
|
+
# @param [Hash] opts the optional parameters
|
|
1033
|
+
# @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.
|
|
1034
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1035
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1036
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1037
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1038
|
+
# @return [ConditionSiteCoverageResponse]
|
|
1039
|
+
def conditions_condition_site_coverage(id, opts = {})
|
|
1040
|
+
data, _status_code, _headers = conditions_condition_site_coverage_with_http_info(id, opts)
|
|
1041
|
+
data
|
|
1042
|
+
end
|
|
1043
|
+
|
|
1044
|
+
# Condition site coverage
|
|
1045
|
+
# @param id [String]
|
|
1046
|
+
# @param [Hash] opts the optional parameters
|
|
1047
|
+
# @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.
|
|
1048
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1049
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1050
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1051
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1052
|
+
# @return [Array<(ConditionSiteCoverageResponse, Integer, Hash)>] ConditionSiteCoverageResponse data, response status code and response headers
|
|
1053
|
+
def conditions_condition_site_coverage_with_http_info(id, opts = {})
|
|
1054
|
+
if @api_client.config.debugging
|
|
1055
|
+
@api_client.config.logger.debug 'Calling API: ConditionsApi.conditions_condition_site_coverage ...'
|
|
1056
|
+
end
|
|
1057
|
+
# verify the required parameter 'id' is set
|
|
1058
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1059
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ConditionsApi.conditions_condition_site_coverage"
|
|
1060
|
+
end
|
|
1061
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1062
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ConditionsApi.conditions_condition_site_coverage, must be smaller than or equal to 500.'
|
|
1063
|
+
end
|
|
1064
|
+
|
|
1065
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1066
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ConditionsApi.conditions_condition_site_coverage, must be greater than or equal to 1.'
|
|
1067
|
+
end
|
|
1068
|
+
|
|
1069
|
+
# resource path
|
|
1070
|
+
local_var_path = '/api/v1/conditions/{id}/condition_site_coverage'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1071
|
+
|
|
1072
|
+
# query parameters
|
|
1073
|
+
query_params = opts[:query_params] || {}
|
|
1074
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1075
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1076
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1077
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1078
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1079
|
+
|
|
1080
|
+
# header parameters
|
|
1081
|
+
header_params = opts[:header_params] || {}
|
|
1082
|
+
# HTTP header 'Accept' (if needed)
|
|
1083
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1084
|
+
|
|
1085
|
+
# form parameters
|
|
1086
|
+
form_params = opts[:form_params] || {}
|
|
1087
|
+
|
|
1088
|
+
# http body (model)
|
|
1089
|
+
post_body = opts[:debug_body]
|
|
1090
|
+
|
|
1091
|
+
# return_type
|
|
1092
|
+
return_type = opts[:debug_return_type] || 'ConditionSiteCoverageResponse'
|
|
1093
|
+
|
|
1094
|
+
# auth_names
|
|
1095
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1096
|
+
|
|
1097
|
+
new_options = opts.merge(
|
|
1098
|
+
:operation => :"ConditionsApi.conditions_condition_site_coverage",
|
|
1099
|
+
:header_params => header_params,
|
|
1100
|
+
:query_params => query_params,
|
|
1101
|
+
:form_params => form_params,
|
|
1102
|
+
:body => post_body,
|
|
1103
|
+
:auth_names => auth_names,
|
|
1104
|
+
:return_type => return_type
|
|
1105
|
+
)
|
|
1106
|
+
|
|
1107
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1108
|
+
if @api_client.config.debugging
|
|
1109
|
+
@api_client.config.logger.debug "API called: ConditionsApi#conditions_condition_site_coverage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1110
|
+
end
|
|
1111
|
+
return data, status_code, headers
|
|
1112
|
+
end
|
|
1113
|
+
|
|
1114
|
+
# Condition site years
|
|
1115
|
+
# @param id [String]
|
|
1116
|
+
# @param [Hash] opts the optional parameters
|
|
1117
|
+
# @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.
|
|
1118
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1119
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1120
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1121
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1122
|
+
# @return [ConditionSiteYearsResponse]
|
|
1123
|
+
def conditions_condition_site_years(id, opts = {})
|
|
1124
|
+
data, _status_code, _headers = conditions_condition_site_years_with_http_info(id, opts)
|
|
1125
|
+
data
|
|
1126
|
+
end
|
|
1127
|
+
|
|
1128
|
+
# Condition site years
|
|
1129
|
+
# @param id [String]
|
|
1130
|
+
# @param [Hash] opts the optional parameters
|
|
1131
|
+
# @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.
|
|
1132
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1133
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1134
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1135
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1136
|
+
# @return [Array<(ConditionSiteYearsResponse, Integer, Hash)>] ConditionSiteYearsResponse data, response status code and response headers
|
|
1137
|
+
def conditions_condition_site_years_with_http_info(id, opts = {})
|
|
1138
|
+
if @api_client.config.debugging
|
|
1139
|
+
@api_client.config.logger.debug 'Calling API: ConditionsApi.conditions_condition_site_years ...'
|
|
1140
|
+
end
|
|
1141
|
+
# verify the required parameter 'id' is set
|
|
1142
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1143
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ConditionsApi.conditions_condition_site_years"
|
|
1144
|
+
end
|
|
1145
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1146
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ConditionsApi.conditions_condition_site_years, must be smaller than or equal to 500.'
|
|
1147
|
+
end
|
|
1148
|
+
|
|
1149
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1150
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ConditionsApi.conditions_condition_site_years, must be greater than or equal to 1.'
|
|
1151
|
+
end
|
|
1152
|
+
|
|
1153
|
+
# resource path
|
|
1154
|
+
local_var_path = '/api/v1/conditions/{id}/condition_site_years'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1155
|
+
|
|
1156
|
+
# query parameters
|
|
1157
|
+
query_params = opts[:query_params] || {}
|
|
1158
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1159
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1160
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1161
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1162
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1163
|
+
|
|
1164
|
+
# header parameters
|
|
1165
|
+
header_params = opts[:header_params] || {}
|
|
1166
|
+
# HTTP header 'Accept' (if needed)
|
|
1167
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1168
|
+
|
|
1169
|
+
# form parameters
|
|
1170
|
+
form_params = opts[:form_params] || {}
|
|
1171
|
+
|
|
1172
|
+
# http body (model)
|
|
1173
|
+
post_body = opts[:debug_body]
|
|
1174
|
+
|
|
1175
|
+
# return_type
|
|
1176
|
+
return_type = opts[:debug_return_type] || 'ConditionSiteYearsResponse'
|
|
1177
|
+
|
|
1178
|
+
# auth_names
|
|
1179
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1180
|
+
|
|
1181
|
+
new_options = opts.merge(
|
|
1182
|
+
:operation => :"ConditionsApi.conditions_condition_site_years",
|
|
1183
|
+
:header_params => header_params,
|
|
1184
|
+
:query_params => query_params,
|
|
1185
|
+
:form_params => form_params,
|
|
1186
|
+
:body => post_body,
|
|
1187
|
+
:auth_names => auth_names,
|
|
1188
|
+
:return_type => return_type
|
|
1189
|
+
)
|
|
1190
|
+
|
|
1191
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1192
|
+
if @api_client.config.debugging
|
|
1193
|
+
@api_client.config.logger.debug "API called: ConditionsApi#conditions_condition_site_years\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1194
|
+
end
|
|
1195
|
+
return data, status_code, headers
|
|
1196
|
+
end
|
|
1197
|
+
|
|
862
1198
|
# Condition sites
|
|
863
1199
|
# @param id [String]
|
|
864
1200
|
# @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=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=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
|