Module: SchemaOrg::Mixins::MedicalConditionStage

Includes:
MedicalIntangible
Included in:
SchemaOrg::MedicalConditionStage
Defined in:
lib/schema_org/mixins/medical_condition_stage.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from MedicalEntity

#code, #code=, #funding, #funding=, #guideline, #guideline=, #legal_status, #legal_status=, #medicine_system, #medicine_system=, #recognizing_authority, #recognizing_authority=, #relevant_specialty, #relevant_specialty=, #study, #study=

Methods included from Thing

#additional_type, #additional_type=, #alternate_name, #alternate_name=, #description, #description=, #disambiguating_description, #disambiguating_description=, #identifier, #identifier=, #image, #image=, #main_entity_of_page, #main_entity_of_page=, #name, #name=, #owner, #owner=, #potential_action, #potential_action=, #same_as, #same_as=, #subject_of, #subject_of=, #url, #url=

Class Method Details

.schema_property_definitionsObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/schema_org/mixins/medical_condition_stage.rb', line 11

def self.schema_property_definitions
  {
    stage_as_number: {
      schema_name: "stageAsNumber",
      schema_url: "https://schema.org/stageAsNumber",
      comment_lines: ["The stage represented as a number, e.g. 3."].freeze,
      ranges: ["Number"].freeze,
      external_ranges: [].freeze,
      inverse_of: nil,
      superseded_by: nil,
      supersedes: nil
    }.freeze,
    sub_stage_suffix: {
      schema_name: "subStageSuffix",
      schema_url: "https://schema.org/subStageSuffix",
      comment_lines: ["The substage, e.g. 'a' for Stage IIIa."].freeze,
      ranges: ["Text"].freeze,
      external_ranges: [].freeze,
      inverse_of: nil,
      superseded_by: nil,
      supersedes: nil
    }.freeze
  }.freeze
end

Instance Method Details

#stage_as_numberObject

The stage represented as a number, e.g. 3.



37
38
39
# File 'lib/schema_org/mixins/medical_condition_stage.rb', line 37

def stage_as_number
  read_property(:stage_as_number)
end

#stage_as_number=(value) ⇒ Object

The stage represented as a number, e.g. 3.



42
43
44
# File 'lib/schema_org/mixins/medical_condition_stage.rb', line 42

def stage_as_number=(value)
  write_property(:stage_as_number, value)
end

#sub_stage_suffixObject

The substage, e.g. 'a' for Stage IIIa.



47
48
49
# File 'lib/schema_org/mixins/medical_condition_stage.rb', line 47

def sub_stage_suffix
  read_property(:sub_stage_suffix)
end

#sub_stage_suffix=(value) ⇒ Object

The substage, e.g. 'a' for Stage IIIa.



52
53
54
# File 'lib/schema_org/mixins/medical_condition_stage.rb', line 52

def sub_stage_suffix=(value)
  write_property(:sub_stage_suffix, value)
end