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.
- checksums.yaml +4 -4
- data/README.md +45 -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/BiomarkerLiteraturePeopleResponse.md +58 -0
- data/docs/BiomarkerLiteraturePeopleRow.md +36 -0
- data/docs/BiomarkersApi.md +240 -0
- data/docs/CompanyCompetitorsRow.md +1 -1
- data/docs/CompanyRareDiseaseDeclarationsRow.md +1 -1
- data/docs/ConditionLiteratureOrgsResponse.md +58 -0
- data/docs/ConditionLiteratureOrgsRow.md +34 -0
- data/docs/ConditionLiteraturePeopleResponse.md +58 -0
- data/docs/ConditionLiteraturePeopleRow.md +36 -0
- data/docs/ConditionLiteratureResponse.md +58 -0
- data/docs/ConditionLiteratureRow.md +36 -0
- data/docs/ConditionsApi.md +320 -0
- data/docs/ConditionsRecord.md +2 -0
- data/docs/InvestigatorsApi.md +320 -0
- data/docs/InvestmentGraphNodesRow.md +4 -2
- data/docs/LegalEntitiesApi.md +160 -0
- data/docs/OrgLiteraturePeopleResponse.md +58 -0
- data/docs/OrgLiteraturePeopleRow.md +36 -0
- data/docs/OrgLiteratureResponse.md +58 -0
- data/docs/OrgLiteratureRow.md +40 -0
- data/docs/PatientOrganisationResponse.md +58 -0
- data/docs/PatientOrganisationRow.md +74 -0
- data/docs/RareDiseaseOrganizationsRow.md +1 -1
- data/docs/RareDiseaseTrialSitesRow.md +5 -3
- data/docs/RareDiseasesApi.md +80 -0
- data/docs/RareDiseasesRecord.md +2 -0
- data/docs/TargetLiteratureOrgsResponse.md +58 -0
- data/docs/TargetLiteratureOrgsRow.md +34 -0
- data/docs/TargetLiteraturePeopleResponse.md +58 -0
- data/docs/TargetLiteraturePeopleRow.md +36 -0
- data/docs/TargetLiteratureResponse.md +58 -0
- data/docs/TargetLiteratureRow.md +36 -0
- data/docs/TargetsApi.md +240 -0
- data/lib/pharmaobservatory/api/biomarkers_api.rb +252 -0
- data/lib/pharmaobservatory/api/conditions_api.rb +336 -0
- data/lib/pharmaobservatory/api/investigators_api.rb +336 -0
- data/lib/pharmaobservatory/api/legal_entities_api.rb +168 -0
- data/lib/pharmaobservatory/api/rare_diseases_api.rb +84 -0
- data/lib/pharmaobservatory/api/targets_api.rb +252 -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/biomarker_literature_people_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_literature_people_row.rb +322 -0
- data/lib/pharmaobservatory/models/company_competitors_row.rb +1 -1
- data/lib/pharmaobservatory/models/company_rare_disease_declarations_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_people_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_literature_people_row.rb +322 -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/conditions_record.rb +13 -1
- data/lib/pharmaobservatory/models/investment_graph_nodes_row.rb +19 -6
- data/lib/pharmaobservatory/models/org_literature_people_response.rb +478 -0
- data/lib/pharmaobservatory/models/org_literature_people_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/patient_organisation_response.rb +478 -0
- data/lib/pharmaobservatory/models/patient_organisation_row.rb +545 -0
- data/lib/pharmaobservatory/models/rare_disease_organizations_row.rb +1 -1
- data/lib/pharmaobservatory/models/rare_disease_trial_sites_row.rb +15 -4
- data/lib/pharmaobservatory/models/rare_diseases_record.rb +13 -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_people_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_literature_people_row.rb +322 -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 +24 -0
- metadata +50 -2
|
@@ -746,6 +746,258 @@ module PharmaObservatory
|
|
|
746
746
|
return data, status_code, headers
|
|
747
747
|
end
|
|
748
748
|
|
|
749
|
+
# Target literature (MeSH-indexed, 2016 onward)
|
|
750
|
+
# @param id [String]
|
|
751
|
+
# @param [Hash] opts the optional parameters
|
|
752
|
+
# @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.
|
|
753
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
754
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
755
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
756
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
757
|
+
# @return [TargetLiteratureResponse]
|
|
758
|
+
def targets_target_literature(id, opts = {})
|
|
759
|
+
data, _status_code, _headers = targets_target_literature_with_http_info(id, opts)
|
|
760
|
+
data
|
|
761
|
+
end
|
|
762
|
+
|
|
763
|
+
# Target literature (MeSH-indexed, 2016 onward)
|
|
764
|
+
# @param id [String]
|
|
765
|
+
# @param [Hash] opts the optional parameters
|
|
766
|
+
# @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.
|
|
767
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
768
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
769
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
770
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
771
|
+
# @return [Array<(TargetLiteratureResponse, Integer, Hash)>] TargetLiteratureResponse data, response status code and response headers
|
|
772
|
+
def targets_target_literature_with_http_info(id, opts = {})
|
|
773
|
+
if @api_client.config.debugging
|
|
774
|
+
@api_client.config.logger.debug 'Calling API: TargetsApi.targets_target_literature ...'
|
|
775
|
+
end
|
|
776
|
+
# verify the required parameter 'id' is set
|
|
777
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
778
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TargetsApi.targets_target_literature"
|
|
779
|
+
end
|
|
780
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
781
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TargetsApi.targets_target_literature, must be smaller than or equal to 500.'
|
|
782
|
+
end
|
|
783
|
+
|
|
784
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
785
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TargetsApi.targets_target_literature, must be greater than or equal to 1.'
|
|
786
|
+
end
|
|
787
|
+
|
|
788
|
+
# resource path
|
|
789
|
+
local_var_path = '/api/v1/targets/{id}/target_literature'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
790
|
+
|
|
791
|
+
# query parameters
|
|
792
|
+
query_params = opts[:query_params] || {}
|
|
793
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
794
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
795
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
796
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
797
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
798
|
+
|
|
799
|
+
# header parameters
|
|
800
|
+
header_params = opts[:header_params] || {}
|
|
801
|
+
# HTTP header 'Accept' (if needed)
|
|
802
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
803
|
+
|
|
804
|
+
# form parameters
|
|
805
|
+
form_params = opts[:form_params] || {}
|
|
806
|
+
|
|
807
|
+
# http body (model)
|
|
808
|
+
post_body = opts[:debug_body]
|
|
809
|
+
|
|
810
|
+
# return_type
|
|
811
|
+
return_type = opts[:debug_return_type] || 'TargetLiteratureResponse'
|
|
812
|
+
|
|
813
|
+
# auth_names
|
|
814
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
815
|
+
|
|
816
|
+
new_options = opts.merge(
|
|
817
|
+
:operation => :"TargetsApi.targets_target_literature",
|
|
818
|
+
:header_params => header_params,
|
|
819
|
+
:query_params => query_params,
|
|
820
|
+
:form_params => form_params,
|
|
821
|
+
:body => post_body,
|
|
822
|
+
:auth_names => auth_names,
|
|
823
|
+
:return_type => return_type
|
|
824
|
+
)
|
|
825
|
+
|
|
826
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
827
|
+
if @api_client.config.debugging
|
|
828
|
+
@api_client.config.logger.debug "API called: TargetsApi#targets_target_literature\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
829
|
+
end
|
|
830
|
+
return data, status_code, headers
|
|
831
|
+
end
|
|
832
|
+
|
|
833
|
+
# Target literature, most active institutions
|
|
834
|
+
# @param id [String]
|
|
835
|
+
# @param [Hash] opts the optional parameters
|
|
836
|
+
# @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.
|
|
837
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
838
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
839
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
840
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
841
|
+
# @return [TargetLiteratureOrgsResponse]
|
|
842
|
+
def targets_target_literature_orgs(id, opts = {})
|
|
843
|
+
data, _status_code, _headers = targets_target_literature_orgs_with_http_info(id, opts)
|
|
844
|
+
data
|
|
845
|
+
end
|
|
846
|
+
|
|
847
|
+
# Target literature, most active institutions
|
|
848
|
+
# @param id [String]
|
|
849
|
+
# @param [Hash] opts the optional parameters
|
|
850
|
+
# @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.
|
|
851
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
852
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
853
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
854
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
855
|
+
# @return [Array<(TargetLiteratureOrgsResponse, Integer, Hash)>] TargetLiteratureOrgsResponse data, response status code and response headers
|
|
856
|
+
def targets_target_literature_orgs_with_http_info(id, opts = {})
|
|
857
|
+
if @api_client.config.debugging
|
|
858
|
+
@api_client.config.logger.debug 'Calling API: TargetsApi.targets_target_literature_orgs ...'
|
|
859
|
+
end
|
|
860
|
+
# verify the required parameter 'id' is set
|
|
861
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
862
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TargetsApi.targets_target_literature_orgs"
|
|
863
|
+
end
|
|
864
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
865
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TargetsApi.targets_target_literature_orgs, must be smaller than or equal to 500.'
|
|
866
|
+
end
|
|
867
|
+
|
|
868
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
869
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TargetsApi.targets_target_literature_orgs, must be greater than or equal to 1.'
|
|
870
|
+
end
|
|
871
|
+
|
|
872
|
+
# resource path
|
|
873
|
+
local_var_path = '/api/v1/targets/{id}/target_literature_orgs'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
874
|
+
|
|
875
|
+
# query parameters
|
|
876
|
+
query_params = opts[:query_params] || {}
|
|
877
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
878
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
879
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
880
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
881
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
882
|
+
|
|
883
|
+
# header parameters
|
|
884
|
+
header_params = opts[:header_params] || {}
|
|
885
|
+
# HTTP header 'Accept' (if needed)
|
|
886
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
887
|
+
|
|
888
|
+
# form parameters
|
|
889
|
+
form_params = opts[:form_params] || {}
|
|
890
|
+
|
|
891
|
+
# http body (model)
|
|
892
|
+
post_body = opts[:debug_body]
|
|
893
|
+
|
|
894
|
+
# return_type
|
|
895
|
+
return_type = opts[:debug_return_type] || 'TargetLiteratureOrgsResponse'
|
|
896
|
+
|
|
897
|
+
# auth_names
|
|
898
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
899
|
+
|
|
900
|
+
new_options = opts.merge(
|
|
901
|
+
:operation => :"TargetsApi.targets_target_literature_orgs",
|
|
902
|
+
:header_params => header_params,
|
|
903
|
+
:query_params => query_params,
|
|
904
|
+
:form_params => form_params,
|
|
905
|
+
:body => post_body,
|
|
906
|
+
:auth_names => auth_names,
|
|
907
|
+
:return_type => return_type
|
|
908
|
+
)
|
|
909
|
+
|
|
910
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
911
|
+
if @api_client.config.debugging
|
|
912
|
+
@api_client.config.logger.debug "API called: TargetsApi#targets_target_literature_orgs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
913
|
+
end
|
|
914
|
+
return data, status_code, headers
|
|
915
|
+
end
|
|
916
|
+
|
|
917
|
+
# Target literature, most active authors
|
|
918
|
+
# @param id [String]
|
|
919
|
+
# @param [Hash] opts the optional parameters
|
|
920
|
+
# @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.
|
|
921
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
922
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
923
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
924
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
925
|
+
# @return [TargetLiteraturePeopleResponse]
|
|
926
|
+
def targets_target_literature_people(id, opts = {})
|
|
927
|
+
data, _status_code, _headers = targets_target_literature_people_with_http_info(id, opts)
|
|
928
|
+
data
|
|
929
|
+
end
|
|
930
|
+
|
|
931
|
+
# Target literature, most active authors
|
|
932
|
+
# @param id [String]
|
|
933
|
+
# @param [Hash] opts the optional parameters
|
|
934
|
+
# @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.
|
|
935
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
936
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
937
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
938
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
939
|
+
# @return [Array<(TargetLiteraturePeopleResponse, Integer, Hash)>] TargetLiteraturePeopleResponse data, response status code and response headers
|
|
940
|
+
def targets_target_literature_people_with_http_info(id, opts = {})
|
|
941
|
+
if @api_client.config.debugging
|
|
942
|
+
@api_client.config.logger.debug 'Calling API: TargetsApi.targets_target_literature_people ...'
|
|
943
|
+
end
|
|
944
|
+
# verify the required parameter 'id' is set
|
|
945
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
946
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TargetsApi.targets_target_literature_people"
|
|
947
|
+
end
|
|
948
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
949
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TargetsApi.targets_target_literature_people, must be smaller than or equal to 500.'
|
|
950
|
+
end
|
|
951
|
+
|
|
952
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
953
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TargetsApi.targets_target_literature_people, must be greater than or equal to 1.'
|
|
954
|
+
end
|
|
955
|
+
|
|
956
|
+
# resource path
|
|
957
|
+
local_var_path = '/api/v1/targets/{id}/target_literature_people'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
958
|
+
|
|
959
|
+
# query parameters
|
|
960
|
+
query_params = opts[:query_params] || {}
|
|
961
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
962
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
963
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
964
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
965
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
966
|
+
|
|
967
|
+
# header parameters
|
|
968
|
+
header_params = opts[:header_params] || {}
|
|
969
|
+
# HTTP header 'Accept' (if needed)
|
|
970
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
971
|
+
|
|
972
|
+
# form parameters
|
|
973
|
+
form_params = opts[:form_params] || {}
|
|
974
|
+
|
|
975
|
+
# http body (model)
|
|
976
|
+
post_body = opts[:debug_body]
|
|
977
|
+
|
|
978
|
+
# return_type
|
|
979
|
+
return_type = opts[:debug_return_type] || 'TargetLiteraturePeopleResponse'
|
|
980
|
+
|
|
981
|
+
# auth_names
|
|
982
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
983
|
+
|
|
984
|
+
new_options = opts.merge(
|
|
985
|
+
:operation => :"TargetsApi.targets_target_literature_people",
|
|
986
|
+
:header_params => header_params,
|
|
987
|
+
:query_params => query_params,
|
|
988
|
+
:form_params => form_params,
|
|
989
|
+
:body => post_body,
|
|
990
|
+
:auth_names => auth_names,
|
|
991
|
+
:return_type => return_type
|
|
992
|
+
)
|
|
993
|
+
|
|
994
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
995
|
+
if @api_client.config.debugging
|
|
996
|
+
@api_client.config.logger.debug "API called: TargetsApi#targets_target_literature_people\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
997
|
+
end
|
|
998
|
+
return data, status_code, headers
|
|
999
|
+
end
|
|
1000
|
+
|
|
749
1001
|
# Target patent mentions
|
|
750
1002
|
# @param id [String]
|
|
751
1003
|
# @param [Hash] opts the optional parameters
|