Class: FHIR::R5::FamilyMemberHistory

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

Defined Under Namespace

Classes: Condition, Participant, Procedure

Constant Summary collapse

MULTIPLE_TYPES =
{
  'born' => ['Period', 'date', 'string'],
  'age' => ['Age', 'Range', 'string'],
  'deceased' => ['boolean', 'Age', 'Range', 'date', 'string']
}
SEARCH_PARAMS =
['code', 'date', 'identifier', 'instantiates-canonical', 'instantiates-uri', 'patient', 'relationship', 'sex', 'status']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'FamilyMemberHistory.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'FamilyMemberHistory.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'FamilyMemberHistory.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'type'=>'code', 'path'=>'FamilyMemberHistory.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'additional'=>[{'purpose'=>'starter', 'valueSet'=>'http://hl7.org/fhir/ValueSet/languages'}], 'uri'=>'http://hl7.org/fhir/ValueSet/all-languages'}},
  'text' => {'type'=>'Narrative', 'path'=>'FamilyMemberHistory.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'FamilyMemberHistory.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'FamilyMemberHistory.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'FamilyMemberHistory.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'FamilyMemberHistory.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'instantiatesCanonical' => {'type'=>'canonical', 'path'=>'FamilyMemberHistory.instantiatesCanonical', 'min'=>0, 'max'=>Float::INFINITY},
  'instantiatesUri' => {'type'=>'uri', 'path'=>'FamilyMemberHistory.instantiatesUri', 'min'=>0, 'max'=>Float::INFINITY},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/history-status'=>['partial', 'completed', 'entered-in-error', 'health-unknown']}, 'type'=>'code', 'path'=>'FamilyMemberHistory.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/history-status'}},
  'dataAbsentReason' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/history-absent-reason'=>['subject-unknown', 'withheld', 'unable-to-obtain', 'deferred']}, 'type'=>'CodeableConcept', 'path'=>'FamilyMemberHistory.dataAbsentReason', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/history-absent-reason'}},
  'patient' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient'], 'type'=>'Reference', 'path'=>'FamilyMemberHistory.patient', 'min'=>1, 'max'=>1},
  'date' => {'type'=>'dateTime', 'path'=>'FamilyMemberHistory.date', 'min'=>0, 'max'=>1},
  'participant' => {'type'=>'FamilyMemberHistory::Participant', 'path'=>'FamilyMemberHistory.participant', 'min'=>0, 'max'=>Float::INFINITY},
  'name' => {'type'=>'string', 'path'=>'FamilyMemberHistory.name', 'min'=>0, 'max'=>1},
  'relationship' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/v3-RoleCode'=>['FAMMEMB', 'CHILD', 'CHLDADOPT', 'DAUADOPT', 'SONADOPT', 'CHLDFOST', 'DAUFOST', 'SONFOST', 'DAUC', 'DAU', 'STPDAU', 'NCHILD', 'SON', 'SONC', 'STPSON', 'STPCHLD', 'EXT', 'AUNT', 'MAUNT', 'PAUNT', 'COUSN', 'MCOUSN', 'PCOUSN', 'GGRPRN', 'GGRFTH', 'MGGRFTH', 'PGGRFTH', 'GGRMTH', 'MGGRMTH', 'PGGRMTH', 'MGGRPRN', 'PGGRPRN', 'GRNDCHILD', 'GRNDDAU', 'GRNDSON', 'GRPRN', 'GRFTH', 'MGRFTH', 'PGRFTH', 'GRMTH', 'MGRMTH', 'PGRMTH', 'MGRPRN', 'PGRPRN', 'INLAW', 'CHLDINLAW', 'DAUINLAW', 'SONINLAW', 'PRNINLAW', 'FTHINLAW', 'MTHINLAW', 'MTHINLOAW', 'SIBINLAW', 'BROINLAW', 'SISINLAW', 'SISLINLAW', 'NIENEPH', 'NEPHEW', 'NIECE', 'UNCLE', 'MUNCLE', 'PUNCLE', 'PRN', 'ADOPTP', 'ADOPTF', 'ADOPTM', 'FTH', 'FTHFOST', 'NFTH', 'NFTHF', 'STPFTH', 'MTH', 'GESTM', 'MTHFOST', 'NMTH', 'NMTHF', 'STPMTH', 'NPRN', 'PRNFOST', 'STPPRN', 'SIB', 'BRO', 'HBRO', 'NBRO', 'TWINBRO', 'FTWINBRO', 'ITWINBRO', 'STPBRO', 'HSIB', 'HSIS', 'NSIB', 'NSIS', 'TWINSIS', 'FTWINSIS', 'ITWINSIS', 'TWIN', 'FTWIN', 'ITWIN', 'SIS', 'STPSIS', 'STPSIB', 'SIGOTHR', 'DOMPART', 'FMRSPS', 'SPS', 'HUSB', 'WIFE']}, 'type'=>'CodeableConcept', 'path'=>'FamilyMemberHistory.relationship', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://terminology.hl7.org/ValueSet/v3-FamilyMember'}},
  'sex' => {'valid_codes'=>{'http://hl7.org/fhir/administrative-gender'=>['male', 'female', 'other', 'unknown']}, 'type'=>'CodeableConcept', 'path'=>'FamilyMemberHistory.sex', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/administrative-gender'}},
  'bornPeriod' => {'type'=>'Period', 'path'=>'FamilyMemberHistory.born[x]', 'min'=>0, 'max'=>1},
  'bornDate' => {'type'=>'date', 'path'=>'FamilyMemberHistory.born[x]', 'min'=>0, 'max'=>1},
  'bornString' => {'type'=>'string', 'path'=>'FamilyMemberHistory.born[x]', 'min'=>0, 'max'=>1},
  'ageAge' => {'type'=>'Age', 'path'=>'FamilyMemberHistory.age[x]', 'min'=>0, 'max'=>1},
  'ageRange' => {'type'=>'Range', 'path'=>'FamilyMemberHistory.age[x]', 'min'=>0, 'max'=>1},
  'ageString' => {'type'=>'string', 'path'=>'FamilyMemberHistory.age[x]', 'min'=>0, 'max'=>1},
  'estimatedAge' => {'type'=>'boolean', 'path'=>'FamilyMemberHistory.estimatedAge', 'min'=>0, 'max'=>1},
  'deceasedBoolean' => {'type'=>'boolean', 'path'=>'FamilyMemberHistory.deceased[x]', 'min'=>0, 'max'=>1},
  'deceasedAge' => {'type'=>'Age', 'path'=>'FamilyMemberHistory.deceased[x]', 'min'=>0, 'max'=>1},
  'deceasedRange' => {'type'=>'Range', 'path'=>'FamilyMemberHistory.deceased[x]', 'min'=>0, 'max'=>1},
  'deceasedDate' => {'type'=>'date', 'path'=>'FamilyMemberHistory.deceased[x]', 'min'=>0, 'max'=>1},
  'deceasedString' => {'type'=>'string', 'path'=>'FamilyMemberHistory.deceased[x]', 'min'=>0, 'max'=>1},
  'reason' => {'type'=>'CodeableReference', 'path'=>'FamilyMemberHistory.reason', 'min'=>0, 'max'=>Float::INFINITY},
  'note' => {'type'=>'Annotation', 'path'=>'FamilyMemberHistory.note', 'min'=>0, 'max'=>Float::INFINITY},
  'condition' => {'type'=>'FamilyMemberHistory::Condition', 'path'=>'FamilyMemberHistory.condition', 'min'=>0, 'max'=>Float::INFINITY},
  'procedure' => {'type'=>'FamilyMemberHistory::Procedure', 'path'=>'FamilyMemberHistory.procedure', '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::R5

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::R5

#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

#ageAgeObject

0-1 Age



166
167
168
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 166

def ageAge
  @ageAge
end

#ageRangeObject

0-1 Range



167
168
169
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 167

def ageRange
  @ageRange
end

#ageStringObject

0-1 string



168
169
170
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 168

def ageString
  @ageString
end

#bornDateObject

0-1 date



164
165
166
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 164

def bornDate
  @bornDate
end

#bornPeriodObject

0-1 Period



163
164
165
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 163

def bornPeriod
  @bornPeriod
end

#bornStringObject

0-1 string



165
166
167
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 165

def bornString
  @bornString
end

#conditionObject

0-* [ FamilyMemberHistory::Condition ]



177
178
179
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 177

def condition
  @condition
end

#containedObject

0-* [ Resource ]



149
150
151
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 149

def contained
  @contained
end

#dataAbsentReasonObject

0-1 CodeableConcept



156
157
158
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 156

def dataAbsentReason
  @dataAbsentReason
end

#dateObject

0-1 dateTime



158
159
160
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 158

def date
  @date
end

#deceasedAgeObject

0-1 Age



171
172
173
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 171

def deceasedAge
  @deceasedAge
end

#deceasedBooleanObject

0-1 boolean



170
171
172
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 170

def deceasedBoolean
  @deceasedBoolean
end

#deceasedDateObject

0-1 date



173
174
175
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 173

def deceasedDate
  @deceasedDate
end

#deceasedRangeObject

0-1 Range



172
173
174
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 172

def deceasedRange
  @deceasedRange
end

#deceasedStringObject

0-1 string



174
175
176
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 174

def deceasedString
  @deceasedString
end

#estimatedAgeObject

0-1 boolean



169
170
171
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 169

def estimatedAge
  @estimatedAge
end

#extensionObject

0-* [ Extension ]



150
151
152
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 150

def extension
  @extension
end

#idObject

0-1 id



144
145
146
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 144

def id
  @id
end

#identifierObject

0-* [ Identifier ]



152
153
154
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 152

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



146
147
148
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 146

def implicitRules
  @implicitRules
end

#instantiatesCanonicalObject

0-* [ canonical ]



153
154
155
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 153

def instantiatesCanonical
  @instantiatesCanonical
end

#instantiatesUriObject

0-* [ uri ]



154
155
156
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 154

def instantiatesUri
  @instantiatesUri
end

#languageObject

0-1 code



147
148
149
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 147

def language
  @language
end

#metaObject

0-1 Meta



145
146
147
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 145

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



151
152
153
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 151

def modifierExtension
  @modifierExtension
end

#nameObject

0-1 string



160
161
162
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 160

def name
  @name
end

#noteObject

0-* [ Annotation ]



176
177
178
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 176

def note
  @note
end

#participantObject

0-* [ FamilyMemberHistory::Participant ]



159
160
161
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 159

def participant
  @participant
end

#patientObject

1-1 Reference(Patient)



157
158
159
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 157

def patient
  @patient
end

#procedureObject

0-* [ FamilyMemberHistory::Procedure ]



178
179
180
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 178

def procedure
  @procedure
end

#reasonObject

0-* [ CodeableReference ]



175
176
177
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 175

def reason
  @reason
end

#relationshipObject

1-1 CodeableConcept



161
162
163
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 161

def relationship
  @relationship
end

#sexObject

0-1 CodeableConcept



162
163
164
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 162

def sex
  @sex
end

#statusObject

1-1 code



155
156
157
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 155

def status
  @status
end

#textObject

0-1 Narrative



148
149
150
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 148

def text
  @text
end

Instance Method Details

#resourceTypeObject



180
181
182
# File 'lib/fhir_models/r5/generated/resources/FamilyMemberHistory.rb', line 180

def resourceType
  'FamilyMemberHistory'
end