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,499 @@
|
|
|
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 biomarker_assay_whitespace dataset: one row per gene that has evidence or a supplier survey signal. A grouped request returns the group columns and the measures instead, as additional properties.
|
|
18
|
+
class BiomarkerAssayWhitespaceRow
|
|
19
|
+
# The gene's biomarker key.
|
|
20
|
+
attr_accessor :biomarker_id
|
|
21
|
+
|
|
22
|
+
# The gene's route key, the entry key for the biomarkers object type; the gene symbol.
|
|
23
|
+
attr_accessor :route_key
|
|
24
|
+
|
|
25
|
+
# The gene symbol.
|
|
26
|
+
attr_accessor :gene_symbol
|
|
27
|
+
|
|
28
|
+
# The gene's display name.
|
|
29
|
+
attr_accessor :biomarker_display_name
|
|
30
|
+
|
|
31
|
+
# Whether the gene's identity is confirmed.
|
|
32
|
+
attr_accessor :biomarker_identity_status
|
|
33
|
+
|
|
34
|
+
# The target's Ensembl gene id; null when the gene does not resolve one, in which case the pipeline columns are null.
|
|
35
|
+
attr_accessor :target_id
|
|
36
|
+
|
|
37
|
+
# The classification, one of nine values crossing gene_evidence_tier with gene_supply_status. Labels: no_evidence_no_supply 'No evidence, explicit no-assay'; no_evidence_supply_ambiguous 'No evidence, ambiguous supply'; supply_no_evidence 'Supply declared, no evidence'; literature_evidence_no_supply 'Literature evidence, no confirmed supply'; literature_evidence_supply_ambiguous 'Literature evidence, ambiguous supply'; literature_evidence_served 'Literature evidence, supply declared'; validated_evidence_no_supply 'Validated-ladder evidence, no confirmed supply'; validated_evidence_supply_ambiguous 'Validated-ladder evidence, ambiguous supply'; served 'Validated-ladder evidence, supply declared'.
|
|
38
|
+
attr_accessor :whitespace_bucket
|
|
39
|
+
|
|
40
|
+
# The rule that assigned the bucket, one rule per bucket.
|
|
41
|
+
attr_accessor :whitespace_bucket_rule_id
|
|
42
|
+
|
|
43
|
+
# Evidence axis, a precedence and not a score. validated: at least one row of the validation ladder (biomarker_validation) for the gene. literature_only: no validated row but at least one extracted PubMed assay fact. none: neither.
|
|
44
|
+
attr_accessor :gene_evidence_tier
|
|
45
|
+
|
|
46
|
+
# Supply axis, a precedence. declared_positive: a supplier declares an assay (validated or not). declared_ambiguous: a response conflicts or gives detail with no option chosen. declared_no_assay: a supplier answered that it has no assay. not_on_survey: no answer at all.
|
|
47
|
+
attr_accessor :gene_supply_status
|
|
48
|
+
|
|
49
|
+
# Rows of the validation ladder for the gene (biomarker_validation). A count, not a score, and not combined with the literature count.
|
|
50
|
+
attr_accessor :validated_evidence_row_count
|
|
51
|
+
|
|
52
|
+
# Extracted PubMed assay facts resolved to the gene (biomarker_assay_evidence). A count, not a score.
|
|
53
|
+
attr_accessor :literature_evidence_row_count
|
|
54
|
+
|
|
55
|
+
# The sorted set of evidence types behind the gene's evidence, including literature_assay_validation when literature evidence exists. A set, never a rank.
|
|
56
|
+
attr_accessor :evidence_types_present
|
|
57
|
+
|
|
58
|
+
# The sorted set of validation ladder rule ids behind the validated evidence. For display; do not derive a rank from it.
|
|
59
|
+
attr_accessor :evidence_tier_rule_ids_present
|
|
60
|
+
|
|
61
|
+
# biomarker_validation_id values of the validated evidence. Empty when gene_evidence_tier is not validated.
|
|
62
|
+
attr_accessor :evidence_validation_ids
|
|
63
|
+
|
|
64
|
+
# biomarker_assay_evidence_id values of the extracted PubMed facts. Populated whichever evidence tier governs the bucket.
|
|
65
|
+
attr_accessor :literature_evidence_ids
|
|
66
|
+
|
|
67
|
+
# The source document ids behind literature_evidence_ids.
|
|
68
|
+
attr_accessor :literature_evidence_document_ids
|
|
69
|
+
|
|
70
|
+
# Ids of the supplier survey declarations behind gene_supply_status (the winning precedence tier). Empty when not_on_survey. The declarations are not a published dataset.
|
|
71
|
+
attr_accessor :supplier_declaration_ids
|
|
72
|
+
|
|
73
|
+
# Supplier declarations that an assay exists, validated or unvalidated, for the gene.
|
|
74
|
+
attr_accessor :supplier_positive_response_count
|
|
75
|
+
|
|
76
|
+
# Declarations whose own cells disagree.
|
|
77
|
+
attr_accessor :supplier_conflicting_response_count
|
|
78
|
+
|
|
79
|
+
# Declarations that give free text and no selected option.
|
|
80
|
+
attr_accessor :supplier_detail_only_response_count
|
|
81
|
+
|
|
82
|
+
# Declarations that the supplier has no assay for the gene.
|
|
83
|
+
attr_accessor :supplier_no_assay_response_count
|
|
84
|
+
|
|
85
|
+
# Drug programs against the gene's target across every phase band. Null means the gene has no target row, never zero activity. Heat only; not part of the bucket.
|
|
86
|
+
attr_accessor :pipeline_program_count
|
|
87
|
+
|
|
88
|
+
# Active drug programs against the gene's target. Same nullability as pipeline_program_count.
|
|
89
|
+
attr_accessor :pipeline_active_program_count
|
|
90
|
+
|
|
91
|
+
# The highest phase band (0 to 4) any program against the target reached; the app maps it to a phase label. Null as pipeline_program_count.
|
|
92
|
+
attr_accessor :pipeline_max_phase
|
|
93
|
+
|
|
94
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
95
|
+
def self.attribute_map
|
|
96
|
+
{
|
|
97
|
+
:'biomarker_id' => :'biomarker_id',
|
|
98
|
+
:'route_key' => :'route_key',
|
|
99
|
+
:'gene_symbol' => :'gene_symbol',
|
|
100
|
+
:'biomarker_display_name' => :'biomarker_display_name',
|
|
101
|
+
:'biomarker_identity_status' => :'biomarker_identity_status',
|
|
102
|
+
:'target_id' => :'target_id',
|
|
103
|
+
:'whitespace_bucket' => :'whitespace_bucket',
|
|
104
|
+
:'whitespace_bucket_rule_id' => :'whitespace_bucket_rule_id',
|
|
105
|
+
:'gene_evidence_tier' => :'gene_evidence_tier',
|
|
106
|
+
:'gene_supply_status' => :'gene_supply_status',
|
|
107
|
+
:'validated_evidence_row_count' => :'validated_evidence_row_count',
|
|
108
|
+
:'literature_evidence_row_count' => :'literature_evidence_row_count',
|
|
109
|
+
:'evidence_types_present' => :'evidence_types_present',
|
|
110
|
+
:'evidence_tier_rule_ids_present' => :'evidence_tier_rule_ids_present',
|
|
111
|
+
:'evidence_validation_ids' => :'evidence_validation_ids',
|
|
112
|
+
:'literature_evidence_ids' => :'literature_evidence_ids',
|
|
113
|
+
:'literature_evidence_document_ids' => :'literature_evidence_document_ids',
|
|
114
|
+
:'supplier_declaration_ids' => :'supplier_declaration_ids',
|
|
115
|
+
:'supplier_positive_response_count' => :'supplier_positive_response_count',
|
|
116
|
+
:'supplier_conflicting_response_count' => :'supplier_conflicting_response_count',
|
|
117
|
+
:'supplier_detail_only_response_count' => :'supplier_detail_only_response_count',
|
|
118
|
+
:'supplier_no_assay_response_count' => :'supplier_no_assay_response_count',
|
|
119
|
+
:'pipeline_program_count' => :'pipeline_program_count',
|
|
120
|
+
:'pipeline_active_program_count' => :'pipeline_active_program_count',
|
|
121
|
+
:'pipeline_max_phase' => :'pipeline_max_phase'
|
|
122
|
+
}
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Returns attribute mapping this model knows about
|
|
126
|
+
def self.acceptable_attribute_map
|
|
127
|
+
attribute_map
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Returns all the JSON keys this model knows about
|
|
131
|
+
def self.acceptable_attributes
|
|
132
|
+
acceptable_attribute_map.values
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Attribute type mapping.
|
|
136
|
+
def self.openapi_types
|
|
137
|
+
{
|
|
138
|
+
:'biomarker_id' => :'String',
|
|
139
|
+
:'route_key' => :'String',
|
|
140
|
+
:'gene_symbol' => :'String',
|
|
141
|
+
:'biomarker_display_name' => :'String',
|
|
142
|
+
:'biomarker_identity_status' => :'String',
|
|
143
|
+
:'target_id' => :'String',
|
|
144
|
+
:'whitespace_bucket' => :'String',
|
|
145
|
+
:'whitespace_bucket_rule_id' => :'String',
|
|
146
|
+
:'gene_evidence_tier' => :'String',
|
|
147
|
+
:'gene_supply_status' => :'String',
|
|
148
|
+
:'validated_evidence_row_count' => :'Integer',
|
|
149
|
+
:'literature_evidence_row_count' => :'Integer',
|
|
150
|
+
:'evidence_types_present' => :'Array<String>',
|
|
151
|
+
:'evidence_tier_rule_ids_present' => :'Array<String>',
|
|
152
|
+
:'evidence_validation_ids' => :'Array<String>',
|
|
153
|
+
:'literature_evidence_ids' => :'Array<String>',
|
|
154
|
+
:'literature_evidence_document_ids' => :'Array<String>',
|
|
155
|
+
:'supplier_declaration_ids' => :'Array<String>',
|
|
156
|
+
:'supplier_positive_response_count' => :'Integer',
|
|
157
|
+
:'supplier_conflicting_response_count' => :'Integer',
|
|
158
|
+
:'supplier_detail_only_response_count' => :'Integer',
|
|
159
|
+
:'supplier_no_assay_response_count' => :'Integer',
|
|
160
|
+
:'pipeline_program_count' => :'Integer',
|
|
161
|
+
:'pipeline_active_program_count' => :'Integer',
|
|
162
|
+
:'pipeline_max_phase' => :'Integer'
|
|
163
|
+
}
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# List of attributes with nullable: true
|
|
167
|
+
def self.openapi_nullable
|
|
168
|
+
Set.new([
|
|
169
|
+
:'biomarker_id',
|
|
170
|
+
:'route_key',
|
|
171
|
+
:'gene_symbol',
|
|
172
|
+
:'biomarker_display_name',
|
|
173
|
+
:'biomarker_identity_status',
|
|
174
|
+
:'target_id',
|
|
175
|
+
:'whitespace_bucket',
|
|
176
|
+
:'whitespace_bucket_rule_id',
|
|
177
|
+
:'gene_evidence_tier',
|
|
178
|
+
:'gene_supply_status',
|
|
179
|
+
:'validated_evidence_row_count',
|
|
180
|
+
:'literature_evidence_row_count',
|
|
181
|
+
:'evidence_types_present',
|
|
182
|
+
:'evidence_tier_rule_ids_present',
|
|
183
|
+
:'evidence_validation_ids',
|
|
184
|
+
:'literature_evidence_ids',
|
|
185
|
+
:'literature_evidence_document_ids',
|
|
186
|
+
:'supplier_declaration_ids',
|
|
187
|
+
:'supplier_positive_response_count',
|
|
188
|
+
:'supplier_conflicting_response_count',
|
|
189
|
+
:'supplier_detail_only_response_count',
|
|
190
|
+
:'supplier_no_assay_response_count',
|
|
191
|
+
:'pipeline_program_count',
|
|
192
|
+
:'pipeline_active_program_count',
|
|
193
|
+
:'pipeline_max_phase'
|
|
194
|
+
])
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# Initializes the object
|
|
198
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
199
|
+
def initialize(attributes = {})
|
|
200
|
+
if (!attributes.is_a?(Hash))
|
|
201
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PharmaObservatory::BiomarkerAssayWhitespaceRow` initialize method"
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
205
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
206
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
207
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
208
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PharmaObservatory::BiomarkerAssayWhitespaceRow`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
209
|
+
end
|
|
210
|
+
h[k.to_sym] = v
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
if attributes.key?(:'biomarker_id')
|
|
214
|
+
self.biomarker_id = attributes[:'biomarker_id']
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
if attributes.key?(:'route_key')
|
|
218
|
+
self.route_key = attributes[:'route_key']
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
if attributes.key?(:'gene_symbol')
|
|
222
|
+
self.gene_symbol = attributes[:'gene_symbol']
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
if attributes.key?(:'biomarker_display_name')
|
|
226
|
+
self.biomarker_display_name = attributes[:'biomarker_display_name']
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
if attributes.key?(:'biomarker_identity_status')
|
|
230
|
+
self.biomarker_identity_status = attributes[:'biomarker_identity_status']
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
if attributes.key?(:'target_id')
|
|
234
|
+
self.target_id = attributes[:'target_id']
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
if attributes.key?(:'whitespace_bucket')
|
|
238
|
+
self.whitespace_bucket = attributes[:'whitespace_bucket']
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
if attributes.key?(:'whitespace_bucket_rule_id')
|
|
242
|
+
self.whitespace_bucket_rule_id = attributes[:'whitespace_bucket_rule_id']
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
if attributes.key?(:'gene_evidence_tier')
|
|
246
|
+
self.gene_evidence_tier = attributes[:'gene_evidence_tier']
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
if attributes.key?(:'gene_supply_status')
|
|
250
|
+
self.gene_supply_status = attributes[:'gene_supply_status']
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
if attributes.key?(:'validated_evidence_row_count')
|
|
254
|
+
self.validated_evidence_row_count = attributes[:'validated_evidence_row_count']
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
if attributes.key?(:'literature_evidence_row_count')
|
|
258
|
+
self.literature_evidence_row_count = attributes[:'literature_evidence_row_count']
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
if attributes.key?(:'evidence_types_present')
|
|
262
|
+
if (value = attributes[:'evidence_types_present']).is_a?(Array)
|
|
263
|
+
self.evidence_types_present = value
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
if attributes.key?(:'evidence_tier_rule_ids_present')
|
|
268
|
+
if (value = attributes[:'evidence_tier_rule_ids_present']).is_a?(Array)
|
|
269
|
+
self.evidence_tier_rule_ids_present = value
|
|
270
|
+
end
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
if attributes.key?(:'evidence_validation_ids')
|
|
274
|
+
if (value = attributes[:'evidence_validation_ids']).is_a?(Array)
|
|
275
|
+
self.evidence_validation_ids = value
|
|
276
|
+
end
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
if attributes.key?(:'literature_evidence_ids')
|
|
280
|
+
if (value = attributes[:'literature_evidence_ids']).is_a?(Array)
|
|
281
|
+
self.literature_evidence_ids = value
|
|
282
|
+
end
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
if attributes.key?(:'literature_evidence_document_ids')
|
|
286
|
+
if (value = attributes[:'literature_evidence_document_ids']).is_a?(Array)
|
|
287
|
+
self.literature_evidence_document_ids = value
|
|
288
|
+
end
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
if attributes.key?(:'supplier_declaration_ids')
|
|
292
|
+
if (value = attributes[:'supplier_declaration_ids']).is_a?(Array)
|
|
293
|
+
self.supplier_declaration_ids = value
|
|
294
|
+
end
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
if attributes.key?(:'supplier_positive_response_count')
|
|
298
|
+
self.supplier_positive_response_count = attributes[:'supplier_positive_response_count']
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
if attributes.key?(:'supplier_conflicting_response_count')
|
|
302
|
+
self.supplier_conflicting_response_count = attributes[:'supplier_conflicting_response_count']
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
if attributes.key?(:'supplier_detail_only_response_count')
|
|
306
|
+
self.supplier_detail_only_response_count = attributes[:'supplier_detail_only_response_count']
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
if attributes.key?(:'supplier_no_assay_response_count')
|
|
310
|
+
self.supplier_no_assay_response_count = attributes[:'supplier_no_assay_response_count']
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
if attributes.key?(:'pipeline_program_count')
|
|
314
|
+
self.pipeline_program_count = attributes[:'pipeline_program_count']
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
if attributes.key?(:'pipeline_active_program_count')
|
|
318
|
+
self.pipeline_active_program_count = attributes[:'pipeline_active_program_count']
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
if attributes.key?(:'pipeline_max_phase')
|
|
322
|
+
self.pipeline_max_phase = attributes[:'pipeline_max_phase']
|
|
323
|
+
end
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
327
|
+
# @return Array for valid properties with the reasons
|
|
328
|
+
def list_invalid_properties
|
|
329
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
330
|
+
invalid_properties = Array.new
|
|
331
|
+
invalid_properties
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
# Check to see if the all the properties in the model are valid
|
|
335
|
+
# @return true if the model is valid
|
|
336
|
+
def valid?
|
|
337
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
338
|
+
true
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
# Checks equality by comparing each attribute.
|
|
342
|
+
# @param [Object] Object to be compared
|
|
343
|
+
def ==(o)
|
|
344
|
+
return true if self.equal?(o)
|
|
345
|
+
self.class == o.class &&
|
|
346
|
+
biomarker_id == o.biomarker_id &&
|
|
347
|
+
route_key == o.route_key &&
|
|
348
|
+
gene_symbol == o.gene_symbol &&
|
|
349
|
+
biomarker_display_name == o.biomarker_display_name &&
|
|
350
|
+
biomarker_identity_status == o.biomarker_identity_status &&
|
|
351
|
+
target_id == o.target_id &&
|
|
352
|
+
whitespace_bucket == o.whitespace_bucket &&
|
|
353
|
+
whitespace_bucket_rule_id == o.whitespace_bucket_rule_id &&
|
|
354
|
+
gene_evidence_tier == o.gene_evidence_tier &&
|
|
355
|
+
gene_supply_status == o.gene_supply_status &&
|
|
356
|
+
validated_evidence_row_count == o.validated_evidence_row_count &&
|
|
357
|
+
literature_evidence_row_count == o.literature_evidence_row_count &&
|
|
358
|
+
evidence_types_present == o.evidence_types_present &&
|
|
359
|
+
evidence_tier_rule_ids_present == o.evidence_tier_rule_ids_present &&
|
|
360
|
+
evidence_validation_ids == o.evidence_validation_ids &&
|
|
361
|
+
literature_evidence_ids == o.literature_evidence_ids &&
|
|
362
|
+
literature_evidence_document_ids == o.literature_evidence_document_ids &&
|
|
363
|
+
supplier_declaration_ids == o.supplier_declaration_ids &&
|
|
364
|
+
supplier_positive_response_count == o.supplier_positive_response_count &&
|
|
365
|
+
supplier_conflicting_response_count == o.supplier_conflicting_response_count &&
|
|
366
|
+
supplier_detail_only_response_count == o.supplier_detail_only_response_count &&
|
|
367
|
+
supplier_no_assay_response_count == o.supplier_no_assay_response_count &&
|
|
368
|
+
pipeline_program_count == o.pipeline_program_count &&
|
|
369
|
+
pipeline_active_program_count == o.pipeline_active_program_count &&
|
|
370
|
+
pipeline_max_phase == o.pipeline_max_phase
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
# @see the `==` method
|
|
374
|
+
# @param [Object] Object to be compared
|
|
375
|
+
def eql?(o)
|
|
376
|
+
self == o
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
# Calculates hash code according to all attributes.
|
|
380
|
+
# @return [Integer] Hash code
|
|
381
|
+
def hash
|
|
382
|
+
[biomarker_id, route_key, gene_symbol, biomarker_display_name, biomarker_identity_status, target_id, whitespace_bucket, whitespace_bucket_rule_id, gene_evidence_tier, gene_supply_status, validated_evidence_row_count, literature_evidence_row_count, evidence_types_present, evidence_tier_rule_ids_present, evidence_validation_ids, literature_evidence_ids, literature_evidence_document_ids, supplier_declaration_ids, supplier_positive_response_count, supplier_conflicting_response_count, supplier_detail_only_response_count, supplier_no_assay_response_count, pipeline_program_count, pipeline_active_program_count, pipeline_max_phase].hash
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
# Builds the object from hash
|
|
386
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
387
|
+
# @return [Object] Returns the model itself
|
|
388
|
+
def self.build_from_hash(attributes)
|
|
389
|
+
return nil unless attributes.is_a?(Hash)
|
|
390
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
391
|
+
transformed_hash = {}
|
|
392
|
+
openapi_types.each_pair do |key, type|
|
|
393
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
394
|
+
transformed_hash["#{key}"] = nil
|
|
395
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
396
|
+
# check to ensure the input is an array given that the attribute
|
|
397
|
+
# is documented as an array but the input is not
|
|
398
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
399
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
400
|
+
end
|
|
401
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
402
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
403
|
+
end
|
|
404
|
+
end
|
|
405
|
+
new(transformed_hash)
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
# Deserializes the data based on type
|
|
409
|
+
# @param string type Data type
|
|
410
|
+
# @param string value Value to be deserialized
|
|
411
|
+
# @return [Object] Deserialized data
|
|
412
|
+
def self._deserialize(type, value)
|
|
413
|
+
case type.to_sym
|
|
414
|
+
when :Time
|
|
415
|
+
Time.parse(value)
|
|
416
|
+
when :Date
|
|
417
|
+
Date.parse(value)
|
|
418
|
+
when :String
|
|
419
|
+
value.to_s
|
|
420
|
+
when :Integer
|
|
421
|
+
value.to_i
|
|
422
|
+
when :Float
|
|
423
|
+
value.to_f
|
|
424
|
+
when :Boolean
|
|
425
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
426
|
+
true
|
|
427
|
+
else
|
|
428
|
+
false
|
|
429
|
+
end
|
|
430
|
+
when :Object
|
|
431
|
+
# generic object (usually a Hash), return directly
|
|
432
|
+
value
|
|
433
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
434
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
435
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
436
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
437
|
+
k_type = Regexp.last_match[:k_type]
|
|
438
|
+
v_type = Regexp.last_match[:v_type]
|
|
439
|
+
{}.tap do |hash|
|
|
440
|
+
value.each do |k, v|
|
|
441
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
442
|
+
end
|
|
443
|
+
end
|
|
444
|
+
else # model
|
|
445
|
+
# models (e.g. Pet) or oneOf
|
|
446
|
+
klass = PharmaObservatory.const_get(type)
|
|
447
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
448
|
+
end
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
# Returns the string representation of the object
|
|
452
|
+
# @return [String] String presentation of the object
|
|
453
|
+
def to_s
|
|
454
|
+
to_hash.to_s
|
|
455
|
+
end
|
|
456
|
+
|
|
457
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
458
|
+
# @return [Hash] Returns the object in the form of hash
|
|
459
|
+
def to_body
|
|
460
|
+
to_hash
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
# Returns the object in the form of hash
|
|
464
|
+
# @return [Hash] Returns the object in the form of hash
|
|
465
|
+
def to_hash
|
|
466
|
+
hash = {}
|
|
467
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
468
|
+
value = self.send(attr)
|
|
469
|
+
if value.nil?
|
|
470
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
471
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
472
|
+
end
|
|
473
|
+
|
|
474
|
+
hash[param] = _to_hash(value)
|
|
475
|
+
end
|
|
476
|
+
hash
|
|
477
|
+
end
|
|
478
|
+
|
|
479
|
+
# Outputs non-array value in the form of hash
|
|
480
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
481
|
+
# @param [Object] value Any valid value
|
|
482
|
+
# @return [Hash] Returns the value in the form of hash
|
|
483
|
+
def _to_hash(value)
|
|
484
|
+
if value.is_a?(Array)
|
|
485
|
+
value.compact.map { |v| _to_hash(v) }
|
|
486
|
+
elsif value.is_a?(Hash)
|
|
487
|
+
{}.tap do |hash|
|
|
488
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
489
|
+
end
|
|
490
|
+
elsif value.respond_to? :to_hash
|
|
491
|
+
value.to_hash
|
|
492
|
+
else
|
|
493
|
+
value
|
|
494
|
+
end
|
|
495
|
+
end
|
|
496
|
+
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
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<BiomarkerBqpAssertionsRow>',
|
|
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
|
}
|
|
@@ -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<BiomarkerCdxAssertionsRow>',
|
|
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
|
}
|
|
@@ -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<BiomarkerEvidenceRow>',
|
|
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
|
}
|
|
@@ -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<BiomarkerLiteratureRow>',
|
|
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
|
}
|
|
@@ -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<BiomarkerPublishingCompaniesRow>',
|
|
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
|
}
|