pharmaobservatory 0.1.22 → 0.1.23

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 (47) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -4
  3. data/docs/InvestigatorsApi.md +80 -0
  4. data/docs/ProviderRwdDeliveryRow.md +2 -0
  5. data/docs/ProviderRwdDeliveryStudyRow.md +2 -0
  6. data/docs/ProviderRwdFootprintRow.md +2 -0
  7. data/docs/RwdConductorsApi.md +160 -0
  8. data/docs/RwdSourcesRow.md +1 -1
  9. data/docs/RwdStudiesApi.md +80 -0
  10. data/docs/RwdUsNetworkMembershipsResponse.md +58 -0
  11. data/docs/RwdUsNetworkMembershipsRow.md +98 -0
  12. data/docs/RwdUsNetworkProjectsResponse.md +58 -0
  13. data/docs/RwdUsNetworkProjectsRow.md +80 -0
  14. data/docs/RwdUsNetworksApi.md +313 -0
  15. data/docs/RwdUsNetworksRecord.md +38 -0
  16. data/docs/RwdUsNetworksResponse.md +58 -0
  17. data/docs/RwdUsNetworksRow.md +60 -0
  18. data/docs/SupplierRwdDeclarationsResponse.md +58 -0
  19. data/docs/SupplierRwdDeclarationsRow.md +74 -0
  20. data/docs/SuppliersApi.md +160 -0
  21. data/docs/TrialPublicationsResponse.md +58 -0
  22. data/docs/TrialPublicationsRow.md +34 -0
  23. data/docs/TrialsApi.md +80 -0
  24. data/lib/pharmaobservatory/api/investigators_api.rb +84 -0
  25. data/lib/pharmaobservatory/api/rwd_conductors_api.rb +168 -0
  26. data/lib/pharmaobservatory/api/rwd_studies_api.rb +84 -0
  27. data/lib/pharmaobservatory/api/rwd_us_networks_api.rb +329 -0
  28. data/lib/pharmaobservatory/api/suppliers_api.rb +168 -0
  29. data/lib/pharmaobservatory/api/trials_api.rb +84 -0
  30. data/lib/pharmaobservatory/models/provider_rwd_delivery_row.rb +12 -1
  31. data/lib/pharmaobservatory/models/provider_rwd_delivery_study_row.rb +12 -1
  32. data/lib/pharmaobservatory/models/provider_rwd_footprint_row.rb +12 -1
  33. data/lib/pharmaobservatory/models/rwd_sources_row.rb +1 -1
  34. data/lib/pharmaobservatory/models/rwd_us_network_memberships_response.rb +478 -0
  35. data/lib/pharmaobservatory/models/rwd_us_network_memberships_row.rb +663 -0
  36. data/lib/pharmaobservatory/models/rwd_us_network_projects_response.rb +478 -0
  37. data/lib/pharmaobservatory/models/rwd_us_network_projects_row.rb +564 -0
  38. data/lib/pharmaobservatory/models/rwd_us_networks_record.rb +385 -0
  39. data/lib/pharmaobservatory/models/rwd_us_networks_response.rb +478 -0
  40. data/lib/pharmaobservatory/models/rwd_us_networks_row.rb +454 -0
  41. data/lib/pharmaobservatory/models/supplier_rwd_declarations_response.rb +478 -0
  42. data/lib/pharmaobservatory/models/supplier_rwd_declarations_row.rb +539 -0
  43. data/lib/pharmaobservatory/models/trial_publications_response.rb +478 -0
  44. data/lib/pharmaobservatory/models/trial_publications_row.rb +313 -0
  45. data/lib/pharmaobservatory/version.rb +1 -1
  46. data/lib/pharmaobservatory.rb +12 -0
  47. metadata +26 -2
@@ -0,0 +1,60 @@
1
+ # PharmaObservatory::RwdUsNetworksRow
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **network_key** | **String** | The network key, the entry key of the rwd_us_networks object type (n3c today). | [optional] |
8
+ | **network_source** | **String** | The source the network rows come from. | [optional] |
9
+ | **network_name** | **String** | The network's name. | [optional] |
10
+ | **network_operator** | **String** | The operating body. | [optional] |
11
+ | **member_total** | **Integer** | Institutions holding at least one published agreement, our count of the register. | [optional] |
12
+ | **members_with_dta** | **Integer** | Institutions holding a Data Transfer Agreement. | [optional] |
13
+ | **members_with_current_dta** | **Integer** | Institutions with a DTA row whose published term end is on or after the retrieval date. | [optional] |
14
+ | **members_with_dua** | **Integer** | Institutions holding a Data Use Agreement. | [optional] |
15
+ | **members_with_current_dua** | **Integer** | Institutions with a DUA row within its published term. | [optional] |
16
+ | **members_with_lhba** | **Integer** | Institutions holding an agreement published with the type code LHBA. | [optional] |
17
+ | **members_resolved_org** | **Integer** | Members resolved to an organization on the spine. | [optional] |
18
+ | **members_matched_rx** | **Integer** | Members matched to at least one RX provider, by an exact method visible in rwd_us_network_memberships. | [optional] |
19
+ | **published_dta_count** | **Integer** | N3C's own published count of DTAs, as N3C labels it. Differs from ours; not reconciled. | [optional] |
20
+ | **published_dua_count** | **Integer** | N3C's own published count of DUAs. Differs from ours; not reconciled. | [optional] |
21
+ | **published_institution_count** | **Integer** | N3C's own published count of institutions. Differs from ours; not reconciled. | [optional] |
22
+ | **published_project_count** | **Integer** | N3C's own published count of projects. Differs from ours; not reconciled. | [optional] |
23
+ | **as_of** | **Date** | The retrieval date of the agreement snapshot. | [optional] |
24
+ | **source_url** | **String** | The API endpoint the agreements came from. | [optional] |
25
+ | **agreements_url** | **String** | The public N3C dashboard. | [optional] |
26
+ | **signatories_page_url** | **String** | N3C's HTML signatories page, kept as a documented reconciliation and not ingested. | [optional] |
27
+ | **retrieved_at** | **Time** | When the snapshot was retrieved, in UTC. | [optional] |
28
+ | **attribution** | **String** | The credit line every surface carrying this data prints. | [optional] |
29
+
30
+ ## Example
31
+
32
+ ```ruby
33
+ require 'pharmaobservatory'
34
+
35
+ instance = PharmaObservatory::RwdUsNetworksRow.new(
36
+ network_key: null,
37
+ network_source: null,
38
+ network_name: null,
39
+ network_operator: null,
40
+ member_total: null,
41
+ members_with_dta: null,
42
+ members_with_current_dta: null,
43
+ members_with_dua: null,
44
+ members_with_current_dua: null,
45
+ members_with_lhba: null,
46
+ members_resolved_org: null,
47
+ members_matched_rx: null,
48
+ published_dta_count: null,
49
+ published_dua_count: null,
50
+ published_institution_count: null,
51
+ published_project_count: null,
52
+ as_of: null,
53
+ source_url: null,
54
+ agreements_url: null,
55
+ signatories_page_url: null,
56
+ retrieved_at: null,
57
+ attribution: null
58
+ )
59
+ ```
60
+
@@ -0,0 +1,58 @@
1
+ # PharmaObservatory::SupplierRwdDeclarationsResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **dataset** | **String** | | |
8
+ | **grain** | **String** | | [optional] |
9
+ | **object_type** | **String** | | [optional] |
10
+ | **id** | **String** | | [optional] |
11
+ | **scope** | [**AnimalWelfareAssurancesResponseScope**](AnimalWelfareAssurancesResponseScope.md) | | [optional] |
12
+ | **columns** | [**Array<DatasetColumn>**](DatasetColumn.md) | | |
13
+ | **rows** | [**Array<SupplierRwdDeclarationsRow>**](SupplierRwdDeclarationsRow.md) | | |
14
+ | **total** | **Integer** | The exact count of the filtered rows on an ungrouped read, carried by the cursor; null when grouped. | [optional] |
15
+ | **next_cursor** | **String** | | [optional] |
16
+ | **sort** | **Array<String>** | | [optional] |
17
+ | **filters** | **Array<Hash<String, Object>>** | | [optional] |
18
+ | **group_by** | **Array<String>** | | [optional] |
19
+ | **measures** | **Array<String>** | | [optional] |
20
+ | **attribution** | [**Array<DatasetAttribution>**](DatasetAttribution.md) | | [optional] |
21
+ | **source_credit** | **String** | | [optional] |
22
+ | **withheld_tiers** | **Array<String>** | | [optional] |
23
+ | **withheld_columns** | **Array<String>** | | [optional] |
24
+ | **freshness** | [**AnimalWelfareAssurancesResponseFreshness**](AnimalWelfareAssurancesResponseFreshness.md) | | [optional] |
25
+ | **build** | [**AnimalWelfareAssurancesResponseBuild**](AnimalWelfareAssurancesResponseBuild.md) | | [optional] |
26
+ | **build_state** | [**DatasetBuildState**](DatasetBuildState.md) | | [optional] |
27
+ | **restriction** | **Hash<String, Object>** | | [optional] |
28
+
29
+ ## Example
30
+
31
+ ```ruby
32
+ require 'pharmaobservatory'
33
+
34
+ instance = PharmaObservatory::SupplierRwdDeclarationsResponse.new(
35
+ dataset: null,
36
+ grain: null,
37
+ object_type: null,
38
+ id: null,
39
+ scope: null,
40
+ columns: null,
41
+ rows: null,
42
+ total: null,
43
+ next_cursor: null,
44
+ sort: null,
45
+ filters: null,
46
+ group_by: null,
47
+ measures: null,
48
+ attribution: null,
49
+ source_credit: null,
50
+ withheld_tiers: null,
51
+ withheld_columns: null,
52
+ freshness: null,
53
+ build: null,
54
+ build_state: null,
55
+ restriction: null
56
+ )
57
+ ```
58
+
@@ -0,0 +1,74 @@
1
+ # PharmaObservatory::SupplierRwdDeclarationsRow
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **provider_rwd_declared_source_id** | **String** | The fact id: a hash of the supplier uuid, the fact kind and the fact reference. | [optional] |
8
+ | **provider_id** | **String** | The supplier id: the Scientist.com provider id as text, the entry key of the suppliers object type. A supplier is not a company. | [optional] |
9
+ | **provider_uuid** | **String** | The Scientist.com public provider uuid, the join key to the RX marketplace. | [optional] |
10
+ | **provider_slug** | **String** | The supplier's marketplace slug. | [optional] |
11
+ | **provider_name** | **String** | The supplier's name. | [optional] |
12
+ | **role** | **String** | Always supplier_declared: the supplier said it, on the Scientist.com questionnaire. It is never a register role. | [optional] |
13
+ | **evidence_ref_kind** | **String** | Which kind of fact the row is: rx_rfi_owned_database (a database the supplier lists), rx_rfi_data_access (countries and regions it declares data access in, naming no source) or rx_rfi_therapeutic_experience (rare-disease and therapeutic-area experience). | [optional] |
14
+ | **evidence_ref** | **String** | The fact reference, per evidence_ref_kind: the questionnaire id with the item position for a database, the questionnaire id otherwise. Read it with evidence_ref_kind. | [optional] |
15
+ | **evidence_label** | **String** | The database short name the supplier gave (capped at 120 characters), or a fixed label for the two other kinds. | [optional] |
16
+ | **match_method** | **String** | How the fact was tied to the supplier: rx_provider_direct, the questionnaire carries the supplier id and nothing was inferred. | [optional] |
17
+ | **country_names** | **Array<String>** | Database rows: the database country. Access rows: the countries the supplier declares access in. Null on therapeutic rows. | [optional] |
18
+ | **declared_regions** | **Array<String>** | Access rows: the regions the supplier declares access in, as the questionnaire writes them. Null elsewhere. | [optional] |
19
+ | **data_types** | **Array<String>** | The data types, mapped to the current label of each option (a label with no mapping is kept as ticked). Database rows: types the source holds. Access rows: types the supplier declares experience with. | [optional] |
20
+ | **data_source_type** | **String** | data_types joined with ' | '. | [optional] |
21
+ | **data_types_basis** | **String** | What data_types means: source_holds (database rows) or supplier_experience (access rows, which name no source). Null where there are no data types. | [optional] |
22
+ | **declared_validation** | **String** | Database rows: the supplier's own statement of validation, declared_validated, declared_not_validated or declared_validation_in_progress. | [optional] |
23
+ | **declared_first_collection_year** | **Integer** | Database rows: the first-collection year the supplier gave, kept where it is between 1950 and the build year, else null. | [optional] |
24
+ | **year_implausible** | **Boolean** | Database rows: true where the supplier gave a year outside 1950 to the build year (declared_first_collection_year is then null). | [optional] |
25
+ | **declared_linkable** | **Boolean** | Database rows: whether the supplier says the database can be linked; null where it did not answer. | [optional] |
26
+ | **therapeutic_areas** | **Array<String>** | Therapeutic rows: the therapeutic areas ticked, current labels. An empty list is a declared negative, not missing data. | [optional] |
27
+ | **declared_rare_disease_experience** | **Boolean** | Therapeutic rows: true where the supplier says it has rare-disease experience, false where it says it has none (a declared negative), null where it did not answer. | [optional] |
28
+ | **as_of** | **Date** | The date the questionnaire was submitted. | [optional] |
29
+ | **is_expired** | **Boolean** | Whether the questionnaire is past its 730-day validity at build time. | [optional] |
30
+ | **expired_at** | **Time** | When the questionnaire validity ends. | [optional] |
31
+ | **questionnaire_key** | **String** | The questionnaire version the fact came from: rwe_current, or rwe_2019 on a database row. | [optional] |
32
+ | **questionnaire_label** | **String** | The questionnaire version as a label. | [optional] |
33
+ | **restriction_tier** | **String** | The license restriction tier of the source: none, a first-party source with no license restriction. | [optional] |
34
+ | **attribution** | **String** | The plain source line to show with a row. | [optional] |
35
+ | **authority_class** | **String** | Always declared: the supplier's own statement, not verified. | [optional] |
36
+
37
+ ## Example
38
+
39
+ ```ruby
40
+ require 'pharmaobservatory'
41
+
42
+ instance = PharmaObservatory::SupplierRwdDeclarationsRow.new(
43
+ provider_rwd_declared_source_id: null,
44
+ provider_id: null,
45
+ provider_uuid: null,
46
+ provider_slug: null,
47
+ provider_name: null,
48
+ role: null,
49
+ evidence_ref_kind: null,
50
+ evidence_ref: null,
51
+ evidence_label: null,
52
+ match_method: null,
53
+ country_names: null,
54
+ declared_regions: null,
55
+ data_types: null,
56
+ data_source_type: null,
57
+ data_types_basis: null,
58
+ declared_validation: null,
59
+ declared_first_collection_year: null,
60
+ year_implausible: null,
61
+ declared_linkable: null,
62
+ therapeutic_areas: null,
63
+ declared_rare_disease_experience: null,
64
+ as_of: null,
65
+ is_expired: null,
66
+ expired_at: null,
67
+ questionnaire_key: null,
68
+ questionnaire_label: null,
69
+ restriction_tier: null,
70
+ attribution: null,
71
+ authority_class: null
72
+ )
73
+ ```
74
+
data/docs/SuppliersApi.md CHANGED
@@ -12,6 +12,8 @@ All URIs are relative to *https://pharmaobservatory.com*
12
12
  | [**suppliers_provider_rwd_delivery**](SuppliersApi.md#suppliers_provider_rwd_delivery) | **GET** /api/v1/suppliers/{id}/provider_rwd_delivery | RX provider real-world data study delivery track record (HMA-EMA catalogue) |
13
13
  | [**suppliers_provider_rwd_delivery_study**](SuppliersApi.md#suppliers_provider_rwd_delivery_study) | **GET** /api/v1/suppliers/{id}/provider_rwd_delivery_study | RX provider real-world data study final-report dates below the floor (HMA-EMA catalogue) |
14
14
  | [**suppliers_provider_rwd_footprint**](SuppliersApi.md#suppliers_provider_rwd_footprint) | **GET** /api/v1/suppliers/{id}/provider_rwd_footprint | Supplier real-world data footprint (HMA-EMA catalogue) |
15
+ | [**suppliers_rwd_us_network_memberships**](SuppliersApi.md#suppliers_rwd_us_network_memberships) | **GET** /api/v1/suppliers/{id}/rwd_us_network_memberships | US real-world data network membership (N3C) |
16
+ | [**suppliers_supplier_rwd_declarations**](SuppliersApi.md#suppliers_supplier_rwd_declarations) | **GET** /api/v1/suppliers/{id}/supplier_rwd_declarations | Supplier declared real-world data facts |
15
17
  | [**suppliers_supplier_services**](SuppliersApi.md#suppliers_supplier_services) | **GET** /api/v1/suppliers/{id}/supplier_services | Supplier services |
16
18
  | [**suppliers_supplier_sites**](SuppliersApi.md#suppliers_supplier_sites) | **GET** /api/v1/suppliers/{id}/supplier_sites | Supplier sites |
17
19
 
@@ -634,6 +636,164 @@ end
634
636
  - **Accept**: application/json
635
637
 
636
638
 
639
+ ## suppliers_rwd_us_network_memberships
640
+
641
+ > <RwdUsNetworkMembershipsResponse> suppliers_rwd_us_network_memberships(id, opts)
642
+
643
+ US real-world data network membership (N3C)
644
+
645
+ ### Examples
646
+
647
+ ```ruby
648
+ require 'time'
649
+ require 'pharmaobservatory'
650
+ # setup authorization
651
+ PharmaObservatory.configure do |config|
652
+ # Configure Bearer authorization (JWT): ApiBearerJwt
653
+ config.access_token = 'YOUR_BEARER_TOKEN'
654
+ end
655
+
656
+ api_instance = PharmaObservatory::SuppliersApi.new
657
+ id = 990502 # Integer |
658
+ opts = {
659
+ 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.
660
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
661
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
662
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
663
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
664
+ }
665
+
666
+ begin
667
+ # US real-world data network membership (N3C)
668
+ result = api_instance.suppliers_rwd_us_network_memberships(id, opts)
669
+ p result
670
+ rescue PharmaObservatory::ApiError => e
671
+ puts "Error when calling SuppliersApi->suppliers_rwd_us_network_memberships: #{e}"
672
+ end
673
+ ```
674
+
675
+ #### Using the suppliers_rwd_us_network_memberships_with_http_info variant
676
+
677
+ This returns an Array which contains the response data, status code and headers.
678
+
679
+ > <Array(<RwdUsNetworkMembershipsResponse>, Integer, Hash)> suppliers_rwd_us_network_memberships_with_http_info(id, opts)
680
+
681
+ ```ruby
682
+ begin
683
+ # US real-world data network membership (N3C)
684
+ data, status_code, headers = api_instance.suppliers_rwd_us_network_memberships_with_http_info(id, opts)
685
+ p status_code # => 2xx
686
+ p headers # => { ... }
687
+ p data # => <RwdUsNetworkMembershipsResponse>
688
+ rescue PharmaObservatory::ApiError => e
689
+ puts "Error when calling SuppliersApi->suppliers_rwd_us_network_memberships_with_http_info: #{e}"
690
+ end
691
+ ```
692
+
693
+ ### Parameters
694
+
695
+ | Name | Type | Description | Notes |
696
+ | ---- | ---- | ----------- | ----- |
697
+ | **id** | **Integer** | | |
698
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
699
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
700
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
701
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
702
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
703
+
704
+ ### Return type
705
+
706
+ [**RwdUsNetworkMembershipsResponse**](RwdUsNetworkMembershipsResponse.md)
707
+
708
+ ### Authorization
709
+
710
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
711
+
712
+ ### HTTP request headers
713
+
714
+ - **Content-Type**: Not defined
715
+ - **Accept**: application/json
716
+
717
+
718
+ ## suppliers_supplier_rwd_declarations
719
+
720
+ > <SupplierRwdDeclarationsResponse> suppliers_supplier_rwd_declarations(id, opts)
721
+
722
+ Supplier declared real-world data facts
723
+
724
+ ### Examples
725
+
726
+ ```ruby
727
+ require 'time'
728
+ require 'pharmaobservatory'
729
+ # setup authorization
730
+ PharmaObservatory.configure do |config|
731
+ # Configure Bearer authorization (JWT): ApiBearerJwt
732
+ config.access_token = 'YOUR_BEARER_TOKEN'
733
+ end
734
+
735
+ api_instance = PharmaObservatory::SuppliersApi.new
736
+ id = 990502 # Integer |
737
+ opts = {
738
+ 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.
739
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
740
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
741
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
742
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
743
+ }
744
+
745
+ begin
746
+ # Supplier declared real-world data facts
747
+ result = api_instance.suppliers_supplier_rwd_declarations(id, opts)
748
+ p result
749
+ rescue PharmaObservatory::ApiError => e
750
+ puts "Error when calling SuppliersApi->suppliers_supplier_rwd_declarations: #{e}"
751
+ end
752
+ ```
753
+
754
+ #### Using the suppliers_supplier_rwd_declarations_with_http_info variant
755
+
756
+ This returns an Array which contains the response data, status code and headers.
757
+
758
+ > <Array(<SupplierRwdDeclarationsResponse>, Integer, Hash)> suppliers_supplier_rwd_declarations_with_http_info(id, opts)
759
+
760
+ ```ruby
761
+ begin
762
+ # Supplier declared real-world data facts
763
+ data, status_code, headers = api_instance.suppliers_supplier_rwd_declarations_with_http_info(id, opts)
764
+ p status_code # => 2xx
765
+ p headers # => { ... }
766
+ p data # => <SupplierRwdDeclarationsResponse>
767
+ rescue PharmaObservatory::ApiError => e
768
+ puts "Error when calling SuppliersApi->suppliers_supplier_rwd_declarations_with_http_info: #{e}"
769
+ end
770
+ ```
771
+
772
+ ### Parameters
773
+
774
+ | Name | Type | Description | Notes |
775
+ | ---- | ---- | ----------- | ----- |
776
+ | **id** | **Integer** | | |
777
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
778
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
779
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
780
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
781
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
782
+
783
+ ### Return type
784
+
785
+ [**SupplierRwdDeclarationsResponse**](SupplierRwdDeclarationsResponse.md)
786
+
787
+ ### Authorization
788
+
789
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
790
+
791
+ ### HTTP request headers
792
+
793
+ - **Content-Type**: Not defined
794
+ - **Accept**: application/json
795
+
796
+
637
797
  ## suppliers_supplier_services
638
798
 
639
799
  > <SupplierServicesResponse> suppliers_supplier_services(id, opts)
@@ -0,0 +1,58 @@
1
+ # PharmaObservatory::TrialPublicationsResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **dataset** | **String** | | |
8
+ | **grain** | **String** | | [optional] |
9
+ | **object_type** | **String** | | [optional] |
10
+ | **id** | **String** | | [optional] |
11
+ | **scope** | [**AnimalWelfareAssurancesResponseScope**](AnimalWelfareAssurancesResponseScope.md) | | [optional] |
12
+ | **columns** | [**Array&lt;DatasetColumn&gt;**](DatasetColumn.md) | | |
13
+ | **rows** | [**Array&lt;TrialPublicationsRow&gt;**](TrialPublicationsRow.md) | | |
14
+ | **total** | **Integer** | The exact count of the filtered rows on an ungrouped read, carried by the cursor; null when grouped. | [optional] |
15
+ | **next_cursor** | **String** | | [optional] |
16
+ | **sort** | **Array&lt;String&gt;** | | [optional] |
17
+ | **filters** | **Array&lt;Hash&lt;String, Object&gt;&gt;** | | [optional] |
18
+ | **group_by** | **Array&lt;String&gt;** | | [optional] |
19
+ | **measures** | **Array&lt;String&gt;** | | [optional] |
20
+ | **attribution** | [**Array&lt;DatasetAttribution&gt;**](DatasetAttribution.md) | | [optional] |
21
+ | **source_credit** | **String** | | [optional] |
22
+ | **withheld_tiers** | **Array&lt;String&gt;** | | [optional] |
23
+ | **withheld_columns** | **Array&lt;String&gt;** | | [optional] |
24
+ | **freshness** | [**AnimalWelfareAssurancesResponseFreshness**](AnimalWelfareAssurancesResponseFreshness.md) | | [optional] |
25
+ | **build** | [**AnimalWelfareAssurancesResponseBuild**](AnimalWelfareAssurancesResponseBuild.md) | | [optional] |
26
+ | **build_state** | [**DatasetBuildState**](DatasetBuildState.md) | | [optional] |
27
+ | **restriction** | **Hash&lt;String, Object&gt;** | | [optional] |
28
+
29
+ ## Example
30
+
31
+ ```ruby
32
+ require 'pharmaobservatory'
33
+
34
+ instance = PharmaObservatory::TrialPublicationsResponse.new(
35
+ dataset: null,
36
+ grain: null,
37
+ object_type: null,
38
+ id: null,
39
+ scope: null,
40
+ columns: null,
41
+ rows: null,
42
+ total: null,
43
+ next_cursor: null,
44
+ sort: null,
45
+ filters: null,
46
+ group_by: null,
47
+ measures: null,
48
+ attribution: null,
49
+ source_credit: null,
50
+ withheld_tiers: null,
51
+ withheld_columns: null,
52
+ freshness: null,
53
+ build: null,
54
+ build_state: null,
55
+ restriction: null
56
+ )
57
+ ```
58
+
@@ -0,0 +1,34 @@
1
+ # PharmaObservatory::TrialPublicationsRow
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **trial_id** | **String** | The trial&#39;s ClinicalTrials.gov registry id (NCT, National Clinical Trial, number). | [optional] |
8
+ | **pmid** | **String** | The PubMed id of the paper. | [optional] |
9
+ | **title** | **String** | The paper&#39;s title. | [optional] |
10
+ | **journal_title** | **String** | The journal&#39;s title (null when the paper&#39;s journal is not in the journal table). | [optional] |
11
+ | **pub_year** | **Integer** | The publication year (null when undated). | [optional] |
12
+ | **evidence_type** | **String** | The paper&#39;s study-design label, one normalized publication type by study-design priority; the page&#39;s design column. | [optional] |
13
+ | **citation** | **String** | The citation for the paper: one citation per paper, the longest among the trials that cite the PubMed id. | [optional] |
14
+ | **reference_types** | **Array&lt;String&gt;** | Every reference kind the registry filed for this paper on this trial, lower-cased (background, result, derived). | [optional] |
15
+ | **results** | **Boolean** | True when any reference kind of the row is a results reference; the page&#39;s Results label. | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'pharmaobservatory'
21
+
22
+ instance = PharmaObservatory::TrialPublicationsRow.new(
23
+ trial_id: null,
24
+ pmid: null,
25
+ title: null,
26
+ journal_title: null,
27
+ pub_year: null,
28
+ evidence_type: null,
29
+ citation: null,
30
+ reference_types: null,
31
+ results: null
32
+ )
33
+ ```
34
+
data/docs/TrialsApi.md CHANGED
@@ -19,6 +19,7 @@ All URIs are relative to *https://pharmaobservatory.com*
19
19
  | [**trials_trial_extracted_endpoints**](TrialsApi.md#trials_trial_extracted_endpoints) | **GET** /api/v1/trials/{id}/trial_extracted_endpoints | Trial extracted endpoints |
20
20
  | [**trials_trial_kols**](TrialsApi.md#trials_trial_kols) | **GET** /api/v1/trials/{id}/trial_kols | Trial investigators |
21
21
  | [**trials_trial_outcome_measures**](TrialsApi.md#trials_trial_outcome_measures) | **GET** /api/v1/trials/{id}/trial_outcome_measures | Trial outcome measures |
22
+ | [**trials_trial_publications**](TrialsApi.md#trials_trial_publications) | **GET** /api/v1/trials/{id}/trial_publications | Trial publications |
22
23
  | [**trials_trial_research_payments**](TrialsApi.md#trials_trial_research_payments) | **GET** /api/v1/trials/{id}/trial_research_payments | Trial research payments |
23
24
  | [**trials_trial_site_history**](TrialsApi.md#trials_trial_site_history) | **GET** /api/v1/trials/{id}/trial_site_history | Trial site history |
24
25
  | [**trials_trial_sites**](TrialsApi.md#trials_trial_sites) | **GET** /api/v1/trials/{id}/trial_sites | Trial sites |
@@ -1195,6 +1196,85 @@ end
1195
1196
  - **Accept**: application/json
1196
1197
 
1197
1198
 
1199
+ ## trials_trial_publications
1200
+
1201
+ > <TrialPublicationsResponse> trials_trial_publications(id, opts)
1202
+
1203
+ Trial publications
1204
+
1205
+ ### Examples
1206
+
1207
+ ```ruby
1208
+ require 'time'
1209
+ require 'pharmaobservatory'
1210
+ # setup authorization
1211
+ PharmaObservatory.configure do |config|
1212
+ # Configure Bearer authorization (JWT): ApiBearerJwt
1213
+ config.access_token = 'YOUR_BEARER_TOKEN'
1214
+ end
1215
+
1216
+ api_instance = PharmaObservatory::TrialsApi.new
1217
+ id = 'NCT00000125' # String |
1218
+ opts = {
1219
+ 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.
1220
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
1221
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
1222
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
1223
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1224
+ }
1225
+
1226
+ begin
1227
+ # Trial publications
1228
+ result = api_instance.trials_trial_publications(id, opts)
1229
+ p result
1230
+ rescue PharmaObservatory::ApiError => e
1231
+ puts "Error when calling TrialsApi->trials_trial_publications: #{e}"
1232
+ end
1233
+ ```
1234
+
1235
+ #### Using the trials_trial_publications_with_http_info variant
1236
+
1237
+ This returns an Array which contains the response data, status code and headers.
1238
+
1239
+ > <Array(<TrialPublicationsResponse>, Integer, Hash)> trials_trial_publications_with_http_info(id, opts)
1240
+
1241
+ ```ruby
1242
+ begin
1243
+ # Trial publications
1244
+ data, status_code, headers = api_instance.trials_trial_publications_with_http_info(id, opts)
1245
+ p status_code # => 2xx
1246
+ p headers # => { ... }
1247
+ p data # => <TrialPublicationsResponse>
1248
+ rescue PharmaObservatory::ApiError => e
1249
+ puts "Error when calling TrialsApi->trials_trial_publications_with_http_info: #{e}"
1250
+ end
1251
+ ```
1252
+
1253
+ ### Parameters
1254
+
1255
+ | Name | Type | Description | Notes |
1256
+ | ---- | ---- | ----------- | ----- |
1257
+ | **id** | **String** | | |
1258
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
1259
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
1260
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
1261
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
1262
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
1263
+
1264
+ ### Return type
1265
+
1266
+ [**TrialPublicationsResponse**](TrialPublicationsResponse.md)
1267
+
1268
+ ### Authorization
1269
+
1270
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
1271
+
1272
+ ### HTTP request headers
1273
+
1274
+ - **Content-Type**: Not defined
1275
+ - **Accept**: application/json
1276
+
1277
+
1198
1278
  ## trials_trial_research_payments
1199
1279
 
1200
1280
  > <TrialResearchPaymentsResponse> trials_trial_research_payments(id, opts)
@@ -914,6 +914,90 @@ module PharmaObservatory
914
914
  return data, status_code, headers
915
915
  end
916
916
 
917
+ # US real-world data network projects (N3C)
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&#x3D;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 [RwdUsNetworkProjectsResponse]
926
+ def investigators_rwd_us_network_projects(id, opts = {})
927
+ data, _status_code, _headers = investigators_rwd_us_network_projects_with_http_info(id, opts)
928
+ data
929
+ end
930
+
931
+ # US real-world data network projects (N3C)
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&#x3D;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<(RwdUsNetworkProjectsResponse, Integer, Hash)>] RwdUsNetworkProjectsResponse data, response status code and response headers
940
+ def investigators_rwd_us_network_projects_with_http_info(id, opts = {})
941
+ if @api_client.config.debugging
942
+ @api_client.config.logger.debug 'Calling API: InvestigatorsApi.investigators_rwd_us_network_projects ...'
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 InvestigatorsApi.investigators_rwd_us_network_projects"
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 InvestigatorsApi.investigators_rwd_us_network_projects, 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 InvestigatorsApi.investigators_rwd_us_network_projects, must be greater than or equal to 1.'
954
+ end
955
+
956
+ # resource path
957
+ local_var_path = '/api/v1/investigators/{id}/rwd_us_network_projects'.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] || 'RwdUsNetworkProjectsResponse'
980
+
981
+ # auth_names
982
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
983
+
984
+ new_options = opts.merge(
985
+ :operation => :"InvestigatorsApi.investigators_rwd_us_network_projects",
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: InvestigatorsApi#investigators_rwd_us_network_projects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
997
+ end
998
+ return data, status_code, headers
999
+ end
1000
+
917
1001
  # Site investigators
918
1002
  # @param id [String]
919
1003
  # @param [Hash] opts the optional parameters