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,509 @@
|
|
|
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 condition_trial_start_forecast dataset: one row per condition and target year. A grouped request returns the group columns and the measures instead, as additional properties.
|
|
18
|
+
class ConditionTrialStartForecastRow
|
|
19
|
+
# The condition key, a MeSH (Medical Subject Headings) descriptor id (D followed by six to nine digits).
|
|
20
|
+
attr_accessor :condition_id
|
|
21
|
+
|
|
22
|
+
# The condition's MeSH heading.
|
|
23
|
+
attr_accessor :condition_name
|
|
24
|
+
|
|
25
|
+
# The calendar year forecast.
|
|
26
|
+
attr_accessor :target_year
|
|
27
|
+
|
|
28
|
+
# Years ahead of the build year (0 is the current year).
|
|
29
|
+
attr_accessor :horizon_offset
|
|
30
|
+
|
|
31
|
+
# Months of the target year already observed.
|
|
32
|
+
attr_accessor :months_observed
|
|
33
|
+
|
|
34
|
+
# Months of the target year forecast.
|
|
35
|
+
attr_accessor :months_forecast
|
|
36
|
+
|
|
37
|
+
# Trials started in the target year up to the training cutoff.
|
|
38
|
+
attr_accessor :input_observed_through_cutoff
|
|
39
|
+
|
|
40
|
+
# Trials registered as planned to start in the rest of the target year.
|
|
41
|
+
attr_accessor :input_planned_remaining
|
|
42
|
+
|
|
43
|
+
# The forecast trial starts for the whole target year. A forecast of the eventual count, never an actual count, and it carries no interval.
|
|
44
|
+
attr_accessor :forecast_point
|
|
45
|
+
|
|
46
|
+
# The series' forecast status.
|
|
47
|
+
attr_accessor :forecast_status
|
|
48
|
+
|
|
49
|
+
# Trials of the condition (as in condition_trials) with a start date in the 60 calendar months ending with the cutoff month.
|
|
50
|
+
attr_accessor :input_trials_window_60m
|
|
51
|
+
|
|
52
|
+
# Average trial starts per year over the last 60 months.
|
|
53
|
+
attr_accessor :input_starts_per_year_60m
|
|
54
|
+
|
|
55
|
+
# The series size bucket the backtest error is measured in.
|
|
56
|
+
attr_accessor :size_bucket
|
|
57
|
+
|
|
58
|
+
# The horizon the backtest error was measured at.
|
|
59
|
+
attr_accessor :backtest_horizon
|
|
60
|
+
|
|
61
|
+
# Backtest symmetric mean absolute percentage error.
|
|
62
|
+
attr_accessor :backtest_smape_pct
|
|
63
|
+
|
|
64
|
+
# Backtest relative bias.
|
|
65
|
+
attr_accessor :backtest_rel_bias
|
|
66
|
+
|
|
67
|
+
# Backtest mean absolute error relative to the seasonal naive baseline.
|
|
68
|
+
attr_accessor :backtest_relmae_vs_snaive
|
|
69
|
+
|
|
70
|
+
# Series the backtest covered.
|
|
71
|
+
attr_accessor :backtest_n_series
|
|
72
|
+
|
|
73
|
+
# The kind of series the backtest error was measured on.
|
|
74
|
+
attr_accessor :backtest_series_kind
|
|
75
|
+
|
|
76
|
+
# The backtest run reference.
|
|
77
|
+
attr_accessor :backtest_ref
|
|
78
|
+
|
|
79
|
+
# The multiple of input_planned_remaining the planned-start method adds to the months after the training cutoff; null on a row built with the flat mean alone.
|
|
80
|
+
attr_accessor :planned_start_coefficient
|
|
81
|
+
|
|
82
|
+
# On a planned-start row, whether the stricter re-check (trained only on target years at least two before the cutoff year) adopted the same cell; null on a flat-mean row.
|
|
83
|
+
attr_accessor :planned_start_stricter_check_agrees
|
|
84
|
+
|
|
85
|
+
# On a planned-start row, the relative bias (forecast minus actual over actual) of the stricter re-check; null on a flat-mean row.
|
|
86
|
+
attr_accessor :planned_start_stricter_check_rel_bias
|
|
87
|
+
|
|
88
|
+
# The forecasting model.
|
|
89
|
+
attr_accessor :model_name
|
|
90
|
+
|
|
91
|
+
# The model version.
|
|
92
|
+
attr_accessor :model_version
|
|
93
|
+
|
|
94
|
+
# The date the model's training data ends.
|
|
95
|
+
attr_accessor :training_cutoff
|
|
96
|
+
|
|
97
|
+
# How the forecast was produced.
|
|
98
|
+
attr_accessor :method
|
|
99
|
+
|
|
100
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
101
|
+
def self.attribute_map
|
|
102
|
+
{
|
|
103
|
+
:'condition_id' => :'condition_id',
|
|
104
|
+
:'condition_name' => :'condition_name',
|
|
105
|
+
:'target_year' => :'target_year',
|
|
106
|
+
:'horizon_offset' => :'horizon_offset',
|
|
107
|
+
:'months_observed' => :'months_observed',
|
|
108
|
+
:'months_forecast' => :'months_forecast',
|
|
109
|
+
:'input_observed_through_cutoff' => :'input_observed_through_cutoff',
|
|
110
|
+
:'input_planned_remaining' => :'input_planned_remaining',
|
|
111
|
+
:'forecast_point' => :'forecast_point',
|
|
112
|
+
:'forecast_status' => :'forecast_status',
|
|
113
|
+
:'input_trials_window_60m' => :'input_trials_window_60m',
|
|
114
|
+
:'input_starts_per_year_60m' => :'input_starts_per_year_60m',
|
|
115
|
+
:'size_bucket' => :'size_bucket',
|
|
116
|
+
:'backtest_horizon' => :'backtest_horizon',
|
|
117
|
+
:'backtest_smape_pct' => :'backtest_smape_pct',
|
|
118
|
+
:'backtest_rel_bias' => :'backtest_rel_bias',
|
|
119
|
+
:'backtest_relmae_vs_snaive' => :'backtest_relmae_vs_snaive',
|
|
120
|
+
:'backtest_n_series' => :'backtest_n_series',
|
|
121
|
+
:'backtest_series_kind' => :'backtest_series_kind',
|
|
122
|
+
:'backtest_ref' => :'backtest_ref',
|
|
123
|
+
:'planned_start_coefficient' => :'planned_start_coefficient',
|
|
124
|
+
:'planned_start_stricter_check_agrees' => :'planned_start_stricter_check_agrees',
|
|
125
|
+
:'planned_start_stricter_check_rel_bias' => :'planned_start_stricter_check_rel_bias',
|
|
126
|
+
:'model_name' => :'model_name',
|
|
127
|
+
:'model_version' => :'model_version',
|
|
128
|
+
:'training_cutoff' => :'training_cutoff',
|
|
129
|
+
:'method' => :'method'
|
|
130
|
+
}
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Returns attribute mapping this model knows about
|
|
134
|
+
def self.acceptable_attribute_map
|
|
135
|
+
attribute_map
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Returns all the JSON keys this model knows about
|
|
139
|
+
def self.acceptable_attributes
|
|
140
|
+
acceptable_attribute_map.values
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Attribute type mapping.
|
|
144
|
+
def self.openapi_types
|
|
145
|
+
{
|
|
146
|
+
:'condition_id' => :'String',
|
|
147
|
+
:'condition_name' => :'String',
|
|
148
|
+
:'target_year' => :'Integer',
|
|
149
|
+
:'horizon_offset' => :'Integer',
|
|
150
|
+
:'months_observed' => :'Integer',
|
|
151
|
+
:'months_forecast' => :'Integer',
|
|
152
|
+
:'input_observed_through_cutoff' => :'Integer',
|
|
153
|
+
:'input_planned_remaining' => :'Integer',
|
|
154
|
+
:'forecast_point' => :'Float',
|
|
155
|
+
:'forecast_status' => :'String',
|
|
156
|
+
:'input_trials_window_60m' => :'Integer',
|
|
157
|
+
:'input_starts_per_year_60m' => :'Float',
|
|
158
|
+
:'size_bucket' => :'String',
|
|
159
|
+
:'backtest_horizon' => :'String',
|
|
160
|
+
:'backtest_smape_pct' => :'Float',
|
|
161
|
+
:'backtest_rel_bias' => :'Float',
|
|
162
|
+
:'backtest_relmae_vs_snaive' => :'Float',
|
|
163
|
+
:'backtest_n_series' => :'Integer',
|
|
164
|
+
:'backtest_series_kind' => :'String',
|
|
165
|
+
:'backtest_ref' => :'String',
|
|
166
|
+
:'planned_start_coefficient' => :'Float',
|
|
167
|
+
:'planned_start_stricter_check_agrees' => :'Boolean',
|
|
168
|
+
:'planned_start_stricter_check_rel_bias' => :'Float',
|
|
169
|
+
:'model_name' => :'String',
|
|
170
|
+
:'model_version' => :'String',
|
|
171
|
+
:'training_cutoff' => :'Date',
|
|
172
|
+
:'method' => :'String'
|
|
173
|
+
}
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# List of attributes with nullable: true
|
|
177
|
+
def self.openapi_nullable
|
|
178
|
+
Set.new([
|
|
179
|
+
:'condition_id',
|
|
180
|
+
:'condition_name',
|
|
181
|
+
:'target_year',
|
|
182
|
+
:'horizon_offset',
|
|
183
|
+
:'months_observed',
|
|
184
|
+
:'months_forecast',
|
|
185
|
+
:'input_observed_through_cutoff',
|
|
186
|
+
:'input_planned_remaining',
|
|
187
|
+
:'forecast_point',
|
|
188
|
+
:'forecast_status',
|
|
189
|
+
:'input_trials_window_60m',
|
|
190
|
+
:'input_starts_per_year_60m',
|
|
191
|
+
:'size_bucket',
|
|
192
|
+
:'backtest_horizon',
|
|
193
|
+
:'backtest_smape_pct',
|
|
194
|
+
:'backtest_rel_bias',
|
|
195
|
+
:'backtest_relmae_vs_snaive',
|
|
196
|
+
:'backtest_n_series',
|
|
197
|
+
:'backtest_series_kind',
|
|
198
|
+
:'backtest_ref',
|
|
199
|
+
:'planned_start_coefficient',
|
|
200
|
+
:'planned_start_stricter_check_agrees',
|
|
201
|
+
:'planned_start_stricter_check_rel_bias',
|
|
202
|
+
:'model_name',
|
|
203
|
+
:'model_version',
|
|
204
|
+
:'training_cutoff',
|
|
205
|
+
:'method'
|
|
206
|
+
])
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# Initializes the object
|
|
210
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
211
|
+
def initialize(attributes = {})
|
|
212
|
+
if (!attributes.is_a?(Hash))
|
|
213
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PharmaObservatory::ConditionTrialStartForecastRow` initialize method"
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
217
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
218
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
219
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
220
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PharmaObservatory::ConditionTrialStartForecastRow`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
221
|
+
end
|
|
222
|
+
h[k.to_sym] = v
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
if attributes.key?(:'condition_id')
|
|
226
|
+
self.condition_id = attributes[:'condition_id']
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
if attributes.key?(:'condition_name')
|
|
230
|
+
self.condition_name = attributes[:'condition_name']
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
if attributes.key?(:'target_year')
|
|
234
|
+
self.target_year = attributes[:'target_year']
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
if attributes.key?(:'horizon_offset')
|
|
238
|
+
self.horizon_offset = attributes[:'horizon_offset']
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
if attributes.key?(:'months_observed')
|
|
242
|
+
self.months_observed = attributes[:'months_observed']
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
if attributes.key?(:'months_forecast')
|
|
246
|
+
self.months_forecast = attributes[:'months_forecast']
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
if attributes.key?(:'input_observed_through_cutoff')
|
|
250
|
+
self.input_observed_through_cutoff = attributes[:'input_observed_through_cutoff']
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
if attributes.key?(:'input_planned_remaining')
|
|
254
|
+
self.input_planned_remaining = attributes[:'input_planned_remaining']
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
if attributes.key?(:'forecast_point')
|
|
258
|
+
self.forecast_point = attributes[:'forecast_point']
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
if attributes.key?(:'forecast_status')
|
|
262
|
+
self.forecast_status = attributes[:'forecast_status']
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
if attributes.key?(:'input_trials_window_60m')
|
|
266
|
+
self.input_trials_window_60m = attributes[:'input_trials_window_60m']
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
if attributes.key?(:'input_starts_per_year_60m')
|
|
270
|
+
self.input_starts_per_year_60m = attributes[:'input_starts_per_year_60m']
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
if attributes.key?(:'size_bucket')
|
|
274
|
+
self.size_bucket = attributes[:'size_bucket']
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
if attributes.key?(:'backtest_horizon')
|
|
278
|
+
self.backtest_horizon = attributes[:'backtest_horizon']
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
if attributes.key?(:'backtest_smape_pct')
|
|
282
|
+
self.backtest_smape_pct = attributes[:'backtest_smape_pct']
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
if attributes.key?(:'backtest_rel_bias')
|
|
286
|
+
self.backtest_rel_bias = attributes[:'backtest_rel_bias']
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
if attributes.key?(:'backtest_relmae_vs_snaive')
|
|
290
|
+
self.backtest_relmae_vs_snaive = attributes[:'backtest_relmae_vs_snaive']
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
if attributes.key?(:'backtest_n_series')
|
|
294
|
+
self.backtest_n_series = attributes[:'backtest_n_series']
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
if attributes.key?(:'backtest_series_kind')
|
|
298
|
+
self.backtest_series_kind = attributes[:'backtest_series_kind']
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
if attributes.key?(:'backtest_ref')
|
|
302
|
+
self.backtest_ref = attributes[:'backtest_ref']
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
if attributes.key?(:'planned_start_coefficient')
|
|
306
|
+
self.planned_start_coefficient = attributes[:'planned_start_coefficient']
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
if attributes.key?(:'planned_start_stricter_check_agrees')
|
|
310
|
+
self.planned_start_stricter_check_agrees = attributes[:'planned_start_stricter_check_agrees']
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
if attributes.key?(:'planned_start_stricter_check_rel_bias')
|
|
314
|
+
self.planned_start_stricter_check_rel_bias = attributes[:'planned_start_stricter_check_rel_bias']
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
if attributes.key?(:'model_name')
|
|
318
|
+
self.model_name = attributes[:'model_name']
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
if attributes.key?(:'model_version')
|
|
322
|
+
self.model_version = attributes[:'model_version']
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
if attributes.key?(:'training_cutoff')
|
|
326
|
+
self.training_cutoff = attributes[:'training_cutoff']
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
if attributes.key?(:'method')
|
|
330
|
+
self.method = attributes[:'method']
|
|
331
|
+
end
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
335
|
+
# @return Array for valid properties with the reasons
|
|
336
|
+
def list_invalid_properties
|
|
337
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
338
|
+
invalid_properties = Array.new
|
|
339
|
+
invalid_properties
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
# Check to see if the all the properties in the model are valid
|
|
343
|
+
# @return true if the model is valid
|
|
344
|
+
def valid?
|
|
345
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
346
|
+
true
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
# Checks equality by comparing each attribute.
|
|
350
|
+
# @param [Object] Object to be compared
|
|
351
|
+
def ==(o)
|
|
352
|
+
return true if self.equal?(o)
|
|
353
|
+
self.class == o.class &&
|
|
354
|
+
condition_id == o.condition_id &&
|
|
355
|
+
condition_name == o.condition_name &&
|
|
356
|
+
target_year == o.target_year &&
|
|
357
|
+
horizon_offset == o.horizon_offset &&
|
|
358
|
+
months_observed == o.months_observed &&
|
|
359
|
+
months_forecast == o.months_forecast &&
|
|
360
|
+
input_observed_through_cutoff == o.input_observed_through_cutoff &&
|
|
361
|
+
input_planned_remaining == o.input_planned_remaining &&
|
|
362
|
+
forecast_point == o.forecast_point &&
|
|
363
|
+
forecast_status == o.forecast_status &&
|
|
364
|
+
input_trials_window_60m == o.input_trials_window_60m &&
|
|
365
|
+
input_starts_per_year_60m == o.input_starts_per_year_60m &&
|
|
366
|
+
size_bucket == o.size_bucket &&
|
|
367
|
+
backtest_horizon == o.backtest_horizon &&
|
|
368
|
+
backtest_smape_pct == o.backtest_smape_pct &&
|
|
369
|
+
backtest_rel_bias == o.backtest_rel_bias &&
|
|
370
|
+
backtest_relmae_vs_snaive == o.backtest_relmae_vs_snaive &&
|
|
371
|
+
backtest_n_series == o.backtest_n_series &&
|
|
372
|
+
backtest_series_kind == o.backtest_series_kind &&
|
|
373
|
+
backtest_ref == o.backtest_ref &&
|
|
374
|
+
planned_start_coefficient == o.planned_start_coefficient &&
|
|
375
|
+
planned_start_stricter_check_agrees == o.planned_start_stricter_check_agrees &&
|
|
376
|
+
planned_start_stricter_check_rel_bias == o.planned_start_stricter_check_rel_bias &&
|
|
377
|
+
model_name == o.model_name &&
|
|
378
|
+
model_version == o.model_version &&
|
|
379
|
+
training_cutoff == o.training_cutoff &&
|
|
380
|
+
method == o.method
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
# @see the `==` method
|
|
384
|
+
# @param [Object] Object to be compared
|
|
385
|
+
def eql?(o)
|
|
386
|
+
self == o
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
# Calculates hash code according to all attributes.
|
|
390
|
+
# @return [Integer] Hash code
|
|
391
|
+
def hash
|
|
392
|
+
[condition_id, condition_name, target_year, horizon_offset, months_observed, months_forecast, input_observed_through_cutoff, input_planned_remaining, forecast_point, forecast_status, input_trials_window_60m, input_starts_per_year_60m, size_bucket, backtest_horizon, backtest_smape_pct, backtest_rel_bias, backtest_relmae_vs_snaive, backtest_n_series, backtest_series_kind, backtest_ref, planned_start_coefficient, planned_start_stricter_check_agrees, planned_start_stricter_check_rel_bias, model_name, model_version, training_cutoff, method].hash
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
# Builds the object from hash
|
|
396
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
397
|
+
# @return [Object] Returns the model itself
|
|
398
|
+
def self.build_from_hash(attributes)
|
|
399
|
+
return nil unless attributes.is_a?(Hash)
|
|
400
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
401
|
+
transformed_hash = {}
|
|
402
|
+
openapi_types.each_pair do |key, type|
|
|
403
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
404
|
+
transformed_hash["#{key}"] = nil
|
|
405
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
406
|
+
# check to ensure the input is an array given that the attribute
|
|
407
|
+
# is documented as an array but the input is not
|
|
408
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
409
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
410
|
+
end
|
|
411
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
412
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
413
|
+
end
|
|
414
|
+
end
|
|
415
|
+
new(transformed_hash)
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
# Deserializes the data based on type
|
|
419
|
+
# @param string type Data type
|
|
420
|
+
# @param string value Value to be deserialized
|
|
421
|
+
# @return [Object] Deserialized data
|
|
422
|
+
def self._deserialize(type, value)
|
|
423
|
+
case type.to_sym
|
|
424
|
+
when :Time
|
|
425
|
+
Time.parse(value)
|
|
426
|
+
when :Date
|
|
427
|
+
Date.parse(value)
|
|
428
|
+
when :String
|
|
429
|
+
value.to_s
|
|
430
|
+
when :Integer
|
|
431
|
+
value.to_i
|
|
432
|
+
when :Float
|
|
433
|
+
value.to_f
|
|
434
|
+
when :Boolean
|
|
435
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
436
|
+
true
|
|
437
|
+
else
|
|
438
|
+
false
|
|
439
|
+
end
|
|
440
|
+
when :Object
|
|
441
|
+
# generic object (usually a Hash), return directly
|
|
442
|
+
value
|
|
443
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
444
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
445
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
446
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
447
|
+
k_type = Regexp.last_match[:k_type]
|
|
448
|
+
v_type = Regexp.last_match[:v_type]
|
|
449
|
+
{}.tap do |hash|
|
|
450
|
+
value.each do |k, v|
|
|
451
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
452
|
+
end
|
|
453
|
+
end
|
|
454
|
+
else # model
|
|
455
|
+
# models (e.g. Pet) or oneOf
|
|
456
|
+
klass = PharmaObservatory.const_get(type)
|
|
457
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
458
|
+
end
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
# Returns the string representation of the object
|
|
462
|
+
# @return [String] String presentation of the object
|
|
463
|
+
def to_s
|
|
464
|
+
to_hash.to_s
|
|
465
|
+
end
|
|
466
|
+
|
|
467
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
468
|
+
# @return [Hash] Returns the object in the form of hash
|
|
469
|
+
def to_body
|
|
470
|
+
to_hash
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
# Returns the object in the form of hash
|
|
474
|
+
# @return [Hash] Returns the object in the form of hash
|
|
475
|
+
def to_hash
|
|
476
|
+
hash = {}
|
|
477
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
478
|
+
value = self.send(attr)
|
|
479
|
+
if value.nil?
|
|
480
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
481
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
hash[param] = _to_hash(value)
|
|
485
|
+
end
|
|
486
|
+
hash
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
# Outputs non-array value in the form of hash
|
|
490
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
491
|
+
# @param [Object] value Any valid value
|
|
492
|
+
# @return [Hash] Returns the value in the form of hash
|
|
493
|
+
def _to_hash(value)
|
|
494
|
+
if value.is_a?(Array)
|
|
495
|
+
value.compact.map { |v| _to_hash(v) }
|
|
496
|
+
elsif value.is_a?(Hash)
|
|
497
|
+
{}.tap do |hash|
|
|
498
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
499
|
+
end
|
|
500
|
+
elsif value.respond_to? :to_hash
|
|
501
|
+
value.to_hash
|
|
502
|
+
else
|
|
503
|
+
value
|
|
504
|
+
end
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
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<ConditionTrialsRow>',
|
|
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
|
}
|
|
@@ -34,9 +34,12 @@ module PharmaObservatory
|
|
|
34
34
|
# The registry's study type (INTERVENTIONAL, OBSERVATIONAL or EXPANDED_ACCESS).
|
|
35
35
|
attr_accessor :study_type
|
|
36
36
|
|
|
37
|
-
# The
|
|
37
|
+
# The registry's phase code (PHASE1, PHASE2, PHASE2/PHASE3, NA and so on). Null when the registry gives no phase (observational and expanded-access trials); phase_label carries the display label for those.
|
|
38
38
|
attr_accessor :phase
|
|
39
39
|
|
|
40
|
+
# The trial phase as a display label (Phase 2, Phase 3, Observational, Not applicable, Expanded access, Unknown). The same trial's phase column holds the registry code.
|
|
41
|
+
attr_accessor :phase_label
|
|
42
|
+
|
|
40
43
|
# The registry's overall recruitment status (COMPLETED, RECRUITING, TERMINATED and so on).
|
|
41
44
|
attr_accessor :overall_status
|
|
42
45
|
|
|
@@ -76,7 +79,7 @@ module PharmaObservatory
|
|
|
76
79
|
# Display name of the lead sponsor's group.
|
|
77
80
|
attr_accessor :sponsor_group_name
|
|
78
81
|
|
|
79
|
-
# The registry
|
|
82
|
+
# The funder class the registry declared for the sponsor (INDUSTRY, NIH for the US National Institutes of Health, FED, OTHER_GOV, NETWORK, OTHER, INDIV, AMBIG, UNKNOWN). UNKNOWN is the registry's own code for a class it does not state. Null when the trial has no lead sponsor row.
|
|
80
83
|
attr_accessor :sponsor_agency_class
|
|
81
84
|
|
|
82
85
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -89,6 +92,7 @@ module PharmaObservatory
|
|
|
89
92
|
:'trial_title' => :'trial_title',
|
|
90
93
|
:'study_type' => :'study_type',
|
|
91
94
|
:'phase' => :'phase',
|
|
95
|
+
:'phase_label' => :'phase_label',
|
|
92
96
|
:'overall_status' => :'overall_status',
|
|
93
97
|
:'start_date' => :'start_date',
|
|
94
98
|
:'start_year' => :'start_year',
|
|
@@ -126,6 +130,7 @@ module PharmaObservatory
|
|
|
126
130
|
:'trial_title' => :'String',
|
|
127
131
|
:'study_type' => :'String',
|
|
128
132
|
:'phase' => :'String',
|
|
133
|
+
:'phase_label' => :'String',
|
|
129
134
|
:'overall_status' => :'String',
|
|
130
135
|
:'start_date' => :'Date',
|
|
131
136
|
:'start_year' => :'Integer',
|
|
@@ -153,6 +158,7 @@ module PharmaObservatory
|
|
|
153
158
|
:'trial_title',
|
|
154
159
|
:'study_type',
|
|
155
160
|
:'phase',
|
|
161
|
+
:'phase_label',
|
|
156
162
|
:'overall_status',
|
|
157
163
|
:'start_date',
|
|
158
164
|
:'start_year',
|
|
@@ -214,6 +220,10 @@ module PharmaObservatory
|
|
|
214
220
|
self.phase = attributes[:'phase']
|
|
215
221
|
end
|
|
216
222
|
|
|
223
|
+
if attributes.key?(:'phase_label')
|
|
224
|
+
self.phase_label = attributes[:'phase_label']
|
|
225
|
+
end
|
|
226
|
+
|
|
217
227
|
if attributes.key?(:'overall_status')
|
|
218
228
|
self.overall_status = attributes[:'overall_status']
|
|
219
229
|
end
|
|
@@ -298,6 +308,7 @@ module PharmaObservatory
|
|
|
298
308
|
trial_title == o.trial_title &&
|
|
299
309
|
study_type == o.study_type &&
|
|
300
310
|
phase == o.phase &&
|
|
311
|
+
phase_label == o.phase_label &&
|
|
301
312
|
overall_status == o.overall_status &&
|
|
302
313
|
start_date == o.start_date &&
|
|
303
314
|
start_year == o.start_year &&
|
|
@@ -323,7 +334,7 @@ module PharmaObservatory
|
|
|
323
334
|
# Calculates hash code according to all attributes.
|
|
324
335
|
# @return [Integer] Hash code
|
|
325
336
|
def hash
|
|
326
|
-
[condition_id, condition_name, trial_id, is_direct, trial_title, study_type, phase, overall_status, start_date, start_year, primary_completion_date, last_update_posted_date, enrollment, were_results_reported, sponsor_name, sponsor_org_id, sponsor_company_id, sponsor_company_name, sponsor_group_id, sponsor_group_name, sponsor_agency_class].hash
|
|
337
|
+
[condition_id, condition_name, trial_id, is_direct, trial_title, study_type, phase, phase_label, overall_status, start_date, start_year, primary_completion_date, last_update_posted_date, enrollment, were_results_reported, sponsor_name, sponsor_org_id, sponsor_company_id, sponsor_company_name, sponsor_group_id, sponsor_group_name, sponsor_agency_class].hash
|
|
327
338
|
end
|
|
328
339
|
|
|
329
340
|
# Builds the object from hash
|
|
@@ -74,8 +74,8 @@ module PharmaObservatory
|
|
|
74
74
|
:'datasets' => :'Array<DatasetListing>',
|
|
75
75
|
:'attribution' => :'Array<DatasetAttribution>',
|
|
76
76
|
:'source_credit' => :'String',
|
|
77
|
-
:'freshness' => :'
|
|
78
|
-
:'build' => :'
|
|
77
|
+
:'freshness' => :'BiomarkerAssayEvidenceResponseFreshness',
|
|
78
|
+
:'build' => :'BiomarkerAssayEvidenceResponseBuild',
|
|
79
79
|
:'build_state' => :'DatasetBuildState',
|
|
80
80
|
:'restriction' => :'Hash<String, Object>'
|
|
81
81
|
}
|
|
@@ -19,11 +19,14 @@ module PharmaObservatory
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :condition_delivery
|
|
21
21
|
|
|
22
|
+
attr_accessor :condition_recruitment_duration
|
|
23
|
+
|
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
25
|
def self.attribute_map
|
|
24
26
|
{
|
|
25
27
|
:'condition_burden' => :'condition_burden',
|
|
26
|
-
:'condition_delivery' => :'condition_delivery'
|
|
28
|
+
:'condition_delivery' => :'condition_delivery',
|
|
29
|
+
:'condition_recruitment_duration' => :'condition_recruitment_duration'
|
|
27
30
|
}
|
|
28
31
|
end
|
|
29
32
|
|
|
@@ -41,7 +44,8 @@ module PharmaObservatory
|
|
|
41
44
|
def self.openapi_types
|
|
42
45
|
{
|
|
43
46
|
:'condition_burden' => :'ConditionBurdenRow',
|
|
44
|
-
:'condition_delivery' => :'ConditionDeliveryRow'
|
|
47
|
+
:'condition_delivery' => :'ConditionDeliveryRow',
|
|
48
|
+
:'condition_recruitment_duration' => :'ConditionRecruitmentDurationRow'
|
|
45
49
|
}
|
|
46
50
|
end
|
|
47
51
|
|
|
@@ -74,6 +78,10 @@ module PharmaObservatory
|
|
|
74
78
|
if attributes.key?(:'condition_delivery')
|
|
75
79
|
self.condition_delivery = attributes[:'condition_delivery']
|
|
76
80
|
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'condition_recruitment_duration')
|
|
83
|
+
self.condition_recruitment_duration = attributes[:'condition_recruitment_duration']
|
|
84
|
+
end
|
|
77
85
|
end
|
|
78
86
|
|
|
79
87
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -97,7 +105,8 @@ module PharmaObservatory
|
|
|
97
105
|
return true if self.equal?(o)
|
|
98
106
|
self.class == o.class &&
|
|
99
107
|
condition_burden == o.condition_burden &&
|
|
100
|
-
condition_delivery == o.condition_delivery
|
|
108
|
+
condition_delivery == o.condition_delivery &&
|
|
109
|
+
condition_recruitment_duration == o.condition_recruitment_duration
|
|
101
110
|
end
|
|
102
111
|
|
|
103
112
|
# @see the `==` method
|
|
@@ -109,7 +118,7 @@ module PharmaObservatory
|
|
|
109
118
|
# Calculates hash code according to all attributes.
|
|
110
119
|
# @return [Integer] Hash code
|
|
111
120
|
def hash
|
|
112
|
-
[condition_burden, condition_delivery].hash
|
|
121
|
+
[condition_burden, condition_delivery, condition_recruitment_duration].hash
|
|
113
122
|
end
|
|
114
123
|
|
|
115
124
|
# Builds the object from hash
|