pharmaobservatory 0.1.4 → 0.1.6
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 +118 -7
- data/docs/ApiV1WhoamiGet200Response.md +13 -1
- data/docs/ApiV1WhoamiGet200ResponseLimits.md +32 -0
- data/docs/ApiV1WhoamiGet200ResponseQuota.md +20 -0
- data/docs/ApiV1WhoamiGet200ResponseQuotaBuckets.md +28 -0
- data/docs/ApiV1WhoamiGet200ResponseQuotaBucketsRequestsPerMinute.md +28 -0
- data/docs/BiomarkerAssayEvidenceResponse.md +58 -0
- data/docs/{BiomarkerCdxAssertionsResponseBuild.md → BiomarkerAssayEvidenceResponseBuild.md} +2 -2
- data/docs/{BiomarkerCdxAssertionsResponseFreshness.md → BiomarkerAssayEvidenceResponseFreshness.md} +2 -2
- data/docs/{BiomarkerCdxAssertionsResponseScope.md → BiomarkerAssayEvidenceResponseScope.md} +2 -2
- data/docs/BiomarkerAssayEvidenceRow.md +68 -0
- data/docs/BiomarkerAssayWhitespaceResponse.md +58 -0
- data/docs/BiomarkerAssayWhitespaceRow.md +66 -0
- data/docs/BiomarkerBqpAssertionsResponse.md +3 -3
- data/docs/BiomarkerCdxAssertionsResponse.md +3 -3
- data/docs/BiomarkerEvidenceResponse.md +3 -3
- data/docs/BiomarkerLiteratureResponse.md +3 -3
- data/docs/BiomarkerPublishingCompaniesResponse.md +3 -3
- data/docs/BiomarkerPublishingCompaniesRow.md +9 -1
- data/docs/BiomarkerRelationsResponse.md +3 -3
- data/docs/BiomarkerSampleCoverageResponse.md +3 -3
- data/docs/BiomarkerSamplePrevalenceResponse.md +3 -3
- data/docs/BiomarkerValidationResponse.md +3 -3
- data/docs/BiomarkerVariantMentionsResponse.md +3 -3
- data/docs/BiomarkersApi.md +160 -0
- data/docs/BiomarkersRecord.md +2 -2
- data/docs/BiomarkersResponse.md +3 -3
- data/docs/BiomarkersRow.md +2 -0
- data/docs/CellLinesRecord.md +2 -2
- data/docs/CellLinesResponse.md +3 -3
- data/docs/CompaniesApi.md +246 -0
- data/docs/CompaniesRecord.md +2 -2
- data/docs/CompaniesResponse.md +3 -3
- data/docs/CompaniesRow.md +1 -1
- data/docs/CompanyAssetsResponse.md +3 -3
- data/docs/CompanyFundingEventsResponse.md +3 -3
- data/docs/CompanyFundingEventsRow.md +1 -1
- data/docs/CompanyFundingSummaryResponse.md +3 -3
- data/docs/CompanyMembersResponse.md +3 -3
- data/docs/CompanyProgramsResponse.md +3 -3
- data/docs/CompanyTargetsResponse.md +3 -3
- data/docs/CompanyTargetsRow.md +5 -1
- data/docs/ConditionAdverseEventsResponse.md +3 -3
- data/docs/ConditionBurdenResponse.md +3 -3
- data/docs/ConditionDeliveryResponse.md +3 -3
- data/docs/ConditionDrugsResponse.md +3 -3
- data/docs/ConditionPrevalenceResponse.md +3 -3
- data/docs/ConditionPrevalenceRow.md +1 -1
- data/docs/ConditionPublicationsResponse.md +3 -3
- data/docs/ConditionRecruitmentByPhaseResponse.md +58 -0
- data/docs/ConditionRecruitmentByPhaseRow.md +50 -0
- data/docs/ConditionRecruitmentDurationResponse.md +58 -0
- data/docs/ConditionRecruitmentDurationRow.md +86 -0
- data/docs/ConditionSitesResponse.md +3 -3
- data/docs/ConditionTrialStartForecastResponse.md +58 -0
- data/docs/ConditionTrialStartForecastRow.md +70 -0
- data/docs/ConditionTrialsResponse.md +3 -3
- data/docs/ConditionTrialsRow.md +4 -2
- data/docs/ConditionsApi.md +240 -0
- data/docs/ConditionsRecord.md +2 -2
- data/docs/ConditionsRecordAttributes.md +3 -1
- data/docs/ConditionsResponse.md +3 -3
- data/docs/DrugPatentCliffResponse.md +3 -3
- data/docs/InstitutionalHoldingsResponse.md +3 -3
- data/docs/InstitutionalHoldingsRow.md +7 -1
- data/docs/InvestorFundsResponse.md +58 -0
- data/docs/InvestorFundsRow.md +24 -0
- data/docs/InvestorPortfolioResponse.md +58 -0
- data/docs/InvestorPortfolioRow.md +42 -0
- data/docs/InvestorPrivateFundsResponse.md +58 -0
- data/docs/InvestorPrivateFundsRow.md +44 -0
- data/docs/InvestorsApi.md +633 -0
- data/docs/InvestorsRecord.md +38 -0
- data/docs/InvestorsResponse.md +58 -0
- data/docs/InvestorsRow.md +54 -0
- data/docs/LegalEntitiesApi.md +240 -0
- data/docs/LegalEntitiesRecord.md +2 -2
- data/docs/LegalEntitiesResponse.md +3 -3
- data/docs/LegalEntitiesRow.md +1 -1
- data/docs/ManagersApi.md +233 -0
- data/docs/ManagersRecord.md +38 -0
- data/docs/ManagersResponse.md +58 -0
- data/docs/ManagersRow.md +46 -0
- data/docs/OrgDisclosuresResponse.md +58 -0
- data/docs/OrgDisclosuresRow.md +56 -0
- data/docs/OrgRelationshipsResponse.md +58 -0
- data/docs/OrgRelationshipsRow.md +68 -0
- data/docs/OwnershipPositionsResponse.md +3 -3
- data/docs/OwnershipPositionsRow.md +16 -14
- data/docs/PdufaDatesResponse.md +3 -3
- data/docs/SiteBedsYearlyResponse.md +3 -3
- data/docs/SiteCroTrialsResponse.md +3 -3
- data/docs/SiteHospitalsResponse.md +3 -3
- data/docs/SiteInvestigatorsResponse.md +3 -3
- data/docs/SiteTrialConditionsResponse.md +3 -3
- data/docs/SiteTrialDrugsResponse.md +3 -3
- data/docs/SiteTrialsResponse.md +3 -3
- data/docs/SiteTrialsRow.md +3 -1
- data/docs/SitesRecord.md +2 -2
- data/docs/SitesResponse.md +3 -3
- data/docs/SponsorRecruitmentByPhaseResponse.md +3 -3
- data/docs/SponsorRecruitmentDurationResponse.md +3 -3
- data/docs/SponsorTrialStartForecastResponse.md +3 -3
- data/docs/SponsorTrialsResponse.md +3 -3
- data/docs/SponsorTrialsRow.md +4 -2
- data/docs/SupplierCapabilityEsgResponse.md +58 -0
- data/docs/SupplierCapabilityEsgRow.md +64 -0
- data/docs/SupplierServicesResponse.md +58 -0
- data/docs/SupplierServicesRow.md +30 -0
- data/docs/SupplierSitesResponse.md +58 -0
- data/docs/SupplierSitesRow.md +42 -0
- data/docs/SuppliersApi.md +313 -0
- data/docs/SuppliersRecord.md +38 -0
- data/docs/SuppliersResponse.md +58 -0
- data/docs/SuppliersRow.md +76 -0
- data/docs/TargetAssociationsResponse.md +58 -0
- data/docs/TargetAssociationsRow.md +26 -0
- data/docs/TargetCrowdingResponse.md +58 -0
- data/docs/TargetCrowdingRow.md +30 -0
- data/docs/TargetDrugsResponse.md +58 -0
- data/docs/TargetDrugsRow.md +38 -0
- data/docs/TargetEvidenceResponse.md +58 -0
- data/docs/TargetEvidenceRow.md +52 -0
- data/docs/TargetPatentMentionsResponse.md +58 -0
- data/docs/TargetPatentMentionsRow.md +34 -0
- data/docs/TargetProgramsResponse.md +58 -0
- data/docs/TargetProgramsRow.md +58 -0
- data/docs/TargetPublicationsResponse.md +58 -0
- data/docs/TargetPublicationsRow.md +32 -0
- data/docs/TargetRegulatoryPrecedentResponse.md +58 -0
- data/docs/TargetRegulatoryPrecedentRow.md +38 -0
- data/docs/TargetTrialsResponse.md +58 -0
- data/docs/TargetTrialsRow.md +46 -0
- data/docs/TargetsApi.md +1033 -0
- data/docs/TargetsRecord.md +38 -0
- data/docs/TargetsResponse.md +58 -0
- data/docs/TargetsRow.md +68 -0
- data/docs/TrialAdverseEventsResponse.md +3 -3
- data/docs/TrialChangesResponse.md +3 -3
- data/docs/TrialDeliveryResponse.md +3 -3
- data/docs/TrialDeliveryRow.md +7 -5
- data/docs/TrialDemographicsResponse.md +3 -3
- data/docs/TrialDrugClassesResponse.md +58 -0
- data/docs/TrialDrugClassesRow.md +28 -0
- data/docs/TrialDrugsResponse.md +3 -3
- data/docs/TrialEnrollmentHistoryResponse.md +3 -3
- data/docs/TrialEnrollmentRateResponse.md +3 -3
- data/docs/TrialEnrollmentRateRow.md +5 -3
- data/docs/TrialExtractedEndpointsResponse.md +3 -3
- data/docs/TrialKolsResponse.md +58 -0
- data/docs/TrialKolsRow.md +32 -0
- data/docs/TrialOutcomeMeasuresResponse.md +3 -3
- data/docs/TrialResearchPaymentsResponse.md +58 -0
- data/docs/TrialResearchPaymentsRow.md +44 -0
- data/docs/TrialSiteHistoryResponse.md +58 -0
- data/docs/TrialSiteHistoryRow.md +50 -0
- data/docs/TrialSitesResponse.md +3 -3
- data/docs/TrialsApi.md +320 -0
- data/docs/TrialsRecord.md +2 -2
- data/docs/TrialsResponse.md +3 -3
- data/docs/TrialsRow.md +3 -3
- data/lib/pharmaobservatory/api/biomarkers_api.rb +168 -0
- data/lib/pharmaobservatory/api/companies_api.rb +273 -0
- data/lib/pharmaobservatory/api/conditions_api.rb +252 -0
- data/lib/pharmaobservatory/api/investors_api.rb +665 -0
- data/lib/pharmaobservatory/api/legal_entities_api.rb +252 -0
- data/lib/pharmaobservatory/api/managers_api.rb +245 -0
- data/lib/pharmaobservatory/api/suppliers_api.rb +329 -0
- data/lib/pharmaobservatory/api/targets_api.rb +1085 -0
- data/lib/pharmaobservatory/api/trials_api.rb +336 -0
- data/lib/pharmaobservatory/models/api_v1_whoami_get200_response.rb +62 -4
- data/lib/pharmaobservatory/models/api_v1_whoami_get200_response_limits.rb +419 -0
- data/lib/pharmaobservatory/models/api_v1_whoami_get200_response_quota.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_whoami_get200_response_quota_buckets.rb +367 -0
- data/lib/pharmaobservatory/models/api_v1_whoami_get200_response_quota_buckets_requests_per_minute.rb +367 -0
- data/lib/pharmaobservatory/models/biomarker_assay_evidence_response.rb +478 -0
- data/lib/pharmaobservatory/models/{biomarker_cdx_assertions_response_build.rb → biomarker_assay_evidence_response_build.rb} +3 -3
- data/lib/pharmaobservatory/models/{biomarker_cdx_assertions_response_freshness.rb → biomarker_assay_evidence_response_freshness.rb} +3 -3
- data/lib/pharmaobservatory/models/{biomarker_cdx_assertions_response_scope.rb → biomarker_assay_evidence_response_scope.rb} +3 -3
- data/lib/pharmaobservatory/models/biomarker_assay_evidence_row.rb +506 -0
- data/lib/pharmaobservatory/models/biomarker_assay_whitespace_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_assay_whitespace_row.rb +499 -0
- data/lib/pharmaobservatory/models/biomarker_bqp_assertions_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_cdx_assertions_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_evidence_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_literature_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_publishing_companies_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_publishing_companies_row.rb +49 -5
- data/lib/pharmaobservatory/models/biomarker_relations_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_sample_coverage_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_sample_prevalence_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_validation_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_variant_mentions_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarkers_record.rb +2 -2
- data/lib/pharmaobservatory/models/biomarkers_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarkers_row.rb +12 -1
- data/lib/pharmaobservatory/models/cell_lines_record.rb +2 -2
- data/lib/pharmaobservatory/models/cell_lines_response.rb +3 -3
- data/lib/pharmaobservatory/models/companies_record.rb +2 -2
- data/lib/pharmaobservatory/models/companies_response.rb +3 -3
- data/lib/pharmaobservatory/models/companies_row.rb +1 -1
- data/lib/pharmaobservatory/models/company_assets_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_funding_events_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_funding_events_row.rb +1 -1
- data/lib/pharmaobservatory/models/company_funding_summary_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_members_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_programs_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_targets_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_targets_row.rb +27 -5
- data/lib/pharmaobservatory/models/condition_adverse_events_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_burden_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_delivery_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_drugs_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_prevalence_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_prevalence_row.rb +1 -1
- data/lib/pharmaobservatory/models/condition_publications_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_recruitment_by_phase_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_recruitment_by_phase_row.rb +399 -0
- data/lib/pharmaobservatory/models/condition_recruitment_duration_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_recruitment_duration_row.rb +597 -0
- data/lib/pharmaobservatory/models/condition_sites_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_trial_start_forecast_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_trial_start_forecast_row.rb +509 -0
- data/lib/pharmaobservatory/models/condition_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_trials_row.rb +14 -3
- data/lib/pharmaobservatory/models/conditions_record.rb +2 -2
- data/lib/pharmaobservatory/models/conditions_record_attributes.rb +13 -4
- data/lib/pharmaobservatory/models/conditions_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_patent_cliff_response.rb +3 -3
- data/lib/pharmaobservatory/models/institutional_holdings_response.rb +3 -3
- data/lib/pharmaobservatory/models/institutional_holdings_row.rb +35 -2
- data/lib/pharmaobservatory/models/investor_funds_response.rb +478 -0
- data/lib/pharmaobservatory/models/investor_funds_row.rb +256 -0
- data/lib/pharmaobservatory/models/investor_portfolio_response.rb +478 -0
- data/lib/pharmaobservatory/models/investor_portfolio_row.rb +357 -0
- data/lib/pharmaobservatory/models/investor_private_funds_response.rb +478 -0
- data/lib/pharmaobservatory/models/investor_private_funds_row.rb +366 -0
- data/lib/pharmaobservatory/models/investors_record.rb +385 -0
- data/lib/pharmaobservatory/models/investors_response.rb +478 -0
- data/lib/pharmaobservatory/models/investors_row.rb +421 -0
- data/lib/pharmaobservatory/models/legal_entities_record.rb +2 -2
- data/lib/pharmaobservatory/models/legal_entities_response.rb +3 -3
- data/lib/pharmaobservatory/models/legal_entities_row.rb +1 -1
- data/lib/pharmaobservatory/models/managers_record.rb +385 -0
- data/lib/pharmaobservatory/models/managers_response.rb +478 -0
- data/lib/pharmaobservatory/models/managers_row.rb +377 -0
- data/lib/pharmaobservatory/models/org_disclosures_response.rb +478 -0
- data/lib/pharmaobservatory/models/org_disclosures_row.rb +432 -0
- data/lib/pharmaobservatory/models/org_relationships_response.rb +478 -0
- data/lib/pharmaobservatory/models/org_relationships_row.rb +498 -0
- data/lib/pharmaobservatory/models/ownership_positions_response.rb +3 -3
- data/lib/pharmaobservatory/models/ownership_positions_row.rb +26 -15
- data/lib/pharmaobservatory/models/pdufa_dates_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_beds_yearly_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_cro_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_hospitals_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_investigators_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_trial_conditions_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_trial_drugs_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_trials_row.rb +13 -2
- data/lib/pharmaobservatory/models/sites_record.rb +2 -2
- data/lib/pharmaobservatory/models/sites_response.rb +3 -3
- data/lib/pharmaobservatory/models/sponsor_recruitment_by_phase_response.rb +3 -3
- data/lib/pharmaobservatory/models/sponsor_recruitment_duration_response.rb +3 -3
- data/lib/pharmaobservatory/models/sponsor_trial_start_forecast_response.rb +3 -3
- data/lib/pharmaobservatory/models/sponsor_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/sponsor_trials_row.rb +14 -3
- data/lib/pharmaobservatory/models/supplier_capability_esg_response.rb +478 -0
- data/lib/pharmaobservatory/models/supplier_capability_esg_row.rb +480 -0
- data/lib/pharmaobservatory/models/supplier_services_response.rb +478 -0
- data/lib/pharmaobservatory/models/supplier_services_row.rb +289 -0
- data/lib/pharmaobservatory/models/supplier_sites_response.rb +478 -0
- data/lib/pharmaobservatory/models/supplier_sites_row.rb +357 -0
- data/lib/pharmaobservatory/models/suppliers_record.rb +385 -0
- data/lib/pharmaobservatory/models/suppliers_response.rb +478 -0
- data/lib/pharmaobservatory/models/suppliers_row.rb +544 -0
- data/lib/pharmaobservatory/models/target_associations_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_associations_row.rb +267 -0
- data/lib/pharmaobservatory/models/target_crowding_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_crowding_row.rb +289 -0
- data/lib/pharmaobservatory/models/target_drugs_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_drugs_row.rb +335 -0
- data/lib/pharmaobservatory/models/target_evidence_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_evidence_row.rb +410 -0
- data/lib/pharmaobservatory/models/target_patent_mentions_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_patent_mentions_row.rb +311 -0
- data/lib/pharmaobservatory/models/target_programs_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_programs_row.rb +447 -0
- data/lib/pharmaobservatory/models/target_publications_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_publications_row.rb +300 -0
- data/lib/pharmaobservatory/models/target_regulatory_precedent_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_regulatory_precedent_row.rb +333 -0
- data/lib/pharmaobservatory/models/target_trials_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_trials_row.rb +377 -0
- data/lib/pharmaobservatory/models/targets_record.rb +385 -0
- data/lib/pharmaobservatory/models/targets_response.rb +478 -0
- data/lib/pharmaobservatory/models/targets_row.rb +498 -0
- data/lib/pharmaobservatory/models/trial_adverse_events_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_changes_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_delivery_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_delivery_row.rb +22 -11
- data/lib/pharmaobservatory/models/trial_demographics_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_drug_classes_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_drug_classes_row.rb +278 -0
- data/lib/pharmaobservatory/models/trial_drugs_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_enrollment_history_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_enrollment_rate_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_enrollment_rate_row.rb +15 -4
- data/lib/pharmaobservatory/models/trial_extracted_endpoints_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_kols_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_kols_row.rb +302 -0
- data/lib/pharmaobservatory/models/trial_outcome_measures_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_research_payments_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_research_payments_row.rb +366 -0
- data/lib/pharmaobservatory/models/trial_site_history_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_site_history_row.rb +401 -0
- data/lib/pharmaobservatory/models/trial_sites_response.rb +3 -3
- data/lib/pharmaobservatory/models/trials_record.rb +2 -2
- data/lib/pharmaobservatory/models/trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/trials_row.rb +3 -3
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +75 -3
- metadata +152 -8
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pharma Observatory Public REST API
|
|
3
|
+
|
|
4
|
+
#Read-only REST API over the Pharma Observatory biomedical data platform. Reference: https://pharmaobservatory.com/api-reference
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.13.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module PharmaObservatory
|
|
17
|
+
# One row of the org_relationships dataset: one row per directed edge: subject organization, object organization, predicate and source. A grouped request returns the group columns and the measures instead, as additional properties.
|
|
18
|
+
class OrgRelationshipsRow
|
|
19
|
+
# Legal-entity level: the subject's organization record.
|
|
20
|
+
attr_accessor :subject_org_id
|
|
21
|
+
|
|
22
|
+
# The organization's name as filed.
|
|
23
|
+
attr_accessor :subject_name
|
|
24
|
+
|
|
25
|
+
# Company level: the subject's company (null when unresolved).
|
|
26
|
+
attr_accessor :subject_company_id
|
|
27
|
+
|
|
28
|
+
# Display name of the subject's company.
|
|
29
|
+
attr_accessor :subject_company_name
|
|
30
|
+
|
|
31
|
+
# Group level: the subject's current ultimate parent; a root's group is itself.
|
|
32
|
+
attr_accessor :subject_group_id
|
|
33
|
+
|
|
34
|
+
# Display name of the subject's group.
|
|
35
|
+
attr_accessor :subject_group_name
|
|
36
|
+
|
|
37
|
+
# Legal-entity level: the object's organization record.
|
|
38
|
+
attr_accessor :object_org_id
|
|
39
|
+
|
|
40
|
+
# The organization's name as filed.
|
|
41
|
+
attr_accessor :object_name
|
|
42
|
+
|
|
43
|
+
# Company level: the object's company (null when unresolved).
|
|
44
|
+
attr_accessor :object_company_id
|
|
45
|
+
|
|
46
|
+
# Display name of the object's company.
|
|
47
|
+
attr_accessor :object_company_name
|
|
48
|
+
|
|
49
|
+
# Group level: the object's current ultimate parent; a root's group is itself.
|
|
50
|
+
attr_accessor :object_group_id
|
|
51
|
+
|
|
52
|
+
# Display name of the object's group.
|
|
53
|
+
attr_accessor :object_group_name
|
|
54
|
+
|
|
55
|
+
# The directed relationship from subject to object: parent_of and ultimate_parent_of (corporate ownership, the subject is the parent), linked_charity_of (a charity linked to the main charity), uses_vendor (a sponsor and the contract research organization inferred for its trials), co_sponsors_trial_with (two sponsors of one trial), project_partner_of and awards_to (UK research grants).
|
|
56
|
+
attr_accessor :predicate
|
|
57
|
+
|
|
58
|
+
# The family of the predicate: corporate_structure (parent_of, ultimate_parent_of, linked_charity_of), contract_vendor (uses_vendor), co_sponsorship (co_sponsors_trial_with) or research_funding (project_partner_of, awards_to).
|
|
59
|
+
attr_accessor :edge_family
|
|
60
|
+
|
|
61
|
+
# general for an edge from a source that covers organizations at large (GLEIF, Charity Commission, the contract research organization (CRO) inference); rare_disease_scoped for an edge from a source read only for organizations in the rare-disease evidence set (ROR, co-sponsorship, UK research grants). A rare_disease_scoped edge is a true edge and an incomplete picture: an organization with none of them has not been shown to have none.
|
|
62
|
+
attr_accessor :edge_scope
|
|
63
|
+
|
|
64
|
+
# The source that asserted the edge: gleif (Global Legal Entity Identifier Foundation Golden Copy), charity_commission, aact_cro_inference (inferred from ClinicalTrials.gov filings against a curated CRO list), ror (Research Organization Registry), aact (ClinicalTrials.gov) or ukri_gtr (UK Research and Innovation Gateway to Research).
|
|
65
|
+
attr_accessor :source_key
|
|
66
|
+
|
|
67
|
+
# The kind of evidence behind the edge: registry (a register entry), trial, project or grant.
|
|
68
|
+
attr_accessor :evidence_type
|
|
69
|
+
|
|
70
|
+
# authoritative when the source itself filed the relationship; derived when the edge is an inference (the CRO edge is a curated-list name match, not a filing).
|
|
71
|
+
attr_accessor :authority_class
|
|
72
|
+
|
|
73
|
+
# The source records behind the edge. Counted within one source, so it does not add across sources.
|
|
74
|
+
attr_accessor :evidence_count
|
|
75
|
+
|
|
76
|
+
# Distinct source record contexts among them (for example distinct trials).
|
|
77
|
+
attr_accessor :context_count
|
|
78
|
+
|
|
79
|
+
# The highest confidence among the edge's records, 0 to 1, where the source states one. Null for sources that state none. A GLEIF ownership-resolution score and a CRO name-match score are different measures; do not compare them.
|
|
80
|
+
attr_accessor :confidence
|
|
81
|
+
|
|
82
|
+
# When the earliest of the edge's records was observed in the source.
|
|
83
|
+
attr_accessor :first_observed_at
|
|
84
|
+
|
|
85
|
+
# When the latest of the edge's records was observed in the source.
|
|
86
|
+
attr_accessor :last_observed_at
|
|
87
|
+
|
|
88
|
+
# The licence of the source behind the edge.
|
|
89
|
+
attr_accessor :license_name
|
|
90
|
+
|
|
91
|
+
# The credit line the source requires for the edge. Show it wherever the edge is shown: the Charity Commission and UK Research and Innovation edges require it under the Open Government Licence v3.0.
|
|
92
|
+
attr_accessor :attribution
|
|
93
|
+
|
|
94
|
+
# Always none: every source behind these edges is open, and a test on the source assertions reports any restricted source that is ever added.
|
|
95
|
+
attr_accessor :restriction_tier
|
|
96
|
+
|
|
97
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
98
|
+
def self.attribute_map
|
|
99
|
+
{
|
|
100
|
+
:'subject_org_id' => :'subject_org_id',
|
|
101
|
+
:'subject_name' => :'subject_name',
|
|
102
|
+
:'subject_company_id' => :'subject_company_id',
|
|
103
|
+
:'subject_company_name' => :'subject_company_name',
|
|
104
|
+
:'subject_group_id' => :'subject_group_id',
|
|
105
|
+
:'subject_group_name' => :'subject_group_name',
|
|
106
|
+
:'object_org_id' => :'object_org_id',
|
|
107
|
+
:'object_name' => :'object_name',
|
|
108
|
+
:'object_company_id' => :'object_company_id',
|
|
109
|
+
:'object_company_name' => :'object_company_name',
|
|
110
|
+
:'object_group_id' => :'object_group_id',
|
|
111
|
+
:'object_group_name' => :'object_group_name',
|
|
112
|
+
:'predicate' => :'predicate',
|
|
113
|
+
:'edge_family' => :'edge_family',
|
|
114
|
+
:'edge_scope' => :'edge_scope',
|
|
115
|
+
:'source_key' => :'source_key',
|
|
116
|
+
:'evidence_type' => :'evidence_type',
|
|
117
|
+
:'authority_class' => :'authority_class',
|
|
118
|
+
:'evidence_count' => :'evidence_count',
|
|
119
|
+
:'context_count' => :'context_count',
|
|
120
|
+
:'confidence' => :'confidence',
|
|
121
|
+
:'first_observed_at' => :'first_observed_at',
|
|
122
|
+
:'last_observed_at' => :'last_observed_at',
|
|
123
|
+
:'license_name' => :'license_name',
|
|
124
|
+
:'attribution' => :'attribution',
|
|
125
|
+
:'restriction_tier' => :'restriction_tier'
|
|
126
|
+
}
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Returns attribute mapping this model knows about
|
|
130
|
+
def self.acceptable_attribute_map
|
|
131
|
+
attribute_map
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Returns all the JSON keys this model knows about
|
|
135
|
+
def self.acceptable_attributes
|
|
136
|
+
acceptable_attribute_map.values
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Attribute type mapping.
|
|
140
|
+
def self.openapi_types
|
|
141
|
+
{
|
|
142
|
+
:'subject_org_id' => :'String',
|
|
143
|
+
:'subject_name' => :'String',
|
|
144
|
+
:'subject_company_id' => :'String',
|
|
145
|
+
:'subject_company_name' => :'String',
|
|
146
|
+
:'subject_group_id' => :'String',
|
|
147
|
+
:'subject_group_name' => :'String',
|
|
148
|
+
:'object_org_id' => :'String',
|
|
149
|
+
:'object_name' => :'String',
|
|
150
|
+
:'object_company_id' => :'String',
|
|
151
|
+
:'object_company_name' => :'String',
|
|
152
|
+
:'object_group_id' => :'String',
|
|
153
|
+
:'object_group_name' => :'String',
|
|
154
|
+
:'predicate' => :'String',
|
|
155
|
+
:'edge_family' => :'String',
|
|
156
|
+
:'edge_scope' => :'String',
|
|
157
|
+
:'source_key' => :'String',
|
|
158
|
+
:'evidence_type' => :'String',
|
|
159
|
+
:'authority_class' => :'String',
|
|
160
|
+
:'evidence_count' => :'Integer',
|
|
161
|
+
:'context_count' => :'Integer',
|
|
162
|
+
:'confidence' => :'Float',
|
|
163
|
+
:'first_observed_at' => :'Time',
|
|
164
|
+
:'last_observed_at' => :'Time',
|
|
165
|
+
:'license_name' => :'String',
|
|
166
|
+
:'attribution' => :'String',
|
|
167
|
+
:'restriction_tier' => :'String'
|
|
168
|
+
}
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# List of attributes with nullable: true
|
|
172
|
+
def self.openapi_nullable
|
|
173
|
+
Set.new([
|
|
174
|
+
:'subject_org_id',
|
|
175
|
+
:'subject_name',
|
|
176
|
+
:'subject_company_id',
|
|
177
|
+
:'subject_company_name',
|
|
178
|
+
:'subject_group_id',
|
|
179
|
+
:'subject_group_name',
|
|
180
|
+
:'object_org_id',
|
|
181
|
+
:'object_name',
|
|
182
|
+
:'object_company_id',
|
|
183
|
+
:'object_company_name',
|
|
184
|
+
:'object_group_id',
|
|
185
|
+
:'object_group_name',
|
|
186
|
+
:'predicate',
|
|
187
|
+
:'edge_family',
|
|
188
|
+
:'edge_scope',
|
|
189
|
+
:'source_key',
|
|
190
|
+
:'evidence_type',
|
|
191
|
+
:'authority_class',
|
|
192
|
+
:'evidence_count',
|
|
193
|
+
:'context_count',
|
|
194
|
+
:'confidence',
|
|
195
|
+
:'first_observed_at',
|
|
196
|
+
:'last_observed_at',
|
|
197
|
+
:'license_name',
|
|
198
|
+
:'attribution',
|
|
199
|
+
:'restriction_tier'
|
|
200
|
+
])
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Initializes the object
|
|
204
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
205
|
+
def initialize(attributes = {})
|
|
206
|
+
if (!attributes.is_a?(Hash))
|
|
207
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PharmaObservatory::OrgRelationshipsRow` initialize method"
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
211
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
212
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
213
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
214
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PharmaObservatory::OrgRelationshipsRow`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
215
|
+
end
|
|
216
|
+
h[k.to_sym] = v
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
if attributes.key?(:'subject_org_id')
|
|
220
|
+
self.subject_org_id = attributes[:'subject_org_id']
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
if attributes.key?(:'subject_name')
|
|
224
|
+
self.subject_name = attributes[:'subject_name']
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
if attributes.key?(:'subject_company_id')
|
|
228
|
+
self.subject_company_id = attributes[:'subject_company_id']
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
if attributes.key?(:'subject_company_name')
|
|
232
|
+
self.subject_company_name = attributes[:'subject_company_name']
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
if attributes.key?(:'subject_group_id')
|
|
236
|
+
self.subject_group_id = attributes[:'subject_group_id']
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
if attributes.key?(:'subject_group_name')
|
|
240
|
+
self.subject_group_name = attributes[:'subject_group_name']
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
if attributes.key?(:'object_org_id')
|
|
244
|
+
self.object_org_id = attributes[:'object_org_id']
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
if attributes.key?(:'object_name')
|
|
248
|
+
self.object_name = attributes[:'object_name']
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
if attributes.key?(:'object_company_id')
|
|
252
|
+
self.object_company_id = attributes[:'object_company_id']
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
if attributes.key?(:'object_company_name')
|
|
256
|
+
self.object_company_name = attributes[:'object_company_name']
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
if attributes.key?(:'object_group_id')
|
|
260
|
+
self.object_group_id = attributes[:'object_group_id']
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
if attributes.key?(:'object_group_name')
|
|
264
|
+
self.object_group_name = attributes[:'object_group_name']
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
if attributes.key?(:'predicate')
|
|
268
|
+
self.predicate = attributes[:'predicate']
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
if attributes.key?(:'edge_family')
|
|
272
|
+
self.edge_family = attributes[:'edge_family']
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
if attributes.key?(:'edge_scope')
|
|
276
|
+
self.edge_scope = attributes[:'edge_scope']
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
if attributes.key?(:'source_key')
|
|
280
|
+
self.source_key = attributes[:'source_key']
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
if attributes.key?(:'evidence_type')
|
|
284
|
+
self.evidence_type = attributes[:'evidence_type']
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
if attributes.key?(:'authority_class')
|
|
288
|
+
self.authority_class = attributes[:'authority_class']
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
if attributes.key?(:'evidence_count')
|
|
292
|
+
self.evidence_count = attributes[:'evidence_count']
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
if attributes.key?(:'context_count')
|
|
296
|
+
self.context_count = attributes[:'context_count']
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
if attributes.key?(:'confidence')
|
|
300
|
+
self.confidence = attributes[:'confidence']
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
if attributes.key?(:'first_observed_at')
|
|
304
|
+
self.first_observed_at = attributes[:'first_observed_at']
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
if attributes.key?(:'last_observed_at')
|
|
308
|
+
self.last_observed_at = attributes[:'last_observed_at']
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
if attributes.key?(:'license_name')
|
|
312
|
+
self.license_name = attributes[:'license_name']
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
if attributes.key?(:'attribution')
|
|
316
|
+
self.attribution = attributes[:'attribution']
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
if attributes.key?(:'restriction_tier')
|
|
320
|
+
self.restriction_tier = attributes[:'restriction_tier']
|
|
321
|
+
end
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
325
|
+
# @return Array for valid properties with the reasons
|
|
326
|
+
def list_invalid_properties
|
|
327
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
328
|
+
invalid_properties = Array.new
|
|
329
|
+
invalid_properties
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
# Check to see if the all the properties in the model are valid
|
|
333
|
+
# @return true if the model is valid
|
|
334
|
+
def valid?
|
|
335
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
336
|
+
true
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
# Checks equality by comparing each attribute.
|
|
340
|
+
# @param [Object] Object to be compared
|
|
341
|
+
def ==(o)
|
|
342
|
+
return true if self.equal?(o)
|
|
343
|
+
self.class == o.class &&
|
|
344
|
+
subject_org_id == o.subject_org_id &&
|
|
345
|
+
subject_name == o.subject_name &&
|
|
346
|
+
subject_company_id == o.subject_company_id &&
|
|
347
|
+
subject_company_name == o.subject_company_name &&
|
|
348
|
+
subject_group_id == o.subject_group_id &&
|
|
349
|
+
subject_group_name == o.subject_group_name &&
|
|
350
|
+
object_org_id == o.object_org_id &&
|
|
351
|
+
object_name == o.object_name &&
|
|
352
|
+
object_company_id == o.object_company_id &&
|
|
353
|
+
object_company_name == o.object_company_name &&
|
|
354
|
+
object_group_id == o.object_group_id &&
|
|
355
|
+
object_group_name == o.object_group_name &&
|
|
356
|
+
predicate == o.predicate &&
|
|
357
|
+
edge_family == o.edge_family &&
|
|
358
|
+
edge_scope == o.edge_scope &&
|
|
359
|
+
source_key == o.source_key &&
|
|
360
|
+
evidence_type == o.evidence_type &&
|
|
361
|
+
authority_class == o.authority_class &&
|
|
362
|
+
evidence_count == o.evidence_count &&
|
|
363
|
+
context_count == o.context_count &&
|
|
364
|
+
confidence == o.confidence &&
|
|
365
|
+
first_observed_at == o.first_observed_at &&
|
|
366
|
+
last_observed_at == o.last_observed_at &&
|
|
367
|
+
license_name == o.license_name &&
|
|
368
|
+
attribution == o.attribution &&
|
|
369
|
+
restriction_tier == o.restriction_tier
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
# @see the `==` method
|
|
373
|
+
# @param [Object] Object to be compared
|
|
374
|
+
def eql?(o)
|
|
375
|
+
self == o
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
# Calculates hash code according to all attributes.
|
|
379
|
+
# @return [Integer] Hash code
|
|
380
|
+
def hash
|
|
381
|
+
[subject_org_id, subject_name, subject_company_id, subject_company_name, subject_group_id, subject_group_name, object_org_id, object_name, object_company_id, object_company_name, object_group_id, object_group_name, predicate, edge_family, edge_scope, source_key, evidence_type, authority_class, evidence_count, context_count, confidence, first_observed_at, last_observed_at, license_name, attribution, restriction_tier].hash
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
# Builds the object from hash
|
|
385
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
386
|
+
# @return [Object] Returns the model itself
|
|
387
|
+
def self.build_from_hash(attributes)
|
|
388
|
+
return nil unless attributes.is_a?(Hash)
|
|
389
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
390
|
+
transformed_hash = {}
|
|
391
|
+
openapi_types.each_pair do |key, type|
|
|
392
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
393
|
+
transformed_hash["#{key}"] = nil
|
|
394
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
395
|
+
# check to ensure the input is an array given that the attribute
|
|
396
|
+
# is documented as an array but the input is not
|
|
397
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
398
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
399
|
+
end
|
|
400
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
401
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
402
|
+
end
|
|
403
|
+
end
|
|
404
|
+
new(transformed_hash)
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
# Deserializes the data based on type
|
|
408
|
+
# @param string type Data type
|
|
409
|
+
# @param string value Value to be deserialized
|
|
410
|
+
# @return [Object] Deserialized data
|
|
411
|
+
def self._deserialize(type, value)
|
|
412
|
+
case type.to_sym
|
|
413
|
+
when :Time
|
|
414
|
+
Time.parse(value)
|
|
415
|
+
when :Date
|
|
416
|
+
Date.parse(value)
|
|
417
|
+
when :String
|
|
418
|
+
value.to_s
|
|
419
|
+
when :Integer
|
|
420
|
+
value.to_i
|
|
421
|
+
when :Float
|
|
422
|
+
value.to_f
|
|
423
|
+
when :Boolean
|
|
424
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
425
|
+
true
|
|
426
|
+
else
|
|
427
|
+
false
|
|
428
|
+
end
|
|
429
|
+
when :Object
|
|
430
|
+
# generic object (usually a Hash), return directly
|
|
431
|
+
value
|
|
432
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
433
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
434
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
435
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
436
|
+
k_type = Regexp.last_match[:k_type]
|
|
437
|
+
v_type = Regexp.last_match[:v_type]
|
|
438
|
+
{}.tap do |hash|
|
|
439
|
+
value.each do |k, v|
|
|
440
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
441
|
+
end
|
|
442
|
+
end
|
|
443
|
+
else # model
|
|
444
|
+
# models (e.g. Pet) or oneOf
|
|
445
|
+
klass = PharmaObservatory.const_get(type)
|
|
446
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
447
|
+
end
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
# Returns the string representation of the object
|
|
451
|
+
# @return [String] String presentation of the object
|
|
452
|
+
def to_s
|
|
453
|
+
to_hash.to_s
|
|
454
|
+
end
|
|
455
|
+
|
|
456
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
457
|
+
# @return [Hash] Returns the object in the form of hash
|
|
458
|
+
def to_body
|
|
459
|
+
to_hash
|
|
460
|
+
end
|
|
461
|
+
|
|
462
|
+
# Returns the object in the form of hash
|
|
463
|
+
# @return [Hash] Returns the object in the form of hash
|
|
464
|
+
def to_hash
|
|
465
|
+
hash = {}
|
|
466
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
467
|
+
value = self.send(attr)
|
|
468
|
+
if value.nil?
|
|
469
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
470
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
hash[param] = _to_hash(value)
|
|
474
|
+
end
|
|
475
|
+
hash
|
|
476
|
+
end
|
|
477
|
+
|
|
478
|
+
# Outputs non-array value in the form of hash
|
|
479
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
480
|
+
# @param [Object] value Any valid value
|
|
481
|
+
# @return [Hash] Returns the value in the form of hash
|
|
482
|
+
def _to_hash(value)
|
|
483
|
+
if value.is_a?(Array)
|
|
484
|
+
value.compact.map { |v| _to_hash(v) }
|
|
485
|
+
elsif value.is_a?(Hash)
|
|
486
|
+
{}.tap do |hash|
|
|
487
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
488
|
+
end
|
|
489
|
+
elsif value.respond_to? :to_hash
|
|
490
|
+
value.to_hash
|
|
491
|
+
else
|
|
492
|
+
value
|
|
493
|
+
end
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
end
|
|
@@ -102,7 +102,7 @@ module PharmaObservatory
|
|
|
102
102
|
:'grain' => :'String',
|
|
103
103
|
:'object_type' => :'String',
|
|
104
104
|
:'id' => :'String',
|
|
105
|
-
:'scope' => :'
|
|
105
|
+
:'scope' => :'BiomarkerAssayEvidenceResponseScope',
|
|
106
106
|
:'columns' => :'Array<DatasetColumn>',
|
|
107
107
|
:'rows' => :'Array<OwnershipPositionsRow>',
|
|
108
108
|
:'total' => :'Integer',
|
|
@@ -115,8 +115,8 @@ module PharmaObservatory
|
|
|
115
115
|
:'source_credit' => :'String',
|
|
116
116
|
:'withheld_tiers' => :'Array<String>',
|
|
117
117
|
:'withheld_columns' => :'Array<String>',
|
|
118
|
-
:'freshness' => :'
|
|
119
|
-
:'build' => :'
|
|
118
|
+
:'freshness' => :'BiomarkerAssayEvidenceResponseFreshness',
|
|
119
|
+
:'build' => :'BiomarkerAssayEvidenceResponseBuild',
|
|
120
120
|
:'build_state' => :'DatasetBuildState',
|
|
121
121
|
:'restriction' => :'Hash<String, Object>'
|
|
122
122
|
}
|
|
@@ -16,10 +16,10 @@ require 'time'
|
|
|
16
16
|
module PharmaObservatory
|
|
17
17
|
# One row of the ownership_positions dataset: one row per owner, owned company, filing family and measured dimension (the owner's consolidated current position). A grouped request returns the group columns and the measures instead, as additional properties.
|
|
18
18
|
class OwnershipPositionsRow
|
|
19
|
-
# The position id
|
|
19
|
+
# The position id (the owner rollup id).
|
|
20
20
|
attr_accessor :position_id
|
|
21
21
|
|
|
22
|
-
# The filing family: sec_forms_3_4_5 (insiders), sec_schedules_13d_g (beneficial owners), sec_form_adv (investment adviser control persons)
|
|
22
|
+
# The filing family: sec_forms_3_4_5 (insiders), sec_schedules_13d_g (beneficial owners), sec_form_adv (investment adviser control persons), sec_def_14a (proxy-statement tables) or wikidata (ownership statements in Wikidata).
|
|
23
23
|
attr_accessor :source_class
|
|
24
24
|
|
|
25
25
|
# What the position measures: insider_reporting, beneficial_ownership, voting_power, economic_interest or control. Positions of different dimensions are different measurements and are not added.
|
|
@@ -46,34 +46,37 @@ module PharmaObservatory
|
|
|
46
46
|
# Display name of the owned company's group.
|
|
47
47
|
attr_accessor :subject_group_name
|
|
48
48
|
|
|
49
|
-
# The
|
|
49
|
+
# The key of the owned party in the investor directory when it is an investor (null otherwise). Filter on it for who is reported to own or control an investor.
|
|
50
|
+
attr_accessor :subject_investor_id
|
|
51
|
+
|
|
52
|
+
# The owner's name as filed.
|
|
50
53
|
attr_accessor :owner_name
|
|
51
54
|
|
|
52
|
-
#
|
|
55
|
+
# A label, not a gate: true when the filing marks the owner's privacy status public. It does not affect any other column; the owner's name, identity key and every other field below are populated whatever this value is.
|
|
53
56
|
attr_accessor :owner_name_is_public
|
|
54
57
|
|
|
55
58
|
# What the owner is: organization, natural_person, reporting_group or unknown.
|
|
56
59
|
attr_accessor :owner_kind
|
|
57
60
|
|
|
58
|
-
# The owner's stable identity (an SEC registration number or an adviser registration number)
|
|
61
|
+
# The owner's stable identity (an SEC registration number or an adviser registration number).
|
|
59
62
|
attr_accessor :owner_identity_key
|
|
60
63
|
|
|
61
|
-
# The key of an owner who is a natural person; null for other owners
|
|
64
|
+
# The key of an owner who is a natural person; null for other owners.
|
|
62
65
|
attr_accessor :owner_person_id
|
|
63
66
|
|
|
64
|
-
# The key of the owner in the investor directory when it is one
|
|
67
|
+
# The key of the owner in the investor directory when it is one.
|
|
65
68
|
attr_accessor :owner_investor_id
|
|
66
69
|
|
|
67
|
-
# Legal-entity level: the owner's organization record (null when the owner is not an organization
|
|
70
|
+
# Legal-entity level: the owner's organization record (null when the owner is not an organization or is unresolved).
|
|
68
71
|
attr_accessor :owner_org_id
|
|
69
72
|
|
|
70
|
-
# Company level: the owner's company (null when unresolved
|
|
73
|
+
# Company level: the owner's company (null when unresolved).
|
|
71
74
|
attr_accessor :owner_company_id
|
|
72
75
|
|
|
73
76
|
# Display name of the owner's company.
|
|
74
77
|
attr_accessor :owner_company_name
|
|
75
78
|
|
|
76
|
-
# Group level: the owner's current ultimate parent; a root's group is itself
|
|
79
|
+
# Group level: the owner's current ultimate parent; a root's group is itself.
|
|
77
80
|
attr_accessor :owner_group_id
|
|
78
81
|
|
|
79
82
|
# Display name of the owner's group.
|
|
@@ -124,16 +127,16 @@ module PharmaObservatory
|
|
|
124
127
|
# Of those, positions the filer no longer reports.
|
|
125
128
|
attr_accessor :no_longer_reported_position_count
|
|
126
129
|
|
|
127
|
-
# Date the position was first reported
|
|
130
|
+
# Date the position was first reported.
|
|
128
131
|
attr_accessor :first_observed_date
|
|
129
132
|
|
|
130
|
-
# Date of the latest reported activity
|
|
133
|
+
# Date of the latest reported activity.
|
|
131
134
|
attr_accessor :last_activity_date
|
|
132
135
|
|
|
133
|
-
# Date of the latest filing
|
|
136
|
+
# Date of the latest filing.
|
|
134
137
|
attr_accessor :last_filing_date
|
|
135
138
|
|
|
136
|
-
# A link to the latest filing
|
|
139
|
+
# A link to the latest filing.
|
|
137
140
|
attr_accessor :source_url
|
|
138
141
|
|
|
139
142
|
# True when the row names a natural person.
|
|
@@ -155,6 +158,7 @@ module PharmaObservatory
|
|
|
155
158
|
:'subject_company_name' => :'subject_company_name',
|
|
156
159
|
:'subject_group_id' => :'subject_group_id',
|
|
157
160
|
:'subject_group_name' => :'subject_group_name',
|
|
161
|
+
:'subject_investor_id' => :'subject_investor_id',
|
|
158
162
|
:'owner_name' => :'owner_name',
|
|
159
163
|
:'owner_name_is_public' => :'owner_name_is_public',
|
|
160
164
|
:'owner_kind' => :'owner_kind',
|
|
@@ -213,6 +217,7 @@ module PharmaObservatory
|
|
|
213
217
|
:'subject_company_name' => :'String',
|
|
214
218
|
:'subject_group_id' => :'String',
|
|
215
219
|
:'subject_group_name' => :'String',
|
|
220
|
+
:'subject_investor_id' => :'String',
|
|
216
221
|
:'owner_name' => :'String',
|
|
217
222
|
:'owner_name_is_public' => :'Boolean',
|
|
218
223
|
:'owner_kind' => :'String',
|
|
@@ -261,6 +266,7 @@ module PharmaObservatory
|
|
|
261
266
|
:'subject_company_name',
|
|
262
267
|
:'subject_group_id',
|
|
263
268
|
:'subject_group_name',
|
|
269
|
+
:'subject_investor_id',
|
|
264
270
|
:'owner_name',
|
|
265
271
|
:'owner_name_is_public',
|
|
266
272
|
:'owner_kind',
|
|
@@ -352,6 +358,10 @@ module PharmaObservatory
|
|
|
352
358
|
self.subject_group_name = attributes[:'subject_group_name']
|
|
353
359
|
end
|
|
354
360
|
|
|
361
|
+
if attributes.key?(:'subject_investor_id')
|
|
362
|
+
self.subject_investor_id = attributes[:'subject_investor_id']
|
|
363
|
+
end
|
|
364
|
+
|
|
355
365
|
if attributes.key?(:'owner_name')
|
|
356
366
|
self.owner_name = attributes[:'owner_name']
|
|
357
367
|
end
|
|
@@ -511,6 +521,7 @@ module PharmaObservatory
|
|
|
511
521
|
subject_company_name == o.subject_company_name &&
|
|
512
522
|
subject_group_id == o.subject_group_id &&
|
|
513
523
|
subject_group_name == o.subject_group_name &&
|
|
524
|
+
subject_investor_id == o.subject_investor_id &&
|
|
514
525
|
owner_name == o.owner_name &&
|
|
515
526
|
owner_name_is_public == o.owner_name_is_public &&
|
|
516
527
|
owner_kind == o.owner_kind &&
|
|
@@ -554,7 +565,7 @@ module PharmaObservatory
|
|
|
554
565
|
# Calculates hash code according to all attributes.
|
|
555
566
|
# @return [Integer] Hash code
|
|
556
567
|
def hash
|
|
557
|
-
[position_id, source_class, ownership_dimension, relationship_type, subject_name, subject_org_id, subject_company_id, subject_company_name, subject_group_id, subject_group_name, owner_name, owner_name_is_public, owner_kind, owner_identity_key, owner_person_id, owner_investor_id, owner_org_id, owner_company_id, owner_company_name, owner_group_id, owner_group_name, shares_basis, shares, shares_direct, shares_indirect, derivative_underlying_shares, percent_basis, reported_percent, reported_percent_low, reported_percent_high, percentage_basis, edge_state, position_count, standing_position_count, ceased_position_count, no_longer_reported_position_count, first_observed_date, last_activity_date, last_filing_date, source_url, contains_personal_data, privacy_status].hash
|
|
568
|
+
[position_id, source_class, ownership_dimension, relationship_type, subject_name, subject_org_id, subject_company_id, subject_company_name, subject_group_id, subject_group_name, subject_investor_id, owner_name, owner_name_is_public, owner_kind, owner_identity_key, owner_person_id, owner_investor_id, owner_org_id, owner_company_id, owner_company_name, owner_group_id, owner_group_name, shares_basis, shares, shares_direct, shares_indirect, derivative_underlying_shares, percent_basis, reported_percent, reported_percent_low, reported_percent_high, percentage_basis, edge_state, position_count, standing_position_count, ceased_position_count, no_longer_reported_position_count, first_observed_date, last_activity_date, last_filing_date, source_url, contains_personal_data, privacy_status].hash
|
|
558
569
|
end
|
|
559
570
|
|
|
560
571
|
# Builds the object from hash
|
|
@@ -102,7 +102,7 @@ module PharmaObservatory
|
|
|
102
102
|
:'grain' => :'String',
|
|
103
103
|
:'object_type' => :'String',
|
|
104
104
|
:'id' => :'String',
|
|
105
|
-
:'scope' => :'
|
|
105
|
+
:'scope' => :'BiomarkerAssayEvidenceResponseScope',
|
|
106
106
|
:'columns' => :'Array<DatasetColumn>',
|
|
107
107
|
:'rows' => :'Array<PdufaDatesRow>',
|
|
108
108
|
:'total' => :'Integer',
|
|
@@ -115,8 +115,8 @@ module PharmaObservatory
|
|
|
115
115
|
:'source_credit' => :'String',
|
|
116
116
|
:'withheld_tiers' => :'Array<String>',
|
|
117
117
|
:'withheld_columns' => :'Array<String>',
|
|
118
|
-
:'freshness' => :'
|
|
119
|
-
:'build' => :'
|
|
118
|
+
:'freshness' => :'BiomarkerAssayEvidenceResponseFreshness',
|
|
119
|
+
:'build' => :'BiomarkerAssayEvidenceResponseBuild',
|
|
120
120
|
:'build_state' => :'DatasetBuildState',
|
|
121
121
|
:'restriction' => :'Hash<String, Object>'
|
|
122
122
|
}
|