pharmaobservatory 0.1.6 → 0.1.7
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 +269 -4
- 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 +1675 -117
- data/docs/CompaniesRecordAttributes.md +3 -1
- data/docs/CompanyFundingEventsRow.md +2 -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 +152 -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 +1379 -179
- data/docs/LegalEntitiesRecordAttributes.md +2 -0
- data/docs/OrgRelationshipsRow.md +1 -1
- data/docs/OwnershipPercentagesResponse.md +58 -0
- data/docs/OwnershipPercentagesRow.md +74 -0
- data/docs/PdufaDatesRow.md +1 -1
- data/docs/ProgramLicensingCandidatesResponse.md +58 -0
- data/docs/ProgramLicensingCandidatesRow.md +58 -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/RwdCoverageResponse.md +58 -0
- data/docs/RwdCoverageRow.md +52 -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 +473 -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/SecPdufaDatesResponse.md +58 -0
- data/docs/SecPdufaDatesRow.md +64 -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/companies_api.rb +1936 -207
- 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 +1442 -182
- data/lib/pharmaobservatory/api/rare_diseases_api.rb +1421 -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 +497 -0
- data/lib/pharmaobservatory/api/trials_api.rb +84 -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_funding_events_row.rb +12 -1
- 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 +968 -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 +10 -1
- 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/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 +445 -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_coverage_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_coverage_row.rb +410 -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/sec_pdufa_dates_response.rb +478 -0
- data/lib/pharmaobservatory/models/sec_pdufa_dates_row.rb +476 -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 +164 -0
- metadata +330 -2
|
@@ -0,0 +1,968 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pharma Observatory Public REST API
|
|
3
|
+
|
|
4
|
+
#Read-only REST API over the Pharma Observatory biomedical data platform. Reference: https://pharmaobservatory.com/api-reference
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.13.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module PharmaObservatory
|
|
17
|
+
# One row of the gxp_facilities dataset: one row per canonical facility. A grouped request returns the group columns and the measures instead, as additional properties.
|
|
18
|
+
class GxpFacilitiesRow
|
|
19
|
+
# The canonical facility id.
|
|
20
|
+
attr_accessor :facility_key
|
|
21
|
+
|
|
22
|
+
# The registry records the facility is made of, each as registry:native site id (for example fda_fei:3004123456), sorted.
|
|
23
|
+
attr_accessor :registry_facility_keys
|
|
24
|
+
|
|
25
|
+
# The facility's name.
|
|
26
|
+
attr_accessor :facility_name
|
|
27
|
+
|
|
28
|
+
# How many registry records are clustered into the facility.
|
|
29
|
+
attr_accessor :member_count
|
|
30
|
+
|
|
31
|
+
# The street address.
|
|
32
|
+
attr_accessor :address_line
|
|
33
|
+
|
|
34
|
+
# The city.
|
|
35
|
+
attr_accessor :city
|
|
36
|
+
|
|
37
|
+
# The state or region.
|
|
38
|
+
attr_accessor :state_region
|
|
39
|
+
|
|
40
|
+
# The postal code.
|
|
41
|
+
attr_accessor :postal
|
|
42
|
+
|
|
43
|
+
# The two-letter country code.
|
|
44
|
+
attr_accessor :country
|
|
45
|
+
|
|
46
|
+
# Latitude in degrees (WGS84), for the map tool.
|
|
47
|
+
attr_accessor :latitude
|
|
48
|
+
|
|
49
|
+
# Longitude in degrees (WGS84), for the map tool.
|
|
50
|
+
attr_accessor :longitude
|
|
51
|
+
|
|
52
|
+
# What a pin locates: for example a street address, a postal code or only a city.
|
|
53
|
+
attr_accessor :geocode_precision
|
|
54
|
+
|
|
55
|
+
# Where the coordinates came from: geonames (GeoNames) or als (Amazon Location Service); it names the attribution to show.
|
|
56
|
+
attr_accessor :coord_source
|
|
57
|
+
|
|
58
|
+
# The operating firm's name where the facility resolved to an organization; the facility name where it did not.
|
|
59
|
+
attr_accessor :firm_name
|
|
60
|
+
|
|
61
|
+
# Legal-entity level: the organization record the firm resolved to (null when the firm did not resolve).
|
|
62
|
+
attr_accessor :firm_org_id
|
|
63
|
+
|
|
64
|
+
# Company level: the firm's company (null when unresolved); the entry key for the companies object type.
|
|
65
|
+
attr_accessor :firm_company_id
|
|
66
|
+
|
|
67
|
+
# Display name of the firm's company.
|
|
68
|
+
attr_accessor :firm_company_name
|
|
69
|
+
|
|
70
|
+
# Group level: the firm's current ultimate parent; a root's group is itself.
|
|
71
|
+
attr_accessor :firm_group_id
|
|
72
|
+
|
|
73
|
+
# Display name of the firm's group.
|
|
74
|
+
attr_accessor :firm_group_name
|
|
75
|
+
|
|
76
|
+
# True when the facility was attached to an operating organization. A false row is kept with null firm ids.
|
|
77
|
+
attr_accessor :is_org_resolved
|
|
78
|
+
|
|
79
|
+
# How the operating firm was attached: registry (the firm's own registry record), high, medium or low name-and-geography matches, or null.
|
|
80
|
+
attr_accessor :match_tier
|
|
81
|
+
|
|
82
|
+
# The regulatory domains of the facility's signals (drug, biologic, device, veterinary, food, cosmetic, tobacco).
|
|
83
|
+
attr_accessor :domains
|
|
84
|
+
|
|
85
|
+
# The domain with the most signals.
|
|
86
|
+
attr_accessor :primary_domain
|
|
87
|
+
|
|
88
|
+
# True when the registers say the site makes medicines (an FDA drug registration, or an EU or Canadian medicines register entry).
|
|
89
|
+
attr_accessor :is_drug_facility
|
|
90
|
+
|
|
91
|
+
# True when the registers say the site makes devices.
|
|
92
|
+
attr_accessor :is_device_facility
|
|
93
|
+
|
|
94
|
+
# The display bucket over the two flags: drug, device, drug_and_device or non_medicine.
|
|
95
|
+
attr_accessor :register_domain
|
|
96
|
+
|
|
97
|
+
# The registered-product rollup for a device facility: material, unresolved, low_signal or not_applicable.
|
|
98
|
+
attr_accessor :device_classification_status
|
|
99
|
+
|
|
100
|
+
# True when the facility's device products are all low-signal commodity classes.
|
|
101
|
+
attr_accessor :is_low_signal_device
|
|
102
|
+
|
|
103
|
+
# The regulators holding a registry record for the facility (fda, ema, health_canada), sorted.
|
|
104
|
+
attr_accessor :regulators
|
|
105
|
+
|
|
106
|
+
# How many regulators hold a registry record.
|
|
107
|
+
attr_accessor :n_regulators
|
|
108
|
+
|
|
109
|
+
# True when more than one regulator holds a record: the corroboration flag.
|
|
110
|
+
attr_accessor :is_multi_regulator
|
|
111
|
+
|
|
112
|
+
# The regulators holding an organization-level record for the operating firm (this carries the UK MHRA leg).
|
|
113
|
+
attr_accessor :org_regulators
|
|
114
|
+
|
|
115
|
+
# The in-force site-scope severity, 0 (no signal) to 4 (non-compliant).
|
|
116
|
+
attr_accessor :severity_rank
|
|
117
|
+
|
|
118
|
+
# The in-force site-scope severity: no_signal, clean, advisory, action or non_compliant.
|
|
119
|
+
attr_accessor :severity_level
|
|
120
|
+
|
|
121
|
+
# The regulator behind the severity: fda, ema, health_canada or mhra.
|
|
122
|
+
attr_accessor :severity_source
|
|
123
|
+
|
|
124
|
+
# The kind of signal behind the severity (for example an inspection classification).
|
|
125
|
+
attr_accessor :severity_signal_type
|
|
126
|
+
|
|
127
|
+
# The regulator's own verdict behind the severity (for example OAI).
|
|
128
|
+
attr_accessor :severity_raw_verdict
|
|
129
|
+
|
|
130
|
+
# The date of the signal behind the severity.
|
|
131
|
+
attr_accessor :severity_signal_date
|
|
132
|
+
|
|
133
|
+
# The highest site-scope severity the facility has ever had, 0 to 4.
|
|
134
|
+
attr_accessor :worst_severity_rank_ever
|
|
135
|
+
|
|
136
|
+
# The worst severity ever: no_signal, clean, advisory, action or non_compliant.
|
|
137
|
+
attr_accessor :worst_severity_level_ever
|
|
138
|
+
|
|
139
|
+
# True when the facility has any quality signal.
|
|
140
|
+
attr_accessor :has_quality_signal
|
|
141
|
+
|
|
142
|
+
# The date of the latest signal of any scope.
|
|
143
|
+
attr_accessor :latest_signal_date
|
|
144
|
+
|
|
145
|
+
# Signals of any scope, all time.
|
|
146
|
+
attr_accessor :n_signals_total
|
|
147
|
+
|
|
148
|
+
# Signals in the last 365 days of the build.
|
|
149
|
+
attr_accessor :n_signals_365d
|
|
150
|
+
|
|
151
|
+
# Inspections of the site by any regulator.
|
|
152
|
+
attr_accessor :n_inspections
|
|
153
|
+
|
|
154
|
+
# The date of the latest inspection by any regulator.
|
|
155
|
+
attr_accessor :latest_inspection_date
|
|
156
|
+
|
|
157
|
+
# FDA inspections of the site.
|
|
158
|
+
attr_accessor :n_fda_inspections
|
|
159
|
+
|
|
160
|
+
# The date of the latest FDA inspection.
|
|
161
|
+
attr_accessor :latest_fda_inspection_date
|
|
162
|
+
|
|
163
|
+
# The latest FDA inspection outcome (NAI, VAI or OAI).
|
|
164
|
+
attr_accessor :latest_inspection_classification
|
|
165
|
+
|
|
166
|
+
# FDA inspections classified NAI.
|
|
167
|
+
attr_accessor :n_inspections_nai
|
|
168
|
+
|
|
169
|
+
# FDA inspections classified VAI.
|
|
170
|
+
attr_accessor :n_inspections_vai
|
|
171
|
+
|
|
172
|
+
# FDA inspections classified OAI.
|
|
173
|
+
attr_accessor :n_inspections_oai
|
|
174
|
+
|
|
175
|
+
# FDA inspections that ended with a Form 483.
|
|
176
|
+
attr_accessor :n_483
|
|
177
|
+
|
|
178
|
+
# Health Canada inspections of the site.
|
|
179
|
+
attr_accessor :n_hc_inspections
|
|
180
|
+
|
|
181
|
+
# The date of the latest Health Canada inspection.
|
|
182
|
+
attr_accessor :latest_hc_inspection_date
|
|
183
|
+
|
|
184
|
+
# The latest Health Canada rating (for example compliant or non-compliant).
|
|
185
|
+
attr_accessor :latest_hc_inspection_rating
|
|
186
|
+
|
|
187
|
+
# Health Canada inspections rated non-compliant.
|
|
188
|
+
attr_accessor :n_hc_inspections_non_compliant
|
|
189
|
+
|
|
190
|
+
# FDA import refusals at the site.
|
|
191
|
+
attr_accessor :n_import_refusals
|
|
192
|
+
|
|
193
|
+
# The date of the latest import refusal.
|
|
194
|
+
attr_accessor :latest_import_refusal_date
|
|
195
|
+
|
|
196
|
+
# EU GMP certificates of the site.
|
|
197
|
+
attr_accessor :n_gmp_certificates
|
|
198
|
+
|
|
199
|
+
# The date of the latest EU GMP certificate.
|
|
200
|
+
attr_accessor :latest_gmp_certificate_date
|
|
201
|
+
|
|
202
|
+
# EU GMP non-compliance statements about the site.
|
|
203
|
+
attr_accessor :n_noncompliance_statements
|
|
204
|
+
|
|
205
|
+
# The date of the latest EU non-compliance statement.
|
|
206
|
+
attr_accessor :latest_noncompliance_statement_date
|
|
207
|
+
|
|
208
|
+
# Health Canada establishment licences of the site.
|
|
209
|
+
attr_accessor :n_licences
|
|
210
|
+
|
|
211
|
+
# The licence status (the strictest licence of the site).
|
|
212
|
+
attr_accessor :licence_status
|
|
213
|
+
|
|
214
|
+
# UK MHRA licence suspensions or revocations against the firm (repeated; does not add).
|
|
215
|
+
attr_accessor :org_n_licence_actions
|
|
216
|
+
|
|
217
|
+
# The date of the firm's latest licence action.
|
|
218
|
+
attr_accessor :org_latest_licence_action_date
|
|
219
|
+
|
|
220
|
+
# The build date the counts are as of.
|
|
221
|
+
attr_accessor :as_of
|
|
222
|
+
|
|
223
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
224
|
+
def self.attribute_map
|
|
225
|
+
{
|
|
226
|
+
:'facility_key' => :'facility_key',
|
|
227
|
+
:'registry_facility_keys' => :'registry_facility_keys',
|
|
228
|
+
:'facility_name' => :'facility_name',
|
|
229
|
+
:'member_count' => :'member_count',
|
|
230
|
+
:'address_line' => :'address_line',
|
|
231
|
+
:'city' => :'city',
|
|
232
|
+
:'state_region' => :'state_region',
|
|
233
|
+
:'postal' => :'postal',
|
|
234
|
+
:'country' => :'country',
|
|
235
|
+
:'latitude' => :'latitude',
|
|
236
|
+
:'longitude' => :'longitude',
|
|
237
|
+
:'geocode_precision' => :'geocode_precision',
|
|
238
|
+
:'coord_source' => :'coord_source',
|
|
239
|
+
:'firm_name' => :'firm_name',
|
|
240
|
+
:'firm_org_id' => :'firm_org_id',
|
|
241
|
+
:'firm_company_id' => :'firm_company_id',
|
|
242
|
+
:'firm_company_name' => :'firm_company_name',
|
|
243
|
+
:'firm_group_id' => :'firm_group_id',
|
|
244
|
+
:'firm_group_name' => :'firm_group_name',
|
|
245
|
+
:'is_org_resolved' => :'is_org_resolved',
|
|
246
|
+
:'match_tier' => :'match_tier',
|
|
247
|
+
:'domains' => :'domains',
|
|
248
|
+
:'primary_domain' => :'primary_domain',
|
|
249
|
+
:'is_drug_facility' => :'is_drug_facility',
|
|
250
|
+
:'is_device_facility' => :'is_device_facility',
|
|
251
|
+
:'register_domain' => :'register_domain',
|
|
252
|
+
:'device_classification_status' => :'device_classification_status',
|
|
253
|
+
:'is_low_signal_device' => :'is_low_signal_device',
|
|
254
|
+
:'regulators' => :'regulators',
|
|
255
|
+
:'n_regulators' => :'n_regulators',
|
|
256
|
+
:'is_multi_regulator' => :'is_multi_regulator',
|
|
257
|
+
:'org_regulators' => :'org_regulators',
|
|
258
|
+
:'severity_rank' => :'severity_rank',
|
|
259
|
+
:'severity_level' => :'severity_level',
|
|
260
|
+
:'severity_source' => :'severity_source',
|
|
261
|
+
:'severity_signal_type' => :'severity_signal_type',
|
|
262
|
+
:'severity_raw_verdict' => :'severity_raw_verdict',
|
|
263
|
+
:'severity_signal_date' => :'severity_signal_date',
|
|
264
|
+
:'worst_severity_rank_ever' => :'worst_severity_rank_ever',
|
|
265
|
+
:'worst_severity_level_ever' => :'worst_severity_level_ever',
|
|
266
|
+
:'has_quality_signal' => :'has_quality_signal',
|
|
267
|
+
:'latest_signal_date' => :'latest_signal_date',
|
|
268
|
+
:'n_signals_total' => :'n_signals_total',
|
|
269
|
+
:'n_signals_365d' => :'n_signals_365d',
|
|
270
|
+
:'n_inspections' => :'n_inspections',
|
|
271
|
+
:'latest_inspection_date' => :'latest_inspection_date',
|
|
272
|
+
:'n_fda_inspections' => :'n_fda_inspections',
|
|
273
|
+
:'latest_fda_inspection_date' => :'latest_fda_inspection_date',
|
|
274
|
+
:'latest_inspection_classification' => :'latest_inspection_classification',
|
|
275
|
+
:'n_inspections_nai' => :'n_inspections_nai',
|
|
276
|
+
:'n_inspections_vai' => :'n_inspections_vai',
|
|
277
|
+
:'n_inspections_oai' => :'n_inspections_oai',
|
|
278
|
+
:'n_483' => :'n_483',
|
|
279
|
+
:'n_hc_inspections' => :'n_hc_inspections',
|
|
280
|
+
:'latest_hc_inspection_date' => :'latest_hc_inspection_date',
|
|
281
|
+
:'latest_hc_inspection_rating' => :'latest_hc_inspection_rating',
|
|
282
|
+
:'n_hc_inspections_non_compliant' => :'n_hc_inspections_non_compliant',
|
|
283
|
+
:'n_import_refusals' => :'n_import_refusals',
|
|
284
|
+
:'latest_import_refusal_date' => :'latest_import_refusal_date',
|
|
285
|
+
:'n_gmp_certificates' => :'n_gmp_certificates',
|
|
286
|
+
:'latest_gmp_certificate_date' => :'latest_gmp_certificate_date',
|
|
287
|
+
:'n_noncompliance_statements' => :'n_noncompliance_statements',
|
|
288
|
+
:'latest_noncompliance_statement_date' => :'latest_noncompliance_statement_date',
|
|
289
|
+
:'n_licences' => :'n_licences',
|
|
290
|
+
:'licence_status' => :'licence_status',
|
|
291
|
+
:'org_n_licence_actions' => :'org_n_licence_actions',
|
|
292
|
+
:'org_latest_licence_action_date' => :'org_latest_licence_action_date',
|
|
293
|
+
:'as_of' => :'as_of'
|
|
294
|
+
}
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
# Returns attribute mapping this model knows about
|
|
298
|
+
def self.acceptable_attribute_map
|
|
299
|
+
attribute_map
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
# Returns all the JSON keys this model knows about
|
|
303
|
+
def self.acceptable_attributes
|
|
304
|
+
acceptable_attribute_map.values
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
# Attribute type mapping.
|
|
308
|
+
def self.openapi_types
|
|
309
|
+
{
|
|
310
|
+
:'facility_key' => :'String',
|
|
311
|
+
:'registry_facility_keys' => :'Array<String>',
|
|
312
|
+
:'facility_name' => :'String',
|
|
313
|
+
:'member_count' => :'Integer',
|
|
314
|
+
:'address_line' => :'String',
|
|
315
|
+
:'city' => :'String',
|
|
316
|
+
:'state_region' => :'String',
|
|
317
|
+
:'postal' => :'String',
|
|
318
|
+
:'country' => :'String',
|
|
319
|
+
:'latitude' => :'Float',
|
|
320
|
+
:'longitude' => :'Float',
|
|
321
|
+
:'geocode_precision' => :'String',
|
|
322
|
+
:'coord_source' => :'String',
|
|
323
|
+
:'firm_name' => :'String',
|
|
324
|
+
:'firm_org_id' => :'String',
|
|
325
|
+
:'firm_company_id' => :'String',
|
|
326
|
+
:'firm_company_name' => :'String',
|
|
327
|
+
:'firm_group_id' => :'String',
|
|
328
|
+
:'firm_group_name' => :'String',
|
|
329
|
+
:'is_org_resolved' => :'Boolean',
|
|
330
|
+
:'match_tier' => :'String',
|
|
331
|
+
:'domains' => :'Array<String>',
|
|
332
|
+
:'primary_domain' => :'String',
|
|
333
|
+
:'is_drug_facility' => :'Boolean',
|
|
334
|
+
:'is_device_facility' => :'Boolean',
|
|
335
|
+
:'register_domain' => :'String',
|
|
336
|
+
:'device_classification_status' => :'String',
|
|
337
|
+
:'is_low_signal_device' => :'Boolean',
|
|
338
|
+
:'regulators' => :'Array<String>',
|
|
339
|
+
:'n_regulators' => :'Integer',
|
|
340
|
+
:'is_multi_regulator' => :'Boolean',
|
|
341
|
+
:'org_regulators' => :'Array<String>',
|
|
342
|
+
:'severity_rank' => :'Integer',
|
|
343
|
+
:'severity_level' => :'String',
|
|
344
|
+
:'severity_source' => :'String',
|
|
345
|
+
:'severity_signal_type' => :'String',
|
|
346
|
+
:'severity_raw_verdict' => :'String',
|
|
347
|
+
:'severity_signal_date' => :'Date',
|
|
348
|
+
:'worst_severity_rank_ever' => :'Integer',
|
|
349
|
+
:'worst_severity_level_ever' => :'String',
|
|
350
|
+
:'has_quality_signal' => :'Boolean',
|
|
351
|
+
:'latest_signal_date' => :'Date',
|
|
352
|
+
:'n_signals_total' => :'Integer',
|
|
353
|
+
:'n_signals_365d' => :'Integer',
|
|
354
|
+
:'n_inspections' => :'Integer',
|
|
355
|
+
:'latest_inspection_date' => :'Date',
|
|
356
|
+
:'n_fda_inspections' => :'Integer',
|
|
357
|
+
:'latest_fda_inspection_date' => :'Date',
|
|
358
|
+
:'latest_inspection_classification' => :'String',
|
|
359
|
+
:'n_inspections_nai' => :'Integer',
|
|
360
|
+
:'n_inspections_vai' => :'Integer',
|
|
361
|
+
:'n_inspections_oai' => :'Integer',
|
|
362
|
+
:'n_483' => :'Integer',
|
|
363
|
+
:'n_hc_inspections' => :'Integer',
|
|
364
|
+
:'latest_hc_inspection_date' => :'Date',
|
|
365
|
+
:'latest_hc_inspection_rating' => :'String',
|
|
366
|
+
:'n_hc_inspections_non_compliant' => :'Integer',
|
|
367
|
+
:'n_import_refusals' => :'Integer',
|
|
368
|
+
:'latest_import_refusal_date' => :'Date',
|
|
369
|
+
:'n_gmp_certificates' => :'Integer',
|
|
370
|
+
:'latest_gmp_certificate_date' => :'Date',
|
|
371
|
+
:'n_noncompliance_statements' => :'Integer',
|
|
372
|
+
:'latest_noncompliance_statement_date' => :'Date',
|
|
373
|
+
:'n_licences' => :'Integer',
|
|
374
|
+
:'licence_status' => :'String',
|
|
375
|
+
:'org_n_licence_actions' => :'Integer',
|
|
376
|
+
:'org_latest_licence_action_date' => :'Date',
|
|
377
|
+
:'as_of' => :'Date'
|
|
378
|
+
}
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
# List of attributes with nullable: true
|
|
382
|
+
def self.openapi_nullable
|
|
383
|
+
Set.new([
|
|
384
|
+
:'facility_key',
|
|
385
|
+
:'registry_facility_keys',
|
|
386
|
+
:'facility_name',
|
|
387
|
+
:'member_count',
|
|
388
|
+
:'address_line',
|
|
389
|
+
:'city',
|
|
390
|
+
:'state_region',
|
|
391
|
+
:'postal',
|
|
392
|
+
:'country',
|
|
393
|
+
:'latitude',
|
|
394
|
+
:'longitude',
|
|
395
|
+
:'geocode_precision',
|
|
396
|
+
:'coord_source',
|
|
397
|
+
:'firm_name',
|
|
398
|
+
:'firm_org_id',
|
|
399
|
+
:'firm_company_id',
|
|
400
|
+
:'firm_company_name',
|
|
401
|
+
:'firm_group_id',
|
|
402
|
+
:'firm_group_name',
|
|
403
|
+
:'is_org_resolved',
|
|
404
|
+
:'match_tier',
|
|
405
|
+
:'domains',
|
|
406
|
+
:'primary_domain',
|
|
407
|
+
:'is_drug_facility',
|
|
408
|
+
:'is_device_facility',
|
|
409
|
+
:'register_domain',
|
|
410
|
+
:'device_classification_status',
|
|
411
|
+
:'is_low_signal_device',
|
|
412
|
+
:'regulators',
|
|
413
|
+
:'n_regulators',
|
|
414
|
+
:'is_multi_regulator',
|
|
415
|
+
:'org_regulators',
|
|
416
|
+
:'severity_rank',
|
|
417
|
+
:'severity_level',
|
|
418
|
+
:'severity_source',
|
|
419
|
+
:'severity_signal_type',
|
|
420
|
+
:'severity_raw_verdict',
|
|
421
|
+
:'severity_signal_date',
|
|
422
|
+
:'worst_severity_rank_ever',
|
|
423
|
+
:'worst_severity_level_ever',
|
|
424
|
+
:'has_quality_signal',
|
|
425
|
+
:'latest_signal_date',
|
|
426
|
+
:'n_signals_total',
|
|
427
|
+
:'n_signals_365d',
|
|
428
|
+
:'n_inspections',
|
|
429
|
+
:'latest_inspection_date',
|
|
430
|
+
:'n_fda_inspections',
|
|
431
|
+
:'latest_fda_inspection_date',
|
|
432
|
+
:'latest_inspection_classification',
|
|
433
|
+
:'n_inspections_nai',
|
|
434
|
+
:'n_inspections_vai',
|
|
435
|
+
:'n_inspections_oai',
|
|
436
|
+
:'n_483',
|
|
437
|
+
:'n_hc_inspections',
|
|
438
|
+
:'latest_hc_inspection_date',
|
|
439
|
+
:'latest_hc_inspection_rating',
|
|
440
|
+
:'n_hc_inspections_non_compliant',
|
|
441
|
+
:'n_import_refusals',
|
|
442
|
+
:'latest_import_refusal_date',
|
|
443
|
+
:'n_gmp_certificates',
|
|
444
|
+
:'latest_gmp_certificate_date',
|
|
445
|
+
:'n_noncompliance_statements',
|
|
446
|
+
:'latest_noncompliance_statement_date',
|
|
447
|
+
:'n_licences',
|
|
448
|
+
:'licence_status',
|
|
449
|
+
:'org_n_licence_actions',
|
|
450
|
+
:'org_latest_licence_action_date',
|
|
451
|
+
:'as_of'
|
|
452
|
+
])
|
|
453
|
+
end
|
|
454
|
+
|
|
455
|
+
# Initializes the object
|
|
456
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
457
|
+
def initialize(attributes = {})
|
|
458
|
+
if (!attributes.is_a?(Hash))
|
|
459
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PharmaObservatory::GxpFacilitiesRow` initialize method"
|
|
460
|
+
end
|
|
461
|
+
|
|
462
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
463
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
464
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
465
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
466
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PharmaObservatory::GxpFacilitiesRow`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
467
|
+
end
|
|
468
|
+
h[k.to_sym] = v
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
if attributes.key?(:'facility_key')
|
|
472
|
+
self.facility_key = attributes[:'facility_key']
|
|
473
|
+
end
|
|
474
|
+
|
|
475
|
+
if attributes.key?(:'registry_facility_keys')
|
|
476
|
+
if (value = attributes[:'registry_facility_keys']).is_a?(Array)
|
|
477
|
+
self.registry_facility_keys = value
|
|
478
|
+
end
|
|
479
|
+
end
|
|
480
|
+
|
|
481
|
+
if attributes.key?(:'facility_name')
|
|
482
|
+
self.facility_name = attributes[:'facility_name']
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
if attributes.key?(:'member_count')
|
|
486
|
+
self.member_count = attributes[:'member_count']
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
if attributes.key?(:'address_line')
|
|
490
|
+
self.address_line = attributes[:'address_line']
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
if attributes.key?(:'city')
|
|
494
|
+
self.city = attributes[:'city']
|
|
495
|
+
end
|
|
496
|
+
|
|
497
|
+
if attributes.key?(:'state_region')
|
|
498
|
+
self.state_region = attributes[:'state_region']
|
|
499
|
+
end
|
|
500
|
+
|
|
501
|
+
if attributes.key?(:'postal')
|
|
502
|
+
self.postal = attributes[:'postal']
|
|
503
|
+
end
|
|
504
|
+
|
|
505
|
+
if attributes.key?(:'country')
|
|
506
|
+
self.country = attributes[:'country']
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
if attributes.key?(:'latitude')
|
|
510
|
+
self.latitude = attributes[:'latitude']
|
|
511
|
+
end
|
|
512
|
+
|
|
513
|
+
if attributes.key?(:'longitude')
|
|
514
|
+
self.longitude = attributes[:'longitude']
|
|
515
|
+
end
|
|
516
|
+
|
|
517
|
+
if attributes.key?(:'geocode_precision')
|
|
518
|
+
self.geocode_precision = attributes[:'geocode_precision']
|
|
519
|
+
end
|
|
520
|
+
|
|
521
|
+
if attributes.key?(:'coord_source')
|
|
522
|
+
self.coord_source = attributes[:'coord_source']
|
|
523
|
+
end
|
|
524
|
+
|
|
525
|
+
if attributes.key?(:'firm_name')
|
|
526
|
+
self.firm_name = attributes[:'firm_name']
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
if attributes.key?(:'firm_org_id')
|
|
530
|
+
self.firm_org_id = attributes[:'firm_org_id']
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
if attributes.key?(:'firm_company_id')
|
|
534
|
+
self.firm_company_id = attributes[:'firm_company_id']
|
|
535
|
+
end
|
|
536
|
+
|
|
537
|
+
if attributes.key?(:'firm_company_name')
|
|
538
|
+
self.firm_company_name = attributes[:'firm_company_name']
|
|
539
|
+
end
|
|
540
|
+
|
|
541
|
+
if attributes.key?(:'firm_group_id')
|
|
542
|
+
self.firm_group_id = attributes[:'firm_group_id']
|
|
543
|
+
end
|
|
544
|
+
|
|
545
|
+
if attributes.key?(:'firm_group_name')
|
|
546
|
+
self.firm_group_name = attributes[:'firm_group_name']
|
|
547
|
+
end
|
|
548
|
+
|
|
549
|
+
if attributes.key?(:'is_org_resolved')
|
|
550
|
+
self.is_org_resolved = attributes[:'is_org_resolved']
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
if attributes.key?(:'match_tier')
|
|
554
|
+
self.match_tier = attributes[:'match_tier']
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
if attributes.key?(:'domains')
|
|
558
|
+
if (value = attributes[:'domains']).is_a?(Array)
|
|
559
|
+
self.domains = value
|
|
560
|
+
end
|
|
561
|
+
end
|
|
562
|
+
|
|
563
|
+
if attributes.key?(:'primary_domain')
|
|
564
|
+
self.primary_domain = attributes[:'primary_domain']
|
|
565
|
+
end
|
|
566
|
+
|
|
567
|
+
if attributes.key?(:'is_drug_facility')
|
|
568
|
+
self.is_drug_facility = attributes[:'is_drug_facility']
|
|
569
|
+
end
|
|
570
|
+
|
|
571
|
+
if attributes.key?(:'is_device_facility')
|
|
572
|
+
self.is_device_facility = attributes[:'is_device_facility']
|
|
573
|
+
end
|
|
574
|
+
|
|
575
|
+
if attributes.key?(:'register_domain')
|
|
576
|
+
self.register_domain = attributes[:'register_domain']
|
|
577
|
+
end
|
|
578
|
+
|
|
579
|
+
if attributes.key?(:'device_classification_status')
|
|
580
|
+
self.device_classification_status = attributes[:'device_classification_status']
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
if attributes.key?(:'is_low_signal_device')
|
|
584
|
+
self.is_low_signal_device = attributes[:'is_low_signal_device']
|
|
585
|
+
end
|
|
586
|
+
|
|
587
|
+
if attributes.key?(:'regulators')
|
|
588
|
+
if (value = attributes[:'regulators']).is_a?(Array)
|
|
589
|
+
self.regulators = value
|
|
590
|
+
end
|
|
591
|
+
end
|
|
592
|
+
|
|
593
|
+
if attributes.key?(:'n_regulators')
|
|
594
|
+
self.n_regulators = attributes[:'n_regulators']
|
|
595
|
+
end
|
|
596
|
+
|
|
597
|
+
if attributes.key?(:'is_multi_regulator')
|
|
598
|
+
self.is_multi_regulator = attributes[:'is_multi_regulator']
|
|
599
|
+
end
|
|
600
|
+
|
|
601
|
+
if attributes.key?(:'org_regulators')
|
|
602
|
+
if (value = attributes[:'org_regulators']).is_a?(Array)
|
|
603
|
+
self.org_regulators = value
|
|
604
|
+
end
|
|
605
|
+
end
|
|
606
|
+
|
|
607
|
+
if attributes.key?(:'severity_rank')
|
|
608
|
+
self.severity_rank = attributes[:'severity_rank']
|
|
609
|
+
end
|
|
610
|
+
|
|
611
|
+
if attributes.key?(:'severity_level')
|
|
612
|
+
self.severity_level = attributes[:'severity_level']
|
|
613
|
+
end
|
|
614
|
+
|
|
615
|
+
if attributes.key?(:'severity_source')
|
|
616
|
+
self.severity_source = attributes[:'severity_source']
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
if attributes.key?(:'severity_signal_type')
|
|
620
|
+
self.severity_signal_type = attributes[:'severity_signal_type']
|
|
621
|
+
end
|
|
622
|
+
|
|
623
|
+
if attributes.key?(:'severity_raw_verdict')
|
|
624
|
+
self.severity_raw_verdict = attributes[:'severity_raw_verdict']
|
|
625
|
+
end
|
|
626
|
+
|
|
627
|
+
if attributes.key?(:'severity_signal_date')
|
|
628
|
+
self.severity_signal_date = attributes[:'severity_signal_date']
|
|
629
|
+
end
|
|
630
|
+
|
|
631
|
+
if attributes.key?(:'worst_severity_rank_ever')
|
|
632
|
+
self.worst_severity_rank_ever = attributes[:'worst_severity_rank_ever']
|
|
633
|
+
end
|
|
634
|
+
|
|
635
|
+
if attributes.key?(:'worst_severity_level_ever')
|
|
636
|
+
self.worst_severity_level_ever = attributes[:'worst_severity_level_ever']
|
|
637
|
+
end
|
|
638
|
+
|
|
639
|
+
if attributes.key?(:'has_quality_signal')
|
|
640
|
+
self.has_quality_signal = attributes[:'has_quality_signal']
|
|
641
|
+
end
|
|
642
|
+
|
|
643
|
+
if attributes.key?(:'latest_signal_date')
|
|
644
|
+
self.latest_signal_date = attributes[:'latest_signal_date']
|
|
645
|
+
end
|
|
646
|
+
|
|
647
|
+
if attributes.key?(:'n_signals_total')
|
|
648
|
+
self.n_signals_total = attributes[:'n_signals_total']
|
|
649
|
+
end
|
|
650
|
+
|
|
651
|
+
if attributes.key?(:'n_signals_365d')
|
|
652
|
+
self.n_signals_365d = attributes[:'n_signals_365d']
|
|
653
|
+
end
|
|
654
|
+
|
|
655
|
+
if attributes.key?(:'n_inspections')
|
|
656
|
+
self.n_inspections = attributes[:'n_inspections']
|
|
657
|
+
end
|
|
658
|
+
|
|
659
|
+
if attributes.key?(:'latest_inspection_date')
|
|
660
|
+
self.latest_inspection_date = attributes[:'latest_inspection_date']
|
|
661
|
+
end
|
|
662
|
+
|
|
663
|
+
if attributes.key?(:'n_fda_inspections')
|
|
664
|
+
self.n_fda_inspections = attributes[:'n_fda_inspections']
|
|
665
|
+
end
|
|
666
|
+
|
|
667
|
+
if attributes.key?(:'latest_fda_inspection_date')
|
|
668
|
+
self.latest_fda_inspection_date = attributes[:'latest_fda_inspection_date']
|
|
669
|
+
end
|
|
670
|
+
|
|
671
|
+
if attributes.key?(:'latest_inspection_classification')
|
|
672
|
+
self.latest_inspection_classification = attributes[:'latest_inspection_classification']
|
|
673
|
+
end
|
|
674
|
+
|
|
675
|
+
if attributes.key?(:'n_inspections_nai')
|
|
676
|
+
self.n_inspections_nai = attributes[:'n_inspections_nai']
|
|
677
|
+
end
|
|
678
|
+
|
|
679
|
+
if attributes.key?(:'n_inspections_vai')
|
|
680
|
+
self.n_inspections_vai = attributes[:'n_inspections_vai']
|
|
681
|
+
end
|
|
682
|
+
|
|
683
|
+
if attributes.key?(:'n_inspections_oai')
|
|
684
|
+
self.n_inspections_oai = attributes[:'n_inspections_oai']
|
|
685
|
+
end
|
|
686
|
+
|
|
687
|
+
if attributes.key?(:'n_483')
|
|
688
|
+
self.n_483 = attributes[:'n_483']
|
|
689
|
+
end
|
|
690
|
+
|
|
691
|
+
if attributes.key?(:'n_hc_inspections')
|
|
692
|
+
self.n_hc_inspections = attributes[:'n_hc_inspections']
|
|
693
|
+
end
|
|
694
|
+
|
|
695
|
+
if attributes.key?(:'latest_hc_inspection_date')
|
|
696
|
+
self.latest_hc_inspection_date = attributes[:'latest_hc_inspection_date']
|
|
697
|
+
end
|
|
698
|
+
|
|
699
|
+
if attributes.key?(:'latest_hc_inspection_rating')
|
|
700
|
+
self.latest_hc_inspection_rating = attributes[:'latest_hc_inspection_rating']
|
|
701
|
+
end
|
|
702
|
+
|
|
703
|
+
if attributes.key?(:'n_hc_inspections_non_compliant')
|
|
704
|
+
self.n_hc_inspections_non_compliant = attributes[:'n_hc_inspections_non_compliant']
|
|
705
|
+
end
|
|
706
|
+
|
|
707
|
+
if attributes.key?(:'n_import_refusals')
|
|
708
|
+
self.n_import_refusals = attributes[:'n_import_refusals']
|
|
709
|
+
end
|
|
710
|
+
|
|
711
|
+
if attributes.key?(:'latest_import_refusal_date')
|
|
712
|
+
self.latest_import_refusal_date = attributes[:'latest_import_refusal_date']
|
|
713
|
+
end
|
|
714
|
+
|
|
715
|
+
if attributes.key?(:'n_gmp_certificates')
|
|
716
|
+
self.n_gmp_certificates = attributes[:'n_gmp_certificates']
|
|
717
|
+
end
|
|
718
|
+
|
|
719
|
+
if attributes.key?(:'latest_gmp_certificate_date')
|
|
720
|
+
self.latest_gmp_certificate_date = attributes[:'latest_gmp_certificate_date']
|
|
721
|
+
end
|
|
722
|
+
|
|
723
|
+
if attributes.key?(:'n_noncompliance_statements')
|
|
724
|
+
self.n_noncompliance_statements = attributes[:'n_noncompliance_statements']
|
|
725
|
+
end
|
|
726
|
+
|
|
727
|
+
if attributes.key?(:'latest_noncompliance_statement_date')
|
|
728
|
+
self.latest_noncompliance_statement_date = attributes[:'latest_noncompliance_statement_date']
|
|
729
|
+
end
|
|
730
|
+
|
|
731
|
+
if attributes.key?(:'n_licences')
|
|
732
|
+
self.n_licences = attributes[:'n_licences']
|
|
733
|
+
end
|
|
734
|
+
|
|
735
|
+
if attributes.key?(:'licence_status')
|
|
736
|
+
self.licence_status = attributes[:'licence_status']
|
|
737
|
+
end
|
|
738
|
+
|
|
739
|
+
if attributes.key?(:'org_n_licence_actions')
|
|
740
|
+
self.org_n_licence_actions = attributes[:'org_n_licence_actions']
|
|
741
|
+
end
|
|
742
|
+
|
|
743
|
+
if attributes.key?(:'org_latest_licence_action_date')
|
|
744
|
+
self.org_latest_licence_action_date = attributes[:'org_latest_licence_action_date']
|
|
745
|
+
end
|
|
746
|
+
|
|
747
|
+
if attributes.key?(:'as_of')
|
|
748
|
+
self.as_of = attributes[:'as_of']
|
|
749
|
+
end
|
|
750
|
+
end
|
|
751
|
+
|
|
752
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
753
|
+
# @return Array for valid properties with the reasons
|
|
754
|
+
def list_invalid_properties
|
|
755
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
756
|
+
invalid_properties = Array.new
|
|
757
|
+
invalid_properties
|
|
758
|
+
end
|
|
759
|
+
|
|
760
|
+
# Check to see if the all the properties in the model are valid
|
|
761
|
+
# @return true if the model is valid
|
|
762
|
+
def valid?
|
|
763
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
764
|
+
true
|
|
765
|
+
end
|
|
766
|
+
|
|
767
|
+
# Checks equality by comparing each attribute.
|
|
768
|
+
# @param [Object] Object to be compared
|
|
769
|
+
def ==(o)
|
|
770
|
+
return true if self.equal?(o)
|
|
771
|
+
self.class == o.class &&
|
|
772
|
+
facility_key == o.facility_key &&
|
|
773
|
+
registry_facility_keys == o.registry_facility_keys &&
|
|
774
|
+
facility_name == o.facility_name &&
|
|
775
|
+
member_count == o.member_count &&
|
|
776
|
+
address_line == o.address_line &&
|
|
777
|
+
city == o.city &&
|
|
778
|
+
state_region == o.state_region &&
|
|
779
|
+
postal == o.postal &&
|
|
780
|
+
country == o.country &&
|
|
781
|
+
latitude == o.latitude &&
|
|
782
|
+
longitude == o.longitude &&
|
|
783
|
+
geocode_precision == o.geocode_precision &&
|
|
784
|
+
coord_source == o.coord_source &&
|
|
785
|
+
firm_name == o.firm_name &&
|
|
786
|
+
firm_org_id == o.firm_org_id &&
|
|
787
|
+
firm_company_id == o.firm_company_id &&
|
|
788
|
+
firm_company_name == o.firm_company_name &&
|
|
789
|
+
firm_group_id == o.firm_group_id &&
|
|
790
|
+
firm_group_name == o.firm_group_name &&
|
|
791
|
+
is_org_resolved == o.is_org_resolved &&
|
|
792
|
+
match_tier == o.match_tier &&
|
|
793
|
+
domains == o.domains &&
|
|
794
|
+
primary_domain == o.primary_domain &&
|
|
795
|
+
is_drug_facility == o.is_drug_facility &&
|
|
796
|
+
is_device_facility == o.is_device_facility &&
|
|
797
|
+
register_domain == o.register_domain &&
|
|
798
|
+
device_classification_status == o.device_classification_status &&
|
|
799
|
+
is_low_signal_device == o.is_low_signal_device &&
|
|
800
|
+
regulators == o.regulators &&
|
|
801
|
+
n_regulators == o.n_regulators &&
|
|
802
|
+
is_multi_regulator == o.is_multi_regulator &&
|
|
803
|
+
org_regulators == o.org_regulators &&
|
|
804
|
+
severity_rank == o.severity_rank &&
|
|
805
|
+
severity_level == o.severity_level &&
|
|
806
|
+
severity_source == o.severity_source &&
|
|
807
|
+
severity_signal_type == o.severity_signal_type &&
|
|
808
|
+
severity_raw_verdict == o.severity_raw_verdict &&
|
|
809
|
+
severity_signal_date == o.severity_signal_date &&
|
|
810
|
+
worst_severity_rank_ever == o.worst_severity_rank_ever &&
|
|
811
|
+
worst_severity_level_ever == o.worst_severity_level_ever &&
|
|
812
|
+
has_quality_signal == o.has_quality_signal &&
|
|
813
|
+
latest_signal_date == o.latest_signal_date &&
|
|
814
|
+
n_signals_total == o.n_signals_total &&
|
|
815
|
+
n_signals_365d == o.n_signals_365d &&
|
|
816
|
+
n_inspections == o.n_inspections &&
|
|
817
|
+
latest_inspection_date == o.latest_inspection_date &&
|
|
818
|
+
n_fda_inspections == o.n_fda_inspections &&
|
|
819
|
+
latest_fda_inspection_date == o.latest_fda_inspection_date &&
|
|
820
|
+
latest_inspection_classification == o.latest_inspection_classification &&
|
|
821
|
+
n_inspections_nai == o.n_inspections_nai &&
|
|
822
|
+
n_inspections_vai == o.n_inspections_vai &&
|
|
823
|
+
n_inspections_oai == o.n_inspections_oai &&
|
|
824
|
+
n_483 == o.n_483 &&
|
|
825
|
+
n_hc_inspections == o.n_hc_inspections &&
|
|
826
|
+
latest_hc_inspection_date == o.latest_hc_inspection_date &&
|
|
827
|
+
latest_hc_inspection_rating == o.latest_hc_inspection_rating &&
|
|
828
|
+
n_hc_inspections_non_compliant == o.n_hc_inspections_non_compliant &&
|
|
829
|
+
n_import_refusals == o.n_import_refusals &&
|
|
830
|
+
latest_import_refusal_date == o.latest_import_refusal_date &&
|
|
831
|
+
n_gmp_certificates == o.n_gmp_certificates &&
|
|
832
|
+
latest_gmp_certificate_date == o.latest_gmp_certificate_date &&
|
|
833
|
+
n_noncompliance_statements == o.n_noncompliance_statements &&
|
|
834
|
+
latest_noncompliance_statement_date == o.latest_noncompliance_statement_date &&
|
|
835
|
+
n_licences == o.n_licences &&
|
|
836
|
+
licence_status == o.licence_status &&
|
|
837
|
+
org_n_licence_actions == o.org_n_licence_actions &&
|
|
838
|
+
org_latest_licence_action_date == o.org_latest_licence_action_date &&
|
|
839
|
+
as_of == o.as_of
|
|
840
|
+
end
|
|
841
|
+
|
|
842
|
+
# @see the `==` method
|
|
843
|
+
# @param [Object] Object to be compared
|
|
844
|
+
def eql?(o)
|
|
845
|
+
self == o
|
|
846
|
+
end
|
|
847
|
+
|
|
848
|
+
# Calculates hash code according to all attributes.
|
|
849
|
+
# @return [Integer] Hash code
|
|
850
|
+
def hash
|
|
851
|
+
[facility_key, registry_facility_keys, facility_name, member_count, address_line, city, state_region, postal, country, latitude, longitude, geocode_precision, coord_source, firm_name, firm_org_id, firm_company_id, firm_company_name, firm_group_id, firm_group_name, is_org_resolved, match_tier, domains, primary_domain, is_drug_facility, is_device_facility, register_domain, device_classification_status, is_low_signal_device, regulators, n_regulators, is_multi_regulator, org_regulators, severity_rank, severity_level, severity_source, severity_signal_type, severity_raw_verdict, severity_signal_date, worst_severity_rank_ever, worst_severity_level_ever, has_quality_signal, latest_signal_date, n_signals_total, n_signals_365d, n_inspections, latest_inspection_date, n_fda_inspections, latest_fda_inspection_date, latest_inspection_classification, n_inspections_nai, n_inspections_vai, n_inspections_oai, n_483, n_hc_inspections, latest_hc_inspection_date, latest_hc_inspection_rating, n_hc_inspections_non_compliant, n_import_refusals, latest_import_refusal_date, n_gmp_certificates, latest_gmp_certificate_date, n_noncompliance_statements, latest_noncompliance_statement_date, n_licences, licence_status, org_n_licence_actions, org_latest_licence_action_date, as_of].hash
|
|
852
|
+
end
|
|
853
|
+
|
|
854
|
+
# Builds the object from hash
|
|
855
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
856
|
+
# @return [Object] Returns the model itself
|
|
857
|
+
def self.build_from_hash(attributes)
|
|
858
|
+
return nil unless attributes.is_a?(Hash)
|
|
859
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
860
|
+
transformed_hash = {}
|
|
861
|
+
openapi_types.each_pair do |key, type|
|
|
862
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
863
|
+
transformed_hash["#{key}"] = nil
|
|
864
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
865
|
+
# check to ensure the input is an array given that the attribute
|
|
866
|
+
# is documented as an array but the input is not
|
|
867
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
868
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
869
|
+
end
|
|
870
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
871
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
872
|
+
end
|
|
873
|
+
end
|
|
874
|
+
new(transformed_hash)
|
|
875
|
+
end
|
|
876
|
+
|
|
877
|
+
# Deserializes the data based on type
|
|
878
|
+
# @param string type Data type
|
|
879
|
+
# @param string value Value to be deserialized
|
|
880
|
+
# @return [Object] Deserialized data
|
|
881
|
+
def self._deserialize(type, value)
|
|
882
|
+
case type.to_sym
|
|
883
|
+
when :Time
|
|
884
|
+
Time.parse(value)
|
|
885
|
+
when :Date
|
|
886
|
+
Date.parse(value)
|
|
887
|
+
when :String
|
|
888
|
+
value.to_s
|
|
889
|
+
when :Integer
|
|
890
|
+
value.to_i
|
|
891
|
+
when :Float
|
|
892
|
+
value.to_f
|
|
893
|
+
when :Boolean
|
|
894
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
895
|
+
true
|
|
896
|
+
else
|
|
897
|
+
false
|
|
898
|
+
end
|
|
899
|
+
when :Object
|
|
900
|
+
# generic object (usually a Hash), return directly
|
|
901
|
+
value
|
|
902
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
903
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
904
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
905
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
906
|
+
k_type = Regexp.last_match[:k_type]
|
|
907
|
+
v_type = Regexp.last_match[:v_type]
|
|
908
|
+
{}.tap do |hash|
|
|
909
|
+
value.each do |k, v|
|
|
910
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
911
|
+
end
|
|
912
|
+
end
|
|
913
|
+
else # model
|
|
914
|
+
# models (e.g. Pet) or oneOf
|
|
915
|
+
klass = PharmaObservatory.const_get(type)
|
|
916
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
917
|
+
end
|
|
918
|
+
end
|
|
919
|
+
|
|
920
|
+
# Returns the string representation of the object
|
|
921
|
+
# @return [String] String presentation of the object
|
|
922
|
+
def to_s
|
|
923
|
+
to_hash.to_s
|
|
924
|
+
end
|
|
925
|
+
|
|
926
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
927
|
+
# @return [Hash] Returns the object in the form of hash
|
|
928
|
+
def to_body
|
|
929
|
+
to_hash
|
|
930
|
+
end
|
|
931
|
+
|
|
932
|
+
# Returns the object in the form of hash
|
|
933
|
+
# @return [Hash] Returns the object in the form of hash
|
|
934
|
+
def to_hash
|
|
935
|
+
hash = {}
|
|
936
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
937
|
+
value = self.send(attr)
|
|
938
|
+
if value.nil?
|
|
939
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
940
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
941
|
+
end
|
|
942
|
+
|
|
943
|
+
hash[param] = _to_hash(value)
|
|
944
|
+
end
|
|
945
|
+
hash
|
|
946
|
+
end
|
|
947
|
+
|
|
948
|
+
# Outputs non-array value in the form of hash
|
|
949
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
950
|
+
# @param [Object] value Any valid value
|
|
951
|
+
# @return [Hash] Returns the value in the form of hash
|
|
952
|
+
def _to_hash(value)
|
|
953
|
+
if value.is_a?(Array)
|
|
954
|
+
value.compact.map { |v| _to_hash(v) }
|
|
955
|
+
elsif value.is_a?(Hash)
|
|
956
|
+
{}.tap do |hash|
|
|
957
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
958
|
+
end
|
|
959
|
+
elsif value.respond_to? :to_hash
|
|
960
|
+
value.to_hash
|
|
961
|
+
else
|
|
962
|
+
value
|
|
963
|
+
end
|
|
964
|
+
end
|
|
965
|
+
|
|
966
|
+
end
|
|
967
|
+
|
|
968
|
+
end
|