Class: FHIR::R4B::PlanDefinition::Action

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_models/r4b/generated/resources/PlanDefinition.rb

Defined Under Namespace

Classes: Condition, DynamicValue, Participant, RelatedAction

Constant Summary collapse

MULTIPLE_TYPES =
{
  'subject' => ['CodeableConcept', 'Reference', 'canonical'],
  'timing' => ['dateTime', 'Age', 'Period', 'Duration', 'Range', 'Timing'],
  'definition' => ['canonical', 'uri']
}
METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Action.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Action.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Action.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'prefix' => {'type'=>'string', 'path'=>'Action.prefix', 'min'=>0, 'max'=>1},
  'title' => {'type'=>'string', 'path'=>'Action.title', 'min'=>0, 'max'=>1},
  'description' => {'type'=>'string', 'path'=>'Action.description', 'min'=>0, 'max'=>1},
  'textEquivalent' => {'type'=>'string', 'path'=>'Action.textEquivalent', 'min'=>0, 'max'=>1},
  'priority' => {'valid_codes'=>{'http://hl7.org/fhir/request-priority'=>['routine', 'urgent', 'asap', 'stat']}, 'type'=>'code', 'path'=>'Action.priority', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/request-priority'}},
  'code' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/action-code'=>['send-message', 'collect-information', 'prescribe-medication', 'recommend-immunization', 'order-service', 'propose-diagnosis', 'record-detected-issue', 'record-inference', 'report-flag']}, 'type'=>'CodeableConcept', 'path'=>'Action.code', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/action-code'}},
  'reason' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/action-reason-code'=>['off-pathway', 'risk-assessment', 'care-gap', 'drug-drug-interaction', 'quality-measure']}, 'type'=>'CodeableConcept', 'path'=>'Action.reason', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/action-reason-code'}},
  'documentation' => {'type'=>'RelatedArtifact', 'path'=>'Action.documentation', 'min'=>0, 'max'=>Float::INFINITY},
  'goalId' => {'type'=>'id', 'path'=>'Action.goalId', 'min'=>0, 'max'=>Float::INFINITY},
  'subjectCodeableConcept' => {'valid_codes'=>{'http://hl7.org/fhir/resource-types'=>['Patient', 'Practitioner', 'Organization', 'Location', 'Device']}, 'type'=>'CodeableConcept', 'path'=>'Action.subject[x]', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/subject-type'}},
  'subjectReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Group'], 'type'=>'Reference', 'path'=>'Action.subject[x]', 'min'=>0, 'max'=>1},
  'subjectCanonical' => {'type'=>'canonical', 'path'=>'Action.subject[x]', 'min'=>0, 'max'=>1},
  'trigger' => {'type'=>'TriggerDefinition', 'path'=>'Action.trigger', 'min'=>0, 'max'=>Float::INFINITY},
  'condition' => {'type'=>'PlanDefinition::Action::Condition', 'path'=>'Action.condition', 'min'=>0, 'max'=>Float::INFINITY},
  'input' => {'type'=>'DataRequirement', 'path'=>'Action.input', 'min'=>0, 'max'=>Float::INFINITY},
  'output' => {'type'=>'DataRequirement', 'path'=>'Action.output', 'min'=>0, 'max'=>Float::INFINITY},
  'relatedAction' => {'type'=>'PlanDefinition::Action::RelatedAction', 'path'=>'Action.relatedAction', 'min'=>0, 'max'=>Float::INFINITY},
  'timingDateTime' => {'type'=>'dateTime', 'path'=>'Action.timing[x]', 'min'=>0, 'max'=>1},
  'timingAge' => {'type'=>'Age', 'path'=>'Action.timing[x]', 'min'=>0, 'max'=>1},
  'timingPeriod' => {'type'=>'Period', 'path'=>'Action.timing[x]', 'min'=>0, 'max'=>1},
  'timingDuration' => {'type'=>'Duration', 'path'=>'Action.timing[x]', 'min'=>0, 'max'=>1},
  'timingRange' => {'type'=>'Range', 'path'=>'Action.timing[x]', 'min'=>0, 'max'=>1},
  'timingTiming' => {'type'=>'Timing', 'path'=>'Action.timing[x]', 'min'=>0, 'max'=>1},
  'participant' => {'type'=>'PlanDefinition::Action::Participant', 'path'=>'Action.participant', 'min'=>0, 'max'=>Float::INFINITY},
  'type' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/action-type'=>['create', 'update', 'remove', 'fire-event']}, 'type'=>'CodeableConcept', 'path'=>'Action.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/action-type'}},
  'groupingBehavior' => {'valid_codes'=>{'http://hl7.org/fhir/action-grouping-behavior'=>['visual-group', 'logical-group', 'sentence-group']}, 'type'=>'code', 'path'=>'Action.groupingBehavior', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/action-grouping-behavior'}},
  'selectionBehavior' => {'valid_codes'=>{'http://hl7.org/fhir/action-selection-behavior'=>['any', 'all', 'all-or-none', 'exactly-one', 'at-most-one', 'one-or-more']}, 'type'=>'code', 'path'=>'Action.selectionBehavior', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/action-selection-behavior'}},
  'requiredBehavior' => {'valid_codes'=>{'http://hl7.org/fhir/action-required-behavior'=>['must', 'could', 'must-unless-documented']}, 'type'=>'code', 'path'=>'Action.requiredBehavior', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/action-required-behavior'}},
  'precheckBehavior' => {'valid_codes'=>{'http://hl7.org/fhir/action-precheck-behavior'=>['yes', 'no']}, 'type'=>'code', 'path'=>'Action.precheckBehavior', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/action-precheck-behavior'}},
  'cardinalityBehavior' => {'valid_codes'=>{'http://hl7.org/fhir/action-cardinality-behavior'=>['single', 'multiple']}, 'type'=>'code', 'path'=>'Action.cardinalityBehavior', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/action-cardinality-behavior'}},
  'definitionCanonical' => {'type'=>'canonical', 'path'=>'Action.definition[x]', 'min'=>0, 'max'=>1},
  'definitionUri' => {'type'=>'uri', 'path'=>'Action.definition[x]', 'min'=>0, 'max'=>1},
  'transform' => {'type'=>'canonical', 'path'=>'Action.transform', 'min'=>0, 'max'=>1},
  'dynamicValue' => {'type'=>'PlanDefinition::Action::DynamicValue', 'path'=>'Action.dynamicValue', 'min'=>0, 'max'=>Float::INFINITY},
  'action' => {'type'=>'PlanDefinition::Action', 'path'=>'Action.action', 'min'=>0, 'max'=>Float::INFINITY}
}

Constants included from FHIR::R4

FHIR::R4::PRIMITIVES, FHIR::R4::RESOURCES, FHIR::R4::TYPES

Constants included from FHIR

Account, ActivityDefinition, Address, AdverseEvent, Age, AllergyIntolerance, Annotation, Appointment, AppointmentResponse, Attachment, AuditEvent, BackboneElement, Basic, Binary, BiologicallyDerivedProduct, BodyStructure, Bundle, CapabilityStatement, CarePlan, CareTeam, CatalogEntry, ChargeItem, ChargeItemDefinition, Claim, ClaimResponse, ClinicalImpression, CodeSystem, CodeableConcept, Coding, Communication, CommunicationRequest, CompartmentDefinition, Composition, ConceptMap, Condition, Consent, ContactDetail, ContactPoint, Contract, Contributor, Count, Coverage, CoverageEligibilityRequest, CoverageEligibilityResponse, DataRequirement, Definitions, DetectedIssue, Device, DeviceDefinition, DeviceMetric, DeviceRequest, DeviceUseStatement, DiagnosticReport, Distance, DocumentManifest, DocumentReference, DomainResource, Dosage, Duration, EffectEvidenceSynthesis, Element, ElementDefinition, Encounter, Endpoint, EnrollmentRequest, EnrollmentResponse, EpisodeOfCare, EventDefinition, Evidence, EvidenceVariable, ExampleScenario, ExplanationOfBenefit, Expression, Extension, FamilyMemberHistory, Flag, Goal, GraphDefinition, Group, GuidanceResponse, HealthcareService, HumanName, Identifier, ImagingStudy, Immunization, ImmunizationEvaluation, ImmunizationRecommendation, ImplementationGuide, InsurancePlan, Invoice, Library, Linkage, List, Location, MarketingStatus, Measure, MeasureReport, Media, Medication, MedicationAdministration, MedicationDispense, MedicationKnowledge, MedicationRequest, MedicationStatement, MedicinalProduct, MedicinalProductAuthorization, MedicinalProductContraindication, MedicinalProductIndication, MedicinalProductIngredient, MedicinalProductInteraction, MedicinalProductManufactured, MedicinalProductPackaged, MedicinalProductPharmaceutical, MedicinalProductUndesirableEffect, MessageDefinition, MessageHeader, Meta, MolecularSequence, Money, NamingSystem, Narrative, NutritionOrder, Observation, ObservationDefinition, OperationDefinition, OperationOutcome, Organization, OrganizationAffiliation, PRIMITIVES, ParameterDefinition, Parameters, Patient, PaymentNotice, PaymentReconciliation, Period, Person, PlanDefinition, Population, Practitioner, PractitionerRole, Procedure, ProdCharacteristic, ProductShelfLife, Provenance, Quantity, Questionnaire, QuestionnaireResponse, FHIR::RESOURCES, FHIR::Range, FHIR::Ratio, FHIR::Reference, FHIR::RelatedArtifact, FHIR::RelatedPerson, FHIR::RequestGroup, FHIR::ResearchDefinition, FHIR::ResearchElementDefinition, FHIR::ResearchStudy, FHIR::ResearchSubject, FHIR::Resource, FHIR::RiskAssessment, FHIR::RiskEvidenceSynthesis, SampledData, Schedule, SearchParameter, ServiceRequest, Signature, Slot, Specimen, SpecimenDefinition, StructureDefinition, StructureDefinitionCompare, StructureMap, Subscription, Substance, SubstanceAmount, SubstanceNucleicAcid, SubstancePolymer, SubstanceProtein, SubstanceReferenceInformation, SubstanceSourceMaterial, SubstanceSpecification, SupplyDelivery, SupplyRequest, TYPES, Task, TerminologyCapabilities, TestReport, TestScript, Timing, TriggerDefinition, UsageContext, ValueSet, VerificationResult, VisionPrescription

Constants included from FHIR::R4B

FHIR::R4B::PRIMITIVES, RESOURCES, TYPES

Instance Attribute Summary collapse

Method Summary

Methods included from FHIR::R4

#fhir_version_string, #versioned_fhir_module

Methods included from FHIR

default_logger, fhir_version_string, logger, logger=, primitive?, versioned_fhir_module

Methods included from ClassMethods

#from_contents

Methods included from ClassXml

#from_xml, #valid?, #validate, #xml_node_to_hash

Methods included from InstanceXml

#hash_to_xml_node, #to_xml

Methods included from ClassJson

#from_json

Methods included from InstanceJson

#to_json

Methods included from Hashable

#from_hash, #to_hash

Methods included from FHIR::R4B

#fhir_version_string, #versioned_fhir_module

Methods inherited from Model

#==, #attribute_mismatch, #compare_attribute, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #respond_to_missing?, #to_reference, #valid?, #validate, #validate_profile

Methods included from Deprecate

#deprecate

Constructor Details

This class inherits a constructor from FHIR::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FHIR::Model

Instance Attribute Details

#actionObject

0-* [ PlanDefinition::Action ]



290
291
292
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 290

def action
  @action
end

#cardinalityBehaviorObject

0-1 code



285
286
287
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 285

def cardinalityBehavior
  @cardinalityBehavior
end

#codeObject

0-* [ CodeableConcept ]



261
262
263
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 261

def code
  @code
end

#conditionObject

0-* [ PlanDefinition::Action::Condition ]



269
270
271
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 269

def condition
  @condition
end

#definitionCanonicalObject

0-1 canonical



286
287
288
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 286

def definitionCanonical
  @definitionCanonical
end

#definitionUriObject

0-1 uri



287
288
289
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 287

def definitionUri
  @definitionUri
end

#descriptionObject

0-1 string



258
259
260
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 258

def description
  @description
end

#documentationObject

0-* [ RelatedArtifact ]



263
264
265
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 263

def documentation
  @documentation
end

#dynamicValueObject

0-* [ PlanDefinition::Action::DynamicValue ]



289
290
291
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 289

def dynamicValue
  @dynamicValue
end

#extensionObject

0-* [ Extension ]



254
255
256
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 254

def extension
  @extension
end

#goalIdObject

0-* [ id ]



264
265
266
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 264

def goalId
  @goalId
end

#groupingBehaviorObject

0-1 code



281
282
283
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 281

def groupingBehavior
  @groupingBehavior
end

#idObject

0-1 string



253
254
255
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 253

def id
  @id
end

#inputObject

0-* [ DataRequirement ]



270
271
272
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 270

def input
  @input
end

#modifierExtensionObject

0-* [ Extension ]



255
256
257
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 255

def modifierExtension
  @modifierExtension
end

#outputObject

0-* [ DataRequirement ]



271
272
273
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 271

def output
  @output
end

#participantObject

0-* [ PlanDefinition::Action::Participant ]



279
280
281
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 279

def participant
  @participant
end

#precheckBehaviorObject

0-1 code



284
285
286
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 284

def precheckBehavior
  @precheckBehavior
end

#prefixObject

0-1 string



256
257
258
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 256

def prefix
  @prefix
end

#priorityObject

0-1 code



260
261
262
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 260

def priority
  @priority
end

#reasonObject

0-* [ CodeableConcept ]



262
263
264
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 262

def reason
  @reason
end

#relatedActionObject

0-* [ PlanDefinition::Action::RelatedAction ]



272
273
274
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 272

def relatedAction
  @relatedAction
end

#requiredBehaviorObject

0-1 code



283
284
285
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 283

def requiredBehavior
  @requiredBehavior
end

#selectionBehaviorObject

0-1 code



282
283
284
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 282

def selectionBehavior
  @selectionBehavior
end

#subjectCanonicalObject

0-1 canonical



267
268
269
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 267

def subjectCanonical
  @subjectCanonical
end

#subjectCodeableConceptObject

0-1 CodeableConcept



265
266
267
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 265

def subjectCodeableConcept
  @subjectCodeableConcept
end

#subjectReferenceObject

0-1 Reference(Group)



266
267
268
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 266

def subjectReference
  @subjectReference
end

#textEquivalentObject

0-1 string



259
260
261
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 259

def textEquivalent
  @textEquivalent
end

#timingAgeObject

0-1 Age



274
275
276
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 274

def timingAge
  @timingAge
end

#timingDateTimeObject

0-1 dateTime



273
274
275
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 273

def timingDateTime
  @timingDateTime
end

#timingDurationObject

0-1 Duration



276
277
278
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 276

def timingDuration
  @timingDuration
end

#timingPeriodObject

0-1 Period



275
276
277
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 275

def timingPeriod
  @timingPeriod
end

#timingRangeObject

0-1 Range



277
278
279
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 277

def timingRange
  @timingRange
end

#timingTimingObject

0-1 Timing



278
279
280
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 278

def timingTiming
  @timingTiming
end

#titleObject

0-1 string



257
258
259
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 257

def title
  @title
end

#transformObject

0-1 canonical



288
289
290
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 288

def transform
  @transform
end

#triggerObject

0-* [ TriggerDefinition ]



268
269
270
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 268

def trigger
  @trigger
end

#typeObject

0-1 CodeableConcept



280
281
282
# File 'lib/fhir_models/r4b/generated/resources/PlanDefinition.rb', line 280

def type
  @type
end