lib/openactive/models/schema/drug.rb in openactive-0.3.0 vs lib/openactive/models/schema/drug.rb in openactive-0.4.0
- old
+ new
@@ -1,61 +1,88 @@
module OpenActive
module Models
module Schema
- class Drug < ::OpenActive::Models::Schema::Substance
+ class Drug < ::OpenActive::Models::Schema::Product
# @!attribute type
# @return [String]
def type
"schema:Drug"
end
- # @return [OpenActive::Models::Schema::DrugPregnancyCategory,URI]
- define_property :pregnancy_category, as: "pregnancyCategory", types: [
- "OpenActive::Models::Schema::DrugPregnancyCategory",
+ # @return [String]
+ define_property :clinical_pharmacology, as: "clinicalPharmacology", types: [
+ "string",
+ ]
+
+ # @return [OpenActive::Models::Schema::DoseSchedule,URI]
+ define_property :dose_schedule, as: "doseSchedule", types: [
+ "OpenActive::Models::Schema::DoseSchedule",
"URI",
]
# @return [String]
- define_property :overdosage, as: "overdosage", types: [
+ define_property :active_ingredient, as: "activeIngredient", types: [
"string",
]
- # @return [OpenActive::Models::Schema::DrugLegalStatus,String,OpenActive::Enums::Schema::MedicalEnumeration,URI,nil]
- define_property :legal_status, as: "legalStatus", types: [
- "OpenActive::Models::Schema::DrugLegalStatus",
- "string",
- "OpenActive::Enums::Schema::MedicalEnumeration",
+ # @return [OpenActive::Models::Schema::Drug,URI]
+ define_property :interacting_drug, as: "interactingDrug", types: [
+ "OpenActive::Models::Schema::Drug",
"URI",
- "null",
]
# @return [String]
- define_property :mechanism_of_action, as: "mechanismOfAction", types: [
+ define_property :overdosage, as: "overdosage", types: [
"string",
]
+ # @return [OpenActive::Models::Schema::DrugStrength,URI]
+ define_property :available_strength, as: "availableStrength", types: [
+ "OpenActive::Models::Schema::DrugStrength",
+ "URI",
+ ]
+
+ # @return [OpenActive::Models::Schema::DrugPrescriptionStatus,String,URI]
+ define_property :prescription_status, as: "prescriptionStatus", types: [
+ "OpenActive::Models::Schema::DrugPrescriptionStatus",
+ "string",
+ "URI",
+ ]
+
# @return [String]
- define_property :clinical_pharmacology, as: "clinicalPharmacology", types: [
+ define_property :administration_route, as: "administrationRoute", types: [
"string",
]
# @return [String]
- define_property :rxcui, as: "rxcui", types: [
+ define_property :alcohol_warning, as: "alcoholWarning", types: [
"string",
]
- # @return [OpenActive::Models::Schema::Drug,URI]
- define_property :interacting_drug, as: "interactingDrug", types: [
- "OpenActive::Models::Schema::Drug",
+ # @return [OpenActive::Models::Schema::DrugClass,URI]
+ define_property :drug_class, as: "drugClass", types: [
+ "OpenActive::Models::Schema::DrugClass",
"URI",
]
+ # @return [OpenActive::Models::Schema::DrugPregnancyCategory,URI]
+ define_property :pregnancy_category, as: "pregnancyCategory", types: [
+ "OpenActive::Models::Schema::DrugPregnancyCategory",
+ "URI",
+ ]
+
# @return [String]
- define_property :dosage_form, as: "dosageForm", types: [
+ define_property :mechanism_of_action, as: "mechanismOfAction", types: [
"string",
]
+ # @return [Boolean,nil]
+ define_property :is_proprietary, as: "isProprietary", types: [
+ "bool",
+ "null",
+ ]
+
# @return [URI]
define_property :label_details, as: "labelDetails", types: [
"URI",
]
@@ -63,123 +90,90 @@
define_property :maximum_intake, as: "maximumIntake", types: [
"OpenActive::Models::Schema::MaximumDoseSchedule",
"URI",
]
+ # @return [URI,String]
+ define_property :warning, as: "warning", types: [
+ "URI",
+ "string",
+ ]
+
# @return [String]
- define_property :active_ingredient, as: "activeIngredient", types: [
+ define_property :drug_unit, as: "drugUnit", types: [
"string",
]
- # @return [OpenActive::Models::Schema::Drug,URI]
- define_property :related_drug, as: "relatedDrug", types: [
- "OpenActive::Models::Schema::Drug",
+ # @return [URI]
+ define_property :prescribing_info, as: "prescribingInfo", types: [
"URI",
]
# @return [String]
- define_property :administration_route, as: "administrationRoute", types: [
+ define_property :dosage_form, as: "dosageForm", types: [
"string",
]
# @return [String]
- define_property :drug_unit, as: "drugUnit", types: [
+ define_property :pregnancy_warning, as: "pregnancyWarning", types: [
"string",
]
# @return [String]
- define_property :food_warning, as: "foodWarning", types: [
+ define_property :non_proprietary_name, as: "nonProprietaryName", types: [
"string",
]
- # @return [URI,String]
- define_property :warning, as: "warning", types: [
- "URI",
+ # @return [String]
+ define_property :clincal_pharmacology, as: "clincalPharmacology", types: [
"string",
]
- # @return [OpenActive::Models::Schema::DrugPrescriptionStatus,String,URI]
- define_property :prescription_status, as: "prescriptionStatus", types: [
- "OpenActive::Models::Schema::DrugPrescriptionStatus",
- "string",
- "URI",
- ]
-
# @return [String]
define_property :proprietary_name, as: "proprietaryName", types: [
"string",
]
- # @return [OpenActive::Models::Schema::DrugClass,URI]
- define_property :drug_class, as: "drugClass", types: [
- "OpenActive::Models::Schema::DrugClass",
+ # @return [OpenActive::Models::Schema::Drug,URI]
+ define_property :related_drug, as: "relatedDrug", types: [
+ "OpenActive::Models::Schema::Drug",
"URI",
]
- # @return [URI]
- define_property :prescribing_info, as: "prescribingInfo", types: [
- "URI",
+ # @return [String]
+ define_property :food_warning, as: "foodWarning", types: [
+ "string",
]
- # @return [OpenActive::Models::Schema::HealthInsurancePlan,URI]
- define_property :included_in_health_insurance_plan, as: "includedInHealthInsurancePlan", types: [
- "OpenActive::Models::Schema::HealthInsurancePlan",
+ # @return [OpenActive::Models::Schema::DrugLegalStatus,OpenActive::Enums::Schema::MedicalEnumeration,String,URI,nil]
+ define_property :legal_status, as: "legalStatus", types: [
+ "OpenActive::Models::Schema::DrugLegalStatus",
+ "OpenActive::Enums::Schema::MedicalEnumeration",
+ "string",
"URI",
+ "null",
]
# @return [String]
- define_property :non_proprietary_name, as: "nonProprietaryName", types: [
+ define_property :rxcui, as: "rxcui", types: [
"string",
]
- # @return [OpenActive::Models::Schema::Organization,URI]
- define_property :manufacturer, as: "manufacturer", types: [
- "OpenActive::Models::Schema::Organization",
+ # @return [OpenActive::Models::Schema::HealthInsurancePlan,URI]
+ define_property :included_in_health_insurance_plan, as: "includedInHealthInsurancePlan", types: [
+ "OpenActive::Models::Schema::HealthInsurancePlan",
"URI",
]
# @return [Boolean,nil]
- define_property :is_proprietary, as: "isProprietary", types: [
- "bool",
- "null",
- ]
-
- # @return [String]
- define_property :clincal_pharmacology, as: "clincalPharmacology", types: [
- "string",
- ]
-
- # @return [Boolean,nil]
define_property :is_available_generically, as: "isAvailableGenerically", types: [
"bool",
"null",
]
# @return [String]
define_property :breastfeeding_warning, as: "breastfeedingWarning", types: [
"string",
- ]
-
- # @return [String]
- define_property :pregnancy_warning, as: "pregnancyWarning", types: [
- "string",
- ]
-
- # @return [String]
- define_property :alcohol_warning, as: "alcoholWarning", types: [
- "string",
- ]
-
- # @return [OpenActive::Models::Schema::DoseSchedule,URI]
- define_property :dose_schedule, as: "doseSchedule", types: [
- "OpenActive::Models::Schema::DoseSchedule",
- "URI",
- ]
-
- # @return [OpenActive::Models::Schema::DrugStrength,URI]
- define_property :available_strength, as: "availableStrength", types: [
- "OpenActive::Models::Schema::DrugStrength",
- "URI",
]
end
end
end
end