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,597 @@
|
|
|
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_recruitment_duration dataset: one row per condition with at least one trial. A grouped request returns the group columns and the measures instead, as additional properties.
|
|
18
|
+
class ConditionRecruitmentDurationRow
|
|
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
|
+
# Trials in the condition series (the rows of condition_trials).
|
|
26
|
+
attr_accessor :n_trials_in_series
|
|
27
|
+
|
|
28
|
+
# Of those, trials with a row in the per-trial predictions at the cutoff.
|
|
29
|
+
attr_accessor :n_evaluated
|
|
30
|
+
|
|
31
|
+
# n_trials_in_series - n_evaluated: registered after the cutoff or a coverage gap; the data cannot tell which.
|
|
32
|
+
attr_accessor :n_not_evaluated
|
|
33
|
+
|
|
34
|
+
# Evaluated trials with prediction_status out_of_population.
|
|
35
|
+
attr_accessor :n_out_of_population
|
|
36
|
+
|
|
37
|
+
# Evaluated trials with prediction_status completed.
|
|
38
|
+
attr_accessor :n_completed
|
|
39
|
+
|
|
40
|
+
# Evaluated trials with prediction_status stopped.
|
|
41
|
+
attr_accessor :n_stopped
|
|
42
|
+
|
|
43
|
+
# Evaluated trials with prediction_status no_registration_record.
|
|
44
|
+
attr_accessor :n_no_registration_record
|
|
45
|
+
|
|
46
|
+
# Evaluated trials with prediction_status retrospective_registration.
|
|
47
|
+
attr_accessor :n_retrospective_registration
|
|
48
|
+
|
|
49
|
+
# Evaluated trials with prediction_status start_not_actual.
|
|
50
|
+
attr_accessor :n_start_not_actual
|
|
51
|
+
|
|
52
|
+
# Evaluated trials with prediction_status fit_failed.
|
|
53
|
+
attr_accessor :n_fit_failed
|
|
54
|
+
|
|
55
|
+
# Evaluated trials with prediction_status predicted, superseded or not.
|
|
56
|
+
attr_accessor :n_predicted
|
|
57
|
+
|
|
58
|
+
# Predicted trials whose CURRENT record shows the outcome (COMPLETED, TERMINATED, WITHDRAWN or an ACTUAL primary completion); kept out of every predicted figure.
|
|
59
|
+
attr_accessor :n_predicted_superseded
|
|
60
|
+
|
|
61
|
+
# n_predicted - n_predicted_superseded; the denominator of every predicted figure.
|
|
62
|
+
attr_accessor :n_predicted_open
|
|
63
|
+
|
|
64
|
+
# Open predicted trials whose figure sits at the horizon cap (an at-cap row contributes the cap to the median).
|
|
65
|
+
attr_accessor :n_predicted_at_cap
|
|
66
|
+
|
|
67
|
+
# Open predicted trials running past their predicted end at the cutoff.
|
|
68
|
+
attr_accessor :n_predicted_overdue
|
|
69
|
+
|
|
70
|
+
# Open predicted trials in a phase bucket the backtest measured (error_phase_mae_months not null).
|
|
71
|
+
attr_accessor :n_predicted_error_measured
|
|
72
|
+
|
|
73
|
+
# Median of the carried predicted months over open predicted trials (capped at horizon_cap_months). NULL under min_n.
|
|
74
|
+
attr_accessor :predicted_months_median
|
|
75
|
+
|
|
76
|
+
# 25th percentile, same rows and floor.
|
|
77
|
+
attr_accessor :predicted_months_p25
|
|
78
|
+
|
|
79
|
+
# 75th percentile, same rows and floor.
|
|
80
|
+
attr_accessor :predicted_months_p75
|
|
81
|
+
|
|
82
|
+
# Median of the carried baseline months over the same open predicted trials. NULL under min_n.
|
|
83
|
+
attr_accessor :baseline_months_median
|
|
84
|
+
|
|
85
|
+
# Trials with a registered span (primary completion typed ACTUAL today, plausible start and completion), from the realized-duration input.
|
|
86
|
+
attr_accessor :n_realized
|
|
87
|
+
|
|
88
|
+
# Median registered start to primary completion in months over n_realized trials. NULL under min_n.
|
|
89
|
+
attr_accessor :realized_months_median
|
|
90
|
+
|
|
91
|
+
# 25th percentile, same rows and floor.
|
|
92
|
+
attr_accessor :realized_months_p25
|
|
93
|
+
|
|
94
|
+
# 75th percentile, same rows and floor.
|
|
95
|
+
attr_accessor :realized_months_p75
|
|
96
|
+
|
|
97
|
+
# Realized spans above horizon_cap_months, so a reader sees how many would have hit the cap.
|
|
98
|
+
attr_accessor :n_realized_over_cap
|
|
99
|
+
|
|
100
|
+
# The floor applied: a median is withheld below this many trials, carried so a reader sees the floor used.
|
|
101
|
+
attr_accessor :min_n
|
|
102
|
+
|
|
103
|
+
# rolled_up (open predicted >= min_n), below_floor (1 <= open < min_n, counts only), none_predicted (evaluated, no open prediction), none_evaluated.
|
|
104
|
+
attr_accessor :rollup_status
|
|
105
|
+
|
|
106
|
+
# rolled_up (n_realized >= min_n), below_floor, or none.
|
|
107
|
+
attr_accessor :realized_status
|
|
108
|
+
|
|
109
|
+
# The date the model's training data ends.
|
|
110
|
+
attr_accessor :training_cutoff
|
|
111
|
+
|
|
112
|
+
# The recruitment-duration model.
|
|
113
|
+
attr_accessor :model_name
|
|
114
|
+
|
|
115
|
+
# The model version.
|
|
116
|
+
attr_accessor :model_version
|
|
117
|
+
|
|
118
|
+
# The cap on predicted months (36 today), from the prediction rows.
|
|
119
|
+
attr_accessor :horizon_cap_months
|
|
120
|
+
|
|
121
|
+
# The run's method sentence from the run provenance, never re-authored.
|
|
122
|
+
attr_accessor :method
|
|
123
|
+
|
|
124
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
125
|
+
def self.attribute_map
|
|
126
|
+
{
|
|
127
|
+
:'condition_id' => :'condition_id',
|
|
128
|
+
:'condition_name' => :'condition_name',
|
|
129
|
+
:'n_trials_in_series' => :'n_trials_in_series',
|
|
130
|
+
:'n_evaluated' => :'n_evaluated',
|
|
131
|
+
:'n_not_evaluated' => :'n_not_evaluated',
|
|
132
|
+
:'n_out_of_population' => :'n_out_of_population',
|
|
133
|
+
:'n_completed' => :'n_completed',
|
|
134
|
+
:'n_stopped' => :'n_stopped',
|
|
135
|
+
:'n_no_registration_record' => :'n_no_registration_record',
|
|
136
|
+
:'n_retrospective_registration' => :'n_retrospective_registration',
|
|
137
|
+
:'n_start_not_actual' => :'n_start_not_actual',
|
|
138
|
+
:'n_fit_failed' => :'n_fit_failed',
|
|
139
|
+
:'n_predicted' => :'n_predicted',
|
|
140
|
+
:'n_predicted_superseded' => :'n_predicted_superseded',
|
|
141
|
+
:'n_predicted_open' => :'n_predicted_open',
|
|
142
|
+
:'n_predicted_at_cap' => :'n_predicted_at_cap',
|
|
143
|
+
:'n_predicted_overdue' => :'n_predicted_overdue',
|
|
144
|
+
:'n_predicted_error_measured' => :'n_predicted_error_measured',
|
|
145
|
+
:'predicted_months_median' => :'predicted_months_median',
|
|
146
|
+
:'predicted_months_p25' => :'predicted_months_p25',
|
|
147
|
+
:'predicted_months_p75' => :'predicted_months_p75',
|
|
148
|
+
:'baseline_months_median' => :'baseline_months_median',
|
|
149
|
+
:'n_realized' => :'n_realized',
|
|
150
|
+
:'realized_months_median' => :'realized_months_median',
|
|
151
|
+
:'realized_months_p25' => :'realized_months_p25',
|
|
152
|
+
:'realized_months_p75' => :'realized_months_p75',
|
|
153
|
+
:'n_realized_over_cap' => :'n_realized_over_cap',
|
|
154
|
+
:'min_n' => :'min_n',
|
|
155
|
+
:'rollup_status' => :'rollup_status',
|
|
156
|
+
:'realized_status' => :'realized_status',
|
|
157
|
+
:'training_cutoff' => :'training_cutoff',
|
|
158
|
+
:'model_name' => :'model_name',
|
|
159
|
+
:'model_version' => :'model_version',
|
|
160
|
+
:'horizon_cap_months' => :'horizon_cap_months',
|
|
161
|
+
:'method' => :'method'
|
|
162
|
+
}
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Returns attribute mapping this model knows about
|
|
166
|
+
def self.acceptable_attribute_map
|
|
167
|
+
attribute_map
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Returns all the JSON keys this model knows about
|
|
171
|
+
def self.acceptable_attributes
|
|
172
|
+
acceptable_attribute_map.values
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Attribute type mapping.
|
|
176
|
+
def self.openapi_types
|
|
177
|
+
{
|
|
178
|
+
:'condition_id' => :'String',
|
|
179
|
+
:'condition_name' => :'String',
|
|
180
|
+
:'n_trials_in_series' => :'Integer',
|
|
181
|
+
:'n_evaluated' => :'Integer',
|
|
182
|
+
:'n_not_evaluated' => :'Integer',
|
|
183
|
+
:'n_out_of_population' => :'Integer',
|
|
184
|
+
:'n_completed' => :'Integer',
|
|
185
|
+
:'n_stopped' => :'Integer',
|
|
186
|
+
:'n_no_registration_record' => :'Integer',
|
|
187
|
+
:'n_retrospective_registration' => :'Integer',
|
|
188
|
+
:'n_start_not_actual' => :'Integer',
|
|
189
|
+
:'n_fit_failed' => :'Integer',
|
|
190
|
+
:'n_predicted' => :'Integer',
|
|
191
|
+
:'n_predicted_superseded' => :'Integer',
|
|
192
|
+
:'n_predicted_open' => :'Integer',
|
|
193
|
+
:'n_predicted_at_cap' => :'Integer',
|
|
194
|
+
:'n_predicted_overdue' => :'Integer',
|
|
195
|
+
:'n_predicted_error_measured' => :'Integer',
|
|
196
|
+
:'predicted_months_median' => :'Float',
|
|
197
|
+
:'predicted_months_p25' => :'Float',
|
|
198
|
+
:'predicted_months_p75' => :'Float',
|
|
199
|
+
:'baseline_months_median' => :'Float',
|
|
200
|
+
:'n_realized' => :'Integer',
|
|
201
|
+
:'realized_months_median' => :'Float',
|
|
202
|
+
:'realized_months_p25' => :'Float',
|
|
203
|
+
:'realized_months_p75' => :'Float',
|
|
204
|
+
:'n_realized_over_cap' => :'Integer',
|
|
205
|
+
:'min_n' => :'Integer',
|
|
206
|
+
:'rollup_status' => :'String',
|
|
207
|
+
:'realized_status' => :'String',
|
|
208
|
+
:'training_cutoff' => :'Date',
|
|
209
|
+
:'model_name' => :'String',
|
|
210
|
+
:'model_version' => :'String',
|
|
211
|
+
:'horizon_cap_months' => :'Integer',
|
|
212
|
+
:'method' => :'String'
|
|
213
|
+
}
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# List of attributes with nullable: true
|
|
217
|
+
def self.openapi_nullable
|
|
218
|
+
Set.new([
|
|
219
|
+
:'condition_id',
|
|
220
|
+
:'condition_name',
|
|
221
|
+
:'n_trials_in_series',
|
|
222
|
+
:'n_evaluated',
|
|
223
|
+
:'n_not_evaluated',
|
|
224
|
+
:'n_out_of_population',
|
|
225
|
+
:'n_completed',
|
|
226
|
+
:'n_stopped',
|
|
227
|
+
:'n_no_registration_record',
|
|
228
|
+
:'n_retrospective_registration',
|
|
229
|
+
:'n_start_not_actual',
|
|
230
|
+
:'n_fit_failed',
|
|
231
|
+
:'n_predicted',
|
|
232
|
+
:'n_predicted_superseded',
|
|
233
|
+
:'n_predicted_open',
|
|
234
|
+
:'n_predicted_at_cap',
|
|
235
|
+
:'n_predicted_overdue',
|
|
236
|
+
:'n_predicted_error_measured',
|
|
237
|
+
:'predicted_months_median',
|
|
238
|
+
:'predicted_months_p25',
|
|
239
|
+
:'predicted_months_p75',
|
|
240
|
+
:'baseline_months_median',
|
|
241
|
+
:'n_realized',
|
|
242
|
+
:'realized_months_median',
|
|
243
|
+
:'realized_months_p25',
|
|
244
|
+
:'realized_months_p75',
|
|
245
|
+
:'n_realized_over_cap',
|
|
246
|
+
:'min_n',
|
|
247
|
+
:'rollup_status',
|
|
248
|
+
:'realized_status',
|
|
249
|
+
:'training_cutoff',
|
|
250
|
+
:'model_name',
|
|
251
|
+
:'model_version',
|
|
252
|
+
:'horizon_cap_months',
|
|
253
|
+
:'method'
|
|
254
|
+
])
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# Initializes the object
|
|
258
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
259
|
+
def initialize(attributes = {})
|
|
260
|
+
if (!attributes.is_a?(Hash))
|
|
261
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PharmaObservatory::ConditionRecruitmentDurationRow` initialize method"
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
265
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
266
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
267
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
268
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PharmaObservatory::ConditionRecruitmentDurationRow`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
269
|
+
end
|
|
270
|
+
h[k.to_sym] = v
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
if attributes.key?(:'condition_id')
|
|
274
|
+
self.condition_id = attributes[:'condition_id']
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
if attributes.key?(:'condition_name')
|
|
278
|
+
self.condition_name = attributes[:'condition_name']
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
if attributes.key?(:'n_trials_in_series')
|
|
282
|
+
self.n_trials_in_series = attributes[:'n_trials_in_series']
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
if attributes.key?(:'n_evaluated')
|
|
286
|
+
self.n_evaluated = attributes[:'n_evaluated']
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
if attributes.key?(:'n_not_evaluated')
|
|
290
|
+
self.n_not_evaluated = attributes[:'n_not_evaluated']
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
if attributes.key?(:'n_out_of_population')
|
|
294
|
+
self.n_out_of_population = attributes[:'n_out_of_population']
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
if attributes.key?(:'n_completed')
|
|
298
|
+
self.n_completed = attributes[:'n_completed']
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
if attributes.key?(:'n_stopped')
|
|
302
|
+
self.n_stopped = attributes[:'n_stopped']
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
if attributes.key?(:'n_no_registration_record')
|
|
306
|
+
self.n_no_registration_record = attributes[:'n_no_registration_record']
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
if attributes.key?(:'n_retrospective_registration')
|
|
310
|
+
self.n_retrospective_registration = attributes[:'n_retrospective_registration']
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
if attributes.key?(:'n_start_not_actual')
|
|
314
|
+
self.n_start_not_actual = attributes[:'n_start_not_actual']
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
if attributes.key?(:'n_fit_failed')
|
|
318
|
+
self.n_fit_failed = attributes[:'n_fit_failed']
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
if attributes.key?(:'n_predicted')
|
|
322
|
+
self.n_predicted = attributes[:'n_predicted']
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
if attributes.key?(:'n_predicted_superseded')
|
|
326
|
+
self.n_predicted_superseded = attributes[:'n_predicted_superseded']
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
if attributes.key?(:'n_predicted_open')
|
|
330
|
+
self.n_predicted_open = attributes[:'n_predicted_open']
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
if attributes.key?(:'n_predicted_at_cap')
|
|
334
|
+
self.n_predicted_at_cap = attributes[:'n_predicted_at_cap']
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
if attributes.key?(:'n_predicted_overdue')
|
|
338
|
+
self.n_predicted_overdue = attributes[:'n_predicted_overdue']
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
if attributes.key?(:'n_predicted_error_measured')
|
|
342
|
+
self.n_predicted_error_measured = attributes[:'n_predicted_error_measured']
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
if attributes.key?(:'predicted_months_median')
|
|
346
|
+
self.predicted_months_median = attributes[:'predicted_months_median']
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
if attributes.key?(:'predicted_months_p25')
|
|
350
|
+
self.predicted_months_p25 = attributes[:'predicted_months_p25']
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
if attributes.key?(:'predicted_months_p75')
|
|
354
|
+
self.predicted_months_p75 = attributes[:'predicted_months_p75']
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
if attributes.key?(:'baseline_months_median')
|
|
358
|
+
self.baseline_months_median = attributes[:'baseline_months_median']
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
if attributes.key?(:'n_realized')
|
|
362
|
+
self.n_realized = attributes[:'n_realized']
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
if attributes.key?(:'realized_months_median')
|
|
366
|
+
self.realized_months_median = attributes[:'realized_months_median']
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
if attributes.key?(:'realized_months_p25')
|
|
370
|
+
self.realized_months_p25 = attributes[:'realized_months_p25']
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
if attributes.key?(:'realized_months_p75')
|
|
374
|
+
self.realized_months_p75 = attributes[:'realized_months_p75']
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
if attributes.key?(:'n_realized_over_cap')
|
|
378
|
+
self.n_realized_over_cap = attributes[:'n_realized_over_cap']
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
if attributes.key?(:'min_n')
|
|
382
|
+
self.min_n = attributes[:'min_n']
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
if attributes.key?(:'rollup_status')
|
|
386
|
+
self.rollup_status = attributes[:'rollup_status']
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
if attributes.key?(:'realized_status')
|
|
390
|
+
self.realized_status = attributes[:'realized_status']
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
if attributes.key?(:'training_cutoff')
|
|
394
|
+
self.training_cutoff = attributes[:'training_cutoff']
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
if attributes.key?(:'model_name')
|
|
398
|
+
self.model_name = attributes[:'model_name']
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
if attributes.key?(:'model_version')
|
|
402
|
+
self.model_version = attributes[:'model_version']
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
if attributes.key?(:'horizon_cap_months')
|
|
406
|
+
self.horizon_cap_months = attributes[:'horizon_cap_months']
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
if attributes.key?(:'method')
|
|
410
|
+
self.method = attributes[:'method']
|
|
411
|
+
end
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
415
|
+
# @return Array for valid properties with the reasons
|
|
416
|
+
def list_invalid_properties
|
|
417
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
418
|
+
invalid_properties = Array.new
|
|
419
|
+
invalid_properties
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
# Check to see if the all the properties in the model are valid
|
|
423
|
+
# @return true if the model is valid
|
|
424
|
+
def valid?
|
|
425
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
426
|
+
true
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
# Checks equality by comparing each attribute.
|
|
430
|
+
# @param [Object] Object to be compared
|
|
431
|
+
def ==(o)
|
|
432
|
+
return true if self.equal?(o)
|
|
433
|
+
self.class == o.class &&
|
|
434
|
+
condition_id == o.condition_id &&
|
|
435
|
+
condition_name == o.condition_name &&
|
|
436
|
+
n_trials_in_series == o.n_trials_in_series &&
|
|
437
|
+
n_evaluated == o.n_evaluated &&
|
|
438
|
+
n_not_evaluated == o.n_not_evaluated &&
|
|
439
|
+
n_out_of_population == o.n_out_of_population &&
|
|
440
|
+
n_completed == o.n_completed &&
|
|
441
|
+
n_stopped == o.n_stopped &&
|
|
442
|
+
n_no_registration_record == o.n_no_registration_record &&
|
|
443
|
+
n_retrospective_registration == o.n_retrospective_registration &&
|
|
444
|
+
n_start_not_actual == o.n_start_not_actual &&
|
|
445
|
+
n_fit_failed == o.n_fit_failed &&
|
|
446
|
+
n_predicted == o.n_predicted &&
|
|
447
|
+
n_predicted_superseded == o.n_predicted_superseded &&
|
|
448
|
+
n_predicted_open == o.n_predicted_open &&
|
|
449
|
+
n_predicted_at_cap == o.n_predicted_at_cap &&
|
|
450
|
+
n_predicted_overdue == o.n_predicted_overdue &&
|
|
451
|
+
n_predicted_error_measured == o.n_predicted_error_measured &&
|
|
452
|
+
predicted_months_median == o.predicted_months_median &&
|
|
453
|
+
predicted_months_p25 == o.predicted_months_p25 &&
|
|
454
|
+
predicted_months_p75 == o.predicted_months_p75 &&
|
|
455
|
+
baseline_months_median == o.baseline_months_median &&
|
|
456
|
+
n_realized == o.n_realized &&
|
|
457
|
+
realized_months_median == o.realized_months_median &&
|
|
458
|
+
realized_months_p25 == o.realized_months_p25 &&
|
|
459
|
+
realized_months_p75 == o.realized_months_p75 &&
|
|
460
|
+
n_realized_over_cap == o.n_realized_over_cap &&
|
|
461
|
+
min_n == o.min_n &&
|
|
462
|
+
rollup_status == o.rollup_status &&
|
|
463
|
+
realized_status == o.realized_status &&
|
|
464
|
+
training_cutoff == o.training_cutoff &&
|
|
465
|
+
model_name == o.model_name &&
|
|
466
|
+
model_version == o.model_version &&
|
|
467
|
+
horizon_cap_months == o.horizon_cap_months &&
|
|
468
|
+
method == o.method
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
# @see the `==` method
|
|
472
|
+
# @param [Object] Object to be compared
|
|
473
|
+
def eql?(o)
|
|
474
|
+
self == o
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
# Calculates hash code according to all attributes.
|
|
478
|
+
# @return [Integer] Hash code
|
|
479
|
+
def hash
|
|
480
|
+
[condition_id, condition_name, n_trials_in_series, n_evaluated, n_not_evaluated, n_out_of_population, n_completed, n_stopped, n_no_registration_record, n_retrospective_registration, n_start_not_actual, n_fit_failed, n_predicted, n_predicted_superseded, n_predicted_open, n_predicted_at_cap, n_predicted_overdue, n_predicted_error_measured, predicted_months_median, predicted_months_p25, predicted_months_p75, baseline_months_median, n_realized, realized_months_median, realized_months_p25, realized_months_p75, n_realized_over_cap, min_n, rollup_status, realized_status, training_cutoff, model_name, model_version, horizon_cap_months, method].hash
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
# Builds the object from hash
|
|
484
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
485
|
+
# @return [Object] Returns the model itself
|
|
486
|
+
def self.build_from_hash(attributes)
|
|
487
|
+
return nil unless attributes.is_a?(Hash)
|
|
488
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
489
|
+
transformed_hash = {}
|
|
490
|
+
openapi_types.each_pair do |key, type|
|
|
491
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
492
|
+
transformed_hash["#{key}"] = nil
|
|
493
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
494
|
+
# check to ensure the input is an array given that the attribute
|
|
495
|
+
# is documented as an array but the input is not
|
|
496
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
497
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
498
|
+
end
|
|
499
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
500
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
501
|
+
end
|
|
502
|
+
end
|
|
503
|
+
new(transformed_hash)
|
|
504
|
+
end
|
|
505
|
+
|
|
506
|
+
# Deserializes the data based on type
|
|
507
|
+
# @param string type Data type
|
|
508
|
+
# @param string value Value to be deserialized
|
|
509
|
+
# @return [Object] Deserialized data
|
|
510
|
+
def self._deserialize(type, value)
|
|
511
|
+
case type.to_sym
|
|
512
|
+
when :Time
|
|
513
|
+
Time.parse(value)
|
|
514
|
+
when :Date
|
|
515
|
+
Date.parse(value)
|
|
516
|
+
when :String
|
|
517
|
+
value.to_s
|
|
518
|
+
when :Integer
|
|
519
|
+
value.to_i
|
|
520
|
+
when :Float
|
|
521
|
+
value.to_f
|
|
522
|
+
when :Boolean
|
|
523
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
524
|
+
true
|
|
525
|
+
else
|
|
526
|
+
false
|
|
527
|
+
end
|
|
528
|
+
when :Object
|
|
529
|
+
# generic object (usually a Hash), return directly
|
|
530
|
+
value
|
|
531
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
532
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
533
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
534
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
535
|
+
k_type = Regexp.last_match[:k_type]
|
|
536
|
+
v_type = Regexp.last_match[:v_type]
|
|
537
|
+
{}.tap do |hash|
|
|
538
|
+
value.each do |k, v|
|
|
539
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
540
|
+
end
|
|
541
|
+
end
|
|
542
|
+
else # model
|
|
543
|
+
# models (e.g. Pet) or oneOf
|
|
544
|
+
klass = PharmaObservatory.const_get(type)
|
|
545
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
546
|
+
end
|
|
547
|
+
end
|
|
548
|
+
|
|
549
|
+
# Returns the string representation of the object
|
|
550
|
+
# @return [String] String presentation of the object
|
|
551
|
+
def to_s
|
|
552
|
+
to_hash.to_s
|
|
553
|
+
end
|
|
554
|
+
|
|
555
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
556
|
+
# @return [Hash] Returns the object in the form of hash
|
|
557
|
+
def to_body
|
|
558
|
+
to_hash
|
|
559
|
+
end
|
|
560
|
+
|
|
561
|
+
# Returns the object in the form of hash
|
|
562
|
+
# @return [Hash] Returns the object in the form of hash
|
|
563
|
+
def to_hash
|
|
564
|
+
hash = {}
|
|
565
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
566
|
+
value = self.send(attr)
|
|
567
|
+
if value.nil?
|
|
568
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
569
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
hash[param] = _to_hash(value)
|
|
573
|
+
end
|
|
574
|
+
hash
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
# Outputs non-array value in the form of hash
|
|
578
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
579
|
+
# @param [Object] value Any valid value
|
|
580
|
+
# @return [Hash] Returns the value in the form of hash
|
|
581
|
+
def _to_hash(value)
|
|
582
|
+
if value.is_a?(Array)
|
|
583
|
+
value.compact.map { |v| _to_hash(v) }
|
|
584
|
+
elsif value.is_a?(Hash)
|
|
585
|
+
{}.tap do |hash|
|
|
586
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
587
|
+
end
|
|
588
|
+
elsif value.respond_to? :to_hash
|
|
589
|
+
value.to_hash
|
|
590
|
+
else
|
|
591
|
+
value
|
|
592
|
+
end
|
|
593
|
+
end
|
|
594
|
+
|
|
595
|
+
end
|
|
596
|
+
|
|
597
|
+
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<ConditionSitesRow>',
|
|
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
|
}
|