pharmaobservatory 0.1.6 → 0.1.8
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 +348 -4
- data/docs/BiomarkerAlleleFrequenciesResponse.md +58 -0
- data/docs/BiomarkerAlleleFrequenciesRow.md +62 -0
- data/docs/BiomarkerAssayProvidersResponse.md +58 -0
- data/docs/BiomarkerAssayProvidersRow.md +72 -0
- data/docs/BiomarkerEvidenceByYearResponse.md +58 -0
- data/docs/BiomarkerEvidenceByYearRow.md +32 -0
- data/docs/BiomarkerTraversalStatusResponse.md +58 -0
- data/docs/BiomarkerTraversalStatusRow.md +36 -0
- data/docs/BiomarkersApi.md +320 -0
- data/docs/BrandCompaniesResponse.md +58 -0
- data/docs/BrandCompaniesRow.md +50 -0
- data/docs/BrandRevenueResponse.md +58 -0
- data/docs/BrandRevenueRow.md +60 -0
- data/docs/CatalystsResponse.md +58 -0
- data/docs/CatalystsRow.md +90 -0
- data/docs/CliaCertificatesResponse.md +58 -0
- data/docs/CliaCertificatesRow.md +80 -0
- data/docs/CompaniesApi.md +2656 -196
- data/docs/CompaniesRecordAttributes.md +3 -1
- data/docs/CompanyAssetsRow.md +5 -1
- data/docs/CompanyBiomarkerCapabilityResponse.md +58 -0
- data/docs/CompanyBiomarkerCapabilityRow.md +68 -0
- data/docs/CompanyFundingEventsRow.md +2 -0
- data/docs/CompanyProgramsRow.md +5 -1
- data/docs/CompanyRareDiseaseDeclarationsResponse.md +58 -0
- data/docs/CompanyRareDiseaseDeclarationsRow.md +52 -0
- data/docs/CompanyTrialGeographyResponse.md +58 -0
- data/docs/CompanyTrialGeographyRow.md +52 -0
- data/docs/CompanyTrialSitesResponse.md +58 -0
- data/docs/CompanyTrialSitesRow.md +52 -0
- data/docs/ConditionsApi.md +320 -0
- data/docs/CroFootprintResponse.md +58 -0
- data/docs/CroFootprintRow.md +34 -0
- data/docs/CroTrialsResponse.md +58 -0
- data/docs/CroTrialsRow.md +46 -0
- data/docs/DebarmentsResponse.md +58 -0
- data/docs/DebarmentsRow.md +44 -0
- data/docs/DrugApprovalsResponse.md +58 -0
- data/docs/DrugApprovalsRow.md +28 -0
- data/docs/DrugAspCodesResponse.md +58 -0
- data/docs/DrugAspCodesRow.md +28 -0
- data/docs/DrugBrandsResponse.md +58 -0
- data/docs/DrugBrandsRow.md +60 -0
- data/docs/DrugCombinationsResponse.md +58 -0
- data/docs/DrugCombinationsRow.md +32 -0
- data/docs/DrugDeclaredPatentsResponse.md +58 -0
- data/docs/DrugDeclaredPatentsRow.md +58 -0
- data/docs/DrugLabelSafetyResponse.md +58 -0
- data/docs/DrugLabelSafetyRow.md +32 -0
- data/docs/DrugMedicareSpendResponse.md +58 -0
- data/docs/DrugMedicareSpendRow.md +28 -0
- data/docs/DrugPatentCliffRow.md +3 -1
- data/docs/DrugPatentMentionsResponse.md +58 -0
- data/docs/DrugPatentMentionsRow.md +28 -0
- data/docs/DrugPatentOwnersResponse.md +58 -0
- data/docs/DrugPatentOwnersRow.md +42 -0
- data/docs/DrugPricingResponse.md +58 -0
- data/docs/DrugPricingRow.md +32 -0
- data/docs/DrugRecallsResponse.md +58 -0
- data/docs/DrugRecallsRow.md +34 -0
- data/docs/DrugRegulatoryResponse.md +58 -0
- data/docs/DrugRegulatoryRow.md +38 -0
- data/docs/DrugSitesResponse.md +58 -0
- data/docs/DrugSitesRow.md +28 -0
- data/docs/DrugTargetsResponse.md +58 -0
- data/docs/DrugTargetsRow.md +36 -0
- data/docs/DrugTrialConditionsResponse.md +58 -0
- data/docs/DrugTrialConditionsRow.md +30 -0
- data/docs/DrugTrialsResponse.md +58 -0
- data/docs/DrugTrialsRow.md +58 -0
- data/docs/DrugVariantsResponse.md +58 -0
- data/docs/DrugVariantsRow.md +38 -0
- data/docs/DrugsApi.md +2153 -0
- data/docs/DrugsRecord.md +38 -0
- data/docs/DrugsRecordAttributes.md +20 -0
- data/docs/DrugsResponse.md +58 -0
- data/docs/DrugsRow.md +82 -0
- data/docs/EnforcementEventsResponse.md +58 -0
- data/docs/EnforcementEventsRow.md +64 -0
- data/docs/GxpFacilitiesResponse.md +58 -0
- data/docs/GxpFacilitiesRow.md +174 -0
- data/docs/HospitalBedsYearlyResponse.md +58 -0
- data/docs/HospitalBedsYearlyRow.md +28 -0
- data/docs/HospitalFacilityChangesResponse.md +58 -0
- data/docs/HospitalFacilityChangesRow.md +30 -0
- data/docs/HospitalsApi.md +393 -0
- data/docs/HospitalsRecord.md +38 -0
- data/docs/HospitalsResponse.md +58 -0
- data/docs/HospitalsRow.md +40 -0
- data/docs/ImportRefusalsResponse.md +58 -0
- data/docs/ImportRefusalsRow.md +60 -0
- data/docs/InspectionFindingsResponse.md +58 -0
- data/docs/InspectionFindingsRow.md +48 -0
- data/docs/InspectionsResponse.md +58 -0
- data/docs/InspectionsRow.md +60 -0
- data/docs/InstitutionalQuarterTotalsResponse.md +58 -0
- data/docs/InstitutionalQuarterTotalsRow.md +58 -0
- data/docs/LegalEntitiesApi.md +2257 -177
- data/docs/LegalEntitiesRecordAttributes.md +8 -0
- data/docs/LegalEntitySecFilingsResponse.md +58 -0
- data/docs/LegalEntitySecFilingsRow.md +44 -0
- data/docs/OrgDisclosureTrendResponse.md +58 -0
- data/docs/OrgDisclosureTrendRow.md +62 -0
- data/docs/OrgRelationshipsRow.md +1 -1
- data/docs/OwnershipPercentagesResponse.md +58 -0
- data/docs/OwnershipPercentagesRow.md +74 -0
- data/docs/OwnershipSourceCoverageResponse.md +58 -0
- data/docs/OwnershipSourceCoverageRow.md +62 -0
- data/docs/PdufaDatesRow.md +1 -1
- data/docs/ProgramLicensingCandidatesResponse.md +58 -0
- data/docs/ProgramLicensingCandidatesRow.md +62 -0
- data/docs/ProgramsResponse.md +58 -0
- data/docs/ProgramsRow.md +46 -0
- data/docs/RareDiseaseGenesResponse.md +58 -0
- data/docs/RareDiseaseGenesRow.md +50 -0
- data/docs/RareDiseaseHierarchyResponse.md +58 -0
- data/docs/RareDiseaseHierarchyRow.md +40 -0
- data/docs/RareDiseaseInvestigatorCoverageResponse.md +58 -0
- data/docs/RareDiseaseInvestigatorCoverageRow.md +38 -0
- data/docs/RareDiseaseInvestigatorsResponse.md +58 -0
- data/docs/RareDiseaseInvestigatorsRow.md +56 -0
- data/docs/RareDiseaseMappingsResponse.md +58 -0
- data/docs/RareDiseaseMappingsRow.md +44 -0
- data/docs/RareDiseaseOrganizationsResponse.md +58 -0
- data/docs/RareDiseaseOrganizationsRow.md +60 -0
- data/docs/RareDiseasePrevalenceResponse.md +58 -0
- data/docs/RareDiseasePrevalenceRow.md +62 -0
- data/docs/RareDiseaseRarityEvidenceResponse.md +58 -0
- data/docs/RareDiseaseRarityEvidenceRow.md +36 -0
- data/docs/RareDiseaseRarityResponse.md +58 -0
- data/docs/RareDiseaseRarityRow.md +54 -0
- data/docs/RareDiseaseReplacementsResponse.md +58 -0
- data/docs/RareDiseaseReplacementsRow.md +40 -0
- data/docs/RareDiseaseSiteCoverageResponse.md +58 -0
- data/docs/RareDiseaseSiteCoverageRow.md +54 -0
- data/docs/RareDiseaseSponsorsResponse.md +58 -0
- data/docs/RareDiseaseSponsorsRow.md +82 -0
- data/docs/RareDiseaseTrialCoverageResponse.md +58 -0
- data/docs/RareDiseaseTrialCoverageRow.md +58 -0
- data/docs/RareDiseaseTrialSitesResponse.md +58 -0
- data/docs/RareDiseaseTrialSitesRow.md +52 -0
- data/docs/RareDiseaseTrialsResponse.md +58 -0
- data/docs/RareDiseaseTrialsRow.md +90 -0
- data/docs/RareDiseasesApi.md +1353 -0
- data/docs/RareDiseasesRecord.md +38 -0
- data/docs/RareDiseasesRecordAttributes.md +22 -0
- data/docs/RareDiseasesResponse.md +58 -0
- data/docs/RareDiseasesRow.md +68 -0
- data/docs/RecallsResponse.md +58 -0
- data/docs/RecallsRow.md +54 -0
- data/docs/RwdConductorDeliveryResponse.md +58 -0
- data/docs/RwdConductorDeliveryRow.md +74 -0
- data/docs/RwdConductorFootprintResponse.md +58 -0
- data/docs/RwdConductorFootprintRow.md +40 -0
- data/docs/RwdConductorStudiesResponse.md +58 -0
- data/docs/RwdConductorStudiesRow.md +42 -0
- data/docs/RwdConductorsApi.md +393 -0
- data/docs/RwdConductorsRecord.md +38 -0
- data/docs/RwdConductorsResponse.md +58 -0
- data/docs/RwdConductorsRow.md +72 -0
- data/docs/RwdCoverageResponse.md +58 -0
- data/docs/RwdCoverageRow.md +52 -0
- data/docs/RwdInstitutionsApi.md +153 -0
- data/docs/RwdInstitutionsRecord.md +38 -0
- data/docs/RwdInstitutionsResponse.md +58 -0
- data/docs/RwdInstitutionsRow.md +154 -0
- data/docs/RwdNetworksApi.md +153 -0
- data/docs/RwdNetworksRecord.md +38 -0
- data/docs/RwdNetworksResponse.md +58 -0
- data/docs/RwdNetworksRow.md +110 -0
- data/docs/RwdRegisterProvenanceResponse.md +58 -0
- data/docs/RwdRegisterProvenanceRow.md +74 -0
- data/docs/RwdRegistersApi.md +313 -0
- data/docs/RwdRegistersRecord.md +38 -0
- data/docs/RwdSourceAgeBandsResponse.md +58 -0
- data/docs/RwdSourceAgeBandsRow.md +40 -0
- data/docs/RwdSourceConditionsResponse.md +58 -0
- data/docs/RwdSourceConditionsRow.md +68 -0
- data/docs/RwdSourceEtlMappingsResponse.md +58 -0
- data/docs/RwdSourceEtlMappingsRow.md +44 -0
- data/docs/RwdSourceLinkagesResponse.md +58 -0
- data/docs/RwdSourceLinkagesRow.md +64 -0
- data/docs/RwdSourceTypesResponse.md +58 -0
- data/docs/RwdSourceTypesRow.md +34 -0
- data/docs/RwdSourceVocabulariesResponse.md +58 -0
- data/docs/RwdSourceVocabulariesRow.md +42 -0
- data/docs/RwdSourcesApi.md +713 -0
- data/docs/RwdSourcesRecord.md +38 -0
- data/docs/RwdSourcesResponse.md +58 -0
- data/docs/RwdSourcesRow.md +280 -0
- data/docs/RwdStudiesApi.md +553 -0
- data/docs/RwdStudiesRecord.md +38 -0
- data/docs/RwdStudiesResponse.md +58 -0
- data/docs/RwdStudiesRow.md +180 -0
- data/docs/RwdStudyConditionsResponse.md +58 -0
- data/docs/RwdStudyConditionsRow.md +54 -0
- data/docs/RwdStudyDataSourcesResponse.md +58 -0
- data/docs/RwdStudyDataSourcesRow.md +54 -0
- data/docs/RwdStudyDrugsResponse.md +58 -0
- data/docs/RwdStudyDrugsRow.md +50 -0
- data/docs/RwdStudyMilestonesResponse.md +58 -0
- data/docs/RwdStudyMilestonesRow.md +54 -0
- data/docs/RwdWithheldFieldsResponse.md +58 -0
- data/docs/RwdWithheldFieldsRow.md +36 -0
- data/docs/SbtiCrosscheckResponse.md +58 -0
- data/docs/SbtiCrosscheckRow.md +48 -0
- data/docs/SecPdufaDatesResponse.md +58 -0
- data/docs/SecPdufaDatesRow.md +64 -0
- data/docs/SponsorDeliveryResponse.md +58 -0
- data/docs/SponsorDeliveryRow.md +52 -0
- data/docs/SponsorPatentMentionsResponse.md +58 -0
- data/docs/SponsorPatentMentionsRow.md +42 -0
- data/docs/SponsorTrialConditionsResponse.md +58 -0
- data/docs/SponsorTrialConditionsRow.md +36 -0
- data/docs/SponsorTrialDrugsResponse.md +58 -0
- data/docs/SponsorTrialDrugsRow.md +34 -0
- data/docs/TrialChangesRow.md +5 -1
- data/docs/TrialsApi.md +80 -0
- data/docs/TrialsRow.md +9 -1
- data/docs/UnmatchedProductRevenueResponse.md +58 -0
- data/docs/UnmatchedProductRevenueRow.md +80 -0
- data/docs/UntitledLettersResponse.md +58 -0
- data/docs/UntitledLettersRow.md +44 -0
- data/docs/WarningLettersResponse.md +58 -0
- data/docs/WarningLettersRow.md +50 -0
- data/lib/pharmaobservatory/api/biomarkers_api.rb +336 -0
- data/lib/pharmaobservatory/api/companies_api.rb +3026 -296
- data/lib/pharmaobservatory/api/conditions_api.rb +336 -0
- data/lib/pharmaobservatory/api/drugs_api.rb +2261 -0
- data/lib/pharmaobservatory/api/hospitals_api.rb +413 -0
- data/lib/pharmaobservatory/api/legal_entities_api.rb +2376 -192
- data/lib/pharmaobservatory/api/rare_diseases_api.rb +1421 -0
- data/lib/pharmaobservatory/api/rwd_conductors_api.rb +413 -0
- data/lib/pharmaobservatory/api/rwd_institutions_api.rb +161 -0
- data/lib/pharmaobservatory/api/rwd_networks_api.rb +161 -0
- data/lib/pharmaobservatory/api/rwd_registers_api.rb +329 -0
- data/lib/pharmaobservatory/api/rwd_sources_api.rb +749 -0
- data/lib/pharmaobservatory/api/rwd_studies_api.rb +581 -0
- data/lib/pharmaobservatory/api/trials_api.rb +84 -0
- data/lib/pharmaobservatory/models/biomarker_allele_frequencies_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_allele_frequencies_row.rb +465 -0
- data/lib/pharmaobservatory/models/biomarker_assay_providers_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_assay_providers_row.rb +520 -0
- data/lib/pharmaobservatory/models/biomarker_evidence_by_year_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_evidence_by_year_row.rb +300 -0
- data/lib/pharmaobservatory/models/biomarker_traversal_status_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_traversal_status_row.rb +322 -0
- data/lib/pharmaobservatory/models/brand_companies_response.rb +478 -0
- data/lib/pharmaobservatory/models/brand_companies_row.rb +401 -0
- data/lib/pharmaobservatory/models/brand_revenue_response.rb +478 -0
- data/lib/pharmaobservatory/models/brand_revenue_row.rb +454 -0
- data/lib/pharmaobservatory/models/catalysts_response.rb +478 -0
- data/lib/pharmaobservatory/models/catalysts_row.rb +623 -0
- data/lib/pharmaobservatory/models/clia_certificates_response.rb +478 -0
- data/lib/pharmaobservatory/models/clia_certificates_row.rb +568 -0
- data/lib/pharmaobservatory/models/companies_record_attributes.rb +13 -4
- data/lib/pharmaobservatory/models/company_assets_row.rb +24 -2
- data/lib/pharmaobservatory/models/company_biomarker_capability_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_biomarker_capability_row.rb +498 -0
- data/lib/pharmaobservatory/models/company_funding_events_row.rb +12 -1
- data/lib/pharmaobservatory/models/company_programs_row.rb +24 -2
- data/lib/pharmaobservatory/models/company_rare_disease_declarations_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_rare_disease_declarations_row.rb +410 -0
- data/lib/pharmaobservatory/models/company_trial_geography_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_trial_geography_row.rb +410 -0
- data/lib/pharmaobservatory/models/company_trial_sites_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_trial_sites_row.rb +410 -0
- data/lib/pharmaobservatory/models/cro_footprint_response.rb +478 -0
- data/lib/pharmaobservatory/models/cro_footprint_row.rb +311 -0
- data/lib/pharmaobservatory/models/cro_trials_response.rb +478 -0
- data/lib/pharmaobservatory/models/cro_trials_row.rb +381 -0
- data/lib/pharmaobservatory/models/debarments_response.rb +478 -0
- data/lib/pharmaobservatory/models/debarments_row.rb +366 -0
- data/lib/pharmaobservatory/models/drug_approvals_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_approvals_row.rb +278 -0
- data/lib/pharmaobservatory/models/drug_asp_codes_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_asp_codes_row.rb +278 -0
- data/lib/pharmaobservatory/models/drug_brands_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_brands_row.rb +454 -0
- data/lib/pharmaobservatory/models/drug_combinations_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_combinations_row.rb +300 -0
- data/lib/pharmaobservatory/models/drug_declared_patents_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_declared_patents_row.rb +447 -0
- data/lib/pharmaobservatory/models/drug_label_safety_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_label_safety_row.rb +300 -0
- data/lib/pharmaobservatory/models/drug_medicare_spend_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_medicare_spend_row.rb +280 -0
- data/lib/pharmaobservatory/models/drug_patent_cliff_row.rb +13 -2
- data/lib/pharmaobservatory/models/drug_patent_mentions_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_patent_mentions_row.rb +278 -0
- data/lib/pharmaobservatory/models/drug_patent_owners_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_patent_owners_row.rb +357 -0
- data/lib/pharmaobservatory/models/drug_pricing_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_pricing_row.rb +300 -0
- data/lib/pharmaobservatory/models/drug_recalls_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_recalls_row.rb +311 -0
- data/lib/pharmaobservatory/models/drug_regulatory_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_regulatory_row.rb +333 -0
- data/lib/pharmaobservatory/models/drug_sites_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_sites_row.rb +278 -0
- data/lib/pharmaobservatory/models/drug_targets_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_targets_row.rb +324 -0
- data/lib/pharmaobservatory/models/drug_trial_conditions_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_trial_conditions_row.rb +289 -0
- data/lib/pharmaobservatory/models/drug_trials_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_trials_row.rb +445 -0
- data/lib/pharmaobservatory/models/drug_variants_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_variants_row.rb +333 -0
- data/lib/pharmaobservatory/models/drugs_record.rb +385 -0
- data/lib/pharmaobservatory/models/drugs_record_attributes.rb +229 -0
- data/lib/pharmaobservatory/models/drugs_response.rb +478 -0
- data/lib/pharmaobservatory/models/drugs_row.rb +581 -0
- data/lib/pharmaobservatory/models/enforcement_events_response.rb +478 -0
- data/lib/pharmaobservatory/models/enforcement_events_row.rb +476 -0
- data/lib/pharmaobservatory/models/gxp_facilities_response.rb +478 -0
- data/lib/pharmaobservatory/models/gxp_facilities_row.rb +1089 -0
- data/lib/pharmaobservatory/models/hospital_beds_yearly_response.rb +478 -0
- data/lib/pharmaobservatory/models/hospital_beds_yearly_row.rb +278 -0
- data/lib/pharmaobservatory/models/hospital_facility_changes_response.rb +478 -0
- data/lib/pharmaobservatory/models/hospital_facility_changes_row.rb +289 -0
- data/lib/pharmaobservatory/models/hospitals_record.rb +385 -0
- data/lib/pharmaobservatory/models/hospitals_response.rb +478 -0
- data/lib/pharmaobservatory/models/hospitals_row.rb +344 -0
- data/lib/pharmaobservatory/models/import_refusals_response.rb +478 -0
- data/lib/pharmaobservatory/models/import_refusals_row.rb +454 -0
- data/lib/pharmaobservatory/models/inspection_findings_response.rb +478 -0
- data/lib/pharmaobservatory/models/inspection_findings_row.rb +388 -0
- data/lib/pharmaobservatory/models/inspections_response.rb +478 -0
- data/lib/pharmaobservatory/models/inspections_row.rb +454 -0
- data/lib/pharmaobservatory/models/institutional_quarter_totals_response.rb +478 -0
- data/lib/pharmaobservatory/models/institutional_quarter_totals_row.rb +443 -0
- data/lib/pharmaobservatory/models/legal_entities_record_attributes.rb +37 -1
- data/lib/pharmaobservatory/models/legal_entity_sec_filings_response.rb +478 -0
- data/lib/pharmaobservatory/models/legal_entity_sec_filings_row.rb +370 -0
- data/lib/pharmaobservatory/models/org_disclosure_trend_response.rb +478 -0
- data/lib/pharmaobservatory/models/org_disclosure_trend_row.rb +465 -0
- data/lib/pharmaobservatory/models/org_relationships_row.rb +1 -1
- data/lib/pharmaobservatory/models/ownership_percentages_response.rb +478 -0
- data/lib/pharmaobservatory/models/ownership_percentages_row.rb +531 -0
- data/lib/pharmaobservatory/models/ownership_source_coverage_response.rb +478 -0
- data/lib/pharmaobservatory/models/ownership_source_coverage_row.rb +465 -0
- data/lib/pharmaobservatory/models/pdufa_dates_row.rb +1 -1
- data/lib/pharmaobservatory/models/program_licensing_candidates_response.rb +478 -0
- data/lib/pharmaobservatory/models/program_licensing_candidates_row.rb +467 -0
- data/lib/pharmaobservatory/models/programs_response.rb +478 -0
- data/lib/pharmaobservatory/models/programs_row.rb +377 -0
- data/lib/pharmaobservatory/models/rare_disease_genes_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_genes_row.rb +399 -0
- data/lib/pharmaobservatory/models/rare_disease_hierarchy_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_hierarchy_row.rb +344 -0
- data/lib/pharmaobservatory/models/rare_disease_investigator_coverage_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_investigator_coverage_row.rb +333 -0
- data/lib/pharmaobservatory/models/rare_disease_investigators_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_investigators_row.rb +436 -0
- data/lib/pharmaobservatory/models/rare_disease_mappings_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_mappings_row.rb +366 -0
- data/lib/pharmaobservatory/models/rare_disease_organizations_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_organizations_row.rb +454 -0
- data/lib/pharmaobservatory/models/rare_disease_prevalence_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_prevalence_row.rb +465 -0
- data/lib/pharmaobservatory/models/rare_disease_rarity_evidence_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_rarity_evidence_row.rb +322 -0
- data/lib/pharmaobservatory/models/rare_disease_rarity_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_rarity_row.rb +421 -0
- data/lib/pharmaobservatory/models/rare_disease_replacements_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_replacements_row.rb +344 -0
- data/lib/pharmaobservatory/models/rare_disease_site_coverage_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_site_coverage_row.rb +421 -0
- data/lib/pharmaobservatory/models/rare_disease_sponsors_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_sponsors_row.rb +575 -0
- data/lib/pharmaobservatory/models/rare_disease_trial_coverage_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_trial_coverage_row.rb +449 -0
- data/lib/pharmaobservatory/models/rare_disease_trial_sites_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_trial_sites_row.rb +412 -0
- data/lib/pharmaobservatory/models/rare_disease_trials_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_trials_row.rb +623 -0
- data/lib/pharmaobservatory/models/rare_diseases_record.rb +385 -0
- data/lib/pharmaobservatory/models/rare_diseases_record_attributes.rb +238 -0
- data/lib/pharmaobservatory/models/rare_diseases_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_diseases_row.rb +500 -0
- data/lib/pharmaobservatory/models/recalls_response.rb +478 -0
- data/lib/pharmaobservatory/models/recalls_row.rb +421 -0
- data/lib/pharmaobservatory/models/rwd_conductor_delivery_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductor_delivery_row.rb +537 -0
- data/lib/pharmaobservatory/models/rwd_conductor_footprint_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductor_footprint_row.rb +346 -0
- data/lib/pharmaobservatory/models/rwd_conductor_studies_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductor_studies_row.rb +355 -0
- data/lib/pharmaobservatory/models/rwd_conductors_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_conductors_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductors_row.rb +526 -0
- data/lib/pharmaobservatory/models/rwd_coverage_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_coverage_row.rb +410 -0
- data/lib/pharmaobservatory/models/rwd_institutions_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_institutions_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_institutions_row.rb +981 -0
- data/lib/pharmaobservatory/models/rwd_networks_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_networks_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_networks_row.rb +733 -0
- data/lib/pharmaobservatory/models/rwd_register_provenance_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_register_provenance_row.rb +531 -0
- data/lib/pharmaobservatory/models/rwd_registers_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_source_age_bands_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_source_age_bands_row.rb +344 -0
- data/lib/pharmaobservatory/models/rwd_source_conditions_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_source_conditions_row.rb +502 -0
- data/lib/pharmaobservatory/models/rwd_source_etl_mappings_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_source_etl_mappings_row.rb +366 -0
- data/lib/pharmaobservatory/models/rwd_source_linkages_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_source_linkages_row.rb +476 -0
- data/lib/pharmaobservatory/models/rwd_source_types_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_source_types_row.rb +311 -0
- data/lib/pharmaobservatory/models/rwd_source_vocabularies_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_source_vocabularies_row.rb +355 -0
- data/lib/pharmaobservatory/models/rwd_sources_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_sources_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_sources_row.rb +1674 -0
- data/lib/pharmaobservatory/models/rwd_studies_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_studies_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_studies_row.rb +1138 -0
- data/lib/pharmaobservatory/models/rwd_study_conditions_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_study_conditions_row.rb +421 -0
- data/lib/pharmaobservatory/models/rwd_study_data_sources_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_study_data_sources_row.rb +423 -0
- data/lib/pharmaobservatory/models/rwd_study_drugs_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_study_drugs_row.rb +401 -0
- data/lib/pharmaobservatory/models/rwd_study_milestones_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_study_milestones_row.rb +421 -0
- data/lib/pharmaobservatory/models/rwd_withheld_fields_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_withheld_fields_row.rb +322 -0
- data/lib/pharmaobservatory/models/sbti_crosscheck_response.rb +478 -0
- data/lib/pharmaobservatory/models/sbti_crosscheck_row.rb +388 -0
- data/lib/pharmaobservatory/models/sec_pdufa_dates_response.rb +478 -0
- data/lib/pharmaobservatory/models/sec_pdufa_dates_row.rb +476 -0
- data/lib/pharmaobservatory/models/sponsor_delivery_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_delivery_row.rb +410 -0
- data/lib/pharmaobservatory/models/sponsor_patent_mentions_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_patent_mentions_row.rb +355 -0
- data/lib/pharmaobservatory/models/sponsor_trial_conditions_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_trial_conditions_row.rb +322 -0
- data/lib/pharmaobservatory/models/sponsor_trial_drugs_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_trial_drugs_row.rb +311 -0
- data/lib/pharmaobservatory/models/trial_changes_row.rb +24 -2
- data/lib/pharmaobservatory/models/trials_row.rb +47 -3
- data/lib/pharmaobservatory/models/unmatched_product_revenue_response.rb +478 -0
- data/lib/pharmaobservatory/models/unmatched_product_revenue_row.rb +564 -0
- data/lib/pharmaobservatory/models/untitled_letters_response.rb +478 -0
- data/lib/pharmaobservatory/models/untitled_letters_row.rb +366 -0
- data/lib/pharmaobservatory/models/warning_letters_response.rb +478 -0
- data/lib/pharmaobservatory/models/warning_letters_row.rb +399 -0
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +210 -0
- metadata +422 -2
|
@@ -0,0 +1,1421 @@
|
|
|
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 'cgi'
|
|
14
|
+
|
|
15
|
+
module PharmaObservatory
|
|
16
|
+
class RareDiseasesApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# One rare disease
|
|
23
|
+
# @param id [Integer]
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [RareDiseasesRecord]
|
|
26
|
+
def rare_diseases_get(id, opts = {})
|
|
27
|
+
data, _status_code, _headers = rare_diseases_get_with_http_info(id, opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# One rare disease
|
|
32
|
+
# @param id [Integer]
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(RareDiseasesRecord, Integer, Hash)>] RareDiseasesRecord data, response status code and response headers
|
|
35
|
+
def rare_diseases_get_with_http_info(id, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: RareDiseasesApi.rare_diseases_get ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'id' is set
|
|
40
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling RareDiseasesApi.rare_diseases_get"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/api/v1/rare_diseases/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
45
|
+
|
|
46
|
+
# query parameters
|
|
47
|
+
query_params = opts[:query_params] || {}
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
50
|
+
header_params = opts[:header_params] || {}
|
|
51
|
+
# HTTP header 'Accept' (if needed)
|
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
53
|
+
|
|
54
|
+
# form parameters
|
|
55
|
+
form_params = opts[:form_params] || {}
|
|
56
|
+
|
|
57
|
+
# http body (model)
|
|
58
|
+
post_body = opts[:debug_body]
|
|
59
|
+
|
|
60
|
+
# return_type
|
|
61
|
+
return_type = opts[:debug_return_type] || 'RareDiseasesRecord'
|
|
62
|
+
|
|
63
|
+
# auth_names
|
|
64
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
65
|
+
|
|
66
|
+
new_options = opts.merge(
|
|
67
|
+
:operation => :"RareDiseasesApi.rare_diseases_get",
|
|
68
|
+
:header_params => header_params,
|
|
69
|
+
:query_params => query_params,
|
|
70
|
+
:form_params => form_params,
|
|
71
|
+
:body => post_body,
|
|
72
|
+
:auth_names => auth_names,
|
|
73
|
+
:return_type => return_type
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
77
|
+
if @api_client.config.debugging
|
|
78
|
+
@api_client.config.logger.debug "API called: RareDiseasesApi#rare_diseases_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
79
|
+
end
|
|
80
|
+
return data, status_code, headers
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# List rare diseases
|
|
84
|
+
# @param [Hash] opts the optional parameters
|
|
85
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
86
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
87
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
88
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
89
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
90
|
+
# @return [RareDiseasesResponse]
|
|
91
|
+
def rare_diseases_list(opts = {})
|
|
92
|
+
data, _status_code, _headers = rare_diseases_list_with_http_info(opts)
|
|
93
|
+
data
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# List rare diseases
|
|
97
|
+
# @param [Hash] opts the optional parameters
|
|
98
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
99
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
100
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
101
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
102
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
103
|
+
# @return [Array<(RareDiseasesResponse, Integer, Hash)>] RareDiseasesResponse data, response status code and response headers
|
|
104
|
+
def rare_diseases_list_with_http_info(opts = {})
|
|
105
|
+
if @api_client.config.debugging
|
|
106
|
+
@api_client.config.logger.debug 'Calling API: RareDiseasesApi.rare_diseases_list ...'
|
|
107
|
+
end
|
|
108
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
109
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_list, must be smaller than or equal to 500.'
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
113
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_list, must be greater than or equal to 1.'
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# resource path
|
|
117
|
+
local_var_path = '/api/v1/rare_diseases'
|
|
118
|
+
|
|
119
|
+
# query parameters
|
|
120
|
+
query_params = opts[:query_params] || {}
|
|
121
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
122
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
123
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
124
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
125
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
126
|
+
|
|
127
|
+
# header parameters
|
|
128
|
+
header_params = opts[:header_params] || {}
|
|
129
|
+
# HTTP header 'Accept' (if needed)
|
|
130
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
131
|
+
|
|
132
|
+
# form parameters
|
|
133
|
+
form_params = opts[:form_params] || {}
|
|
134
|
+
|
|
135
|
+
# http body (model)
|
|
136
|
+
post_body = opts[:debug_body]
|
|
137
|
+
|
|
138
|
+
# return_type
|
|
139
|
+
return_type = opts[:debug_return_type] || 'RareDiseasesResponse'
|
|
140
|
+
|
|
141
|
+
# auth_names
|
|
142
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
143
|
+
|
|
144
|
+
new_options = opts.merge(
|
|
145
|
+
:operation => :"RareDiseasesApi.rare_diseases_list",
|
|
146
|
+
:header_params => header_params,
|
|
147
|
+
:query_params => query_params,
|
|
148
|
+
:form_params => form_params,
|
|
149
|
+
:body => post_body,
|
|
150
|
+
:auth_names => auth_names,
|
|
151
|
+
:return_type => return_type
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
155
|
+
if @api_client.config.debugging
|
|
156
|
+
@api_client.config.logger.debug "API called: RareDiseasesApi#rare_diseases_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
157
|
+
end
|
|
158
|
+
return data, status_code, headers
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Rare disease genes
|
|
162
|
+
# @param id [Integer]
|
|
163
|
+
# @param [Hash] opts the optional parameters
|
|
164
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
165
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
166
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
167
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
168
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
169
|
+
# @return [RareDiseaseGenesResponse]
|
|
170
|
+
def rare_diseases_rare_disease_genes(id, opts = {})
|
|
171
|
+
data, _status_code, _headers = rare_diseases_rare_disease_genes_with_http_info(id, opts)
|
|
172
|
+
data
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Rare disease genes
|
|
176
|
+
# @param id [Integer]
|
|
177
|
+
# @param [Hash] opts the optional parameters
|
|
178
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
179
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
180
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
181
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
182
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
183
|
+
# @return [Array<(RareDiseaseGenesResponse, Integer, Hash)>] RareDiseaseGenesResponse data, response status code and response headers
|
|
184
|
+
def rare_diseases_rare_disease_genes_with_http_info(id, opts = {})
|
|
185
|
+
if @api_client.config.debugging
|
|
186
|
+
@api_client.config.logger.debug 'Calling API: RareDiseasesApi.rare_diseases_rare_disease_genes ...'
|
|
187
|
+
end
|
|
188
|
+
# verify the required parameter 'id' is set
|
|
189
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
190
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling RareDiseasesApi.rare_diseases_rare_disease_genes"
|
|
191
|
+
end
|
|
192
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
193
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_genes, must be smaller than or equal to 500.'
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
197
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_genes, must be greater than or equal to 1.'
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# resource path
|
|
201
|
+
local_var_path = '/api/v1/rare_diseases/{id}/rare_disease_genes'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
202
|
+
|
|
203
|
+
# query parameters
|
|
204
|
+
query_params = opts[:query_params] || {}
|
|
205
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
206
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
207
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
208
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
209
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
210
|
+
|
|
211
|
+
# header parameters
|
|
212
|
+
header_params = opts[:header_params] || {}
|
|
213
|
+
# HTTP header 'Accept' (if needed)
|
|
214
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
215
|
+
|
|
216
|
+
# form parameters
|
|
217
|
+
form_params = opts[:form_params] || {}
|
|
218
|
+
|
|
219
|
+
# http body (model)
|
|
220
|
+
post_body = opts[:debug_body]
|
|
221
|
+
|
|
222
|
+
# return_type
|
|
223
|
+
return_type = opts[:debug_return_type] || 'RareDiseaseGenesResponse'
|
|
224
|
+
|
|
225
|
+
# auth_names
|
|
226
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
227
|
+
|
|
228
|
+
new_options = opts.merge(
|
|
229
|
+
:operation => :"RareDiseasesApi.rare_diseases_rare_disease_genes",
|
|
230
|
+
:header_params => header_params,
|
|
231
|
+
:query_params => query_params,
|
|
232
|
+
:form_params => form_params,
|
|
233
|
+
:body => post_body,
|
|
234
|
+
:auth_names => auth_names,
|
|
235
|
+
:return_type => return_type
|
|
236
|
+
)
|
|
237
|
+
|
|
238
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
239
|
+
if @api_client.config.debugging
|
|
240
|
+
@api_client.config.logger.debug "API called: RareDiseasesApi#rare_diseases_rare_disease_genes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
241
|
+
end
|
|
242
|
+
return data, status_code, headers
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# Rare disease hierarchy
|
|
246
|
+
# @param id [Integer]
|
|
247
|
+
# @param [Hash] opts the optional parameters
|
|
248
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
249
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
250
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
251
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
252
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
253
|
+
# @return [RareDiseaseHierarchyResponse]
|
|
254
|
+
def rare_diseases_rare_disease_hierarchy(id, opts = {})
|
|
255
|
+
data, _status_code, _headers = rare_diseases_rare_disease_hierarchy_with_http_info(id, opts)
|
|
256
|
+
data
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# Rare disease hierarchy
|
|
260
|
+
# @param id [Integer]
|
|
261
|
+
# @param [Hash] opts the optional parameters
|
|
262
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
263
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
264
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
265
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
266
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
267
|
+
# @return [Array<(RareDiseaseHierarchyResponse, Integer, Hash)>] RareDiseaseHierarchyResponse data, response status code and response headers
|
|
268
|
+
def rare_diseases_rare_disease_hierarchy_with_http_info(id, opts = {})
|
|
269
|
+
if @api_client.config.debugging
|
|
270
|
+
@api_client.config.logger.debug 'Calling API: RareDiseasesApi.rare_diseases_rare_disease_hierarchy ...'
|
|
271
|
+
end
|
|
272
|
+
# verify the required parameter 'id' is set
|
|
273
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
274
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling RareDiseasesApi.rare_diseases_rare_disease_hierarchy"
|
|
275
|
+
end
|
|
276
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
277
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_hierarchy, must be smaller than or equal to 500.'
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
281
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_hierarchy, must be greater than or equal to 1.'
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
# resource path
|
|
285
|
+
local_var_path = '/api/v1/rare_diseases/{id}/rare_disease_hierarchy'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
286
|
+
|
|
287
|
+
# query parameters
|
|
288
|
+
query_params = opts[:query_params] || {}
|
|
289
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
290
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
291
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
292
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
293
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
294
|
+
|
|
295
|
+
# header parameters
|
|
296
|
+
header_params = opts[:header_params] || {}
|
|
297
|
+
# HTTP header 'Accept' (if needed)
|
|
298
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
299
|
+
|
|
300
|
+
# form parameters
|
|
301
|
+
form_params = opts[:form_params] || {}
|
|
302
|
+
|
|
303
|
+
# http body (model)
|
|
304
|
+
post_body = opts[:debug_body]
|
|
305
|
+
|
|
306
|
+
# return_type
|
|
307
|
+
return_type = opts[:debug_return_type] || 'RareDiseaseHierarchyResponse'
|
|
308
|
+
|
|
309
|
+
# auth_names
|
|
310
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
311
|
+
|
|
312
|
+
new_options = opts.merge(
|
|
313
|
+
:operation => :"RareDiseasesApi.rare_diseases_rare_disease_hierarchy",
|
|
314
|
+
:header_params => header_params,
|
|
315
|
+
:query_params => query_params,
|
|
316
|
+
:form_params => form_params,
|
|
317
|
+
:body => post_body,
|
|
318
|
+
:auth_names => auth_names,
|
|
319
|
+
:return_type => return_type
|
|
320
|
+
)
|
|
321
|
+
|
|
322
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
323
|
+
if @api_client.config.debugging
|
|
324
|
+
@api_client.config.logger.debug "API called: RareDiseasesApi#rare_diseases_rare_disease_hierarchy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
325
|
+
end
|
|
326
|
+
return data, status_code, headers
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
# Rare disease investigator coverage
|
|
330
|
+
# @param id [Integer]
|
|
331
|
+
# @param [Hash] opts the optional parameters
|
|
332
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
333
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
334
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
335
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
336
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
337
|
+
# @return [RareDiseaseInvestigatorCoverageResponse]
|
|
338
|
+
def rare_diseases_rare_disease_investigator_coverage(id, opts = {})
|
|
339
|
+
data, _status_code, _headers = rare_diseases_rare_disease_investigator_coverage_with_http_info(id, opts)
|
|
340
|
+
data
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
# Rare disease investigator coverage
|
|
344
|
+
# @param id [Integer]
|
|
345
|
+
# @param [Hash] opts the optional parameters
|
|
346
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
347
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
348
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
349
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
350
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
351
|
+
# @return [Array<(RareDiseaseInvestigatorCoverageResponse, Integer, Hash)>] RareDiseaseInvestigatorCoverageResponse data, response status code and response headers
|
|
352
|
+
def rare_diseases_rare_disease_investigator_coverage_with_http_info(id, opts = {})
|
|
353
|
+
if @api_client.config.debugging
|
|
354
|
+
@api_client.config.logger.debug 'Calling API: RareDiseasesApi.rare_diseases_rare_disease_investigator_coverage ...'
|
|
355
|
+
end
|
|
356
|
+
# verify the required parameter 'id' is set
|
|
357
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
358
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling RareDiseasesApi.rare_diseases_rare_disease_investigator_coverage"
|
|
359
|
+
end
|
|
360
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
361
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_investigator_coverage, must be smaller than or equal to 500.'
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
365
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_investigator_coverage, must be greater than or equal to 1.'
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
# resource path
|
|
369
|
+
local_var_path = '/api/v1/rare_diseases/{id}/rare_disease_investigator_coverage'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
370
|
+
|
|
371
|
+
# query parameters
|
|
372
|
+
query_params = opts[:query_params] || {}
|
|
373
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
374
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
375
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
376
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
377
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
378
|
+
|
|
379
|
+
# header parameters
|
|
380
|
+
header_params = opts[:header_params] || {}
|
|
381
|
+
# HTTP header 'Accept' (if needed)
|
|
382
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
383
|
+
|
|
384
|
+
# form parameters
|
|
385
|
+
form_params = opts[:form_params] || {}
|
|
386
|
+
|
|
387
|
+
# http body (model)
|
|
388
|
+
post_body = opts[:debug_body]
|
|
389
|
+
|
|
390
|
+
# return_type
|
|
391
|
+
return_type = opts[:debug_return_type] || 'RareDiseaseInvestigatorCoverageResponse'
|
|
392
|
+
|
|
393
|
+
# auth_names
|
|
394
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
395
|
+
|
|
396
|
+
new_options = opts.merge(
|
|
397
|
+
:operation => :"RareDiseasesApi.rare_diseases_rare_disease_investigator_coverage",
|
|
398
|
+
:header_params => header_params,
|
|
399
|
+
:query_params => query_params,
|
|
400
|
+
:form_params => form_params,
|
|
401
|
+
:body => post_body,
|
|
402
|
+
:auth_names => auth_names,
|
|
403
|
+
:return_type => return_type
|
|
404
|
+
)
|
|
405
|
+
|
|
406
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
407
|
+
if @api_client.config.debugging
|
|
408
|
+
@api_client.config.logger.debug "API called: RareDiseasesApi#rare_diseases_rare_disease_investigator_coverage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
409
|
+
end
|
|
410
|
+
return data, status_code, headers
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
# Rare disease investigators
|
|
414
|
+
# @param id [Integer]
|
|
415
|
+
# @param [Hash] opts the optional parameters
|
|
416
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
417
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
418
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
419
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
420
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
421
|
+
# @return [RareDiseaseInvestigatorsResponse]
|
|
422
|
+
def rare_diseases_rare_disease_investigators(id, opts = {})
|
|
423
|
+
data, _status_code, _headers = rare_diseases_rare_disease_investigators_with_http_info(id, opts)
|
|
424
|
+
data
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
# Rare disease investigators
|
|
428
|
+
# @param id [Integer]
|
|
429
|
+
# @param [Hash] opts the optional parameters
|
|
430
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
431
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
432
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
433
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
434
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
435
|
+
# @return [Array<(RareDiseaseInvestigatorsResponse, Integer, Hash)>] RareDiseaseInvestigatorsResponse data, response status code and response headers
|
|
436
|
+
def rare_diseases_rare_disease_investigators_with_http_info(id, opts = {})
|
|
437
|
+
if @api_client.config.debugging
|
|
438
|
+
@api_client.config.logger.debug 'Calling API: RareDiseasesApi.rare_diseases_rare_disease_investigators ...'
|
|
439
|
+
end
|
|
440
|
+
# verify the required parameter 'id' is set
|
|
441
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
442
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling RareDiseasesApi.rare_diseases_rare_disease_investigators"
|
|
443
|
+
end
|
|
444
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
445
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_investigators, must be smaller than or equal to 500.'
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
449
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_investigators, must be greater than or equal to 1.'
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
# resource path
|
|
453
|
+
local_var_path = '/api/v1/rare_diseases/{id}/rare_disease_investigators'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
454
|
+
|
|
455
|
+
# query parameters
|
|
456
|
+
query_params = opts[:query_params] || {}
|
|
457
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
458
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
459
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
460
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
461
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
462
|
+
|
|
463
|
+
# header parameters
|
|
464
|
+
header_params = opts[:header_params] || {}
|
|
465
|
+
# HTTP header 'Accept' (if needed)
|
|
466
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
467
|
+
|
|
468
|
+
# form parameters
|
|
469
|
+
form_params = opts[:form_params] || {}
|
|
470
|
+
|
|
471
|
+
# http body (model)
|
|
472
|
+
post_body = opts[:debug_body]
|
|
473
|
+
|
|
474
|
+
# return_type
|
|
475
|
+
return_type = opts[:debug_return_type] || 'RareDiseaseInvestigatorsResponse'
|
|
476
|
+
|
|
477
|
+
# auth_names
|
|
478
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
479
|
+
|
|
480
|
+
new_options = opts.merge(
|
|
481
|
+
:operation => :"RareDiseasesApi.rare_diseases_rare_disease_investigators",
|
|
482
|
+
:header_params => header_params,
|
|
483
|
+
:query_params => query_params,
|
|
484
|
+
:form_params => form_params,
|
|
485
|
+
:body => post_body,
|
|
486
|
+
:auth_names => auth_names,
|
|
487
|
+
:return_type => return_type
|
|
488
|
+
)
|
|
489
|
+
|
|
490
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
491
|
+
if @api_client.config.debugging
|
|
492
|
+
@api_client.config.logger.debug "API called: RareDiseasesApi#rare_diseases_rare_disease_investigators\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
493
|
+
end
|
|
494
|
+
return data, status_code, headers
|
|
495
|
+
end
|
|
496
|
+
|
|
497
|
+
# Rare disease mappings
|
|
498
|
+
# @param id [Integer]
|
|
499
|
+
# @param [Hash] opts the optional parameters
|
|
500
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
501
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
502
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
503
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
504
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
505
|
+
# @return [RareDiseaseMappingsResponse]
|
|
506
|
+
def rare_diseases_rare_disease_mappings(id, opts = {})
|
|
507
|
+
data, _status_code, _headers = rare_diseases_rare_disease_mappings_with_http_info(id, opts)
|
|
508
|
+
data
|
|
509
|
+
end
|
|
510
|
+
|
|
511
|
+
# Rare disease mappings
|
|
512
|
+
# @param id [Integer]
|
|
513
|
+
# @param [Hash] opts the optional parameters
|
|
514
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
515
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
516
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
517
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
518
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
519
|
+
# @return [Array<(RareDiseaseMappingsResponse, Integer, Hash)>] RareDiseaseMappingsResponse data, response status code and response headers
|
|
520
|
+
def rare_diseases_rare_disease_mappings_with_http_info(id, opts = {})
|
|
521
|
+
if @api_client.config.debugging
|
|
522
|
+
@api_client.config.logger.debug 'Calling API: RareDiseasesApi.rare_diseases_rare_disease_mappings ...'
|
|
523
|
+
end
|
|
524
|
+
# verify the required parameter 'id' is set
|
|
525
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
526
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling RareDiseasesApi.rare_diseases_rare_disease_mappings"
|
|
527
|
+
end
|
|
528
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
529
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_mappings, must be smaller than or equal to 500.'
|
|
530
|
+
end
|
|
531
|
+
|
|
532
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
533
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_mappings, must be greater than or equal to 1.'
|
|
534
|
+
end
|
|
535
|
+
|
|
536
|
+
# resource path
|
|
537
|
+
local_var_path = '/api/v1/rare_diseases/{id}/rare_disease_mappings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
538
|
+
|
|
539
|
+
# query parameters
|
|
540
|
+
query_params = opts[:query_params] || {}
|
|
541
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
542
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
543
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
544
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
545
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
546
|
+
|
|
547
|
+
# header parameters
|
|
548
|
+
header_params = opts[:header_params] || {}
|
|
549
|
+
# HTTP header 'Accept' (if needed)
|
|
550
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
551
|
+
|
|
552
|
+
# form parameters
|
|
553
|
+
form_params = opts[:form_params] || {}
|
|
554
|
+
|
|
555
|
+
# http body (model)
|
|
556
|
+
post_body = opts[:debug_body]
|
|
557
|
+
|
|
558
|
+
# return_type
|
|
559
|
+
return_type = opts[:debug_return_type] || 'RareDiseaseMappingsResponse'
|
|
560
|
+
|
|
561
|
+
# auth_names
|
|
562
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
563
|
+
|
|
564
|
+
new_options = opts.merge(
|
|
565
|
+
:operation => :"RareDiseasesApi.rare_diseases_rare_disease_mappings",
|
|
566
|
+
:header_params => header_params,
|
|
567
|
+
:query_params => query_params,
|
|
568
|
+
:form_params => form_params,
|
|
569
|
+
:body => post_body,
|
|
570
|
+
:auth_names => auth_names,
|
|
571
|
+
:return_type => return_type
|
|
572
|
+
)
|
|
573
|
+
|
|
574
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
575
|
+
if @api_client.config.debugging
|
|
576
|
+
@api_client.config.logger.debug "API called: RareDiseasesApi#rare_diseases_rare_disease_mappings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
577
|
+
end
|
|
578
|
+
return data, status_code, headers
|
|
579
|
+
end
|
|
580
|
+
|
|
581
|
+
# Rare disease organizations
|
|
582
|
+
# @param id [Integer]
|
|
583
|
+
# @param [Hash] opts the optional parameters
|
|
584
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
585
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
586
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
587
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
588
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
589
|
+
# @return [RareDiseaseOrganizationsResponse]
|
|
590
|
+
def rare_diseases_rare_disease_organizations(id, opts = {})
|
|
591
|
+
data, _status_code, _headers = rare_diseases_rare_disease_organizations_with_http_info(id, opts)
|
|
592
|
+
data
|
|
593
|
+
end
|
|
594
|
+
|
|
595
|
+
# Rare disease organizations
|
|
596
|
+
# @param id [Integer]
|
|
597
|
+
# @param [Hash] opts the optional parameters
|
|
598
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
599
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
600
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
601
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
602
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
603
|
+
# @return [Array<(RareDiseaseOrganizationsResponse, Integer, Hash)>] RareDiseaseOrganizationsResponse data, response status code and response headers
|
|
604
|
+
def rare_diseases_rare_disease_organizations_with_http_info(id, opts = {})
|
|
605
|
+
if @api_client.config.debugging
|
|
606
|
+
@api_client.config.logger.debug 'Calling API: RareDiseasesApi.rare_diseases_rare_disease_organizations ...'
|
|
607
|
+
end
|
|
608
|
+
# verify the required parameter 'id' is set
|
|
609
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
610
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling RareDiseasesApi.rare_diseases_rare_disease_organizations"
|
|
611
|
+
end
|
|
612
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
613
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_organizations, must be smaller than or equal to 500.'
|
|
614
|
+
end
|
|
615
|
+
|
|
616
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
617
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_organizations, must be greater than or equal to 1.'
|
|
618
|
+
end
|
|
619
|
+
|
|
620
|
+
# resource path
|
|
621
|
+
local_var_path = '/api/v1/rare_diseases/{id}/rare_disease_organizations'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
622
|
+
|
|
623
|
+
# query parameters
|
|
624
|
+
query_params = opts[:query_params] || {}
|
|
625
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
626
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
627
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
628
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
629
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
630
|
+
|
|
631
|
+
# header parameters
|
|
632
|
+
header_params = opts[:header_params] || {}
|
|
633
|
+
# HTTP header 'Accept' (if needed)
|
|
634
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
635
|
+
|
|
636
|
+
# form parameters
|
|
637
|
+
form_params = opts[:form_params] || {}
|
|
638
|
+
|
|
639
|
+
# http body (model)
|
|
640
|
+
post_body = opts[:debug_body]
|
|
641
|
+
|
|
642
|
+
# return_type
|
|
643
|
+
return_type = opts[:debug_return_type] || 'RareDiseaseOrganizationsResponse'
|
|
644
|
+
|
|
645
|
+
# auth_names
|
|
646
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
647
|
+
|
|
648
|
+
new_options = opts.merge(
|
|
649
|
+
:operation => :"RareDiseasesApi.rare_diseases_rare_disease_organizations",
|
|
650
|
+
:header_params => header_params,
|
|
651
|
+
:query_params => query_params,
|
|
652
|
+
:form_params => form_params,
|
|
653
|
+
:body => post_body,
|
|
654
|
+
:auth_names => auth_names,
|
|
655
|
+
:return_type => return_type
|
|
656
|
+
)
|
|
657
|
+
|
|
658
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
659
|
+
if @api_client.config.debugging
|
|
660
|
+
@api_client.config.logger.debug "API called: RareDiseasesApi#rare_diseases_rare_disease_organizations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
661
|
+
end
|
|
662
|
+
return data, status_code, headers
|
|
663
|
+
end
|
|
664
|
+
|
|
665
|
+
# Rare disease prevalence
|
|
666
|
+
# @param id [Integer]
|
|
667
|
+
# @param [Hash] opts the optional parameters
|
|
668
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
669
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
670
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
671
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
672
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
673
|
+
# @return [RareDiseasePrevalenceResponse]
|
|
674
|
+
def rare_diseases_rare_disease_prevalence(id, opts = {})
|
|
675
|
+
data, _status_code, _headers = rare_diseases_rare_disease_prevalence_with_http_info(id, opts)
|
|
676
|
+
data
|
|
677
|
+
end
|
|
678
|
+
|
|
679
|
+
# Rare disease prevalence
|
|
680
|
+
# @param id [Integer]
|
|
681
|
+
# @param [Hash] opts the optional parameters
|
|
682
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
683
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
684
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
685
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
686
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
687
|
+
# @return [Array<(RareDiseasePrevalenceResponse, Integer, Hash)>] RareDiseasePrevalenceResponse data, response status code and response headers
|
|
688
|
+
def rare_diseases_rare_disease_prevalence_with_http_info(id, opts = {})
|
|
689
|
+
if @api_client.config.debugging
|
|
690
|
+
@api_client.config.logger.debug 'Calling API: RareDiseasesApi.rare_diseases_rare_disease_prevalence ...'
|
|
691
|
+
end
|
|
692
|
+
# verify the required parameter 'id' is set
|
|
693
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
694
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling RareDiseasesApi.rare_diseases_rare_disease_prevalence"
|
|
695
|
+
end
|
|
696
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
697
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_prevalence, must be smaller than or equal to 500.'
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
701
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_prevalence, must be greater than or equal to 1.'
|
|
702
|
+
end
|
|
703
|
+
|
|
704
|
+
# resource path
|
|
705
|
+
local_var_path = '/api/v1/rare_diseases/{id}/rare_disease_prevalence'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
706
|
+
|
|
707
|
+
# query parameters
|
|
708
|
+
query_params = opts[:query_params] || {}
|
|
709
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
710
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
711
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
712
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
713
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
714
|
+
|
|
715
|
+
# header parameters
|
|
716
|
+
header_params = opts[:header_params] || {}
|
|
717
|
+
# HTTP header 'Accept' (if needed)
|
|
718
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
719
|
+
|
|
720
|
+
# form parameters
|
|
721
|
+
form_params = opts[:form_params] || {}
|
|
722
|
+
|
|
723
|
+
# http body (model)
|
|
724
|
+
post_body = opts[:debug_body]
|
|
725
|
+
|
|
726
|
+
# return_type
|
|
727
|
+
return_type = opts[:debug_return_type] || 'RareDiseasePrevalenceResponse'
|
|
728
|
+
|
|
729
|
+
# auth_names
|
|
730
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
731
|
+
|
|
732
|
+
new_options = opts.merge(
|
|
733
|
+
:operation => :"RareDiseasesApi.rare_diseases_rare_disease_prevalence",
|
|
734
|
+
:header_params => header_params,
|
|
735
|
+
:query_params => query_params,
|
|
736
|
+
:form_params => form_params,
|
|
737
|
+
:body => post_body,
|
|
738
|
+
:auth_names => auth_names,
|
|
739
|
+
:return_type => return_type
|
|
740
|
+
)
|
|
741
|
+
|
|
742
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
743
|
+
if @api_client.config.debugging
|
|
744
|
+
@api_client.config.logger.debug "API called: RareDiseasesApi#rare_diseases_rare_disease_prevalence\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
745
|
+
end
|
|
746
|
+
return data, status_code, headers
|
|
747
|
+
end
|
|
748
|
+
|
|
749
|
+
# Rare disease rarity assessments
|
|
750
|
+
# @param id [Integer]
|
|
751
|
+
# @param [Hash] opts the optional parameters
|
|
752
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
753
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
754
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
755
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
756
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
757
|
+
# @return [RareDiseaseRarityResponse]
|
|
758
|
+
def rare_diseases_rare_disease_rarity(id, opts = {})
|
|
759
|
+
data, _status_code, _headers = rare_diseases_rare_disease_rarity_with_http_info(id, opts)
|
|
760
|
+
data
|
|
761
|
+
end
|
|
762
|
+
|
|
763
|
+
# Rare disease rarity assessments
|
|
764
|
+
# @param id [Integer]
|
|
765
|
+
# @param [Hash] opts the optional parameters
|
|
766
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
767
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
768
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
769
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
770
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
771
|
+
# @return [Array<(RareDiseaseRarityResponse, Integer, Hash)>] RareDiseaseRarityResponse data, response status code and response headers
|
|
772
|
+
def rare_diseases_rare_disease_rarity_with_http_info(id, opts = {})
|
|
773
|
+
if @api_client.config.debugging
|
|
774
|
+
@api_client.config.logger.debug 'Calling API: RareDiseasesApi.rare_diseases_rare_disease_rarity ...'
|
|
775
|
+
end
|
|
776
|
+
# verify the required parameter 'id' is set
|
|
777
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
778
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling RareDiseasesApi.rare_diseases_rare_disease_rarity"
|
|
779
|
+
end
|
|
780
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
781
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_rarity, must be smaller than or equal to 500.'
|
|
782
|
+
end
|
|
783
|
+
|
|
784
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
785
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_rarity, must be greater than or equal to 1.'
|
|
786
|
+
end
|
|
787
|
+
|
|
788
|
+
# resource path
|
|
789
|
+
local_var_path = '/api/v1/rare_diseases/{id}/rare_disease_rarity'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
790
|
+
|
|
791
|
+
# query parameters
|
|
792
|
+
query_params = opts[:query_params] || {}
|
|
793
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
794
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
795
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
796
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
797
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
798
|
+
|
|
799
|
+
# header parameters
|
|
800
|
+
header_params = opts[:header_params] || {}
|
|
801
|
+
# HTTP header 'Accept' (if needed)
|
|
802
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
803
|
+
|
|
804
|
+
# form parameters
|
|
805
|
+
form_params = opts[:form_params] || {}
|
|
806
|
+
|
|
807
|
+
# http body (model)
|
|
808
|
+
post_body = opts[:debug_body]
|
|
809
|
+
|
|
810
|
+
# return_type
|
|
811
|
+
return_type = opts[:debug_return_type] || 'RareDiseaseRarityResponse'
|
|
812
|
+
|
|
813
|
+
# auth_names
|
|
814
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
815
|
+
|
|
816
|
+
new_options = opts.merge(
|
|
817
|
+
:operation => :"RareDiseasesApi.rare_diseases_rare_disease_rarity",
|
|
818
|
+
:header_params => header_params,
|
|
819
|
+
:query_params => query_params,
|
|
820
|
+
:form_params => form_params,
|
|
821
|
+
:body => post_body,
|
|
822
|
+
:auth_names => auth_names,
|
|
823
|
+
:return_type => return_type
|
|
824
|
+
)
|
|
825
|
+
|
|
826
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
827
|
+
if @api_client.config.debugging
|
|
828
|
+
@api_client.config.logger.debug "API called: RareDiseasesApi#rare_diseases_rare_disease_rarity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
829
|
+
end
|
|
830
|
+
return data, status_code, headers
|
|
831
|
+
end
|
|
832
|
+
|
|
833
|
+
# Rare disease rarity evidence
|
|
834
|
+
# @param id [Integer]
|
|
835
|
+
# @param [Hash] opts the optional parameters
|
|
836
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
837
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
838
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
839
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
840
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
841
|
+
# @return [RareDiseaseRarityEvidenceResponse]
|
|
842
|
+
def rare_diseases_rare_disease_rarity_evidence(id, opts = {})
|
|
843
|
+
data, _status_code, _headers = rare_diseases_rare_disease_rarity_evidence_with_http_info(id, opts)
|
|
844
|
+
data
|
|
845
|
+
end
|
|
846
|
+
|
|
847
|
+
# Rare disease rarity evidence
|
|
848
|
+
# @param id [Integer]
|
|
849
|
+
# @param [Hash] opts the optional parameters
|
|
850
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
851
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
852
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
853
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
854
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
855
|
+
# @return [Array<(RareDiseaseRarityEvidenceResponse, Integer, Hash)>] RareDiseaseRarityEvidenceResponse data, response status code and response headers
|
|
856
|
+
def rare_diseases_rare_disease_rarity_evidence_with_http_info(id, opts = {})
|
|
857
|
+
if @api_client.config.debugging
|
|
858
|
+
@api_client.config.logger.debug 'Calling API: RareDiseasesApi.rare_diseases_rare_disease_rarity_evidence ...'
|
|
859
|
+
end
|
|
860
|
+
# verify the required parameter 'id' is set
|
|
861
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
862
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling RareDiseasesApi.rare_diseases_rare_disease_rarity_evidence"
|
|
863
|
+
end
|
|
864
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
865
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_rarity_evidence, must be smaller than or equal to 500.'
|
|
866
|
+
end
|
|
867
|
+
|
|
868
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
869
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_rarity_evidence, must be greater than or equal to 1.'
|
|
870
|
+
end
|
|
871
|
+
|
|
872
|
+
# resource path
|
|
873
|
+
local_var_path = '/api/v1/rare_diseases/{id}/rare_disease_rarity_evidence'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
874
|
+
|
|
875
|
+
# query parameters
|
|
876
|
+
query_params = opts[:query_params] || {}
|
|
877
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
878
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
879
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
880
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
881
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
882
|
+
|
|
883
|
+
# header parameters
|
|
884
|
+
header_params = opts[:header_params] || {}
|
|
885
|
+
# HTTP header 'Accept' (if needed)
|
|
886
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
887
|
+
|
|
888
|
+
# form parameters
|
|
889
|
+
form_params = opts[:form_params] || {}
|
|
890
|
+
|
|
891
|
+
# http body (model)
|
|
892
|
+
post_body = opts[:debug_body]
|
|
893
|
+
|
|
894
|
+
# return_type
|
|
895
|
+
return_type = opts[:debug_return_type] || 'RareDiseaseRarityEvidenceResponse'
|
|
896
|
+
|
|
897
|
+
# auth_names
|
|
898
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
899
|
+
|
|
900
|
+
new_options = opts.merge(
|
|
901
|
+
:operation => :"RareDiseasesApi.rare_diseases_rare_disease_rarity_evidence",
|
|
902
|
+
:header_params => header_params,
|
|
903
|
+
:query_params => query_params,
|
|
904
|
+
:form_params => form_params,
|
|
905
|
+
:body => post_body,
|
|
906
|
+
:auth_names => auth_names,
|
|
907
|
+
:return_type => return_type
|
|
908
|
+
)
|
|
909
|
+
|
|
910
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
911
|
+
if @api_client.config.debugging
|
|
912
|
+
@api_client.config.logger.debug "API called: RareDiseasesApi#rare_diseases_rare_disease_rarity_evidence\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
913
|
+
end
|
|
914
|
+
return data, status_code, headers
|
|
915
|
+
end
|
|
916
|
+
|
|
917
|
+
# Rare disease replacements
|
|
918
|
+
# @param id [Integer]
|
|
919
|
+
# @param [Hash] opts the optional parameters
|
|
920
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
921
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
922
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
923
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
924
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
925
|
+
# @return [RareDiseaseReplacementsResponse]
|
|
926
|
+
def rare_diseases_rare_disease_replacements(id, opts = {})
|
|
927
|
+
data, _status_code, _headers = rare_diseases_rare_disease_replacements_with_http_info(id, opts)
|
|
928
|
+
data
|
|
929
|
+
end
|
|
930
|
+
|
|
931
|
+
# Rare disease replacements
|
|
932
|
+
# @param id [Integer]
|
|
933
|
+
# @param [Hash] opts the optional parameters
|
|
934
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
935
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
936
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
937
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
938
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
939
|
+
# @return [Array<(RareDiseaseReplacementsResponse, Integer, Hash)>] RareDiseaseReplacementsResponse data, response status code and response headers
|
|
940
|
+
def rare_diseases_rare_disease_replacements_with_http_info(id, opts = {})
|
|
941
|
+
if @api_client.config.debugging
|
|
942
|
+
@api_client.config.logger.debug 'Calling API: RareDiseasesApi.rare_diseases_rare_disease_replacements ...'
|
|
943
|
+
end
|
|
944
|
+
# verify the required parameter 'id' is set
|
|
945
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
946
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling RareDiseasesApi.rare_diseases_rare_disease_replacements"
|
|
947
|
+
end
|
|
948
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
949
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_replacements, must be smaller than or equal to 500.'
|
|
950
|
+
end
|
|
951
|
+
|
|
952
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
953
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_replacements, must be greater than or equal to 1.'
|
|
954
|
+
end
|
|
955
|
+
|
|
956
|
+
# resource path
|
|
957
|
+
local_var_path = '/api/v1/rare_diseases/{id}/rare_disease_replacements'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
958
|
+
|
|
959
|
+
# query parameters
|
|
960
|
+
query_params = opts[:query_params] || {}
|
|
961
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
962
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
963
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
964
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
965
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
966
|
+
|
|
967
|
+
# header parameters
|
|
968
|
+
header_params = opts[:header_params] || {}
|
|
969
|
+
# HTTP header 'Accept' (if needed)
|
|
970
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
971
|
+
|
|
972
|
+
# form parameters
|
|
973
|
+
form_params = opts[:form_params] || {}
|
|
974
|
+
|
|
975
|
+
# http body (model)
|
|
976
|
+
post_body = opts[:debug_body]
|
|
977
|
+
|
|
978
|
+
# return_type
|
|
979
|
+
return_type = opts[:debug_return_type] || 'RareDiseaseReplacementsResponse'
|
|
980
|
+
|
|
981
|
+
# auth_names
|
|
982
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
983
|
+
|
|
984
|
+
new_options = opts.merge(
|
|
985
|
+
:operation => :"RareDiseasesApi.rare_diseases_rare_disease_replacements",
|
|
986
|
+
:header_params => header_params,
|
|
987
|
+
:query_params => query_params,
|
|
988
|
+
:form_params => form_params,
|
|
989
|
+
:body => post_body,
|
|
990
|
+
:auth_names => auth_names,
|
|
991
|
+
:return_type => return_type
|
|
992
|
+
)
|
|
993
|
+
|
|
994
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
995
|
+
if @api_client.config.debugging
|
|
996
|
+
@api_client.config.logger.debug "API called: RareDiseasesApi#rare_diseases_rare_disease_replacements\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
997
|
+
end
|
|
998
|
+
return data, status_code, headers
|
|
999
|
+
end
|
|
1000
|
+
|
|
1001
|
+
# Rare disease site coverage
|
|
1002
|
+
# @param id [Integer]
|
|
1003
|
+
# @param [Hash] opts the optional parameters
|
|
1004
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1005
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1006
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1007
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1008
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1009
|
+
# @return [RareDiseaseSiteCoverageResponse]
|
|
1010
|
+
def rare_diseases_rare_disease_site_coverage(id, opts = {})
|
|
1011
|
+
data, _status_code, _headers = rare_diseases_rare_disease_site_coverage_with_http_info(id, opts)
|
|
1012
|
+
data
|
|
1013
|
+
end
|
|
1014
|
+
|
|
1015
|
+
# Rare disease site coverage
|
|
1016
|
+
# @param id [Integer]
|
|
1017
|
+
# @param [Hash] opts the optional parameters
|
|
1018
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1019
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1020
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1021
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1022
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1023
|
+
# @return [Array<(RareDiseaseSiteCoverageResponse, Integer, Hash)>] RareDiseaseSiteCoverageResponse data, response status code and response headers
|
|
1024
|
+
def rare_diseases_rare_disease_site_coverage_with_http_info(id, opts = {})
|
|
1025
|
+
if @api_client.config.debugging
|
|
1026
|
+
@api_client.config.logger.debug 'Calling API: RareDiseasesApi.rare_diseases_rare_disease_site_coverage ...'
|
|
1027
|
+
end
|
|
1028
|
+
# verify the required parameter 'id' is set
|
|
1029
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1030
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling RareDiseasesApi.rare_diseases_rare_disease_site_coverage"
|
|
1031
|
+
end
|
|
1032
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1033
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_site_coverage, must be smaller than or equal to 500.'
|
|
1034
|
+
end
|
|
1035
|
+
|
|
1036
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1037
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_site_coverage, must be greater than or equal to 1.'
|
|
1038
|
+
end
|
|
1039
|
+
|
|
1040
|
+
# resource path
|
|
1041
|
+
local_var_path = '/api/v1/rare_diseases/{id}/rare_disease_site_coverage'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1042
|
+
|
|
1043
|
+
# query parameters
|
|
1044
|
+
query_params = opts[:query_params] || {}
|
|
1045
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1046
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1047
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1048
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1049
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1050
|
+
|
|
1051
|
+
# header parameters
|
|
1052
|
+
header_params = opts[:header_params] || {}
|
|
1053
|
+
# HTTP header 'Accept' (if needed)
|
|
1054
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1055
|
+
|
|
1056
|
+
# form parameters
|
|
1057
|
+
form_params = opts[:form_params] || {}
|
|
1058
|
+
|
|
1059
|
+
# http body (model)
|
|
1060
|
+
post_body = opts[:debug_body]
|
|
1061
|
+
|
|
1062
|
+
# return_type
|
|
1063
|
+
return_type = opts[:debug_return_type] || 'RareDiseaseSiteCoverageResponse'
|
|
1064
|
+
|
|
1065
|
+
# auth_names
|
|
1066
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1067
|
+
|
|
1068
|
+
new_options = opts.merge(
|
|
1069
|
+
:operation => :"RareDiseasesApi.rare_diseases_rare_disease_site_coverage",
|
|
1070
|
+
:header_params => header_params,
|
|
1071
|
+
:query_params => query_params,
|
|
1072
|
+
:form_params => form_params,
|
|
1073
|
+
:body => post_body,
|
|
1074
|
+
:auth_names => auth_names,
|
|
1075
|
+
:return_type => return_type
|
|
1076
|
+
)
|
|
1077
|
+
|
|
1078
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1079
|
+
if @api_client.config.debugging
|
|
1080
|
+
@api_client.config.logger.debug "API called: RareDiseasesApi#rare_diseases_rare_disease_site_coverage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1081
|
+
end
|
|
1082
|
+
return data, status_code, headers
|
|
1083
|
+
end
|
|
1084
|
+
|
|
1085
|
+
# Rare disease sponsors
|
|
1086
|
+
# @param id [Integer]
|
|
1087
|
+
# @param [Hash] opts the optional parameters
|
|
1088
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1089
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1090
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1091
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1092
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1093
|
+
# @return [RareDiseaseSponsorsResponse]
|
|
1094
|
+
def rare_diseases_rare_disease_sponsors(id, opts = {})
|
|
1095
|
+
data, _status_code, _headers = rare_diseases_rare_disease_sponsors_with_http_info(id, opts)
|
|
1096
|
+
data
|
|
1097
|
+
end
|
|
1098
|
+
|
|
1099
|
+
# Rare disease sponsors
|
|
1100
|
+
# @param id [Integer]
|
|
1101
|
+
# @param [Hash] opts the optional parameters
|
|
1102
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1103
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1104
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1105
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1106
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1107
|
+
# @return [Array<(RareDiseaseSponsorsResponse, Integer, Hash)>] RareDiseaseSponsorsResponse data, response status code and response headers
|
|
1108
|
+
def rare_diseases_rare_disease_sponsors_with_http_info(id, opts = {})
|
|
1109
|
+
if @api_client.config.debugging
|
|
1110
|
+
@api_client.config.logger.debug 'Calling API: RareDiseasesApi.rare_diseases_rare_disease_sponsors ...'
|
|
1111
|
+
end
|
|
1112
|
+
# verify the required parameter 'id' is set
|
|
1113
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1114
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling RareDiseasesApi.rare_diseases_rare_disease_sponsors"
|
|
1115
|
+
end
|
|
1116
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1117
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_sponsors, must be smaller than or equal to 500.'
|
|
1118
|
+
end
|
|
1119
|
+
|
|
1120
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1121
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_sponsors, must be greater than or equal to 1.'
|
|
1122
|
+
end
|
|
1123
|
+
|
|
1124
|
+
# resource path
|
|
1125
|
+
local_var_path = '/api/v1/rare_diseases/{id}/rare_disease_sponsors'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1126
|
+
|
|
1127
|
+
# query parameters
|
|
1128
|
+
query_params = opts[:query_params] || {}
|
|
1129
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1130
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1131
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1132
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1133
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1134
|
+
|
|
1135
|
+
# header parameters
|
|
1136
|
+
header_params = opts[:header_params] || {}
|
|
1137
|
+
# HTTP header 'Accept' (if needed)
|
|
1138
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1139
|
+
|
|
1140
|
+
# form parameters
|
|
1141
|
+
form_params = opts[:form_params] || {}
|
|
1142
|
+
|
|
1143
|
+
# http body (model)
|
|
1144
|
+
post_body = opts[:debug_body]
|
|
1145
|
+
|
|
1146
|
+
# return_type
|
|
1147
|
+
return_type = opts[:debug_return_type] || 'RareDiseaseSponsorsResponse'
|
|
1148
|
+
|
|
1149
|
+
# auth_names
|
|
1150
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1151
|
+
|
|
1152
|
+
new_options = opts.merge(
|
|
1153
|
+
:operation => :"RareDiseasesApi.rare_diseases_rare_disease_sponsors",
|
|
1154
|
+
:header_params => header_params,
|
|
1155
|
+
:query_params => query_params,
|
|
1156
|
+
:form_params => form_params,
|
|
1157
|
+
:body => post_body,
|
|
1158
|
+
:auth_names => auth_names,
|
|
1159
|
+
:return_type => return_type
|
|
1160
|
+
)
|
|
1161
|
+
|
|
1162
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1163
|
+
if @api_client.config.debugging
|
|
1164
|
+
@api_client.config.logger.debug "API called: RareDiseasesApi#rare_diseases_rare_disease_sponsors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1165
|
+
end
|
|
1166
|
+
return data, status_code, headers
|
|
1167
|
+
end
|
|
1168
|
+
|
|
1169
|
+
# Rare disease trial coverage
|
|
1170
|
+
# @param id [Integer]
|
|
1171
|
+
# @param [Hash] opts the optional parameters
|
|
1172
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1173
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1174
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1175
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1176
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1177
|
+
# @return [RareDiseaseTrialCoverageResponse]
|
|
1178
|
+
def rare_diseases_rare_disease_trial_coverage(id, opts = {})
|
|
1179
|
+
data, _status_code, _headers = rare_diseases_rare_disease_trial_coverage_with_http_info(id, opts)
|
|
1180
|
+
data
|
|
1181
|
+
end
|
|
1182
|
+
|
|
1183
|
+
# Rare disease trial coverage
|
|
1184
|
+
# @param id [Integer]
|
|
1185
|
+
# @param [Hash] opts the optional parameters
|
|
1186
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1187
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1188
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1189
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1190
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1191
|
+
# @return [Array<(RareDiseaseTrialCoverageResponse, Integer, Hash)>] RareDiseaseTrialCoverageResponse data, response status code and response headers
|
|
1192
|
+
def rare_diseases_rare_disease_trial_coverage_with_http_info(id, opts = {})
|
|
1193
|
+
if @api_client.config.debugging
|
|
1194
|
+
@api_client.config.logger.debug 'Calling API: RareDiseasesApi.rare_diseases_rare_disease_trial_coverage ...'
|
|
1195
|
+
end
|
|
1196
|
+
# verify the required parameter 'id' is set
|
|
1197
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1198
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling RareDiseasesApi.rare_diseases_rare_disease_trial_coverage"
|
|
1199
|
+
end
|
|
1200
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1201
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_trial_coverage, must be smaller than or equal to 500.'
|
|
1202
|
+
end
|
|
1203
|
+
|
|
1204
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1205
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_trial_coverage, must be greater than or equal to 1.'
|
|
1206
|
+
end
|
|
1207
|
+
|
|
1208
|
+
# resource path
|
|
1209
|
+
local_var_path = '/api/v1/rare_diseases/{id}/rare_disease_trial_coverage'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1210
|
+
|
|
1211
|
+
# query parameters
|
|
1212
|
+
query_params = opts[:query_params] || {}
|
|
1213
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1214
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1215
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1216
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1217
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1218
|
+
|
|
1219
|
+
# header parameters
|
|
1220
|
+
header_params = opts[:header_params] || {}
|
|
1221
|
+
# HTTP header 'Accept' (if needed)
|
|
1222
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1223
|
+
|
|
1224
|
+
# form parameters
|
|
1225
|
+
form_params = opts[:form_params] || {}
|
|
1226
|
+
|
|
1227
|
+
# http body (model)
|
|
1228
|
+
post_body = opts[:debug_body]
|
|
1229
|
+
|
|
1230
|
+
# return_type
|
|
1231
|
+
return_type = opts[:debug_return_type] || 'RareDiseaseTrialCoverageResponse'
|
|
1232
|
+
|
|
1233
|
+
# auth_names
|
|
1234
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1235
|
+
|
|
1236
|
+
new_options = opts.merge(
|
|
1237
|
+
:operation => :"RareDiseasesApi.rare_diseases_rare_disease_trial_coverage",
|
|
1238
|
+
:header_params => header_params,
|
|
1239
|
+
:query_params => query_params,
|
|
1240
|
+
:form_params => form_params,
|
|
1241
|
+
:body => post_body,
|
|
1242
|
+
:auth_names => auth_names,
|
|
1243
|
+
:return_type => return_type
|
|
1244
|
+
)
|
|
1245
|
+
|
|
1246
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1247
|
+
if @api_client.config.debugging
|
|
1248
|
+
@api_client.config.logger.debug "API called: RareDiseasesApi#rare_diseases_rare_disease_trial_coverage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1249
|
+
end
|
|
1250
|
+
return data, status_code, headers
|
|
1251
|
+
end
|
|
1252
|
+
|
|
1253
|
+
# Rare disease trial sites
|
|
1254
|
+
# @param id [Integer]
|
|
1255
|
+
# @param [Hash] opts the optional parameters
|
|
1256
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1257
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1258
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1259
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1260
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1261
|
+
# @return [RareDiseaseTrialSitesResponse]
|
|
1262
|
+
def rare_diseases_rare_disease_trial_sites(id, opts = {})
|
|
1263
|
+
data, _status_code, _headers = rare_diseases_rare_disease_trial_sites_with_http_info(id, opts)
|
|
1264
|
+
data
|
|
1265
|
+
end
|
|
1266
|
+
|
|
1267
|
+
# Rare disease trial sites
|
|
1268
|
+
# @param id [Integer]
|
|
1269
|
+
# @param [Hash] opts the optional parameters
|
|
1270
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1271
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1272
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1273
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1274
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1275
|
+
# @return [Array<(RareDiseaseTrialSitesResponse, Integer, Hash)>] RareDiseaseTrialSitesResponse data, response status code and response headers
|
|
1276
|
+
def rare_diseases_rare_disease_trial_sites_with_http_info(id, opts = {})
|
|
1277
|
+
if @api_client.config.debugging
|
|
1278
|
+
@api_client.config.logger.debug 'Calling API: RareDiseasesApi.rare_diseases_rare_disease_trial_sites ...'
|
|
1279
|
+
end
|
|
1280
|
+
# verify the required parameter 'id' is set
|
|
1281
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1282
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling RareDiseasesApi.rare_diseases_rare_disease_trial_sites"
|
|
1283
|
+
end
|
|
1284
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1285
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_trial_sites, must be smaller than or equal to 500.'
|
|
1286
|
+
end
|
|
1287
|
+
|
|
1288
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1289
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_trial_sites, must be greater than or equal to 1.'
|
|
1290
|
+
end
|
|
1291
|
+
|
|
1292
|
+
# resource path
|
|
1293
|
+
local_var_path = '/api/v1/rare_diseases/{id}/rare_disease_trial_sites'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1294
|
+
|
|
1295
|
+
# query parameters
|
|
1296
|
+
query_params = opts[:query_params] || {}
|
|
1297
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1298
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1299
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1300
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1301
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1302
|
+
|
|
1303
|
+
# header parameters
|
|
1304
|
+
header_params = opts[:header_params] || {}
|
|
1305
|
+
# HTTP header 'Accept' (if needed)
|
|
1306
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1307
|
+
|
|
1308
|
+
# form parameters
|
|
1309
|
+
form_params = opts[:form_params] || {}
|
|
1310
|
+
|
|
1311
|
+
# http body (model)
|
|
1312
|
+
post_body = opts[:debug_body]
|
|
1313
|
+
|
|
1314
|
+
# return_type
|
|
1315
|
+
return_type = opts[:debug_return_type] || 'RareDiseaseTrialSitesResponse'
|
|
1316
|
+
|
|
1317
|
+
# auth_names
|
|
1318
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1319
|
+
|
|
1320
|
+
new_options = opts.merge(
|
|
1321
|
+
:operation => :"RareDiseasesApi.rare_diseases_rare_disease_trial_sites",
|
|
1322
|
+
:header_params => header_params,
|
|
1323
|
+
:query_params => query_params,
|
|
1324
|
+
:form_params => form_params,
|
|
1325
|
+
:body => post_body,
|
|
1326
|
+
:auth_names => auth_names,
|
|
1327
|
+
:return_type => return_type
|
|
1328
|
+
)
|
|
1329
|
+
|
|
1330
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1331
|
+
if @api_client.config.debugging
|
|
1332
|
+
@api_client.config.logger.debug "API called: RareDiseasesApi#rare_diseases_rare_disease_trial_sites\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1333
|
+
end
|
|
1334
|
+
return data, status_code, headers
|
|
1335
|
+
end
|
|
1336
|
+
|
|
1337
|
+
# Rare disease trials
|
|
1338
|
+
# @param id [Integer]
|
|
1339
|
+
# @param [Hash] opts the optional parameters
|
|
1340
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1341
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1342
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1343
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1344
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1345
|
+
# @return [RareDiseaseTrialsResponse]
|
|
1346
|
+
def rare_diseases_rare_disease_trials(id, opts = {})
|
|
1347
|
+
data, _status_code, _headers = rare_diseases_rare_disease_trials_with_http_info(id, opts)
|
|
1348
|
+
data
|
|
1349
|
+
end
|
|
1350
|
+
|
|
1351
|
+
# Rare disease trials
|
|
1352
|
+
# @param id [Integer]
|
|
1353
|
+
# @param [Hash] opts the optional parameters
|
|
1354
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1355
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1356
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1357
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1358
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1359
|
+
# @return [Array<(RareDiseaseTrialsResponse, Integer, Hash)>] RareDiseaseTrialsResponse data, response status code and response headers
|
|
1360
|
+
def rare_diseases_rare_disease_trials_with_http_info(id, opts = {})
|
|
1361
|
+
if @api_client.config.debugging
|
|
1362
|
+
@api_client.config.logger.debug 'Calling API: RareDiseasesApi.rare_diseases_rare_disease_trials ...'
|
|
1363
|
+
end
|
|
1364
|
+
# verify the required parameter 'id' is set
|
|
1365
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1366
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling RareDiseasesApi.rare_diseases_rare_disease_trials"
|
|
1367
|
+
end
|
|
1368
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1369
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_trials, must be smaller than or equal to 500.'
|
|
1370
|
+
end
|
|
1371
|
+
|
|
1372
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1373
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RareDiseasesApi.rare_diseases_rare_disease_trials, must be greater than or equal to 1.'
|
|
1374
|
+
end
|
|
1375
|
+
|
|
1376
|
+
# resource path
|
|
1377
|
+
local_var_path = '/api/v1/rare_diseases/{id}/rare_disease_trials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1378
|
+
|
|
1379
|
+
# query parameters
|
|
1380
|
+
query_params = opts[:query_params] || {}
|
|
1381
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1382
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1383
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1384
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1385
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1386
|
+
|
|
1387
|
+
# header parameters
|
|
1388
|
+
header_params = opts[:header_params] || {}
|
|
1389
|
+
# HTTP header 'Accept' (if needed)
|
|
1390
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1391
|
+
|
|
1392
|
+
# form parameters
|
|
1393
|
+
form_params = opts[:form_params] || {}
|
|
1394
|
+
|
|
1395
|
+
# http body (model)
|
|
1396
|
+
post_body = opts[:debug_body]
|
|
1397
|
+
|
|
1398
|
+
# return_type
|
|
1399
|
+
return_type = opts[:debug_return_type] || 'RareDiseaseTrialsResponse'
|
|
1400
|
+
|
|
1401
|
+
# auth_names
|
|
1402
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1403
|
+
|
|
1404
|
+
new_options = opts.merge(
|
|
1405
|
+
:operation => :"RareDiseasesApi.rare_diseases_rare_disease_trials",
|
|
1406
|
+
:header_params => header_params,
|
|
1407
|
+
:query_params => query_params,
|
|
1408
|
+
:form_params => form_params,
|
|
1409
|
+
:body => post_body,
|
|
1410
|
+
:auth_names => auth_names,
|
|
1411
|
+
:return_type => return_type
|
|
1412
|
+
)
|
|
1413
|
+
|
|
1414
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1415
|
+
if @api_client.config.debugging
|
|
1416
|
+
@api_client.config.logger.debug "API called: RareDiseasesApi#rare_diseases_rare_disease_trials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1417
|
+
end
|
|
1418
|
+
return data, status_code, headers
|
|
1419
|
+
end
|
|
1420
|
+
end
|
|
1421
|
+
end
|