pharmaobservatory 0.1.29 → 0.1.30

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 250b57a622e6d1e9d032a697327b26da177a83216aa0f4966c4451ff6b2b3f84
4
- data.tar.gz: '092dc946bf9bf7bc9b462e62d6d4d728554e7f3c9fae8290a577271f92b11fda'
3
+ metadata.gz: 21266f6f378351eb703d4a459457c268dc308e8395eb05d3038f0dc81ffcbc1a
4
+ data.tar.gz: afea8faeee8d409bfd0544a66b10467873b92ebbfd4981208749f42aa1ff6cbe
5
5
  SHA512:
6
- metadata.gz: ff257ba7de6d80455eae4f1a8bad285e8901c9f358d8a1555e9d8733b6c5940370ffa4c8949481f16369b0478ad10bd3da61c174d7348f07d419ebb770fdf60d
7
- data.tar.gz: c38661a518bba240207adfd4cfa4b683b1ef18e8a0350bd1f8610ef6f85cf9c789d7523fdff0c1838254ad3500b399e39d9b0dcacceed74d5ddb061bf3e76deb
6
+ metadata.gz: 8280635bd1c40122c655e6600092133773cbd43b12cfaadf578b00e71b4d0a780b8a644897e687e30b7dafbff1cff8c46dceedb7607b73fc94e0040d1c0d8c80
7
+ data.tar.gz: a6597a942b0723e022d28167a3f42ccb92ddb14f07d592955c9604a57dd209cdb7661fec4f473004a8ab840a22de6b3885c96649746baf03a566c2cb7c9fe281
data/README.md CHANGED
@@ -39,7 +39,7 @@ Read-only REST API over the Pharma Observatory biomedical data platform. Referen
39
39
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
40
40
 
41
41
  - API version: 1.0.0
42
- - Package version: 0.1.29
42
+ - Package version: 0.1.30
43
43
  - Generator version: 7.13.0
44
44
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
45
45
 
@@ -56,16 +56,16 @@ gem build pharmaobservatory.gemspec
56
56
  Then either install the gem locally:
57
57
 
58
58
  ```shell
59
- gem install ./pharmaobservatory-0.1.29.gem
59
+ gem install ./pharmaobservatory-0.1.30.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./pharmaobservatory-0.1.29.gem` to install the development dependencies)
62
+ (for development, run `gem install --dev ./pharmaobservatory-0.1.30.gem` to install the development dependencies)
63
63
 
64
64
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
65
65
 
66
66
  Finally add this to the Gemfile:
67
67
 
68
- gem 'pharmaobservatory', '~> 0.1.29'
68
+ gem 'pharmaobservatory', '~> 0.1.30'
69
69
 
70
70
  ### Install from Git
71
71
 
@@ -369,6 +369,7 @@ Class | Method | HTTP request | Description
369
369
  *PharmaObservatory::RareDiseasesApi* | [**rare_diseases_patient_organisation**](docs/RareDiseasesApi.md#rare_diseases_patient_organisation) | **GET** /api/v1/rare_diseases/{id}/patient_organisation | Patient organisations
370
370
  *PharmaObservatory::RareDiseasesApi* | [**rare_diseases_rare_disease_families**](docs/RareDiseasesApi.md#rare_diseases_rare_disease_families) | **GET** /api/v1/rare_diseases/{id}/rare_disease_families | Rare disease families
371
371
  *PharmaObservatory::RareDiseasesApi* | [**rare_diseases_rare_disease_family_members**](docs/RareDiseasesApi.md#rare_diseases_rare_disease_family_members) | **GET** /api/v1/rare_diseases/{id}/rare_disease_family_members | Rare disease family members
372
+ *PharmaObservatory::RareDiseasesApi* | [**rare_diseases_rare_disease_family_organisations**](docs/RareDiseasesApi.md#rare_diseases_rare_disease_family_organisations) | **GET** /api/v1/rare_diseases/{id}/rare_disease_family_organisations | Rare disease family organisations
372
373
  *PharmaObservatory::RareDiseasesApi* | [**rare_diseases_rare_disease_genes**](docs/RareDiseasesApi.md#rare_diseases_rare_disease_genes) | **GET** /api/v1/rare_diseases/{id}/rare_disease_genes | Rare disease genes
373
374
  *PharmaObservatory::RareDiseasesApi* | [**rare_diseases_rare_disease_hierarchy**](docs/RareDiseasesApi.md#rare_diseases_rare_disease_hierarchy) | **GET** /api/v1/rare_diseases/{id}/rare_disease_hierarchy | Rare disease hierarchy
374
375
  *PharmaObservatory::RareDiseasesApi* | [**rare_diseases_rare_disease_investigator_coverage**](docs/RareDiseasesApi.md#rare_diseases_rare_disease_investigator_coverage) | **GET** /api/v1/rare_diseases/{id}/rare_disease_investigator_coverage | Rare disease investigator coverage
@@ -801,6 +802,8 @@ Class | Method | HTTP request | Description
801
802
  - [PharmaObservatory::RareDiseaseFamiliesRow](docs/RareDiseaseFamiliesRow.md)
802
803
  - [PharmaObservatory::RareDiseaseFamilyMembersResponse](docs/RareDiseaseFamilyMembersResponse.md)
803
804
  - [PharmaObservatory::RareDiseaseFamilyMembersRow](docs/RareDiseaseFamilyMembersRow.md)
805
+ - [PharmaObservatory::RareDiseaseFamilyOrganisationsResponse](docs/RareDiseaseFamilyOrganisationsResponse.md)
806
+ - [PharmaObservatory::RareDiseaseFamilyOrganisationsRow](docs/RareDiseaseFamilyOrganisationsRow.md)
804
807
  - [PharmaObservatory::RareDiseaseGenesResponse](docs/RareDiseaseGenesResponse.md)
805
808
  - [PharmaObservatory::RareDiseaseGenesRow](docs/RareDiseaseGenesRow.md)
806
809
  - [PharmaObservatory::RareDiseaseHierarchyResponse](docs/RareDiseaseHierarchyResponse.md)
data/docs/CompaniesRow.md CHANGED
@@ -5,8 +5,9 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **company_id** | **String** | The company key (company:<key>). | [optional] |
8
- | **company_name** | **String** | The company's display name: its own legal entity's name where one is known. | [optional] |
9
- | **name_basis** | **String** | Which source supplied the name: gleif_legal_name, edgar_registrant, ror, edgar_current_name or sponsor_display_name. | [optional] |
8
+ | **company_name** | **String** | The company's display name: a curated common name where one has been chosen (name_basis curated_common_name), else its own legal entity's name where one is known, title-cased when the source spells it fully upper-case (legal forms and a short list of acronyms keep their capitals). | [optional] |
9
+ | **name_basis** | **String** | Which source supplied the name: gleif_legal_name, edgar_registrant, ror, edgar_current_name, sponsor_display_name or curated_common_name. | [optional] |
10
+ | **registry_name** | **String** | The registry-derived name of the company, before any curated common name replaced it and as the source spelled it: it differs from company_name where the source spelling is fully upper-case (company_name is title-cased) or a curated common name replaced it. | [optional] |
10
11
  | **country** | **String** | Country of the company's own legal entity, as the source states it. | [optional] |
11
12
  | **org_type** | **String** | The organization type of the company's representative record: Academic, Government, Hospital, Industry, Nonprofit or Other (from the Research Organization Registry (ROR) record or the filing), or the lowercase tags investor and manufacturer that mark a minted adviser or manufacturer record. | [optional] |
12
13
  | **org_kinds** | **Array<String>** | The roles the company's organizations play (Manufacturer, Sponsor and so on). | [optional] |
@@ -40,6 +41,7 @@ instance = PharmaObservatory::CompaniesRow.new(
40
41
  company_id: null,
41
42
  company_name: null,
42
43
  name_basis: null,
44
+ registry_name: null,
43
45
  country: null,
44
46
  org_type: null,
45
47
  org_kinds: null,
@@ -18,6 +18,7 @@
18
18
  | **parent_is_listed** | **Boolean** | True when the family's own term has a page on findsupportfor.com: an active Orphanet concept, or a condition the organisation search has covered. False for a bare MONDO term and for a condition not yet searched. | [optional] |
19
19
  | **organisation_count** | **Integer** | Distinct patient organisations that declare a disease in the family (or the family's own condition when it is listed), each counted once however many of the diseases it declares. | [optional] |
20
20
  | **organisation_serves_count** | **Integer** | Of organisation_count, those with at least one declared edge in the family judged as serving people with the disease; the rest are unclear or not yet judged and are still counted in organisation_count. | [optional] |
21
+ | **family_organisation_count** | **Integer** | Of organisation_count, the organisations that declare the family's own disease (an Orphanet concept whose MONDO term is the family, or the family's own condition when it is listed), as against only a disease below it. The rows are on rare_disease_family_organisations. | [optional] |
21
22
  | **source_release** | **String** | The MONDO release the family was read from. | [optional] |
22
23
  | **source_url** | **String** | The URL of the MONDO source the row was read from. | [optional] |
23
24
  | **license_name** | **String** | The licence of the MONDO release. | [optional] |
@@ -43,6 +44,7 @@ instance = PharmaObservatory::RareDiseaseFamiliesRow.new(
43
44
  parent_is_listed: null,
44
45
  organisation_count: null,
45
46
  organisation_serves_count: null,
47
+ family_organisation_count: null,
46
48
  source_release: null,
47
49
  source_url: null,
48
50
  license_name: null,
@@ -0,0 +1,58 @@
1
+ # PharmaObservatory::RareDiseaseFamilyOrganisationsResponse
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<RareDiseaseFamilyOrganisationsRow>**](RareDiseaseFamilyOrganisationsRow.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::RareDiseaseFamilyOrganisationsResponse.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,58 @@
1
+ # PharmaObservatory::RareDiseaseFamilyOrganisationsRow
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **family_organisation_id** | **String** | The identifier of the (family, organisation) pair. | [optional] |
8
+ | **family_id** | **String** | The MONDO identifier of the family, the key of rare_disease_families. | [optional] |
9
+ | **family_name** | **String** | The family's name as MONDO files it. | [optional] |
10
+ | **parent_orpha_code** | **String** | The ORPHA code of the family's own term when it is an active Orphanet concept; null otherwise. The entry key from rare_diseases. | [optional] |
11
+ | **patient_organisation_id** | **String** | The organisation's id, as on the patient_organisation dataset: a spine organisation id when the organisation folded onto one we already hold, else pag:<registrable domain of its website>. | [optional] |
12
+ | **serves_family** | **Boolean** | True when the organisation declares the family's own disease (an Orphanet concept whose MONDO term is the family, or the family's own condition when it is listed); false when it declares only diseases below the family. | [optional] |
13
+ | **family_edge_verdict** | **String** | The verdict over the organisation's declarations of the family's own disease: serves, unclear (asked and not callable) or unjudged (not yet asked); null when serves_family is false. | [optional] |
14
+ | **edge_verdict** | **String** | The verdict over all the organisation's declarations in the family: serves when any serves, else unclear when any is unclear, else unjudged. The rows that serve are organisation_serves_count on rare_disease_families. | [optional] |
15
+ | **served_orpha_codes** | **Array<String>** | The ORPHA codes of the diseases of the family the organisation declares (the family's own concepts and the diseases below it), by disease name then code; empty when its only declaration is the family's own condition. Parallel to served_disease_names and served_edge_verdicts. | [optional] |
16
+ | **served_disease_names** | **Array<String>** | The preferred names of those diseases, in the same order as served_orpha_codes. | [optional] |
17
+ | **served_edge_verdicts** | **Array<String>** | The verdict of the organisation's declaration of each of those diseases, in the same order as served_orpha_codes. | [optional] |
18
+ | **served_disease_count** | **Integer** | How many diseases of the family the organisation declares; the length of served_orpha_codes. | [optional] |
19
+ | **member_disease_count** | **Integer** | Of served_disease_count, the diseases strictly below the family. | [optional] |
20
+ | **declared_scope** | **String** | How much of its work the organisation says the disease is on its representative statement: sole_focus, one_of_several or umbrella; null when it states none. | [optional] |
21
+ | **declared_name** | **String** | The disease name the organisation declared on its representative statement. | [optional] |
22
+ | **source_url** | **String** | The page of the organisation's own website the representative statement came from. | [optional] |
23
+ | **retrieved_on** | **Date** | The date that page was retrieved. | [optional] |
24
+ | **credit** | **String** | The source credit line for the row: Source: <organisation name>, <page address>, retrieved <date>. Mandatory wherever the row is shown. | [optional] |
25
+ | **source_release** | **String** | The MONDO release the family was read from. | [optional] |
26
+ | **license_name** | **String** | The licence of the MONDO release. | [optional] |
27
+ | **attribution** | **String** | The attribution line the sources require; quote it with any figure taken from the row. | [optional] |
28
+
29
+ ## Example
30
+
31
+ ```ruby
32
+ require 'pharmaobservatory'
33
+
34
+ instance = PharmaObservatory::RareDiseaseFamilyOrganisationsRow.new(
35
+ family_organisation_id: null,
36
+ family_id: null,
37
+ family_name: null,
38
+ parent_orpha_code: null,
39
+ patient_organisation_id: null,
40
+ serves_family: null,
41
+ family_edge_verdict: null,
42
+ edge_verdict: null,
43
+ served_orpha_codes: null,
44
+ served_disease_names: null,
45
+ served_edge_verdicts: null,
46
+ served_disease_count: null,
47
+ member_disease_count: null,
48
+ declared_scope: null,
49
+ declared_name: null,
50
+ source_url: null,
51
+ retrieved_on: null,
52
+ credit: null,
53
+ source_release: null,
54
+ license_name: null,
55
+ attribution: null
56
+ )
57
+ ```
58
+
@@ -9,6 +9,7 @@ All URIs are relative to *https://pharmaobservatory.com*
9
9
  | [**rare_diseases_patient_organisation**](RareDiseasesApi.md#rare_diseases_patient_organisation) | **GET** /api/v1/rare_diseases/{id}/patient_organisation | Patient organisations |
10
10
  | [**rare_diseases_rare_disease_families**](RareDiseasesApi.md#rare_diseases_rare_disease_families) | **GET** /api/v1/rare_diseases/{id}/rare_disease_families | Rare disease families |
11
11
  | [**rare_diseases_rare_disease_family_members**](RareDiseasesApi.md#rare_diseases_rare_disease_family_members) | **GET** /api/v1/rare_diseases/{id}/rare_disease_family_members | Rare disease family members |
12
+ | [**rare_diseases_rare_disease_family_organisations**](RareDiseasesApi.md#rare_diseases_rare_disease_family_organisations) | **GET** /api/v1/rare_diseases/{id}/rare_disease_family_organisations | Rare disease family organisations |
12
13
  | [**rare_diseases_rare_disease_genes**](RareDiseasesApi.md#rare_diseases_rare_disease_genes) | **GET** /api/v1/rare_diseases/{id}/rare_disease_genes | Rare disease genes |
13
14
  | [**rare_diseases_rare_disease_hierarchy**](RareDiseasesApi.md#rare_diseases_rare_disease_hierarchy) | **GET** /api/v1/rare_diseases/{id}/rare_disease_hierarchy | Rare disease hierarchy |
14
15
  | [**rare_diseases_rare_disease_investigator_coverage**](RareDiseasesApi.md#rare_diseases_rare_disease_investigator_coverage) | **GET** /api/v1/rare_diseases/{id}/rare_disease_investigator_coverage | Rare disease investigator coverage |
@@ -407,6 +408,85 @@ end
407
408
  - **Accept**: application/json
408
409
 
409
410
 
411
+ ## rare_diseases_rare_disease_family_organisations
412
+
413
+ > <RareDiseaseFamilyOrganisationsResponse> rare_diseases_rare_disease_family_organisations(id, opts)
414
+
415
+ Rare disease family organisations
416
+
417
+ ### Examples
418
+
419
+ ```ruby
420
+ require 'time'
421
+ require 'pharmaobservatory'
422
+ # setup authorization
423
+ PharmaObservatory.configure do |config|
424
+ # Configure Bearer authorization (JWT): ApiBearerJwt
425
+ config.access_token = 'YOUR_BEARER_TOKEN'
426
+ end
427
+
428
+ api_instance = PharmaObservatory::RareDiseasesApi.new
429
+ id = 95708 # Integer |
430
+ opts = {
431
+ 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.
432
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
433
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
434
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
435
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
436
+ }
437
+
438
+ begin
439
+ # Rare disease family organisations
440
+ result = api_instance.rare_diseases_rare_disease_family_organisations(id, opts)
441
+ p result
442
+ rescue PharmaObservatory::ApiError => e
443
+ puts "Error when calling RareDiseasesApi->rare_diseases_rare_disease_family_organisations: #{e}"
444
+ end
445
+ ```
446
+
447
+ #### Using the rare_diseases_rare_disease_family_organisations_with_http_info variant
448
+
449
+ This returns an Array which contains the response data, status code and headers.
450
+
451
+ > <Array(<RareDiseaseFamilyOrganisationsResponse>, Integer, Hash)> rare_diseases_rare_disease_family_organisations_with_http_info(id, opts)
452
+
453
+ ```ruby
454
+ begin
455
+ # Rare disease family organisations
456
+ data, status_code, headers = api_instance.rare_diseases_rare_disease_family_organisations_with_http_info(id, opts)
457
+ p status_code # => 2xx
458
+ p headers # => { ... }
459
+ p data # => <RareDiseaseFamilyOrganisationsResponse>
460
+ rescue PharmaObservatory::ApiError => e
461
+ puts "Error when calling RareDiseasesApi->rare_diseases_rare_disease_family_organisations_with_http_info: #{e}"
462
+ end
463
+ ```
464
+
465
+ ### Parameters
466
+
467
+ | Name | Type | Description | Notes |
468
+ | ---- | ---- | ----------- | ----- |
469
+ | **id** | **Integer** | | |
470
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
471
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
472
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
473
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
474
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
475
+
476
+ ### Return type
477
+
478
+ [**RareDiseaseFamilyOrganisationsResponse**](RareDiseaseFamilyOrganisationsResponse.md)
479
+
480
+ ### Authorization
481
+
482
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
483
+
484
+ ### HTTP request headers
485
+
486
+ - **Content-Type**: Not defined
487
+ - **Accept**: application/json
488
+
489
+
410
490
  ## rare_diseases_rare_disease_genes
411
491
 
412
492
  > <RareDiseaseGenesResponse> rare_diseases_rare_disease_genes(id, opts)
@@ -410,6 +410,90 @@ module PharmaObservatory
410
410
  return data, status_code, headers
411
411
  end
412
412
 
413
+ # Rare disease family organisations
414
+ # @param id [Integer]
415
+ # @param [Hash] opts the optional parameters
416
+ # @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.
417
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
418
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
419
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
420
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
421
+ # @return [RareDiseaseFamilyOrganisationsResponse]
422
+ def rare_diseases_rare_disease_family_organisations(id, opts = {})
423
+ data, _status_code, _headers = rare_diseases_rare_disease_family_organisations_with_http_info(id, opts)
424
+ data
425
+ end
426
+
427
+ # Rare disease family organisations
428
+ # @param id [Integer]
429
+ # @param [Hash] opts the optional parameters
430
+ # @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.
431
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
432
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
433
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
434
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
435
+ # @return [Array<(RareDiseaseFamilyOrganisationsResponse, Integer, Hash)>] RareDiseaseFamilyOrganisationsResponse data, response status code and response headers
436
+ def rare_diseases_rare_disease_family_organisations_with_http_info(id, opts = {})
437
+ if @api_client.config.debugging
438
+ @api_client.config.logger.debug 'Calling API: RareDiseasesApi.rare_diseases_rare_disease_family_organisations ...'
439
+ end
440
+ # verify the required parameter 'id' is set
441
+ if @api_client.config.client_side_validation && id.nil?
442
+ fail ArgumentError, "Missing the required parameter 'id' when calling RareDiseasesApi.rare_diseases_rare_disease_family_organisations"
443
+ end
444
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
445
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_family_organisations, must be smaller than or equal to 500.'
446
+ end
447
+
448
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
449
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_family_organisations, must be greater than or equal to 1.'
450
+ end
451
+
452
+ # resource path
453
+ local_var_path = '/api/v1/rare_diseases/{id}/rare_disease_family_organisations'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
454
+
455
+ # query parameters
456
+ query_params = opts[:query_params] || {}
457
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
458
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
459
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
460
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
461
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
462
+
463
+ # header parameters
464
+ header_params = opts[:header_params] || {}
465
+ # HTTP header 'Accept' (if needed)
466
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
467
+
468
+ # form parameters
469
+ form_params = opts[:form_params] || {}
470
+
471
+ # http body (model)
472
+ post_body = opts[:debug_body]
473
+
474
+ # return_type
475
+ return_type = opts[:debug_return_type] || 'RareDiseaseFamilyOrganisationsResponse'
476
+
477
+ # auth_names
478
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
479
+
480
+ new_options = opts.merge(
481
+ :operation => :"RareDiseasesApi.rare_diseases_rare_disease_family_organisations",
482
+ :header_params => header_params,
483
+ :query_params => query_params,
484
+ :form_params => form_params,
485
+ :body => post_body,
486
+ :auth_names => auth_names,
487
+ :return_type => return_type
488
+ )
489
+
490
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
491
+ if @api_client.config.debugging
492
+ @api_client.config.logger.debug "API called: RareDiseasesApi#rare_diseases_rare_disease_family_organisations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
493
+ end
494
+ return data, status_code, headers
495
+ end
496
+
413
497
  # Rare disease genes
414
498
  # @param id [Integer]
415
499
  # @param [Hash] opts the optional parameters
@@ -19,12 +19,15 @@ module PharmaObservatory
19
19
  # The company key (company:<key>).
20
20
  attr_accessor :company_id
21
21
 
22
- # The company's display name: its own legal entity's name where one is known.
22
+ # The company's display name: a curated common name where one has been chosen (name_basis curated_common_name), else its own legal entity's name where one is known, title-cased when the source spells it fully upper-case (legal forms and a short list of acronyms keep their capitals).
23
23
  attr_accessor :company_name
24
24
 
25
- # Which source supplied the name: gleif_legal_name, edgar_registrant, ror, edgar_current_name or sponsor_display_name.
25
+ # Which source supplied the name: gleif_legal_name, edgar_registrant, ror, edgar_current_name, sponsor_display_name or curated_common_name.
26
26
  attr_accessor :name_basis
27
27
 
28
+ # The registry-derived name of the company, before any curated common name replaced it and as the source spelled it: it differs from company_name where the source spelling is fully upper-case (company_name is title-cased) or a curated common name replaced it.
29
+ attr_accessor :registry_name
30
+
28
31
  # Country of the company's own legal entity, as the source states it.
29
32
  attr_accessor :country
30
33
 
@@ -100,6 +103,7 @@ module PharmaObservatory
100
103
  :'company_id' => :'company_id',
101
104
  :'company_name' => :'company_name',
102
105
  :'name_basis' => :'name_basis',
106
+ :'registry_name' => :'registry_name',
103
107
  :'country' => :'country',
104
108
  :'org_type' => :'org_type',
105
109
  :'org_kinds' => :'org_kinds',
@@ -142,6 +146,7 @@ module PharmaObservatory
142
146
  :'company_id' => :'String',
143
147
  :'company_name' => :'String',
144
148
  :'name_basis' => :'String',
149
+ :'registry_name' => :'String',
145
150
  :'country' => :'String',
146
151
  :'org_type' => :'String',
147
152
  :'org_kinds' => :'Array<String>',
@@ -174,6 +179,7 @@ module PharmaObservatory
174
179
  :'company_id',
175
180
  :'company_name',
176
181
  :'name_basis',
182
+ :'registry_name',
177
183
  :'country',
178
184
  :'org_type',
179
185
  :'org_kinds',
@@ -228,6 +234,10 @@ module PharmaObservatory
228
234
  self.name_basis = attributes[:'name_basis']
229
235
  end
230
236
 
237
+ if attributes.key?(:'registry_name')
238
+ self.registry_name = attributes[:'registry_name']
239
+ end
240
+
231
241
  if attributes.key?(:'country')
232
242
  self.country = attributes[:'country']
233
243
  end
@@ -346,6 +356,7 @@ module PharmaObservatory
346
356
  company_id == o.company_id &&
347
357
  company_name == o.company_name &&
348
358
  name_basis == o.name_basis &&
359
+ registry_name == o.registry_name &&
349
360
  country == o.country &&
350
361
  org_type == o.org_type &&
351
362
  org_kinds == o.org_kinds &&
@@ -380,7 +391,7 @@ module PharmaObservatory
380
391
  # Calculates hash code according to all attributes.
381
392
  # @return [Integer] Hash code
382
393
  def hash
383
- [company_id, company_name, name_basis, country, org_type, org_kinds, edgar_cik, edgar_ticker, representative_org_id, parent_company_id, parent_company_name, part_of_since, part_of_since_precision, group_id, group_name, rollup_depth, n_legal_entities, n_member_companies, num_lead_trials, num_collaborator_trials, num_trials, total_lead_enrollment, num_recent_lead_trials, activity_score, is_admitted, has_public_page].hash
394
+ [company_id, company_name, name_basis, registry_name, country, org_type, org_kinds, edgar_cik, edgar_ticker, representative_org_id, parent_company_id, parent_company_name, part_of_since, part_of_since_precision, group_id, group_name, rollup_depth, n_legal_entities, n_member_companies, num_lead_trials, num_collaborator_trials, num_trials, total_lead_enrollment, num_recent_lead_trials, activity_score, is_admitted, has_public_page].hash
384
395
  end
385
396
 
386
397
  # Builds the object from hash
@@ -58,6 +58,9 @@ module PharmaObservatory
58
58
  # Of organisation_count, those with at least one declared edge in the family judged as serving people with the disease; the rest are unclear or not yet judged and are still counted in organisation_count.
59
59
  attr_accessor :organisation_serves_count
60
60
 
61
+ # Of organisation_count, the organisations that declare the family's own disease (an Orphanet concept whose MONDO term is the family, or the family's own condition when it is listed), as against only a disease below it. The rows are on rare_disease_family_organisations.
62
+ attr_accessor :family_organisation_count
63
+
61
64
  # The MONDO release the family was read from.
62
65
  attr_accessor :source_release
63
66
 
@@ -87,6 +90,7 @@ module PharmaObservatory
87
90
  :'parent_is_listed' => :'parent_is_listed',
88
91
  :'organisation_count' => :'organisation_count',
89
92
  :'organisation_serves_count' => :'organisation_serves_count',
93
+ :'family_organisation_count' => :'family_organisation_count',
90
94
  :'source_release' => :'source_release',
91
95
  :'source_url' => :'source_url',
92
96
  :'license_name' => :'license_name',
@@ -121,6 +125,7 @@ module PharmaObservatory
121
125
  :'parent_is_listed' => :'Boolean',
122
126
  :'organisation_count' => :'Integer',
123
127
  :'organisation_serves_count' => :'Integer',
128
+ :'family_organisation_count' => :'Integer',
124
129
  :'source_release' => :'String',
125
130
  :'source_url' => :'String',
126
131
  :'license_name' => :'String',
@@ -145,6 +150,7 @@ module PharmaObservatory
145
150
  :'parent_is_listed',
146
151
  :'organisation_count',
147
152
  :'organisation_serves_count',
153
+ :'family_organisation_count',
148
154
  :'source_release',
149
155
  :'source_url',
150
156
  :'license_name',
@@ -224,6 +230,10 @@ module PharmaObservatory
224
230
  self.organisation_serves_count = attributes[:'organisation_serves_count']
225
231
  end
226
232
 
233
+ if attributes.key?(:'family_organisation_count')
234
+ self.family_organisation_count = attributes[:'family_organisation_count']
235
+ end
236
+
227
237
  if attributes.key?(:'source_release')
228
238
  self.source_release = attributes[:'source_release']
229
239
  end
@@ -275,6 +285,7 @@ module PharmaObservatory
275
285
  parent_is_listed == o.parent_is_listed &&
276
286
  organisation_count == o.organisation_count &&
277
287
  organisation_serves_count == o.organisation_serves_count &&
288
+ family_organisation_count == o.family_organisation_count &&
278
289
  source_release == o.source_release &&
279
290
  source_url == o.source_url &&
280
291
  license_name == o.license_name &&
@@ -290,7 +301,7 @@ module PharmaObservatory
290
301
  # Calculates hash code according to all attributes.
291
302
  # @return [Integer] Hash code
292
303
  def hash
293
- [family_id, family_name, slug, mondo_depth, member_count, disease_count, disease_with_organisation_count, child_family_count, parent_kind, parent_orpha_code, parent_condition_ui, parent_is_listed, organisation_count, organisation_serves_count, source_release, source_url, license_name, attribution].hash
304
+ [family_id, family_name, slug, mondo_depth, member_count, disease_count, disease_with_organisation_count, child_family_count, parent_kind, parent_orpha_code, parent_condition_ui, parent_is_listed, organisation_count, organisation_serves_count, family_organisation_count, source_release, source_url, license_name, attribution].hash
294
305
  end
295
306
 
296
307
  # Builds the object from hash