pharmaobservatory 0.1.0
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 +7 -0
- data/README.md +314 -0
- data/docs/ApiV1BaseApi.md +72 -0
- data/docs/ApiV1BiomarkerAssayScreenApi.md +87 -0
- data/docs/ApiV1BiomarkerAssayScreenGet200Response.md +26 -0
- data/docs/ApiV1BiomarkerAssayScreenGet200ResponseBuildState.md +22 -0
- data/docs/ApiV1BiomarkerAssayScreenGet200ResponseEvidenceInner.md +48 -0
- data/docs/ApiV1BiomarkerAssayScreenGet200ResponseEvidenceInnerSourceRef.md +28 -0
- data/docs/ApiV1BiomarkerAssayScreenGet200ResponseFilters.md +28 -0
- data/docs/ApiV1BiomarkerAssayWhitespaceApi.md +87 -0
- data/docs/ApiV1BiomarkerAssayWhitespaceGet200Response.md +76 -0
- data/docs/ApiV1BiomarkerAssayWhitespaceGet200ResponseBucketCounts.md +34 -0
- data/docs/ApiV1BiomarkerAssayWhitespaceGet200ResponseFilters.md +26 -0
- data/docs/ApiV1BiomarkerAssayWhitespaceGet200ResponseGenesInner.md +38 -0
- data/docs/ApiV1BiomarkerAssayWhitespaceGet200ResponseLiteratureEvidenceInner.md +24 -0
- data/docs/ApiV1BiomarkerAssayWhitespaceGet200ResponseProfileLink.md +20 -0
- data/docs/ApiV1BiomarkerAssayWhitespaceGet200ResponseSupplierDeclarationsInner.md +22 -0
- data/docs/ApiV1BiomarkerAssayWhitespaceGet200ResponseValidatedEvidenceInner.md +34 -0
- data/docs/ApiV1CandidateSiteApi.md +83 -0
- data/docs/ApiV1CandidateSitesGet200Response.md +32 -0
- data/docs/ApiV1CandidateSitesGet200ResponseFilters.md +22 -0
- data/docs/ApiV1CandidateSitesGet200ResponseSitesInner.md +46 -0
- data/docs/ApiV1ConditionApi.md +211 -0
- data/docs/ApiV1ConditionsConditionIdBurdenVsEvidenceGet200Response.md +36 -0
- data/docs/ApiV1ConditionsConditionIdBurdenVsEvidenceGet200ResponseRestriction.md +22 -0
- data/docs/ApiV1ConditionsConditionIdEvidenceFreshnessGet200Response.md +26 -0
- data/docs/ApiV1ConditionsConditionIdEvidenceFreshnessGet200ResponseBuildState.md +18 -0
- data/docs/ApiV1ConditionsConditionIdEvidenceFreshnessGet200ResponseSections.md +20 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200Response.md +40 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseActiveYearSpan.md +20 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponsePhaseBreakdownInner.md +20 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseRecruitmentRollup.md +74 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseRecruitmentRollupFiguresInner.md +22 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseRecruitmentRollupPhasesInner.md +48 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseRecruitmentRollupPredicted.md +24 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseRecruitmentRollupRealized.md +22 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseRecruitmentRollupStatuses.md +32 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseSections.md +28 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseSponsorsInner.md +22 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseTrialStartForecast.md +32 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseTrialsByYearInner.md +20 -0
- data/docs/ApiV1EnrollmentBenchmarkApi.md +79 -0
- data/docs/ApiV1EnrollmentBenchmarkGet200Response.md +28 -0
- data/docs/ApiV1EnrollmentBenchmarkGet200ResponseBenchmark.md +42 -0
- data/docs/ApiV1EnrollmentBenchmarkGet200ResponseBenchmarkAccrualRatePerSiteMonth.md +26 -0
- data/docs/ApiV1EnrollmentBenchmarkGet200ResponseBenchmarkConfidence.md +24 -0
- data/docs/ApiV1EnrollmentBenchmarkGet200ResponseBenchmarkEnrollment.md +22 -0
- data/docs/ApiV1EnrollmentBenchmarkGet200ResponseBenchmarkTypicalDurationMonths.md +28 -0
- data/docs/ApiV1EnrollmentBenchmarkGet200ResponseFilters.md +20 -0
- data/docs/ApiV1InvestorProfileGet200Response.md +38 -0
- data/docs/ApiV1InvestorProfileGet200ResponseFunds.md +20 -0
- data/docs/ApiV1InvestorProfileGet200ResponseFundsRollupInner.md +22 -0
- data/docs/ApiV1InvestorProfileGet200ResponseOwnership.md +22 -0
- data/docs/ApiV1InvestorProfileGet200ResponseOwnershipHoldings.md +22 -0
- data/docs/ApiV1InvestorProfileGet200ResponseOwnershipOwners.md +22 -0
- data/docs/ApiV1InvestorProfileGet200ResponseOwnershipOwnersRowsInner.md +52 -0
- data/docs/ApiV1InvestorProfileGet200ResponseProfile.md +44 -0
- data/docs/ApiV1InvestorProfileGet200ResponseResolution.md +24 -0
- data/docs/ApiV1InvestorProfileGet200ResponseSections.md +24 -0
- data/docs/ApiV1InvestorProfileGet200ResponseSemantics.md +20 -0
- data/docs/ApiV1InvestorProfileGet200ResponseSemanticsOwnershipDimension.md +20 -0
- data/docs/ApiV1InvestorProfileGet200ResponseSemanticsSourceClass.md +18 -0
- data/docs/ApiV1InvestorProfileGet200ResponseSemanticsSourceClassSecFormAdv.md +20 -0
- data/docs/ApiV1LicensingCandidatesGet200Response.md +26 -0
- data/docs/ApiV1LicensingCandidatesGet200ResponseCandidatesInner.md +42 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200Response.md +48 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseFinancing.md +24 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseFinancingRoundsInner.md +40 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseFinancingSummary.md +38 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseInvestors.md +26 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPercentages.md +30 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPercentagesInsider.md +40 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPercentagesInstitutional.md +42 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPercentagesNotes.md +30 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPercentagesSharesOutstanding.md +28 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPositions.md +24 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPositionsInstitutional13f.md +22 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPositionsPositionsInner.md +50 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseSections.md +36 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseSemantics.md +20 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseSemanticsOwnershipDimension.md +22 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseSemanticsSourceClass.md +22 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseUnmatchedProductRevenue.md +24 -0
- data/docs/ApiV1OrgFinancingAndOwnershipOwnershipPositionsInstitutional13fHoldersInner.md +34 -0
- data/docs/ApiV1OrgPipelineStagesGet200Response.md +48 -0
- data/docs/ApiV1OrgPipelineStagesGet200ResponseApprovedMarketedInner.md +30 -0
- data/docs/ApiV1OrgPipelineStagesGet200ResponseInDevelopmentInner.md +34 -0
- data/docs/ApiV1OrgPipelineStagesGet200ResponseRecruitmentRollup.md +74 -0
- data/docs/ApiV1OrgPipelineStagesGet200ResponseRecruitmentRollupPhasesInner.md +48 -0
- data/docs/ApiV1OrgPipelineStagesGet200ResponseRecruitmentRollupPredicted.md +24 -0
- data/docs/ApiV1OrgPipelineStagesGet200ResponseSections.md +30 -0
- data/docs/ApiV1OrgPipelineStagesGet200ResponseTrialStartForecast.md +32 -0
- data/docs/ApiV1OrgPipelineStagesGet200ResponseTrialStartForecastYearsInner.md +50 -0
- data/docs/ApiV1OwnershipApi.md +155 -0
- data/docs/ApiV1PatentCliffExposureGet200Response.md +28 -0
- data/docs/ApiV1PatentCliffExposureGet200ResponseExposuresInner.md +46 -0
- data/docs/ApiV1ProgramCatalystApi.md +291 -0
- data/docs/ApiV1ProgramCatalystsGet200Response.md +32 -0
- data/docs/ApiV1ProgramCatalystsGet200ResponseCalendarInner.md +46 -0
- data/docs/ApiV1ProgramCatalystsGet200ResponsePdufa.md +26 -0
- data/docs/ApiV1ProgramCatalystsGet200ResponseSections.md +22 -0
- data/docs/ApiV1ResolveEntityApi.md +83 -0
- data/docs/ApiV1ResolveEntityGet200Response.md +36 -0
- data/docs/ApiV1ResolveEntityGet200ResponseCandidatesInner.md +26 -0
- data/docs/ApiV1ResolveEntityGet200ResponseCandidatesInnerRestriction.md +22 -0
- data/docs/ApiV1ResolveEntityGet200ResponseResolutionConfidence.md +20 -0
- data/docs/ApiV1RwdApi.md +153 -0
- data/docs/ApiV1RwdConductorTrackRecordGet200Response.md +42 -0
- data/docs/ApiV1RwdConductorTrackRecordGet200ResponseConductor.md +28 -0
- data/docs/ApiV1RwdConductorTrackRecordGet200ResponseDeliveryByMandate.md +22 -0
- data/docs/ApiV1RwdConductorTrackRecordGet200ResponseDeliveryByMandateAll.md +52 -0
- data/docs/ApiV1RwdConductorTrackRecordGet200ResponseDeliveryByMandateMandated.md +52 -0
- data/docs/ApiV1RwdConductorTrackRecordGet200ResponseDeliveryByMandateVoluntary.md +52 -0
- data/docs/ApiV1RwdConductorTrackRecordGet200ResponseFootprint.md +20 -0
- data/docs/ApiV1RwdConductorTrackRecordGet200ResponseFootprintDeliveredCountriesInner.md +20 -0
- data/docs/ApiV1RwdStudyScreenGet200Response.md +34 -0
- data/docs/ApiV1RwdStudyScreenGet200ResponseDeliveryDistribution.md +34 -0
- data/docs/ApiV1RwdStudyScreenGet200ResponseFilters.md +24 -0
- data/docs/ApiV1SiteRecordApi.md +83 -0
- data/docs/ApiV1SiteRecordGet200Response.md +36 -0
- data/docs/ApiV1SiteRecordGet200ResponseDetailSections.md +26 -0
- data/docs/ApiV1SiteRecordGet200ResponseDetailSectionsTrials.md +20 -0
- data/docs/ApiV1SiteRecordGet200ResponseSiteKeyRedirect.md +20 -0
- data/docs/ApiV1SiteRecordGet200ResponseSitesInner.md +46 -0
- data/docs/ApiV1SiteRecordGet200ResponseSitesInnerActiveYears.md +20 -0
- data/docs/ApiV1SiteRecordGet200ResponseSitesInnerDrugsInner.md +22 -0
- data/docs/ApiV1SiteRecordGet200ResponseSitesInnerEstimatedEnrollment.md +22 -0
- data/docs/ApiV1SiteRecordGet200ResponseSitesInnerIndicationsInner.md +22 -0
- data/docs/ApiV1SiteRecordGet200ResponseSitesInnerInvestigatorsInner.md +26 -0
- data/docs/ApiV1SiteRecordGet200ResponseSitesInnerTrialsInner.md +24 -0
- data/docs/ApiV1SponsorLandscapeRecruitmentRollupPredictedAtHorizonCap.md +22 -0
- data/docs/ApiV1SponsorLandscapeRecruitmentRollupStatusCountsInner.md +22 -0
- data/docs/ApiV1TrialApi.md +363 -0
- data/docs/ApiV1TrialsDiscontinuationReasonsGet200Response.md +34 -0
- data/docs/ApiV1TrialsDiscontinuationReasonsGet200ResponseFilters.md +20 -0
- data/docs/ApiV1TrialsDiscontinuationReasonsGet200ResponseTrialsInner.md +28 -0
- data/docs/ApiV1TrialsEligibilityGeneralizabilityScanGet200Response.md +32 -0
- data/docs/ApiV1TrialsEligibilityGeneralizabilityScanGet200ResponseFilters.md +18 -0
- data/docs/ApiV1TrialsEligibilityGeneralizabilityScanGet200ResponseTrialsInner.md +32 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200Response.md +36 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponsePredictionsInner.md +54 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponsePredictionsInnerBaseline.md +24 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponsePredictionsInnerFigure.md +28 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponsePredictionsInnerInputsAsRegistered.md +38 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponsePredictionsInnerMeasuredError.md +26 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponsePredictionsInnerMeasuredErrorPhase.md +34 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponsePredictionsInnerMeasuredErrorSize.md +34 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponsePredictionsInnerReason.md +28 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponsePredictionsStatus.md +28 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponseRecordHistory.md +36 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponseRecordHistoryChangesInner.md +24 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponseRecordHistoryObservationsInner.md +32 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponseRecordHistoryObservationsInnerEnrollment.md +28 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponseRecordHistoryObservationsInnerSites.md +32 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponseRecordHistoryObservationsInnerStartDate.md +28 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponseSections.md +26 -0
- data/docs/ApiV1TrialsHistoryPredictionsInnerRegisteredPrimaryCompletion.md +22 -0
- data/docs/ApiV1TrialsHistoryRecordHistoryObservationsInnerOverallStatus.md +24 -0
- data/docs/ApiV1TrialsRecordsGet200Response.md +28 -0
- data/docs/ApiV1TrialsRecordsGet200ResponseBuildState.md +22 -0
- data/docs/ApiV1TrialsRecordsGet200ResponseExtractionCoverage.md +32 -0
- data/docs/ApiV1TrialsRecordsGet200ResponseSections.md +20 -0
- data/docs/ApiV1TrialsRecordsGet200ResponseSectionsExtracted.md +22 -0
- data/docs/ApiV1TrialsRecordsGet200ResponseTrialsInner.md +114 -0
- data/docs/ApiV1TrialsRecordsGet200ResponseTrialsInnerExtracted.md +46 -0
- data/docs/ApiV1TrialsRecordsGet200ResponseTrialsInnerLinkedDrugsInner.md +28 -0
- data/docs/ApiV1TrialsRecordsGet200ResponseTrialsInnerLinkedDrugsInnerBrandsInner.md +20 -0
- data/docs/ApiV1TrialsReportingCompletenessGet200Response.md +32 -0
- data/docs/ApiV1TrialsReportingCompletenessGet200ResponseDemographicFieldPopulationRate.md +24 -0
- data/docs/ApiV1WhoamiGet200Response.md +22 -0
- data/docs/AuthError.md +18 -0
- data/docs/NotEntitledError.md +24 -0
- data/lib/pharmaobservatory/api/api_v1_base_api.rb +77 -0
- data/lib/pharmaobservatory/api/api_v1_biomarker_assay_screen_api.rb +95 -0
- data/lib/pharmaobservatory/api/api_v1_biomarker_assay_whitespace_api.rb +95 -0
- data/lib/pharmaobservatory/api/api_v1_candidate_site_api.rb +89 -0
- data/lib/pharmaobservatory/api/api_v1_condition_api.rb +205 -0
- data/lib/pharmaobservatory/api/api_v1_enrollment_benchmark_api.rb +83 -0
- data/lib/pharmaobservatory/api/api_v1_ownership_api.rb +150 -0
- data/lib/pharmaobservatory/api/api_v1_program_catalyst_api.rb +260 -0
- data/lib/pharmaobservatory/api/api_v1_resolve_entity_api.rb +89 -0
- data/lib/pharmaobservatory/api/api_v1_rwd_api.rb +147 -0
- data/lib/pharmaobservatory/api/api_v1_site_record_api.rb +89 -0
- data/lib/pharmaobservatory/api/api_v1_trial_api.rb +321 -0
- data/lib/pharmaobservatory/api_client.rb +437 -0
- data/lib/pharmaobservatory/api_error.rb +58 -0
- data/lib/pharmaobservatory/configuration.rb +393 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_screen_get200_response.rb +343 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_screen_get200_response_build_state.rb +275 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_screen_get200_response_evidence_inner.rb +507 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_screen_get200_response_evidence_inner_source_ref.rb +369 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_screen_get200_response_filters.rb +283 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_whitespace_get200_response.rb +525 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_whitespace_get200_response_bucket_counts.rb +445 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_whitespace_get200_response_filters.rb +285 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_whitespace_get200_response_genes_inner.rb +469 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_whitespace_get200_response_literature_evidence_inner.rb +317 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_whitespace_get200_response_profile_link.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_whitespace_get200_response_supplier_declarations_inner.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_whitespace_get200_response_validated_evidence_inner.rb +431 -0
- data/lib/pharmaobservatory/models/api_v1_candidate_sites_get200_response.rb +302 -0
- data/lib/pharmaobservatory/models/api_v1_candidate_sites_get200_response_filters.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_candidate_sites_get200_response_sites_inner.rb +573 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_burden_vs_evidence_get200_response.rb +471 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_burden_vs_evidence_get200_response_restriction.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_evidence_freshness_get200_response.rb +327 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_evidence_freshness_get200_response_build_state.rb +237 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_evidence_freshness_get200_response_sections.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response.rb +398 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_active_year_span.rb +235 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_phase_breakdown_inner.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_recruitment_rollup.rb +954 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_recruitment_rollup_figures_inner.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_recruitment_rollup_phases_inner.rb +512 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_recruitment_rollup_predicted.rb +259 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_recruitment_rollup_realized.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_recruitment_rollup_statuses.rb +419 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_sections.rb +299 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_sponsors_inner.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_trial_start_forecast.rb +421 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_trials_by_year_inner.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_enrollment_benchmark_get200_response.rb +282 -0
- data/lib/pharmaobservatory/models/api_v1_enrollment_benchmark_get200_response_benchmark.rb +549 -0
- data/lib/pharmaobservatory/models/api_v1_enrollment_benchmark_get200_response_benchmark_accrual_rate_per_site_month.rb +341 -0
- data/lib/pharmaobservatory/models/api_v1_enrollment_benchmark_get200_response_benchmark_confidence.rb +301 -0
- data/lib/pharmaobservatory/models/api_v1_enrollment_benchmark_get200_response_benchmark_enrollment.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_enrollment_benchmark_get200_response_benchmark_typical_duration_months.rb +367 -0
- data/lib/pharmaobservatory/models/api_v1_enrollment_benchmark_get200_response_filters.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response.rb +401 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_funds.rb +265 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_funds_rollup_inner.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_ownership.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_ownership_holdings.rb +291 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_ownership_owners.rb +291 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_ownership_owners_rows_inner.rb +595 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_profile.rb +561 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_resolution.rb +303 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_sections.rb +315 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_semantics.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_semantics_ownership_dimension.rb +229 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_semantics_source_class.rb +220 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_semantics_source_class_sec_form_adv.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_licensing_candidates_get200_response.rb +343 -0
- data/lib/pharmaobservatory/models/api_v1_licensing_candidates_get200_response_candidates_inner.rb +549 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response.rb +481 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_financing.rb +303 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_financing_rounds_inner.rb +509 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_financing_summary.rb +497 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_investors.rb +343 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_ownership_percentages.rb +365 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_ownership_percentages_insider.rb +453 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_ownership_percentages_institutional.rb +437 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_ownership_percentages_notes.rb +393 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_ownership_percentages_shares_outstanding.rb +339 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_ownership_positions.rb +317 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_ownership_positions_institutional13f.rb +291 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_ownership_positions_positions_inner.rb +597 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_sections.rb +403 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_semantics.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_semantics_ownership_dimension.rb +238 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_semantics_source_class.rb +238 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_unmatched_product_revenue.rb +301 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_ownership_positions_institutional13f_holders_inner.rb +417 -0
- data/lib/pharmaobservatory/models/api_v1_org_pipeline_stages_get200_response.rb +449 -0
- data/lib/pharmaobservatory/models/api_v1_org_pipeline_stages_get200_response_approved_marketed_inner.rb +393 -0
- data/lib/pharmaobservatory/models/api_v1_org_pipeline_stages_get200_response_in_development_inner.rb +445 -0
- data/lib/pharmaobservatory/models/api_v1_org_pipeline_stages_get200_response_recruitment_rollup.rb +940 -0
- data/lib/pharmaobservatory/models/api_v1_org_pipeline_stages_get200_response_recruitment_rollup_phases_inner.rb +512 -0
- data/lib/pharmaobservatory/models/api_v1_org_pipeline_stages_get200_response_recruitment_rollup_predicted.rb +315 -0
- data/lib/pharmaobservatory/models/api_v1_org_pipeline_stages_get200_response_sections.rb +325 -0
- data/lib/pharmaobservatory/models/api_v1_org_pipeline_stages_get200_response_trial_start_forecast.rb +421 -0
- data/lib/pharmaobservatory/models/api_v1_org_pipeline_stages_get200_response_trial_start_forecast_years_inner.rb +611 -0
- data/lib/pharmaobservatory/models/api_v1_patent_cliff_exposure_get200_response.rb +339 -0
- data/lib/pharmaobservatory/models/api_v1_patent_cliff_exposure_get200_response_exposures_inner.rb +531 -0
- data/lib/pharmaobservatory/models/api_v1_program_catalysts_get200_response.rb +377 -0
- data/lib/pharmaobservatory/models/api_v1_program_catalysts_get200_response_calendar_inner.rb +429 -0
- data/lib/pharmaobservatory/models/api_v1_program_catalysts_get200_response_pdufa.rb +324 -0
- data/lib/pharmaobservatory/models/api_v1_program_catalysts_get200_response_sections.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_resolve_entity_get200_response.rb +383 -0
- data/lib/pharmaobservatory/models/api_v1_resolve_entity_get200_response_candidates_inner.rb +283 -0
- data/lib/pharmaobservatory/models/api_v1_resolve_entity_get200_response_candidates_inner_restriction.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_resolve_entity_get200_response_resolution_confidence.rb +249 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_conductor_track_record_get200_response.rb +467 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_conductor_track_record_get200_response_conductor.rb +371 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_conductor_track_record_get200_response_delivery_by_mandate.rb +272 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_conductor_track_record_get200_response_delivery_by_mandate_all.rb +595 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_conductor_track_record_get200_response_delivery_by_mandate_mandated.rb +609 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_conductor_track_record_get200_response_delivery_by_mandate_voluntary.rb +665 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_conductor_track_record_get200_response_footprint.rb +267 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_conductor_track_record_get200_response_footprint_delivered_countries_inner.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_study_screen_get200_response.rb +387 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_study_screen_get200_response_delivery_distribution.rb +403 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_study_screen_get200_response_filters.rb +259 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response.rb +320 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response_detail_sections.rb +341 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response_detail_sections_trials.rb +265 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response_site_key_redirect.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response_sites_inner.rb +477 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response_sites_inner_active_years.rb +235 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response_sites_inner_drugs_inner.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response_sites_inner_estimated_enrollment.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response_sites_inner_indications_inner.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response_sites_inner_investigators_inner.rb +327 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response_sites_inner_trials_inner.rb +301 -0
- data/lib/pharmaobservatory/models/api_v1_sponsor_landscape_recruitment_rollup_predicted_at_horizon_cap.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_sponsor_landscape_recruitment_rollup_status_counts_inner.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_trials_discontinuation_reasons_get200_response.rb +311 -0
- data/lib/pharmaobservatory/models/api_v1_trials_discontinuation_reasons_get200_response_filters.rb +265 -0
- data/lib/pharmaobservatory/models/api_v1_trials_discontinuation_reasons_get200_response_trials_inner.rb +353 -0
- data/lib/pharmaobservatory/models/api_v1_trials_eligibility_generalizability_scan_get200_response.rb +302 -0
- data/lib/pharmaobservatory/models/api_v1_trials_eligibility_generalizability_scan_get200_response_filters.rb +237 -0
- data/lib/pharmaobservatory/models/api_v1_trials_eligibility_generalizability_scan_get200_response_trials_inner.rb +351 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response.rb +340 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_predictions_inner.rb +579 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_predictions_inner_baseline.rb +315 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_predictions_inner_figure.rb +367 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_predictions_inner_inputs_as_registered.rb +343 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_predictions_inner_measured_error.rb +299 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_predictions_inner_measured_error_phase.rb +361 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_predictions_inner_measured_error_size.rb +375 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_predictions_inner_reason.rb +311 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_predictions_status.rb +311 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_record_history.rb +433 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_record_history_changes_inner.rb +315 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_record_history_observations_inner.rb +419 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_record_history_observations_inner_enrollment.rb +311 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_record_history_observations_inner_sites.rb +321 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_record_history_observations_inner_start_date.rb +311 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_sections.rb +273 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_predictions_inner_registered_primary_completion.rb +261 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_record_history_observations_inner_overall_status.rb +287 -0
- data/lib/pharmaobservatory/models/api_v1_trials_records_get200_response.rb +339 -0
- data/lib/pharmaobservatory/models/api_v1_trials_records_get200_response_build_state.rb +256 -0
- data/lib/pharmaobservatory/models/api_v1_trials_records_get200_response_extraction_coverage.rb +300 -0
- data/lib/pharmaobservatory/models/api_v1_trials_records_get200_response_sections.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_trials_records_get200_response_sections_extracted.rb +275 -0
- data/lib/pharmaobservatory/models/api_v1_trials_records_get200_response_trials_inner.rb +1189 -0
- data/lib/pharmaobservatory/models/api_v1_trials_records_get200_response_trials_inner_extracted.rb +382 -0
- data/lib/pharmaobservatory/models/api_v1_trials_records_get200_response_trials_inner_linked_drugs_inner.rb +343 -0
- data/lib/pharmaobservatory/models/api_v1_trials_records_get200_response_trials_inner_linked_drugs_inner_brands_inner.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_trials_reporting_completeness_get200_response.rb +300 -0
- data/lib/pharmaobservatory/models/api_v1_trials_reporting_completeness_get200_response_demographic_field_population_rate.rb +315 -0
- data/lib/pharmaobservatory/models/api_v1_whoami_get200_response.rb +291 -0
- data/lib/pharmaobservatory/models/auth_error.rb +237 -0
- data/lib/pharmaobservatory/models/not_entitled_error.rb +315 -0
- data/lib/pharmaobservatory/version.rb +15 -0
- data/lib/pharmaobservatory.rb +209 -0
- metadata +461 -0
|
@@ -0,0 +1,1189 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pharma Observatory Public REST API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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
|
+
class ApiV1TrialsRecordsGet200ResponseTrialsInner
|
|
18
|
+
attr_accessor :canonical_trial_id
|
|
19
|
+
|
|
20
|
+
attr_accessor :nct_id
|
|
21
|
+
|
|
22
|
+
attr_accessor :source_registry
|
|
23
|
+
|
|
24
|
+
attr_accessor :registry
|
|
25
|
+
|
|
26
|
+
attr_accessor :brief_title
|
|
27
|
+
|
|
28
|
+
attr_accessor :official_title
|
|
29
|
+
|
|
30
|
+
attr_accessor :study_type
|
|
31
|
+
|
|
32
|
+
attr_accessor :overall_status
|
|
33
|
+
|
|
34
|
+
attr_accessor :overall_status_summary
|
|
35
|
+
|
|
36
|
+
attr_accessor :phase
|
|
37
|
+
|
|
38
|
+
attr_accessor :phase_by_status
|
|
39
|
+
|
|
40
|
+
attr_accessor :enrollment
|
|
41
|
+
|
|
42
|
+
attr_accessor :enrollment_type
|
|
43
|
+
|
|
44
|
+
attr_accessor :enrollment_flag_reason
|
|
45
|
+
|
|
46
|
+
attr_accessor :start_date
|
|
47
|
+
|
|
48
|
+
attr_accessor :start_year
|
|
49
|
+
|
|
50
|
+
attr_accessor :primary_completion_date
|
|
51
|
+
|
|
52
|
+
attr_accessor :primary_completion_date_type
|
|
53
|
+
|
|
54
|
+
attr_accessor :completion_date
|
|
55
|
+
|
|
56
|
+
attr_accessor :completion_date_type
|
|
57
|
+
|
|
58
|
+
attr_accessor :study_first_posted_date
|
|
59
|
+
|
|
60
|
+
attr_accessor :last_update_posted_date
|
|
61
|
+
|
|
62
|
+
attr_accessor :why_stopped
|
|
63
|
+
|
|
64
|
+
attr_accessor :number_of_arms
|
|
65
|
+
|
|
66
|
+
attr_accessor :number_of_facilities
|
|
67
|
+
|
|
68
|
+
attr_accessor :were_results_reported
|
|
69
|
+
|
|
70
|
+
attr_accessor :has_us_facility
|
|
71
|
+
|
|
72
|
+
attr_accessor :gender
|
|
73
|
+
|
|
74
|
+
attr_accessor :minimum_age
|
|
75
|
+
|
|
76
|
+
attr_accessor :maximum_age
|
|
77
|
+
|
|
78
|
+
attr_accessor :healthy_volunteers
|
|
79
|
+
|
|
80
|
+
attr_accessor :criteria
|
|
81
|
+
|
|
82
|
+
attr_accessor :lead_sponsor_name
|
|
83
|
+
|
|
84
|
+
attr_accessor :lead_sponsor_id
|
|
85
|
+
|
|
86
|
+
attr_accessor :collaborators
|
|
87
|
+
|
|
88
|
+
attr_accessor :participating_sponsors
|
|
89
|
+
|
|
90
|
+
attr_accessor :conditions
|
|
91
|
+
|
|
92
|
+
attr_accessor :condition_mesh
|
|
93
|
+
|
|
94
|
+
attr_accessor :interventions
|
|
95
|
+
|
|
96
|
+
attr_accessor :intervention_types
|
|
97
|
+
|
|
98
|
+
attr_accessor :intervention_mesh
|
|
99
|
+
|
|
100
|
+
attr_accessor :facility_count
|
|
101
|
+
|
|
102
|
+
attr_accessor :facility_countries
|
|
103
|
+
|
|
104
|
+
attr_accessor :facility_country_count
|
|
105
|
+
|
|
106
|
+
attr_accessor :enrollment_is_plausible
|
|
107
|
+
|
|
108
|
+
attr_accessor :phase_label
|
|
109
|
+
|
|
110
|
+
attr_accessor :extracted
|
|
111
|
+
|
|
112
|
+
attr_accessor :linked_drugs
|
|
113
|
+
|
|
114
|
+
attr_accessor :linked_drugs_built
|
|
115
|
+
|
|
116
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
117
|
+
def self.attribute_map
|
|
118
|
+
{
|
|
119
|
+
:'canonical_trial_id' => :'canonical_trial_id',
|
|
120
|
+
:'nct_id' => :'nct_id',
|
|
121
|
+
:'source_registry' => :'source_registry',
|
|
122
|
+
:'registry' => :'registry',
|
|
123
|
+
:'brief_title' => :'brief_title',
|
|
124
|
+
:'official_title' => :'official_title',
|
|
125
|
+
:'study_type' => :'study_type',
|
|
126
|
+
:'overall_status' => :'overall_status',
|
|
127
|
+
:'overall_status_summary' => :'overall_status_summary',
|
|
128
|
+
:'phase' => :'phase',
|
|
129
|
+
:'phase_by_status' => :'phase_by_status',
|
|
130
|
+
:'enrollment' => :'enrollment',
|
|
131
|
+
:'enrollment_type' => :'enrollment_type',
|
|
132
|
+
:'enrollment_flag_reason' => :'enrollment_flag_reason',
|
|
133
|
+
:'start_date' => :'start_date',
|
|
134
|
+
:'start_year' => :'start_year',
|
|
135
|
+
:'primary_completion_date' => :'primary_completion_date',
|
|
136
|
+
:'primary_completion_date_type' => :'primary_completion_date_type',
|
|
137
|
+
:'completion_date' => :'completion_date',
|
|
138
|
+
:'completion_date_type' => :'completion_date_type',
|
|
139
|
+
:'study_first_posted_date' => :'study_first_posted_date',
|
|
140
|
+
:'last_update_posted_date' => :'last_update_posted_date',
|
|
141
|
+
:'why_stopped' => :'why_stopped',
|
|
142
|
+
:'number_of_arms' => :'number_of_arms',
|
|
143
|
+
:'number_of_facilities' => :'number_of_facilities',
|
|
144
|
+
:'were_results_reported' => :'were_results_reported',
|
|
145
|
+
:'has_us_facility' => :'has_us_facility',
|
|
146
|
+
:'gender' => :'gender',
|
|
147
|
+
:'minimum_age' => :'minimum_age',
|
|
148
|
+
:'maximum_age' => :'maximum_age',
|
|
149
|
+
:'healthy_volunteers' => :'healthy_volunteers',
|
|
150
|
+
:'criteria' => :'criteria',
|
|
151
|
+
:'lead_sponsor_name' => :'lead_sponsor_name',
|
|
152
|
+
:'lead_sponsor_id' => :'lead_sponsor_id',
|
|
153
|
+
:'collaborators' => :'collaborators',
|
|
154
|
+
:'participating_sponsors' => :'participating_sponsors',
|
|
155
|
+
:'conditions' => :'conditions',
|
|
156
|
+
:'condition_mesh' => :'condition_mesh',
|
|
157
|
+
:'interventions' => :'interventions',
|
|
158
|
+
:'intervention_types' => :'intervention_types',
|
|
159
|
+
:'intervention_mesh' => :'intervention_mesh',
|
|
160
|
+
:'facility_count' => :'facility_count',
|
|
161
|
+
:'facility_countries' => :'facility_countries',
|
|
162
|
+
:'facility_country_count' => :'facility_country_count',
|
|
163
|
+
:'enrollment_is_plausible' => :'enrollment_is_plausible',
|
|
164
|
+
:'phase_label' => :'phase_label',
|
|
165
|
+
:'extracted' => :'extracted',
|
|
166
|
+
:'linked_drugs' => :'linked_drugs',
|
|
167
|
+
:'linked_drugs_built' => :'linked_drugs_built'
|
|
168
|
+
}
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Returns attribute mapping this model knows about
|
|
172
|
+
def self.acceptable_attribute_map
|
|
173
|
+
attribute_map
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Returns all the JSON keys this model knows about
|
|
177
|
+
def self.acceptable_attributes
|
|
178
|
+
acceptable_attribute_map.values
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Attribute type mapping.
|
|
182
|
+
def self.openapi_types
|
|
183
|
+
{
|
|
184
|
+
:'canonical_trial_id' => :'String',
|
|
185
|
+
:'nct_id' => :'String',
|
|
186
|
+
:'source_registry' => :'String',
|
|
187
|
+
:'registry' => :'String',
|
|
188
|
+
:'brief_title' => :'String',
|
|
189
|
+
:'official_title' => :'String',
|
|
190
|
+
:'study_type' => :'String',
|
|
191
|
+
:'overall_status' => :'String',
|
|
192
|
+
:'overall_status_summary' => :'String',
|
|
193
|
+
:'phase' => :'String',
|
|
194
|
+
:'phase_by_status' => :'String',
|
|
195
|
+
:'enrollment' => :'Integer',
|
|
196
|
+
:'enrollment_type' => :'String',
|
|
197
|
+
:'enrollment_flag_reason' => :'Object',
|
|
198
|
+
:'start_date' => :'String',
|
|
199
|
+
:'start_year' => :'Integer',
|
|
200
|
+
:'primary_completion_date' => :'String',
|
|
201
|
+
:'primary_completion_date_type' => :'String',
|
|
202
|
+
:'completion_date' => :'String',
|
|
203
|
+
:'completion_date_type' => :'String',
|
|
204
|
+
:'study_first_posted_date' => :'String',
|
|
205
|
+
:'last_update_posted_date' => :'String',
|
|
206
|
+
:'why_stopped' => :'String',
|
|
207
|
+
:'number_of_arms' => :'Object',
|
|
208
|
+
:'number_of_facilities' => :'Integer',
|
|
209
|
+
:'were_results_reported' => :'Boolean',
|
|
210
|
+
:'has_us_facility' => :'Boolean',
|
|
211
|
+
:'gender' => :'String',
|
|
212
|
+
:'minimum_age' => :'String',
|
|
213
|
+
:'maximum_age' => :'String',
|
|
214
|
+
:'healthy_volunteers' => :'Boolean',
|
|
215
|
+
:'criteria' => :'String',
|
|
216
|
+
:'lead_sponsor_name' => :'String',
|
|
217
|
+
:'lead_sponsor_id' => :'String',
|
|
218
|
+
:'collaborators' => :'Array<String>',
|
|
219
|
+
:'participating_sponsors' => :'Array<String>',
|
|
220
|
+
:'conditions' => :'Array<String>',
|
|
221
|
+
:'condition_mesh' => :'Array<String>',
|
|
222
|
+
:'interventions' => :'Array<String>',
|
|
223
|
+
:'intervention_types' => :'Array<String>',
|
|
224
|
+
:'intervention_mesh' => :'Array<String>',
|
|
225
|
+
:'facility_count' => :'Integer',
|
|
226
|
+
:'facility_countries' => :'Array<String>',
|
|
227
|
+
:'facility_country_count' => :'Integer',
|
|
228
|
+
:'enrollment_is_plausible' => :'Boolean',
|
|
229
|
+
:'phase_label' => :'String',
|
|
230
|
+
:'extracted' => :'ApiV1TrialsRecordsGet200ResponseTrialsInnerExtracted',
|
|
231
|
+
:'linked_drugs' => :'Array<ApiV1TrialsRecordsGet200ResponseTrialsInnerLinkedDrugsInner>',
|
|
232
|
+
:'linked_drugs_built' => :'Boolean'
|
|
233
|
+
}
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
# List of attributes with nullable: true
|
|
237
|
+
def self.openapi_nullable
|
|
238
|
+
Set.new([
|
|
239
|
+
:'official_title',
|
|
240
|
+
:'phase',
|
|
241
|
+
:'enrollment',
|
|
242
|
+
:'enrollment_type',
|
|
243
|
+
:'enrollment_flag_reason',
|
|
244
|
+
:'primary_completion_date',
|
|
245
|
+
:'primary_completion_date_type',
|
|
246
|
+
:'completion_date',
|
|
247
|
+
:'completion_date_type',
|
|
248
|
+
:'why_stopped',
|
|
249
|
+
:'number_of_arms',
|
|
250
|
+
:'has_us_facility',
|
|
251
|
+
:'minimum_age',
|
|
252
|
+
:'maximum_age',
|
|
253
|
+
:'healthy_volunteers',
|
|
254
|
+
:'intervention_mesh',
|
|
255
|
+
:'facility_count',
|
|
256
|
+
:'facility_countries',
|
|
257
|
+
:'facility_country_count',
|
|
258
|
+
:'extracted',
|
|
259
|
+
])
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# Initializes the object
|
|
263
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
264
|
+
def initialize(attributes = {})
|
|
265
|
+
if (!attributes.is_a?(Hash))
|
|
266
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PharmaObservatory::ApiV1TrialsRecordsGet200ResponseTrialsInner` initialize method"
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
270
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
271
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
272
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
273
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PharmaObservatory::ApiV1TrialsRecordsGet200ResponseTrialsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
274
|
+
end
|
|
275
|
+
h[k.to_sym] = v
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
if attributes.key?(:'canonical_trial_id')
|
|
279
|
+
self.canonical_trial_id = attributes[:'canonical_trial_id']
|
|
280
|
+
else
|
|
281
|
+
self.canonical_trial_id = nil
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
if attributes.key?(:'nct_id')
|
|
285
|
+
self.nct_id = attributes[:'nct_id']
|
|
286
|
+
else
|
|
287
|
+
self.nct_id = nil
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
if attributes.key?(:'source_registry')
|
|
291
|
+
self.source_registry = attributes[:'source_registry']
|
|
292
|
+
else
|
|
293
|
+
self.source_registry = nil
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
if attributes.key?(:'registry')
|
|
297
|
+
self.registry = attributes[:'registry']
|
|
298
|
+
else
|
|
299
|
+
self.registry = nil
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
if attributes.key?(:'brief_title')
|
|
303
|
+
self.brief_title = attributes[:'brief_title']
|
|
304
|
+
else
|
|
305
|
+
self.brief_title = nil
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
if attributes.key?(:'official_title')
|
|
309
|
+
self.official_title = attributes[:'official_title']
|
|
310
|
+
else
|
|
311
|
+
self.official_title = nil
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
if attributes.key?(:'study_type')
|
|
315
|
+
self.study_type = attributes[:'study_type']
|
|
316
|
+
else
|
|
317
|
+
self.study_type = nil
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
if attributes.key?(:'overall_status')
|
|
321
|
+
self.overall_status = attributes[:'overall_status']
|
|
322
|
+
else
|
|
323
|
+
self.overall_status = nil
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
if attributes.key?(:'overall_status_summary')
|
|
327
|
+
self.overall_status_summary = attributes[:'overall_status_summary']
|
|
328
|
+
else
|
|
329
|
+
self.overall_status_summary = nil
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
if attributes.key?(:'phase')
|
|
333
|
+
self.phase = attributes[:'phase']
|
|
334
|
+
else
|
|
335
|
+
self.phase = nil
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
if attributes.key?(:'phase_by_status')
|
|
339
|
+
self.phase_by_status = attributes[:'phase_by_status']
|
|
340
|
+
else
|
|
341
|
+
self.phase_by_status = nil
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
if attributes.key?(:'enrollment')
|
|
345
|
+
self.enrollment = attributes[:'enrollment']
|
|
346
|
+
else
|
|
347
|
+
self.enrollment = nil
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
if attributes.key?(:'enrollment_type')
|
|
351
|
+
self.enrollment_type = attributes[:'enrollment_type']
|
|
352
|
+
else
|
|
353
|
+
self.enrollment_type = nil
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
if attributes.key?(:'enrollment_flag_reason')
|
|
357
|
+
self.enrollment_flag_reason = attributes[:'enrollment_flag_reason']
|
|
358
|
+
else
|
|
359
|
+
self.enrollment_flag_reason = nil
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
if attributes.key?(:'start_date')
|
|
363
|
+
self.start_date = attributes[:'start_date']
|
|
364
|
+
else
|
|
365
|
+
self.start_date = nil
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
if attributes.key?(:'start_year')
|
|
369
|
+
self.start_year = attributes[:'start_year']
|
|
370
|
+
else
|
|
371
|
+
self.start_year = nil
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
if attributes.key?(:'primary_completion_date')
|
|
375
|
+
self.primary_completion_date = attributes[:'primary_completion_date']
|
|
376
|
+
else
|
|
377
|
+
self.primary_completion_date = nil
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
if attributes.key?(:'primary_completion_date_type')
|
|
381
|
+
self.primary_completion_date_type = attributes[:'primary_completion_date_type']
|
|
382
|
+
else
|
|
383
|
+
self.primary_completion_date_type = nil
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
if attributes.key?(:'completion_date')
|
|
387
|
+
self.completion_date = attributes[:'completion_date']
|
|
388
|
+
else
|
|
389
|
+
self.completion_date = nil
|
|
390
|
+
end
|
|
391
|
+
|
|
392
|
+
if attributes.key?(:'completion_date_type')
|
|
393
|
+
self.completion_date_type = attributes[:'completion_date_type']
|
|
394
|
+
else
|
|
395
|
+
self.completion_date_type = nil
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
if attributes.key?(:'study_first_posted_date')
|
|
399
|
+
self.study_first_posted_date = attributes[:'study_first_posted_date']
|
|
400
|
+
else
|
|
401
|
+
self.study_first_posted_date = nil
|
|
402
|
+
end
|
|
403
|
+
|
|
404
|
+
if attributes.key?(:'last_update_posted_date')
|
|
405
|
+
self.last_update_posted_date = attributes[:'last_update_posted_date']
|
|
406
|
+
else
|
|
407
|
+
self.last_update_posted_date = nil
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
if attributes.key?(:'why_stopped')
|
|
411
|
+
self.why_stopped = attributes[:'why_stopped']
|
|
412
|
+
else
|
|
413
|
+
self.why_stopped = nil
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
if attributes.key?(:'number_of_arms')
|
|
417
|
+
self.number_of_arms = attributes[:'number_of_arms']
|
|
418
|
+
else
|
|
419
|
+
self.number_of_arms = nil
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
if attributes.key?(:'number_of_facilities')
|
|
423
|
+
self.number_of_facilities = attributes[:'number_of_facilities']
|
|
424
|
+
else
|
|
425
|
+
self.number_of_facilities = nil
|
|
426
|
+
end
|
|
427
|
+
|
|
428
|
+
if attributes.key?(:'were_results_reported')
|
|
429
|
+
self.were_results_reported = attributes[:'were_results_reported']
|
|
430
|
+
else
|
|
431
|
+
self.were_results_reported = nil
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
if attributes.key?(:'has_us_facility')
|
|
435
|
+
self.has_us_facility = attributes[:'has_us_facility']
|
|
436
|
+
else
|
|
437
|
+
self.has_us_facility = nil
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
if attributes.key?(:'gender')
|
|
441
|
+
self.gender = attributes[:'gender']
|
|
442
|
+
else
|
|
443
|
+
self.gender = nil
|
|
444
|
+
end
|
|
445
|
+
|
|
446
|
+
if attributes.key?(:'minimum_age')
|
|
447
|
+
self.minimum_age = attributes[:'minimum_age']
|
|
448
|
+
else
|
|
449
|
+
self.minimum_age = nil
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
if attributes.key?(:'maximum_age')
|
|
453
|
+
self.maximum_age = attributes[:'maximum_age']
|
|
454
|
+
else
|
|
455
|
+
self.maximum_age = nil
|
|
456
|
+
end
|
|
457
|
+
|
|
458
|
+
if attributes.key?(:'healthy_volunteers')
|
|
459
|
+
self.healthy_volunteers = attributes[:'healthy_volunteers']
|
|
460
|
+
else
|
|
461
|
+
self.healthy_volunteers = nil
|
|
462
|
+
end
|
|
463
|
+
|
|
464
|
+
if attributes.key?(:'criteria')
|
|
465
|
+
self.criteria = attributes[:'criteria']
|
|
466
|
+
else
|
|
467
|
+
self.criteria = nil
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
if attributes.key?(:'lead_sponsor_name')
|
|
471
|
+
self.lead_sponsor_name = attributes[:'lead_sponsor_name']
|
|
472
|
+
else
|
|
473
|
+
self.lead_sponsor_name = nil
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
if attributes.key?(:'lead_sponsor_id')
|
|
477
|
+
self.lead_sponsor_id = attributes[:'lead_sponsor_id']
|
|
478
|
+
else
|
|
479
|
+
self.lead_sponsor_id = nil
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
if attributes.key?(:'collaborators')
|
|
483
|
+
if (value = attributes[:'collaborators']).is_a?(Array)
|
|
484
|
+
self.collaborators = value
|
|
485
|
+
end
|
|
486
|
+
else
|
|
487
|
+
self.collaborators = nil
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
if attributes.key?(:'participating_sponsors')
|
|
491
|
+
if (value = attributes[:'participating_sponsors']).is_a?(Array)
|
|
492
|
+
self.participating_sponsors = value
|
|
493
|
+
end
|
|
494
|
+
else
|
|
495
|
+
self.participating_sponsors = nil
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
if attributes.key?(:'conditions')
|
|
499
|
+
if (value = attributes[:'conditions']).is_a?(Array)
|
|
500
|
+
self.conditions = value
|
|
501
|
+
end
|
|
502
|
+
else
|
|
503
|
+
self.conditions = nil
|
|
504
|
+
end
|
|
505
|
+
|
|
506
|
+
if attributes.key?(:'condition_mesh')
|
|
507
|
+
if (value = attributes[:'condition_mesh']).is_a?(Array)
|
|
508
|
+
self.condition_mesh = value
|
|
509
|
+
end
|
|
510
|
+
else
|
|
511
|
+
self.condition_mesh = nil
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
if attributes.key?(:'interventions')
|
|
515
|
+
if (value = attributes[:'interventions']).is_a?(Array)
|
|
516
|
+
self.interventions = value
|
|
517
|
+
end
|
|
518
|
+
else
|
|
519
|
+
self.interventions = nil
|
|
520
|
+
end
|
|
521
|
+
|
|
522
|
+
if attributes.key?(:'intervention_types')
|
|
523
|
+
if (value = attributes[:'intervention_types']).is_a?(Array)
|
|
524
|
+
self.intervention_types = value
|
|
525
|
+
end
|
|
526
|
+
else
|
|
527
|
+
self.intervention_types = nil
|
|
528
|
+
end
|
|
529
|
+
|
|
530
|
+
if attributes.key?(:'intervention_mesh')
|
|
531
|
+
if (value = attributes[:'intervention_mesh']).is_a?(Array)
|
|
532
|
+
self.intervention_mesh = value
|
|
533
|
+
end
|
|
534
|
+
else
|
|
535
|
+
self.intervention_mesh = nil
|
|
536
|
+
end
|
|
537
|
+
|
|
538
|
+
if attributes.key?(:'facility_count')
|
|
539
|
+
self.facility_count = attributes[:'facility_count']
|
|
540
|
+
else
|
|
541
|
+
self.facility_count = nil
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
if attributes.key?(:'facility_countries')
|
|
545
|
+
if (value = attributes[:'facility_countries']).is_a?(Array)
|
|
546
|
+
self.facility_countries = value
|
|
547
|
+
end
|
|
548
|
+
else
|
|
549
|
+
self.facility_countries = nil
|
|
550
|
+
end
|
|
551
|
+
|
|
552
|
+
if attributes.key?(:'facility_country_count')
|
|
553
|
+
self.facility_country_count = attributes[:'facility_country_count']
|
|
554
|
+
else
|
|
555
|
+
self.facility_country_count = nil
|
|
556
|
+
end
|
|
557
|
+
|
|
558
|
+
if attributes.key?(:'enrollment_is_plausible')
|
|
559
|
+
self.enrollment_is_plausible = attributes[:'enrollment_is_plausible']
|
|
560
|
+
else
|
|
561
|
+
self.enrollment_is_plausible = nil
|
|
562
|
+
end
|
|
563
|
+
|
|
564
|
+
if attributes.key?(:'phase_label')
|
|
565
|
+
self.phase_label = attributes[:'phase_label']
|
|
566
|
+
else
|
|
567
|
+
self.phase_label = nil
|
|
568
|
+
end
|
|
569
|
+
|
|
570
|
+
if attributes.key?(:'extracted')
|
|
571
|
+
self.extracted = attributes[:'extracted']
|
|
572
|
+
else
|
|
573
|
+
self.extracted = nil
|
|
574
|
+
end
|
|
575
|
+
|
|
576
|
+
if attributes.key?(:'linked_drugs')
|
|
577
|
+
if (value = attributes[:'linked_drugs']).is_a?(Array)
|
|
578
|
+
self.linked_drugs = value
|
|
579
|
+
end
|
|
580
|
+
end
|
|
581
|
+
|
|
582
|
+
if attributes.key?(:'linked_drugs_built')
|
|
583
|
+
self.linked_drugs_built = attributes[:'linked_drugs_built']
|
|
584
|
+
end
|
|
585
|
+
end
|
|
586
|
+
|
|
587
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
588
|
+
# @return Array for valid properties with the reasons
|
|
589
|
+
def list_invalid_properties
|
|
590
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
591
|
+
invalid_properties = Array.new
|
|
592
|
+
if @canonical_trial_id.nil?
|
|
593
|
+
invalid_properties.push('invalid value for "canonical_trial_id", canonical_trial_id cannot be nil.')
|
|
594
|
+
end
|
|
595
|
+
|
|
596
|
+
if @nct_id.nil?
|
|
597
|
+
invalid_properties.push('invalid value for "nct_id", nct_id cannot be nil.')
|
|
598
|
+
end
|
|
599
|
+
|
|
600
|
+
if @source_registry.nil?
|
|
601
|
+
invalid_properties.push('invalid value for "source_registry", source_registry cannot be nil.')
|
|
602
|
+
end
|
|
603
|
+
|
|
604
|
+
if @registry.nil?
|
|
605
|
+
invalid_properties.push('invalid value for "registry", registry cannot be nil.')
|
|
606
|
+
end
|
|
607
|
+
|
|
608
|
+
if @brief_title.nil?
|
|
609
|
+
invalid_properties.push('invalid value for "brief_title", brief_title cannot be nil.')
|
|
610
|
+
end
|
|
611
|
+
|
|
612
|
+
if @study_type.nil?
|
|
613
|
+
invalid_properties.push('invalid value for "study_type", study_type cannot be nil.')
|
|
614
|
+
end
|
|
615
|
+
|
|
616
|
+
if @overall_status.nil?
|
|
617
|
+
invalid_properties.push('invalid value for "overall_status", overall_status cannot be nil.')
|
|
618
|
+
end
|
|
619
|
+
|
|
620
|
+
if @overall_status_summary.nil?
|
|
621
|
+
invalid_properties.push('invalid value for "overall_status_summary", overall_status_summary cannot be nil.')
|
|
622
|
+
end
|
|
623
|
+
|
|
624
|
+
if @phase_by_status.nil?
|
|
625
|
+
invalid_properties.push('invalid value for "phase_by_status", phase_by_status cannot be nil.')
|
|
626
|
+
end
|
|
627
|
+
|
|
628
|
+
if @start_date.nil?
|
|
629
|
+
invalid_properties.push('invalid value for "start_date", start_date cannot be nil.')
|
|
630
|
+
end
|
|
631
|
+
|
|
632
|
+
if @start_year.nil?
|
|
633
|
+
invalid_properties.push('invalid value for "start_year", start_year cannot be nil.')
|
|
634
|
+
end
|
|
635
|
+
|
|
636
|
+
if @study_first_posted_date.nil?
|
|
637
|
+
invalid_properties.push('invalid value for "study_first_posted_date", study_first_posted_date cannot be nil.')
|
|
638
|
+
end
|
|
639
|
+
|
|
640
|
+
if @last_update_posted_date.nil?
|
|
641
|
+
invalid_properties.push('invalid value for "last_update_posted_date", last_update_posted_date cannot be nil.')
|
|
642
|
+
end
|
|
643
|
+
|
|
644
|
+
if @number_of_facilities.nil?
|
|
645
|
+
invalid_properties.push('invalid value for "number_of_facilities", number_of_facilities cannot be nil.')
|
|
646
|
+
end
|
|
647
|
+
|
|
648
|
+
if @were_results_reported.nil?
|
|
649
|
+
invalid_properties.push('invalid value for "were_results_reported", were_results_reported cannot be nil.')
|
|
650
|
+
end
|
|
651
|
+
|
|
652
|
+
if @gender.nil?
|
|
653
|
+
invalid_properties.push('invalid value for "gender", gender cannot be nil.')
|
|
654
|
+
end
|
|
655
|
+
|
|
656
|
+
if @criteria.nil?
|
|
657
|
+
invalid_properties.push('invalid value for "criteria", criteria cannot be nil.')
|
|
658
|
+
end
|
|
659
|
+
|
|
660
|
+
if @lead_sponsor_name.nil?
|
|
661
|
+
invalid_properties.push('invalid value for "lead_sponsor_name", lead_sponsor_name cannot be nil.')
|
|
662
|
+
end
|
|
663
|
+
|
|
664
|
+
if @lead_sponsor_id.nil?
|
|
665
|
+
invalid_properties.push('invalid value for "lead_sponsor_id", lead_sponsor_id cannot be nil.')
|
|
666
|
+
end
|
|
667
|
+
|
|
668
|
+
if @collaborators.nil?
|
|
669
|
+
invalid_properties.push('invalid value for "collaborators", collaborators cannot be nil.')
|
|
670
|
+
end
|
|
671
|
+
|
|
672
|
+
if @participating_sponsors.nil?
|
|
673
|
+
invalid_properties.push('invalid value for "participating_sponsors", participating_sponsors cannot be nil.')
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
if @conditions.nil?
|
|
677
|
+
invalid_properties.push('invalid value for "conditions", conditions cannot be nil.')
|
|
678
|
+
end
|
|
679
|
+
|
|
680
|
+
if @condition_mesh.nil?
|
|
681
|
+
invalid_properties.push('invalid value for "condition_mesh", condition_mesh cannot be nil.')
|
|
682
|
+
end
|
|
683
|
+
|
|
684
|
+
if @interventions.nil?
|
|
685
|
+
invalid_properties.push('invalid value for "interventions", interventions cannot be nil.')
|
|
686
|
+
end
|
|
687
|
+
|
|
688
|
+
if @intervention_types.nil?
|
|
689
|
+
invalid_properties.push('invalid value for "intervention_types", intervention_types cannot be nil.')
|
|
690
|
+
end
|
|
691
|
+
|
|
692
|
+
if @enrollment_is_plausible.nil?
|
|
693
|
+
invalid_properties.push('invalid value for "enrollment_is_plausible", enrollment_is_plausible cannot be nil.')
|
|
694
|
+
end
|
|
695
|
+
|
|
696
|
+
if @phase_label.nil?
|
|
697
|
+
invalid_properties.push('invalid value for "phase_label", phase_label cannot be nil.')
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
invalid_properties
|
|
701
|
+
end
|
|
702
|
+
|
|
703
|
+
# Check to see if the all the properties in the model are valid
|
|
704
|
+
# @return true if the model is valid
|
|
705
|
+
def valid?
|
|
706
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
707
|
+
return false if @canonical_trial_id.nil?
|
|
708
|
+
return false if @nct_id.nil?
|
|
709
|
+
return false if @source_registry.nil?
|
|
710
|
+
return false if @registry.nil?
|
|
711
|
+
return false if @brief_title.nil?
|
|
712
|
+
return false if @study_type.nil?
|
|
713
|
+
return false if @overall_status.nil?
|
|
714
|
+
return false if @overall_status_summary.nil?
|
|
715
|
+
return false if @phase_by_status.nil?
|
|
716
|
+
return false if @start_date.nil?
|
|
717
|
+
return false if @start_year.nil?
|
|
718
|
+
return false if @study_first_posted_date.nil?
|
|
719
|
+
return false if @last_update_posted_date.nil?
|
|
720
|
+
return false if @number_of_facilities.nil?
|
|
721
|
+
return false if @were_results_reported.nil?
|
|
722
|
+
return false if @gender.nil?
|
|
723
|
+
return false if @criteria.nil?
|
|
724
|
+
return false if @lead_sponsor_name.nil?
|
|
725
|
+
return false if @lead_sponsor_id.nil?
|
|
726
|
+
return false if @collaborators.nil?
|
|
727
|
+
return false if @participating_sponsors.nil?
|
|
728
|
+
return false if @conditions.nil?
|
|
729
|
+
return false if @condition_mesh.nil?
|
|
730
|
+
return false if @interventions.nil?
|
|
731
|
+
return false if @intervention_types.nil?
|
|
732
|
+
return false if @enrollment_is_plausible.nil?
|
|
733
|
+
return false if @phase_label.nil?
|
|
734
|
+
true
|
|
735
|
+
end
|
|
736
|
+
|
|
737
|
+
# Custom attribute writer method with validation
|
|
738
|
+
# @param [Object] canonical_trial_id Value to be assigned
|
|
739
|
+
def canonical_trial_id=(canonical_trial_id)
|
|
740
|
+
if canonical_trial_id.nil?
|
|
741
|
+
fail ArgumentError, 'canonical_trial_id cannot be nil'
|
|
742
|
+
end
|
|
743
|
+
|
|
744
|
+
@canonical_trial_id = canonical_trial_id
|
|
745
|
+
end
|
|
746
|
+
|
|
747
|
+
# Custom attribute writer method with validation
|
|
748
|
+
# @param [Object] nct_id Value to be assigned
|
|
749
|
+
def nct_id=(nct_id)
|
|
750
|
+
if nct_id.nil?
|
|
751
|
+
fail ArgumentError, 'nct_id cannot be nil'
|
|
752
|
+
end
|
|
753
|
+
|
|
754
|
+
@nct_id = nct_id
|
|
755
|
+
end
|
|
756
|
+
|
|
757
|
+
# Custom attribute writer method with validation
|
|
758
|
+
# @param [Object] source_registry Value to be assigned
|
|
759
|
+
def source_registry=(source_registry)
|
|
760
|
+
if source_registry.nil?
|
|
761
|
+
fail ArgumentError, 'source_registry cannot be nil'
|
|
762
|
+
end
|
|
763
|
+
|
|
764
|
+
@source_registry = source_registry
|
|
765
|
+
end
|
|
766
|
+
|
|
767
|
+
# Custom attribute writer method with validation
|
|
768
|
+
# @param [Object] registry Value to be assigned
|
|
769
|
+
def registry=(registry)
|
|
770
|
+
if registry.nil?
|
|
771
|
+
fail ArgumentError, 'registry cannot be nil'
|
|
772
|
+
end
|
|
773
|
+
|
|
774
|
+
@registry = registry
|
|
775
|
+
end
|
|
776
|
+
|
|
777
|
+
# Custom attribute writer method with validation
|
|
778
|
+
# @param [Object] brief_title Value to be assigned
|
|
779
|
+
def brief_title=(brief_title)
|
|
780
|
+
if brief_title.nil?
|
|
781
|
+
fail ArgumentError, 'brief_title cannot be nil'
|
|
782
|
+
end
|
|
783
|
+
|
|
784
|
+
@brief_title = brief_title
|
|
785
|
+
end
|
|
786
|
+
|
|
787
|
+
# Custom attribute writer method with validation
|
|
788
|
+
# @param [Object] study_type Value to be assigned
|
|
789
|
+
def study_type=(study_type)
|
|
790
|
+
if study_type.nil?
|
|
791
|
+
fail ArgumentError, 'study_type cannot be nil'
|
|
792
|
+
end
|
|
793
|
+
|
|
794
|
+
@study_type = study_type
|
|
795
|
+
end
|
|
796
|
+
|
|
797
|
+
# Custom attribute writer method with validation
|
|
798
|
+
# @param [Object] overall_status Value to be assigned
|
|
799
|
+
def overall_status=(overall_status)
|
|
800
|
+
if overall_status.nil?
|
|
801
|
+
fail ArgumentError, 'overall_status cannot be nil'
|
|
802
|
+
end
|
|
803
|
+
|
|
804
|
+
@overall_status = overall_status
|
|
805
|
+
end
|
|
806
|
+
|
|
807
|
+
# Custom attribute writer method with validation
|
|
808
|
+
# @param [Object] overall_status_summary Value to be assigned
|
|
809
|
+
def overall_status_summary=(overall_status_summary)
|
|
810
|
+
if overall_status_summary.nil?
|
|
811
|
+
fail ArgumentError, 'overall_status_summary cannot be nil'
|
|
812
|
+
end
|
|
813
|
+
|
|
814
|
+
@overall_status_summary = overall_status_summary
|
|
815
|
+
end
|
|
816
|
+
|
|
817
|
+
# Custom attribute writer method with validation
|
|
818
|
+
# @param [Object] phase_by_status Value to be assigned
|
|
819
|
+
def phase_by_status=(phase_by_status)
|
|
820
|
+
if phase_by_status.nil?
|
|
821
|
+
fail ArgumentError, 'phase_by_status cannot be nil'
|
|
822
|
+
end
|
|
823
|
+
|
|
824
|
+
@phase_by_status = phase_by_status
|
|
825
|
+
end
|
|
826
|
+
|
|
827
|
+
# Custom attribute writer method with validation
|
|
828
|
+
# @param [Object] start_date Value to be assigned
|
|
829
|
+
def start_date=(start_date)
|
|
830
|
+
if start_date.nil?
|
|
831
|
+
fail ArgumentError, 'start_date cannot be nil'
|
|
832
|
+
end
|
|
833
|
+
|
|
834
|
+
@start_date = start_date
|
|
835
|
+
end
|
|
836
|
+
|
|
837
|
+
# Custom attribute writer method with validation
|
|
838
|
+
# @param [Object] start_year Value to be assigned
|
|
839
|
+
def start_year=(start_year)
|
|
840
|
+
if start_year.nil?
|
|
841
|
+
fail ArgumentError, 'start_year cannot be nil'
|
|
842
|
+
end
|
|
843
|
+
|
|
844
|
+
@start_year = start_year
|
|
845
|
+
end
|
|
846
|
+
|
|
847
|
+
# Custom attribute writer method with validation
|
|
848
|
+
# @param [Object] study_first_posted_date Value to be assigned
|
|
849
|
+
def study_first_posted_date=(study_first_posted_date)
|
|
850
|
+
if study_first_posted_date.nil?
|
|
851
|
+
fail ArgumentError, 'study_first_posted_date cannot be nil'
|
|
852
|
+
end
|
|
853
|
+
|
|
854
|
+
@study_first_posted_date = study_first_posted_date
|
|
855
|
+
end
|
|
856
|
+
|
|
857
|
+
# Custom attribute writer method with validation
|
|
858
|
+
# @param [Object] last_update_posted_date Value to be assigned
|
|
859
|
+
def last_update_posted_date=(last_update_posted_date)
|
|
860
|
+
if last_update_posted_date.nil?
|
|
861
|
+
fail ArgumentError, 'last_update_posted_date cannot be nil'
|
|
862
|
+
end
|
|
863
|
+
|
|
864
|
+
@last_update_posted_date = last_update_posted_date
|
|
865
|
+
end
|
|
866
|
+
|
|
867
|
+
# Custom attribute writer method with validation
|
|
868
|
+
# @param [Object] number_of_facilities Value to be assigned
|
|
869
|
+
def number_of_facilities=(number_of_facilities)
|
|
870
|
+
if number_of_facilities.nil?
|
|
871
|
+
fail ArgumentError, 'number_of_facilities cannot be nil'
|
|
872
|
+
end
|
|
873
|
+
|
|
874
|
+
@number_of_facilities = number_of_facilities
|
|
875
|
+
end
|
|
876
|
+
|
|
877
|
+
# Custom attribute writer method with validation
|
|
878
|
+
# @param [Object] were_results_reported Value to be assigned
|
|
879
|
+
def were_results_reported=(were_results_reported)
|
|
880
|
+
if were_results_reported.nil?
|
|
881
|
+
fail ArgumentError, 'were_results_reported cannot be nil'
|
|
882
|
+
end
|
|
883
|
+
|
|
884
|
+
@were_results_reported = were_results_reported
|
|
885
|
+
end
|
|
886
|
+
|
|
887
|
+
# Custom attribute writer method with validation
|
|
888
|
+
# @param [Object] gender Value to be assigned
|
|
889
|
+
def gender=(gender)
|
|
890
|
+
if gender.nil?
|
|
891
|
+
fail ArgumentError, 'gender cannot be nil'
|
|
892
|
+
end
|
|
893
|
+
|
|
894
|
+
@gender = gender
|
|
895
|
+
end
|
|
896
|
+
|
|
897
|
+
# Custom attribute writer method with validation
|
|
898
|
+
# @param [Object] criteria Value to be assigned
|
|
899
|
+
def criteria=(criteria)
|
|
900
|
+
if criteria.nil?
|
|
901
|
+
fail ArgumentError, 'criteria cannot be nil'
|
|
902
|
+
end
|
|
903
|
+
|
|
904
|
+
@criteria = criteria
|
|
905
|
+
end
|
|
906
|
+
|
|
907
|
+
# Custom attribute writer method with validation
|
|
908
|
+
# @param [Object] lead_sponsor_name Value to be assigned
|
|
909
|
+
def lead_sponsor_name=(lead_sponsor_name)
|
|
910
|
+
if lead_sponsor_name.nil?
|
|
911
|
+
fail ArgumentError, 'lead_sponsor_name cannot be nil'
|
|
912
|
+
end
|
|
913
|
+
|
|
914
|
+
@lead_sponsor_name = lead_sponsor_name
|
|
915
|
+
end
|
|
916
|
+
|
|
917
|
+
# Custom attribute writer method with validation
|
|
918
|
+
# @param [Object] lead_sponsor_id Value to be assigned
|
|
919
|
+
def lead_sponsor_id=(lead_sponsor_id)
|
|
920
|
+
if lead_sponsor_id.nil?
|
|
921
|
+
fail ArgumentError, 'lead_sponsor_id cannot be nil'
|
|
922
|
+
end
|
|
923
|
+
|
|
924
|
+
@lead_sponsor_id = lead_sponsor_id
|
|
925
|
+
end
|
|
926
|
+
|
|
927
|
+
# Custom attribute writer method with validation
|
|
928
|
+
# @param [Object] collaborators Value to be assigned
|
|
929
|
+
def collaborators=(collaborators)
|
|
930
|
+
if collaborators.nil?
|
|
931
|
+
fail ArgumentError, 'collaborators cannot be nil'
|
|
932
|
+
end
|
|
933
|
+
|
|
934
|
+
@collaborators = collaborators
|
|
935
|
+
end
|
|
936
|
+
|
|
937
|
+
# Custom attribute writer method with validation
|
|
938
|
+
# @param [Object] participating_sponsors Value to be assigned
|
|
939
|
+
def participating_sponsors=(participating_sponsors)
|
|
940
|
+
if participating_sponsors.nil?
|
|
941
|
+
fail ArgumentError, 'participating_sponsors cannot be nil'
|
|
942
|
+
end
|
|
943
|
+
|
|
944
|
+
@participating_sponsors = participating_sponsors
|
|
945
|
+
end
|
|
946
|
+
|
|
947
|
+
# Custom attribute writer method with validation
|
|
948
|
+
# @param [Object] conditions Value to be assigned
|
|
949
|
+
def conditions=(conditions)
|
|
950
|
+
if conditions.nil?
|
|
951
|
+
fail ArgumentError, 'conditions cannot be nil'
|
|
952
|
+
end
|
|
953
|
+
|
|
954
|
+
@conditions = conditions
|
|
955
|
+
end
|
|
956
|
+
|
|
957
|
+
# Custom attribute writer method with validation
|
|
958
|
+
# @param [Object] condition_mesh Value to be assigned
|
|
959
|
+
def condition_mesh=(condition_mesh)
|
|
960
|
+
if condition_mesh.nil?
|
|
961
|
+
fail ArgumentError, 'condition_mesh cannot be nil'
|
|
962
|
+
end
|
|
963
|
+
|
|
964
|
+
@condition_mesh = condition_mesh
|
|
965
|
+
end
|
|
966
|
+
|
|
967
|
+
# Custom attribute writer method with validation
|
|
968
|
+
# @param [Object] interventions Value to be assigned
|
|
969
|
+
def interventions=(interventions)
|
|
970
|
+
if interventions.nil?
|
|
971
|
+
fail ArgumentError, 'interventions cannot be nil'
|
|
972
|
+
end
|
|
973
|
+
|
|
974
|
+
@interventions = interventions
|
|
975
|
+
end
|
|
976
|
+
|
|
977
|
+
# Custom attribute writer method with validation
|
|
978
|
+
# @param [Object] intervention_types Value to be assigned
|
|
979
|
+
def intervention_types=(intervention_types)
|
|
980
|
+
if intervention_types.nil?
|
|
981
|
+
fail ArgumentError, 'intervention_types cannot be nil'
|
|
982
|
+
end
|
|
983
|
+
|
|
984
|
+
@intervention_types = intervention_types
|
|
985
|
+
end
|
|
986
|
+
|
|
987
|
+
# Custom attribute writer method with validation
|
|
988
|
+
# @param [Object] enrollment_is_plausible Value to be assigned
|
|
989
|
+
def enrollment_is_plausible=(enrollment_is_plausible)
|
|
990
|
+
if enrollment_is_plausible.nil?
|
|
991
|
+
fail ArgumentError, 'enrollment_is_plausible cannot be nil'
|
|
992
|
+
end
|
|
993
|
+
|
|
994
|
+
@enrollment_is_plausible = enrollment_is_plausible
|
|
995
|
+
end
|
|
996
|
+
|
|
997
|
+
# Custom attribute writer method with validation
|
|
998
|
+
# @param [Object] phase_label Value to be assigned
|
|
999
|
+
def phase_label=(phase_label)
|
|
1000
|
+
if phase_label.nil?
|
|
1001
|
+
fail ArgumentError, 'phase_label cannot be nil'
|
|
1002
|
+
end
|
|
1003
|
+
|
|
1004
|
+
@phase_label = phase_label
|
|
1005
|
+
end
|
|
1006
|
+
|
|
1007
|
+
# Checks equality by comparing each attribute.
|
|
1008
|
+
# @param [Object] Object to be compared
|
|
1009
|
+
def ==(o)
|
|
1010
|
+
return true if self.equal?(o)
|
|
1011
|
+
self.class == o.class &&
|
|
1012
|
+
canonical_trial_id == o.canonical_trial_id &&
|
|
1013
|
+
nct_id == o.nct_id &&
|
|
1014
|
+
source_registry == o.source_registry &&
|
|
1015
|
+
registry == o.registry &&
|
|
1016
|
+
brief_title == o.brief_title &&
|
|
1017
|
+
official_title == o.official_title &&
|
|
1018
|
+
study_type == o.study_type &&
|
|
1019
|
+
overall_status == o.overall_status &&
|
|
1020
|
+
overall_status_summary == o.overall_status_summary &&
|
|
1021
|
+
phase == o.phase &&
|
|
1022
|
+
phase_by_status == o.phase_by_status &&
|
|
1023
|
+
enrollment == o.enrollment &&
|
|
1024
|
+
enrollment_type == o.enrollment_type &&
|
|
1025
|
+
enrollment_flag_reason == o.enrollment_flag_reason &&
|
|
1026
|
+
start_date == o.start_date &&
|
|
1027
|
+
start_year == o.start_year &&
|
|
1028
|
+
primary_completion_date == o.primary_completion_date &&
|
|
1029
|
+
primary_completion_date_type == o.primary_completion_date_type &&
|
|
1030
|
+
completion_date == o.completion_date &&
|
|
1031
|
+
completion_date_type == o.completion_date_type &&
|
|
1032
|
+
study_first_posted_date == o.study_first_posted_date &&
|
|
1033
|
+
last_update_posted_date == o.last_update_posted_date &&
|
|
1034
|
+
why_stopped == o.why_stopped &&
|
|
1035
|
+
number_of_arms == o.number_of_arms &&
|
|
1036
|
+
number_of_facilities == o.number_of_facilities &&
|
|
1037
|
+
were_results_reported == o.were_results_reported &&
|
|
1038
|
+
has_us_facility == o.has_us_facility &&
|
|
1039
|
+
gender == o.gender &&
|
|
1040
|
+
minimum_age == o.minimum_age &&
|
|
1041
|
+
maximum_age == o.maximum_age &&
|
|
1042
|
+
healthy_volunteers == o.healthy_volunteers &&
|
|
1043
|
+
criteria == o.criteria &&
|
|
1044
|
+
lead_sponsor_name == o.lead_sponsor_name &&
|
|
1045
|
+
lead_sponsor_id == o.lead_sponsor_id &&
|
|
1046
|
+
collaborators == o.collaborators &&
|
|
1047
|
+
participating_sponsors == o.participating_sponsors &&
|
|
1048
|
+
conditions == o.conditions &&
|
|
1049
|
+
condition_mesh == o.condition_mesh &&
|
|
1050
|
+
interventions == o.interventions &&
|
|
1051
|
+
intervention_types == o.intervention_types &&
|
|
1052
|
+
intervention_mesh == o.intervention_mesh &&
|
|
1053
|
+
facility_count == o.facility_count &&
|
|
1054
|
+
facility_countries == o.facility_countries &&
|
|
1055
|
+
facility_country_count == o.facility_country_count &&
|
|
1056
|
+
enrollment_is_plausible == o.enrollment_is_plausible &&
|
|
1057
|
+
phase_label == o.phase_label &&
|
|
1058
|
+
extracted == o.extracted &&
|
|
1059
|
+
linked_drugs == o.linked_drugs &&
|
|
1060
|
+
linked_drugs_built == o.linked_drugs_built
|
|
1061
|
+
end
|
|
1062
|
+
|
|
1063
|
+
# @see the `==` method
|
|
1064
|
+
# @param [Object] Object to be compared
|
|
1065
|
+
def eql?(o)
|
|
1066
|
+
self == o
|
|
1067
|
+
end
|
|
1068
|
+
|
|
1069
|
+
# Calculates hash code according to all attributes.
|
|
1070
|
+
# @return [Integer] Hash code
|
|
1071
|
+
def hash
|
|
1072
|
+
[canonical_trial_id, nct_id, source_registry, registry, brief_title, official_title, study_type, overall_status, overall_status_summary, phase, phase_by_status, enrollment, enrollment_type, enrollment_flag_reason, start_date, start_year, primary_completion_date, primary_completion_date_type, completion_date, completion_date_type, study_first_posted_date, last_update_posted_date, why_stopped, number_of_arms, number_of_facilities, were_results_reported, has_us_facility, gender, minimum_age, maximum_age, healthy_volunteers, criteria, lead_sponsor_name, lead_sponsor_id, collaborators, participating_sponsors, conditions, condition_mesh, interventions, intervention_types, intervention_mesh, facility_count, facility_countries, facility_country_count, enrollment_is_plausible, phase_label, extracted, linked_drugs, linked_drugs_built].hash
|
|
1073
|
+
end
|
|
1074
|
+
|
|
1075
|
+
# Builds the object from hash
|
|
1076
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
1077
|
+
# @return [Object] Returns the model itself
|
|
1078
|
+
def self.build_from_hash(attributes)
|
|
1079
|
+
return nil unless attributes.is_a?(Hash)
|
|
1080
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
1081
|
+
transformed_hash = {}
|
|
1082
|
+
openapi_types.each_pair do |key, type|
|
|
1083
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
1084
|
+
transformed_hash["#{key}"] = nil
|
|
1085
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
1086
|
+
# check to ensure the input is an array given that the attribute
|
|
1087
|
+
# is documented as an array but the input is not
|
|
1088
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
1089
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
1090
|
+
end
|
|
1091
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
1092
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
1093
|
+
end
|
|
1094
|
+
end
|
|
1095
|
+
new(transformed_hash)
|
|
1096
|
+
end
|
|
1097
|
+
|
|
1098
|
+
# Deserializes the data based on type
|
|
1099
|
+
# @param string type Data type
|
|
1100
|
+
# @param string value Value to be deserialized
|
|
1101
|
+
# @return [Object] Deserialized data
|
|
1102
|
+
def self._deserialize(type, value)
|
|
1103
|
+
case type.to_sym
|
|
1104
|
+
when :Time
|
|
1105
|
+
Time.parse(value)
|
|
1106
|
+
when :Date
|
|
1107
|
+
Date.parse(value)
|
|
1108
|
+
when :String
|
|
1109
|
+
value.to_s
|
|
1110
|
+
when :Integer
|
|
1111
|
+
value.to_i
|
|
1112
|
+
when :Float
|
|
1113
|
+
value.to_f
|
|
1114
|
+
when :Boolean
|
|
1115
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
1116
|
+
true
|
|
1117
|
+
else
|
|
1118
|
+
false
|
|
1119
|
+
end
|
|
1120
|
+
when :Object
|
|
1121
|
+
# generic object (usually a Hash), return directly
|
|
1122
|
+
value
|
|
1123
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
1124
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
1125
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
1126
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
1127
|
+
k_type = Regexp.last_match[:k_type]
|
|
1128
|
+
v_type = Regexp.last_match[:v_type]
|
|
1129
|
+
{}.tap do |hash|
|
|
1130
|
+
value.each do |k, v|
|
|
1131
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
1132
|
+
end
|
|
1133
|
+
end
|
|
1134
|
+
else # model
|
|
1135
|
+
# models (e.g. Pet) or oneOf
|
|
1136
|
+
klass = PharmaObservatory.const_get(type)
|
|
1137
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
1138
|
+
end
|
|
1139
|
+
end
|
|
1140
|
+
|
|
1141
|
+
# Returns the string representation of the object
|
|
1142
|
+
# @return [String] String presentation of the object
|
|
1143
|
+
def to_s
|
|
1144
|
+
to_hash.to_s
|
|
1145
|
+
end
|
|
1146
|
+
|
|
1147
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
1148
|
+
# @return [Hash] Returns the object in the form of hash
|
|
1149
|
+
def to_body
|
|
1150
|
+
to_hash
|
|
1151
|
+
end
|
|
1152
|
+
|
|
1153
|
+
# Returns the object in the form of hash
|
|
1154
|
+
# @return [Hash] Returns the object in the form of hash
|
|
1155
|
+
def to_hash
|
|
1156
|
+
hash = {}
|
|
1157
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
1158
|
+
value = self.send(attr)
|
|
1159
|
+
if value.nil?
|
|
1160
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
1161
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
1162
|
+
end
|
|
1163
|
+
|
|
1164
|
+
hash[param] = _to_hash(value)
|
|
1165
|
+
end
|
|
1166
|
+
hash
|
|
1167
|
+
end
|
|
1168
|
+
|
|
1169
|
+
# Outputs non-array value in the form of hash
|
|
1170
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
1171
|
+
# @param [Object] value Any valid value
|
|
1172
|
+
# @return [Hash] Returns the value in the form of hash
|
|
1173
|
+
def _to_hash(value)
|
|
1174
|
+
if value.is_a?(Array)
|
|
1175
|
+
value.compact.map { |v| _to_hash(v) }
|
|
1176
|
+
elsif value.is_a?(Hash)
|
|
1177
|
+
{}.tap do |hash|
|
|
1178
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
1179
|
+
end
|
|
1180
|
+
elsif value.respond_to? :to_hash
|
|
1181
|
+
value.to_hash
|
|
1182
|
+
else
|
|
1183
|
+
value
|
|
1184
|
+
end
|
|
1185
|
+
end
|
|
1186
|
+
|
|
1187
|
+
end
|
|
1188
|
+
|
|
1189
|
+
end
|