Class: FHIR::R4B::CarePlan

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

Defined Under Namespace

Classes: Activity

Constant Summary collapse

SEARCH_PARAMS =
['activity-code', 'activity-date', 'activity-reference', 'based-on', 'care-team', 'category', 'condition', 'date', 'encounter', 'goal', 'identifier', 'instantiates-canonical', 'instantiates-uri', 'intent', 'part-of', 'patient', 'performer', 'replaces', 'status', 'subject']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'CarePlan.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'CarePlan.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'CarePlan.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'valid_codes'=>{'urn:ietf:bcp:47'=>['ar', 'bn', 'cs', 'da', 'de', 'de-AT', 'de-CH', 'de-DE', 'el', 'en', 'en-AU', 'en-CA', 'en-GB', 'en-IN', 'en-NZ', 'en-SG', 'en-US', 'es', 'es-AR', 'es-ES', 'es-UY', 'fi', 'fr', 'fr-BE', 'fr-CH', 'fr-FR', 'fy', 'fy-NL', 'hi', 'hr', 'it', 'it-CH', 'it-IT', 'ja', 'ko', 'nl', 'nl-BE', 'nl-NL', 'no', 'no-NO', 'pa', 'pl', 'pt', 'pt-BR', 'ru', 'ru-RU', 'sr', 'sr-RS', 'sv', 'sv-SE', 'te', 'zh', 'zh-CN', 'zh-HK', 'zh-SG', 'zh-TW']}, 'type'=>'code', 'path'=>'CarePlan.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
  'text' => {'type'=>'Narrative', 'path'=>'CarePlan.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'CarePlan.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'CarePlan.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'CarePlan.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'CarePlan.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'instantiatesCanonical' => {'type'=>'canonical', 'path'=>'CarePlan.instantiatesCanonical', 'min'=>0, 'max'=>Float::INFINITY},
  'instantiatesUri' => {'type'=>'uri', 'path'=>'CarePlan.instantiatesUri', 'min'=>0, 'max'=>Float::INFINITY},
  'basedOn' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/CarePlan'], 'type'=>'Reference', 'path'=>'CarePlan.basedOn', 'min'=>0, 'max'=>Float::INFINITY},
  'replaces' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/CarePlan'], 'type'=>'Reference', 'path'=>'CarePlan.replaces', 'min'=>0, 'max'=>Float::INFINITY},
  'partOf' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/CarePlan'], 'type'=>'Reference', 'path'=>'CarePlan.partOf', 'min'=>0, 'max'=>Float::INFINITY},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/request-status'=>['draft', 'active', 'on-hold', 'revoked', 'completed', 'entered-in-error', 'unknown']}, 'type'=>'code', 'path'=>'CarePlan.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/request-status'}},
  'intent' => {'valid_codes'=>{'http://hl7.org/fhir/request-intent'=>['proposal', 'plan', 'order', 'option']}, 'type'=>'code', 'path'=>'CarePlan.intent', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/care-plan-intent'}},
  'category' => {'valid_codes'=>{'http://snomed.info/sct'=>['734163000', '718347000', '735321000', '735322007', '735323002', '735324008', '735325009', '735326005', '735327001', '735328006', '735329003', '735330008', '735984001', '735985000', '735986004', '736054002', '736055001', '736056000', '736057009', '736058004', '736059007', '736234007', '736235008', '736241001', '736245005', '736246006', '736248007', '736249004', '736250004', '736251000', '736252007', '736253002', '736254008', '736271009', '736282001', '736283006', '736284000', '736285004', '736286003', '736287007', '736288002', '736336006', '736337002', '736338007', '736339004', '736340002', '736351002', '736352009', '736353004', '736355006', '736356007', '736357003', '736358008', '736359000', '736361009', '736362002', '736363007', '736364001', '736365000', '736366004', '736367008', '736368003', '736369006', '736370007', '736371006', '736372004', '736373009', '736374003', '736375002', '736376001', '736377005', '736378000', '736379008', '736381005', '736382003', '736383008', '736384002', '736385001', '736386000', '736387009', '736389007', '736390003', '736391004', '736392006', '736393001', '736394007', '736395008', '736396009', '736397000', '736399002', '736400009', '736401008', '736402001', '736403006', '736453000', '736482004', '736690008', '736990006', '737426005', '737427001', '737428006', '737429003', '737430008', '737431007', '737432000', '737433005', '737434004', '737435003', '737436002', '737437006', '737438001', '737439009', '744980002', '763249000', '763321009', '770576004', '771082000', '773130005', '773430001', '773431002', '773432009', '773433004', '773435006', '773436007', '773437003', '773438008', '773439000', '773440003', '773441004', '773442006', '773443001', '773444007', '773445008', '773446009', '773447000', '773448005', '773449002', '773450002', '773451003', '773452005', '773506001', '773507005', '773508000', '773509008', '773511004', '773512006', '773513001', '773514007', '773516009', '773517000', '773590002', '773591003', '773592005', '773593000', '773594006', '773595007', '773596008', '773597004', '773598009', '773599001', '773976008', '773977004', '773978009', '773979001', '773980003', '773981004', '773982006', '773983001', '774202005']}, 'type'=>'CodeableConcept', 'path'=>'CarePlan.category', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/care-plan-category'}},
  'title' => {'type'=>'string', 'path'=>'CarePlan.title', 'min'=>0, 'max'=>1},
  'description' => {'type'=>'string', 'path'=>'CarePlan.description', 'min'=>0, 'max'=>1},
  'subject' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Group'], 'type'=>'Reference', 'path'=>'CarePlan.subject', 'min'=>1, 'max'=>1},
  'encounter' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Encounter'], 'type'=>'Reference', 'path'=>'CarePlan.encounter', 'min'=>0, 'max'=>1},
  'period' => {'type'=>'Period', 'path'=>'CarePlan.period', 'min'=>0, 'max'=>1},
  'created' => {'type'=>'dateTime', 'path'=>'CarePlan.created', 'min'=>0, 'max'=>1},
  'author' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/CareTeam'], 'type'=>'Reference', 'path'=>'CarePlan.author', 'min'=>0, 'max'=>1},
  'contributor' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/CareTeam'], 'type'=>'Reference', 'path'=>'CarePlan.contributor', 'min'=>0, 'max'=>Float::INFINITY},
  'careTeam' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/CareTeam'], 'type'=>'Reference', 'path'=>'CarePlan.careTeam', 'min'=>0, 'max'=>Float::INFINITY},
  'addresses' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Condition'], 'type'=>'Reference', 'path'=>'CarePlan.addresses', 'min'=>0, 'max'=>Float::INFINITY},
  'supportingInfo' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'CarePlan.supportingInfo', 'min'=>0, 'max'=>Float::INFINITY},
  'goal' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Goal'], 'type'=>'Reference', 'path'=>'CarePlan.goal', 'min'=>0, 'max'=>Float::INFINITY},
  'activity' => {'type'=>'CarePlan::Activity', 'path'=>'CarePlan.activity', 'min'=>0, 'max'=>Float::INFINITY},
  'note' => {'type'=>'Annotation', 'path'=>'CarePlan.note', '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

PRIMITIVES, RESOURCES, TYPES

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#activityObject

0-* [ CarePlan::Activity ]



158
159
160
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 158

def activity
  @activity
end

#addressesObject

0-* [ Reference(Condition) ]



155
156
157
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 155

def addresses
  @addresses
end

#authorObject

0-1 Reference(Patient|Practitioner|PractitionerRole|Device|RelatedPerson|Organization|CareTeam)



152
153
154
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 152

def author
  @author
end

#basedOnObject

0-* [ Reference(CarePlan) ]



140
141
142
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 140

def basedOn
  @basedOn
end

#careTeamObject

0-* [ Reference(CareTeam) ]



154
155
156
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 154

def careTeam
  @careTeam
end

#categoryObject

0-* [ CodeableConcept ]



145
146
147
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 145

def category
  @category
end

#containedObject

0-* [ Resource ]



134
135
136
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 134

def contained
  @contained
end

#contributorObject

0-* [ Reference(Patient|Practitioner|PractitionerRole|Device|RelatedPerson|Organization|CareTeam) ]



153
154
155
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 153

def contributor
  @contributor
end

#createdObject

0-1 dateTime



151
152
153
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 151

def created
  @created
end

#descriptionObject

0-1 string



147
148
149
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 147

def description
  @description
end

#encounterObject

0-1 Reference(Encounter)



149
150
151
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 149

def encounter
  @encounter
end

#extensionObject

0-* [ Extension ]



135
136
137
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 135

def extension
  @extension
end

#goalObject

0-* [ Reference(Goal) ]



157
158
159
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 157

def goal
  @goal
end

#idObject

0-1 id



129
130
131
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 129

def id
  @id
end

#identifierObject

0-* [ Identifier ]



137
138
139
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 137

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



131
132
133
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 131

def implicitRules
  @implicitRules
end

#instantiatesCanonicalObject

0-* [ canonical ]



138
139
140
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 138

def instantiatesCanonical
  @instantiatesCanonical
end

#instantiatesUriObject

0-* [ uri ]



139
140
141
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 139

def instantiatesUri
  @instantiatesUri
end

#intentObject

1-1 code



144
145
146
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 144

def intent
  @intent
end

#languageObject

0-1 code



132
133
134
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 132

def language
  @language
end

#metaObject

0-1 Meta



130
131
132
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 130

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



136
137
138
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 136

def modifierExtension
  @modifierExtension
end

#noteObject

0-* [ Annotation ]



159
160
161
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 159

def note
  @note
end

#partOfObject

0-* [ Reference(CarePlan) ]



142
143
144
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 142

def partOf
  @partOf
end

#periodObject

0-1 Period



150
151
152
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 150

def period
  @period
end

#replacesObject

0-* [ Reference(CarePlan) ]



141
142
143
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 141

def replaces
  @replaces
end

#statusObject

1-1 code



143
144
145
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 143

def status
  @status
end

#subjectObject

1-1 Reference(Patient|Group)



148
149
150
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 148

def subject
  @subject
end

#supportingInfoObject

0-* [ Reference(Resource) ]



156
157
158
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 156

def supportingInfo
  @supportingInfo
end

#textObject

0-1 Narrative



133
134
135
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 133

def text
  @text
end

#titleObject

0-1 string



146
147
148
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 146

def title
  @title
end

Instance Method Details

#resourceTypeObject



161
162
163
# File 'lib/fhir_models/r4b/generated/resources/CarePlan.rb', line 161

def resourceType
  'CarePlan'
end