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